1 |
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.typescript=t())}(this,function(){"use strict";var e=function(e,t){var r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};var t=function(e,t){if(e.startsWith("#!")){var r=e.indexOf("\n"),n={type:"Line",value:e.slice(2,r),range:[0,r],loc:{source:null,start:{line:1,column:0},end:{line:1,column:r}}};t.comments=[n].concat(t.comments)}},r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,t){return e(t={exports:{}},t.exports),t.exports}var a=i(function(e){e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return null;var r=t.filter(function(e){return"\r\n"===e}).length;return r>t.length-r?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}}),o={},s=Object.freeze({default:o,__moduleExports:o}),c=s&&o||s,u=i(function(e,t){var r,n;function i(){return r=(e=a)&&e.__esModule?e:{default:e};var e}function o(){return n=c}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(l);return t&&t[0].replace(d,"")||""},t.strip=function(e){var t=e.match(l);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return h(e).pragmas},t.parseWithComments=h,t.print=function(e){var t=e.comments,a=void 0===t?"":t,s=e.pragmas,c=void 0===s?{}:s,u=(0,(r||i()).default)(a)||(n||o()).EOL,l=Object.keys(c),_=l.map(function(e){return v(e,c[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return" * "+e+u}).join("");if(!a){if(0===l.length)return"";if(1===l.length&&!Array.isArray(c[l[0]])){var d=c[l[0]];return"".concat("/**"," ").concat(v(l[0],d)[0]).concat(" */")}}var p=a.split(u).map(function(e){return"".concat(" *"," ").concat(e)}).join(u)+u;return"/**"+u+(a?p:"")+(a&&l.length?" *"+u:"")+_+" */"};var s=/\*\/$/,u=/^\/\*\*/,l=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,_=/(^|\s+)\/\/([^\r\n]*)/g,d=/^\s*/,p=/\s*$/,f=/^(\r?\n)+/,m=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,g=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,y=/(\r?\n|^) *\* ?/g;function h(e){var t=(0,(r||i()).default)(e)||(n||o()).EOL;e=e.replace(u,"").replace(s,"").replace(y,"$1");for(var a="";a!==e;)a=e,e=e.replace(m,"".concat(t,"$1 $2").concat(t));e=e.replace(f,"").replace(p,"");for(var c,l=Object.create(null),d=e.replace(g,"").replace(f,"").replace(p,"");c=g.exec(e);){var h=c[2].replace(_,"");"string"==typeof l[c[1]]||Array.isArray(l[c[1]])?l[c[1]]=[].concat(l[c[1]],h):l[c[1]]=h}return{comments:d,pragmas:l}}function v(e,t){return[].concat(t).map(function(t){return"@".concat(e," ").concat(t).trim()})}});n(u);var l=function(e){var t=Object.keys(u.parse(u.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},_=function(e){return e.length>0?e[e.length-1]:null};var d={locStart:function e(t){return t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},locEnd:function e(t){var r=t.nodes&&_(t.nodes);if(r&&t.source&&!t.source.end&&(t=r),t.__location)return t.__location.endOffset;var n=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(n,e(t.typeAnnotation)):t.loc&&!n?t.loc.end:n}};function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var f={ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",AwaitExpression:"AwaitExpression",BinaryExpression:"BinaryExpression",BlockStatement:"BlockStatement",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ClassImplements:"ClassImplements",ClassProperty:"ClassProperty",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DeclareFunction:"DeclareFunction",Decorator:"Decorator",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExperimentalRestProperty:"ExperimentalRestProperty",ExperimentalSpreadProperty:"ExperimentalSpreadProperty",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",ForStatement:"ForStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GenericTypeAnnotation:"GenericTypeAnnotation",Identifier:"Identifier",IfStatement:"IfStatement",Import:"Import",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",LabeledStatement:"LabeledStatement",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TSAbstractClassProperty:"TSAbstractClassProperty",TSAbstractKeyword:"TSAbstractKeyword",TSAbstractMethodDefinition:"TSAbstractMethodDefinition",TSAnyKeyword:"TSAnyKeyword",TSArrayType:"TSArrayType",TSAsyncKeyword:"TSAsyncKeyword",TSBooleanKeyword:"TSBooleanKeyword",TSConstructorType:"TSConstructorType",TSConstructSignature:"TSConstructSignature",TSDeclareKeyword:"TSDeclareKeyword",TSEnumDeclaration:"TSEnumDeclaration",TSEnumMember:"TSEnumMember",TSExportAssignment:"TSExportAssignment",TSExportKeyword:"TSExportKeyword",TSIndexSignature:"TSIndexSignature",TSInterfaceBody:"TSInterfaceBody",TSInterfaceDeclaration:"TSInterfaceDeclaration",TSInterfaceHeritage:"TSInterfaceHeritage",TSFunctionType:"TSFunctionType",TSMethodSignature:"TSMethodSignature",TSModuleBlock:"TSModuleBlock",TSModuleDeclaration:"TSModuleDeclaration",TSNamespaceFunctionDeclaration:"TSNamespaceFunctionDeclaration",TSNonNullExpression:"TSNonNullExpression",TSNeverKeyword:"TSNeverKeyword",TSNullKeyword:"TSNullKeyword",TSNumberKeyword:"TSNumberKeyword",TSObjectKeyword:"TSObjectKeyword",TSParameterProperty:"TSParameterProperty",TSPrivateKeyword:"TSPrivateKeyword",TSPropertySignature:"TSPropertySignature",TSProtectedKeyword:"TSProtectedKeyword",TSPublicKeyword:"TSPublicKeyword",TSQualifiedName:"TSQualifiedName",TSQuestionToken:"TSQuestionToken",TSReadonlyKeyword:"TSReadonlyKeyword",TSStaticKeyword:"TSStaticKeyword",TSStringKeyword:"TSStringKeyword",TSSymbolKeyword:"TSSymbolKeyword",TSTypeAnnotation:"TSTypeAnnotation",TSTypeLiteral:"TSTypeLiteral",TSTypeOperator:"TSTypeOperator",TSTypeParameter:"TSTypeParameter",TSTypeParameterDeclaration:"TSTypeParameterDeclaration",TSTypeParameterInstantiation:"TSTypeParameterInstantiation",TSTypePredicate:"TSTypePredicate",TSTypeReference:"TSTypeReference",TSUnionType:"TSUnionType",TSUndefinedKeyword:"TSUndefinedKeyword",TSVoidKeyword:"TSVoidKeyword",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},m="/Users/dual/Code/prettier/node_modules/typescript/lib",g="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function y(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}var v=y,b=h;function x(e){if(v===setTimeout)return setTimeout(e,0);if((v===y||!v)&&setTimeout)return v=setTimeout,setTimeout(e,0);try{return v(e,0)}catch(t){try{return v.call(null,e,0)}catch(t){return v.call(this,e,0)}}}"function"==typeof g.setTimeout&&(v=setTimeout),"function"==typeof g.clearTimeout&&(b=clearTimeout);var S,k=[],D=!1,T=-1;function C(){D&&S&&(D=!1,S.length?k=S.concat(k):T=-1,k.length&&E())}function E(){if(!D){var e=x(C);D=!0;for(var t=k.length;t;){for(S=k,k=[];++T<t;)S&&S[T].run();T=-1,t=k.length}S=null,D=!1,function(e){if(b===clearTimeout)return clearTimeout(e);if((b===h||!b)&&clearTimeout)return b=clearTimeout,clearTimeout(e);try{b(e)}catch(t){try{return b.call(null,e)}catch(t){return b.call(this,e)}}}(e)}}function N(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];k.push(new A(e,t)),1!==k.length||D||x(E)}function A(e,t){this.fun=e,this.array=t}A.prototype.run=function(){this.fun.apply(null,this.array)};function P(){}var w=P,F=P,O=P,I=P,M=P,L=P,R=P;var B=g.performance||{},j=B.now||B.mozNow||B.msNow||B.oNow||B.webkitNow||function(){return(new Date).getTime()};var J=new Date;var z={nextTick:N,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:w,addListener:F,once:O,off:I,removeListener:M,removeAllListeners:L,emit:R,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*j.call(B),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-J)/1e3}},K=[],U=[],q="undefined"!=typeof Uint8Array?Uint8Array:Array,V=!1;function W(){V=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)K[t]=e[t],U[e.charCodeAt(t)]=t;U["-".charCodeAt(0)]=62,U["_".charCodeAt(0)]=63}function H(e,t,r){for(var n,i,a=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a.push(K[(i=n)>>18&63]+K[i>>12&63]+K[i>>6&63]+K[63&i]);return a.join("")}function G(e){var t;V||W();for(var r=e.length,n=r%3,i="",a=[],o=0,s=r-n;o<s;o+=16383)a.push(H(e,o,o+16383>s?s:o+16383));return 1===n?(t=e[r-1],i+=K[t>>2],i+=K[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=K[t>>10],i+=K[t>>4&63],i+=K[t<<2&63],i+="="),a.push(i),a.join("")}function X(e,t,r,n,i){var a,o,s=8*i-n-1,c=(1<<s)-1,u=c>>1,l=-7,_=r?i-1:0,d=r?-1:1,p=e[t+_];for(_+=d,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+e[t+_],_+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+_],_+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=u}return(p?-1:1)*o*Math.pow(2,a-n)}function Q(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<<u)-1,_=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+_>=1?d/c:d*Math.pow(2,1-_))*c>=2&&(o++,c/=2),o+_>=l?(s=0,o=l):o+_>=1?(s=(t*c-1)*Math.pow(2,i),o+=_):(s=t*Math.pow(2,_-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+p]=255&o,p+=f,o/=256,u-=8);e[r+p-f]|=128*m}var Y={}.toString,$=Array.isArray||function(e){return"[object Array]"==Y.call(e)};function Z(){return te.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ee(e,t){if(Z()<t)throw new RangeError("Invalid typed array length");return te.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=te.prototype:(null===e&&(e=new te(t)),e.length=t),e}function te(e,t,r){if(!(te.TYPED_ARRAY_SUPPORT||this instanceof te))return new te(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return ie(this,e)}return re(this,e,t,r)}function re(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);te.TYPED_ARRAY_SUPPORT?(e=t).__proto__=te.prototype:e=ae(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!te.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|ce(t,r),i=(e=ee(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(se(t)){var r=0|oe(t.length);return 0===(e=ee(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?ee(e,0):ae(e,t);if("Buffer"===t.type&&$(t.data))return ae(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function ne(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ie(e,t){if(ne(t),e=ee(e,t<0?0:0|oe(t)),!te.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function ae(e,t){var r=t.length<0?0:0|oe(t.length);e=ee(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function oe(e){if(e>=Z())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z().toString(16)+" bytes");return 0|e}function se(e){return!(null==e||!e._isBuffer)}function ce(e,t){if(se(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Ie(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Me(e).length;default:if(n)return Ie(e).length;t=(""+t).toLowerCase(),n=!0}}function ue(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function le(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=te.from(t,n)),se(t))return 0===t.length?-1:_e(e,t,r,n,i);if("number"==typeof t)return t&=255,te.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):_e(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _e(e,t,r,n,i){var a,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(r+c>s&&(r=s-c),a=r;a>=0;a--){for(var _=!0,d=0;d<c;d++)if(u(e,a+d)!==u(t,d)){_=!1;break}if(_)return a}return-1}function de(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function pe(e,t,r,n){return Le(Ie(t,e.length-r),e,r,n)}function fe(e,t,r,n){return Le(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function me(e,t,r,n){return fe(e,t,r,n)}function ge(e,t,r,n){return Le(Me(t),e,r,n)}function ye(e,t,r,n){return Le(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function he(e,t,r){return 0===t&&r===e.length?G(e):G(e.slice(t,r))}function ve(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,c,u=e[i],l=null,_=u>239?4:u>223?3:u>191?2:1;if(i+_<=r)switch(_){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,_=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=_}return function(e){var t=e.length;if(t<=be)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=be));return r}(n)}te.TYPED_ARRAY_SUPPORT=void 0===g.TYPED_ARRAY_SUPPORT||g.TYPED_ARRAY_SUPPORT,te.poolSize=8192,te._augment=function(e){return e.__proto__=te.prototype,e},te.from=function(e,t,r){return re(null,e,t,r)},te.TYPED_ARRAY_SUPPORT&&(te.prototype.__proto__=Uint8Array.prototype,te.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&te[Symbol.species]),te.alloc=function(e,t,r){return function(e,t,r,n){return ne(t),t<=0?ee(e,t):void 0!==r?"string"==typeof n?ee(e,t).fill(r,n):ee(e,t).fill(r):ee(e,t)}(null,e,t,r)},te.allocUnsafe=function(e){return ie(null,e)},te.allocUnsafeSlow=function(e){return ie(null,e)},te.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Re(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Re(e.slice(0,0))}(e))},te.compare=function(e,t){if(!se(e)||!se(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},te.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},te.concat=function(e,t){if(!$(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return te.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=te.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!se(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},te.byteLength=ce,te.prototype._isBuffer=!0,te.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)ue(this,t,t+1);return this},te.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)ue(this,t,t+3),ue(this,t+1,t+2);return this},te.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)ue(this,t,t+7),ue(this,t+1,t+6),ue(this,t+2,t+5),ue(this,t+3,t+4);return this},te.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?ve(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return ke(this,t,r);case"utf8":case"utf-8":return ve(this,t,r);case"ascii":return xe(this,t,r);case"latin1":case"binary":return Se(this,t,r);case"base64":return he(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},te.prototype.equals=function(e){if(!se(e))throw new TypeError("Argument must be a Buffer");return this===e||0===te.compare(this,e)},te.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},te.prototype.compare=function(e,t,r,n,i){if(!se(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,s=Math.min(a,o),c=this.slice(n,i),u=e.slice(t,r),l=0;l<s;++l)if(c[l]!==u[l]){a=c[l],o=u[l];break}return a<o?-1:o<a?1:0},te.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},te.prototype.indexOf=function(e,t,r){return le(this,e,t,r,!0)},te.prototype.lastIndexOf=function(e,t,r){return le(this,e,t,r,!1)},te.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return de(this,e,t,r);case"utf8":case"utf-8":return pe(this,e,t,r);case"ascii":return fe(this,e,t,r);case"latin1":case"binary":return me(this,e,t,r);case"base64":return ge(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},te.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var be=4096;function xe(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function Se(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function ke(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=Oe(e[a]);return i}function De(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function Te(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Ce(e,t,r,n,i,a){if(!se(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Ee(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function Ne(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function Ae(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Pe(e,t,r,n,i){return i||Ae(e,0,r,4),Q(e,t,r,n,23,4),r+4}function we(e,t,r,n,i){return i||Ae(e,0,r,8),Q(e,t,r,n,52,8),r+8}te.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),te.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=te.prototype;else{var i=t-e;r=new te(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},te.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Te(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},te.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Te(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},te.prototype.readUInt8=function(e,t){return t||Te(e,1,this.length),this[e]},te.prototype.readUInt16LE=function(e,t){return t||Te(e,2,this.length),this[e]|this[e+1]<<8},te.prototype.readUInt16BE=function(e,t){return t||Te(e,2,this.length),this[e]<<8|this[e+1]},te.prototype.readUInt32LE=function(e,t){return t||Te(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},te.prototype.readUInt32BE=function(e,t){return t||Te(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},te.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Te(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},te.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Te(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},te.prototype.readInt8=function(e,t){return t||Te(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},te.prototype.readInt16LE=function(e,t){t||Te(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},te.prototype.readInt16BE=function(e,t){t||Te(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},te.prototype.readInt32LE=function(e,t){return t||Te(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},te.prototype.readInt32BE=function(e,t){return t||Te(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},te.prototype.readFloatLE=function(e,t){return t||Te(e,4,this.length),X(this,e,!0,23,4)},te.prototype.readFloatBE=function(e,t){return t||Te(e,4,this.length),X(this,e,!1,23,4)},te.prototype.readDoubleLE=function(e,t){return t||Te(e,8,this.length),X(this,e,!0,52,8)},te.prototype.readDoubleBE=function(e,t){return t||Te(e,8,this.length),X(this,e,!1,52,8)},te.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||Ce(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},te.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||Ce(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},te.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Ce(this,e,t,1,255,0),te.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},te.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Ce(this,e,t,2,65535,0),te.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ee(this,e,t,!0),t+2},te.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Ce(this,e,t,2,65535,0),te.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ee(this,e,t,!1),t+2},te.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Ce(this,e,t,4,4294967295,0),te.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ne(this,e,t,!0),t+4},te.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Ce(this,e,t,4,4294967295,0),te.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ne(this,e,t,!1),t+4},te.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Ce(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},te.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Ce(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},te.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Ce(this,e,t,1,127,-128),te.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},te.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Ce(this,e,t,2,32767,-32768),te.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ee(this,e,t,!0),t+2},te.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Ce(this,e,t,2,32767,-32768),te.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ee(this,e,t,!1),t+2},te.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Ce(this,e,t,4,2147483647,-2147483648),te.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ne(this,e,t,!0),t+4},te.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Ce(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),te.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ne(this,e,t,!1),t+4},te.prototype.writeFloatLE=function(e,t,r){return Pe(this,e,t,!0,r)},te.prototype.writeFloatBE=function(e,t,r){return Pe(this,e,t,!1,r)},te.prototype.writeDoubleLE=function(e,t,r){return we(this,e,t,!0,r)},te.prototype.writeDoubleBE=function(e,t,r){return we(this,e,t,!1,r)},te.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!te.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},te.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!te.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=se(e)?e:Ie(new te(e,n).toString()),s=o.length;for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var Fe=/[^+\/0-9A-Za-z-_]/g;function Oe(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ie(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Me(e){return function(e){var t,r,n,i,a,o;V||W();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[s-2]?2:"="===e[s-1]?1:0,o=new q(3*s/4-a),n=a>0?s-4:s;var c=0;for(t=0,r=0;t<n;t+=4,r+=3)i=U[e.charCodeAt(t)]<<18|U[e.charCodeAt(t+1)]<<12|U[e.charCodeAt(t+2)]<<6|U[e.charCodeAt(t+3)],o[c++]=i>>16&255,o[c++]=i>>8&255,o[c++]=255&i;return 2===a?(i=U[e.charCodeAt(t)]<<2|U[e.charCodeAt(t+1)]>>4,o[c++]=255&i):1===a&&(i=U[e.charCodeAt(t)]<<10|U[e.charCodeAt(t+1)]<<4|U[e.charCodeAt(t+2)]>>2,o[c++]=i>>8&255,o[c++]=255&i),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Fe,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Le(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Re(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),je=function(e){if(0<=e&&e<Be.length)return Be[e];throw new TypeError("Must be between 0 and 63: "+e)},Je=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var ze=function(e){var t,r="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=je(t)}while(n>0);return r},Ke=function(e,t,r){var n,i,a,o,s=e.length,c=0,u=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=Je(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),c+=(i&=31)<<u,u+=5}while(n);r.value=(o=(a=c)>>1,1==(1&a)?-o:o),r.rest=t},Ue=i(function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),u=0,l=c.length-1;l>=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function c(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function l(e,t){return e===t?0:e>t?1:-1}t.toSetString=s?c:function(e){return u(e)?"$"+e:e},t.fromSetString=s?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=e.source-t.source;return 0!==n?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)||r?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!=(n=e.generatedLine-t.generatedLine)?n:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)||r?n:0!=(n=e.source-t.source)?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=l(e.source,t.source))?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:l(e.name,t.name)}}),qe=Object.prototype.hasOwnProperty;function Ve(){this._array=[],this._set=Object.create(null)}Ve.fromArray=function(e,t){for(var r=new Ve,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},Ve.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},Ve.prototype.add=function(e,t){var r=Ue.toSetString(e),n=qe.call(this._set,r),i=this._array.length;n&&!t||this._array.push(e),n||(this._set[r]=i)},Ve.prototype.has=function(e){var t=Ue.toSetString(e);return qe.call(this._set,t)},Ve.prototype.indexOf=function(e){var t=Ue.toSetString(e);if(qe.call(this._set,t))return this._set[t];throw new Error('"'+e+'" is not in the set.')},Ve.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},Ve.prototype.toArray=function(){return this._array.slice()};var We={ArraySet:Ve};function He(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}He.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},He.prototype.add=function(e){var t,r,n,i,a,o;t=this._last,r=e,n=t.generatedLine,i=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,i>n||i==n&&o>=a||Ue.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},He.prototype.toArray=function(){return this._sorted||(this._array.sort(Ue.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Ge=We.ArraySet,Xe={MappingList:He}.MappingList;function Qe(e){e||(e={}),this._file=Ue.getArg(e,"file",null),this._sourceRoot=Ue.getArg(e,"sourceRoot",null),this._skipValidation=Ue.getArg(e,"skipValidation",!1),this._sources=new Ge,this._names=new Ge,this._mappings=new Xe,this._sourcesContents=null}Qe.prototype._version=3,Qe.fromSourceMap=function(e){var t=e.sourceRoot,r=new Qe({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=Ue.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)}),e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)}),r},Qe.prototype.addMapping=function(e){var t=Ue.getArg(e,"generated"),r=Ue.getArg(e,"original",null),n=Ue.getArg(e,"source",null),i=Ue.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,i),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:i})},Qe.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=Ue.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Ue.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[Ue.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Qe.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var i=this._sourceRoot;null!=i&&(n=Ue.relative(i,n));var a=new Ge,o=new Ge;this._mappings.unsortedForEach(function(t){if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=Ue.join(r,t.source)),null!=i&&(t.source=Ue.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var u=t.name;null==u||o.has(u)||o.add(u)},this),this._sources=a,this._names=o,e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=Ue.join(r,t)),null!=i&&(t=Ue.relative(i,t)),this.setSourceContent(t,n))},this)},Qe.prototype._validateMapping=function(e,t,r,n){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},Qe.prototype._serializeMappings=function(){for(var e,t,r,n,i=0,a=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d<p;d++){if(e="",(t=_[d]).generatedLine!==a)for(i=0;t.generatedLine!==a;)e+=";",a++;else if(d>0){if(!Ue.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=","}e+=ze(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=ze(n-u),u=n,e+=ze(t.originalLine-1-s),s=t.originalLine-1,e+=ze(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=ze(r-c),c=r)),l+=e}return l},Qe.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=Ue.relative(t,e));var r=Ue.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},Qe.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},Qe.prototype.toString=function(){return JSON.stringify(this.toJSON())};var Ye={SourceMapGenerator:Qe},$e=i(function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,n,i){if(0===r.length)return-1;var a=function e(r,n,i,a,o,s){var c=Math.floor((n-r)/2)+r,u=o(i,a[c],!0);return 0===u?c:u>0?n-c>1?e(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:c:c-r>1?e(r,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:r<0?-1:r}(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===n(r[a],r[a-1],!0);)--a;return a}});function Ze(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function et(e,t,r,n){if(r<n){var i=r-1;Ze(e,(c=r,u=n,Math.round(c+Math.random()*(u-c))),n);for(var a=e[n],o=r;o<n;o++)t(e[o],a)<=0&&Ze(e,i+=1,o);Ze(e,i+1,o);var s=i+1;et(e,t,r,s-1),et(e,t,s+1,n)}var c,u}var tt=We.ArraySet,rt=function(e,t){et(e,t,0,e.length-1)};function nt(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new ot(t):new it(t)}nt.fromSourceMap=function(e){return it.fromSourceMap(e)},nt.prototype._version=3,nt.prototype.__generatedMappings=null,Object.defineProperty(nt.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),nt.prototype.__originalMappings=null,Object.defineProperty(nt.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),nt.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},nt.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},nt.GENERATED_ORDER=1,nt.ORIGINAL_ORDER=2,nt.GREATEST_LOWER_BOUND=1,nt.LEAST_UPPER_BOUND=2,nt.prototype.eachMapping=function(e,t,r){var n,i=t||null;switch(r||nt.GENERATED_ORDER){case nt.GENERATED_ORDER:n=this._generatedMappings;break;case nt.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=Ue.join(a,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i)},nt.prototype.allGeneratedPositionsFor=function(e){var t=Ue.getArg(e,"line"),r={source:Ue.getArg(e,"source"),originalLine:t,originalColumn:Ue.getArg(e,"column",0)};if(null!=this.sourceRoot&&(r.source=Ue.relative(this.sourceRoot,r.source)),!this._sources.has(r.source))return[];r.source=this._sources.indexOf(r.source);var n=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",Ue.compareByOriginalPositions,$e.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:Ue.getArg(a,"generatedLine",null),column:Ue.getArg(a,"generatedColumn",null),lastColumn:Ue.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:Ue.getArg(a,"generatedLine",null),column:Ue.getArg(a,"generatedColumn",null),lastColumn:Ue.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};function it(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=Ue.getArg(t,"version"),n=Ue.getArg(t,"sources"),i=Ue.getArg(t,"names",[]),a=Ue.getArg(t,"sourceRoot",null),o=Ue.getArg(t,"sourcesContent",null),s=Ue.getArg(t,"mappings"),c=Ue.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(Ue.normalize).map(function(e){return a&&Ue.isAbsolute(a)&&Ue.isAbsolute(e)?Ue.relative(a,e):e}),this._names=tt.fromArray(i.map(String),!0),this._sources=tt.fromArray(n,!0),this.sourceRoot=a,this.sourcesContent=o,this._mappings=s,this.file=c}function at(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}it.prototype=Object.create(nt.prototype),it.prototype.consumer=nt,it.fromSourceMap=function(e){var t=Object.create(it.prototype),r=t._names=tt.fromArray(e._names.toArray(),!0),n=t._sources=tt.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var i=e._mappings.toArray().slice(),a=t.__generatedMappings=[],o=t.__originalMappings=[],s=0,c=i.length;s<c;s++){var u=i[s],l=new at;l.generatedLine=u.generatedLine,l.generatedColumn=u.generatedColumn,u.source&&(l.source=n.indexOf(u.source),l.originalLine=u.originalLine,l.originalColumn=u.originalColumn,u.name&&(l.name=r.indexOf(u.name)),o.push(l)),a.push(l)}return rt(t.__originalMappings,Ue.compareByOriginalPositions),t},it.prototype._version=3,Object.defineProperty(it.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?Ue.join(this.sourceRoot,e):e},this)}}),it.prototype._parseMappings=function(e,t){for(var r,n,i,a,o,s=1,c=0,u=0,l=0,_=0,d=0,p=e.length,f=0,m={},g={},y=[],h=[];f<p;)if(";"===e.charAt(f))s++,f++,c=0;else if(","===e.charAt(f))f++;else{for((r=new at).generatedLine=s,a=f;a<p&&!this._charIsMappingSeparator(e,a);a++);if(i=m[n=e.slice(f,a)])f+=n.length;else{for(i=[];f<a;)Ke(e,f,g),o=g.value,f=g.rest,i.push(o);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");m[n]=i}r.generatedColumn=c+i[0],c=r.generatedColumn,i.length>1&&(r.source=_+i[1],_+=i[1],r.originalLine=u+i[2],u=r.originalLine,r.originalLine+=1,r.originalColumn=l+i[3],l=r.originalColumn,i.length>4&&(r.name=d+i[4],d+=i[4])),h.push(r),"number"==typeof r.originalLine&&y.push(r)}rt(h,Ue.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,rt(y,Ue.compareByOriginalPositions),this.__originalMappings=y},it.prototype._findMapping=function(e,t,r,n,i,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return $e.search(e,t,i,a)},it.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},it.prototype.originalPositionFor=function(e){var t={generatedLine:Ue.getArg(e,"line"),generatedColumn:Ue.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",Ue.compareByGeneratedPositionsDeflated,Ue.getArg(e,"bias",nt.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=Ue.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=Ue.join(this.sourceRoot,i)));var a=Ue.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:Ue.getArg(n,"originalLine",null),column:Ue.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},it.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},it.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=Ue.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=Ue.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},it.prototype.generatedPositionFor=function(e){var t=Ue.getArg(e,"source");if(null!=this.sourceRoot&&(t=Ue.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:Ue.getArg(e,"line"),originalColumn:Ue.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",Ue.compareByOriginalPositions,Ue.getArg(e,"bias",nt.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:Ue.getArg(i,"generatedLine",null),column:Ue.getArg(i,"generatedColumn",null),lastColumn:Ue.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};function ot(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=Ue.getArg(t,"version"),n=Ue.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new tt,this._names=new tt;var i={line:-1,column:0};this._sections=n.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=Ue.getArg(e,"offset"),r=Ue.getArg(t,"line"),n=Ue.getArg(t,"column");if(r<i.line||r===i.line&&n<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=t,{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new nt(Ue.getArg(e,"map"))}})}ot.prototype=Object.create(nt.prototype),ot.prototype.constructor=nt,ot.prototype._version=3,Object.defineProperty(ot.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),ot.prototype.originalPositionFor=function(e){var t={generatedLine:Ue.getArg(e,"line"),generatedColumn:Ue.getArg(e,"column")},r=$e.search(t,this._sections,function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r||e.generatedColumn-t.generatedOffset.generatedColumn}),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},ot.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},ot.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},ot.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer.sources.indexOf(Ue.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},ot.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],i=n.consumer._generatedMappings,a=0;a<i.length;a++){var o=i[a],s=n.consumer._sources.at(o.source);null!==n.consumer.sourceRoot&&(s=Ue.join(n.consumer.sourceRoot,s)),this._sources.add(s),s=this._sources.indexOf(s);var c=n.consumer._names.at(o.name);this._names.add(c),c=this._names.indexOf(c);var u={source:s,generatedLine:o.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(n.generatedOffset.generatedLine===o.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:c};this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}rt(this.__generatedMappings,Ue.compareByGeneratedPositionsDeflated),rt(this.__originalMappings,Ue.compareByOriginalPositions)};var st=Ye.SourceMapGenerator,ct=/(\r?\n)/,ut="$$$isSourceNode$$$";function lt(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[ut]=!0,null!=n&&this.add(n)}lt.fromStringWithSourceMap=function(e,t,r){var n=new lt,i=e.split(ct),a=function(){return i.shift()+(i.shift()||"")},o=1,s=0,c=null;return t.eachMapping(function(e){if(null!==c){if(!(o<e.generatedLine)){var t=(r=i[0]).substr(0,e.generatedColumn-s);return i[0]=r.substr(e.generatedColumn-s),s=e.generatedColumn,u(c,t),void(c=e)}u(c,a()),o++,s=0}for(;o<e.generatedLine;)n.add(a()),o++;if(s<e.generatedColumn){var r=i[0];n.add(r.substr(0,e.generatedColumn)),i[0]=r.substr(e.generatedColumn),s=e.generatedColumn}c=e},this),i.length>0&&(c&&u(c,a()),n.add(i.join(""))),t.sources.forEach(function(e){var i=t.sourceContentFor(e);null!=i&&(null!=r&&(e=Ue.join(r,e)),n.setSourceContent(e,i))}),n;function u(e,t){if(null===e||void 0===e.source)n.add(t);else{var i=r?Ue.join(r,e.source):e.source;n.add(new lt(e.originalLine,e.originalColumn,i,t,e.name))}}},lt.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[ut]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},lt.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[ut]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},lt.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[ut]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},lt.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},lt.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[ut]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},lt.prototype.setSourceContent=function(e,t){this.sourceContents[Ue.toSetString(e)]=t},lt.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][ut]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(Ue.fromSetString(n[t]),this.sourceContents[n[t]])},lt.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},lt.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new st(e),n=!1,i=null,a=null,o=null,s=null;return this.walk(function(e,c){t.code+=e,null!==c.source&&null!==c.line&&null!==c.column?(i===c.source&&a===c.line&&o===c.column&&s===c.name||r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name}),i=c.source,a=c.line,o=c.column,s=c.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),i=null,n=!1);for(var u=0,l=e.length;u<l;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===l?(i=null,n=!1):n&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name})):t.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:t.code,map:r}};var _t,dt={},pt=Object.freeze({default:dt,__moduleExports:dt}),ft=pt&&dt||pt,mt={},gt=Object.freeze({default:mt,__moduleExports:mt}),yt=gt&&mt||gt,ht={},vt=(Object.freeze({default:ht,__moduleExports:ht}),ft);try{(_t=yt).existsSync&&_t.readFileSync||(_t=null)}catch(e){}var bt="auto",xt={},St=/^data:application\/json[^,]+base64,/,kt=[],Dt=[];function Tt(){return"browser"===bt||"node"!==bt&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function Ct(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var Et=Ct(kt);function Nt(e,t){if(!e)return t;var r=vt.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"";return i+vt.resolve(r.slice(i.length),t)}kt.push(function(e){if((e=e.trim())in xt)return xt[e];var t=null;if(_t){if(_t.existsSync(e))try{t=_t.readFileSync(e,"utf8")}catch(e){t=""}}else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null);t=null;4===r.readyState&&200===r.status&&(t=r.responseText)}return xt[e]=t});Ct(Dt);Dt.push(function(e){var t,r=function(e){var t;if(Tt())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=4===r.readyState?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch(e){}t=Et(e);for(var i,a,o=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!r)return null;St.test(r)?(t=new te(r.slice(r.indexOf(",")+1),"base64").toString(),r=e):(r=Nt(e,r),t=Et(r));return t?{url:r,map:t}:null});var At={},Pt=(Object.freeze({default:At,__moduleExports:At}),{}),wt=(Object.freeze({default:Pt,__moduleExports:Pt}),{}),Ft=(Object.freeze({default:wt,__moduleExports:wt}),{}),Ot=(Object.freeze({default:Ft,__moduleExports:Ft}),{}),It=(Object.freeze({default:Ot,__moduleExports:Ot}),i(function(e){var t,n=r&&r.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i=r&&r.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=r&&r.__extends||(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});!function(e){!function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={})),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.StringLiteral=9]="StringLiteral",e[e.JsxText=10]="JsxText",e[e.JsxTextAllWhiteSpaces=11]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=12]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=13]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=14]="TemplateHead",e[e.TemplateMiddle=15]="TemplateMiddle",e[e.TemplateTail=16]="TemplateTail",e[e.OpenBraceToken=17]="OpenBraceToken",e[e.CloseBraceToken=18]="CloseBraceToken",e[e.OpenParenToken=19]="OpenParenToken",e[e.CloseParenToken=20]="CloseParenToken",e[e.OpenBracketToken=21]="OpenBracketToken",e[e.CloseBracketToken=22]="CloseBracketToken",e[e.DotToken=23]="DotToken",e[e.DotDotDotToken=24]="DotDotDotToken",e[e.SemicolonToken=25]="SemicolonToken",e[e.CommaToken=26]="CommaToken",e[e.LessThanToken=27]="LessThanToken",e[e.LessThanSlashToken=28]="LessThanSlashToken",e[e.GreaterThanToken=29]="GreaterThanToken",e[e.LessThanEqualsToken=30]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=31]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=32]="EqualsEqualsToken",e[e.ExclamationEqualsToken=33]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=34]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=35]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=36]="EqualsGreaterThanToken",e[e.PlusToken=37]="PlusToken",e[e.MinusToken=38]="MinusToken",e[e.AsteriskToken=39]="AsteriskToken",e[e.AsteriskAsteriskToken=40]="AsteriskAsteriskToken",e[e.SlashToken=41]="SlashToken",e[e.PercentToken=42]="PercentToken",e[e.PlusPlusToken=43]="PlusPlusToken",e[e.MinusMinusToken=44]="MinusMinusToken",e[e.LessThanLessThanToken=45]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=46]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=47]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=48]="AmpersandToken",e[e.BarToken=49]="BarToken",e[e.CaretToken=50]="CaretToken",e[e.ExclamationToken=51]="ExclamationToken",e[e.TildeToken=52]="TildeToken",e[e.AmpersandAmpersandToken=53]="AmpersandAmpersandToken",e[e.BarBarToken=54]="BarBarToken",e[e.QuestionToken=55]="QuestionToken",e[e.ColonToken=56]="ColonToken",e[e.AtToken=57]="AtToken",e[e.EqualsToken=58]="EqualsToken",e[e.PlusEqualsToken=59]="PlusEqualsToken",e[e.MinusEqualsToken=60]="MinusEqualsToken",e[e.AsteriskEqualsToken=61]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=62]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=63]="SlashEqualsToken",e[e.PercentEqualsToken=64]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=65]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=66]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=67]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=68]="AmpersandEqualsToken",e[e.BarEqualsToken=69]="BarEqualsToken",e[e.CaretEqualsToken=70]="CaretEqualsToken",e[e.Identifier=71]="Identifier",e[e.BreakKeyword=72]="BreakKeyword",e[e.CaseKeyword=73]="CaseKeyword",e[e.CatchKeyword=74]="CatchKeyword",e[e.ClassKeyword=75]="ClassKeyword",e[e.ConstKeyword=76]="ConstKeyword",e[e.ContinueKeyword=77]="ContinueKeyword",e[e.DebuggerKeyword=78]="DebuggerKeyword",e[e.DefaultKeyword=79]="DefaultKeyword",e[e.DeleteKeyword=80]="DeleteKeyword",e[e.DoKeyword=81]="DoKeyword",e[e.ElseKeyword=82]="ElseKeyword",e[e.EnumKeyword=83]="EnumKeyword",e[e.ExportKeyword=84]="ExportKeyword",e[e.ExtendsKeyword=85]="ExtendsKeyword",e[e.FalseKeyword=86]="FalseKeyword",e[e.FinallyKeyword=87]="FinallyKeyword",e[e.ForKeyword=88]="ForKeyword",e[e.FunctionKeyword=89]="FunctionKeyword",e[e.IfKeyword=90]="IfKeyword",e[e.ImportKeyword=91]="ImportKeyword",e[e.InKeyword=92]="InKeyword",e[e.InstanceOfKeyword=93]="InstanceOfKeyword",e[e.NewKeyword=94]="NewKeyword",e[e.NullKeyword=95]="NullKeyword",e[e.ReturnKeyword=96]="ReturnKeyword",e[e.SuperKeyword=97]="SuperKeyword",e[e.SwitchKeyword=98]="SwitchKeyword",e[e.ThisKeyword=99]="ThisKeyword",e[e.ThrowKeyword=100]="ThrowKeyword",e[e.TrueKeyword=101]="TrueKeyword",e[e.TryKeyword=102]="TryKeyword",e[e.TypeOfKeyword=103]="TypeOfKeyword",e[e.VarKeyword=104]="VarKeyword",e[e.VoidKeyword=105]="VoidKeyword",e[e.WhileKeyword=106]="WhileKeyword",e[e.WithKeyword=107]="WithKeyword",e[e.ImplementsKeyword=108]="ImplementsKeyword",e[e.InterfaceKeyword=109]="InterfaceKeyword",e[e.LetKeyword=110]="LetKeyword",e[e.PackageKeyword=111]="PackageKeyword",e[e.PrivateKeyword=112]="PrivateKeyword",e[e.ProtectedKeyword=113]="ProtectedKeyword",e[e.PublicKeyword=114]="PublicKeyword",e[e.StaticKeyword=115]="StaticKeyword",e[e.YieldKeyword=116]="YieldKeyword",e[e.AbstractKeyword=117]="AbstractKeyword",e[e.AsKeyword=118]="AsKeyword",e[e.AnyKeyword=119]="AnyKeyword",e[e.AsyncKeyword=120]="AsyncKeyword",e[e.AwaitKeyword=121]="AwaitKeyword",e[e.BooleanKeyword=122]="BooleanKeyword",e[e.ConstructorKeyword=123]="ConstructorKeyword",e[e.DeclareKeyword=124]="DeclareKeyword",e[e.GetKeyword=125]="GetKeyword",e[e.InferKeyword=126]="InferKeyword",e[e.IsKeyword=127]="IsKeyword",e[e.KeyOfKeyword=128]="KeyOfKeyword",e[e.ModuleKeyword=129]="ModuleKeyword",e[e.NamespaceKeyword=130]="NamespaceKeyword",e[e.NeverKeyword=131]="NeverKeyword",e[e.ReadonlyKeyword=132]="ReadonlyKeyword",e[e.RequireKeyword=133]="RequireKeyword",e[e.NumberKeyword=134]="NumberKeyword",e[e.ObjectKeyword=135]="ObjectKeyword",e[e.SetKeyword=136]="SetKeyword",e[e.StringKeyword=137]="StringKeyword",e[e.SymbolKeyword=138]="SymbolKeyword",e[e.TypeKeyword=139]="TypeKeyword",e[e.UndefinedKeyword=140]="UndefinedKeyword",e[e.UniqueKeyword=141]="UniqueKeyword",e[e.FromKeyword=142]="FromKeyword",e[e.GlobalKeyword=143]="GlobalKeyword",e[e.OfKeyword=144]="OfKeyword",e[e.QualifiedName=145]="QualifiedName",e[e.ComputedPropertyName=146]="ComputedPropertyName",e[e.TypeParameter=147]="TypeParameter",e[e.Parameter=148]="Parameter",e[e.Decorator=149]="Decorator",e[e.PropertySignature=150]="PropertySignature",e[e.PropertyDeclaration=151]="PropertyDeclaration",e[e.MethodSignature=152]="MethodSignature",e[e.MethodDeclaration=153]="MethodDeclaration",e[e.Constructor=154]="Constructor",e[e.GetAccessor=155]="GetAccessor",e[e.SetAccessor=156]="SetAccessor",e[e.CallSignature=157]="CallSignature",e[e.ConstructSignature=158]="ConstructSignature",e[e.IndexSignature=159]="IndexSignature",e[e.TypePredicate=160]="TypePredicate",e[e.TypeReference=161]="TypeReference",e[e.FunctionType=162]="FunctionType",e[e.ConstructorType=163]="ConstructorType",e[e.TypeQuery=164]="TypeQuery",e[e.TypeLiteral=165]="TypeLiteral",e[e.ArrayType=166]="ArrayType",e[e.TupleType=167]="TupleType",e[e.UnionType=168]="UnionType",e[e.IntersectionType=169]="IntersectionType",e[e.ConditionalType=170]="ConditionalType",e[e.InferType=171]="InferType",e[e.ParenthesizedType=172]="ParenthesizedType",e[e.ThisType=173]="ThisType",e[e.TypeOperator=174]="TypeOperator",e[e.IndexedAccessType=175]="IndexedAccessType",e[e.MappedType=176]="MappedType",e[e.LiteralType=177]="LiteralType",e[e.ImportType=178]="ImportType",e[e.ObjectBindingPattern=179]="ObjectBindingPattern",e[e.ArrayBindingPattern=180]="ArrayBindingPattern",e[e.BindingElement=181]="BindingElement",e[e.ArrayLiteralExpression=182]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=183]="ObjectLiteralExpression",e[e.PropertyAccessExpression=184]="PropertyAccessExpression",e[e.ElementAccessExpression=185]="ElementAccessExpression",e[e.CallExpression=186]="CallExpression",e[e.NewExpression=187]="NewExpression",e[e.TaggedTemplateExpression=188]="TaggedTemplateExpression",e[e.TypeAssertionExpression=189]="TypeAssertionExpression",e[e.ParenthesizedExpression=190]="ParenthesizedExpression",e[e.FunctionExpression=191]="FunctionExpression",e[e.ArrowFunction=192]="ArrowFunction",e[e.DeleteExpression=193]="DeleteExpression",e[e.TypeOfExpression=194]="TypeOfExpression",e[e.VoidExpression=195]="VoidExpression",e[e.AwaitExpression=196]="AwaitExpression",e[e.PrefixUnaryExpression=197]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=198]="PostfixUnaryExpression",e[e.BinaryExpression=199]="BinaryExpression",e[e.ConditionalExpression=200]="ConditionalExpression",e[e.TemplateExpression=201]="TemplateExpression",e[e.YieldExpression=202]="YieldExpression",e[e.SpreadElement=203]="SpreadElement",e[e.ClassExpression=204]="ClassExpression",e[e.OmittedExpression=205]="OmittedExpression",e[e.ExpressionWithTypeArguments=206]="ExpressionWithTypeArguments",e[e.AsExpression=207]="AsExpression",e[e.NonNullExpression=208]="NonNullExpression",e[e.MetaProperty=209]="MetaProperty",e[e.TemplateSpan=210]="TemplateSpan",e[e.SemicolonClassElement=211]="SemicolonClassElement",e[e.Block=212]="Block",e[e.VariableStatement=213]="VariableStatement",e[e.EmptyStatement=214]="EmptyStatement",e[e.ExpressionStatement=215]="ExpressionStatement",e[e.IfStatement=216]="IfStatement",e[e.DoStatement=217]="DoStatement",e[e.WhileStatement=218]="WhileStatement",e[e.ForStatement=219]="ForStatement",e[e.ForInStatement=220]="ForInStatement",e[e.ForOfStatement=221]="ForOfStatement",e[e.ContinueStatement=222]="ContinueStatement",e[e.BreakStatement=223]="BreakStatement",e[e.ReturnStatement=224]="ReturnStatement",e[e.WithStatement=225]="WithStatement",e[e.SwitchStatement=226]="SwitchStatement",e[e.LabeledStatement=227]="LabeledStatement",e[e.ThrowStatement=228]="ThrowStatement",e[e.TryStatement=229]="TryStatement",e[e.DebuggerStatement=230]="DebuggerStatement",e[e.VariableDeclaration=231]="VariableDeclaration",e[e.VariableDeclarationList=232]="VariableDeclarationList",e[e.FunctionDeclaration=233]="FunctionDeclaration",e[e.ClassDeclaration=234]="ClassDeclaration",e[e.InterfaceDeclaration=235]="InterfaceDeclaration",e[e.TypeAliasDeclaration=236]="TypeAliasDeclaration",e[e.EnumDeclaration=237]="EnumDeclaration",e[e.ModuleDeclaration=238]="ModuleDeclaration",e[e.ModuleBlock=239]="ModuleBlock",e[e.CaseBlock=240]="CaseBlock",e[e.NamespaceExportDeclaration=241]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=242]="ImportEqualsDeclaration",e[e.ImportDeclaration=243]="ImportDeclaration",e[e.ImportClause=244]="ImportClause",e[e.NamespaceImport=245]="NamespaceImport",e[e.NamedImports=246]="NamedImports",e[e.ImportSpecifier=247]="ImportSpecifier",e[e.ExportAssignment=248]="ExportAssignment",e[e.ExportDeclaration=249]="ExportDeclaration",e[e.NamedExports=250]="NamedExports",e[e.ExportSpecifier=251]="ExportSpecifier",e[e.MissingDeclaration=252]="MissingDeclaration",e[e.ExternalModuleReference=253]="ExternalModuleReference",e[e.JsxElement=254]="JsxElement",e[e.JsxSelfClosingElement=255]="JsxSelfClosingElement",e[e.JsxOpeningElement=256]="JsxOpeningElement",e[e.JsxClosingElement=257]="JsxClosingElement",e[e.JsxFragment=258]="JsxFragment",e[e.JsxOpeningFragment=259]="JsxOpeningFragment",e[e.JsxClosingFragment=260]="JsxClosingFragment",e[e.JsxAttribute=261]="JsxAttribute",e[e.JsxAttributes=262]="JsxAttributes",e[e.JsxSpreadAttribute=263]="JsxSpreadAttribute",e[e.JsxExpression=264]="JsxExpression",e[e.CaseClause=265]="CaseClause",e[e.DefaultClause=266]="DefaultClause",e[e.HeritageClause=267]="HeritageClause",e[e.CatchClause=268]="CatchClause",e[e.PropertyAssignment=269]="PropertyAssignment",e[e.ShorthandPropertyAssignment=270]="ShorthandPropertyAssignment",e[e.SpreadAssignment=271]="SpreadAssignment",e[e.EnumMember=272]="EnumMember",e[e.SourceFile=273]="SourceFile",e[e.Bundle=274]="Bundle",e[e.JSDocTypeExpression=275]="JSDocTypeExpression",e[e.JSDocAllType=276]="JSDocAllType",e[e.JSDocUnknownType=277]="JSDocUnknownType",e[e.JSDocNullableType=278]="JSDocNullableType",e[e.JSDocNonNullableType=279]="JSDocNonNullableType",e[e.JSDocOptionalType=280]="JSDocOptionalType",e[e.JSDocFunctionType=281]="JSDocFunctionType",e[e.JSDocVariadicType=282]="JSDocVariadicType",e[e.JSDocComment=283]="JSDocComment",e[e.JSDocTypeLiteral=284]="JSDocTypeLiteral",e[e.JSDocTag=285]="JSDocTag",e[e.JSDocAugmentsTag=286]="JSDocAugmentsTag",e[e.JSDocClassTag=287]="JSDocClassTag",e[e.JSDocParameterTag=288]="JSDocParameterTag",e[e.JSDocReturnTag=289]="JSDocReturnTag",e[e.JSDocTypeTag=290]="JSDocTypeTag",e[e.JSDocTemplateTag=291]="JSDocTemplateTag",e[e.JSDocTypedefTag=292]="JSDocTypedefTag",e[e.JSDocPropertyTag=293]="JSDocPropertyTag",e[e.SyntaxList=294]="SyntaxList",e[e.NotEmittedStatement=295]="NotEmittedStatement",e[e.PartiallyEmittedExpression=296]="PartiallyEmittedExpression",e[e.CommaListExpression=297]="CommaListExpression",e[e.MergeDeclarationMarker=298]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=299]="EndOfDeclarationMarker",e[e.Count=300]="Count",e[e.FirstAssignment=58]="FirstAssignment",e[e.LastAssignment=70]="LastAssignment",e[e.FirstCompoundAssignment=59]="FirstCompoundAssignment",e[e.LastCompoundAssignment=70]="LastCompoundAssignment",e[e.FirstReservedWord=72]="FirstReservedWord",e[e.LastReservedWord=107]="LastReservedWord",e[e.FirstKeyword=72]="FirstKeyword",e[e.LastKeyword=144]="LastKeyword",e[e.FirstFutureReservedWord=108]="FirstFutureReservedWord",e[e.LastFutureReservedWord=116]="LastFutureReservedWord",e[e.FirstTypeNode=160]="FirstTypeNode",e[e.LastTypeNode=178]="LastTypeNode",e[e.FirstPunctuation=17]="FirstPunctuation",e[e.LastPunctuation=70]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=144]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=13]="LastLiteralToken",e[e.FirstTemplateToken=13]="FirstTemplateToken",e[e.LastTemplateToken=16]="LastTemplateToken",e[e.FirstBinaryOperator=27]="FirstBinaryOperator",e[e.LastBinaryOperator=70]="LastBinaryOperator",e[e.FirstNode=145]="FirstNode",e[e.FirstJSDocNode=275]="FirstJSDocNode",e[e.LastJSDocNode=293]="LastJSDocNode",e[e.FirstJSDocTagNode=285]="FirstJSDocTagNode",e[e.LastJSDocTagNode=293]="LastJSDocTagNode",e[e.FirstContextualKeyword=117]="FirstContextualKeyword",e[e.LastContextualKeyword=144]="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.ExportContext=32]="ExportContext",e[e.ContainsThis=64]="ContainsThis",e[e.HasImplicitReturn=128]="HasImplicitReturn",e[e.HasExplicitReturn=256]="HasExplicitReturn",e[e.GlobalAugmentation=512]="GlobalAugmentation",e[e.HasAsyncFunctions=1024]="HasAsyncFunctions",e[e.DisallowInContext=2048]="DisallowInContext",e[e.YieldContext=4096]="YieldContext",e[e.DecoratorContext=8192]="DecoratorContext",e[e.AwaitContext=16384]="AwaitContext",e[e.ThisNodeHasError=32768]="ThisNodeHasError",e[e.JavaScriptFile=65536]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=262144]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",e[e.JSDoc=1048576]="JSDoc",e[e.Ambient=2097152]="Ambient",e[e.InWithStatement=4194304]="InWithStatement",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",e[e.ContextFlags=6387712]="ContextFlags",e[e.TypeExcludesFlags=20480]="TypeExcludesFlags"}(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.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=3071]="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.FailedAndReported=3]="FailedAndReported"}(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.SkipNameGenerationScope=8]="SkipNameGenerationScope",e[e.ReservedInNestedScopes=16]="ReservedInNestedScopes",e[e.Optimistic=32]="Optimistic",e[e.FileLevel=64]="FileLevel"}(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.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags"}(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.Referenced=512]="Referenced",e[e.Shared=1024]="Shared",e[e.PreFinally=2048]="PreFinally",e[e.AfterFinally=4096]="AfterFinally",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={}));var t,r=function(){return function(){}}();e.OperationCanceledException=r,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.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.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.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.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.IgnoreErrors=3112960]="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.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=9469291]="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.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.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.StringLikeType=4]="StringLikeType",e[e.BooleanType=5]="BooleanType",e[e.ArrayLikeType=6]="ArrayLikeType",e[e.ESSymbolType=7]="ESSymbolType",e[e.Promise=8]="Promise",e[e.TypeWithCallSignature=9]="TypeWithCallSignature",e[e.ObjectType=10]="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.JSContainer=67108864]="JSContainer",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=67216319]="Value",e[e.Type=67901928]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=67216318]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=67216319]="BlockScopedVariableExcludes",e[e.ParameterExcludes=67216319]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=68008959]="EnumMemberExcludes",e[e.FunctionExcludes=67215791]="FunctionExcludes",e[e.ClassExcludes=68008383]="ClassExcludes",e[e.InterfaceExcludes=67901832]="InterfaceExcludes",e[e.RegularEnumExcludes=68008191]="RegularEnumExcludes",e[e.ConstEnumExcludes=68008831]="ConstEnumExcludes",e[e.ValueModuleExcludes=67215503]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=67208127]="MethodExcludes",e[e.GetAccessorExcludes=67150783]="GetAccessorExcludes",e[e.SetAccessorExcludes=67183551]="SetAccessorExcludes",e[e.TypeParameterExcludes=67639784]="TypeParameterExcludes",e[e.TypeAliasExcludes=67901928]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.HasExports=1952]="HasExports",e[e.HasMembers=6240]="HasMembers",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6240]="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.Partial=16]="Partial",e[e.HasNonUniformType=32]="HasNonUniformType",e[e.ContainsPublic=64]="ContainsPublic",e[e.ContainsProtected=128]="ContainsProtected",e[e.ContainsPrivate=256]="ContainsPrivate",e[e.ContainsStatic=512]="ContainsStatic",e[e.Late=1024]="Late",e[e.ReverseMapped=2048]="ReverseMapped",e[e.Synthetic=6]="Synthetic"}(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.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.CapturedBlockScopedBinding=131072]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=262144]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=524288]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=1048576]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=2097152]="NeedsLoopOutParameter",e[e.AssignmentsMarked=4194304]="AssignmentsMarked",e[e.ClassWithConstructorReference=8388608]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=16777216]="ConstructorReferenceInClass"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.String=2]="String",e[e.Number=4]="Number",e[e.Boolean=8]="Boolean",e[e.Enum=16]="Enum",e[e.StringLiteral=32]="StringLiteral",e[e.NumberLiteral=64]="NumberLiteral",e[e.BooleanLiteral=128]="BooleanLiteral",e[e.EnumLiteral=256]="EnumLiteral",e[e.ESSymbol=512]="ESSymbol",e[e.UniqueESSymbol=1024]="UniqueESSymbol",e[e.Void=2048]="Void",e[e.Undefined=4096]="Undefined",e[e.Null=8192]="Null",e[e.Never=16384]="Never",e[e.TypeParameter=32768]="TypeParameter",e[e.Object=65536]="Object",e[e.Union=131072]="Union",e[e.Intersection=262144]="Intersection",e[e.Index=524288]="Index",e[e.IndexedAccess=1048576]="IndexedAccess",e[e.Conditional=2097152]="Conditional",e[e.Substitution=4194304]="Substitution",e[e.FreshLiteral=8388608]="FreshLiteral",e[e.ContainsWideningType=16777216]="ContainsWideningType",e[e.ContainsObjectLiteral=33554432]="ContainsObjectLiteral",e[e.ContainsAnyFunctionType=67108864]="ContainsAnyFunctionType",e[e.NonPrimitive=134217728]="NonPrimitive",e[e.GenericMappedType=536870912]="GenericMappedType",e[e.Nullable=12288]="Nullable",e[e.Literal=224]="Literal",e[e.Unit=13536]="Unit",e[e.StringOrNumberLiteral=96]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=1120]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=14560]="DefinitelyFalsy",e[e.PossiblyFalsy=14574]="PossiblyFalsy",e[e.Intrinsic=134249103]="Intrinsic",e[e.Primitive=16382]="Primitive",e[e.StringLike=524322]="StringLike",e[e.NumberLike=84]="NumberLike",e[e.BooleanLike=136]="BooleanLike",e[e.EnumLike=272]="EnumLike",e[e.ESSymbolLike=1536]="ESSymbolLike",e[e.UnionOrIntersection=393216]="UnionOrIntersection",e[e.StructuredType=458752]="StructuredType",e[e.TypeVariable=1081344]="TypeVariable",e[e.InstantiableNonPrimitive=7372800]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=524288]="InstantiablePrimitive",e[e.Instantiable=7897088]="Instantiable",e[e.StructuredOrInstantiable=8355840]="StructuredOrInstantiable",e[e.Narrowable=142575359]="Narrowable",e[e.NotUnionOrUnit=134283777]="NotUnionOrUnit",e[e.RequiresWidening=50331648]="RequiresWidening",e[e.PropagatingFlags=117440512]="PropagatingFlags"}(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.ClassOrInterface=3]="ClassOrInterface"}(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.Variance||(e.Variance={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.HomomorphicMappedType=2]="HomomorphicMappedType",e[e.MappedTypeConstraint=4]="MappedTypeConstraint",e[e.ReturnType=8]="ReturnType",e[e.LiteralKeyof=16]="LiteralKeyof",e[e.NoConstraints=32]="NoConstraints",e[e.AlwaysStrict=64]="AlwaysStrict",e[e.PriorityImpliesCombination=28]="PriorityImpliesCombination"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.InferUnionTypes=1]="InferUnionTypes",e[e.NoDefault=2]="NoDefault",e[e.AnyDefault=4]="AnyDefault"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Maybe=1]="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.SpecialPropertyAssignmentKind||(e.SpecialPropertyAssignmentKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,r){void 0===r&&(r=!0);var n=t[e.category];return r?n.toLowerCase():n},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),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.ESNext=6]="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.JsxEmit||(e.JsxEmit={})),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.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.ESNext=6]="ESNext",e[e.Latest=6]="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.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.TypeScript=1]="TypeScript",e[e.ContainsTypeScript=2]="ContainsTypeScript",e[e.ContainsJsx=4]="ContainsJsx",e[e.ContainsESNext=8]="ContainsESNext",e[e.ContainsES2017=16]="ContainsES2017",e[e.ContainsES2016=32]="ContainsES2016",e[e.ES2015=64]="ES2015",e[e.ContainsES2015=128]="ContainsES2015",e[e.Generator=256]="Generator",e[e.ContainsGenerator=512]="ContainsGenerator",e[e.DestructuringAssignment=1024]="DestructuringAssignment",e[e.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",e[e.ContainsDecorators=4096]="ContainsDecorators",e[e.ContainsPropertyInitializer=8192]="ContainsPropertyInitializer",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsCapturedLexicalThis=32768]="ContainsCapturedLexicalThis",e[e.ContainsLexicalThisInComputedPropertyName=65536]="ContainsLexicalThisInComputedPropertyName",e[e.ContainsDefaultValueAssignments=131072]="ContainsDefaultValueAssignments",e[e.ContainsParameterPropertyAssignments=262144]="ContainsParameterPropertyAssignments",e[e.ContainsSpread=524288]="ContainsSpread",e[e.ContainsObjectSpread=1048576]="ContainsObjectSpread",e[e.ContainsRest=524288]="ContainsRest",e[e.ContainsObjectRest=1048576]="ContainsObjectRest",e[e.ContainsComputedPropertyName=2097152]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=4194304]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=8388608]="ContainsBindingPattern",e[e.ContainsYield=16777216]="ContainsYield",e[e.ContainsHoistedDeclarationOrCompletion=33554432]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=67108864]="ContainsDynamicImport",e[e.Super=134217728]="Super",e[e.ContainsSuper=268435456]="ContainsSuper",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=3]="AssertTypeScript",e[e.AssertJsx=4]="AssertJsx",e[e.AssertESNext=8]="AssertESNext",e[e.AssertES2017=16]="AssertES2017",e[e.AssertES2016=32]="AssertES2016",e[e.AssertES2015=192]="AssertES2015",e[e.AssertGenerator=768]="AssertGenerator",e[e.AssertDestructuringAssignment=3072]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536872257]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=671089985]="PropertyAccessExcludes",e[e.NodeExcludes=939525441]="NodeExcludes",e[e.ArrowFunctionExcludes=1003902273]="ArrowFunctionExcludes",e[e.FunctionExcludes=1003935041]="FunctionExcludes",e[e.ConstructorExcludes=1003668801]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=1003668801]="MethodOrAccessorExcludes",e[e.ClassExcludes=942011713]="ClassExcludes",e[e.ModuleExcludes=977327425]="ModuleExcludes",e[e.TypeExcludes=-3]="TypeExcludes",e[e.ObjectLiteralExcludes=942740801]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=940049729]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=948962625]="VariableDeclarationListExcludes",e[e.ParameterExcludes=939525441]="ParameterExcludes",e[e.CatchClauseExcludes=940574017]="CatchClauseExcludes",e[e.BindingPatternExcludes=940049729]="BindingPatternExcludes",e[e.TypeScriptClassSyntaxMask=274432]="TypeScriptClassSyntaxMask",e[e.ES2015FunctionSyntaxMask=163840]="ES2015FunctionSyntaxMask"}(e.TransformFlags||(e.TransformFlags={})),function(e){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.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.Spread=1024]="Spread",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.MakeTemplateObject=65536]="MakeTemplateObject",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=65536]="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.EmitHint||(e.EmitHint={})),function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.NoSpaceIfEmpty=262144]="NoSpaceIfEmpty",e[e.SingleElement=524288]="SingleElement",e[e.Modifiers=131328]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=384]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=16449]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=272]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=262576]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=262448]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=263122]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CommaListElements=272]="CommaListElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=262576]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=131072]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26896]="TypeArguments",e[e.TypeParameters=26896]="TypeParameters",e[e.Parameters=1296]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters"}(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:"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}}}(o||(o={})),function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(o||(o={})),function(e){!function(t){var r,n,i,a="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},o=!1,s=0;t.mark=function(t){o&&(n.set(t,e.timestamp()),r.set(t,(r.get(t)||0)+1),a(t))},t.measure=function(t,r,a){if(o){var c=a&&n.get(a)||e.timestamp(),u=r&&n.get(r)||s;i.set(t,(i.get(t)||0)+(c-u))}},t.getCount=function(e){return r&&r.get(e)||0},t.getDuration=function(e){return i&&i.get(e)||0},t.forEachMeasure=function(e){i.forEach(function(t,r){e(r,t)})},t.enable=function(){r=e.createMap(),n=e.createMap(),i=e.createMap(),o=!0,s=e.timestamp()},t.disable=function(){o=!1}}(e.performance||(e.performance={}))}(o||(o={})),function(e){e.versionMajorMinor="2.9",e.version=e.versionMajorMinor+".0-dev.20180421"}(o||(o={})),function(e){e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)}}(o||(o={})),function(e){function t(){var e=Object.create(null);return e.__=void 0,delete e.__,e}function r(){return new i}e.emptyArray=[],e.closeFileWatcher=function(e){e.close()},e.createMap=r,e.createUnderscoreEscapedMap=function(){return new i},e.createSymbolTable=function(e){var t=r();if(e)for(var n=0,i=e;n<i.length;n++){var a=i[n];t.set(a.escapedName,a)}return t},e.createMapFromTemplate=function(e){var t=new i;for(var r in e)E.call(e,r)&&t.set(r,e[r]);return t};var n,i="undefined"!=typeof Map&&"entries"in Map.prototype?Map:(n=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e)}return e.prototype.next=function(){var e=this.index;return e<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[e]),done:!1}):{value:void 0,done:!0}},e}(),function(){function e(){this.data=t(),this.size=0}return e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.has(e)||this.size++,this.data[e]=t,this},e.prototype.has=function(e){return e in this.data},e.prototype.delete=function(e){return!!this.has(e)&&(this.size--,delete this.data[e],!0)},e.prototype.clear=function(){this.data=t(),this.size=0},e.prototype.keys=function(){return new n(this.data,function(e,t){return t})},e.prototype.values=function(){return new n(this.data,function(e,t){return e[t]})},e.prototype.entries=function(){return new n(this.data,function(e,t){return[t,e[t]]})},e.prototype.forEach=function(e){for(var t in this.data)e(this.data[t],t)},e}());function a(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}}function o(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0}function s(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}}function c(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r))return r;return-1}function u(e,t,r){if(void 0===r&&(r=V),e)for(var n=0,i=e;n<i.length;n++){if(r(i[n],t))return!0}return!1}function l(e,t,r){for(var n=r||0;n<e.length;n++)if(u(t,e.charCodeAt(n)))return n;return-1}function _(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r}function d(e){var t;if(e){t=[];for(var r=0,n=e;r<n.length;r++){var i=n[r];i&&(R(i)?v(t,i):t.push(i))}}return t}function f(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(R(i)?v(r,i):r.push(i))}}return r}function m(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++){if(t(n[r]))return!0}}return!1}function g(e,t,r){return e?0===e.length?[]:1===e.length?e.slice():r?function(e,t,r){var n=e.map(function(e,t){return t});x(e,n,r);for(var i=e[n[0]],a=[n[0]],o=1;o<n.length;o++){var s=n[o],c=e[s];t(i,c)||(a.push(s),i=c)}return a.sort(),a.map(function(t){return e[t]})}(e,t,r):function(e,t){for(var r=[],n=0,i=e;n<i.length;n++)b(r,i[n],t);return r}(e,t):void 0}function y(e,t,r){if(void 0===r&&(r=V),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0}function h(e,t){return t<0?e.length+t:t}function v(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:h(t,r),n=void 0===n?t.length:h(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function b(e,t,r){return!u(e,t,r)&&(e.push(t),!0)}function x(e,t,r){t.sort(function(t,n){return r(e[t],e[n])||X(t,n)})}function S(e,t){return e.slice().sort(t)}function k(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:{value:e[++t-1],done:!1}}}}function D(e){return 0===e.length?void 0:e[e.length-1]}function T(e,t,r,n,i){if(!e||0===e.length)return-1;for(var a=i||0,o=e.length-1,s=r(t);a<=o;){var c=a+(o-a>>1);switch(n(r(e[c]),s)){case-1:a=c+1;break;case 0:return c;case 1:o=c-1}}return~a}function C(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.toPath=function(e,t,r){return r(me(e)?oe(e):he(e,t))},e.length=function(e){return e?e.length:0},e.forEach=a,e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},e.firstDefinedIterator=function(e,t){for(;;){var r=e.next(),n=r.value;if(r.done)return;var i=t(n);if(void 0!==i)return i}},e.findAncestor=function(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}},e.zipWith=function(e,t,r){var n=[];Qe.assertEqual(e.length,t.length);for(var i=0;i<e.length;i++)n.push(r(e[i],t[i],i));return n},e.zipToIterator=function(e,t){Qe.assertEqual(e.length,t.length);var r=0;return{next:function(){return r===e.length?{value:void 0,done:!0}:{value:[e[++r-1],t[r-1]],done:!1}}}},e.zipToMap=function(e,t){Qe.assert(e.length===t.length);for(var n=r(),i=0;i<e.length;++i)n.set(e[i],t[i]);return n},e.every=o,e.find=s,e.findLast=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=c,e.findMap=function(e,t){for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}Qe.fail()},e.contains=u,e.arraysEqual=function(e,t,r){return void 0===r&&(r=V),e.length===t.length&&e.every(function(e,n){return r(e,t[n])})},e.indexOfAnyCharCode=l,e.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},e.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=function(e){e.length=0},e.map=_,e.mapIterator=function(e,t){return{next:function(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}},e.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=d,e.flatMap=f,e.flatMapIterator=function(t,r){var n=t.next();if(n.done)return e.emptyIterator;var i=a(n.value);return{next:function(){for(;;){var e=i.next();if(!e.done)return e;var r=t.next();if(r.done)return r;i=a(r.value)}}};function a(t){var n=r(t);return void 0===n?e.emptyIterator:R(n)?k(n):n}},e.sameFlatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||R(a))&&(r||(r=e.slice(0,n)),R(a)?v(r,a):r.push(a))}return r||e},e.mapAllOrFail=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},e.mapDefined=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},e.mapDefinedIterator=function(e,t){return{next:function(){for(;;){var r=e.next();if(r.done)return r;var n=t(r.value);if(void 0!==n)return{value:n,done:!1}}}}},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var t=!1;return{next:function(){var r=t;return t=!0,r?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=function(e,t,r){var n;if(e){n=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var u=r(e.slice(s,c),a,s,c);u&&n.push(u),s=c}a=o,c++}}return n},e.mapEntries=function(e,t){if(e){var n=r();return e.forEach(function(e,r){var i=t(r,e),a=i[0],o=i[1];n.set(a,o)}),n}},e.some=m,e.concatenate=function(e,t){return m(t)?m(e)?e.concat(t):t:e},e.deduplicate=g,e.insertSorted=function(e,t,r){if(0!==e.length){var n=T(e,t,J,r);n<0&&e.splice(~n,0,t)}else e.push(t)},e.sortAndDeduplicate=function(e,t,r){return function(e,t){if(e){if(0===e.length)return[];for(var r=e[0],n=[r],i=1;i<e.length;i++){var a=e[i];switch(t(a,r)){case!0:case 0:continue;case-1:return Qe.fail("Array is unsorted.")}n.push(r=a)}return n}}(S(e,t),r||t)},e.arrayIsEqualTo=y,e.changesAffectModuleResolution=function(e,t){return!(e&&e.module===t.module&&e.moduleResolution===t.moduleResolution&&e.noResolve===t.noResolve&&e.target===t.target&&e.noLib===t.noLib&&e.jsx===t.jsx&&e.allowJs===t.allowJs&&e.rootDir===t.rootDir&&e.configFilePath===t.configFilePath&&e.baseUrl===t.baseUrl&&e.maxNodeModuleJsDepth===t.maxNodeModuleJsDepth&&y(e.lib,t.lib)&&y(e.typeRoots,t.typeRoots)&&y(e.rootDirs,t.rootDirs)&&w(e.paths,t.paths))},e.compact=function(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},e.relativeComplement=function(e,t,r){if(!t||!e||0===t.length||0===e.length)return t;var n=[];e:for(var i=0,a=0;a<t.length;a++){a>0&&Qe.assertGreaterThanOrEqual(r(t[a],t[a-1]),0);t:for(var o=i;i<e.length;i++)switch(i>o&&Qe.assertGreaterThanOrEqual(r(e[i],e[i-1]),0),r(t[a],e[i])){case-1:n.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return n},e.sum=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},e.append=function(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)},e.addRange=v,e.pushIfUnique=b,e.appendIfUnique=function(e,t,r){return e?(b(e,t,r),e):[t]},e.sort=S,e.best=function(e,t){var r=e.next();if(!r.done)for(var n=r.value;;){var i=e.next(),a=i.value;if(i.done)return n;t(a,n)&&(n=a)}},e.arrayIterator=k,e.stableSort=function(e,t){var r=e.map(function(e,t){return t});return x(e,r,t),r.map(function(t){return e[t]})},e.rangeEquals=function(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},e.elementAt=function(e,t){if(e&&(t=h(e,t))<e.length)return e[t]},e.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},e.first=function(e){return Qe.assert(0!==e.length),e[0]},e.lastOrUndefined=D,e.last=function(e){return Qe.assert(0!==e.length),e[e.length-1]},e.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},e.singleOrMany=function(e){return e&&1===e.length?e[0]:e},e.replaceElement=function(e,t,r){var n=e.slice(0);return n[t]=r,n},e.binarySearch=T,e.reduceLeft=C;var E=Object.prototype.hasOwnProperty;function N(e,t){return E.call(e,t)}function A(e,t){for(var r,n=[],i=e.next(),a=i.value,o=i.done;!o;a=(r=e.next()).value,o=r.done,r)n.push(t?t(a):a);return n}function P(e,t){e.forEach(function(e,r){t.set(r,e)})}function w(e,t,r){if(void 0===r&&(r=V),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(E.call(e,n)){if(void 0===!E.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(E.call(t,n)&&!E.call(e,n))return!1;return!0}function F(e,t,n){void 0===n&&(n=J);for(var i=r(),a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);void 0!==c&&i.set(c,n(s))}return i}function O(e,t,r){void 0===r&&(r=J);for(var n=I(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function I(){var e=r();return e.add=M,e.remove=L,e}function M(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function L(e,t){var r=this.get(e);r&&(ct(r,t),r.length||this.delete(e))}function R(e){return Array.isArray?Array.isArray(e):e instanceof Array}function B(e){return"string"==typeof e}function j(e){}function J(e){return e}function z(e){return e.toLowerCase()}function K(e,t,r,n,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return C(a,function(e,t){return t(e)},e)}}return n?function(i){return n(r(t(e(i))))}:r?function(n){return r(t(e(n)))}:t?function(r){return t(e(r))}:e?function(t){return e(t)}:function(e){return e}}function U(e,t,r){return r=r||0,e.replace(/{(\d+)}/g,function(e,n){return Qe.assertDefined(t[+n+r])})}function q(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function V(e,t){return e===t}function W(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function H(e,t){return V(e,t)}function G(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function X(e,t){return G(e,t)}function Q(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Y(e,t){return G(e,t)}e.hasProperty=N,e.getProperty=function(e,t){return E.call(e,t)?e[t]:void 0},e.getOwnKeys=function(e){var t=[];for(var r in e)E.call(e,r)&&t.push(r);return t},e.getOwnValues=function(e){var t=[];for(var r in e)E.call(e,r)&&t.push(e[r]);return t},e.arrayFrom=A,e.forEachEntry=function(e,t){for(var r,n=e.entries(),i=n.next(),a=i.value,o=i.done;!o;a=(r=n.next()).value,o=r.done,r){var s=a[0],c=t(a[1],s);if(c)return c}},e.forEachKey=function(e,t){for(var r,n=e.keys(),i=n.next(),a=i.value,o=i.done;!o;a=(r=n.next()).value,o=r.done,r){var s=t(a);if(s)return s}},e.copyEntries=P,e.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];for(var o in a)N(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=w,e.arrayToMap=F,e.arrayToNumericMap=function(e,t,r){void 0===r&&(r=J);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToSet=function(e,t){return F(e,t||function(e){return e},function(){return!0})},e.arrayToMultiMap=O,e.group=function(e,t){return A(O(e,t).values())},e.cloneMap=function(e){var t=r();return P(e,t),t},e.clone=function(e){var t={};for(var r in e)E.call(e,r)&&(t[r]=e[r]);return t},e.extend=function(e,t){var r={};for(var n in t)E.call(t,n)&&(r[n]=t[n]);for(var n in e)E.call(e,n)&&(r[n]=e[n]);return r},e.createMultiMap=I,e.isArray=R,e.toArray=function(e){return R(e)?e:[e]},e.isString=B,e.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},e.cast=function(e,t){if(void 0!==e&&t(e))return e;e&&"number"==typeof e.kind?Qe.fail("Invalid cast. The supplied "+Qe.showSyntaxKind(e)+" did not pass the test '"+Qe.getFunctionName(t)+"'."):Qe.fail("Invalid cast. The supplied value did not pass the test '"+Qe.getFunctionName(t)+"'.")},e.noop=j,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.identity=J,e.toLowerCase=z,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.chain=function(e,t,r,n,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return K.apply(void 0,_(a,function(t){return t(e)}))}}return n?function(i){return K(e(i),t(i),r(i),n(i))}:r?function(n){return K(e(n),t(n),r(n))}:t?function(r){return K(e(r),t(r))}:e?function(t){return K(e(t))}:function(e){return function(e){return e}}},e.compose=K,e.formatStringFromArgs=U,e.getLocaleSpecificMessage=q,e.createFileDiagnostic=function(e,t,r,n){Qe.assertGreaterThanOrEqual(t,0),Qe.assertGreaterThanOrEqual(r,0),e&&(Qe.assertLessThanOrEqual(t,e.text.length),Qe.assertLessThanOrEqual(t+r,e.text.length));var i=q(n);return arguments.length>4&&(i=U(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary}},e.formatMessage=function(e,t){var r=q(t);return arguments.length>2&&(r=U(r,arguments,2)),r},e.createCompilerDiagnostic=function(e){var t=q(e);return arguments.length>1&&(t=U(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var r=q(t);return arguments.length>2&&(r=U(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e},e.equateValues=V,e.equateStringsCaseInsensitive=W,e.equateStringsCaseSensitive=H,e.compareValues=X,e.min=function(e,t,r){return-1===r(e,t)?e:t},e.compareStringsCaseInsensitive=Q,e.compareStringsCaseSensitive=Y;var $,Z,ee=function(){var e,t,r=function(){if("object"===("undefined"==typeof Intl?"undefined":p(Intl))&&"function"==typeof Intl.Collator)return i;if("function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return a;return o}();return function(n){return void 0===n?e||(e=r(n)):"en-US"===n?t||(t=r(n)):r(n)};function n(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return e<t?-1:e>t?1:0}}}();function te(e){return e.file?e.file.fileName:void 0}function re(e){return e.replace(/\\/g,"/")}function ne(e){if(47===e.charCodeAt(0)){if(47!==e.charCodeAt(1))return 1;var t=e.indexOf("/",2);if(t<0)return 2;var r=e.indexOf("/",t+1);return r<0?t+1:r+1}if(58===e.charCodeAt(1)&&(47===e.charCodeAt(2)||92===e.charCodeAt(2)))return 3;if(0===e.lastIndexOf("file:///",0))return"file:///".length;var n=e.indexOf("://");return-1!==n?n+"://".length:0}e.getUILocale=function(){return Z},e.setUILocale=function(e){Z!==e&&(Z=e,$=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return($||($=ee(Z)))(e,t)},e.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},e.compareDiagnostics=function(e,t){return Y(te(e),te(t))||X(e.start,t.start)||X(e.length,t.length)||X(e.code,t.code)||function(e,t){for(;e&&t;){var r=B(e)?e:e.messageText,n=B(t)?t:t.messageText,i=Y(r,n);if(i)return i;e=B(e)?void 0:e.next,t=B(t)?void 0:t.next}return e||t?e?1:-1:0}(e.messageText,t.messageText)||0},e.compareBooleans=function(e,t){return X(e?1:0,t?1:0)},e.normalizeSlashes=re,e.getRootLength=ne,e.directorySeparator="/";var ie=47;function ae(t,r){for(var n=[],i=0,a=t.substr(r).split(e.directorySeparator);i<a.length;i++){var o=a[i];"."!==o&&(".."===o&&n.length>0&&".."!==D(n)?n.pop():o&&n.push(o))}return n}function oe(e){return se(e).path}function se(t){var r=ne(t=re(t)),n=t.substr(0,r),i=ae(t,r);if(i.length){var a=n+i.join(e.directorySeparator);return{path:ce(t)?a+e.directorySeparator:a,parts:i}}return{path:n,parts:i}}function ce(e){return e.charCodeAt(e.length-1)===ie}function ue(t){return t.substr(0,Math.max(ne(t),t.lastIndexOf(e.directorySeparator)))}function le(e){return e&&!me(e)&&Ae(e,"://")}function _e(e){return/^\.\.?($|[\\/])/.test(e)}function de(e){return e.target||0}function pe(t){return"number"==typeof t.module?t.module:de(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function fe(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0}function me(e){return e&&0!==ne(e)}function ge(e,t){var r=ae(e,t);return[e.substr(0,t)].concat(r)}function ye(e,t){var r=ne(e=re(e));return 0===r&&(r=ne(e=De(re(t),e))),ge(e,r)}function he(e,t){return ve(ye(e,t))}function ve(t){if(t&&t.length)return t[0]+t.slice(1).join(e.directorySeparator)}function be(t,r){return le(t)?function(t){for(var r=t.length,n=t.indexOf("://")+"://".length;n<r&&47===t.charCodeAt(n);)n++;if(n===r)return[t];var i=t.indexOf(e.directorySeparator,n);return-1!==i?ge(t,n=i+1):[t+e.directorySeparator]}(t):ye(t,r)}function xe(t,r,n,i,a){var o,s=be(r,n),c=be(t,n);for(c.length>1&&""===D(c)&&c.pop(),o=0;o<s.length&&o<c.length&&i(c[o])===i(s[o]);o++);if(o){for(var u="",l=s.slice(o,s.length);o<c.length;o++)""!==c[o]&&(u=u+".."+e.directorySeparator);return u+l.join(e.directorySeparator)}var _=ve(s);return a&&me(_)&&(_="file:///"+_),_}function Se(e){return _e(e)?e:"./"+e}function ke(t){if(void 0!==t){var r=t.lastIndexOf(e.directorySeparator);return r<0?t:t.substring(r+1)}}function De(t,r){return t&&t.length?r&&r.length?0!==ne(r)?r:t.charAt(t.length-1)===e.directorySeparator?t+r:t+e.directorySeparator+r:t:r}function Te(t){return t.charAt(t.length-1)===e.directorySeparator?t.substr(0,t.length-1):t}function Ce(e,t,r,n){if(void 0===e||void 0===t)return!1;if(e===t)return!0;if((e=Te(e))===(t=Te(t)))return!0;var i=ye(e,r),a=ye(t,r);if(a.length<i.length)return!1;for(var o=n?W:H,s=0;s<i.length;s++)if(!o(i[s],a[s]))return!1;return!0}function Ee(e,t){return 0===e.lastIndexOf(t,0)}function Ne(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function Ae(e,t){return-1!==e.indexOf(t)}function Pe(e){return Ae(ke(e),".")}function we(e,t){return e.length>t.length&&Ne(e,t)}function Fe(e,t){for(var r=0,n=t;r<n.length;r++){if(we(e,n[r]))return!0}return!1}e.normalizePath=oe,e.normalizePathAndParts=se,e.pathEndsWithDirectorySeparator=ce,e.getDirectoryPath=ue,e.isUrl=le,e.pathIsRelative=_e,e.getEmitScriptTarget=de,e.getEmitModuleKind=pe,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=pe(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.getAreDeclarationMapsEnabled=function(e){return!(!e.declaration||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=pe(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop?r!==e.ModuleKind.None&&r<e.ModuleKind.ES2015:r===e.ModuleKind.System},e.getStrictOptionValue=function(e,t){return void 0===e[t]?e.strict:e[t]},e.hasZeroOrOneAsteriskCharacter=fe,e.isRootedDiskPath=me,e.convertToRelativePath=function(e,t,r){return me(e)?xe(t,e,t,r,!1):e},e.getNormalizedPathComponents=ye,e.getNormalizedAbsolutePath=he,e.getNormalizedPathFromPathComponents=ve,e.getRelativePathToDirectoryOrUrl=xe,e.getRelativePath=function(e,t,r){return Se(xe(t,e,t,r,!1))},e.ensurePathIsRelative=Se,e.getBaseFileName=ke,e.combinePaths=De,e.removeTrailingDirectorySeparator=Te,e.ensureTrailingDirectorySeparator=function(t){return t.charAt(t.length-1)!==e.directorySeparator?t+e.directorySeparator:t},e.comparePaths=function(e,t,r,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;e=Te(e),t=Te(t);for(var i=ye(e,r),a=ye(t,r),o=Math.min(i.length,a.length),s=n?Q:Y,c=0;c<o;c++){var u=s(i[c],a[c]);if(0!==u)return u}return X(i.length,a.length)},e.containsPath=Ce,e.startsWith=Ee,e.removePrefix=function(e,t){return Ee(e,t)?e.substr(t.length):e},e.endsWith=Ne,e.removeSuffix=function(e,t){return Ne(e,t)?e.slice(0,e.length-t.length):e},e.stringContains=Ae,e.hasExtension=Pe,e.fileExtensionIs=we,e.fileExtensionIsOneOf=Fe;var Oe=/[^\w\s\/]/g,Ie=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Me="(?!("+e.commonPackageFolders.join("|")+")(/|$))",Le={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+Me+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Ue(e,Le.singleAsteriskRegexFragment)}},Re={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+Me+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Ue(e,Re.singleAsteriskRegexFragment)}},Be={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return Ue(e,Be.singleAsteriskRegexFragment)}},je={files:Le,directories:Re,exclude:Be};function Je(e,t,r){var n=ze(e,t,r);if(n&&n.length)return"^("+n.map(function(e){return"("+e+")"}).join("|")+")"+("exclude"===r?"($|/)":"$")}function ze(t,r,n){if(void 0!==t&&0!==t.length)return f(t,function(t){return t&&function(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",u=!1,l=ye(t,r),_=D(l);if("exclude"!==n&&"**"===_)return;l[0]=Te(l[0]),Ke(_)&&l.push("**","*");for(var d=0,p=0,f=l;p<f.length;p++){var m=f[p];if("**"===m)c+=o;else if("directories"===n&&(c+="(",d++),u&&(c+=e.directorySeparator),"exclude"!==n){var g="";42===m.charCodeAt(0)?(g+="([^./]"+a+")?",m=m.substr(1)):63===m.charCodeAt(0)&&(g+="[^./]",m=m.substr(1)),(g+=m.replace(Oe,s))!==m&&(c+=Me),c+=g}else c+=m.replace(Oe,s);u=!0}for(;d>0;)c+=")?",d--;return c}(t,r,n,je[n])})}function Ke(e){return!/[.*?]/.test(e)}function Ue(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function qe(e,t,r,n,i){e=oe(e);var a=De(i=oe(i),e);return{includeFilePatterns:_(ze(r,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Je(r,a,"files"),includeDirectoryPattern:Je(r,a,"directories"),excludePattern:Je(t,a,"exclude"),basePaths:function(e,t,r){var n=[e];if(t){for(var i=[],a=0,s=t;a<s.length;a++){var c=s[a],u=me(c)?c:oe(De(e,c));i.push(Ve(u))}i.sort(r?Y:Q);for(var l=function(t){o(n,function(n){return!Ce(n,t,e,!r)})&&n.push(t)},_=0,d=i;_<d.length;_++){var p=d[_];l(p)}}return n}(e,r,n)}}function Ve(t){var r=l(t,Ie);return r<0?Pe(t)?Te(ue(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function We(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getRegularExpressionForWildcard=Je,e.isImplicitGlob=Ke,e.getFileMatcherPatterns=qe,e.matchFiles=function(e,t,r,n,i,a,o,s){for(var u=qe(e=oe(e),r,n,i,a=oe(a)),l=i?"":"i",_=u.includeFilePatterns&&u.includeFilePatterns.map(function(e){return new RegExp(e,l)}),p=u.includeDirectoryPattern&&new RegExp(u.includeDirectoryPattern,l),f=u.excludePattern&&new RegExp(u.excludePattern,l),m=_?_.map(function(){return[]}):[[]],g=0,y=u.basePaths;g<y.length;g++){var h=y[g];v(h,De(a,h),o)}return d(m);function v(e,r,n){for(var i=s(e),a=i.files,o=i.directories,u=function(n){var i=De(e,n),a=De(r,n);if(t&&!Fe(i,t))return"continue";if(f&&f.test(a))return"continue";if(_){var o=c(_,function(e){return e.test(a)});-1!==o&&m[o].push(i)}else m[0].push(i)},l=0,d=S(a,Y);l<d.length;l++)u(h=d[l]);if(void 0===n||0!=--n)for(var g=0,y=S(o,Y);g<y.length;g++){var h=y[g],b=De(e,h),x=De(r,h);p&&!p.test(x)||f&&f.test(x)||v(b,x,n)}}},e.ensureScriptKind=function(e,t){return t||We(e)||3},e.getScriptKindFromFileName=We,e.supportedTypeScriptExtensions=[".ts",".tsx",".d.ts"],e.supportedTypescriptExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJavascriptExtensions=[".js",".jsx"];var He=e.supportedTypeScriptExtensions.concat(e.supportedJavascriptExtensions);function Ge(t,r){var n=t&&t.allowJs;return r&&0!==r.length&&n?g(He.concat(r.map(function(e){return e.extension})),H,Y):n?He:e.supportedTypeScriptExtensions}function Xe(e,t){return e<2?0:e<t.length?2:t.length}e.getSupportedExtensions=Ge,e.hasJavaScriptFileExtension=function(t){return a(e.supportedJavascriptExtensions,function(e){return we(t,e)})},e.hasTypeScriptFileExtension=function(t){return a(e.supportedTypeScriptExtensions,function(e){return we(t,e)})},e.isSupportedSourceFileName=function(e,t,r){if(!e)return!1;for(var n=0,i=Ge(t,r);n<i.length;n++)if(we(e,i[n]))return!0;return!1},function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=function(e,t){for(var r=t.length-1;r>=0;r--)if(we(e,t[r]))return Xe(r,t);return 0},e.adjustExtensionPriority=Xe,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var Qe,Ye=[".d.ts",".ts",".js",".tsx",".jsx"];function $e(e){for(var t=0,r=Ye;t<r.length;t++){var n=Ze(e,r[t]);if(void 0!==n)return n}return e}function Ze(e,t){return we(e,t)?et(e,t):void 0}function et(e,t){return e.substring(0,e.length-t.length)}function tt(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function rt(e,t){this.flags=t,Qe.isDebugging&&(this.checker=e)}function nt(){}function it(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function at(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function ot(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function st(e,t){e[t]=e[e.length-1],e.pop()}function ct(e,t){return function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return st(e,r),!0;return!1}(e,function(e){return e===t})}function ut(e,t,r){for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);lt(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n}function lt(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&Ee(t,r)&&Ne(t,n)}function _t(e){Qe.assert(fe(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function dt(t){return s(e.supportedTypescriptExtensionsForExtractExtension,function(e){return we(t,e)})||s(e.supportedJavascriptExtensions,function(e){return we(t,e)})}e.removeFileExtension=$e,e.tryRemoveExtension=Ze,e.removeExtension=et,e.changeExtension=function(e,t){return $e(e)+t},e.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},e.objectAllocator={getNodeConstructor:function(){return it},getTokenConstructor:function(){return it},getIdentifierConstructor:function(){return it},getSourceFileConstructor:function(){return it},getSymbolConstructor:function(){return tt},getTypeConstructor:function(){return rt},getSignatureConstructor:function(){return nt},getSourceMapSourceConstructor:function(){return at}},function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={})),function(t){function r(e,t,i,a){e||(i&&(t+="\r\nVerbose Debug Information: "+("string"==typeof i?i:i())),n(t?"False expression: "+t:"False expression.",a||r))}function n(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||n),r}function i(e,t){return r(void 0!==e&&null!==e,t),e}function a(t){var r=e.SyntaxKind;return r?r[t.kind]:t.kind.toString()}t.currentAssertionLevel=0,t.isDebugging=!1,t.shouldAssert=function(e){return t.currentAssertionLevel>=e},t.assert=r,t.assertEqual=function(e,t,r,i){e!==t&&n("Expected "+e+" === "+t+". "+(r?i?r+" "+i:r:""))},t.assertLessThan=function(e,t,r){e>=t&&n("Expected "+e+" < "+t+". "+(r||""))},t.assertLessThanOrEqual=function(e,t){e>t&&n("Expected "+e+" <= "+t)},t.assertGreaterThanOrEqual=function(e,t){e<t&&n("Expected "+e+" >= "+t)},t.fail=n,t.assertDefined=i,t.assertEachDefined=function(e,t){for(var r=0,n=e;r<n.length;r++)i(n[r],t);return e},t.assertNever=function e(t,r,i){return n(r||"Illegal value: "+t,i||e)},t.getFunctionName=function(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""},t.showSymbol=function(t){var r=e.SymbolFlags;return"{ flags: "+(r?function(e,t){for(var r=[],n=0;n<=30;n++){var i=1<<n;e&i&&r.push(t[i])}return r.join("|")}(t.flags,r):t.flags)+"; declarations: "+_(t.declarations,a)+" }"},t.showSyntaxKind=a}(Qe=e.Debug||(e.Debug={})),e.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return ot(e,r),!0;return!1},e.orderedRemoveItemAt=ot,e.unorderedRemoveItemAt=st,e.unorderedRemoveItem=ct,e.createGetCanonicalFileName=function(e){return e?J:z},e.matchPatternOrExact=function(e,t){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n],o=_t(a);if(o)r.push(o);else if(a===t)return a}return ut(r,function(e){return e},t)},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(e,t){return Qe.assert(lt(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)},e.findBestPatternMatch=ut,e.tryParsePattern=_t,e.positionIsSynthesized=function(e){return!(e>=0)},e.extensionIsTypeScript=function(e){return".ts"===e||".tsx"===e||".d.ts"===e},e.extensionFromPath=function(e){var t=dt(e);if(void 0!==t)return t;Qe.fail("File "+e+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==dt(e)},e.tryGetExtensionFromPath=dt,e.getAnyExtensionFromPath=function(e){var t=ke(e),r=t.lastIndexOf(".");if(r>=0)return t.substring(r)},e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(e,t){return function(r){return e(r)||t(r)}},e.assertTypeIsNever=function(e){},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||j;for(var o=0,s=0,c=e.length,u=t.length;o<c&&s<u;){var l=e[o],_=t[s],d=r(l,_);-1===d?(n(l),o++):1===d?(i(_),s++):(a(_,l),o++,s++)}for(;o<c;)n(e[o++]);for(;s<u;)i(t[s++])}}(o||(o={})),function(e){var t,r;e.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(t=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(r=e.PollingInterval||(e.PollingInterval={}));var i,a,o=[i=250,a=2*i,4*a];function s(e){return(t={})[r.Low]=e.Low,t[r.Medium]=e.Medium,t[r.High]=e.High,t;var t}e.watchFileUsingPriorityPollingInterval=function(e,t,r,n){return e.watchFile(t,r,function(e){return o[e]}(n))},e.missingFileModifiedTime=new Date(0);var c={Low:32,Medium:64,High:256},u=s(c);function l(t){if(t.getEnvironmentVariable){var i=function(e,t){var r=a(e);if(r)return n("Low"),n("Medium"),n("High"),!0;return!1;function n(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",r);u=o("TSC_WATCH_POLLINGCHUNKSIZE",c)||u,e.unchangedPollThresholds=o("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",c)||e.unchangedPollThresholds}function a(e){var r;return n("Low"),n("Medium"),n("High"),r;function n(n){var i=function(e,r){return t.getEnvironmentVariable(e+"_"+r.toUpperCase())}(e,n);i&&((r||(r={}))[n]=Number(i))}}function o(e,t){var r=a(e);return(i||r)&&s(r?n({},t,r):t)}}function _(t){var n=[],i=[],a=c(r.Low),o=c(r.Medium),s=c(r.High);return function(t,r,i){var a={fileName:t,callback:r,unchangedPolls:0,mtime:v(t)};return n.push(a),m(a,i),{close:function(){a.isClosed=!0,e.unorderedRemoveItem(n,a)}}};function c(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function l(t){t.pollIndex=p(t,t.pollingInterval,t.pollIndex,u[t.pollingInterval]),t.length?h(t.pollingInterval):(e.Debug.assert(0===t.pollIndex),t.pollScheduled=!1)}function _(e){p(i,r.Low,0,i.length),l(e),!e.pollScheduled&&i.length&&h(r.Low)}function p(t,n,a,o){for(var s=t.length,c=a,u=0;u<o&&s>0;p(),s--){var l=t[a];if(l)if(l.isClosed)t[a]=void 0;else{u++;var _=d(l,v(l.fileName));l.isClosed?t[a]=void 0:_?(l.unchangedPolls=0,t!==i&&(t[a]=void 0,g(l))):l.unchangedPolls!==e.unchangedPollThresholds[n]?l.unchangedPolls++:t===i?(l.unchangedPolls=1,t[a]=void 0,m(l,r.Low)):n!==r.High&&(l.unchangedPolls++,t[a]=void 0,m(l,n===r.Low?r.Medium:r.High)),t[a]&&(c<a&&(t[c]=l,t[a]=void 0),c++)}}return a;function p(){++a===t.length&&(c<a&&(t.length=c),a=0,c=0)}}function f(e){switch(e){case r.Low:return a;case r.Medium:return o;case r.High:return s}}function m(e,t){f(t).push(e),y(t)}function g(e){i.push(e),y(r.Low)}function y(e){f(e).pollScheduled||h(e)}function h(e){f(e).pollScheduled=t.setTimeout(e===r.Low?_:l,e,f(e))}function v(r){return t.getModifiedTime(r)||e.missingFileModifiedTime}}function d(e,r){var n=e.mtime.getTime(),i=r.getTime();if(n!==i){e.mtime=r;var a=0===n?t.Created:0===i?t.Deleted:t.Changed;return e.callback(e.fileName,a),!0}return!1}function p(t){return r;function r(r,i){var a=t.watchDirectory(r,function(e){i(e),n(o,i)}),o={close:function(){a.close(),o.childWatches.forEach(e.closeFileWatcher),o=void 0},dirName:r,childWatches:e.emptyArray};return n(o,i),o}function n(n,i){n&&(n.childWatches=function(n,i,a){var o;return e.enumerateInsertsAndDeletes(t.directoryExists(n)?e.mapDefined(t.getAccessibleSortedChildDirectories(n),function(r){var i=e.getNormalizedAbsolutePath(r,n);return 0===t.filePathComparer(i,t.realpath(i))?i:void 0}):e.emptyArray,i,function(e,r){return t.filePathComparer(e,r.dirName)},function(e){s(r(e,a))},e.closeFileWatcher,s),o||e.emptyArray;function s(e){(o||(o=[])).push(e)}}(n.dirName,n.childWatches,i))}}function f(){if(void 0!==z){var e=z.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.unchangedPollThresholds=s(c),e.setCustomPollingValues=l,e.createDynamicPriorityPollingWatchFile=_,e.onWatchedFileStat=d,e.createRecursiveDirectoryWatcher=p,e.getNodeMajorVersion=f,e.sys=function(){var t,r,n="\ufeff";if("undefined"!=typeof ChakraHost&&(r=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)},t={newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,r){r&&(t=n+t),ChakraHost.writeFile(e,t)},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,r,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:r}),t){var i=t.writeFile;t.writeFile=function(r,n,a){var o=e.getDirectoryPath(e.normalizeSlashes(r));o&&!t.directoryExists(o)&&function t(r,n){var i=e.getDirectoryPath(r),a=""!==i&&r!==i&&!n.directoryExists(i);a&&t(i,n),!a&&n.directoryExists(r)||n.createDirectory(r)}(o,t),i.call(t,r,n,a)}}return t}(),e.sys&&e.sys.getEnvironmentVariable&&(l(e.sys),e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(o||(o={})),function(e){function t(e,t,r,n,i){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:t(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),A_tuple_type_element_list_cannot_be_empty:t(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_1340","Module '{0}' does not refer to a type, but is used as a type here."),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2568,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators_2568","Type '{0}' is not an array type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(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."),Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await:t(2570,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await_2570","Property '{0}' does not exist on type '{1}'. Did you forget to use 'await'?"),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects."),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_declaration_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_declaration_0_2718","Duplicate declaration '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Found_package_json_at_0_Package_ID_is_1:t(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected."),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime:t(7038,e.DiagnosticCategory.Error,"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038","A namespace-style import cannot be called or constructed, and will cause a failure at runtime."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one `@augments` or `@extends` tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:t(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:t(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors")}}(o||(o={})),function(e){function t(e){return e>=71}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 29===e||t(e)};var r=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:142,function:89,get:125,if:90,implements:108,import:91,in:92,infer:126,instanceof:93,interface:109,is:127,keyof:128,let:110,module:129,namespace:130,never:131,new:94,null:95,number:134,object:135,package:111,private:112,protected:113,public:114,readonly:132,require:133,global:143,return:96,set:136,static:115,string:137,super:97,switch:98,symbol:138,this:99,throw:100,true:101,try:102,type:139,typeof:103,undefined:140,unique:141,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:144,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,"</":28,">>":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),n=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],i=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],a=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],o=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];function s(e,t){if(e<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[r+1])return!0;e<t[r]?i=r:n=r+2}return!1}function c(e,t){return s(e,t>=1?a:n)}e.isUnicodeIdentifierStart=c;var u,l=(u=[],r.forEach(function(e,t){u[e]=t}),u);function _(e){for(var t=new Array,r=0,n=0;r<e.length;){var i=e.charCodeAt(r);switch(r++,i){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:i>127&&y(i)&&(t.push(n),n=r)}}return t.push(n),t}function d(t,r,n,i){(r<0||r>=t.length)&&e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,_(i)):"unknown"));var a=t[r]+n;return r<t.length-1?e.Debug.assert(a<t[r+1]):void 0!==i&&e.Debug.assert(a<=i.length),a}function p(e){return e.lineMap||(e.lineMap=_(e.text))}function f(t,r){var n=e.binarySearch(t,r,e.identity,e.compareValues);return n<0&&(n=~n-1,e.Debug.assert(-1!==n,"position cannot precede the beginning of the file")),{line:n,character:r-t[n]}}function m(e){return g(e)||y(e)}function g(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function y(e){return 10===e||13===e||8232===e||8233===e}function h(e){return e>=48&&e<=57}function v(e){return e>=48&&e<=55}e.tokenToString=function(e){return l[e]},e.stringToToken=function(e){return r.get(e)},e.computeLineStarts=_,e.getPositionOfLineAndCharacter=function(e,t,r){return d(p(e),t,r,e.text)},e.computePositionOfLineAndCharacter=d,e.getLineStarts=p,e.computeLineAndCharacterOfPosition=f,e.getLineAndCharacterOfPosition=function(e,t){return f(p(e),t)},e.isWhiteSpaceLike=m,e.isWhiteSpaceSingleLine=g,e.isLineBreak=y,e.isOctalDigit=v,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=function(t,r,n,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(r))return r;for(;;){var a=t.charCodeAt(r);switch(a){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r<t.length&&!y(t.charCodeAt(r));)r++;continue}if(42===t.charCodeAt(r+1)){for(r+=2;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}continue}break;case 60:case 124:case 61:case 62:if(x(t,r)){r=S(t,r);continue}break;case 35:if(0===r&&D(t,r)){r=T(t,r);continue}break;default:if(a>127&&m(a)){r++;continue}}return r}};var b="<<<<<<<".length;function x(t,r){if(e.Debug.assert(r>=0),0===r||y(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+b<t.length){for(var i=0;i<b;i++)if(t.charCodeAt(r+i)!==n)return!1;return 61===n||32===t.charCodeAt(r+b)}}return!1}function S(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,r,b);var i=t.charCodeAt(r),a=t.length;if(60===i||62===i)for(;r<a&&!y(t.charCodeAt(r));)r++;else for(e.Debug.assert(124===i||61===i);r<a;){var o=t.charCodeAt(r);if((61===o||62===o)&&o!==i&&x(t,r))break;r++}return r}var k=/^#!.*/;function D(t,r){return e.Debug.assert(0===r),k.test(t)}function T(e,t){return t+=k.exec(e)[0].length}function C(e,t,r,n,i,a,o){var s,c,u,l,_=!1,d=n||0===r,p=o;e:for(;r>=0&&r<t.length;){var f=t.charCodeAt(r);switch(f){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;d=!0,_&&(l=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var g=t.charCodeAt(r+1),h=!1;if(47===g||42===g){var v=47===g?2:3,b=r;if(r+=2,47===g)for(;r<t.length;){if(y(t.charCodeAt(r))){h=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(d){if(_&&(p=i(s,c,u,l,a,p),!e&&p))return p;s=b,c=r,u=v,l=h,_=!0}continue}break e;default:if(f>127&&m(f)){_&&y(f)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function E(e,t,r,n,i){return C(!0,e,t,!1,r,n,i)}function N(e,t,r,n,i){return C(!0,e,t,!0,r,n,i)}function A(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function P(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&c(e,t)}function w(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(e,t){return s(e,t>=1?o:i)}(e,t)}e.forEachLeadingCommentRange=function(e,t,r,n){return C(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return C(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=E,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=function(e,t){return E(e,t,A,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return N(e,t,A,void 0,void 0)},e.getShebang=function(e){var t=k.exec(e);if(t)return t[0]},e.isIdentifierStart=P,e.isIdentifierPart=w,e.isIdentifierText=function(e,t){if(!P(e.charCodeAt(0),t))return!1;for(var r=1;r<e.length;r++)if(!w(e.charCodeAt(r),t))return!1;return!0},e.createScanner=function(n,i,a,o,s,c,u){var l,_,d,p,f,b,k;return void 0===a&&(a=0),W(o,c,u),{getStartPos:function(){return d},getTextPos:function(){return l},getToken:function(){return f},getTokenPos:function(){return p},getTokenText:function(){return o.substring(p,l)},getTokenValue:function(){return b},hasExtendedUnicodeEscape:function(){return 0!=(8&k)},hasPrecedingLineBreak:function(){return 0!=(1&k)},isIdentifier:function(){return 71===f||f>107},isReservedWord:function(){return f>=72&&f<=107},isUnterminated:function(){return 0!=(4&k)},getTokenFlags:function(){return k},reScanGreaterToken:function(){if(29===f){if(62===o.charCodeAt(l))return 62===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=67):(l+=2,f=47):61===o.charCodeAt(l+1)?(l+=2,f=66):(l++,f=46);if(61===o.charCodeAt(l))return l++,f=31}return f},reScanSlashToken:function(){if(41===f||63===f){for(var t=p+1,r=!1,i=!1;;){if(t>=_){k|=4,C(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=o.charCodeAt(t);if(y(a)){k|=4,C(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===a&&!i){t++;break}91===a?i=!0:92===a?r=!0:93===a&&(i=!1)}t++}for(;t<_&&w(o.charCodeAt(t),n);)t++;l=t,b=o.substring(p,l),f=12}return f},reScanTemplateToken:function(){return e.Debug.assert(18===f,"'reScanTemplateToken' should only be called on a '}'"),l=p,f=L()},scanJsxIdentifier:function(){if(t(f)){for(var e=l;l<_;){var r=o.charCodeAt(l);if(45!==r&&(e===l?!P(r,n):!w(r,n)))break;l++}b+=o.substring(e,l)}return f},scanJsxAttributeValue:function(){switch(d=l,o.charCodeAt(l)){case 34:case 39:return b=M(!0),f=9;default:return U()}},reScanJsxToken:function(){return l=p=d,f=q()},scanJsxToken:q,scanJSDocToken:function(){if(l>=_)return f=1;d=l,p=l;var e=o.charCodeAt(l);switch(l++,e){case 9:case 11:case 12:case 32:for(;l<_&&g(o.charCodeAt(l));)l++;return f=5;case 64:return f=57;case 10:case 13:return f=4;case 42:return f=39;case 123:return f=17;case 125:return f=18;case 91:return f=21;case 93:return f=22;case 60:return f=27;case 61:return f=58;case 44:return f=26;case 46:return f=23;case 96:for(;l<_&&96!==o.charCodeAt(l);)l++;return b=o.substring(p+1,l),l++,f=13}if(P(e,6)){for(;w(o.charCodeAt(l),6)&&l<_;)l++;return b=o.substring(p,l),f=71}return f=0},scan:U,getText:function(){return o},setText:W,setScriptTarget:function(e){n=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:H,tryScan:function(e){return V(e,!1)},lookAhead:function(e){return V(e,!0)},scanRange:function(e,t,r){var n=_,i=l,a=d,s=p,c=f,u=b,m=k;W(o,e,t);var g=r();return _=n,l=i,d=a,p=s,f=c,b=u,k=m,g}};function C(e,t,r){if(void 0===t&&(t=l),s){var n=l;l=t,s(e,r||0),l=n}}function E(){for(var t=l,r=!1,n=!1,i="";;){var a=o.charCodeAt(l);if(95!==a){if(!h(a))break;r=!0,n=!1,l++}else k|=512,r?(r=!1,n=!0,i+=o.substring(t,l)):C(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===o.charCodeAt(l-1)&&C(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+o.substring(t,l)}function N(){var t,r,n=l,i=E();46===o.charCodeAt(l)&&(l++,t=E());var a=l;if(69===o.charCodeAt(l)||101===o.charCodeAt(l)){l++,k|=16,43!==o.charCodeAt(l)&&45!==o.charCodeAt(l)||l++;var s=l,c=E();c?(r=o.substring(a,s)+c,a=l):C(e.Diagnostics.Digit_expected)}if(512&k){var u=i;return t&&(u+="."+t),r&&(u+=r),""+ +u}return""+ +o.substring(n,a)}function A(){for(var e=l;v(o.charCodeAt(l));)l++;return+o.substring(e,l)}function F(e,t){return I(e,!1,t)}function O(e,t){return I(e,!0,t)}function I(t,r,n){for(var i=0,a=0,s=!1,c=!1;i<t||r;){var u=o.charCodeAt(l);if(n&&95===u)k|=512,s?(s=!1,c=!0):C(c?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++;else{if(s=n,u>=48&&u<=57)a=16*a+u-48;else if(u>=65&&u<=70)a=16*a+u-65+10;else{if(!(u>=97&&u<=102))break;a=16*a+u-97+10}l++,i++,c=!1}}return i<t&&(a=-1),95===o.charCodeAt(l-1)&&C(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),a}function M(t){void 0===t&&(t=!1);for(var r=o.charCodeAt(l),n="",i=++l;;){if(l>=_){n+=o.substring(i,l),k|=4,C(e.Diagnostics.Unterminated_string_literal);break}var a=o.charCodeAt(l);if(a===r){n+=o.substring(i,l),l++;break}if(92!==a||t){if(y(a)&&!t){n+=o.substring(i,l),k|=4,C(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=o.substring(i,l),n+=R(),i=l}return n}function L(){for(var t,r=96===o.charCodeAt(l),n=++l,i="";;){if(l>=_){i+=o.substring(n,l),k|=4,C(e.Diagnostics.Unterminated_template_literal),t=r?13:16;break}var a=o.charCodeAt(l);if(96===a){i+=o.substring(n,l),l++,t=r?13:16;break}if(36===a&&l+1<_&&123===o.charCodeAt(l+1)){i+=o.substring(n,l),l+=2,t=r?14:15;break}92!==a?13!==a?l++:(i+=o.substring(n,l),++l<_&&10===o.charCodeAt(l)&&l++,i+="\n",n=l):(i+=o.substring(n,l),i+=R(),n=l)}return e.Debug.assert(void 0!==t),b=i,t}function R(){if(++l>=_)return C(e.Diagnostics.Unexpected_end_of_text),"";var t,r,n=o.charCodeAt(l);switch(l++,n){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return l<_&&123===o.charCodeAt(l)?(k|=8,l++,t=O(1,!1),r=!1,t<0?(C(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(C(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),l>=_?(C(e.Diagnostics.Unexpected_end_of_text),r=!0):125===o.charCodeAt(l)?l++:(C(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)}(t)):B(4);case 120:return B(2);case 13:l<_&&10===o.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function B(t){var r=F(t,!1);return r>=0?String.fromCharCode(r):(C(e.Diagnostics.Hexadecimal_digit_expected),"")}function j(){if(l+5<_&&117===o.charCodeAt(l+1)){var e=l;l+=2;var t=F(4,!1);return l=e,t}return-1}function J(){for(var e="",t=l;l<_;){var r=o.charCodeAt(l);if(w(r,n))l++;else{if(92!==r)break;if(!((r=j())>=0&&w(r,n)))break;e+=o.substring(t,l),e+=String.fromCharCode(r),t=l+=6}}return e+=o.substring(t,l)}function z(){var e=b.length;if(e>=2&&e<=11){var t=b.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(f=r.get(b)))return f}return f=71}function K(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var r=0,n=0,i=!1,a=!1;;){var s=o.charCodeAt(l);if(95!==s){i=!0;var c=s-48;if(!h(s)||c>=t)break;r=r*t+c,l++,n++,a=!1}else k|=512,i?(i=!1,a=!0):C(a?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 0===n?-1:95===o.charCodeAt(l-1)?(C(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r):r}function U(){for(d=l,k=0;;){if(p=l,l>=_)return f=1;var t=o.charCodeAt(l);if(35===t&&0===l&&D(o,l)){if(l=T(o,l),i)continue;return f=6}switch(t){case 10:case 13:if(k|=1,i){l++;continue}return 13===t&&l+1<_&&10===o.charCodeAt(l+1)?l+=2:l++,f=4;case 9:case 11:case 12:case 32:if(i){l++;continue}for(;l<_&&g(o.charCodeAt(l));)l++;return f=5;case 33:return 61===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=35):(l+=2,f=33):(l++,f=51);case 34:case 39:return b=M(),f=9;case 96:return f=L();case 37:return 61===o.charCodeAt(l+1)?(l+=2,f=64):(l++,f=42);case 38:return 38===o.charCodeAt(l+1)?(l+=2,f=53):61===o.charCodeAt(l+1)?(l+=2,f=68):(l++,f=48);case 40:return l++,f=19;case 41:return l++,f=20;case 42:return 61===o.charCodeAt(l+1)?(l+=2,f=61):42===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=62):(l+=2,f=40):(l++,f=39);case 43:return 43===o.charCodeAt(l+1)?(l+=2,f=43):61===o.charCodeAt(l+1)?(l+=2,f=59):(l++,f=37);case 44:return l++,f=26;case 45:return 45===o.charCodeAt(l+1)?(l+=2,f=44):61===o.charCodeAt(l+1)?(l+=2,f=60):(l++,f=38);case 46:return h(o.charCodeAt(l+1))?(b=N(),f=8):46===o.charCodeAt(l+1)&&46===o.charCodeAt(l+2)?(l+=3,f=24):(l++,f=23);case 47:if(47===o.charCodeAt(l+1)){for(l+=2;l<_&&!y(o.charCodeAt(l));)l++;if(i)continue;return f=2}if(42===o.charCodeAt(l+1)){l+=2,42===o.charCodeAt(l)&&47!==o.charCodeAt(l+1)&&(k|=2);for(var r=!1;l<_;){var s=o.charCodeAt(l);if(42===s&&47===o.charCodeAt(l+1)){l+=2,r=!0;break}y(s)&&(k|=1),l++}if(r||C(e.Diagnostics.Asterisk_Slash_expected),i)continue;return r||(k|=4),f=3}return 61===o.charCodeAt(l+1)?(l+=2,f=63):(l++,f=41);case 48:var c;if(l+2<_&&(88===o.charCodeAt(l+1)||120===o.charCodeAt(l+1)))return l+=2,(c=O(1,!0))<0&&(C(e.Diagnostics.Hexadecimal_digit_expected),c=0),b=""+c,k|=64,f=8;if(l+2<_&&(66===o.charCodeAt(l+1)||98===o.charCodeAt(l+1)))return l+=2,(c=K(2))<0&&(C(e.Diagnostics.Binary_digit_expected),c=0),b=""+c,k|=128,f=8;if(l+2<_&&(79===o.charCodeAt(l+1)||111===o.charCodeAt(l+1)))return l+=2,(c=K(8))<0&&(C(e.Diagnostics.Octal_digit_expected),c=0),b=""+c,k|=256,f=8;if(l+1<_&&v(o.charCodeAt(l+1)))return b=""+A(),k|=32,f=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return b=N(),f=8;case 58:return l++,f=56;case 59:return l++,f=25;case 60:if(x(o,l)){if(l=S(o,l,C),i)continue;return f=7}return 60===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=65):(l+=2,f=45):61===o.charCodeAt(l+1)?(l+=2,f=30):1===a&&47===o.charCodeAt(l+1)&&42!==o.charCodeAt(l+2)?(l+=2,f=28):(l++,f=27);case 61:if(x(o,l)){if(l=S(o,l,C),i)continue;return f=7}return 61===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=34):(l+=2,f=32):62===o.charCodeAt(l+1)?(l+=2,f=36):(l++,f=58);case 62:if(x(o,l)){if(l=S(o,l,C),i)continue;return f=7}return l++,f=29;case 63:return l++,f=55;case 91:return l++,f=21;case 93:return l++,f=22;case 94:return 61===o.charCodeAt(l+1)?(l+=2,f=70):(l++,f=50);case 123:return l++,f=17;case 124:if(x(o,l)){if(l=S(o,l,C),i)continue;return f=7}return 124===o.charCodeAt(l+1)?(l+=2,f=54):61===o.charCodeAt(l+1)?(l+=2,f=69):(l++,f=49);case 125:return l++,f=18;case 126:return l++,f=52;case 64:return l++,f=57;case 92:var u=j();return u>=0&&P(u,n)?(l+=6,b=String.fromCharCode(u)+J(),f=z()):(C(e.Diagnostics.Invalid_character),l++,f=0);default:if(P(t,n)){for(l++;l<_&&w(t=o.charCodeAt(l),n);)l++;return b=o.substring(p,l),92===t&&(b+=J()),f=z()}if(g(t)){l++;continue}if(y(t)){k|=1,l++;continue}return C(e.Diagnostics.Invalid_character),l++,f=0}}}function q(){if(d=p=l,l>=_)return f=1;var e=o.charCodeAt(l);if(60===e)return 47===o.charCodeAt(l+1)?(l+=2,f=28):(l++,f=27);if(123===e)return l++,f=17;for(var t=0;l<_&&123!==(e=o.charCodeAt(l));){if(60===e){if(x(o,l))return l=S(o,l,C),f=7;break}y(e)&&0===t?t=-1:m(e)||(t=l),l++}return-1===t?11:10}function V(e,t){var r=l,n=d,i=p,a=f,o=b,s=k,c=e();return c&&!t||(l=r,d=n,p=i,f=a,b=o,k=s),c}function W(e,t,r){o=e||"",_=void 0===r?o.length:t+r,H(t||0)}function H(t){e.Debug.assert(t>=0),l=t,d=t,p=t,f=0,b=void 0,k=0}}}(o||(o={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.getDeclarationOfKind=function(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===t)return a}};var t,r,n=(t="",{getText:function(){return t},write:r=function(e){return t+=e},rawWrite:r,writeTextOfNode:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:r,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},writeLine:function(){return t+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return t=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function i(e){return e.end-e.pos}function a(t){return function(t){if(!(262144&t.flags)){var r=0!=(32768&t.flags)||e.forEachChild(t,a);r&&(t.flags|=131072),t.flags|=262144}}(t),0!=(131072&t.flags)}function o(e){for(;e&&273!==e.kind;)e=e.parent;return e}function s(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function c(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function u(e){return!c(e)}function l(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function _(t,r,n){return c(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((r||o(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?_(t.jsDoc[0]):294===t.kind&&t._children.length>0?_(t._children[0],r,n):e.skipTrivia((r||o(t)).text,t.pos)}function d(e,t,r){return void 0===r&&(r=!1),f(e.text,t,r)}function f(t,r,n){return void 0===n&&(n=!1),c(r)?"":t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end)}function m(e,t){return void 0===t&&(t=!1),d(o(e),e,t)}function g(e){return e.pos}function y(e){var t=e.emitNode;return t&&t.flags}function h(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function v(e){var t=Ee(e);return 231===t.kind&&268===t.parent.kind}function b(t){return e.isModuleDeclaration(t)&&(9===t.name.kind||x(t))}function x(e){return!!(512&e.flags)}function S(t){switch(t.parent.kind){case 273:return e.isExternalModule(t.parent);case 239:return b(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function k(t,r){switch(t.kind){case 273:case 240:case 268:case 238:case 219:case 220:case 221:case 154:case 153:case 155:case 156:case 233:case 191:case 192:return!0;case 212:return r&&!e.isFunctionLike(r)}return!1}function D(e){switch(e.kind){case 243:case 242:return!0;default:return!1}}function T(e){return 0===i(e)?"(Missing)":m(e)}function C(t){switch(t.kind){case 71:return t.escapedText;case 9:case 8:return h(t.text);case 146:return be(t.expression)?h(t.expression.text):void 0;default:e.Debug.assertNever(t)}}function E(t,r,n,i,a,o,s){var c=A(t,r);return e.createFileDiagnostic(t,c.start,c.length,n,i,a,o,s)}function N(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function A(t,r){var n=r;switch(r.kind){case 273:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):N(t,i);case 231:case 181:case 234:case 204:case 235:case 238:case 237:case 272:case 233:case 191:case 153:case 155:case 156:case 236:n=r.name;break;case 192:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&212===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i<e.getLineAndCharacterOfPosition(t,r.body.end).line)return e.createTextSpan(n,s(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)}(t,r)}if(void 0===n)return N(t,r.pos);var a=c(n),o=a?n.pos:e.skipTrivia(t.text,n.pos);return a?(e.Debug.assert(o===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(o>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(o,n.end)}function P(t){return!!(2&e.getCombinedNodeFlags(t))||!!(2048&e.getCombinedModifierFlags(t))}function w(t){return 178===t.kind&&177===t.argument.kind&&e.isStringLiteral(t.argument.literal)}e.usingSingleLineStringWriter=function(e){var t=n.getText();try{return e(n),n.getText()}finally{n.clear(),n.writeKeyword(t)}},e.getFullWidth=i,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=e.createMap()),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createMap()),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||r&&n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName,n=e.version;return(r?t+"/"+r:t)+"@"+n},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a<t.length;a++){var o=r[a],s=n&&n.get(t[a]);if(s?!o||!i(s,o):o)return!0}return!1},e.containsParseError=a,e.getSourceFileOfNode=o,e.isStatementWithLocals=function(e){switch(e.kind){case 212:case 240:case 219:case 220:case 221:return!0}return!1},e.getStartPositionOfLine=function(t,r){return e.Debug.assert(t>=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=o(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=s,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=c,e.nodeIsPresent=u,e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2<n&&47===t.charCodeAt(r+2)){var i=t.substring(r,n);return!!(i.match(e.fullTripleSlashReferencePathRegEx)||i.match(e.fullTripleSlashAMDReferencePathRegEx)||i.match(F)||i.match(O))}return!1},e.isPinnedComment=l,e.getTokenPosOfNode=_,e.getNonDecoratorTokenPosOfNode=function(t,r){return c(t)||!t.decorators?_(t,r):e.skipTrivia((r||o(t)).text,t.decorators.end)},e.getSourceTextOfNodeFromSourceFile=d,e.getTextOfNodeFromSourceText=f,e.getTextOfNode=m,e.indexOfNode=function(t,r){return e.binarySearch(t,r,g,e.compareValues)},e.getEmitFlags=y,e.getLiteralText=function(t,r){if(!Ne(t)&&t.parent&&!(e.isNumericLiteral(t)&&512&t.numericLiteralFlags))return d(r,t);var n=16777216&y(t)?Re:ze;switch(t.kind){case 9:return t.singleQuote?"'"+n(t.text,39)+"'":'"'+n(t.text,34)+'"';case 13:return"`"+n(t.text,96)+"`";case 14:return"`"+n(t.text,96)+"${";case 15:return"}"+n(t.text,96)+"${";case 16:return"}"+n(t.text,96)+"`";case 8:case 12:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")},e.getTextOfConstantValue=function(t){return e.isString(t)?'"'+ze(t)+'"':""+t},e.escapeLeadingUnderscores=h,e.escapeIdentifier=function(e){return e},e.makeIdentifierFromModuleName=function(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(t){return 0!=(3&e.getCombinedNodeFlags(t))||v(t)},e.isCatchClauseVariableDeclarationOrBindingElement=v,e.isAmbientModule=b,e.isModuleWithStringLiteralName=function(t){return e.isModuleDeclaration(t)&&9===t.name.kind},e.isNonGlobalAmbientModule=function(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)},e.isShorthandAmbientModuleSymbol=function(e){return(t=e.valueDeclaration)&&238===t.kind&&!t.body;var t},e.isBlockScopedContainerTopLevel=function(t){return 273===t.kind||238===t.kind||e.isFunctionLike(t)},e.isGlobalScopeAugmentation=x,e.isExternalModuleAugmentation=function(e){return b(e)&&S(e)},e.isModuleAugmentationExternal=S,e.isEffectiveExternalModule=function(t,r){return e.isExternalModule(t)||r.isolatedModules||e.getEmitModuleKind(r)===e.ModuleKind.CommonJS&&!!t.commonJsModuleIndicator},e.isBlockScope=k,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 157:case 158:case 152:case 159:case 162:case 163:case 281:case 234:case 204:case 235:case 236:case 291:case 233:case 153:case 154:case 155:case 156:case 191:case 192:return!0;default:return e.assertTypeIsNever(t),!1}},e.isAnyImportSyntax=D,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 243:case 242:case 213:return!0;default:return!1}},e.isAnyImportOrReExport=function(t){return D(t)||e.isExportDeclaration(t)},e.getEnclosingBlockScopeContainer=function(e){for(var t=e.parent;t;){if(k(t,t.parent))return t;t=t.parent}},e.declarationNameToString=T,e.getNameFromIndexInfo=function(e){return e.declaration?T(e.declaration.parameters[0].name):void 0},e.getTextOfPropertyName=C,e.entityNameToString=function t(r){switch(r.kind){case 71:return 0===i(r)?e.idText(r):m(r);case 145:return t(r.left)+"."+t(r.right);case 184:return t(r.expression)+"."+t(r.name)}},e.createDiagnosticForNode=function(e,t,r,n,i,a){return E(o(e),e,t,r,n,i,a)},e.createDiagnosticForNodeArray=function(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return e.createFileDiagnostic(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=E,e.createDiagnosticForNodeSpan=function(t,r,n,i,a,o,s,c){var u=e.skipTrivia(t.text,r.pos);return e.createFileDiagnostic(t,u,n.end-u,i,a,o,s,c)},e.createDiagnosticForNodeFromMessageChain=function(e,t){var r=o(e),n=A(r,e);return{file:r,start:n.start,length:n.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}},e.getSpanOfTokenAtPosition=N,e.getErrorSpanForNode=A,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isConstEnumDeclaration=function(e){return 237===e.kind&&P(e)},e.isConst=P,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 186===e.kind&&97===e.expression.kind},e.isImportCall=function(e){return 186===e.kind&&91===e.expression.kind},e.isLiteralImportTypeNode=w,e.isPrologueDirective=function(e){return 215===e.kind&&9===e.expression.kind},e.getLeadingCommentRangesOfNode=function(t,r){return 10!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=148===t.kind||147===t.kind||191===t.kind||192===t.kind||190===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)})},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var F=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var O=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function I(t){if(160<=t.kind&&t.kind<=178)return!0;switch(t.kind){case 119:case 134:case 137:case 122:case 138:case 140:case 131:return!0;case 105:return 195!==t.parent.kind;case 206:return!ht(t);case 147:return 176===t.parent.kind||171===t.parent.kind;case 71:145===t.parent.kind&&t.parent.right===t?t=t.parent:184===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(71===t.kind||145===t.kind||184===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 145:case 184:case 99:var r=t.parent;if(164===r.kind)return!1;if(178===r.kind)return!r.isTypeOf;if(160<=r.kind&&r.kind<=178)return!0;switch(r.kind){case 206:return!ht(r);case 147:return t===r.constraint;case 151:case 150:case 148:case 231:return t===r.type;case 233:case 191:case 192:case 154:case 153:case 152:case 155:case 156:return t===r.type;case 157:case 158:case 159:case 189:return t===r.type;case 186:case 187:return e.contains(r.typeArguments,t);case 188:return!1}}return!1}function M(e){if(e)switch(e.kind){case 181:case 272:case 148:case 269:case 151:case 150:case 270:case 231:return!0}return!1}function L(e){return 232===e.parent.kind&&213===e.parent.parent.kind}function R(t,r){for(;;){if(!(t=t.parent))return;switch(t.kind){case 146:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 149:148===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 192:if(!r)continue;case 233:case 191:case 238:case 151:case 150:case 153:case 152:case 154:case 155:case 156:case 157:case 158:case 159:case 237:case 273:return t}}}function B(e,t,r){switch(e.kind){case 234:return!0;case 151:return 234===t.kind;case 155:case 156:case 153:return void 0!==e.body&&234===t.kind;case 148:return void 0!==t.body&&(154===t.kind||153===t.kind||156===t.kind)&&234===r.kind}return!1}function j(e,t,r){return void 0!==e.decorators&&B(e,t,r)}function J(e,t,r){return j(e,t,r)||z(e,t)}function z(t,r){switch(t.kind){case 234:return e.forEach(t.members,function(e){return J(e,t,r)});case 153:case 156:return e.forEach(t.parameters,function(e){return j(e,t,r)})}}function K(e){var t=e.parent;return(256===t.kind||255===t.kind||257===t.kind)&&t.tagName===e}function U(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 182:case 183:case 184:case 185:case 186:case 187:case 188:case 207:case 189:case 208:case 190:case 191:case 204:case 192:case 195:case 193:case 194:case 197:case 198:case 199:case 200:case 203:case 201:case 13:case 205:case 254:case 255:case 258:case 202:case 196:case 209:return!0;case 145:for(;145===e.parent.kind;)e=e.parent;return 164===e.parent.kind||K(e);case 71:if(164===e.parent.kind||K(e))return!0;case 8:case 9:case 99:return q(e);default:return!1}}function q(e){var t=e.parent;switch(t.kind){case 231:case 148:case 151:case 150:case 272:case 269:case 181:return t.initializer===e;case 215:case 216:case 217:case 218:case 224:case 225:case 226:case 265:case 228:return t.expression===e;case 219:var r=t;return r.initializer===e&&232!==r.initializer.kind||r.condition===e||r.incrementor===e;case 220:case 221:var n=t;return n.initializer===e&&232!==n.initializer.kind||n.expression===e;case 189:case 207:case 210:case 146:return e===t.expression;case 149:case 264:case 263:case 271:return!0;case 206:return t.expression===e&&ht(t);default:return U(t)}}function V(e){return 242===e.kind&&253===e.moduleReference.kind}function W(e){return H(e)}function H(e){return e&&!!(65536&e.flags)}function G(t){if(t&&e.isVariableDeclaration(t)&&t.initializer)return Q(t.initializer,!1)||e.isIdentifier(t.name)&&Y(t.name,t.initializer,!1)}function X(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&58===t.parent.operatorToken.kind){var r=xt(t.parent.left);return Q(t.parent.right,r)||Y(t.parent.left,t.parent.right,r)}}function Q(t,r){if(e.isCallExpression(t)){var n=_e(t.expression);return 191===n.kind||192===n.kind?t:void 0}return 191===t.kind||204===t.kind||192===t.kind?t:e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Y(t,r,n){var i=e.isBinaryExpression(r)&&54===r.operatorToken.kind&&Q(r.right,n);if(i&&function t(r,n){if(e.isIdentifier(r)&&e.isIdentifier(n))return r.escapedText===n.escapedText;if(e.isIdentifier(r)&&e.isPropertyAccessExpression(n))return(99===n.expression.kind||e.isIdentifier(n.expression)&&("window"===n.expression.escapedText||"self"===n.expression.escapedText||"global"===n.expression.escapedText))&&t(r,n.name);if(e.isPropertyAccessExpression(r)&&e.isPropertyAccessExpression(n))return r.name.escapedText===n.name.escapedText&&t(r.expression,n.expression);return!1}(t,r.left))return i}function $(t){if(!H(t)||58!==t.operatorToken.kind||!e.isPropertyAccessExpression(t.left))return 0;var r=t.left;if(99===r.expression.kind)return 4;if(e.isIdentifier(r.expression)&&"module"===r.expression.escapedText&&"exports"===r.name.escapedText)return 2;if(vt(r.expression)){if("prototype"===r.name.escapedText&&e.isObjectLiteralExpression(Z(t)))return 6;if(xt(r.expression))return 3;for(var n=r;e.isPropertyAccessExpression(n.expression);)n=n.expression;e.Debug.assert(e.isIdentifier(n.expression));var i=n.expression;return"exports"===i.escapedText||"module"===i.escapedText&&"exports"===n.name.escapedText?1:5}return 0}function Z(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function ee(t){return e.isExpressionStatement(t)&&t.expression&&e.isBinaryExpression(t.expression)&&58===t.expression.operatorToken.kind&&t.expression.right}function te(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==$(t.expression)&&e.isBinaryExpression(t.expression.right)&&54===t.expression.right.operatorToken.kind&&t.expression.right.right}function re(e){switch(e.kind){case 213:var t=ne(e);return t&&t.initializer;case 151:return e.initializer}}function ne(t){return e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&t.declarationList.declarations[0]}function ie(e){return 238===e.kind&&e.body&&238===e.body.kind&&e.body}function ae(t){var r=oe(t),n=te(r)||ee(r)||re(r)||ne(r)||ie(r)||r;return n&&e.isFunctionLike(n)?n:void 0}function oe(t){for(;284===t.parent.kind;)t=t.parent.parent.parent;return e.Debug.assert(283===t.parent.kind),t.parent.parent}function se(e){return void 0!==e.dotDotDotToken||e.type&&282===e.type.kind}function ce(e){for(var t=e.parent;;){switch(t.kind){case 199:var r=t.operatorToken.kind;return mt(r)&&t.left===e?58===r?1:2:0;case 197:case 198:var n=t.operator;return 43===n||44===n?2:0;case 220:case 221:return t.initializer===e?1:0;case 190:case 182:case 203:case 208:e=t;break;case 270:if(t.name!==e)return 0;e=t.parent;break;case 269:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ue(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function le(e){return ue(e,190)}function _e(e){for(;190===e.kind;)e=e.expression;return e}function de(e){return vt(e.expression)}function pe(e){var t=ge(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0}function fe(e){var t=ge(e.heritageClauses,108);return t?t.types:void 0}function me(e){var t=ge(e.heritageClauses,85);return t?t.types:void 0}function ge(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.token===t)return i}}function ye(e){return 72<=e&&e<=144}function he(e){return 117<=e&&e<=144}function ve(e){return ye(e)&&!he(e)}function be(e){var t=e.kind;return 9===t||8===t}function xe(t){var r=e.getNameOfDeclaration(t);return r&&Se(r)}function Se(e){return 146===e.kind&&!be(e.expression)&&!ke(e.expression)}function ke(t){return e.isPropertyAccessExpression(t)&&Ce(t.expression)}function De(t){if(71===t.kind)return t.escapedText;if(9===t.kind||8===t.kind)return h(t.text);if(146===t.kind){var r=t.expression;if(ke(r))return Te(e.idText(r.name));if(9===r.kind||8===r.kind)return h(r.text)}}function Te(e){return"__@"+e}function Ce(e){return 71===e.kind&&"Symbol"===e.escapedText}function Ee(e){for(;181===e.kind;)e=e.parent.parent;return e}function Ne(t){return e.positionIsSynthesized(t.pos)||e.positionIsSynthesized(t.end)}function Ae(e,t,r){switch(e){case 187:return r?0:1;case 197:case 194:case 195:case 193:case 196:case 200:case 202:return 1;case 199:switch(t){case 40:case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 1}}return 0}function Pe(e){return 199===e.kind?e.operatorToken.kind:197===e.kind||198===e.kind?e.operator:e.kind}function we(e,t,r){switch(e){case 297:return 0;case 203:return 1;case 202:return 2;case 200:return 4;case 199:switch(t){case 26:return 0;case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 3;default:return Fe(t)}case 197:case 194:case 195:case 193:case 196:return 16;case 198:return 17;case 186:return 18;case 187:return r?19:18;case 188:case 184:case 185:return 19;case 99:case 97:case 71:case 95:case 101:case 86:case 8:case 9:case 182:case 183:case 191:case 192:case 204:case 254:case 255:case 258:case 12:case 13:case 201:case 190:case 205:return 20;default:return-1}}function Fe(e){switch(e){case 54:return 5;case 53:return 6;case 49:return 7;case 50:return 8;case 48:return 9;case 32:case 33:case 34:case 35:return 10;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 11;case 45:case 46:case 47:return 12;case 37:case 38:return 13;case 39:case 41:case 42:return 14;case 40:return 15}return-1}e.isPartOfTypeNode=I,e.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},e.forEachReturnStatement=function(t,r){return function t(n){switch(n.kind){case 224:return r(n);case 240:case 212:case 216:case 217:case 218:case 219:case 220:case 221:case 225:case 226:case 265:case 266:case 227:case 229:case 268:return e.forEachChild(n,t)}}(t)},e.forEachYieldExpression=function(t,r){return function t(n){switch(n.kind){case 202:r(n);var i=n.expression;return void(i&&t(i));case 237:case 235:case 238:case 236:case 234:case 204:return;default:if(e.isFunctionLike(n)){if(n.name&&146===n.name.kind)return void t(n.name.expression)}else I(n)||e.forEachChild(n,t)}}(t)},e.getRestParameterElementType=function(t){return t&&166===t.kind?t.elementType:t&&161===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 235:case 234:case 204:case 165:return e.members;case 183:return e.properties}},e.isVariableLike=M,e.isVariableLikeOrAccessor=function(t){return M(t)||e.isAccessor(t)},e.isVariableDeclarationInVariableStatement=L,e.isValidESSymbolDeclaration=function(t){return e.isVariableDeclaration(t)?P(t)&&e.isIdentifier(t.name)&&L(t):e.isPropertyDeclaration(t)?lt(t)&&ut(t):e.isPropertySignature(t)&<(t)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 153:case 152:case 154:case 155:case 156:case 233:case 191:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),227!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(t){return t&&212===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&153===e.kind&&183===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 153===e.kind&&(183===e.parent.kind||204===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=function(t,r,n){return e.filter(t.properties,function(e){if(269===e.kind){var t=C(e.name);return r===t||n&&n===t}})},e.getContainingFunction=function(t){return e.findAncestor(t.parent,e.isFunctionLike)},e.getContainingClass=function(t){return e.findAncestor(t.parent,e.isClassLike)},e.getThisContainer=R,e.getNewTargetContainer=function(e){var t=R(e,!1);if(t)switch(t.kind){case 154:case 233:case 191:return t}},e.getSuperContainer=function(t,r){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 146:t=t.parent;break;case 233:case 191:case 192:if(!r)continue;case 151:case 150:case 153:case 152:case 154:case 155:case 156:return t;case 149:148===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(191===e.kind||192===e.kind){for(var t=e,r=e.parent;190===r.kind;)t=r,r=r.parent;if(186===r.kind&&r.expression===t)return r}},e.isSuperProperty=function(e){var t=e.kind;return(184===t||185===t)&&97===e.expression.kind},e.isThisProperty=function(e){var t=e.kind;return(184===t||185===t)&&99===e.expression.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 161:return e.typeName;case 206:return vt(e.expression)?e.expression:void 0;case 71:case 145:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 188:return e.tag;case 256:case 255:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=B,e.nodeIsDecorated=j,e.nodeOrChildIsDecorated=J,e.childIsDecorated=z,e.isJSXTagName=K,e.isExpressionNode=U,e.isInExpressionContext=q,e.isExternalModuleImportEqualsDeclaration=V,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(V(t)),t.moduleReference.expression},e.isInternalModuleImportEqualsDeclaration=function(e){return 242===e.kind&&253!==e.moduleReference.kind},e.isSourceFileJavaScript=W,e.isSourceFileNotJavaScript=function(e){return!H(e)},e.isInJavaScriptFile=H,e.isInJSDoc=function(e){return e&&!!(1048576&e.flags)},e.isJSDocIndexSignature=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(137===t.typeArguments[0].kind||134===t.typeArguments[0].kind)},e.isRequireCall=function(t,r){if(186!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(71!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===d(t,e).charCodeAt(0)},e.getJSInitializerSymbol=function(e){if(!e||!e.valueDeclaration)return e;var t=e.valueDeclaration,r=G(t)||X(t);return r&&r.symbol?r.symbol:e},e.getDeclaredJavascriptInitializer=G,e.getAssignedJavascriptInitializer=X,e.getJavascriptInitializer=Q,e.getOuterNameOfJsInitializer=function(t){if(e.isBinaryExpression(t.parent)){var r=54===t.parent.operatorToken.kind&&e.isBinaryExpression(t.parent.parent)?t.parent.parent:t.parent;if(58===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.getRightMostAssignedExpression=function(e){for(;yt(e,!0);)e=e.right;return e},e.isExportsIdentifier=function(t){return e.isIdentifier(t)&&"exports"===t.escapedText},e.isModuleExportsPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText},e.getSpecialPropertyAssignmentKind=$,e.getInitializerOfBinaryExpression=Z,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===$(t)},e.isSpecialPropertyDeclaration=function(t){return H(t)&&t.parent&&215===t.parent.kind&&!!e.getJSDocTypeTag(t.parent)},e.importFromModuleSpecifier=function(t){switch(t.parent.kind){case 243:case 249:return t.parent;case 253:return t.parent.parent;case 186:return t.parent;case 177:return e.cast(t.parent.parent,e.isImportTypeNode);default:return e.Debug.fail(e.Debug.showSyntaxKind(t.parent))}},e.getExternalModuleName=function(t){switch(t.kind){case 243:case 249:return t.moduleSpecifier;case 242:return 253===t.moduleReference.kind?t.moduleReference.expression:void 0;case 178:return w(t)?t.argument.literal:void 0;default:return e.Debug.assertNever(t)}},e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 243:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 242:return t;case 249:return;default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 243===e.kind&&e.importClause&&!!e.importClause.name},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 148:case 153:case 152:case 270:case 269:case 151:case 150:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(e){return 281===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText},e.getJSDocCommentsAndTags=function(t){var r;return function t(n){var i=n.parent;i&&((269===i.kind||151===i.kind||ie(i))&&t(i),i.parent&&(ne(i.parent)===n||ee(i.parent))&&t(i.parent),i.parent&&i.parent.parent&&(ne(i.parent.parent)||re(i.parent.parent)===n||te(i.parent.parent))&&t(i.parent.parent),(e.isBinaryExpression(n)&&0!==$(n)||e.isBinaryExpression(i)&&0!==$(i)||184===n.kind&&n.parent&&215===n.parent.kind)&&t(i),148===n.kind&&(r=e.addRange(r,e.getJSDocParameterTags(n))),M(n)&&e.hasInitializer(n)&&e.hasJSDocNodes(n.initializer)&&(r=e.addRange(r,n.initializer.jsDoc)),e.hasJSDocNodes(n)&&(r=e.addRange(r,n.jsDoc)))}(t),r||e.emptyArray},e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=ae(t);if(n){var i=e.find(n.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===r});return i&&i.symbol}}},e.getHostSignatureFromJSDoc=ae,e.getJSDocHost=oe,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return e.find(n,function(e){return e.name.escapedText===r})},e.hasRestParameter=function(t){var r=e.lastOrUndefined(t.parameters);return r&&se(r)},e.isRestParameter=se,function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=ce,e.isAssignmentTarget=function(e){return 0!==ce(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 212:case 213:case 225:case 216:case 226:case 240:case 265:case 266:case 227:case 219:case 220:case 221:case 217:case 218:case 229:case 268:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return ue(e,172)},e.walkUpParenthesizedExpressions=le,e.skipParentheses=_e,e.isDeleteTarget=function(e){return(184===e.kind||185===e.kind)&&(e=le(e.parent))&&193===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.isAnyDeclarationName=function(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;var r=t.parent.parent;return e.isBinaryExpression(r)&&0!==$(r)&&e.getNameOfDeclaration(r)===t;default:return!1}},e.isLiteralComputedPropertyDeclarationName=function(t){return(9===t.kind||8===t.kind)&&146===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 151:case 150:case 153:case 152:case 155:case 156:case 272:case 269:case 184:return t.name===e;case 145:if(t.right===e){for(;145===t.kind;)t=t.parent;return 164===t.kind||161===t.kind}return!1;case 181:case 247:return t.propertyName===e;case 251:case 261:return!0}return!1},e.isAliasSymbolDeclaration=function(e){return 242===e.kind||241===e.kind||244===e.kind&&!!e.name||245===e.kind||247===e.kind||251===e.kind||248===e.kind&&de(e)},e.exportAssignmentIsAlias=de,e.getClassExtendsHeritageClauseElement=pe,e.getClassImplementsHeritageClauseElements=fe,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?me(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(pe(t)),fe(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=me,e.getHeritageClause=ge,e.tryResolveScriptReference=function(t,r,n){if(!t.getCompilerOptions().noResolve){var i=e.isRootedDiskPath(n.fileName)?n.fileName:e.combinePaths(e.getDirectoryPath(r.fileName),n.fileName);return t.getSourceFile(i)}},e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=ye,e.isContextualKeyword=he,e.isNonContextualKeyword=ve,e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&ve(r)},e.isTrivia=function(e){return 2<=e&&e<=7},function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 233:case 191:case 153:e.asteriskToken&&(t|=1);case 192:ct(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 233:case 191:case 192:case 153:return void 0!==e.body&&void 0===e.asteriskToken&&ct(e,256)}return!1},e.isStringOrNumericLiteral=be,e.hasDynamicName=xe,e.isDynamicName=Se,e.isWellKnownSymbolSyntactically=ke,e.getPropertyNameForPropertyNameNode=De,e.isPropertyNameLiteral=function(e){switch(e.kind){case 71:case 9:case 13:case 8:return!0;default:return!1}},e.getTextOfIdentifierOrLiteral=function(t){return 71===t.kind?e.idText(t):t.text},e.getEscapedTextOfIdentifierOrLiteral=function(e){return 71===e.kind?e.escapedText:h(e.text)},e.getPropertyNameForKnownSymbolName=Te,e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=Ce,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 148===Ee(e).kind},e.getRootDeclaration=Ee,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 154===t||191===t||233===t||192===t||153===t||155===t||156===t||238===t||273===t},e.nodeIsSynthesized=Ne,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var t=Pe(e),r=187===e.kind&&void 0!==e.arguments;return Ae(e.kind,t,r)},e.getOperatorAssociativity=Ae,e.getExpressionPrecedence=function(e){var t=Pe(e),r=187===e.kind&&void 0!==e.arguments;return we(e.kind,t,r)},e.getOperator=Pe,e.getOperatorPrecedence=we,e.getBinaryOperatorPrecedence=Fe,e.createDiagnosticCollection=function(){var t=[],r=[],n=e.createMap(),i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t),e.insertSorted(o,a,e.compareDiagnostics)},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMap(r,function(e){return n.get(e)});return t.length?(a.unshift.apply(a,t),a):a},reattachFileDiagnostics:function(t){e.forEach(n.get(t.fileName),function(e){return e.file=t})}}};var Oe=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ie=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Me=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Le=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","
":"\\u0085"});function Re(e,t){var r=96===t?Me:39===t?Ie:Oe;return e.replace(r,Be)}function Be(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Le.get(e)||je(e.charCodeAt(0))}function je(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}e.escapeString=Re,e.isIntrinsicJsxName=function(e){var t=e.charCodeAt(0);return t>=97&&t<=122||e.indexOf("-")>-1};var Je=/[^\u0000-\u007F]/g;function ze(e,t){return e=Re(e,t),Je.test(e)?e.replace(Je,function(e){return je(e.charCodeAt(0))}):e}e.escapeNonAsciiString=ze;var Ke=[""," "];function Ue(e){return void 0===Ke[e]&&(Ke[e]=Ue(e-1)+Ke[1]),Ke[e]}function qe(){return Ke[1].length}function Ve(e,t){return t.moduleName||We(e,t.fileName)}function We(t,r){var n=function(e){return t.getCanonicalFileName(e)},i=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),n),a=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(i,a,i,n,!1);return e.removeFileExtension(o)}function He(e,t,r){return!(t.noEmitForJsFiles&&W(e)||e.isDeclarationFile||r(e))}function Ge(t,r,n){var i=e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()),a=r.getCommonSourceDirectory();return i=0===r.getCanonicalFileName(i).indexOf(r.getCanonicalFileName(a))?i.substring(a.length):i,e.combinePaths(n,i)}function Xe(t,r){return e.getLineAndCharacterOfPosition(t,r).line}function Qe(t,r){return e.computeLineAndCharacterOfPosition(t,r).line}function Ye(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&$e(e.parameters[0]);return e.parameters[t?1:0]}}function $e(e){return Ze(e.name)}function Ze(e){return e&&71===e.kind&&et(e)}function et(e){return 99===e.originalKeywordKind}function tt(t){return t.type||(H(t)?e.getJSDocType(t):void 0)}function rt(t){var r=e.getJSDocTemplateTag(t);return r&&r.typeParameters}function nt(e,t,r,n){it(e,t,r.pos,n)}function it(e,t,r,n){n&&n.length&&r!==n[0].pos&&Qe(e,r)!==Qe(e,n[0].pos)&&t.writeLine()}function at(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.write(" ");for(var c=!1,u=0,l=n;u<l.length;u++){var _=l[u];c&&(r.write(" "),c=!1),s(e,t,r,_.pos,_.end,o),_.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.write(" ")}}function ot(e,t,r,n,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(r.write(s),o!==t&&r.writeLine()):r.writeLiteral(n)}function st(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=qe()-i%qe():i++;return i}function ct(e,t){return!!_t(e,t)}function ut(e){return ct(e,32)}function lt(e){return ct(e,64)}function _t(e,t){return dt(e)&t}function dt(e){if(536870912&e.modifierFlagsCache)return-536870913&e.modifierFlagsCache;var t=pt(e);return e.modifierFlagsCache=536870912|t,t}function pt(e){var t=0;if(e.modifiers)for(var r=0,n=e.modifiers;r<n.length;r++){t|=ft(n[r].kind)}return(4&e.flags||71===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function ft(e){switch(e){case 115:return 32;case 114:return 4;case 113:return 16;case 112:return 8;case 117:return 128;case 84:return 1;case 124:return 2;case 76:return 2048;case 79:return 512;case 120:return 256;case 132:return 64}return 0}function mt(e){return e>=58&&e<=70}function gt(t){if(206===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function yt(t,r){return e.isBinaryExpression(t)&&(r?58===t.operatorToken.kind:mt(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function ht(e){return void 0!==gt(e)}function vt(e){return 71===e.kind||bt(e)}function bt(t){return e.isPropertyAccessExpression(t)&&vt(t.expression)}function xt(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText}e.getIndentString=Ue,e.getIndentSize=qe,e.createTextWriter=function(t){var r,n,i,a,o;function s(e){e&&e.length&&(i&&(r+=Ue(n),i=!1),r+=e)}function c(){r="",n=0,i=!0,a=0,o=0}return c(),{write:s,rawWrite:function(e){void 0!==e&&(i&&(i=!1),r+=e)},writeTextOfNode:function(e,t){s(f(e,t))},writeLiteral:function(t){if(t&&t.length){s(t);var n=e.computeLineStarts(t);n.length>1&&(a=a+n.length-1,o=r.length-t.length+e.lastOrUndefined(n))}},writeLine:function(){i||(a++,o=(r+=t).length,i=!0)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a+1},getColumn:function(){return i?n*qe()+1:r.length-o+1},getText:function(){return r},isAtStartOfLine:function(){return i},clear:c,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:s,writeOperator:s,writeParameter:s,writeProperty:s,writePunctuation:s,writeSpace:s,writeStringLiteral:s,writeSymbol:s}},e.getResolvedExternalModuleName=Ve,e.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return Ve(e,n)},e.getExternalModuleNameFromPath=We,e.getOwnEmitOutputFilePath=function(t,r,n){var i=r.getCompilerOptions();return(i.outDir?e.removeFileExtension(Ge(t,r,i.outDir)):e.removeFileExtension(t.fileName))+n},e.getDeclarationEmitOutputFilePath=function(t,r){var n=r.getCompilerOptions(),i=n.declarationDir||n.outDir,a=i?Ge(t,r,i):t.fileName;return e.removeFileExtension(a)+".d.ts"},e.getSourceFilesToEmit=function(t,r){var n=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(n.outFile||n.out){var a=e.getEmitModuleKind(n),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&He(t,n,i)})}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,function(e){return He(e,n,i)})},e.sourceFileMayBeEmitted=He,e.getSourceFilePathInNewDir=Ge,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,function(t){r.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))},o)},e.getLineOfLocalPosition=Xe,e.getLineOfLocalPositionFromLineMap=Qe,e.getFirstConstructorWithBody=function(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&u(t.body)})},e.getSetAccessorTypeAnnotationNode=function(e){var t=Ye(e);return t&&t.type},e.getThisParameter=function(e){if(e.parameters.length){var t=e.parameters[0];if($e(t))return t}},e.parameterIsThisKeyword=$e,e.isThisIdentifier=Ze,e.identifierIsThisKeyword=et,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return xe(r)?(n=r,155===r.kind?a=r:156===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){155!==e.kind&&156!==e.kind||ct(e,32)!==ct(r,32)||De(e.name)===De(r.name)&&(n?i||(i=e):n=e,155!==e.kind||a||(a=e),156!==e.kind||o||(o=e))}),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=tt,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return t.type||(H(t)?e.getJSDocReturnType(t):void 0)},e.getEffectiveTypeParameterDeclarations=function(e){return e.typeParameters||(H(e)?rt(e):void 0)},e.getJSDocTypeParameterDeclarations=rt,e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=Ye(e);return t&&tt(t)},e.emitNewLineBeforeLeadingComments=nt,e.emitNewLineBeforeLeadingCommentsOfPosition=it,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&Qe(e,r)!==Qe(e,n)&&t.writeLine()},e.emitComments=at,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,u;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return l(t,e.pos)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var _=[],d=void 0,p=0,f=c;p<f.length;p++){var m=f[p];if(d){var g=Qe(r,d.end);if(Qe(r,m.pos)>=g+2)break}_.push(m),d=m}_.length&&(g=Qe(r,e.lastOrUndefined(_).end),Qe(r,e.skipTrivia(t,a.pos))>=g+2&&(nt(r,n,a,c),at(t,r,n,_,!1,!0,o,i),u={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(_).end}))}return u},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,u=void 0,l=i,_=s.line;l<a;_++){var d=_+1===c?t.length+1:r[_+1];if(l!==i){void 0===u&&(u=st(t,r[s.line],i));var p=n.getIndent()*qe()-u+st(t,l,d);if(p>0){var f=p%qe(),m=Ue((p-f)/qe());for(n.rawWrite(m);f;)n.rawWrite(" "),f--}else n.rawWrite("")}ot(t,a,n,o,l,d),l=d}else n.write(t.substring(i,a))},e.hasModifiers=function(e){return 0!==dt(e)},e.hasModifier=ct,e.hasStaticModifier=ut,e.hasReadonlyModifier=lt,e.getSelectedModifierFlags=_t,e.getModifierFlags=dt,e.getModifierFlagsNoCache=pt,e.modifierToFlag=ft,e.isLogicalOperator=function(e){return 54===e||53===e||51===e},e.isAssignmentOperator=mt,e.tryGetClassExtendingExpressionWithTypeArguments=gt,e.isAssignmentExpression=yt,e.isDestructuringAssignment=function(e){if(yt(e,!0)){var t=e.left.kind;return 183===t||182===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=ht,e.isExpressionWithTypeArgumentsInClassImplementsClause=function(t){return 206===t.kind&&vt(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)},e.isEntityNameExpression=vt,e.isPropertyAccessEntityNameExpression=bt,e.isPrototypeAccess=xt,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 145===e.parent.kind&&e.parent.right===e||184===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 183===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 182===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){return function(t){return t&&e.length(t.declarations)>0&&ct(t.declarations[0],512)}(t)?t.declarations[0].localSymbol:void 0},e.tryExtractTypeScriptExtension=function(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})};var St="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function kt(t){for(var r,n,i,a,o="",s=function(t){for(var r=[],n=t.length,i=0;i<n;i++){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(a>>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,u=s.length;c<u;)r=s[c]>>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=u?i=a=64:c+2>=u&&(a=64),o+=St.charAt(r)+St.charAt(n)+St.charAt(i)+St.charAt(a),c+=3;return o}e.convertToBase64=kt,e.base64encode=function(e,t){return e.base64encode?e.base64encode(t):kt(t)},e.base64decode=function(e,t){if(e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i<r&&t.charCodeAt(i)!==St.charCodeAt(64);){var a=St.indexOf(t[i]),o=St.indexOf(t[i+1]),s=St.indexOf(t[i+2]),c=St.indexOf(t[i+3]),u=(63&a)<<2|o>>4&3,l=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===_&&0!==c?n.push(u,l):n.push(u,l,_),i+=4}return function(e){for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t}(n)};var Dt,Tt="\r\n",Ct="\n";function Et(t,r,n){void 0===t&&(t=0);var i=function(t){var r=[];for(var n in t){var i=t[n];"number"==typeof i&&r.push([i,n])}return e.stableSort(r,function(t,r){return e.compareValues(t[0],r[0])})}(r);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=i.length-1;s>=0&&0!==o;s--){var c=i[s],u=c[0],l=c[1];0!==u&&(o&u)===u&&(o&=~u,a=l+(a?", ":"")+a)}if(0===o)return a}else for(var _=0,d=i;_<d.length;_++){var p=d[_];u=p[0],l=p[1];if(u===t)return l}return t.toString()}function Nt(e,t){return{pos:e,end:t}}function At(e,t){return Nt(t,e.end)}function Pt(e){return e.decorators&&e.decorators.length>0?At(e,e.decorators.end):e}function wt(e,t,r){return Ft(Ot(e,r),t.end,r)}function Ft(e,t,r){return e===t||Xe(r,e)===Xe(r,t)}function Ot(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function It(e){return void 0!==e.initializer}function Mt(e){return 33554432&e.flags?e.checkFlags:0}function Lt(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 198:case 197:var r=t.operator;return 43===r||44===r?o():0;case 199:var n=t,i=n.left,a=n.operatorToken;return i===e&&mt(a.kind)?o():0;case 184:return t.name!==e?0:Lt(t);default:return 0}function o(){return t.parent&&215===t.parent.kind?1:2}}function Rt(t,r){for(;;){var n=r(t);if(void 0!==n)return n;var i=e.getDirectoryPath(t);if(i===t)return;t=i}}function Bt(e){if(32&e.flags){var t=jt(e);return!!t&&ct(t,128)}return!1}function jt(t){return e.find(t.declarations,e.isClassLike)}function Jt(e){return 65536&e.flags?e.objectFlags:0}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return Tt;case 1:return Ct}return r?r():e.sys?e.sys.newLine:Tt},e.formatSyntaxKind=function(t){return Et(t,e.SyntaxKind,!1)},e.formatModifierFlags=function(t){return Et(t,e.ModifierFlags,!0)},e.formatTransformFlags=function(t){return Et(t,e.TransformFlags,!0)},e.formatEmitFlags=function(t){return Et(t,e.EmitFlags,!0)},e.formatSymbolFlags=function(t){return Et(t,e.SymbolFlags,!0)},e.formatTypeFlags=function(t){return Et(t,e.TypeFlags,!0)},e.formatObjectFlags=function(t){return Et(t,e.ObjectFlags,!0)},e.createRange=Nt,e.moveRangeEnd=function(e,t){return Nt(e.pos,t)},e.moveRangePos=At,e.moveRangePastDecorators=Pt,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?At(e,e.modifiers.end):Pt(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return Nt(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return wt(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return Ft(Ot(e,r),Ot(t,r),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return Ft(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=wt,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Ft(e.end,Ot(t,r),r)},e.positionsAreOnSameLine=Ft,e.getStartPositionOfRange=Ot,e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 237:case 238:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,It)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.getCheckFlags=Mt,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?r:-29&r}if(6&Mt(t)){var n=t.checkFlags;return(256&n?8:64&n?4:16)|(512&n?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===Lt(e)},e.isWriteAccess=function(e){return 0!==Lt(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Dt||(Dt={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"===p(t[n])){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMap=function(e,t,r){var n=r.createNewValue,i=r.onDeleteValue,a=r.onExistingValue;e.forEach(function(r,n){var o=t.get(n);void 0===o?(e.delete(n),i(r,n)):a&&a(r,o,n)}),t.forEach(function(t,r){e.has(r)||e.set(r,n(r,t))})},e.forEachAncestorDirectory=Rt,e.isAbstractConstructorType=function(e){return!!(16&Jt(e))&&!!e.symbol&&Bt(e.symbol)},e.isAbstractConstructorSymbol=Bt,e.getClassLikeDeclarationOfSymbol=jt,e.getObjectFlags=Jt,e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(e,t){return!!Rt(e,function(e){return!!t(e)||void 0})},e.isUMDExportSymbol=function(t){return t&&t.declarations&&t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:m(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,function(e){u(e)&&(r=e)},function(e){for(var t=e.length-1;t>=0;t--)if(u(e[t])){r=e[t];break}}),r},e.addToSeen=function(e,t){return t=String(t),!e.has(t)&&(e.set(t,!0),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)}}(o||(o={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!e.isBindingPattern(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(;t&&(181===t.kind||e.isBindingPattern(t));)t=t.parent;return t}function d(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function p(e){return 0==(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function m(t){var r=y(t);return e.isIdentifier(r)?r:void 0}function g(t){return t.name||function(t){var r=t.parent.parent;if(r){if(e.isDeclaration(r))return m(r);switch(r.kind){case 213:return r.declarationList&&r.declarationList.declarations[0]?m(r.declarationList.declarations[0]):void 0;case 215:var n=r.expression;switch(n.kind){case 184:return n.name;case 185:var i=n.argumentExpression;if(e.isIdentifier(i))return i}return;case 1:return;case 190:return m(r.expression);case 227:return e.isDeclaration(r.statement)||e.isExpression(r.statement)?m(r.statement):void 0;default:e.Debug.assertNever(r,"Found typedef tag attached to node which it should not be!")}}}(t)}function y(t){if(t){switch(t.kind){case 204:case 191:if(!t.name)return function(t){if(!t.parent)return;if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isPropertyAccessExpression(t.parent.left))return t.parent.left.name}}(t);break;case 71:return t;case 293:case 288:var r=t.name;if(145===r.kind)return r.right;break;case 199:var n=t;switch(e.getSpecialPropertyAssignmentKind(n)){case 1:case 4:case 5:case 3:return n.left.name;default:return}case 292:return g(t);case 248:var i=t.expression;return e.isIdentifier(i)?i:void 0}return t.name}}function h(t){if(t.name){if(e.isIdentifier(t.name)){var r=t.name.escapedText;return b(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===r})}var n=t.parent.parameters.indexOf(t);e.Debug.assert(n>-1,"Parameters should always be in their parents' parameter list");var i=b(t.parent).filter(e.isJSDocParameterTag);if(n<i.length)return[i[n]]}return e.emptyArray}function v(t){return x(t,e.isJSDocReturnTag)}function b(t){var r=t.jsDocCache;return void 0===r&&(t.jsDocCache=r=e.flatMap(e.getJSDocCommentsAndTags(t),function(t){return e.isJSDoc(t)?t.tags:t})),r}function x(t,r){return e.find(b(t),r)}e.getDefaultLibFileName=function(e){switch(e.target){case 6:return"lib.esnext.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r<t(e)},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextRange=function(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t),{pos:t,end:r}},e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,u=1;u<r.length;u++){var l=r[u],_=i,d=a,p=o,f=l.span.start,m=t(l.span),g=f+l.newLength;i=Math.min(_,f),a=Math.max(d,d+(m-p)),o=Math.max(g,g+(p-m))}return c(s(i,a),o-i)},e.getTypeParameterOwner=function(t){if(t&&147===t.kind)for(var r=t;r;r=r.parent)if(e.isFunctionLike(r)||e.isClassLike(r)||235===r.kind)return r},e.isParameterPropertyDeclaration=function(t){return e.hasModifier(t,92)&&154===t.parent.kind},e.isEmptyBindingPattern=u,e.isEmptyBindingElement=l,e.getCombinedModifierFlags=function(t){t=_(t);var r=e.getModifierFlags(t);return 231===t.kind&&(t=t.parent),t&&232===t.kind&&(r|=e.getModifierFlags(t),t=t.parent),t&&213===t.kind&&(r|=e.getModifierFlags(t)),r},e.getCombinedNodeFlags=function(e){var t=(e=_(e)).flags;return 231===e.kind&&(e=e.parent),e&&232===e.kind&&(t|=e.flags,e=e.parent),e&&213===e.kind&&(t|=e.flags),t},e.validateLocaleAndSetLanguage=function(t,r,n){var i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(t.toLowerCase());if(i){var a=i[1];o(a,i[3],n)||o(a,void 0,n),e.setUILocale(t)}else n&&n.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function o(t,n,i){var a=e.normalizePath(r.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,t);if(n&&(s=s+"-"+n),s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!r.fileExists(s))return!1;var c="";try{c=r.readFile(s)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.localizedDiagnosticMessages=JSON.parse(c)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=d,e.isParseTreeNode=p,e.getParseTreeNode=function(e,t){return void 0===e||p(e)?e:!p(e=d(e))||t&&!t(e)?void 0:e},e.unescapeLeadingUnderscores=f,e.idText=function(e){return f(e.escapedText)},e.symbolName=function(e){return f(e.escapedName)},e.unescapeIdentifier=function(e){return e},e.getNameOfJSDocTypedef=g,e.isNamedDeclaration=function(e){return!!e.name},e.getNameOfDeclaration=y,e.getJSDocParameterTags=h,e.hasJSDocParameterTags=function(t){return!!x(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return x(t,e.isJSDocAugmentsTag)},e.getJSDocClassTag=function(t){return x(t,e.isJSDocClassTag)},e.getJSDocReturnTag=v,e.getJSDocTemplateTag=function(t){return x(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=function(t){var r=x(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type)return r},e.getJSDocType=function(t){var r=x(t,e.isJSDocTypeTag);return!r&&e.isParameter(t)&&(r=e.find(h(t),function(e){return!!e.typeExpression})),r&&r.typeExpression&&r.typeExpression.type},e.getJSDocReturnType=function(e){var t=v(e);return t&&t.typeExpression&&t.typeExpression.type},e.getJSDocTags=b,e.getAllJSDocTagsOfKind=function(e,t){return b(e).filter(function(e){return e.kind===t})}}(o||(o={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isStringLiteral=function(e){return 9===e.kind},e.isJsxText=function(e){return 10===e.kind},e.isRegularExpressionLiteral=function(e){return 12===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 13===e.kind},e.isTemplateHead=function(e){return 14===e.kind},e.isTemplateMiddle=function(e){return 15===e.kind},e.isTemplateTail=function(e){return 16===e.kind},e.isIdentifier=function(e){return 71===e.kind},e.isQualifiedName=function(e){return 145===e.kind},e.isComputedPropertyName=function(e){return 146===e.kind},e.isTypeParameterDeclaration=function(e){return 147===e.kind},e.isParameter=function(e){return 148===e.kind},e.isDecorator=function(e){return 149===e.kind},e.isPropertySignature=function(e){return 150===e.kind},e.isPropertyDeclaration=function(e){return 151===e.kind},e.isMethodSignature=function(e){return 152===e.kind},e.isMethodDeclaration=function(e){return 153===e.kind},e.isConstructorDeclaration=function(e){return 154===e.kind},e.isGetAccessorDeclaration=function(e){return 155===e.kind},e.isSetAccessorDeclaration=function(e){return 156===e.kind},e.isCallSignatureDeclaration=function(e){return 157===e.kind},e.isConstructSignatureDeclaration=function(e){return 158===e.kind},e.isIndexSignatureDeclaration=function(e){return 159===e.kind},e.isTypePredicateNode=function(e){return 160===e.kind},e.isTypeReferenceNode=function(e){return 161===e.kind},e.isFunctionTypeNode=function(e){return 162===e.kind},e.isConstructorTypeNode=function(e){return 163===e.kind},e.isTypeQueryNode=function(e){return 164===e.kind},e.isTypeLiteralNode=function(e){return 165===e.kind},e.isArrayTypeNode=function(e){return 166===e.kind},e.isTupleTypeNode=function(e){return 167===e.kind},e.isUnionTypeNode=function(e){return 168===e.kind},e.isIntersectionTypeNode=function(e){return 169===e.kind},e.isConditionalTypeNode=function(e){return 170===e.kind},e.isInferTypeNode=function(e){return 171===e.kind},e.isParenthesizedTypeNode=function(e){return 172===e.kind},e.isThisTypeNode=function(e){return 173===e.kind},e.isTypeOperatorNode=function(e){return 174===e.kind},e.isIndexedAccessTypeNode=function(e){return 175===e.kind},e.isMappedTypeNode=function(e){return 176===e.kind},e.isLiteralTypeNode=function(e){return 177===e.kind},e.isImportTypeNode=function(e){return 178===e.kind},e.isObjectBindingPattern=function(e){return 179===e.kind},e.isArrayBindingPattern=function(e){return 180===e.kind},e.isBindingElement=function(e){return 181===e.kind},e.isArrayLiteralExpression=function(e){return 182===e.kind},e.isObjectLiteralExpression=function(e){return 183===e.kind},e.isPropertyAccessExpression=function(e){return 184===e.kind},e.isElementAccessExpression=function(e){return 185===e.kind},e.isCallExpression=function(e){return 186===e.kind},e.isNewExpression=function(e){return 187===e.kind},e.isTaggedTemplateExpression=function(e){return 188===e.kind},e.isTypeAssertion=function(e){return 189===e.kind},e.isParenthesizedExpression=function(e){return 190===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;296===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 191===e.kind},e.isArrowFunction=function(e){return 192===e.kind},e.isDeleteExpression=function(e){return 193===e.kind},e.isTypeOfExpression=function(e){return 194===e.kind},e.isVoidExpression=function(e){return 195===e.kind},e.isAwaitExpression=function(e){return 196===e.kind},e.isPrefixUnaryExpression=function(e){return 197===e.kind},e.isPostfixUnaryExpression=function(e){return 198===e.kind},e.isBinaryExpression=function(e){return 199===e.kind},e.isConditionalExpression=function(e){return 200===e.kind},e.isTemplateExpression=function(e){return 201===e.kind},e.isYieldExpression=function(e){return 202===e.kind},e.isSpreadElement=function(e){return 203===e.kind},e.isClassExpression=function(e){return 204===e.kind},e.isOmittedExpression=function(e){return 205===e.kind},e.isExpressionWithTypeArguments=function(e){return 206===e.kind},e.isAsExpression=function(e){return 207===e.kind},e.isNonNullExpression=function(e){return 208===e.kind},e.isMetaProperty=function(e){return 209===e.kind},e.isTemplateSpan=function(e){return 210===e.kind},e.isSemicolonClassElement=function(e){return 211===e.kind},e.isBlock=function(e){return 212===e.kind},e.isVariableStatement=function(e){return 213===e.kind},e.isEmptyStatement=function(e){return 214===e.kind},e.isExpressionStatement=function(e){return 215===e.kind},e.isIfStatement=function(e){return 216===e.kind},e.isDoStatement=function(e){return 217===e.kind},e.isWhileStatement=function(e){return 218===e.kind},e.isForStatement=function(e){return 219===e.kind},e.isForInStatement=function(e){return 220===e.kind},e.isForOfStatement=function(e){return 221===e.kind},e.isContinueStatement=function(e){return 222===e.kind},e.isBreakStatement=function(e){return 223===e.kind},e.isBreakOrContinueStatement=function(e){return 223===e.kind||222===e.kind},e.isReturnStatement=function(e){return 224===e.kind},e.isWithStatement=function(e){return 225===e.kind},e.isSwitchStatement=function(e){return 226===e.kind},e.isLabeledStatement=function(e){return 227===e.kind},e.isThrowStatement=function(e){return 228===e.kind},e.isTryStatement=function(e){return 229===e.kind},e.isDebuggerStatement=function(e){return 230===e.kind},e.isVariableDeclaration=function(e){return 231===e.kind},e.isVariableDeclarationList=function(e){return 232===e.kind},e.isFunctionDeclaration=function(e){return 233===e.kind},e.isClassDeclaration=function(e){return 234===e.kind},e.isInterfaceDeclaration=function(e){return 235===e.kind},e.isTypeAliasDeclaration=function(e){return 236===e.kind},e.isEnumDeclaration=function(e){return 237===e.kind},e.isModuleDeclaration=function(e){return 238===e.kind},e.isModuleBlock=function(e){return 239===e.kind},e.isCaseBlock=function(e){return 240===e.kind},e.isNamespaceExportDeclaration=function(e){return 241===e.kind},e.isImportEqualsDeclaration=function(e){return 242===e.kind},e.isImportDeclaration=function(e){return 243===e.kind},e.isImportClause=function(e){return 244===e.kind},e.isNamespaceImport=function(e){return 245===e.kind},e.isNamedImports=function(e){return 246===e.kind},e.isImportSpecifier=function(e){return 247===e.kind},e.isExportAssignment=function(e){return 248===e.kind},e.isExportDeclaration=function(e){return 249===e.kind},e.isNamedExports=function(e){return 250===e.kind},e.isExportSpecifier=function(e){return 251===e.kind},e.isMissingDeclaration=function(e){return 252===e.kind},e.isExternalModuleReference=function(e){return 253===e.kind},e.isJsxElement=function(e){return 254===e.kind},e.isJsxSelfClosingElement=function(e){return 255===e.kind},e.isJsxOpeningElement=function(e){return 256===e.kind},e.isJsxClosingElement=function(e){return 257===e.kind},e.isJsxFragment=function(e){return 258===e.kind},e.isJsxOpeningFragment=function(e){return 259===e.kind},e.isJsxClosingFragment=function(e){return 260===e.kind},e.isJsxAttribute=function(e){return 261===e.kind},e.isJsxAttributes=function(e){return 262===e.kind},e.isJsxSpreadAttribute=function(e){return 263===e.kind},e.isJsxExpression=function(e){return 264===e.kind},e.isCaseClause=function(e){return 265===e.kind},e.isDefaultClause=function(e){return 266===e.kind},e.isHeritageClause=function(e){return 267===e.kind},e.isCatchClause=function(e){return 268===e.kind},e.isPropertyAssignment=function(e){return 269===e.kind},e.isShorthandPropertyAssignment=function(e){return 270===e.kind},e.isSpreadAssignment=function(e){return 271===e.kind},e.isEnumMember=function(e){return 272===e.kind},e.isSourceFile=function(e){return 273===e.kind},e.isBundle=function(e){return 274===e.kind},e.isJSDocTypeExpression=function(e){return 275===e.kind},e.isJSDocAllType=function(e){return 276===e.kind},e.isJSDocUnknownType=function(e){return 277===e.kind},e.isJSDocNullableType=function(e){return 278===e.kind},e.isJSDocNonNullableType=function(e){return 279===e.kind},e.isJSDocOptionalType=function(e){return 280===e.kind},e.isJSDocFunctionType=function(e){return 281===e.kind},e.isJSDocVariadicType=function(e){return 282===e.kind},e.isJSDoc=function(e){return 283===e.kind},e.isJSDocAugmentsTag=function(e){return 286===e.kind},e.isJSDocClassTag=function(e){return 287===e.kind},e.isJSDocParameterTag=function(e){return 288===e.kind},e.isJSDocReturnTag=function(e){return 289===e.kind},e.isJSDocTypeTag=function(e){return 290===e.kind},e.isJSDocTemplateTag=function(e){return 291===e.kind},e.isJSDocTypedefTag=function(e){return 292===e.kind},e.isJSDocPropertyTag=function(e){return 293===e.kind},e.isJSDocPropertyLikeTag=function(e){return 293===e.kind||288===e.kind},e.isJSDocTypeLiteral=function(e){return 284===e.kind}}(o||(o={})),function(e){function t(e){return e>=145}function r(e){return 8<=e&&e<=13}function n(e){return 13<=e&&e<=16}function i(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 132:case 115:return!0}return!1}function a(t){return!!(92&e.modifierToFlag(t))}function o(e){return e&&c(e.kind)}function s(e){switch(e){case 233:case 153:case 154:case 155:case 156:case 191:case 192:return!0;default:return!1}}function c(e){switch(e){case 152:case 157:case 158:case 159:case 162:case 281:case 163:return!0;default:return s(e)}}function u(e){var t=e.kind;return 154===t||151===t||153===t||155===t||156===t||159===t||211===t}function l(e){var t=e.kind;return 158===t||157===t||150===t||152===t||159===t}function _(e){switch(e.kind){case 179:case 183:return!0}return!1}function d(e){switch(e.kind){case 180:case 182:return!0}return!1}function p(e){switch(e){case 184:case 185:case 187:case 186:case 254:case 255:case 258:case 188:case 182:case 190:case 183:case 204:case 191:case 71:case 12:case 8:case 9:case 13:case 201:case 86:case 95:case 99:case 101:case 97:case 208:case 209:case 91:return!0;default:return!1}}function f(e){switch(e){case 197:case 198:case 193:case 194:case 195:case 196:case 189:return!0;default:return p(e)}}function m(t){return function(e){switch(e){case 200:case 202:case 192:case 199:case 203:case 207:case 205:case 297:case 296:return!0;default:return f(e)}}(e.skipPartiallyEmittedExpressions(t).kind)}function g(e){return 296===e.kind}function y(e){return 295===e.kind}function h(e){return 233===e||252===e||234===e||235===e||236===e||237===e||238===e||243===e||242===e||249===e||248===e||241===e}function v(e){return 223===e||222===e||230===e||217===e||215===e||214===e||220===e||221===e||219===e||216===e||227===e||224===e||226===e||228===e||229===e||213===e||218===e||225===e||295===e||299===e||298===e}function b(e){return e.kind>=285&&e.kind<=293}function x(e){return!!e.initializer}e.isSyntaxList=function(e){return 294===e.kind},e.isNode=function(e){return t(e.kind)},e.isNodeKind=t,e.isToken=function(e){return e.kind>=0&&e.kind<=144},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=r,e.isLiteralExpression=function(e){return r(e.kind)},e.isTemplateLiteralKind=n,e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 15===t||16===t},e.isStringTextContainingNode=function(e){return 9===e.kind||n(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isModifierKind=i,e.isParameterPropertyModifier=a,e.isClassMemberModifier=function(e){return a(e)||115===e},e.isModifier=function(e){return i(e.kind)},e.isEntityName=function(e){var t=e.kind;return 145===t||71===t},e.isPropertyName=function(e){var t=e.kind;return 71===t||9===t||8===t||146===t},e.isBindingName=function(e){var t=e.kind;return 71===t||179===t||180===t},e.isFunctionLike=o,e.isFunctionLikeDeclaration=function(e){return e&&s(e.kind)},e.isFunctionLikeKind=c,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&o(t.parent)},e.isClassElement=u,e.isClassLike=function(e){return e&&(234===e.kind||204===e.kind)},e.isAccessor=function(e){return e&&(155===e.kind||156===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 153:case 155:case 156:return!0;default:return!1}},e.isTypeElement=l,e.isClassOrTypeElement=function(e){return l(e)||u(e)},e.isObjectLiteralElementLike=function(e){var t=e.kind;return 269===t||270===t||271===t||153===t||155===t||156===t},e.isTypeNode=function(e){return(t=e.kind)>=160&&t<=178||119===t||134===t||135===t||122===t||137===t||138===t||99===t||105===t||140===t||95===t||131===t||206===t||276===t||277===t||278===t||279===t||280===t||281===t||282===t;var t},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 162:case 163:return!0}return!1},e.isBindingPattern=function(e){if(e){var t=e.kind;return 180===t||179===t}return!1},e.isAssignmentPattern=function(e){var t=e.kind;return 182===t||183===t},e.isArrayBindingElement=function(e){var t=e.kind;return 181===t||205===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 231:case 148:case 181:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return _(e)||d(e)},e.isObjectBindingOrAssignmentPattern=_,e.isArrayBindingOrAssignmentPattern=d,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 184===t||145===t||178===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 184===t||145===t},e.isCallLikeExpression=function(e){switch(e.kind){case 256:case 255:case 186:case 187:case 188:case 149:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 186===e.kind||187===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 201===t||13===t},e.isLeftHandSideExpression=function(t){return p(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpression=function(t){return f(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 198:return!0;case 197:return 43===e.operator||44===e.operator;default:return!1}},e.isExpression=m,e.isAssertionExpression=function(e){var t=e.kind;return 189===t||207===t},e.isPartiallyEmittedExpression=g,e.isNotEmittedStatement=y,e.isNotEmittedOrPartiallyEmittedNode=function(e){return y(e)||g(e)},e.isIterationStatement=function e(t,r){switch(t.kind){case 219:case 220:case 221:case 217:case 218:return!0;case 227:return r&&e(t.statement,r)}return!1},e.isForInOrOfStatement=function(e){return 220===e.kind||221===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||m(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||m(t)},e.isModuleBody=function(e){var t=e.kind;return 239===t||238===t||71===t},e.isNamespaceBody=function(e){var t=e.kind;return 239===t||238===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 71===t||238===t},e.isNamedImportBindings=function(e){var t=e.kind;return 246===t||245===t},e.isModuleOrEnumDeclaration=function(e){return 238===e.kind||237===e.kind},e.isDeclaration=function(t){return 147===t.kind?291!==t.parent.kind||e.isInJavaScriptFile(t):192===(r=t.kind)||181===r||234===r||204===r||154===r||237===r||272===r||251===r||233===r||191===r||155===r||244===r||242===r||247===r||235===r||261===r||153===r||152===r||238===r||241===r||245===r||148===r||269===r||151===r||150===r||156===r||270===r||236===r||147===r||231===r||292===r;var r},e.isDeclarationStatement=function(e){return h(e.kind)},e.isStatementButNotDeclaration=function(e){return v(e.kind)},e.isStatement=function(t){var r=t.kind;return v(r)||h(r)||function(t){return 212===t.kind&&((void 0===t.parent||229!==t.parent.kind&&268!==t.parent.kind)&&!e.isFunctionBlock(t))}(t)},e.isModuleReference=function(e){var t=e.kind;return 253===t||145===t||71===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 99===t||71===t||184===t},e.isJsxChild=function(e){var t=e.kind;return 254===t||264===t||255===t||10===t||258===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 261===t||263===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 9===t||264===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 256===t||255===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 265===t||266===t},e.isJSDocNode=function(e){return e.kind>=275&&e.kind<=293},e.isJSDocCommentContainingNode=function(t){return 283===t.kind||b(t)||e.isJSDocTypeLiteral(t)},e.isJSDocTag=b,e.isSetAccessor=function(e){return 156===e.kind},e.isGetAccessor=function(e){return 155===e.kind},e.hasJSDocNodes=function(e){return!!e.jsDoc&&e.jsDoc.length>0},e.hasType=function(e){return!!e.type},e.couldHaveType=function(e){switch(e.kind){case 148:case 150:case 151:case 152:case 153:case 154:case 155:case 156:case 157:case 158:case 159:case 160:case 162:case 163:case 172:case 174:case 176:case 189:case 191:case 192:case 207:case 231:case 233:case 236:case 275:case 278:case 279:case 280:case 281:case 282:return!0}return!1},e.hasInitializer=x,e.hasOnlyExpressionInitializer=function(t){return x(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)},e.isObjectLiteralElement=function(e){switch(e.kind){case 261:case 263:case 269:case 270:case 153:case 155:case 156:return!0;default:return!1}},e.isTypeReferenceType=function(e){return 161===e.kind||206===e.kind};var S=1073741823;e.guessIndentation=function(t){for(var r=S,n=0,i=t;n<i.length;n++){var a=i[n];if(a.length){for(var o=0;o<a.length&&o<r&&e.isWhiteSpaceLike(a.charCodeAt(o));o++);if(o<r&&(r=o),0===r)return 0}}return r===S?void 0:r},e.isStringLiteralLike=function(e){return 9===e.kind||13===e.kind},e.isNamedImportsOrExports=function(e){return 246===e.kind||250===e.kind}}(o||(o={})),function(e){var t,r,n,i,a,o,s;function c(e,t){return t&&e(t)}function u(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;n<i.length;n++){var a=e(i[n]);if(a)return a}}}function l(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function _(e,t,r){if(e&&!(e.kind<=144))switch(e.kind){case 145:return c(t,e.left)||c(t,e.right);case 147:return c(t,e.name)||c(t,e.constraint)||c(t,e.default)||c(t,e.expression);case 270:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.equalsToken)||c(t,e.objectAssignmentInitializer);case 271:return c(t,e.expression);case 148:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.dotDotDotToken)||c(t,e.name)||c(t,e.questionToken)||c(t,e.type)||c(t,e.initializer);case 151:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.exclamationToken)||c(t,e.type)||c(t,e.initializer);case 150:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.type)||c(t,e.initializer);case 269:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.initializer);case 231:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.exclamationToken)||c(t,e.type)||c(t,e.initializer);case 181:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.dotDotDotToken)||c(t,e.propertyName)||c(t,e.name)||c(t,e.initializer);case 162:case 163:case 157:case 158:case 159:return u(t,r,e.decorators)||u(t,r,e.modifiers)||u(t,r,e.typeParameters)||u(t,r,e.parameters)||c(t,e.type);case 153:case 152:case 154:case 155:case 156:case 191:case 233:case 192:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.asteriskToken)||c(t,e.name)||c(t,e.questionToken)||u(t,r,e.typeParameters)||u(t,r,e.parameters)||c(t,e.type)||c(t,e.equalsGreaterThanToken)||c(t,e.body);case 161:return c(t,e.typeName)||u(t,r,e.typeArguments);case 160:return c(t,e.parameterName)||c(t,e.type);case 164:return c(t,e.exprName);case 165:return u(t,r,e.members);case 166:return c(t,e.elementType);case 167:return u(t,r,e.elementTypes);case 168:case 169:return u(t,r,e.types);case 170:return c(t,e.checkType)||c(t,e.extendsType)||c(t,e.trueType)||c(t,e.falseType);case 171:return c(t,e.typeParameter);case 178:return c(t,e.argument)||c(t,e.qualifier)||u(t,r,e.typeArguments);case 172:case 174:return c(t,e.type);case 175:return c(t,e.objectType)||c(t,e.indexType);case 176:return c(t,e.readonlyToken)||c(t,e.typeParameter)||c(t,e.questionToken)||c(t,e.type);case 177:return c(t,e.literal);case 179:case 180:case 182:return u(t,r,e.elements);case 183:return u(t,r,e.properties);case 184:return c(t,e.expression)||c(t,e.name);case 185:return c(t,e.expression)||c(t,e.argumentExpression);case 186:case 187:return c(t,e.expression)||u(t,r,e.typeArguments)||u(t,r,e.arguments);case 188:return c(t,e.tag)||u(t,r,e.typeArguments)||c(t,e.template);case 189:return c(t,e.type)||c(t,e.expression);case 190:case 193:case 194:case 195:return c(t,e.expression);case 197:return c(t,e.operand);case 202:return c(t,e.asteriskToken)||c(t,e.expression);case 196:return c(t,e.expression);case 198:return c(t,e.operand);case 199:return c(t,e.left)||c(t,e.operatorToken)||c(t,e.right);case 207:return c(t,e.expression)||c(t,e.type);case 208:return c(t,e.expression);case 209:return c(t,e.name);case 200:return c(t,e.condition)||c(t,e.questionToken)||c(t,e.whenTrue)||c(t,e.colonToken)||c(t,e.whenFalse);case 203:return c(t,e.expression);case 212:case 239:return u(t,r,e.statements);case 273:return u(t,r,e.statements)||c(t,e.endOfFileToken);case 213:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.declarationList);case 232:return u(t,r,e.declarations);case 215:return c(t,e.expression);case 216:return c(t,e.expression)||c(t,e.thenStatement)||c(t,e.elseStatement);case 217:return c(t,e.statement)||c(t,e.expression);case 218:return c(t,e.expression)||c(t,e.statement);case 219:return c(t,e.initializer)||c(t,e.condition)||c(t,e.incrementor)||c(t,e.statement);case 220:return c(t,e.initializer)||c(t,e.expression)||c(t,e.statement);case 221:return c(t,e.awaitModifier)||c(t,e.initializer)||c(t,e.expression)||c(t,e.statement);case 222:case 223:return c(t,e.label);case 224:return c(t,e.expression);case 225:return c(t,e.expression)||c(t,e.statement);case 226:return c(t,e.expression)||c(t,e.caseBlock);case 240:return u(t,r,e.clauses);case 265:return c(t,e.expression)||u(t,r,e.statements);case 266:return u(t,r,e.statements);case 227:return c(t,e.label)||c(t,e.statement);case 228:return c(t,e.expression);case 229:return c(t,e.tryBlock)||c(t,e.catchClause)||c(t,e.finallyBlock);case 268:return c(t,e.variableDeclaration)||c(t,e.block);case 149:return c(t,e.expression);case 234:case 204:case 235:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||u(t,r,e.typeParameters)||u(t,r,e.heritageClauses)||u(t,r,e.members);case 236:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||u(t,r,e.typeParameters)||c(t,e.type);case 237:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||u(t,r,e.members);case 272:return c(t,e.name)||c(t,e.initializer);case 238:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.body);case 242:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.moduleReference);case 243:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.importClause)||c(t,e.moduleSpecifier);case 244:return c(t,e.name)||c(t,e.namedBindings);case 241:case 245:return c(t,e.name);case 246:case 250:return u(t,r,e.elements);case 249:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.exportClause)||c(t,e.moduleSpecifier);case 247:case 251:return c(t,e.propertyName)||c(t,e.name);case 248:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.expression);case 201:return c(t,e.head)||u(t,r,e.templateSpans);case 210:return c(t,e.expression)||c(t,e.literal);case 146:return c(t,e.expression);case 267:return u(t,r,e.types);case 206:return c(t,e.expression)||u(t,r,e.typeArguments);case 253:return c(t,e.expression);case 252:return u(t,r,e.decorators);case 297:return u(t,r,e.elements);case 254:return c(t,e.openingElement)||u(t,r,e.children)||c(t,e.closingElement);case 258:return c(t,e.openingFragment)||u(t,r,e.children)||c(t,e.closingFragment);case 255:case 256:return c(t,e.tagName)||u(t,r,e.typeArguments)||c(t,e.attributes);case 262:return u(t,r,e.properties);case 261:return c(t,e.name)||c(t,e.initializer);case 263:return c(t,e.expression);case 264:return c(t,e.dotDotDotToken)||c(t,e.expression);case 257:return c(t,e.tagName);case 275:case 279:case 278:case 280:return c(t,e.type);case 281:return u(t,r,e.parameters)||c(t,e.type);case 282:return c(t,e.type);case 283:return u(t,r,e.tags);case 288:case 293:return e.isNameFirst?c(t,e.name)||c(t,e.typeExpression):c(t,e.typeExpression)||c(t,e.name);case 289:case 290:return c(t,e.typeExpression);case 286:return c(t,e.class);case 291:return u(t,r,e.typeParameters);case 292:return e.typeExpression&&275===e.typeExpression.kind?c(t,e.typeExpression)||c(t,e.fullName):c(t,e.fullName)||c(t,e.typeExpression);case 284:if(e.jsDocPropertyTags)for(var n=0,i=e.jsDocPropertyTags;n<i.length;n++){c(t,i[n])}return;case 296:return c(t,e.expression)}}function d(t,r){for(var n=e.createScanner(t.languageVersion,!1,0,r),i=[];;){var a=n.scan();if(!e.isTrivia(a))break;var o={kind:n.getToken(),pos:n.getTokenPos(),end:n.getTextPos()};h(i,o,r.substring(o.pos,o.end))}t.pragmas=e.createMap();for(var s=0,c=i;s<c.length;s++){var u=c[s];if(t.pragmas.has(u.name)){var l=t.pragmas.get(u.name);l instanceof Array?l.push(u.args):t.pragmas.set(u.name,[l,u.args])}else t.pragmas.set(u.name,u.args)}}function p(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach(function(n,i){switch(i){case"reference":var a=t.referencedFiles,o=t.typeReferenceDirectives;e.forEach(e.toArray(n),function(n){n.arguments["no-default-lib"]?t.hasNoDefaultLib=!0:n.arguments.types?o.push({pos:n.arguments.types.pos,end:n.arguments.types.end,fileName:n.arguments.types.value}):n.arguments.path?a.push({pos:n.arguments.path.pos,end:n.arguments.path.end,fileName:n.arguments.path.value}):r(n.range.pos,n.range.end-n.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break;case"amd-dependency":t.amdDependencies=e.map(e.toArray(n),function(e){var t=e.arguments;return{name:t.name,path:t.path}});break;case"amd-module":if(n instanceof Array)for(var s=0,c=n;s<c.length;s++){var u=c[s];t.moduleName&&r(u.range.pos,u.range.end-u.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=u.arguments.name}else t.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(n),function(e){(!t.checkJsDirective||e.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.RequireCompleteParameterList=8]="RequireCompleteParameterList",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),e.createNode=function(t,o,s){return 273===t?new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,o,s):71===t?new(i||(i=e.objectAllocator.getIdentifierConstructor()))(t,o,s):e.isNodeKind(t)?new(r||(r=e.objectAllocator.getNodeConstructor()))(t,o,s):new(n||(n=e.objectAllocator.getTokenConstructor()))(t,o,s)},e.isJSDocLikeText=l,e.forEachChild=_,e.createSourceFile=function(t,r,n,i,a){void 0===i&&(i=!1),e.performance.mark("beforeParse");var s=o.parseSourceFile(t,r,n,void 0,i,a);return e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),s},e.parseIsolatedEntityName=function(e,t){return o.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return o.parseJsonText(e,t)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.updateSourceFile=function(e,t,r,n){var i=s.updateSourceFile(e,t,r,n);return i.flags|=524288&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=o.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&o.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,i,a,o,s,c,u,f,m,g,y,h,v,b,x,S,k=e.createScanner(6,!0),D=10240,T=!1;function C(e){return 4===e||2===e||1===e||6===e?1:0}function E(t,o,u,l){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getSourceFileConstructor(),f=t,c=u,s=[],h=0,g=e.createMap(),y=0,m=0,l){case 1:case 2:case 6:v=65536;break;default:v=0}T=!1,k.setText(f),k.setOnError(Y),k.setScriptTarget(o),k.setLanguageVariant(C(l))}function N(){k.setText(""),k.setOnError(void 0),s=void 0,o=void 0,g=void 0,c=void 0,f=void 0}function A(t,r,n,i){var a=function(t){return e.fileExtensionIs(t,".d.ts")}(t);return a&&(v|=2097152),(o=F(t,r,i,a)).flags=v,ee(),d(o,f),p(o,function(t,r,n){s.push(e.createFileDiagnostic(o,t,r,n))}),o.statements=ze(0,Br),e.Debug.assert(1===Z()),o.endOfFileToken=P(de()),function(t){t.externalModuleIndicator=e.forEach(t.statements,function(t){return e.hasModifier(t,1)||242===t.kind&&253===t.moduleReference.kind||243===t.kind||248===t.kind||249===t.kind?t:void 0})}(o),o.nodeCount=m,o.identifierCount=y,o.identifiers=g,o.parseDiagnostics=s,n&&w(o),o}function P(t){var r=e.getJSDocCommentRanges(t,o.text);if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];t.jsDoc=e.append(t.jsDoc,S.parseJSDocComment(t,a.pos,a.end-a.pos))}return t}function w(t){var r=t;return void _(t,function t(n){if(n.parent!==r){n.parent=r;var i=r;if(r=n,_(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];s.parent=n,r=s,_(s,t)}r=i}})}function F(t,r,n,i){var o=new a(273,0,f.length);return m++,o.text=f,o.bindDiagnostics=[],o.languageVersion=r,o.fileName=e.normalizePath(t),o.languageVariant=C(n),o.isDeclarationFile=i,o.scriptKind=n,o}function O(e,t){e?v|=t:v&=~t}function I(e){O(e,2048)}function M(e){O(e,4096)}function L(e){O(e,8192)}function R(e){O(e,16384)}function B(e,t){var r=e&v;if(r){O(!1,r);var n=t();return O(!0,r),n}return t()}function j(e,t){var r=e&~v;if(r){O(!0,r);var n=t();return O(!1,r),n}return t()}function J(e){return B(2048,e)}function z(e){return j(16384,e)}function K(e){return 0!=(v&e)}function U(){return K(4096)}function q(){return K(2048)}function V(){return K(8192)}function W(){return K(16384)}function H(e,t){X(k.getTokenPos(),k.getTextPos(),e,t)}function G(t,r,n,i){var a=e.lastOrUndefined(s);a&&t===a.start||s.push(e.createFileDiagnostic(o,t,r,n,i)),T=!0}function X(e,t,r,n){G(e,t-e,r,n)}function Q(e,t,r){X(e.pos,e.end,t,r)}function Y(e,t){G(k.getTextPos(),t,e)}function $(){return k.getStartPos()}function Z(){return u}function ee(){return u=k.scan()}function te(){return u=k.reScanGreaterToken()}function re(){return u=k.scanJsxIdentifier()}function ne(){return u=k.scanJsxToken()}function ie(t,r){var n=u,i=s.length,a=T,o=v,c=r?k.lookAhead(t):k.tryScan(t);return e.Debug.assert(o===v),c&&!r||(u=n,s.length=i,T=a),c}function ae(e){return ie(e,!0)}function oe(e){return ie(e,!1)}function se(){return 71===Z()||(116!==Z()||!U())&&((121!==Z()||!W())&&Z()>107)}function ce(t,r,n){return void 0===n&&(n=!0),Z()===t?(n&&ee(),!0):(r?H(r):H(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function ue(e){return Z()===e&&(ee(),!0)}function le(e){if(Z()===e)return de()}function _e(t,r,n){return le(t)||ve(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function de(){var e=me(Z());return ee(),he(e)}function pe(){return 25===Z()||(18===Z()||1===Z()||k.hasPrecedingLineBreak())}function fe(){return pe()?(25===Z()&&ee(),!0):ce(25)}function me(t,a){m++;var o=a>=0?a:k.getStartPos();return e.isNodeKind(t)||0===t?new r(t,o,o):71===t?new i(t,o,o):new n(t,o,o)}function ge(e){var t=me(e);return 2&k.getTokenFlags()&&P(t),t}function ye(e,t,r){var n=e.length,i=n>=1&&n<=4?e.slice():e;return i.pos=t,i.end=void 0===r?k.getStartPos():r,i}function he(e,t){return e.end=void 0===t?k.getStartPos():t,v&&(e.flags|=v),T&&(T=!1,e.flags|=32768),e}function ve(t,r,n,i){r?G(k.getStartPos(),0,n,i):H(n,i);var a=me(t);return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),he(a)}function be(e){var t=g.get(e);return void 0===t&&g.set(e,t=e),t}function xe(t,r){if(y++,t){var n=me(71);return 71!==Z()&&(n.originalKeywordKind=Z()),n.escapedText=e.escapeLeadingUnderscores(be(k.getTokenValue())),ee(),he(n)}return ve(71,1===Z(),r||e.Diagnostics.Identifier_expected)}function Se(e){return xe(se(),e)}function ke(t){return xe(e.tokenIsIdentifierOrKeyword(Z()),t)}function De(){return e.tokenIsIdentifierOrKeyword(Z())||9===Z()||8===Z()}function Te(e){if(9===Z()||8===Z()){var t=Ze();return t.text=be(t.text),t}return e&&21===Z()?function(){var e=me(146);return ce(21),e.expression=J(Kt),ce(22),he(e)}():ke()}function Ce(){return Te(!0)}function Ee(e){return Z()===e&&oe(Ae)}function Ne(){return ee(),!k.hasPrecedingLineBreak()&&Pe()}function Ae(){switch(Z()){case 76:return 83===ee();case 84:return ee(),79===Z()?ae(we):39!==Z()&&118!==Z()&&17!==Z()&&Pe();case 79:return we();case 115:case 125:case 136:return ee(),Pe();default:return Ne()}}function Pe(){return 21===Z()||17===Z()||39===Z()||24===Z()||De()}function we(){return ee(),75===Z()||89===Z()||109===Z()||117===Z()&&ae(wr)||120===Z()&&ae(Fr)}function Fe(t,r){if(Ue(t))return!0;switch(t){case 0:case 1:case 3:return!(25===Z()&&r)&&Lr();case 2:return 73===Z()||79===Z();case 4:return ae(gt);case 5:return ae(nn)||25===Z()&&!r;case 6:return 21===Z()||De();case 12:return 21===Z()||39===Z()||24===Z()||De();case 17:return De();case 9:return 21===Z()||24===Z()||De();case 7:return 17===Z()?ae(Oe):r?se()&&!Re():Jt()&&!Re();case 8:return Wr();case 10:return 26===Z()||24===Z()||Wr();case 18:return se();case 15:if(26===Z())return!0;case 11:return 24===Z()||zt();case 16:return ct();case 19:case 20:return 26===Z()||At();case 21:return mn();case 22:return e.tokenIsIdentifierOrKeyword(Z());case 13:return e.tokenIsIdentifierOrKeyword(Z())||17===Z();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Oe(){if(e.Debug.assert(17===Z()),18===ee()){var t=ee();return 26===t||17===t||85===t||108===t}return!0}function Ie(){return ee(),se()}function Me(){return ee(),e.tokenIsIdentifierOrKeyword(Z())}function Le(){return ee(),e.tokenIsIdentifierOrKeywordOrGreaterThan(Z())}function Re(){return(108===Z()||85===Z())&&ae(Be)}function Be(){return ee(),zt()}function je(){return ee(),At()}function Je(e){if(1===Z())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===Z();case 3:return 18===Z()||73===Z()||79===Z();case 7:return 17===Z()||85===Z()||108===Z();case 8:return function(){if(pe())return!0;if($t(Z()))return!0;if(36===Z())return!0;return!1}();case 18:return 29===Z()||19===Z()||17===Z()||85===Z()||108===Z();case 11:return 20===Z()||25===Z();case 15:case 20:case 10:return 22===Z();case 16:case 17:return 20===Z()||22===Z();case 19:return 26!==Z();case 21:return 17===Z()||18===Z();case 13:return 29===Z()||41===Z();case 14:return 27===Z()&&ae(bn)}}function ze(e,t){var r=h;h|=1<<e;for(var n=[],i=$();!Je(e);)if(Fe(e,!1)){var a=Ke(e,t);n.push(a)}else if(qe(e))break;return h=r,ye(n,i)}function Ke(e,t){var r=Ue(e);return r?function(e){return k.setTextPos(e.end),ee(),e}(r):t()}function Ue(t){if(!T&&c){var r=c.currentNode(k.getStartPos());if(!e.nodeIsMissing(r))if(!r.intersectsChange)if(!e.containsParseError(r))if((6387712&r.flags)===v&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 154:case 159:case 155:case 156:case 151:case 211:return!0;case 153:var t=e,r=71===t.name.kind&&123===t.name.originalKeywordKind;return!r}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 265:case 266:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 233:case 213:case 212:case 216:case 215:case 228:case 224:case 226:case 223:case 222:case 220:case 221:case 219:case 218:case 225:case 214:case 229:case 227:case 217:case 230:case 243:case 242:case 249:case 248:case 238:case 234:case 235:case 237:case 236:return!0}return!1}(e);case 6:return function(e){return 272===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 158:case 152:case 159:case 150:case 157:return!0}return!1}(e);case 8:return function(e){if(231!==e.kind)return!1;return void 0===e.initializer}(e);case 16:return function(e){if(148!==e.kind)return!1;return void 0===e.initializer}(e);case 17:return!1}return!1}(r,t))return r.jsDocCache&&(r.jsDocCache=void 0),r}}function qe(t){return H(function(t){switch(t){case 0:case 1:return e.Diagnostics.Declaration_or_statement_expected;case 2:return e.Diagnostics.case_or_default_expected;case 3:return e.Diagnostics.Statement_expected;case 17:case 4:return e.Diagnostics.Property_or_signature_expected;case 5:return e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return e.Diagnostics.Enum_member_expected;case 7:return e.Diagnostics.Expression_expected;case 8:return e.Diagnostics.Variable_declaration_expected;case 9:return e.Diagnostics.Property_destructuring_pattern_expected;case 10:return e.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return e.Diagnostics.Argument_expression_expected;case 12:return e.Diagnostics.Property_assignment_expected;case 15:return e.Diagnostics.Expression_or_comma_expected;case 16:return e.Diagnostics.Parameter_declaration_expected;case 18:return e.Diagnostics.Type_parameter_declaration_expected;case 19:return e.Diagnostics.Type_argument_expected;case 20:return e.Diagnostics.Type_expected;case 21:return e.Diagnostics.Unexpected_token_expected;case 22:case 13:case 14:return e.Diagnostics.Identifier_expected}}(t)),!!function(){for(var e=0;e<23;e++)if(h&1<<e&&(Fe(e,!0)||Je(e)))return!0;return!1}()||(ee(),!1)}function Ve(e,t,r){var n=h;h|=1<<e;for(var i=[],a=$(),o=-1;;)if(Fe(e,!1)){var s=k.getStartPos();if(i.push(Ke(e,t)),o=k.getTokenPos(),ue(26))continue;if(o=-1,Je(e))break;ce(26),r&&25===Z()&&!k.hasPrecedingLineBreak()&&ee(),s===k.getStartPos()&&ee()}else{if(Je(e))break;if(qe(e))break}h=n;var c=ye(i,a);return o>=0&&(c.hasTrailingComma=!0),c}function We(){return ye([],$())}function He(e,t,r,n){if(ce(r)){var i=Ve(e,t);return ce(n),i}return We()}function Ge(e,t){for(var r=e?ke(t):Se(t),n=k.getStartPos();ue(23);){if(27===Z()){r.jsdocDotPos=n;break}n=k.getStartPos(),r=Xe(r,Qe(e))}return r}function Xe(e,t){var r=me(145,e.pos);return r.left=e,r.right=t,he(r)}function Qe(t){if(k.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(Z())&&ae(Pr))return ve(71,!0,e.Diagnostics.Identifier_expected);return t?ke():Se()}function Ye(){var t,r=me(201);r.head=(t=et(Z()),e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t),e.Debug.assert(14===r.head.kind,"Template head has wrong token kind");var n=[],i=$();do{n.push($e())}while(15===e.lastOrUndefined(n).literal.kind);return r.templateSpans=ye(n,i),he(r)}function $e(){var t,r,n=me(210);return n.expression=J(Kt),18===Z()?(u=k.reScanTemplateToken(),r=et(Z()),e.Debug.assert(15===r.kind||16===r.kind,"Template fragment has wrong token kind"),t=r):t=_e(16,e.Diagnostics._0_expected,e.tokenToString(18)),n.literal=t,he(n)}function Ze(){return et(Z())}function et(e){var t=me(e),r=k.getTokenValue();return t.text=r,k.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),k.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&k.getTokenFlags()),ee(),he(t),t}function tt(){var t=me(161);return t.typeName=Ge(!0,e.Diagnostics.Type_expected),k.hasPrecedingLineBreak()||27!==Z()||(t.typeArguments=He(19,Rt,27,29)),he(t)}function rt(e){var t=me(276);return e?wt(280,t):(ee(),he(t))}function nt(){var e=me(148);return 99!==Z()&&94!==Z()||(e.name=ke(),ce(56)),e.type=it(),he(e)}function it(){var e=le(24),t=Rt();if(e){var r=me(282,e.pos);r.type=t,t=he(r)}return 58===Z()?wt(280,t):t}function at(){var e=me(147);return e.name=Se(),ue(85)&&(At()||!zt()?e.constraint=Rt():e.expression=rr()),ue(58)&&(e.default=Rt()),he(e)}function ot(){if(27===Z())return He(18,at,27,29)}function st(){if(ue(56))return Rt()}function ct(){return 24===Z()||Wr()||e.isModifierKind(Z())||57===Z()||At(!0)}function ut(){var t=ge(148);return 99===Z()?(t.name=xe(!0),t.type=st(),he(t)):(t.decorators=an(),t.modifiers=on(),t.dotDotDotToken=le(24),t.name=Hr(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(Z())&&ee(),t.questionToken=le(55),t.type=st(),t.initializer=Ut(),he(t))}function lt(t,r,n){32&r||(n.typeParameters=ot()),n.parameters=function(e){if(ce(19)){var t=U(),r=W();M(!!(1&e)),R(!!(2&e));var n=Ve(16,32&e?nt:ut);if(M(t),R(r),!ce(20)&&8&e)return;return n}return 8&e?void 0:We()}(r),n.type=function(t,r){return function(t,r){if(36===t)return ce(t),!0;if(ue(56))return!0;if(r&&36===Z())return H(e.Diagnostics._0_expected,e.tokenToString(56)),ee(),!0;return!1}(t,r)?function(){var e=se()&&oe(Lt),t=Rt();if(e){var r=me(160,e.pos);return r.parameterName=e,r.type=t,he(r)}return t}():void 0}(t,!!(4&r))}function _t(){ue(26)||fe()}function dt(e){var t=ge(e);return 158===e&&ce(94),lt(56,4,t),_t(),he(t)}function pt(){return 21===Z()&&ae(ft)}function ft(){if(ee(),24===Z()||22===Z())return!0;if(e.isModifierKind(Z())){if(ee(),se())return!0}else{if(!se())return!1;ee()}return 56===Z()||26===Z()||55===Z()&&(ee(),56===Z()||26===Z()||22===Z())}function mt(e){return e.kind=159,e.parameters=He(16,ut,21,22),e.type=jt(),_t(),he(e)}function gt(){if(19===Z()||27===Z())return!0;for(var t;e.isModifierKind(Z());)t=!0,ee();return 21===Z()||(De()&&(t=!0,ee()),!!t&&(19===Z()||27===Z()||55===Z()||56===Z()||26===Z()||pe()))}function yt(){if(19===Z()||27===Z())return dt(157);if(94===Z()&&ae(ht))return dt(158);var e=ge(0);return e.modifiers=on(),pt()?mt(e):function(e){return e.name=Ce(),e.questionToken=le(55),19===Z()||27===Z()?(e.kind=152,lt(56,4,e)):(e.kind=150,e.type=jt(),58===Z()&&(e.initializer=Ut())),_t(),he(e)}(e)}function ht(){return ee(),19===Z()||27===Z()}function vt(){var e;return ce(17)?(e=ze(4,yt),ce(18)):e=We(),e}function bt(){return ee(),37===Z()||38===Z()?132===ee():(132===Z()&&ee(),21===Z()&&Ie()&&92===ee())}function xt(){var e=me(176);return ce(17),132!==Z()&&37!==Z()&&38!==Z()||(e.readonlyToken=de(),132!==e.readonlyToken.kind&&_e(132)),ce(21),e.typeParameter=function(){var e=me(147);return e.name=Se(),ce(92),e.constraint=Rt(),he(e)}(),ce(22),55!==Z()&&37!==Z()&&38!==Z()||(e.questionToken=de(),55!==e.questionToken.kind&&_e(55)),e.type=jt(),fe(),ce(18),he(e)}function St(e){var t=ge(e);return 163===e&&ce(94),lt(36,4,t),he(t)}function kt(){var e=de();return 23===Z()?void 0:e}function Dt(e){var t,r=me(177);e&&((t=me(197)).operator=38,ee());var n=101===Z()||86===Z()?de():et(Z());return e&&(t.operand=n,he(t),n=t),r.literal=n,he(r)}function Tt(){return ee(),91===Z()}function Ct(){o.flags|=524288;var t=me(178);return ue(103)&&(t.isTypeOf=!0),ce(91),ce(19),t.argument=Rt(),ce(20),ue(23)&&(t.qualifier=Ge(!0,e.Diagnostics.Type_expected)),t.typeArguments=fn(),he(t)}function Et(){return 8===ee()}function Nt(){switch(Z()){case 119:case 137:case 134:case 138:case 122:case 140:case 131:case 135:return oe(kt)||tt();case 39:return rt(!1);case 61:return rt(!0);case 55:return n=k.getStartPos(),ee(),26===Z()||18===Z()||20===Z()||29===Z()||58===Z()||49===Z()?he(r=me(277,n)):((r=me(278,n)).type=Rt(),he(r));case 89:return function(){if(ae(vn)){var e=ge(281);return ee(),lt(56,36,e),he(e)}var t=me(161);return t.typeName=ke(),he(t)}();case 51:return function(){var e=me(279);return ee(),e.type=Nt(),he(e)}();case 13:case 9:case 8:case 101:case 86:return Dt();case 38:return ae(Et)?Dt(!0):tt();case 105:case 95:return de();case 99:var e=(t=me(173),ee(),he(t));return 127!==Z()||k.hasPrecedingLineBreak()?e:function(e){ee();var t=me(160,e.pos);return t.parameterName=e,t.type=Rt(),he(t)}(e);case 103:return ae(Tt)?Ct():function(){var e=me(164);return ce(103),e.exprName=Ge(!0),he(e)}();case 17:return ae(bt)?xt():function(){var e=me(165);return e.members=vt(),he(e)}();case 21:return function(){var e=me(167);return e.elementTypes=He(20,Rt,21,22),he(e)}();case 19:return function(){var e=me(172);return ce(19),e.type=Rt(),ce(20),he(e)}();case 91:return Ct();default:return tt()}var t,r,n}function At(e){switch(Z()){case 119:case 137:case 134:case 122:case 138:case 141:case 105:case 140:case 95:case 99:case 103:case 131:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 135:case 39:case 55:case 51:case 24:case 126:case 91:return!0;case 38:return!e&&ae(Et);case 19:return!e&&ae(Pt);default:return se()}}function Pt(){return ee(),20===Z()||ct()||At()}function wt(e,t){ee();var r=me(e,t.pos);return r.type=t,he(r)}function Ft(){var e=Z();switch(e){case 128:case 141:return function(e){var t=me(174);return ce(e),t.operator=e,t.type=Ft(),he(t)}(e);case 126:return function(){var e=me(171);ce(126);var t=me(147);return t.name=Se(),e.typeParameter=he(t),he(e)}()}return function(){for(var e=Nt();!k.hasPrecedingLineBreak();)switch(Z()){case 51:e=wt(279,e);break;case 55:if(!(1048576&v)&&ae(je))return e;e=wt(278,e);break;case 21:var t;ce(21),At()?((t=me(175,e.pos)).objectType=e,t.indexType=Rt(),ce(22),e=he(t)):((t=me(166,e.pos)).elementType=e,ce(22),e=he(t));break;default:return e}return e}()}function Ot(e,t,r){ue(r);var n=t();if(Z()===r){for(var i=[n];ue(r);)i.push(t());var a=me(e,n.pos);a.types=ye(i,n.pos),n=he(a)}return n}function It(){return Ot(169,Ft,48)}function Mt(){if(ee(),20===Z()||24===Z())return!0;if(function(){if(e.isModifierKind(Z())&&on(),se()||99===Z())return ee(),!0;if(21===Z()||17===Z()){var t=s.length;return Hr(),t===s.length}return!1}()){if(56===Z()||26===Z()||55===Z()||58===Z())return!0;if(20===Z()&&(ee(),36===Z()))return!0}return!1}function Lt(){var e=Se();if(127===Z()&&!k.hasPrecedingLineBreak())return ee(),e}function Rt(){return B(20480,Bt)}function Bt(e){if(27===Z()||19===Z()&&ae(Mt))return St(162);if(94===Z())return St(163);var t=Ot(168,It,49);if(!e&&!k.hasPrecedingLineBreak()&&ue(85)){var r=me(170,t.pos);return r.checkType=t,r.extendsType=Bt(!0),ce(55),r.trueType=Bt(),ce(56),r.falseType=Bt(),he(r)}return t}function jt(){return ue(56)?Rt():void 0}function Jt(){switch(Z()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return ae(ht);default:return se()}}function zt(){if(Jt())return!0;switch(Z()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!function(){if(q()&&92===Z())return!1;return e.getBinaryOperatorPrecedence(Z())>0}()||se()}}function Kt(){var e=V();e&&L(!1);for(var t,r=qt();t=le(26);)r=er(r,t,qt());return e&&L(!0),r}function Ut(){return ue(58)?qt():void 0}function qt(){if(function(){if(116===Z())return!!U()||ae(Or);return!1}())return t=me(202),ee(),k.hasPrecedingLineBreak()||39!==Z()&&!zt()?he(t):(t.asteriskToken=le(39),t.expression=qt(),he(t));var t,r=function(){var t=function(){if(19===Z()||27===Z()||120===Z())return ae(Wt);if(36===Z())return 1;return 0}();if(0===t)return;var r=1===t?Xt(!0):oe(Ht);if(!r)return;var n=e.hasModifier(r,256),i=Z();return r.equalsGreaterThanToken=_e(36),r.body=36===i||17===i?Qt(n):Se(),he(r)}()||function(){if(120===Z()&&1===ae(Gt)){var e=sn(),t=Yt(0);return Vt(t,e)}return}();if(r)return r;var n=Yt(0);return 71===n.kind&&36===Z()?Vt(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(te())?er(n,de(),qt()):function(t){var r=le(55);if(!r)return t;var n=me(200,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=B(D,qt),n.colonToken=_e(56),n.whenFalse=e.nodeIsPresent(n.colonToken)?qt():ve(71,!1,e.Diagnostics._0_expected,e.tokenToString(56)),he(n)}(n)}function Vt(t,r){var n;e.Debug.assert(36===Z(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),r?(n=me(192,r.pos)).modifiers=r:n=me(192,t.pos);var i=me(148,t.pos);return i.name=t,he(i),n.parameters=ye([i],i.pos,i.end),n.equalsGreaterThanToken=_e(36),n.body=Qt(!!r),P(he(n))}function Wt(){if(120===Z()){if(ee(),k.hasPrecedingLineBreak())return 0;if(19!==Z()&&27!==Z())return 0}var t=Z(),r=ee();if(19===t){if(20===r)switch(ee()){case 36:case 56:case 17:return 1;default:return 0}if(21===r||17===r)return 2;if(24===r)return 1;if(e.isModifierKind(r)&&120!==r&&ae(Ie))return 1;if(!se())return 0;switch(ee()){case 56:return 1;case 55:return ee(),56===Z()||26===Z()||58===Z()||20===Z()?1:0;case 26:case 58:case 20:return 2}return 0}return e.Debug.assert(27===t),se()?1===o.languageVariant?ae(function(){var e=ee();if(85===e)switch(ee()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function Ht(){return Xt(!1)}function Gt(){if(120===Z()){if(ee(),k.hasPrecedingLineBreak()||36===Z())return 0;var e=Yt(0);if(!k.hasPrecedingLineBreak()&&71===e.kind&&36===Z())return 1}return 0}function Xt(t){var r=ge(192);if(r.modifiers=sn(),lt(56,(e.hasModifier(r,256)?2:0)|(t?0:8),r),r.parameters&&(t||36===Z()||17===Z()))return r}function Qt(e){return 17===Z()?Tr(e?2:0):25===Z()||89===Z()||75===Z()||!Lr()||17!==Z()&&89!==Z()&&75!==Z()&&57!==Z()&&zt()?e?z(qt):B(16384,qt):Tr(16|(e?2:0))}function Yt(e){return Zt(e,rr())}function $t(e){return 92===e||144===e}function Zt(t,r){for(;;){te();var n=e.getBinaryOperatorPrecedence(Z());if(!(40===Z()?n>=t:n>t))break;if(92===Z()&&q())break;if(118===Z()){if(k.hasPrecedingLineBreak())break;ee(),r=tr(r,Rt())}else r=er(r,de(),Yt(n))}return r}function er(e,t,r){var n=me(199,e.pos);return n.left=e,n.operatorToken=t,n.right=r,he(n)}function tr(e,t){var r=me(207,e.pos);return r.expression=e,r.type=t,he(r)}function rr(){if(function(){switch(Z()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==o.languageVariant)return!1;default:return!0}}()){var t=ir();return 40===Z()?Zt(e.getBinaryOperatorPrecedence(Z()),t):t}var r=Z(),n=nr();if(40===Z()){var i=e.skipTrivia(f,n.pos),a=n.end;189===n.kind?X(i,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):X(i,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return n}function nr(){switch(Z()){case 37:case 38:case 52:case 51:return(e=me(197)).operator=Z(),ee(),e.operand=nr(),he(e);case 80:return function(){var e=me(193);return ee(),e.expression=nr(),he(e)}();case 103:return function(){var e=me(194);return ee(),e.expression=nr(),he(e)}();case 105:return function(){var e=me(195);return ee(),e.expression=nr(),he(e)}();case 27:return function(){var e=me(189);return ce(27),e.type=Rt(),ce(29),e.expression=nr(),he(e)}();case 121:if(121===Z()&&(W()||ae(Or)))return function(){var e=me(196);return ee(),e.expression=nr(),he(e)}();default:return ir()}var e}function ir(){if(43===Z()||44===Z())return(t=me(197)).operator=Z(),ee(),t.operand=ar(),he(t);if(1===o.languageVariant&&27===Z()&&ae(Le))return or(!0);var t,r=ar();return e.Debug.assert(e.isLeftHandSideExpression(r)),43!==Z()&&44!==Z()||k.hasPrecedingLineBreak()?r:((t=me(198,r.pos)).operand=r,t.operator=Z(),ee(),he(t))}function ar(){var t;return 91===Z()&&ae(ht)?(o.flags|=524288,t=de()):t=97===Z()?function(){var t=de();if(19===Z()||23===Z()||21===Z())return t;var r=me(184,t.pos);return r.expression=t,_e(23,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=Qe(!0),he(r)}():dr(yr()),function(e){for(;;)if(e=dr(e),27!==Z()){if(19!==Z())return e;var t=me(186,e.pos);t.expression=e,t.arguments=mr(),e=he(t)}else{var r=oe(gr);if(!r)return e;if(pr()){e=fr(e,r);continue}var t=me(186,e.pos);t.expression=e,t.typeArguments=r,t.arguments=mr(),e=he(t)}}(t)}function or(t){var r,n=function(e){var t=k.getStartPos();if(ce(27),29===Z()){var r=me(259,t);return ne(),he(r)}var n,i=ur(),a=fn(),o=(s=me(262),s.properties=ze(13,_r),he(s));var s;29===Z()?(n=me(256,t),ne()):(ce(41),e?ce(29):(ce(29,void 0,!1),ne()),n=me(255,t));return n.tagName=i,n.typeArguments=a,n.attributes=o,he(n)}(t);if(256===n.kind)(i=me(254,n.pos)).openingElement=n,i.children=cr(i.openingElement),i.closingElement=function(e){var t=me(257);ce(28),t.tagName=ur(),e?ce(29):(ce(29,void 0,!1),ne());return he(t)}(t),function e(t,r){return t.kind===r.kind&&(71===t.kind?t.escapedText===r.escapedText:99===t.kind||t.name.escapedText===r.name.escapedText&&e(t.expression,r.expression))}(i.openingElement.tagName,i.closingElement.tagName)||Q(i.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(f,i.openingElement.tagName)),r=he(i);else if(259===n.kind){var i;(i=me(258,n.pos)).openingFragment=n,i.children=cr(i.openingFragment),i.closingFragment=function(t){var r=me(260);ce(28),e.tokenIsIdentifierOrKeyword(Z())&&Q(ur(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);t?ce(29):(ce(29,void 0,!1),ne());return he(r)}(t),r=he(i)}else e.Debug.assert(255===n.kind),r=n;if(t&&27===Z()){var a=oe(function(){return or(!0)});if(a){H(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=me(199,r.pos);return o.end=a.end,o.left=r,o.right=a,o.operatorToken=ve(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function sr(t,r){switch(r){case 1:return void(e.isJsxOpeningFragment(t)?Q(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):Q(t.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(f,t.tagName)));case 28:case 7:return;case 10:case 11:return(n=me(10)).containsOnlyWhiteSpaces=11===u,u=k.scanJsxToken(),he(n);case 17:return lr(!1);case 27:return or(!1);default:return e.Debug.assertNever(r)}var n}function cr(e){var t=[],r=$(),n=h;for(h|=16384;;){var i=sr(e,u=k.reScanJsxToken());if(!i)break;t.push(i)}return h=n,ye(t,r)}function ur(){re();for(var e=99===Z()?de():ke();ue(23);){var t=me(184,e.pos);t.expression=e,t.name=Qe(!0),e=he(t)}return e}function lr(e){var t=me(264);if(ce(17))return 18!==Z()&&(t.dotDotDotToken=le(24),t.expression=qt()),e?ce(18):(ce(18,void 0,!1),ne()),he(t)}function _r(){if(17===Z())return function(){var e=me(263);return ce(17),ce(24),e.expression=Kt(),ce(18),he(e)}();re();var e=me(261);if(e.name=ke(),58===Z())switch(u=k.scanJsxAttributeValue()){case 9:e.initializer=Ze();break;default:e.initializer=lr(!0)}return he(e)}function dr(e){for(;;){if(le(23)){var t=me(184,e.pos);t.expression=e,t.name=Qe(!0),e=he(t)}else if(51!==Z()||k.hasPrecedingLineBreak())if(V()||!ue(21)){if(!pr())return e;e=fr(e,void 0)}else{var r=me(185,e.pos);if(r.expression=e,22!==Z()&&(r.argumentExpression=J(Kt),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var n=r.argumentExpression;n.text=be(n.text)}ce(22),e=he(r)}else{ee();var i=me(208,e.pos);i.expression=e,e=he(i)}}}function pr(){return 13===Z()||14===Z()}function fr(e,t){var r=me(188,e.pos);return r.tag=e,r.typeArguments=t,r.template=13===Z()?Ze():Ye(),he(r)}function mr(){ce(19);var e=Ve(11,vr);return ce(20),e}function gr(){if(ue(27)){var e=Ve(19,Rt);if(ce(29))return e&&function(){switch(Z()){case 19:case 13:case 14:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}()?e:void 0}}function yr(){switch(Z()){case 8:case 9:case 13:return Ze();case 99:case 97:case 95:case 101:case 86:return de();case 19:return t=ge(190),ce(19),t.expression=J(Kt),ce(20),he(t);case 21:return function(){var e=me(182);ce(21),k.hasPrecedingLineBreak()&&(e.multiLine=!0);return e.elements=Ve(15,hr),ce(22),he(e)}();case 17:return xr();case 120:if(!ae(Fr))break;return Sr();case 75:return ln(ge(0),204);case 89:return Sr();case 94:return function(){var t=k.getStartPos();if(ce(94),ue(23)){var r=me(209,t);return r.keywordToken=94,r.name=ke(),he(r)}var n,i=yr();for(;;){i=dr(i),n=oe(gr),pr()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),i=fr(i,n),n=void 0);break}var a=me(187,t);a.expression=i,a.typeArguments=n,(a.typeArguments||19===Z())&&(a.arguments=mr());return he(a)}();case 41:case 63:if(12===(u=k.reScanSlashToken()))return Ze();break;case 14:return Ye()}var t;return Se(e.Diagnostics.Expression_expected)}function hr(){return 24===Z()?(e=me(203),ce(24),e.expression=qt(),he(e)):26===Z()?me(205):qt();var e}function vr(){return B(D,hr)}function br(){var e=ge(0);if(le(24))return e.kind=271,e.expression=qt(),he(e);if(e.decorators=an(),e.modifiers=on(),Ee(125))return rn(e,155);if(Ee(136))return rn(e,156);var t=le(39),r=se();if(e.name=Ce(),e.questionToken=le(55),t||19===Z()||27===Z())return en(e,t);if(r&&(26===Z()||18===Z()||58===Z())){e.kind=270;var n=le(58);n&&(e.equalsToken=n,e.objectAssignmentInitializer=J(qt))}else e.kind=269,ce(56),e.initializer=J(qt);return he(e)}function xr(){var e=me(183);return ce(17),k.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ve(12,br,!0),ce(18),he(e)}function Sr(){var t=V();t&&L(!1);var r=ge(191);r.modifiers=on(),ce(89),r.asteriskToken=le(39);var n=r.asteriskToken?1:0,i=e.hasModifier(r,256)?2:0;return r.name=n&&i?j(20480,kr):n?function(e){return j(4096,e)}(kr):i?z(kr):kr(),lt(56,n|i,r),r.body=Tr(n|i),t&&L(!0),he(r)}function kr(){return se()?Se():void 0}function Dr(e,t){var r=me(212);return ce(17,t)||e?(k.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=ze(1,Br),ce(18)):r.statements=We(),he(r)}function Tr(e,t){var r=U();M(!!(1&e));var n=W();R(!!(2&e));var i=V();i&&L(!1);var a=Dr(!!(16&e),t);return i&&L(!0),M(r),R(n),a}function Cr(){var e=$();ce(88);var t,r,n=le(121);if(ce(19),25!==Z()&&(t=104===Z()||110===Z()||76===Z()?Qr(!0):j(2048,Kt)),n?ce(144):ue(144)){var i=me(221,e);i.awaitModifier=n,i.initializer=t,i.expression=J(qt),ce(20),r=i}else if(ue(92)){var a=me(220,e);a.initializer=t,a.expression=J(Kt),ce(20),r=a}else{var o=me(219,e);o.initializer=t,ce(25),25!==Z()&&20!==Z()&&(o.condition=J(Kt)),ce(25),20!==Z()&&(o.incrementor=J(Kt)),ce(20),r=o}return r.statement=Br(),he(r)}function Er(e){var t=me(e);return ce(223===e?72:77),pe()||(t.label=Se()),fe(),he(t)}function Nr(){return 73===Z()?(e=me(265),ce(73),e.expression=J(Kt),ce(56),e.statements=ze(3,Br),he(e)):function(){var e=me(266);return ce(79),ce(56),e.statements=ze(3,Br),he(e)}();var e}function Ar(){var e=me(229);return ce(102),e.tryBlock=Dr(!1),e.catchClause=74===Z()?function(){var e=me(268);ce(74),ue(19)?(e.variableDeclaration=Xr(),ce(20)):e.variableDeclaration=void 0;return e.block=Dr(!1),he(e)}():void 0,e.catchClause&&87!==Z()||(ce(87),e.finallyBlock=Dr(!1)),he(e)}function Pr(){return ee(),e.tokenIsIdentifierOrKeyword(Z())&&!k.hasPrecedingLineBreak()}function wr(){return ee(),75===Z()&&!k.hasPrecedingLineBreak()}function Fr(){return ee(),89===Z()&&!k.hasPrecedingLineBreak()}function Or(){return ee(),(e.tokenIsIdentifierOrKeyword(Z())||8===Z()||9===Z())&&!k.hasPrecedingLineBreak()}function Ir(){for(;;)switch(Z()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 139:return ee(),!k.hasPrecedingLineBreak()&&se();case 129:case 130:return Kr();case 117:case 120:case 124:case 112:case 113:case 114:case 132:if(ee(),k.hasPrecedingLineBreak())return!1;continue;case 143:return ee(),17===Z()||71===Z()||84===Z();case 91:return ee(),9===Z()||39===Z()||17===Z()||e.tokenIsIdentifierOrKeyword(Z());case 84:if(ee(),58===Z()||39===Z()||17===Z()||79===Z()||118===Z())return!0;continue;case 115:ee();continue;default:return!1}}function Mr(){return ae(Ir)}function Lr(){switch(Z()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Mr()||ae(ht);case 76:case 84:return Mr();case 120:case 124:case 109:case 129:case 130:case 139:case 143:return!0;case 114:case 112:case 113:case 115:case 132:return Mr()||!ae(Pr);default:return zt()}}function Rr(){return ee(),se()||17===Z()||21===Z()}function Br(){switch(Z()){case 25:return e=me(214),ce(25),he(e);case 17:return Dr(!1);case 104:return $r(ge(231));case 110:if(ae(Rr))return $r(ge(231));break;case 89:return Zr(ge(233));case 75:return un(ge(234));case 90:return function(){var e=me(216);return ce(90),ce(19),e.expression=J(Kt),ce(20),e.thenStatement=Br(),e.elseStatement=ue(82)?Br():void 0,he(e)}();case 81:return function(){var e=me(217);return ce(81),e.statement=Br(),ce(106),ce(19),e.expression=J(Kt),ce(20),ue(25),he(e)}();case 106:return function(){var e=me(218);return ce(106),ce(19),e.expression=J(Kt),ce(20),e.statement=Br(),he(e)}();case 88:return Cr();case 77:return Er(222);case 72:return Er(223);case 96:return function(){var e=me(224);return ce(96),pe()||(e.expression=J(Kt)),fe(),he(e)}();case 107:return function(){var e=me(225);return ce(107),ce(19),e.expression=J(Kt),ce(20),e.statement=j(4194304,Br),he(e)}();case 98:return function(){var e=me(226);ce(98),ce(19),e.expression=J(Kt),ce(20);var t=me(240);return ce(17),t.clauses=ze(2,Nr),ce(18),e.caseBlock=he(t),he(e)}();case 100:return function(){var e=me(228);return ce(100),e.expression=k.hasPrecedingLineBreak()?void 0:J(Kt),fe(),he(e)}();case 102:case 74:case 87:return Ar();case 78:return function(){var e=me(230);return ce(78),fe(),he(e)}();case 57:return Jr();case 120:case 109:case 139:case 129:case 130:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 132:case 143:if(Mr())return Jr()}var e;return function(){var e=ge(0),t=J(Kt);return 71===t.kind&&ue(56)?(e.kind=227,e.label=t,e.statement=Br()):(e.kind=215,e.expression=t,fe()),he(e)}()}function jr(e){return 124===e.kind}function Jr(){var t=ge(0);if(t.decorators=an(),t.modifiers=on(),e.some(t.modifiers,jr)){for(var r=0,n=t.modifiers;r<n.length;r++){n[r].flags|=2097152}return j(2097152,function(){return zr(t)})}return zr(t)}function zr(t){switch(Z()){case 104:case 110:case 76:return $r(t);case 89:return Zr(t);case 75:return un(t);case 109:return function(e){return e.kind=235,ce(109),e.name=Se(),e.typeParameters=ot(),e.heritageClauses=_n(),e.members=vt(),he(e)}(t);case 139:return function(e){return e.kind=236,ce(139),e.name=Se(),e.typeParameters=ot(),ce(58),e.type=Rt(),fe(),he(e)}(t);case 83:return function(e){e.kind=237,ce(83),e.name=Se(),ce(17)?(e.members=Ve(6,gn),ce(18)):e.members=We();return he(e)}(t);case 143:case 129:case 130:return function(e){var t=0;if(143===Z())return hn(e);if(ue(130))t|=16;else if(ce(129),9===Z())return hn(e);return function e(t,r){t.kind=238;var n=16&r;t.flags|=r;t.name=Se();t.body=ue(23)?e(me(0),4|n):yn();return he(t)}(e,t)}(t);case 91:return function(e){ce(91);var t,r=k.getStartPos();if(se()&&(t=Se(),26!==Z()&&142!==Z()))return function(e,t){return e.kind=242,e.name=t,ce(58),e.moduleReference=function(){return 133===Z()&&ae(vn)?(e=me(253),ce(133),ce(19),e.expression=xn(),ce(20),he(e)):Ge(!1);var e}(),fe(),he(e)}(e,t);e.kind=243,(t||39===Z()||17===Z())&&(e.importClause=function(e,t){var r=me(244,t);e&&(r.name=e);r.name&&!ue(26)||(r.namedBindings=39===Z()?(n=me(245),ce(39),ce(118),n.name=Se(),he(n)):Sn(246));var n;return he(r)}(t,r),ce(142));return e.moduleSpecifier=xn(),fe(),he(e)}(t);case 84:switch(ee(),Z()){case 79:case 58:return function(e){e.kind=248,ue(58)?e.isExportEquals=!0:ce(79);return e.expression=qt(),fe(),he(e)}(t);case 118:return function(e){return e.kind=241,ce(118),ce(130),e.name=Se(),fe(),he(e)}(t);default:return function(e){e.kind=249,ue(39)?(ce(142),e.moduleSpecifier=xn()):(e.exportClause=Sn(250),(142===Z()||9===Z()&&!k.hasPrecedingLineBreak())&&(ce(142),e.moduleSpecifier=xn()));return fe(),he(e)}(t)}default:if(t.decorators||t.modifiers){var r=ve(252,!0,e.Diagnostics.Declaration_expected);return r.pos=t.pos,r.decorators=t.decorators,r.modifiers=t.modifiers,he(r)}}}function Kr(){return ee(),!k.hasPrecedingLineBreak()&&(se()||9===Z())}function Ur(e,t){if(17===Z()||!pe())return Tr(e,t);fe()}function qr(){if(26===Z())return me(205);var e=me(181);return e.dotDotDotToken=le(24),e.name=Hr(),e.initializer=Ut(),he(e)}function Vr(){var e=me(181);e.dotDotDotToken=le(24);var t=se(),r=Ce();return t&&56!==Z()?e.name=r:(ce(56),e.propertyName=r,e.name=Hr()),e.initializer=Ut(),he(e)}function Wr(){return 17===Z()||21===Z()||se()}function Hr(){return 21===Z()?(e=me(180),ce(21),e.elements=Ve(10,qr),ce(22),he(e)):17===Z()?function(){var e=me(179);return ce(17),e.elements=Ve(9,Vr),ce(18),he(e)}():Se();var e}function Gr(){return Xr(!0)}function Xr(e){var t=me(231);return t.name=Hr(),e&&71===t.name.kind&&51===Z()&&!k.hasPrecedingLineBreak()&&(t.exclamationToken=de()),t.type=jt(),$t(Z())||(t.initializer=Ut()),he(t)}function Qr(t){var r=me(232);switch(Z()){case 104:break;case 110:r.flags|=1;break;case 76:r.flags|=2;break;default:e.Debug.fail()}if(ee(),144===Z()&&ae(Yr))r.declarations=We();else{var n=q();I(t),r.declarations=Ve(8,t?Xr:Gr),I(n)}return he(r)}function Yr(){return Ie()&&20===ee()}function $r(e){return e.kind=213,e.declarationList=Qr(!1),fe(),he(e)}function Zr(t){t.kind=233,ce(89),t.asteriskToken=le(39),t.name=e.hasModifier(t,512)?kr():Se();var r=t.asteriskToken?1:0,n=e.hasModifier(t,256)?2:0;return lt(56,r|n,t),t.body=Ur(r|n,e.Diagnostics.or_expected),he(t)}function en(t,r,n){t.kind=153,t.asteriskToken=r;var i=r?1:0,a=e.hasModifier(t,256)?2:0;return lt(56,i|a,t),t.body=Ur(i|a,n),he(t)}function tn(t){return t.kind=151,t.questionToken||51!==Z()||k.hasPrecedingLineBreak()||(t.exclamationToken=de()),t.type=jt(),t.initializer=e.hasModifier(t,32)?J(Ut):B(6144,Ut),fe(),he(t)}function rn(e,t){return e.kind=t,e.name=Ce(),lt(56,0,e),e.body=Ur(0),he(e)}function nn(){var t;if(57===Z())return!0;for(;e.isModifierKind(Z());){if(t=Z(),e.isClassMemberModifier(t))return!0;ee()}if(39===Z())return!0;if(De()&&(t=Z(),ee()),21===Z())return!0;if(void 0!==t){if(!e.isKeyword(t)||136===t||125===t)return!0;switch(Z()){case 19:case 27:case 51:case 56:case 58:case 55:return!0;default:return pe()}}return!1}function an(){for(var e,t=$();;){var r=$();if(!ue(57))break;var n=me(149,r);n.expression=j(8192,ar),he(n),(e||(e=[])).push(n)}return e&&ye(e,t)}function on(t){for(var r,n=$();;){var i=k.getStartPos(),a=Z();if(76===Z()&&t){if(!oe(Ne))break}else if(!e.isModifierKind(Z())||!oe(Ae))break;var o=he(me(a,i));(r||(r=[])).push(o)}return r&&ye(r,n)}function sn(){var e;if(120===Z()){var t=k.getStartPos(),r=Z();ee(),e=ye([he(me(r,t))],t)}return e}function cn(){if(25===Z()){var t=me(211);return ee(),he(t)}var r=ge(0);return r.decorators=an(),r.modifiers=on(!0),Ee(125)?rn(r,155):Ee(136)?rn(r,156):123===Z()?function(t){return t.kind=154,ce(123),lt(56,0,t),t.body=Ur(0,e.Diagnostics.or_expected),he(t)}(r):pt()?mt(r):e.tokenIsIdentifierOrKeyword(Z())||9===Z()||8===Z()||39===Z()||21===Z()?function(t){var r=le(39);return t.name=Ce(),t.questionToken=le(55),r||19===Z()||27===Z()?en(t,r,e.Diagnostics.or_expected):tn(t)}(r):r.decorators||r.modifiers?(r.name=ve(71,!0,e.Diagnostics.Declaration_expected),tn(r)):void e.Debug.fail("Should not have attempted to parse class member declaration.")}function un(e){return ln(e,234)}function ln(e,t){return e.kind=t,ce(75),e.name=!se()||108===Z()&&ae(Me)?void 0:Se(),e.typeParameters=ot(),e.heritageClauses=_n(),ce(17)?(e.members=ze(5,cn),ce(18)):e.members=We(),he(e)}function _n(){if(mn())return ze(21,dn)}function dn(){var e=Z();if(85===e||108===e){var t=me(267);return t.token=e,ee(),t.types=Ve(7,pn),he(t)}}function pn(){var e=me(206);return e.expression=ar(),e.typeArguments=fn(),he(e)}function fn(){return 27===Z()?He(19,Rt,27,29):void 0}function mn(){return 85===Z()||108===Z()}function gn(){var e=ge(272);return e.name=Ce(),e.initializer=J(Ut),he(e)}function yn(){var e=me(239);return ce(17)?(e.statements=ze(1,Br),ce(18)):e.statements=We(),he(e)}function hn(e){return e.kind=238,143===Z()?(e.name=Se(),e.flags|=512):(e.name=Ze(),e.name.text=be(e.name.text)),17===Z()?e.body=yn():fe(),he(e)}function vn(){return 19===ee()}function bn(){return 41===ee()}function xn(){if(9===Z()){var e=Ze();return e.text=be(e.text),e}return Kt()}function Sn(e){var t=me(e);return t.elements=He(22,246===e?Dn:kn,17,18),he(t)}function kn(){return Tn(251)}function Dn(){return Tn(247)}function Tn(t){var r=me(t),n=e.isKeyword(Z())&&!se(),i=k.getTokenPos(),a=k.getTextPos(),o=ke();return 118===Z()?(r.propertyName=o,ce(118),n=e.isKeyword(Z())&&!se(),i=k.getTokenPos(),a=k.getTextPos(),r.name=ke()):r.name=o,247===t&&n&&X(i,a,e.Diagnostics.Identifier_expected),he(r)}t.parseSourceFile=function(t,r,n,i,a,o){E(r,n,i,o=e.ensureScriptKind(t,o));var s=A(t,n,a,o);return N(),s},t.parseIsolatedEntityName=function(e,t){E(e,t,void 0,1),ee();var r=Ge(!0),n=1===Z()&&!s.length;return N(),n?r:void 0},t.parseJsonText=function(t,r){E(r,2,void 0,6);var n=o=F(t,2,6,!1);return ee(),1===Z()?o.endOfFileToken=de():17===Z()||ae(function(){return 9===Z()})?(n.jsonObject=xr(),o.endOfFileToken=_e(1,e.Diagnostics.Unexpected_token)):ce(17),o.parseDiagnostics=s,N(),n},t.fixupParentReferences=w,function(e){e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.RestProperties=17]="RestProperties",e[e.TypeParameters=18]="TypeParameters",e[e.TypeArguments=19]="TypeArguments",e[e.TupleElementTypes=20]="TupleElementTypes",e[e.HeritageClauses=21]="HeritageClauses",e[e.ImportOrExportSpecifiers=22]="ImportOrExportSpecifiers",e[e.Count=23]="Count"}(b||(b={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(x||(x={})),function(t){function r(e){var t=me(275,k.getTokenPos()),r=(e?ue:ce)(17);return t.type=j(1048576,it),e&&!r||ce(18),w(t),he(t)}var n,i;function a(t,n){var i=f;t=t||0;var a,o,s,c=void 0===n?i.length:t+n;n=c-t,e.Debug.assert(t>=0),e.Debug.assert(t<=c),e.Debug.assert(c<=i.length);var _,d=[];return l(i,t)?(k.scanRange(t+3,n-5,function(){var e,r=1,n=t-Math.max(i.lastIndexOf("\n",t),0)+4;function u(t){e||(e=n),d.push(t),n+=t.length}for(var l=w();5===l;)l=w();4===l&&(r=0,n=0,l=w());e:for(;;){switch(l){case 57:0===r||1===r?(m(d),y(n),r=0,e=void 0,n++):u(k.getTokenText());break;case 4:d.push(k.getTokenText()),r=0,n=0;break;case 39:var f=k.getTokenText();1===r||2===r?(r=2,u(f)):(r=1,n+=f.length);break;case 71:u(k.getTokenText()),r=2;break;case 5:var g=k.getTokenText();2===r?d.push(g):void 0!==e&&n+g.length>e&&d.push(g.slice(e-n-1)),n+=g.length;break;case 1:break e;default:r=2,u(k.getTokenText())}l=w()}p(d),m(d),_=function(){var e=me(283,t);return e.tags=a&&ye(a,o,s),e.comment=d.length?d.join(""):void 0,he(e,c)}()}),_):_;function p(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function m(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop()}function g(){for(;5===Z()||4===Z();)w()}function y(t){e.Debug.assert(57===Z());var r=me(57,k.getTokenPos());r.end=k.getTextPos(),w();var n=F();if(g(),n){var i;if(n)switch(n.escapedText){case"augments":case"extends":i=function(e,t){var r=me(286,e.pos);return r.atToken=e,r.tagName=t,r.class=function(){var e=ue(17),t=me(206);t.expression=function(){for(var e=F(!0);ue(23);){var t=me(184,e.pos);t.expression=e,t.name=F(),e=he(t)}return e}(),t.typeArguments=fn();var r=he(t);return e&&ce(18),r}(),he(r)}(r,n);break;case"class":case"constructor":i=function(e,t){var r=me(287,e.pos);return r.atToken=e,r.tagName=t,he(r)}(r,n);break;case"arg":case"argument":case"param":return void b(T(r,n,1,t));case"return":case"returns":i=function(t,r){e.forEach(a,function(e){return 289===e.kind})&&X(r.pos,k.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var n=me(289,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=x(),he(n)}(r,n);break;case"template":i=function(t,r){e.some(a,e.isJSDocTemplateTag)&&X(r.pos,k.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var n=[],i=$();for(;;){var o=me(147),s=P();if(g(),!s)return void G(k.getStartPos(),0,e.Diagnostics.Identifier_expected);if(o.name=s,he(o),n.push(o),26!==Z())break;w(),g()}var c=me(291,t.pos);return c.atToken=t,c.tagName=r,c.typeParameters=ye(n,i),he(c),c}(r,n);break;case"type":i=C(r,n);break;case"typedef":i=function(t,r){var n=x();g();var i=me(292,t.pos);if(i.atToken=t,i.tagName=r,i.fullName=function e(t){var r=k.getTokenPos(),n=F();if(n&&ue(23)){var i=me(238,r);return i.flags|=t,i.name=n,i.body=e(4),he(i)}return n&&4&t&&(n.isInJSDocNamespace=!0),n}(0),i.fullName)for(var a=i.fullName;;){if(71===a.kind||!a.body){i.name=71===a.kind?a:a.name;break}a=a.body}if(g(),i.typeExpression=n,!n||D(n.type)){for(var o=void 0,s=void 0,c=void 0,u=k.getStartPos();o=oe(function(){return N(0)});)if(s||(s=me(284,u)),290===o.kind){if(c)break;c=o}else s.jsDocPropertyTags=e.append(s.jsDocPropertyTags,o);s&&(n&&166===n.type.kind&&(s.isArrayType=!0),i.typeExpression=c&&c.typeExpression&&!D(c.typeExpression.type)?c.typeExpression:he(s))}return he(i)}(r,n);break;default:i=v(r,n)}else i=v(r,n);i&&(i.comment=h(t+i.end-i.pos),b(i))}}function h(e){var t,r=[],n=0;function i(n){t||(t=e),r.push(n),e+=n.length}var a=Z();e:for(;;){switch(a){case 4:n>=1&&(n=0,r.push(k.getTokenText())),e=0;break;case 57:k.setTextPos(k.getTextPos()-1);case 1:break e;case 5:if(2===n)i(k.getTokenText());else{var o=k.getTokenText();void 0!==t&&e+o.length>t&&r.push(o.slice(t-e-1)),e+=o.length}break;case 39:if(0===n){n=1,e+=1;break}default:n=2,i(k.getTokenText())}a=w()}return p(r),m(r),0===r.length?void 0:r.join("")}function v(e,t){var r=me(285,e.pos);return r.atToken=e,r.tagName=t,he(r)}function b(e){a?a.push(e):(a=[e],o=e.pos),s=e.end}function x(){return g(),17===Z()?r():void 0}function S(){if(13===Z())return{name:xe(!0),isBracketed:!1};var e=ue(21),t=function(){var e=F(!0);ue(21)&&ce(22);for(;ue(23);){var t=F(!0);ue(21)&&ce(22),e=Xe(e,t)}return e}();return e&&(g(),le(58)&&Kt(),ce(22)),{name:t,isBracketed:e}}function D(t){switch(t.kind){case 135:return!0;case 166:return D(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function T(t,r,n,i){var a=x(),o=!a;g();var s=S(),c=s.name,u=s.isBracketed;g(),o&&(a=x());var l,_=me(1===n?288:293,t.pos);void 0!==i&&(l=h(i+k.getStartPos()-t.pos));var d=function(t,r,n){if(t&&D(t.type)){for(var i=me(275,k.getTokenPos()),a=void 0,o=void 0,s=k.getStartPos(),c=void 0;a=oe(function(){return N(n,r)});)288!==a.kind&&293!==a.kind||(c=e.append(c,a));if(c)return(o=me(284,s)).jsDocPropertyTags=c,166===t.type.kind&&(o.isArrayType=!0),i.type=he(o),he(i)}}(a,c,n);return d&&(a=d,o=!0),_.atToken=t,_.tagName=r,_.typeExpression=a,_.name=c,_.isNameFirst=o,_.isBracketed=u,_.comment=l,he(_)}function C(t,n){e.forEach(a,function(e){return 290===e.kind})&&X(n.pos,k.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var i=me(290,t.pos);return i.atToken=t,i.tagName=n,i.typeExpression=r(!0),he(i)}function E(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function N(t,r){for(var n=!0,i=!1;;)switch(w()){case 57:if(n){var a=A(t);return!(a&&288===a.kind&&(e.isIdentifier(a.name)||!E(r,a.name.left)))&&a}i=!1;break;case 4:n=!0,i=!1;break;case 39:i&&(n=!1),i=!0;break;case 71:n=!1;break;case 1:return!1}}function A(t){e.Debug.assert(57===Z());var r=me(57);r.end=k.getTextPos(),w();var n,i=F();if(g(),!i)return!1;switch(i.escapedText){case"type":return 0===t&&C(r,i);case"prop":case"property":n=0;break;case"arg":case"argument":case"param":n=1;break;default:return!1}if(t!==n)return!1;var a=T(r,i,t,void 0);return a.comment=h(a.end-a.pos),a}function P(){var e=ue(17),t=F();return e&&ce(18),t}function w(){return u=k.scanJSDocToken()}function F(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(Z()))return t?ve(71,!0,e.Diagnostics.Identifier_expected):void H(e.Diagnostics.Identifier_expected);var r=k.getTokenPos(),n=k.getTextPos(),a=me(71,r);return a.escapedText=e.escapeLeadingUnderscores(i.substring(r,n)),he(a,n),w(),a}}t.parseJSDocTypeExpressionForTests=function(e,t,n){E(e,6,void 0,1),o=F("file.js",6,1,!1),k.setText(e,t,n),u=k.scan();var i=r(),a=s;return N(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=function(e,t,r){E(e,6,void 0,1),o={languageVariant:0,text:e};var n=a(t,r),i=s;return N(),n?{jsDoc:n,diagnostics:i}:void 0},t.parseJSDocComment=function(e,t,r){var n,i=u,c=s.length,l=T,_=a(t,r);return _&&(_.parent=e),65536&v&&(o.jsDocDiagnostics||(o.jsDocDiagnostics=[]),(n=o.jsDocDiagnostics).push.apply(n,s)),u=i,s.length=c,T=l,_},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(n||(n={})),function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter"}(i||(i={})),t.parseJSDocCommentWorker=a}(S=t.JSDocParser||(t.JSDocParser={}))}(o||(o={})),function(t){function r(t,r,i,o,s,c){return void(r?l(t):u(t));function u(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=i,t.end+=i,c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),_(t,u,l),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d<p.length;d++){u(p[d])}a(t,c)}function l(e){e._children=void 0,e.pos+=i,e.end+=i;for(var t=0,r=e;t<r.length;t++){u(r[t])}}}function n(e){switch(e.kind){case 9:case 8:case 71:return!0}return!1}function i(t,r,n,i,a){e.Debug.assert(t.end>=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=n?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end))}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a<o.length;a++){i(o[a])}_(t,i),e.Debug.assert(n<=t.end)}}function s(t,r){var n,i=t;if(_(t,function t(a){if(e.nodeIsMissing(a))return;if(!(a.pos<=r))return e.Debug.assert(a.pos>r),!0;if(a.pos>=i.pos&&(i=a),r<a.end)return _(a,t),!0;e.Debug.assert(a.end<=r),n=a}),n){var a=function(t){for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}}(n);a.pos>i.pos&&(i=a)}return i}function c(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}var u;t.updateSourceFile=function(t,n,u,l){if(c(t,n,u,l=l||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return o.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var d=t;e.Debug.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0;var p=t.text,f=function(t){var r=t.statements,n=0;e.Debug.assert(n<r.length);var i=r[n],a=-1;return{currentNode:function(o){return o!==a&&(i&&i.end===o&&n<r.length-1&&(i=r[++n]),i&&i.pos===o||function(e){return r=void 0,n=-1,i=void 0,void _(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(_(t,a,o),!0)}function o(t){if(e>=t.pos&&e<t.end)for(var s=0;s<t.length;s++){var c=t[s];if(c){if(c.pos===e)return r=t,n=s,i=c,!0;if(c.pos<e&&e<c.end)return _(c,a,o),!0}}return!1}}(o)),a=o,e.Debug.assert(!i||i.pos===o),i}}}(t),m=function(t,r){for(var n=r.span.start,i=0;n>0&&i<=1;i++){var a=s(t,n);e.Debug.assert(a.pos<=n);var o=a.pos;n=Math.max(0,o-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,u)}(t,u);c(t,n,m,l),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;return function(t,n,o,s,c,u,l,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,d);else{var m=t.end;if(m>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),_(t,p,f),e.hasJSDocNodes(t))for(var g=0,y=t.jsDoc;g<y.length;g++){var h=y[g];p(h)}a(t,d)}else e.Debug.assert(m<n)}}function f(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!0,c,u,l,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_<f.length;_++){var m=f[_];p(m)}}else e.Debug.assert(a<n)}}}(d,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),g,p,n,l),o.parseSourceFile(t.fileName,n,t.languageVersion,f,!0,t.scriptKind)},function(e){e[e.Value=-1]="Value"}(u||(u={}))}(s||(s={})),e.processCommentPragmas=d,e.processPragmasIntoFields=p;var f=e.createMap();function m(e){if(f.has(e))return f.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return f.set(e,t),t}var g=/^\/\/\/\s*<(\S+)\s.*?\/>/im,y=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function h(t,r,n){var i=2===r.kind&&g.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c<u.length;c++){var l=u[c],_=m(l.name).exec(n);if(!_&&!l.optional)return;if(_)if(l.captureSpan){var d=r.pos+_.index+_[1].length+_[2].length;s[l.name]={value:_[3],pos:d,end:d+_[3].length}}else s[l.name]=_[3]}t.push({name:a,args:{arguments:s,range:r}})}else t.push({name:a,args:{arguments:{},range:r}})}else{var p=2===r.kind&&y.exec(n);if(p)return v(t,r,2,p);if(3===r.kind)for(var f=/\s*@(\S+)\s*(.*)\s*$/gim,h=void 0;h=f.exec(n);)v(t,r,4,h)}}function v(t,r,n,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&n){var s=function(t,r){if(!r)return{};if(!t.args)return{};for(var n=r.split(/\s+/),i={},a=0;a<t.args.length;a++){var o=t.args[a];if(!n[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=n[a]}return i}(o,i[2]);"fail"!==s&&t.push({name:a,args:{arguments:s,range:r}})}}}}(o||(o={})),function(e){var t;function r(t){return t.body?function t(n){switch(n.kind){case 235:case 236:return 0;case 237:if(e.isConst(n))return 2;break;case 243:case 242:if(!e.hasModifier(n,1))return 0;break;case 239:var i=0;return e.forEachChild(n,function(r){var n=t(r);switch(n){case 0:return;case 2:return void(i=2);case 1:return i=1,!0;default:e.Debug.assertNever(n)}}),i;case 238:return r(n);case 71:if(n.isInJSDocNamespace)return 0}return 1}(t.body):1}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=r,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(t||(t={}));var n=function(){var t,n,l,_,d,p,f,m,g,y,h,v,b,x,S,k,D,T,C,E,N,A,P,w=0,F={flags:1},O={flags:1},I=0;function M(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,i){t=r,n=i,l=e.getEmitScriptTarget(n),E=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,i),A=e.createUnderscoreEscapedMap(),w=0,P=t.isDeclarationFile,N=e.objectAllocator.getSymbolConstructor(),t.locals||(De(t),t.symbolCount=w,t.classifiableNames=A);t=void 0,n=void 0,l=void 0,_=void 0,d=void 0,p=void 0,f=void 0,m=void 0,g=!1,y=void 0,h=void 0,v=void 0,b=void 0,x=void 0,S=void 0,D=void 0,T=!1,C=0,I=0};function L(e,t){return w++,new N(e,t)}function R(t,r,n){if(t.flags|=n,r.symbol=t,t.declarations=e.append(t.declarations,r),1952&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),67216319&n){var i=t.valueDeclaration;(!i||i.kind!==r.kind&&238===i.kind)&&(t.valueDeclaration=r)}}function B(t){if(248===t.kind)return t.isExportEquals?"export=":"default";var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'+n+'"'}if(146===r.kind){var i=r.expression;return e.isStringOrNumericLiteral(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.idText(i.name)))}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 154:return"__constructor";case 162:case 157:return"__call";case 163:case 158:return"__new";case 159:return"__index";case 249:return"__export";case 199:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 281:return e.isJSDocConstructSignature(t)?"__new":"__call";case 148:e.Debug.assert(281===t.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind)+", expected JSDocFunctionType"});var a=t.parent,o=a.parameters.indexOf(t);return"arg"+o;case 292:var s=e.getNameOfJSDocTypedef(t);return void 0!==s?s.escapedText:void 0}}function j(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(B(t))}function J(r,n,i,a,o,s){e.Debug.assert(!e.hasDynamicName(i));var c,u=e.hasModifier(i,512),l=u&&n?"default":B(i);if(void 0===l)c=L(0,"__missing");else if(c=r.get(l),2885600&a&&A.set(l,!0),c){if(s&&!c.isReplaceableByMethod)return c;if(c.flags&o)if(c.isReplaceableByMethod)r.set(l,c=L(0,l));else{e.isNamedDeclaration(i)&&(i.name.parent=i);var _=2&c.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;(384&c.flags||384&a)&&(_=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations),c.declarations&&c.declarations.length&&(u?_=e.Diagnostics.A_module_cannot_have_multiple_default_exports:c.declarations&&c.declarations.length&&248===i.kind&&!i.isExportEquals&&(_=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(c.declarations,function(r){t.bindDiagnostics.push(M(e.getNameOfDeclaration(r)||r,_,j(r)))}),t.bindDiagnostics.push(M(e.getNameOfDeclaration(i)||i,_,j(i))),c=L(0,l)}}else r.set(l,c=L(0,l)),s&&(c.isReplaceableByMethod=!0);return R(c,i,a),c.parent?e.Debug.assert(c.parent===n,"Existing symbol parent should match new one"):c.parent=n,c}function z(t,r,n){var i=1&e.getCombinedModifierFlags(t);if(2097152&r)return 251===t.kind||242===t.kind&&i?J(d.symbol.exports,d.symbol,t,r,n):J(d.locals,void 0,t,r,n);292===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var a=e.isJSDocTypedefTag(t)&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(i||32&d.flags)||a){if(e.hasModifier(t,512)&&!B(t))return J(d.symbol.exports,d.symbol,t,r,n);var o=67216319&r?1048576:0,s=J(d.locals,void 0,t,o,n);return s.exportSymbol=J(d.symbol.exports,d.symbol,t,r,n),t.localSymbol=s,s}return J(d.locals,void 0,t,r,n)}function K(e){if(P)W(e);else if(536870912&e.transformFlags)P=!0,W(e),P=!1,I|=e.transformFlags&~c(e.kind);else{var t=I;I=0,W(e),I=t|s(e,I)}}function U(e){q(e,function(e){return 233===e.kind?De(e):void 0}),q(e,function(e){return 233!==e.kind?De(e):void 0})}function q(t,r){if(void 0===r&&(r=De),void 0!==t)if(P)e.forEach(t,r);else{var n=I;I=0;for(var i=0,a=0,o=t;a<o.length;a++){var s=o[a];r(s),i|=-536870913&s.transformFlags}t.transformFlags=536870912|i,I|=n}}function V(t){e.forEachChild(t,De,q)}function W(i){if(e.hasJSDocNodes(i))if(e.isInJavaScriptFile(i))for(var a=0,o=i.jsDoc;a<o.length;a++){var s=o[a];De(s)}else for(var c=0,l=i.jsDoc;c<l.length;c++){var s=l[c];u(i,s)}if(function(t){if(!(1&y.flags))return!1;if(y===F){var i=e.isStatementButNotDeclaration(t)&&214!==t.kind||234===t.kind||238===t.kind&&function(e){var t=r(e);return 1===t||2===t&&n.preserveConstEnums}(t)||237===t.kind&&(!e.isConstEnumDeclaration(t)||n.preserveConstEnums);if(i){y=O;var a=!n.allowUnreachableCode&&!(2097152&t.flags)&&(213!==t.kind||3&e.getCombinedNodeFlags(t.declarationList)||e.forEach(t.declarationList.declarations,function(e){return e.initializer}));a&&ke(t,e.Diagnostics.Unreachable_code_detected)}}return!0}(i))V(i);else switch(i.kind){case 218:!function(e){var t=$(),r=Y(),n=Y();ee(t,y),y=t,se(e.expression,r,n),y=ae(r),ce(e.statement,n,t),ee(t,y),y=ae(n)}(i);break;case 217:!function(t){var r=$(),n=227===t.parent.kind?e.lastOrUndefined(D):void 0,i=n?n.continueTarget:Y(),a=n?n.breakTarget:Y();ee(r,y),y=r,ce(t.statement,a,i),ee(i,y),y=ae(i),se(t.expression,r,a),y=ae(a)}(i);break;case 219:!function(e){var t=$(),r=Y(),n=Y();De(e.initializer),ee(t,y),y=t,se(e.condition,r,n),y=ae(r),ce(e.statement,n,t),De(e.incrementor),ee(t,y),y=ae(n)}(i);break;case 220:case 221:!function(e){var t=$(),r=Y();ee(t,y),y=t,221===e.kind&&De(e.awaitModifier);De(e.expression),ee(r,y),De(e.initializer),232!==e.initializer.kind&&_e(e.initializer);ce(e.statement,r,t),ee(t,y),y=ae(r)}(i);break;case 216:!function(e){var t=Y(),r=Y(),n=Y();se(e.expression,t,r),y=ae(t),De(e.thenStatement),ee(n,y),y=ae(r),De(e.elseStatement),ee(n,y),y=ae(n)}(i);break;case 224:case 228:!function(e){De(e.expression),224===e.kind&&(T=!0,b&&ee(b,y));y=F}(i);break;case 223:case 222:!function(e){if(De(e.label),e.label){var t=function(e){if(D)for(var t=0,r=D;t<r.length;t++){var n=r[t];if(n.name===e)return n}return}(e.label.escapedText);t&&(t.referenced=!0,ue(e,t.breakTarget,t.continueTarget))}else ue(e,h,v)}(i);break;case 229:!function(e){var t=Y(),r=y;De(e.tryBlock),ee(t,y);var n=y,i=F;e.catchClause&&(y=r,De(e.catchClause),ee(t,y),i=y);if(e.finallyBlock){var a={flags:2048,antecedent:r,lock:{}};if(ee(t,a),y=ae(t),De(e.finallyBlock),1&y.flags||1&n.flags&&1&i.flags&&(y=n===O||i===O?O:F),!(1&y.flags)){var o={flags:4096,antecedent:y};a.lock=o,y=o}}else y=ae(t)}(i);break;case 226:!function(t){var r=Y();De(t.expression);var n=h,i=k;h=r,k=y,De(t.caseBlock),ee(r,y);var a=e.forEach(t.caseBlock.clauses,function(e){return 266===e.kind});t.possiblyExhaustive=!a&&!r.antecedents,a||ee(r,re(k,t,0,0));h=n,k=i,y=ae(r)}(i);break;case 240:!function(t){var r=I;I=0;for(var i=t.clauses,a=F,o=0;o<i.length;o++){for(var s=o;!i[o].statements.length&&o+1<i.length;)De(i[o]),o++;var c=Y();ee(c,re(k,t.parent,s,o+1)),ee(c,a),y=ae(c);var u=i[o];De(u),a=y,1&y.flags||o===i.length-1||!n.noFallthroughCasesInSwitch||ke(u,e.Diagnostics.Fallthrough_case_in_switch)}i.transformFlags=536870912|I,I|=r}(i);break;case 265:!function(e){var t=y;y=k,De(e.expression),y=t,q(e.statements)}(i);break;case 227:!function(r){var i=$(),a=Y();De(r.label),ee(i,y);var o=function(e,t,r){var n={name:e,breakTarget:t,continueTarget:r,referenced:!1};return(D||(D=[])).push(n),n}(r.label.escapedText,a,i);De(r.statement),D.pop(),o.referenced||n.allowUnusedLabels||t.bindDiagnostics.push(M(r.label,e.Diagnostics.Unused_label));r.statement&&217===r.statement.kind||(ee(a,y),y=ae(a))}(i);break;case 197:!function(e){if(51===e.operator){var t=x;x=S,S=t,V(e),S=x,x=t}else V(e),43!==e.operator&&44!==e.operator||_e(e.operand)}(i);break;case 198:!function(e){V(e),(43===e.operator||44===e.operator)&&_e(e.operand)}(i);break;case 199:!function(t){var r=t.operatorToken.kind;if(53===r||54===r)if(function(e){for(;190===e.parent.kind||197===e.parent.kind&&51===e.parent.operator;)e=e.parent;return!function(e){var t=e.parent;switch(t.kind){case 216:case 218:case 217:return t.expression===e;case 219:case 200:return t.condition===e}return!1}(e)&&!oe(e.parent)}(t)){var n=Y();de(t,n,n),y=ae(n)}else de(t,x,S);else if(V(t),e.isAssignmentOperator(r)&&!e.isAssignmentTarget(t)&&(_e(t.left),58===r&&185===t.left.kind)){var i=t.left;Q(i.expression)&&(y=ie(y,t))}}(i);break;case 193:!function(e){V(e),184===e.expression.kind&&_e(e.expression)}(i);break;case 200:!function(e){var t=Y(),r=Y(),n=Y();se(e.condition,t,r),y=ae(t),De(e.questionToken),De(e.whenTrue),ee(n,y),y=ae(r),De(e.colonToken),De(e.whenFalse),ee(n,y),y=ae(n)}(i);break;case 231:!function(t){V(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&function t(r){var n=e.isOmittedExpression(r)?void 0:r.name;if(e.isBindingPattern(n))for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];t(o)}else y=ne(y,r)}(t)}(i);break;case 186:!function(t){var r=t.expression;for(;190===r.kind;)r=r.expression;191===r.kind||192===r.kind?(q(t.typeArguments),q(t.arguments),De(t.expression)):V(t);if(184===t.expression.kind){var n=t.expression;Q(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(y=ie(y,t))}}(i);break;case 283:!function(t){e.forEachChild(t,function(e){292!==e.kind&&De(e)})}(i);break;case 292:!function(t){e.forEachChild(t,function(e){t.fullName&&e===t.name&&71!==t.fullName.kind||De(e)})}(i);break;case 273:U(i.statements),De(i.endOfFileToken);break;case 212:case 239:U(i.statements);break;default:V(i)}}function H(t){switch(t.kind){case 71:case 99:case 184:return G(t);case 186:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++){var n=r[t];if(G(n))return!0}if(184===e.expression.kind&&G(e.expression.expression))return!0;return!1}(t);case 190:return H(t.expression);case 199:return function(t){switch(t.operatorToken.kind){case 58:return G(t.left);case 32:case 33:case 34:case 35:return Q(t.left)||Q(t.right)||X(t.right,t.left)||X(t.left,t.right);case 93:return Q(t.left);case 92:return r=t.left,n=t.right,e.isStringLiteralLike(r)&&H(n);case 26:return H(t.right)}var r,n;return!1}(t);case 197:return 51===t.operator&&H(t.operand)}return!1}function G(e){return 71===e.kind||99===e.kind||97===e.kind||184===e.kind&&G(e.expression)}function X(t,r){return e.isTypeOfExpression(t)&&Q(t.expression)&&e.isStringLiteralLike(r)}function Q(e){switch(e.kind){case 190:return Q(e.expression);case 199:switch(e.operatorToken.kind){case 58:return Q(e.left);case 26:return Q(e.right)}}return G(e)}function Y(){return{flags:4,antecedents:void 0}}function $(){return{flags:8,antecedents:void 0}}function Z(e){e.flags|=512&e.flags?1024:512}function ee(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),Z(r))}function te(e,t,r){return 1&t.flags?t:r?101===r.kind&&64&e||86===r.kind&&32&e?F:H(r)?(Z(t),{flags:e,expression:r,antecedent:t}):t:32&e?t:F}function re(e,t,r,n){return H(t.expression)?(Z(e),{flags:128,switchStatement:t,clauseStart:r,clauseEnd:n,antecedent:e}):e}function ne(e,t){return Z(e),{flags:16,antecedent:e,node:t}}function ie(e,t){Z(e);var r={flags:256,antecedent:e,node:t};return r}function ae(e){var t=e.antecedents;return t?1===t.length?t[0]:e:F}function oe(e){for(;;)if(190===e.kind)e=e.expression;else{if(197!==e.kind||51!==e.operator)return 199===e.kind&&(53===e.operatorToken.kind||54===e.operatorToken.kind);e=e.operand}}function se(e,t,r){var n=x,i=S;x=t,S=r,De(e),x=n,S=i,e&&oe(e)||(ee(t,te(32,y,e)),ee(r,te(64,y,e)))}function ce(e,t,r){var n=h,i=v;h=t,v=r,De(e),h=n,v=i}function ue(e,t,r){var n=223===e.kind?t:r;n&&(ee(n,y),y=F)}function le(e){199===e.kind&&58===e.operatorToken.kind?_e(e.left):_e(e)}function _e(e){if(G(e))y=ne(y,e);else if(182===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];203===n.kind?_e(n.expression):le(n)}else if(183===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];269===o.kind?le(o.initializer):270===o.kind?_e(o.name):271===o.kind&&_e(o.expression)}}function de(e,t,r){var n=Y();53===e.operatorToken.kind?se(e.left,n,r):se(e.left,t,n),y=ae(n),De(e.operatorToken),se(e.right,t,r)}function pe(e){m&&(m.nextContainer=e),m=e}function fe(r,n,i){switch(d.kind){case 238:return z(r,n,i);case 273:return function(r,n,i){return e.isExternalModule(t)?z(r,n,i):J(t.locals,void 0,r,n,i)}(r,n,i);case 204:case 234:return function(t,r,n){return e.hasModifier(t,32)?J(d.symbol.exports,d.symbol,t,r,n):J(d.symbol.members,d.symbol,t,r,n)}(r,n,i);case 237:return J(d.symbol.exports,d.symbol,r,n,i);case 165:case 284:case 183:case 235:case 262:return J(d.symbol.members,d.symbol,r,n,i);case 162:case 163:case 157:case 158:case 159:case 153:case 152:case 154:case 155:case 156:case 233:case 191:case 192:case 281:case 236:case 176:return J(d.locals,void 0,r,n,i)}}function me(e){2097152&e.flags&&!function(e){var t=273===e.kind?e:e.body;if(t&&(273===t.kind||239===t.kind))for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(249===i.kind||248===i.kind)return!0}return!1}(e)?e.flags|=32:e.flags&=-33}function ge(e){var t=r(e),n=0!==t;return fe(e,n?512:1024,n?67215503:0),t}function ye(e,t,r){var n=L(t,r);106508&t&&(n.parent=d.symbol),R(n,e,t)}function he(t,r,n){switch(f.kind){case 238:z(t,r,n);break;case 273:if(e.isExternalModule(d)){z(t,r,n);break}default:f.locals||(f.locals=e.createSymbolTable(),pe(f)),J(f.locals,void 0,t,r,n)}}function ve(r){!(E&&r.originalKeywordKind>=108&&r.originalKeywordKind<=116)||e.isIdentifierName(r)||2097152&r.flags||t.parseDiagnostics.length||t.bindDiagnostics.push(M(r,function(r){if(e.getContainingClass(r))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(t.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}(r),e.declarationNameToString(r)))}function be(r,n){if(n&&71===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}var o}function xe(e){E&&be(e,e.name)}function Se(r){if(l<2&&273!==f.kind&&238!==f.kind&&!e.isFunctionLike(f)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}function ke(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function De(r){if(r){r.parent=_;var n=E;if(e.isInJavaScriptFile(r)&&function(t){if(!e.hasJSDocNodes(t))return;for(var r=0,n=t.jsDoc;r<n.length;r++){var i=n[r];if(i.tags)for(var a=0,o=i.tags;a<o.length;a++){var s=o[a];if(292===s.kind){var c=_;_=i,De(s),_=c}}}}(r),function(r){switch(r.kind){case 71:if(r.isInJSDocNamespace){for(var n=r.parent;n&&292!==n.kind;)n=n.parent;he(n,524288,67901928);break}case 99:return y&&(e.isExpression(r)||270===_.kind)&&(r.flowNode=y),ve(r);case 184:y&&G(r)&&(r.flowNode=y),e.isSpecialPropertyDeclaration(r)&&function(t){99===t.expression.kind?Ae(t):e.isPropertyAccessEntityNameExpression(t)&&273===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?Pe(t,t.parent):we(t))}(r);break;case 199:var o=e.getSpecialPropertyAssignmentKind(r);switch(o){case 1:Ne(r);break;case 2:!function(r){var n=e.getRightMostAssignedExpression(r.right);if(e.isEmptyObjectLiteral(n)||d===t&&i(t,n))return void Ee(r);Ee(r),J(t.symbol.exports,t.symbol,r,1049092,0)}(r);break;case 3:Pe(r.left,r);break;case 6:!function(e){e.left.parent=e,e.right.parent=e;var t=e.left;Oe(t,t,!1)}(r);break;case 4:Ae(r);break;case 5:!function(r){var n=r.left;r.left.parent=r,r.right.parent=r,e.isIdentifier(n.expression)&&d===t&&a(t,n.expression)?Ne(r):we(n)}(r);break;case 0:break;default:e.Debug.fail("Unknown special property assignment kind")}return function(t){E&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&be(t,t.left)}(r);case 268:return function(e){E&&e.variableDeclaration&&be(e,e.variableDeclaration.name)}(r);case 193:return function(r){if(E&&71===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(r);case 8:return function(r){E&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(M(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 198:return function(e){E&&be(e,e.operand)}(r);case 197:return function(e){E&&(43!==e.operator&&44!==e.operator||be(e,e.operand))}(r);case 225:return function(t){E&&ke(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 173:return void(g=!0);case 160:break;case 147:return function(t){if(171===t.parent.kind){var r=function(e){for(;e;){var t=e.parent;if(t&&170===t.kind&&t.extendsType===e)return t;e=t}return}(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),J(r.locals,void 0,t,262144,67639784)):ye(t,262144,B(t))}else fe(t,262144,67639784)}(r);case 148:return function(t){!E||2097152&t.flags||be(t,t.name);e.isBindingPattern(t.name)?ye(t,1,"__"+t.parent.parameters.indexOf(t)):fe(t,1,67216319);if(e.isParameterPropertyDeclaration(t)){var r=t.parent.parent;J(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}(r);case 231:return Le(r);case 181:return r.flowNode=y,Le(r);case 151:case 150:return function(e){return Re(e,4|(e.questionToken?16777216:0),0)}(r);case 269:case 270:return Re(r,4,0);case 272:return Re(r,8,68008959);case 157:case 158:case 159:return fe(r,131072,0);case 153:case 152:return Re(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:67208127);case 233:return function(r){t.isDeclarationFile||2097152&r.flags||e.isAsyncFunction(r)&&(C|=1024);xe(r),E?(Se(r),he(r,16,67215791)):fe(r,16,67215791)}(r);case 154:return fe(r,16384,0);case 155:return Re(r,32768,67150783);case 156:return Re(r,65536,67183551);case 162:case 281:case 163:return function(t){var r=L(131072,B(t));R(r,t,131072);var n=L(2048,"__type");R(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 165:case 284:case 176:return function(e){return ye(e,2048,"__type")}(r);case 183:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),E)for(var i=e.createUnderscoreEscapedMap(),a=0,o=r.properties;a<o.length;a++){var s=o[a];if(271!==s.kind&&71===s.name.kind){var c=s.name,u=269===s.kind||270===s.kind||153===s.kind?1:2,l=i.get(c.escapedText);if(l){if(1===u&&1===l){var _=e.getErrorSpanForNode(t,c);t.bindDiagnostics.push(e.createFileDiagnostic(t,_.start,_.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else i.set(c.escapedText,u)}}return ye(r,4096,"__object")}(r);case 191:case 192:return function(r){t.isDeclarationFile||2097152&r.flags||e.isAsyncFunction(r)&&(C|=1024);y&&(r.flowNode=y);xe(r);var n=r.name?r.name.escapedText:"__function";return ye(r,16,n)}(r);case 186:e.isInJavaScriptFile(r)&&function(r){!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&Ee(r)}(r);break;case 204:case 234:return E=!0,function(r){if(234===r.kind)he(r,32,68008383);else{var n=r.name?r.name.escapedText:"__class";ye(r,32,n),r.name&&A.set(r.name.escapedText,!0)}var i=r.symbol,a=L(4194308,"prototype"),o=i.exports.get(a.escapedName);o&&(r.name&&(r.name.parent=r),t.bindDiagnostics.push(M(o.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(a))));i.exports.set(a.escapedName,a),a.parent=i}(r);case 235:return he(r,64,67901832);case 236:return he(r,524288,67901928);case 237:return function(t){return e.isConst(t)?he(t,128,68008831):he(t,256,68008191)}(r);case 238:return function(r){if(me(r),e.isAmbientModule(r))if(e.hasModifier(r,1)&&ke(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))ge(r);else{var n=void 0;if(9===r.name.kind){var i=r.name.text;e.hasZeroOrOneAsteriskCharacter(i)?n=e.tryParsePattern(i):ke(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=fe(r,512,67215503);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&{pattern:n,symbol:a})}else{var o=ge(r);if(0!==o){var a=r.symbol;a.constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule}}}(r);case 262:return function(e){return ye(e,4096,"__jsxAttributes")}(r);case 261:return function(e,t,r){return fe(e,t,r)}(r,4,0);case 242:case 245:case 247:case 251:return fe(r,2097152,2097152);case 241:return function(r){r.modifiers&&r.modifiers.length&&t.bindDiagnostics.push(M(r,e.Diagnostics.Modifiers_cannot_appear_here));if(273!==r.parent.kind)return void t.bindDiagnostics.push(M(r,e.Diagnostics.Global_module_exports_may_only_appear_at_top_level));var n=r.parent;if(!e.isExternalModule(n))return void t.bindDiagnostics.push(M(r,e.Diagnostics.Global_module_exports_may_only_appear_in_module_files));if(!n.isDeclarationFile)return void t.bindDiagnostics.push(M(r,e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files));t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),J(t.symbol.globalExports,t.symbol,r,2097152,2097152)}(r);case 244:return function(e){e.name&&fe(e,2097152,2097152)}(r);case 249:return function(e){d.symbol&&d.symbol.exports?e.exportClause||J(d.symbol.exports,d.symbol,e,8388608,0):ye(e,8388608,B(e))}(r);case 248:return function(t){if(d.symbol&&d.symbol.exports){var r=248===t.kind&&e.exportAssignmentIsAlias(t)?2097152:4;J(d.symbol.exports,d.symbol,t,r,67108863)}else ye(t,2097152,B(t))}(r);case 273:return Te(r.statements),me(t),void(e.isExternalModule(t)&&Ce());case 212:if(!e.isFunctionLike(r.parent))return;case 239:return Te(r.statements);case 288:if(284!==r.parent.kind)break;case 293:var s=r,c=s.isBracketed||s.typeExpression&&280===s.typeExpression.type.kind?16777220:4;return fe(s,c,0);case 292:var u=r.fullName;if(!u||71===u.kind)he(r,524288,67901928)}}(r),r.kind>144){var o=_;_=r;var c=function(t){switch(t.kind){case 204:case 234:case 237:case 183:case 165:case 284:case 262:return 1;case 235:return 65;case 238:case 236:case 176:return 33;case 273:return 37;case 153:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 154:case 233:case 152:case 155:case 156:case 157:case 281:case 162:case 158:case 159:case 163:return 45;case 191:case 192:return 61;case 239:return 4;case 151:return t.initializer?4:0;case 268:case 219:case 220:case 221:case 240:return 2;case 212:return e.isFunctionLike(t.parent)?0:2}return 0}(r);0===c?K(r):function(t,r){var n=d,i=p,a=f;1&r?(192!==t.kind&&(p=d),d=f=t,32&r&&(d.locals=e.createSymbolTable()),pe(d)):2&r&&((f=t).locals=void 0);if(4&r){var o=y,s=h,c=v,u=b,l=D,_=T,m=16&r&&!e.hasModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);m||(y={flags:2},144&r&&(y.container=t)),b=m||154===t.kind?Y():void 0,h=void 0,v=void 0,D=void 0,T=!1,K(t),t.flags&=-1409,!(1&y.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=128,T&&(t.flags|=256)),273===t.kind&&(t.flags|=C),b&&(ee(b,y),y=ae(b),154===t.kind&&(t.returnFlowNode=y)),m||(y=o),h=s,v=c,b=u,D=l,T=_}else 64&r?(g=!1,K(t),t.flags=g?64|t.flags:-65&t.flags):K(t);d=n,p=i,f=a}(r,c),_=o}else P||0!=(536870912&r.transformFlags)||(I|=s(r,0));E=n}}function Te(r){if(!E)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))return;if(o=a,void 0,'"use strict"'===(s=e.getSourceTextOfNodeFromSourceFile(t,o.expression))||"'use strict'"===s)return void(E=!0)}var o,s}function Ce(){ye(t,512,'"'+e.removeFileExtension(t.fileName)+'"')}function Ee(e){t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,t.externalModuleIndicator||Ce())}function Ne(t){Ee(t);var r=t.left,n=Me(r.expression,function(t,r){if(r){var n=e.getJSInitializerSymbol(r);return R(n,t,67110400),n}});n&&J(n.exports,n,r,1048580,0)}function Ae(t){e.Debug.assert(e.isInJavaScriptFile(t));var r=e.getThisContainer(t,!1);switch(r.kind){case 233:case 191:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&58===r.parent.operatorToken.kind){var i=r.parent.left;e.isPropertyAccessEntityNameExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=Fe(i.expression.expression,p))}n&&(n.members=n.members||e.createSymbolTable(),J(n.members,n,t,4,0));break;case 154:case 151:case 153:case 155:case 156:var a=r.parent,o=e.hasModifier(r,32)?a.symbol.exports:a.symbol.members;J(o,a.symbol,t,4,0,!0);break;case 273:break;default:e.Debug.fail(e.Debug.showSyntaxKind(r))}}function Pe(e,t){var r=e.expression,n=r.expression;e.parent=t,n.parent=r,r.parent=e,Oe(n,e,!0)}function we(e){e.expression.parent=e,Oe(e.expression,e,!1)}function Fe(t,r){return e.getJSInitializerSymbol(Ie(t,r))}function Oe(t,r,n){var i=Fe(t),a=e.isBinaryExpression(r.parent)?273===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(r.parent).parent.kind&&!!e.getJavascriptInitializer(e.getInitializerOfBinaryExpression(r.parent),e.isPrototypeAccess(r.parent.left)):273===r.parent.parent.kind;if(!n&&(!i||!(1920&i.flags))&&a){Me(r.expression,function(e,t){return t?(R(t,e,67110400),t):i=J(i?i.exports:d.locals,i,e,67110400,106639)})}if(i&&5168&i.flags){var o=n?i.members||(i.members=e.createSymbolTable()):i.exports||(i.exports=e.createSymbolTable()),s=a?67108864:0,c=e.isFunctionLikeDeclaration(e.getAssignedJavascriptInitializer(r)),u=(c?8192:4)|s,l=(c?67208127:0)&~s;J(o,i,r,u,l)}}function Ie(t,r){if(void 0===r&&(r=d),e.isIdentifier(t))return o(r,t.escapedText);var n=e.getJSInitializerSymbol(Ie(t.expression));return n&&n.exports&&n.exports.get(t.name.escapedText)}function Me(r,n){if(i(t,r))return t.symbol;if(e.isIdentifier(r))return n(r,Ie(r));var a=e.getJSInitializerSymbol(Me(r.expression,n));return e.Debug.assert(!!a&&!!a.exports),n(r.name,a.exports.get(r.name.escapedText))}function Le(t){E&&be(t,t.name),e.isBindingPattern(t.name)||(e.isBlockOrCatchScoped(t)?function(e){he(e,2,67216319)}(t):e.isParameterDeclaration(t)?fe(t,1,67216319):fe(t,1,67216318))}function Re(r,n,i){return t.isDeclarationFile||2097152&r.flags||!e.isAsyncFunction(r)||(C|=1024),y&&e.isObjectLiteralOrClassExpressionMethod(r)&&(r.flowNode=y),e.hasDynamicName(r)?ye(r,n,"__computed"):fe(r,n,i)}}();function i(t,r){return e.isExportsIdentifier(r)||e.isModuleExportsPropertyAccessExpression(r)||e.isIdentifier(r)&&a(t,r)}function a(t,r){var n=o(t,r.escapedText);return n&&n.valueDeclaration&&e.isVariableDeclaration(n.valueDeclaration)&&n.valueDeclaration.initializer&&function t(r,n){return i(r,n)||e.isAssignmentExpression(n,!0)&&(t(r,n.left)||t(r,n.right))}(t,n.valueDeclaration.initializer)}function o(e,t){var r=e.locals&&e.locals.get(t);return r?r.exportSymbol||r:e.symbol&&e.symbol.exports&&e.symbol.exports.get(t)}function s(t,r){var n=t.kind;switch(n){case 186:return function(e,t){var r=t,n=e.expression;e.typeArguments&&(r|=3);(524288&t||402653184&n.transformFlags)&&(r|=192,268435456&n.transformFlags&&(r|=16384));91===n.kind&&(r|=67108864,16384&t&&(r|=32768));return e.transformFlags=536870912|r,-940049730&r}(t,r);case 187:return function(e,t){var r=t;e.typeArguments&&(r|=3);524288&t&&(r|=192);return e.transformFlags=536870912|r,-940049730&r}(t,r);case 238:return function(t,r){var n=3;0==(2&e.getModifierFlags(t))&&(n|=r);return t.transformFlags=536870912|n,-977327426&n}(t,r);case 190:return function(e,t){var r=t,n=e.expression,i=n.kind,a=n.transformFlags;207!==i&&189!==i||(r|=3);1024&a&&(r|=1024);return e.transformFlags=536870912|r,-536872258&r}(t,r);case 199:return function(e,t){var r=t,n=e.operatorToken.kind,i=e.left.kind;58===n&&183===i?r|=3272:58===n&&182===i?r|=3264:40!==n&&62!==n||(r|=32);return e.transformFlags=536870912|r,-939525442&r}(t,r);case 215:return function(e,t){var r=t;1024&e.expression.transformFlags&&(r|=192);return e.transformFlags=536870912|r,-939525442&r}(t,r);case 148:return function(t,r){var n=r,i=t.name,a=t.initializer,o=t.dotDotDotToken;(t.questionToken||t.type||4096&r||e.isThisIdentifier(i))&&(n|=3);e.hasModifier(t,92)&&(n|=262147);1048576&r&&(n|=8);(8388608&r||a||o)&&(n|=131264);return t.transformFlags=536870912|n,-939525442&n}(t,r);case 192:return function(t,r){var n=192|r;(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(n|=3);e.hasModifier(t,256)&&(n|=16);1048576&r&&(n|=8);16384&r&&(n|=32768);return t.transformFlags=536870912|n,-1003902274&n}(t,r);case 191:return function(t,r){var n=r;(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(n|=3);e.hasModifier(t,256)&&(n|=t.asteriskToken?8:16);1048576&r&&(n|=8);163840&r&&(n|=192);t.asteriskToken&&(n|=768);return t.transformFlags=536870912|n,-1003935042&n}(t,r);case 233:return function(t,r){var n,i=e.getModifierFlags(t);!t.body||2&i?n=3:(n=33554432|r,(2270&i||t.typeParameters||t.type)&&(n|=3),256&i&&(n|=t.asteriskToken?8:16),1048576&r&&(n|=8),163840&r&&(n|=192),t.asteriskToken&&(n|=768));return t.transformFlags=536870912|n,-1003935042&n}(t,r);case 231:return function(e,t){var r=t;r|=8388800,1048576&t&&(r|=8);e.type&&(r|=3);return e.transformFlags=536870912|r,-939525442&r}(t,r);case 232:return function(e,t){var r=33554432|t;8388608&t&&(r|=192);3&e.flags&&(r|=4194496);return e.transformFlags=536870912|r,-948962626&r}(t,r);case 213:return function(t,r){var n,i=t.declarationList.transformFlags;e.hasModifier(t,2)?n=3:(n=r,8388608&i&&(n|=192));return t.transformFlags=536870912|n,-939525442&n}(t,r);case 227:return function(t,r){var n=r;4194304&r&&e.isIterationStatement(t,!0)&&(n|=192);return t.transformFlags=536870912|n,-939525442&n}(t,r);case 234:return function(t,r){var n;e.hasModifier(t,2)?n=3:(n=192|r,(274432&r||t.typeParameters)&&(n|=3),65536&r&&(n|=16384));return t.transformFlags=536870912|n,-942011714&n}(t,r);case 204:return function(e,t){var r=192|t;(274432&t||e.typeParameters)&&(r|=3);65536&t&&(r|=16384);return e.transformFlags=536870912|r,-942011714&r}(t,r);case 267:return function(t,r){var n=r;switch(t.token){case 85:n|=192;break;case 108:n|=3;break;default:e.Debug.fail("Unexpected token for heritage clause")}return t.transformFlags=536870912|n,-939525442&n}(t,r);case 268:return function(t,r){var n=r;t.variableDeclaration?e.isBindingPattern(t.variableDeclaration.name)&&(n|=192):n|=8;return t.transformFlags=536870912|n,-940574018&n}(t,r);case 206:return function(e,t){var r=192|t;e.typeArguments&&(r|=3);return e.transformFlags=536870912|r,-939525442&r}(t,r);case 154:return function(t,r){var n=r;!e.hasModifier(t,2270)&&t.body||(n|=3);1048576&r&&(n|=8);return t.transformFlags=536870912|n,-1003668802&n}(t,r);case 151:return function(e,t){var r=3|t;e.initializer&&(r|=8192);return e.transformFlags=536870912|r,-939525442&r}(t,r);case 153:return function(t,r){var n=192|r;(t.decorators||e.hasModifier(t,2270)||t.typeParameters||t.type||t.name&&e.isComputedPropertyName(t.name)||!t.body)&&(n|=3);1048576&r&&(n|=8);e.hasModifier(t,256)&&(n|=t.asteriskToken?8:16);t.asteriskToken&&(n|=768);return t.transformFlags=536870912|n,-1003668802&n}(t,r);case 155:case 156:return function(t,r){var n=r;(t.decorators||e.hasModifier(t,2270)||t.type||t.name&&e.isComputedPropertyName(t.name)||!t.body)&&(n|=3);1048576&r&&(n|=8);return t.transformFlags=536870912|n,-1003668802&n}(t,r);case 242:return function(t,r){var n=r;e.isExternalModuleImportEqualsDeclaration(t)||(n|=3);return t.transformFlags=536870912|n,-939525442&n}(t,r);case 184:return function(e,t){var r=t;134217728&r&&(r^=134217728,r|=268435456);return e.transformFlags=536870912|r,-671089986&r}(t,r);case 185:return function(e,t){var r=t;134217728&e.expression.transformFlags&&(r&=-134217729,r|=268435456);return e.transformFlags=536870912|r,-671089986&r}(t,r);default:return function(e,t,r){var n=r,i=939525441;switch(t){case 120:case 196:n|=24;break;case 189:case 207:case 296:n|=3,i=536872257;break;case 114:case 112:case 113:case 117:case 124:case 76:case 237:case 272:case 208:case 132:n|=3;break;case 254:case 255:case 256:case 10:case 257:case 258:case 259:case 260:case 261:case 262:case 263:case 264:n|=4;break;case 13:case 14:case 15:case 16:case 201:case 188:case 270:case 115:case 209:n|=192;break;case 9:e.hasExtendedUnicodeEscape&&(n|=192);break;case 8:384&e.numericLiteralFlags&&(n|=192);break;case 221:e.awaitModifier&&(n|=8),n|=192;break;case 202:n|=16777416;break;case 119:case 134:case 131:case 135:case 137:case 122:case 138:case 105:case 147:case 150:case 152:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 235:case 236:case 173:case 174:case 175:case 176:case 177:case 241:n=3,i=-3;break;case 146:n|=2097152,16384&r&&(n|=65536);break;case 203:n|=524480;break;case 271:n|=1048584;break;case 97:n|=134217920,i=536872257;break;case 99:n|=16384;break;case 179:n|=8388800,524288&r&&(n|=1048584),i=940049729;break;case 180:n|=8388800,i=940049729;break;case 181:n|=192,e.dotDotDotToken&&(n|=524288);break;case 149:n|=4099;break;case 183:i=942740801,2097152&r&&(n|=192),65536&r&&(n|=16384),1048576&r&&(n|=8);break;case 182:case 187:i=940049729,524288&r&&(n|=192);break;case 217:case 218:case 219:case 220:4194304&r&&(n|=192);break;case 273:32768&r&&(n|=192);break;case 224:case 222:case 223:n|=33554432}return e.transformFlags=536870912|n,n&~i}(t,n,r)}}function c(e){if(e>=160&&e<=178)return-3;switch(e){case 186:case 187:case 182:return 940049729;case 238:return 977327425;case 148:return 939525441;case 192:return 1003902273;case 191:case 233:return 1003935041;case 232:return 948962625;case 234:case 204:return 942011713;case 154:return 1003668801;case 153:case 155:case 156:return 1003668801;case 119:case 134:case 131:case 137:case 135:case 122:case 138:case 105:case 147:case 150:case 152:case 157:case 158:case 159:case 235:case 236:return-3;case 183:return 942740801;case 268:return 940574017;case 179:case 180:return 940049729;case 189:case 207:case 296:case 190:case 97:return 536872257;case 184:case 185:return 671089985;default:return 939525441}}function u(t,r){r.parent=t,e.forEachChild(r,function(e){return u(r,e)})}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),n(t,r),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=i,e.computeTransformFlagsForNode=s,e.getTransformFlagsSubtreeExclusions=c}(o||(o={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,u,l){return function(_){void 0===_&&(_=function(){return!0});var d=[],p=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}},walkSymbol:function(t){try{return y(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}}};function f(t){if(t&&!d[t.id]){d[t.id]=t;var r=y(t.symbol);if(!r){if(65536&t.flags){var n=t,a=n.objectFlags;4&a&&function(t){f(t.target),e.forEach(t.typeArguments,f)}(t),32&a&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&a&&(g(o=t),e.forEach(o.typeParameters,f),e.forEach(i(o),f),f(o.thisType)),24&a&&g(n)}var o;32768&t.flags&&function(e){f(u(e))}(t),393216&t.flags&&function(t){e.forEach(t.types,f)}(t),524288&t.flags&&function(e){f(e.type)}(t),1048576&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}}function m(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o<s.length;o++){var c=s[o];y(c)}f(t(i)),f(n(i))}function g(e){var t=c(e,0);f(t);var r=c(e,1);f(r);for(var n=a(e),i=0,o=n.callSignatures;i<o.length;i++){var s=o[i];m(s)}for(var u=0,l=n.constructSignatures;u<l.length;u++){var s=l[u];m(s)}for(var _=0,d=n.properties;_<d.length;_++){var p=d[_];y(p)}}function y(t){if(t){var r=e.getSymbolId(t);if(!p[r]){if(p[r]=t,!_(t))return!0;var n=o(t);f(n),1952&t.flags&&t.exports.forEach(y),e.forEach(t.declarations,function(e){if(e.type&&164===e.type.kind){var t=e.type,r=s(l(t.exprName));y(r)}})}}}}}}(o||(o={})),function(e){function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function r(e,t){return e.traceResolution&&void 0!==t.trace}function i(e,t){return t&&{path:t.path,extension:t.ext,packageId:e}}function a(e){return i(void 0,e)}var o;function s(t){if(t)return e.Debug.assert(e.extensionIsTypeScript(t.extension)),{fileName:t.path,packageId:t.packageId}}function c(e,t,r,n){return{resolvedModule:e&&{resolvedFileName:e.path,originalPath:t,extension:e.extension,isExternalLibraryImport:r,packageId:e.packageId},failedLookupLocations:n}}function u(r,n,i,a){return r?o("typings")||o("types"):o("main");function o(r){if(e.hasProperty(n,r)){var o=n[r];if(e.isString(o)){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,r,o,s),s}a.traceEnabled&&t(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_string_got_1,r,p(o))}else a.traceEnabled&&t(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,r)}}function l(e,t){try{var r=t.readFile(e);return r?JSON.parse(r):{}}catch(e){return{}}}function _(t,r){return t.typeRoots?t.typeRoots:(t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?function(t,r){if(!r.directoryExists)return[e.combinePaths(t,d)];var n;return e.forEachAncestorDirectory(e.normalizePath(t),function(t){var i=e.combinePaths(t,d);r.directoryExists(i)&&(n||(n=[])).push(i)}),n}(n,r):void 0);var n}e.trace=t,e.isTraceEnabled=r,function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.DtsOnly=2]="DtsOnly"}(o||(o={})),e.readJson=l,e.getEffectiveTypeRoots=_;var d=e.combinePaths("node_modules","@types");function f(t,r,n,i){return{getOrCreateCacheForDirectory:function(r){var a=e.toPath(r,n,i),o=t.get(a);o||(o=e.createMap(),t.set(a,o));return o},getOrCreateCacheForModuleName:function(t){if(e.isExternalModuleNameRelative(t))return;var a=r.get(t);a||(a=function(){var t=e.createMap();return{get:function(r){return t.get(e.toPath(r,n,i))},set:function(r,a){var o=e.toPath(r,n,i);if(t.has(o))return;t.set(o,a);var s=a.resolvedModule&&a.resolvedModule.resolvedFileName,c=function(t,r){if(void 0===r)return;var a=e.toPath(e.getDirectoryPath(r),n,i),o=0;for(;o<Math.min(t.length,a.length)&&t.charCodeAt(o)===a.charCodeAt(o);)o++;var s=t.lastIndexOf(e.directorySeparator,o);if(s<0)return;return t.substr(0,s)}(o,s),u=o;for(;;){var l=e.getDirectoryPath(u);if(l===u||t.has(l))break;if(t.set(l,a),(u=l)===c)break}}}}(),r.set(t,a));return a}}}function m(r,n,i,o,s,c){return e.isExternalModuleNameRelative(n)?function(r,n,i,a,o,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&t(s.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var c,u,l=e.normalizePath(e.combinePaths(i,n)),_=0,d=s.compilerOptions.rootDirs;_<d.length;_++){var p=d[_],f=e.normalizePath(p);e.endsWith(f,e.directorySeparator)||(f+=e.directorySeparator);var m=e.startsWith(l,f)&&(void 0===u||u.length<f.length);s.traceEnabled&&t(s.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,f,l,m),m&&(u=f,c=p)}if(u){s.traceEnabled&&t(s.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,l,u);var g=l.substr(u.length);s.traceEnabled&&t(s.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,u,l);var y=a(r,l,o,!k(i,s.host),s);if(y)return y;s.traceEnabled&&t(s.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var h=0,v=s.compilerOptions.rootDirs;h<v.length;h++){var p=v[h];if(p!==c){var b=e.combinePaths(e.normalizePath(p),g);s.traceEnabled&&t(s.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,p,b);var x=e.getDirectoryPath(b),S=a(r,b,o,!k(x,s.host),s);if(S)return S}}s.traceEnabled&&t(s.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(r,n,i,o,s,c):function(r,n,i,o,s){if(!s.compilerOptions.baseUrl)return;s.traceEnabled&&t(s.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s.compilerOptions.baseUrl,n);var c;s.compilerOptions.paths&&(s.traceEnabled&&t(s.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n),c=e.matchPatternOrExact(e.getOwnKeys(s.compilerOptions.paths),n));if(c){var u=e.isString(c)?void 0:e.matchedText(c,n),l=e.isString(c)?c:e.patternText(c);return s.traceEnabled&&t(s.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,l),e.forEach(s.compilerOptions.paths[l],function(n){var c=u?n.replace("*",u):n,l=e.normalizePath(e.combinePaths(s.compilerOptions.baseUrl,c));s.traceEnabled&&t(s.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,c);var _=e.tryGetExtensionFromPath(l);if(void 0!==_){var d=E(l,o,!1,s);if(void 0!==d)return a({path:d,ext:_})}return i(r,l,o,!k(e.getDirectoryPath(l),s.host),s)})}var _=e.normalizePath(e.combinePaths(s.compilerOptions.baseUrl,n));return s.traceEnabled&&t(s.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,s.compilerOptions.baseUrl,_),i(r,_,o,!k(e.getDirectoryPath(_),s.host),s)}(r,n,o,s,c)}function g(t,r,n,i,a){return y(t,e.getDirectoryPath(r),n,i,a,!1)}function y(i,a,s,u,l,_){var d=r(s,u),p=[],f={compilerOptions:s,host:u,traceEnabled:d},g=_?b(o.JavaScript):b(o.TypeScript)||b(o.JavaScript);if(g&&g.value){var y=g.value;return c(y.resolved,y.originalPath,y.isExternalLibraryImport,p)}return{resolvedModule:void 0,failedLookupLocations:p};function b(r){var c=m(r,i,a,function(e,t,r,n,i){return v(e,t,r,n,i,!0)},p,f);if(c)return K({resolved:c,isExternalLibraryImport:!1});if(e.isExternalModuleNameRelative(i)){var _=e.normalizePathAndParts(e.combinePaths(a,i)),g=_.path,y=_.parts,b=v(r,g,p,!1,f,!0);return b&&K({resolved:b,isExternalLibraryImport:e.contains(y,"node_modules")})}d&&t(u,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,i,o[r]);var x=I(r,i,a,p,f,l);if(x){var S=x.value,k=void 0;if(!s.preserveSymlinks&&S){k=S.path;var D=h(x.value.path,u,d);D===k&&(k=void 0),S=n({},S,{path:D})}return{value:S&&{resolved:S,originalPath:k,isExternalLibraryImport:!0}}}}}function h(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),r+" linked to nonexistent file "+a),a}function v(r,n,a,s,c,u){if(c.traceEnabled&&t(c.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,n,o[r]),!e.pathEndsWithDirectorySeparator(n)){if(!s){var l=e.getDirectoryPath(n);k(l,c.host)||(c.traceEnabled&&t(c.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),s=!0)}var _=T(r,n,a,s,c);if(_){var d=u?function(t){var r=e.normalizePath(t.path),n=r.lastIndexOf(b);if(-1===n)return;var i=n+b.length,a=x(r,i);64===r.charCodeAt(i)&&(a=x(r,a));var o=r.slice(0,a),s=e.removeExtension(r.slice(a+1),t.ext)+".d.ts";return{packageDirectory:o,subModuleName:s}}(_):void 0;return i(d&&P(d.packageDirectory,d.subModuleName,a,!1,c).packageId,_)}}s||(k(n,c.host)||(c.traceEnabled&&t(c.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),s=!0));return N(r,n,a,s,c,u)}e.resolveTypeReferenceDirective=function(i,a,c,u){var l=r(c,u),d={compilerOptions:c,host:u,traceEnabled:l},p=_(c,u);l&&(void 0===a?void 0===p?t(u,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,i):t(u,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,i,p):void 0===p?t(u,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,i,a):t(u,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,i,a,p));var f,m=[],g=function(){if(p&&p.length)return l&&t(u,e.Diagnostics.Resolving_with_primary_search_path_0,p.join(", ")),e.forEach(p,function(r){var n=e.combinePaths(r,i),a=e.getDirectoryPath(n),c=k(a,u);return!c&&l&&t(u,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),s(N(o.DtsOnly,n,m,!c,d))});l&&t(u,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),y=!0;return g||(g=function(){var r,n=a&&e.getDirectoryPath(a);if(void 0!==n){l&&t(u,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,n);var c=I(o.DtsOnly,i,n,m,d,void 0);return!(r=s(c&&c.value))&&l&&t(u,e.Diagnostics.Type_reference_directive_0_was_not_resolved,i),r}l&&t(u,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),y=!1),g&&(c.preserveSymlinks||(g=n({},g,{fileName:h(g.fileName,u,l)})),l&&t(u,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,i,g.fileName,y),f={primary:y,resolvedFileName:g.fileName,packageId:g.packageId}),{resolvedTypeReferenceDirective:f,failedLookupLocations:m}},e.getAutomaticTypeDirectiveNames=function(t,r){if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var i=_(t,r);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(r.directoryExists(s))for(var c=0,u=r.getDirectories(s);c<u.length;c++){var d=u[c],p=e.normalizePath(d),f=w(e.combinePaths(s,p));r.fileExists(f)&&null===l(f,r).typings||n.push(e.getBaseFileName(p))}}}return n},e.createModuleResolutionCache=function(t,r){return f(e.createMap(),e.createMap(),t,r)},e.createModuleResolutionCacheWithMaps=f,e.resolveModuleNameFromCache=function(t,r,n){var i=e.getDirectoryPath(r),a=n&&n.getOrCreateCacheForDirectory(i);return a&&a.get(t)},e.resolveModuleName=function(n,i,a,o,s){var c=r(a,o);c&&t(o,e.Diagnostics.Resolving_module_0_from_1,n,i);var u=e.getDirectoryPath(i),l=s&&s.getOrCreateCacheForDirectory(u),_=l&&l.get(n);if(_)c&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,u);else{var d=a.moduleResolution;switch(void 0===d?(d=e.getEmitModuleKind(a)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,c&&t(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[d])):c&&t(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[d]),d){case e.ModuleResolutionKind.NodeJs:_=g(n,i,a,o,s);break;case e.ModuleResolutionKind.Classic:_=z(n,i,a,o,s);break;default:e.Debug.fail("Unexpected moduleResolution: "+d)}if(l){l.set(n,_);var p=s.getOrCreateCacheForModuleName(n);p&&p.set(u,_)}}return c&&(_.resolvedModule?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,n,_.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,n)),_},e.nodeModuleNameResolver=g,e.resolveJavaScriptModule=function(t,r,n){var i=y(t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,!0),a=i.resolvedModule,o=i.failedLookupLocations;if(!a)throw new Error("Could not resolve JS module '"+t+"' starting at '"+r+"'. Looked in: "+o.join(", "));return a.resolvedFileName};var b="/node_modules/";function x(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function S(t){return""===t?"index.d.ts":e.endsWith(t,".d.ts")?t:e.endsWith(t,"/index")?t+".d.ts":t+"/index.d.ts"}function k(e,t){return!t.directoryExists||t.directoryExists(e)}function D(e,t,r,n,i){return a(T(e,t,r,n,i))}function T(r,n,i,a,o){var s=C(n,r,i,a,o);if(s)return s;if(e.hasJavaScriptFileExtension(n)){var c=e.removeFileExtension(n);if(o.traceEnabled){var u=n.substring(c.length);t(o.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,u)}return C(c,r,i,a,o)}}function C(t,r,n,i,a){if(!i){var s=e.getDirectoryPath(t);s&&(i=!k(s,a.host))}switch(r){case o.DtsOnly:return c(".d.ts");case o.TypeScript:return c(".ts")||c(".tsx")||c(".d.ts");case o.JavaScript:return c(".js")||c(".jsx")}function c(e){var r=E(t+e,n,i,a);return r&&{path:r,ext:e}}}function E(r,n,i,a){if(!i){if(a.host.fileExists(r))return a.traceEnabled&&t(a.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;a.traceEnabled&&t(a.host,e.Diagnostics.File_0_does_not_exist,r)}n.push(r)}function N(e,t,r,n,a,o){void 0===o&&(o=!0);var s=o?P(t,"",r,n,a):{packageJsonContent:void 0,packageId:void 0},c=s.packageJsonContent;return i(s.packageId,A(e,t,r,n,a,c))}function A(r,n,i,a,s,c){var l=c&&function(r,n,i,a,s){var c=u(n!==o.JavaScript,r,i,s);if(!c)return;var l=!k(e.getDirectoryPath(c),s.host),_=E(c,a,l,s);if(_){var d=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case o.JavaScript:return".js"===t||".jsx"===t;case o.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case o.DtsOnly:return".d.ts"===t}}(t,n)?{path:r,ext:n}:void 0}(n,_);if(d)return d;s.traceEnabled&&t(s.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,_)}var p=v(n===o.DtsOnly?o.TypeScript:n,c,a,l,s,!1);if(p)return e.Debug.assert(void 0===p.packageId),{path:p.path,ext:p.extension}}(c,r,n,i,s);if(l)return l;var _=!a&&k(n,s.host);return T(r,e.combinePaths(n,"index"),i,!_,s)}function P(r,n,i,a,o){var s=o.host,c=o.traceEnabled,_=!a&&k(r,s),d=w(r);if(_&&s.fileExists(d)){var p=l(d,s);if(""===n){var f=u(!0,p,r,o);if("string"==typeof f)n=S(f.substring(r.length+1));else{var m=u(!1,p,r,o);n="string"==typeof m?e.removeExtension(e.removeExtension(m.substring(r.length+1),".js"),".jsx")+".d.ts":"index.d.ts"}}e.endsWith(n,".d.ts")||(n=S(n));var g="string"==typeof p.name&&"string"==typeof p.version?{name:p.name,subModuleName:n,version:p.version}:void 0;return c&&(g?t(s,e.Diagnostics.Found_package_json_at_0_Package_ID_is_1,d,e.packageIdToString(g)):t(s,e.Diagnostics.Found_package_json_at_0,d)),{found:!0,packageJsonContent:p,packageId:g}}return _&&c&&t(s,e.Diagnostics.File_0_does_not_exist,d),i.push(d),{found:!1,packageJsonContent:void 0,packageId:void 0}}function w(t){return e.combinePaths(t,"package.json")}function F(t,r,n,a,o,s){var c,u,l=e.normalizePath(e.combinePaths(n,r)),_=P(l,"",o,!a,s);if(_.found)c=_.packageJsonContent,u=_.packageId;else{var d=O(r),p=d.packageName,f=d.rest;if(""!==f)u=P(e.combinePaths(n,p),f,o,!a,s).packageId}return i(u,T(t,l,o,!a,s)||A(t,l,o,!a,s,c))}function O(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function I(e,t,r,n,i,a){return M(e,t,r,n,i,!1,a)}function M(t,r,n,i,a,o,s){var c=s&&s.getOrCreateCacheForModuleName(r);return e.forEachAncestorDirectory(e.normalizeSlashes(n),function(n){if("node_modules"!==e.getBaseFileName(n)){var s=J(c,r,n,a.traceEnabled,a.host,i);return s||K(L(t,r,n,i,a,o))}})}function L(r,n,i,a,s,c){void 0===c&&(c=!1);var u=e.combinePaths(i,"node_modules"),l=k(u,s.host);!l&&s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u);var _=c?void 0:F(r,n,u,l,a,s);if(_)return _;if(r!==o.JavaScript){var d=e.combinePaths(u,"@types"),p=l;return l&&!k(d,s.host)&&(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),p=!1),F(o.DtsOnly,function(r,n){var i=B(r);n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i);return i}(n,s),d,p,a,s)}}e.directoryProbablyExists=k,e.getPackageName=O;var R="__";function B(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,R);if(r!==t)return r.slice(1)}return t}function j(t){return e.stringContains(t,R)?"@"+t.replace(R,e.directorySeparator):t}function J(r,n,i,a,o,s){var c=r&&r.get(i);if(c)return a&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),s.push.apply(s,c.failedLookupLocations),{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId}}}function z(t,n,i,a,s){var u=r(i,a),l={compilerOptions:i,host:a,traceEnabled:u},_=[],d=e.getDirectoryPath(n),p=f(o.TypeScript)||f(o.JavaScript);return c(p&&p.value,void 0,!1,_);function f(r){var n=m(r,t,d,D,_,l);if(n)return{value:n};var i=s&&s.getOrCreateCacheForModuleName(t);if(e.isExternalModuleNameRelative(t)){var c=e.normalizePath(e.combinePaths(d,t));return K(D(r,c,_,!1,l))}var p=e.forEachAncestorDirectory(d,function(n){var o=J(i,t,n,u,a,_);if(o)return o;var s=e.normalizePath(e.combinePaths(n,t));return K(D(r,s,_,!1,l))});return p||(r===o.TypeScript?function(e,t,r,n){return M(o.DtsOnly,e,t,r,n,!0,void 0)}(t,d,_,l):void 0)}}function K(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+B(e)},e.getMangledNameForScopedPackage=B,e.getPackageNameFromAtTypesDirectory=function(t){var r=e.removePrefix(t,"@types/");return r!==t?j(r):t},e.getUnmangledNameForScopedPackage=j,e.classicNameResolver=z,e.loadModuleFromGlobalCache=function(n,i,a,s,u){var l=r(a,s);l&&t(s,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,u);var _={compilerOptions:a,host:s,traceEnabled:l},d=[];return c(L(o.DtsOnly,n,u,d,_),void 0,!0,d)}}(o||(o={})),function(e){var t,r=/^".+"$/,i=1,a=1,o=1,s=1;function c(e){return e.id||(e.id=a,a++),e.id}function u(e){return e.id||(e.id=i,i++),e.id}function l(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function _(t){switch(t.parent.kind){case 247:case 251:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function d(e){switch(e.kind){case 244:case 242:case 245:case 247:return!0;case 71:return 247===e.parent.kind;default:return!1}}e.getNodeId=c,e.getSymbolId=u,e.isInstantiatedModule=l,e.createTypeChecker=function(i,a){var f,m,g,y=e.objectAllocator.getSymbolConstructor(),h=e.objectAllocator.getTypeConstructor(),v=e.objectAllocator.getSignatureConstructor(),b=0,x=0,S=0,k=0,D=e.createSymbolTable(),T=e.identity,C=i.getCompilerOptions(),E=e.getEmitScriptTarget(C),N=e.getEmitModuleKind(C),A=e.getAllowSyntheticDefaultImports(C),P=e.getStrictOptionValue(C,"strictNullChecks"),w=e.getStrictOptionValue(C,"strictFunctionTypes"),F=e.getStrictOptionValue(C,"strictPropertyInitialization"),O=e.getStrictOptionValue(C,"noImplicitAny"),I=e.getStrictOptionValue(C,"noImplicitThis"),M=function(){var t,r=i.getResolvedTypeReferenceDirectives();return r&&(t=e.createMap(),r.forEach(function(e,r){if(e&&e.resolvedFileName){var n=i.getSourceFile(e.resolvedFileName);t.set(n.path,r)}})),{getReferencedExportContainer:og,getReferencedImportDeclaration:sg,getReferencedDeclarationWithCollidingName:ug,isDeclarationWithCollidingName:lg,isValueAliasDeclaration:function(t){return!(t=e.getParseTreeNode(t))||_g(t)},hasGlobalName:Cg,isReferencedAliasDeclaration:function(t,r){return!(t=e.getParseTreeNode(t))||function t(r,n){if(e.isAliasSymbolDeclaration(r)){var i=cn(r);if(i&&vr(i).referenced)return!0;var a=vr(i).target;if(a&&1&e.getModifierFlags(r)&&67216319&a.flags)return!0}return!!n&&e.forEachChild(r,function(e){return t(e,n)})}(t,r)},getNodeCheckFlags:function(t){return(t=e.getParseTreeNode(t))?hg(t):void 0},isTopLevelValueImportEqualsWithEntityName:dg,isDeclarationVisible:Bn,isImplementationOfOverload:mg,isRequiredInitializedParameter:gg,isOptionalUninitializedParameterProperty:yg,createTypeOfDeclaration:kg,createReturnTypeOfSignatureDeclaration:Dg,createTypeOfExpression:Tg,createLiteralConstValue:Pg,isSymbolAccessible:Tn,isEntityNameVisible:Nn,getConstantValue:function(t){return(t=e.getParseTreeNode(t,bg))?xg(t):void 0},collectLinkedAliases:jn,getReferencedValueDeclaration:Ng,getTypeReferenceSerializationKind:Sg,isOptionalParameter:eo,moduleExportsSomeValue:ag,isArgumentsLocalBinding:ig,getExternalModuleFileFromDeclaration:wg,getTypeReferenceDirectivesForEntityName:function(e){if(t){var r=67903464;(71===e.kind&&al(e)||184===e.kind&&!function(e){return e.parent&&206===e.parent.kind&&e.parent.parent&&267===e.parent.parent.kind}(e))&&(r=68264895);var i=Wr(e,r,!0);return i&&i!==X?n(i,r):void 0}},getTypeReferenceDirectivesForSymbol:n,isLiteralConstDeclaration:Ag,isLateBound:function(t){var r=(t=e.getParseTreeNode(t,e.isDeclaration))&&cn(t);return!!(r&&1024&e.getCheckFlags(r))},getJsxFactoryEntity:function(t){return t?(cr(t),e.getSourceFileOfNode(t).localJsxFactory||zt):zt}};function n(r,n){if(t&&function(r){if(!r.declarations)return!1;for(var n=r;;){var i=un(n);if(!i)break;n=i}if(n.valueDeclaration&&273===n.valueDeclaration.kind&&512&n.flags)return!1;for(var a=0,o=r.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(t.has(c.path))return!0}return!1}(r)){for(var i,a=0,o=r.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&n){var c=e.getSourceFileOfNode(s),u=t.get(c.path);if(!u)return;(i||(i=[])).push(u)}}return i}}}(),L=function(){return{typeToTypeNode:function(r,i,a,o){e.Debug.assert(void 0===i||0==(8&i.flags));var s=t(i,a,o),c=n(r,s),u=s.encounteredError?void 0:c;return u},indexInfoToIndexSignatureDeclaration:function(r,n,i,o,s){e.Debug.assert(void 0===i||0==(8&i.flags));var c=t(i,o,s),u=a(r,n,c),l=c.encounteredError?void 0:u;return l},signatureToSignatureDeclaration:function(r,n,i,a,s){e.Debug.assert(void 0===i||0==(8&i.flags));var c=t(i,a,s),u=o(r,n,c),l=c.encounteredError?void 0:u;return l},symbolToEntityName:function(r,n,i,a,o){e.Debug.assert(void 0===i||0==(8&i.flags));var s=t(i,a,o),c=p(r,s,n,!1),u=s.encounteredError?void 0:c;return u},symbolToExpression:function(r,n,i,a,o){e.Debug.assert(void 0===i||0==(8&i.flags));var s=t(i,a,o),c=function(t,r,n){var i=u(t,r,n);return function t(n,i){var a=_(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=Rn(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0),u=e.isIdentifierStart(c,E);if(0===i||u){var l=e.setEmitFlags(e.createIdentifier(s,a),16777216);return l.symbol=o,i>0?e.createPropertyAccess(t(n,i-1),l):l}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?(d=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===c:""+ +s===s&&(d=e.createLiteral(+s)),d||((d=e.setEmitFlags(e.createIdentifier(s,a),16777216)).symbol=o),e.createElementAccess(t(n,i-1),d)}(i,i.length-1)}(r,s,n),l=s.encounteredError?void 0:c;return l},symbolToTypeParameterDeclarations:function(r,n,i,a){e.Debug.assert(void 0===n||0==(8&n.flags));var o=t(n,i,a),s=l(r,o),c=o.encounteredError?void 0:s;return c},symbolToParameterDeclaration:function(r,n,i,a){e.Debug.assert(void 0===n||0==(8&n.flags));var o=t(n,i,a),s=c(r,o),u=o.encounteredError?void 0:s;return u},typeParameterToDeclaration:function(r,n,i,a){e.Debug.assert(void 0===n||0==(8&n.flags));var o=t(n,i,a),c=s(r,o),u=o.encounteredError?void 0:c;return u}};function t(t,r,n){return{enclosingDeclaration:t,flags:r,tracker:n&&n.trackSymbol?n:{trackSymbol:e.noop},encounteredError:!1,symbolStack:void 0,inferTypeParameters:void 0}}function n(t,r){var c=8388608&r.flags;if(r.flags&=-8388609,t){if(1&t.flags)return e.createKeywordTypeNode(119);if(2&t.flags)return e.createKeywordTypeNode(137);if(4&t.flags)return e.createKeywordTypeNode(134);if(8&t.flags)return e.createKeywordTypeNode(122);if(256&t.flags&&!(131072&t.flags)){var u=un(t.symbol),l=p(u,r,67901928,!1),_=Ri(u)===t?l:e.createQualifiedName(l,e.symbolName(t.symbol));return e.createTypeReferenceNode(_,void 0)}if(272&t.flags){var f=p(t.symbol,r,67901928,!1);return e.createTypeReferenceNode(f,void 0)}if(32&t.flags)return e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(t.value),16777216));if(64&t.flags)return e.createLiteralTypeNode(e.createLiteral(t.value));if(128&t.flags)return"true"===t.intrinsicName?e.createTrue():e.createFalse();if(1024&t.flags){if(!(1048576&r.flags)){if(Dn(t.symbol,r.enclosingDeclaration))return d(t.symbol,r,67216319);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return e.createTypeOperatorNode(141,e.createKeywordTypeNode(138))}if(2048&t.flags)return e.createKeywordTypeNode(105);if(4096&t.flags)return e.createKeywordTypeNode(140);if(8192&t.flags)return e.createKeywordTypeNode(95);if(16384&t.flags)return e.createKeywordTypeNode(131);if(512&t.flags)return e.createKeywordTypeNode(138);if(134217728&t.flags)return e.createKeywordTypeNode(135);if(32768&t.flags&&t.isThisType)return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),e.createThis();var m,g,y=e.getObjectFlags(t);if(4&y)return e.Debug.assert(!!(65536&t.flags)),function(t){var a=t.typeArguments||e.emptyArray;if(t.target===Pe){if(2&r.flags){var o=n(a[0],r);return e.createTypeReferenceNode("Array",[o])}var s=n(a[0],r);return e.createArrayTypeNode(s)}if(8&t.target.objectFlags){if(a.length>0){var c=i(a.slice(0,wo(t)),r);if(c&&c.length>0)return e.createTupleTypeNode(c)}return r.encounteredError||524288&r.flags?e.createTupleTypeNode([]):void(r.encounteredError=!0)}if(2048&r.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!Dn(t.symbol,r.enclosingDeclaration))return P(t);var u=t.target.outerTypeParameters,l=0,_=void 0;if(u)for(var d=u.length;l<d;){var p=l,f=Co(u[l]);do{l++}while(l<d&&Co(u[l])===f);if(!e.rangeEquals(u,a,p,l)){var m=i(a.slice(p,l),r),g=m&&e.createNodeArray(m),y=F(f);(71===y.kind?y:y.right).typeArguments=g,_?(e.Debug.assert(!_.right),_=O(_,y),_=e.createQualifiedName(_,void 0)):_=e.createQualifiedName(y,void 0)}}var h=void 0,v=F(t.symbol);_?(e.Debug.assert(!_.right),_=O(_,v),h=_):h=v;var b=void 0;if(a.length>0){var x=(t.target.typeParameters||e.emptyArray).length;b=i(a.slice(l,x),r)}if(b){var S=71===h.kind?h:h.right;S.typeArguments=void 0}return e.createTypeReferenceNode(h,b)}(t);if(32768&t.flags||3&y){if(32768&t.flags&&e.contains(r.inferTypeParameters,t))return e.createInferTypeNode(e.createTypeParameterDeclaration(Rn(t.symbol)));var f=t.symbol?p(t.symbol,r,67901928,!1):e.createIdentifier("?");return e.createTypeReferenceNode(f,void 0)}if(!c&&t.aliasSymbol&&(16384&r.flags||(m=t.aliasSymbol,g=r.enclosingDeclaration,0===Tn(m,g,67901928,!1).accessibility))){var f=F(t.aliasSymbol),h=i(t.aliasTypeArguments,r);return e.createTypeReferenceNode(f,h)}if(393216&t.flags){var v=131072&t.flags?function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(12288&i.flags)){if(384&i.flags){var a=128&i.flags?ue:Oi(i);if(131072&a.flags){var o=a.types.length;if(n+o<=e.length&&e[n+o-1]===a.types[o-1]){t.push(a),n+=o-1;continue}}}t.push(i)}}return 8192&r&&t.push(ne),4096&r&&t.push(te),t||e}(t.types):t.types,b=i(v,r);if(b&&b.length>0){var x=e.createUnionOrIntersectionTypeNode(131072&t.flags?168:169,b);return x}r.encounteredError||262144&r.flags||(r.encounteredError=!0)}else{if(48&y)return e.Debug.assert(!!(65536&t.flags)),P(t);if(524288&t.flags){var S=t.type,k=n(S,r);return e.createTypeOperatorNode(k)}if(1048576&t.flags){var D=n(t.objectType,r),k=n(t.indexType,r);return e.createIndexedAccessTypeNode(D,k)}if(2097152&t.flags){var T=n(t.checkType,r),C=r.inferTypeParameters;r.inferTypeParameters=t.root.inferTypeParameters;var E=n(t.extendsType,r);r.inferTypeParameters=C;var N=n(Us(t),r),A=n(qs(t),r);return e.createConditionalTypeNode(T,E,N,A)}if(4194304&t.flags)return n(t.typeVariable,r);e.Debug.fail("Should be unreachable.")}}else r.encounteredError=!0;function P(t){var n=t.symbol;if(n){if(ap(n.valueDeclaration)){var i=t===cp(n)?67901928:67216319;return d(n,r,i)}if(32&n.flags&&!_i(n)&&!(204===n.valueDeclaration.kind&&2048&r.flags)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),i=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 273===e.parent.kind||239===e.parent.kind}));if(t||i)return(!!(4096&r.flags)||e.contains(r.symbolStack,n))&&(!(8&r.flags)||Dn(n,r.enclosingDeclaration))}())return d(n,r,67216319);if(e.contains(r.symbolStack,n)){var a=function(t){if(t.symbol&&2048&t.symbol.flags){var r=e.findAncestor(t.symbol.declarations[0].parent,function(e){return 172!==e.kind});if(236===r.kind)return cn(r)}}(t);return a?d(a,r,67901928):e.createKeywordTypeNode(119)}r.symbolStack||(r.symbolStack=[]);var o=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags;if(o)return w(t);r.symbolStack.push(n);var s=w(t);return r.symbolStack.pop(),s}return w(t)}function w(t){if(xa(t))return function(t){e.Debug.assert(!!(65536&t.flags));var i=t.declaration.readonlyToken?e.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.createToken(t.declaration.questionToken.kind):void 0,o=s(fa(t),r,ma(t)),c=n(ga(t),r),u=e.createMappedTypeNode(i,o,a,c);return e.setEmitFlags(u,1)}(t);var i=Sa(t);if(!i.properties.length&&!i.stringIndexInfo&&!i.numberIndexInfo){if(!i.callSignatures.length&&!i.constructSignatures.length)return e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===i.callSignatures.length&&!i.constructSignatures.length){var c=i.callSignatures[0],u=o(c,162,r);return u}if(1===i.constructSignatures.length&&!i.callSignatures.length){var c=i.constructSignatures[0],u=o(c,163,r);return u}}var l=r.flags;r.flags|=4194304;var _=function(t){for(var i=[],s=0,c=t.callSignatures;s<c.length;s++){var u=c[s];i.push(o(u,157,r))}for(var l=0,_=t.constructSignatures;l<_.length;l++){var u=_[l];i.push(o(u,158,r))}if(t.stringIndexInfo){var d=2048&t.objectFlags?ko(Y,t.stringIndexInfo.isReadonly,t.stringIndexInfo.declaration):t.stringIndexInfo;i.push(a(d,0,r))}t.numberIndexInfo&&i.push(a(t.numberIndexInfo,1,r));var f=t.properties;if(!f)return i;for(var m=0,g=f;m<g.length;m++){var y=g[m];if(2048&r.flags){if(4194304&y.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(y)&&r.tracker.reportPrivateInBaseOfClassExpression&&r.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(y.escapedName))}var h=2048&e.getCheckFlags(y)&&33554432&r.flags?Y:fi(y),v=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,1024&e.getCheckFlags(y)){var b=e.firstOrUndefined(y.declarations),x=Gi(b)&&Wr(b.name.expression,67216319);x&&r.tracker.trackSymbol&&r.tracker.trackSymbol(x,v,67216319)}var S=p(y,r,67216319,!0);r.enclosingDeclaration=v;var k=16777216&y.flags?e.createToken(55):void 0;if(8208&y.flags&&!ka(h).length)for(var D=qa(h,0),T=0,C=D;T<C.length;T++){var u=C[T],E=o(u,152,r);E.name=S,E.questionToken=k,y.valueDeclaration&&e.setCommentRange(E,y.valueDeclaration),i.push(E)}else{var N=r.flags;r.flags|=2048&e.getCheckFlags(y)?33554432:0;var A=h?n(h,r):e.createKeywordTypeNode(119);r.flags=N;var P=Fp(y)?[e.createToken(132)]:void 0,w=e.createPropertySignature(P,S,k,A,void 0);y.valueDeclaration&&e.setCommentRange(w,y.valueDeclaration),i.push(w)}}return i.length?i:void 0}(i);r.flags=l;var d=e.createTypeLiteralNode(_);return e.setEmitFlags(d,1024&r.flags?0:1)}function F(t){var n=32&t.flags||!gn(t.escapedName)?p(t,r,67901928,!1):e.createIdentifier("");return n}function O(t,r){if(e.Debug.assert(void 0===t.right),71===r.kind)return t.right=r,t;for(var n=r;71!==n.left.kind;)n=n.left;return t.right=n.left,n.left=t,r}}function i(t,r){if(e.some(t)){for(var i=[],a=0,o=t;a<o.length;a++){var s=o[a],c=n(s,r);c&&i.push(c)}return i}}function a(t,r,i){var a=e.getNameFromIndexInfo(t)||"x",o=e.createKeywordTypeNode(0===r?137:134),s=e.createParameter(void 0,void 0,void 0,a,void 0,o,void 0),c=t.type?n(t.type,i):n(Y,i);return t.type||2097152&i.flags||(i.encounteredError=!0),e.createIndexSignature(void 0,t.isReadonly?[e.createToken(132)]:void 0,[s],c)}function o(t,r,i){var a,o;32&i.flags&&t.target&&t.mapper&&t.target.typeParameters?o=t.target.typeParameters.map(function(e){return n(Dc(e,t.mapper),i)}):a=t.typeParameters&&t.typeParameters.map(function(e){return s(e,i)});var u,l=t.parameters.map(function(e){return c(e,i,154===r)});if(t.thisParameter){var _=c(t.thisParameter,i);l.unshift(_)}var d=lo(t);if(d){var p=1===d.kind?e.setEmitFlags(e.createIdentifier(d.parameterName),16777216):e.createThisTypeNode(),f=n(d.type,i);u=e.createTypePredicateNode(p,f)}else{var m=_o(t);u=m&&n(m,i)}return 256&i.flags?u&&119===u.kind&&(u=void 0):u||(u=e.createKeywordTypeNode(119)),e.createSignatureDeclaration(r,a,l,u,o)}function s(t,r,i){void 0===i&&(i=To(t));var a=r.flags;r.flags&=-513;var o=p(t.symbol,r,67901928,!0),s=i&&n(i,r),c=Ra(t),u=c&&n(c,r);return r.flags=a,e.createTypeParameterDeclaration(o,s,u)}function c(t,r,i){var a=e.getDeclarationOfKind(t,148);e.Debug.assert(!!a||dr(t)&&!!t.isRestParameter);var o=fi(t);a&&gg(a)&&(o=Cu(o));var s=n(o,r),c=!(8192&r.flags)&&i&&a&&a.modifiers&&a.modifiers.map(e.getSynthesizedClone),u=!a||e.isRestParameter(a)?e.createToken(24):void 0,l=a&&a.name?71===a.name.kind?e.setEmitFlags(e.getSynthesizedClone(a.name),16777216):function t(r){var n=e.visitEachChild(r,t,e.nullTransformationContext,void 0,t),i=e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n);return 181===i.kind&&(i.initializer=void 0),e.setEmitFlags(i,16777217)}(a.name):e.symbolName(t),_=a&&eo(a)?e.createToken(55):void 0,d=e.createParameter(void 0,c,u,l,_,s,void 0);return d}function u(t,r,n){var i;r.tracker.trackSymbol(t,r.enclosingDeclaration,n);var a=262144&t.flags;return!a&&(r.enclosingDeclaration||64&r.flags)?(i=function t(n,i,a){var o,s=Sn(n,r.enclosingDeclaration,i,!!(128&r.flags));if(!s||kn(s[0],r.enclosingDeclaration,1===s.length?i:xn(i))){var c=un(s?s[0]:n);if(c){var u=t(c,xn(i),!1);u&&(o=c,s=u.concat(s||[n]))}}return s||(!a&&(!o&&e.forEach(n.declarations,Cn)||6144&n.flags)?void 0:[n])}(t,n,!0),e.Debug.assert(i&&i.length>0)):i=[t],i}function l(t,r){var n,i=Dm(t);return 524384&i.flags&&(n=e.createNodeArray(e.map(xi(t),function(e){return s(e,r)}))),n}function _(t,r,n){e.Debug.assert(t&&0<=r&&r<t.length);var a,o=t[r];if(512&n.flags&&r<t.length-1){var s=o,c=t[r+1];if(1&e.getCheckFlags(c)){var u=function(t){return e.concatenate(bi(t),xi(t))}(2097152&s.flags?zr(s):s);a=i(e.map(u,c.mapper),n)}else a=l(o,n)}return a}function d(t,n,i){var a=u(t,n,i);n.flags|=16777216;var o=Rn(a[0],n);n.flags^=16777216;var s=67216319===i;if(r.test(o)){var c=a.length>1?p(a,a.length-1,1):void 0,l=_(a,0,n);return e.createImportTypeNode(e.createLiteralTypeNode(e.createLiteral(o.substring(1,o.length-1))),c,l,s)}var d=p(a,a.length-1,0);return s?e.createTypeQueryNode(d):e.createTypeReferenceNode(d,void 0);function p(t,r,i){var a=_(t,r,n),o=t[r];0===r&&(n.flags|=16777216);var s=Rn(o,n);0===r&&(n.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,a),16777216);return c.symbol=o,r>i?e.createQualifiedName(p(t,r-1,i),c):c}}function p(t,r,n,i){var a=u(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=_(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=Rn(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}}(),R=_r(4,"undefined");R.declarations=[];var B,j,J=_r(4,"arguments"),z={getNodeCount:function(){return e.sum(i.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(i.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(i.getSourceFiles(),"symbolCount")+x},getTypeCount:function(){return b},isUndefinedSymbol:function(e){return e===R},isArgumentsSymbol:function(e){return e===J},isUnknownSymbol:function(e){return e===X},getMergedSymbol:sn,getDiagnostics:Vm,getGlobalDiagnostics:function(){return Wm(),Bt.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,r){return(r=e.getParseTreeNode(r))?function(t,r){if(t=t.exportSymbol||t,71===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&!e.isAssignmentTarget(r))){var n=rf(r);if(ln(br(r).resolvedSymbol)===t)return n}return fi(t)}(t,r):ee},getSymbolsOfParameterPropertyDeclaration:function(t,r){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),function(t,r){var n=t.parent,i=t.parent.parent,a=Sr(n.locals,r,67216319),o=Sr(Zi(i.symbol),r,67216319);if(a&&o)return[a,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(t,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:Ri,getPropertiesOfType:Ca,getPropertyOfType:function(t,r){return Ka(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:Ha,getSignaturesOfType:qa,getIndexTypeOfType:Ga,getBaseTypes:Ni,getBaseTypeOfLiteralType:gu,getWidenedType:Mu,getTypeFromTypeNode:function(t){return(t=e.getParseTreeNode(t,e.isTypeNode))?cc(t):ee},getParameterType:hp,getReturnTypeOfSignature:_o,getNullableType:Tu,getNonNullableType:Eu,typeToTypeNode:L.typeToTypeNode,indexInfoToIndexSignatureDeclaration:L.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:L.signatureToSignatureDeclaration,symbolToEntityName:L.symbolToEntityName,symbolToExpression:L.symbolToExpression,symbolToTypeParameterDeclarations:L.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:L.symbolToParameterDeclaration,typeParameterToDeclaration:L.typeParameterToDeclaration,getSymbolsInScope:function(t,r){return(t=e.getParseTreeNode(t))?function(t,r){if(4194304&t.flags)return[];var n=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!xr(t)&&o(t.locals,r),t.kind){case 238:o(cn(t).exports,2623475&r);break;case 237:o(cn(t).exports,8&r);break;case 204:var n=t.name;n&&a(t.symbol,r);case 234:case 235:i||o(Zi(cn(t)),67901928&r);break;case 191:var s=t.name;s&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(J,r),i=e.hasModifier(t,32),t=t.parent}o(_t,r)}(),Ya(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach(function(e){a(e,t)})}}(t,r):[]},getSymbolAtLocation:function(t){return(t=e.getParseTreeNode(t))?Zm(t):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?function(e){if(e&&270===e.kind)return Wr(e.name,69313471)}(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return(t=e.getParseTreeNode(t,e.isExportSpecifier))?function(e){return e.parent.parent.moduleSpecifier?Lr(e.parent.parent,e):Wr(e.propertyName||e.name,70107135)}(t):void 0},getExportSymbolOfSymbol:function(e){return sn(e.exportSymbol||e)},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?eg(t):ee},getPropertySymbolOfDestructuringAssignment:function(t){return(t=e.getParseTreeNode(t,e.isIdentifier))?function(t){var r=function t(r){if(e.Debug.assert(183===r.kind||182===r.kind),221===r.parent.kind){var n=om(r.parent.expression,r.parent.awaitModifier);return Up(r,n||ee)}if(199===r.parent.kind){var n=rf(r.parent.right);return Up(r,n||ee)}if(269===r.parent.kind){var i=t(r.parent.parent);return zp(i||ee,r.parent)}e.Debug.assert(182===r.parent.kind);var a=t(r.parent),o=sm(a||ee,r.parent,!1,!1)||ee;return Kp(r.parent,a,r.parent.elements.indexOf(r),o||ee)}(t.parent.parent);return r&&Ka(r,t.escapedText)}(t):void 0},signatureToString:function(t,r,n,i){return Pn(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return wn(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return An(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return On(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return Pn(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return wn(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return An(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return On(t,e.getParseTreeNode(r),n,i)},getSymbolDisplayBuilder:function(){return{buildTypeDisplay:function(e,r,n,i){wn(e,n,i,t(r))},buildSymbolDisplay:function(e,r,n,i,a){An(e,n,i,4|a,t(r))},buildSignatureDisplay:function(e,r,n,i,a){Pn(e,n,i,a,t(r))},buildIndexSignatureDisplay:function(r,n,i,a,o){var s=L.indexInfoToIndexSignatureDeclaration(r,i,a,3112960|Fn(o),n),c=e.createPrinter({removeComments:!0});c.writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(a)),t(n))},buildParameterDisplay:function(r,n,i,a){var o=L.symbolToParameterDeclaration(r,i,3112960|Fn(a),n),s=e.createPrinter({removeComments:!0});s.writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(n))},buildTypeParameterDisplay:function(r,n,i,a){var o=L.typeParameterToDeclaration(r,i,3121152|Fn(a),n),s=e.createPrinter({removeComments:!0});s.writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(n))},buildTypePredicateDisplay:function(e,r,n,i){On(e,n,i,t(r))},buildTypeParameterDisplayFromSymbol:function(r,n,i,a){var o=L.symbolToTypeParameterDeclarations(r,i,3112960|Fn(a),n),s=e.createPrinter({removeComments:!0});s.writeList(26896,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(n))},buildDisplayForParametersAndDelimiters:function(r,n,i,a,o){var s=e.createPrinter({removeComments:!0}),c=3121152|Fn(o),u=r?[L.symbolToParameterDeclaration(r,a,c)]:[],l=e.createNodeArray(u.concat(e.map(n,function(e){return L.symbolToParameterDeclaration(e,a,c)})));s.writeList(1296,l,e.getSourceFileOfNode(e.getParseTreeNode(a)),t(i))},buildDisplayForTypeParametersAndDelimiters:function(r,n,i,a){var o=e.createPrinter({removeComments:!0}),s=e.createNodeArray(e.map(r,function(e){return L.typeParameterToDeclaration(e,i,Fn(a))}));o.writeList(26896,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(n))},buildReturnTypeDisplay:function(r,n,i,a){n.writePunctuation(":"),n.writeSpace(" ");var o=lo(r);if(o)return On(o,i,a,t(n));var s=L.typeToTypeNode(_o(r),i,3112960|Fn(a),n),c=e.createPrinter({removeComments:!0});c.writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(n))}};function t(t){return{write:e.noop,writeTextOfNode:e.noop,writeLine:e.noop,increaseIndent:function(){return t.increaseIndent()},decreaseIndent:function(){return t.decreaseIndent()},getText:function(){return""},rawWrite:e.noop,writeLiteral:function(e){return t.writeStringLiteral(e)},getTextPos:function(){return 0},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},clear:function(){return t.clear()},writeKeyword:function(e){return t.writeKeyword(e)},writeOperator:function(e){return t.writeOperator(e)},writePunctuation:function(e){return t.writePunctuation(e)},writeSpace:function(e){return t.writeSpace(e)},writeStringLiteral:function(e){return t.writeStringLiteral(e)},writeParameter:function(e){return t.writeParameter(e)},writeProperty:function(e){return t.writeProperty(e)},writeSymbol:function(e,r){return t.writeSymbol(e,r)},trackSymbol:function(e,r,n){return t.trackSymbol&&t.trackSymbol(e,r,n)},reportInaccessibleThisError:function(){return t.reportInaccessibleThisError&&t.reportInaccessibleThisError()},reportPrivateInBaseOfClassExpression:function(e){return t.reportPrivateInBaseOfClassExpression&&t.reportPrivateInBaseOfClassExpression(e)},reportInaccessibleUniqueSymbolError:function(){return t.reportInaccessibleUniqueSymbolError&&t.reportInaccessibleUniqueSymbolError()}}}},getAugmentedPropertiesOfType:rg,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(vr(t).containingType.types,function(e){return Ka(e,t.escapedName)});if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray(function(e){for(var t,r=e;r=vr(r).target;)t=r;return t}(t))}}(r);return n?e.flatMap(n,t):[r]},getContextualType:function(t){return(t=e.getParseTreeNode(t,e.isExpression))?T_(t):void 0},getContextualTypeForArgumentAtIndex:function(t,r){return(t=e.getParseTreeNode(t,e.isCallLikeExpression))&&g_(t,r)},getContextualTypeForJsxAttribute:function(t){return(t=e.getParseTreeNode(t,e.isJsxAttributeLike))&&k_(t)},isContextSensitive:Ec,getFullyQualifiedName:Vr,getResolvedSignature:function(t,r,n){t=e.getParseTreeNode(t,e.isCallLikeExpression),B=n;var i=t?ip(t,r):void 0;return B=void 0,i},getConstantValue:function(t){return(t=e.getParseTreeNode(t,bg))?xg(t):void 0},isValidPropertyAccess:function(t,r){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode))&&function(e,t){switch(e.kind){case 184:return kd(e,e.expression,t,Mu(nf(e.expression)));case 145:return kd(e,e.left,t,Mu(nf(e.left)));case 178:return kd(e,e,t,cc(e))}}(t,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessExpression))&&function(t,r,n){return kd(t,178===t.kind?t:t.expression,n.escapedName,r)&&(!(8192&n.flags)||(i=r,a=qa(Eu(di(n)),0),e.Debug.assert(0!==a.length),a.some(function(e){var t=co(e);return!t||Mc(i,function(e,t,r){if(!e.typeParameters)return t;var n=Ju(e.typeParameters,e,0);return Xu(n.inferences,r,t),Dc(t,go(e,nl(n)))}(e,t,i))})));var i,a}(t,r,n)},getSignatureFromDeclaration:function(t){return(t=e.getParseTreeNode(t,e.isFunctionLike))?ao(t):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?mg(r):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=vr(t);if(!r.immediateTarget){var n=Fr(t);e.Debug.assert(!!n),r.immediateTarget=Br(n,!0)}return r.immediateTarget},getAliasedSymbol:zr,getEmitResolver:function(e,t){return Vm(e,t),M},getExportsOfModule:en,getExportsAndPropertiesOfModule:function(t){var r=en(t),n=Yr(t);return n!==t&&e.addRange(r,Ca(fi(n))),r},getSymbolWalker:e.createGetSymbolWalker(po,lo,_o,Ni,Sa,fi,il,Wa,To,Fm),getAmbientModules:function(){return Ce||(Ce=[],_t.forEach(function(e,t){r.test(t)&&Ce.push(e)})),Ce},getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return(t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement))?function(e){return K_(e.tagName)?ed(e):td(e,!0)}(t):void 0},getJsxIntrinsicTagNamesAt:function(r){var n=W_(t.IntrinsicElements,r);return n?Ca(n):e.emptyArray},isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&eo(t)},tryGetMemberInModuleExports:function(t,r){return tn(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(e,t){var r=tn(e,t);if(r)return r;var n=Yr(t);if(n!==t){var i=fi(n);return 16382&i.flags?void 0:Ka(i,e)}}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return Za(e,!1)},getApparentType:Ba,getUnionType:Ss,createAnonymousType:vn,createSignature:na,createSymbol:_r,createIndexInfo:ko,getAnyType:function(){return Y},getStringType:function(){return ae},getNumberType:function(){return oe},createPromiseType:Sp,createArrayType:ds,getBooleanType:function(){return ue},getVoidType:function(){return _e},getUndefinedType:function(){return te},getNullType:function(){return ne},getESSymbolType:function(){return le},getNeverType:function(){return de},isSymbolAccessible:Tn,isArrayLikeType:_u,getAllPossiblePropertiesOfTypes:function(t){var r=Ss(t);if(!(131072&r.flags))return rg(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=rg(o);s<c.length;s++){var u=c[s].escapedName;if(!n.has(u)){var l=ja(r,u);l&&n.set(u,l)}}return e.arrayFrom(n.values())},getSuggestionForNonexistentProperty:function(e,t){return yd(e,t)},getSuggestionForNonexistentSymbol:function(t,r,n){return hd(t,e.escapeLeadingUnderscores(r),n)},getSuggestionForNonexistentModule:function(e,t){return vd(e,t)},getBaseConstraintOfType:Fa,getDefaultFromTypeParameter:function(e){return e&&32768&e.flags?Ra(e):void 0},resolveName:function(t,r,n,i){return Dr(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(cr(t))},getAccessibleSymbolChain:Sn,getTypePredicateOfSignature:lo,resolveExternalModuleSymbol:Yr,tryGetThisTypeAt:function(t){return(t=e.getParseTreeNode(t))&&o_(t)},getTypeArgumentConstraint:function(t){return(t=e.getParseTreeNode(t,e.isTypeNode))&&function(t){var r=e.tryCast(t.parent,e.isTypeReferenceType);if(r){var n=yf(r),i=Na(n[r.typeArguments.indexOf(t)]);return i&&Dc(i,dc(n,mf(r,n)))}}(t)},getSuggestionDiagnostics:function(t){return(jt.get(t.fileName)||e.emptyArray).concat(function(){if(t.isDeclarationFile)return e.emptyArray;Um(t);var r=[];return e.Debug.assert(!!(1&br(t).flags)),Bf(pt.get(t.fileName),function(t,i){qm(t)||r.push(n({},i,{category:e.DiagnosticCategory.Suggestion}))}),r}())}},K=[],U=e.createMap(),q=e.createMap(),V=e.createMap(),W=e.createMap(),H=[],G=e.createMap(),X=_r(4,"unknown"),Q=_r(0,"__resolving__"),Y=fn(1,"any"),$=fn(1,"any"),Z=fn(1,"any"),ee=fn(1,"unknown"),te=fn(4096,"undefined"),re=P?te:fn(16781312,"undefined"),ne=fn(8192,"null"),ie=P?ne:fn(16785408,"null"),ae=fn(2,"string"),oe=fn(4,"number"),se=fn(128,"true"),ce=fn(128,"false"),ue=((j=Ss([se,ce])).flags|=8,j.intrinsicName="boolean",j),le=fn(512,"symbol"),_e=fn(2048,"void"),de=fn(16384,"never"),pe=fn(16384,"never"),fe=fn(16384,"never"),me=fn(134217728,"object"),ge=vn(void 0,D,e.emptyArray,e.emptyArray,void 0,void 0),ye=_r(2048,"__type");ye.members=e.createSymbolTable();var he=vn(ye,D,e.emptyArray,e.emptyArray,void 0,void 0),ve=vn(void 0,D,e.emptyArray,e.emptyArray,void 0,void 0);ve.instantiations=e.createMap();var be=vn(void 0,D,e.emptyArray,e.emptyArray,void 0,void 0);be.flags|=67108864;var xe=vn(void 0,D,e.emptyArray,e.emptyArray,void 0,void 0),Se=vn(void 0,D,e.emptyArray,e.emptyArray,void 0,void 0),ke=vn(void 0,D,e.emptyArray,e.emptyArray,void 0,void 0),De=pn(32768),Te=pn(32768);Te.constraint=De;var Ce,Ee,Ne,Ae,Pe,we,Fe,Oe,Ie,Me,Le,Re,Be,je,Je,ze,Ke,Ue,qe,Ve,We,He,Ge,Xe,Qe,Ye,$e,Ze,et,tt,rt,nt=pn(32768),it=to("<<unresolved>>",0,Y),at=na(void 0,void 0,void 0,e.emptyArray,Y,void 0,0,!1,!1),ot=na(void 0,void 0,void 0,e.emptyArray,ee,void 0,0,!1,!1),st=na(void 0,void 0,void 0,e.emptyArray,Y,void 0,0,!1,!1),ct=na(void 0,void 0,void 0,e.emptyArray,pe,void 0,0,!1,!1),ut=ko(ae,!0),lt=ko(Y,!1),_t=e.createSymbolTable(),dt=e.createMap(),pt=e.createMap(),ft=e.createMap(),mt=0,gt=0,yt=0,ht=!1,vt=ac(""),bt=ac(0),xt=[],St=[],kt=[],Dt=0,Tt=10,Ct=[],Et=[],Nt=[],At=[],Pt=[],wt=[],Ft=[],Ot=[],It=[],Mt=[],Lt=[],Rt=[],Bt=e.createDiagnosticCollection(),jt=e.createMultiMap();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.All=4194303]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=1972176]="ObjectStrictFacts",e[e.ObjectFacts=4184016]="ObjectFacts",e[e.FunctionStrictFacts=1970144]="FunctionStrictFacts",e[e.FunctionFacts=4181984]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts"}(rt||(rt={}));var Jt,zt,Kt,Ut,qt,Vt,Wt,Ht,Gt,Xt,Qt=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Yt=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),$t=e.createMapFromTemplate({string:ae,number:oe,boolean:ue,symbol:le,undefined:te}),Zt=Ss(e.arrayFrom(Qt.keys(),ac)),er=e.createMap(),tr=e.createMap(),rr=e.createMap(),nr=e.createMap(),ir=e.createMap(),ar=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ResolvedBaseConstraint=4]="ResolvedBaseConstraint"}(Kt||(Kt={})),function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential",e[e.Contextual=3]="Contextual"}(Ut||(Ut={})),function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(qt||(qt={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(Vt||(Vt={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(Wt||(Wt={})),function(e){e[e.Any=1]="Any",e[e.Undefined=2]="Undefined",e[e.Null=4]="Null",e[e.Never=8]="Never",e[e.NonWideningType=16]="NonWideningType",e[e.String=32]="String",e[e.Number=64]="Number",e[e.ESSymbol=128]="ESSymbol",e[e.LiteralOrUniqueESSymbol=256]="LiteralOrUniqueESSymbol",e[e.ObjectType=512]="ObjectType",e[e.EmptyObject=1024]="EmptyObject",e[e.Union=2048]="Union",e[e.Wildcard=4096]="Wildcard"}(Ht||(Ht={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(Gt||(Gt={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(Xt||(Xt={}));var or=e.createSymbolTable();or.set(R.escapedName,R);var sr=e.and(jm,function(t){return!e.isAccessor(t)});return function(){for(var t=0,r=i.getSourceFiles();t<r.length;t++){var n=r[t];e.bindSourceFile(n,C)}for(var a,o=0,s=i.getSourceFiles();o<s.length;o++){var n=s[o];if(e.isExternalOrCommonJsModule(n)||yr(_t,n.locals),n.patternAmbientModules&&n.patternAmbientModules.length&&(Ee=e.concatenate(Ee,n.patternAmbientModules)),n.moduleAugmentations.length&&(a||(a=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports){var c=n.symbol.globalExports;c.forEach(function(e,t){_t.has(t)||_t.set(t,e)})}}if(a)for(var u=0,l=a;u<l.length;u++)for(var _=l[u],d=0,p=_;d<p.length;d++){var f=p[d];e.isGlobalScopeAugmentation(f.parent)&&hr(f)}if(function(t,r,n){r.forEach(function(r,i){var a=t.get(i);a?e.forEach(a.declarations,function(t,r){return function(n){return Bt.add(e.createDiagnosticForNode(n,r,t))}}(e.unescapeLeadingUnderscores(i),n)):t.set(i,r)})}(_t,or,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),vr(R).type=re,vr(J).type=Xo("IArguments",0,!0),vr(X).type=ee,Pe=Xo("Array",1,!0),Ne=Xo("Object",0,!0),Ae=Xo("Function",0,!0),Fe=Xo("String",0,!0),Oe=Xo("Number",0,!0),Ie=Xo("Boolean",0,!0),Me=Xo("RegExp",0,!0),Re=ds(Y),(Be=ds($))===ge&&(Be=vn(void 0,D,e.emptyArray,e.emptyArray,void 0,void 0)),we=os("ReadonlyArray",1),je=we?ss(we,[Y]):Re,Le=os("ThisType",1),a)for(var m=0,g=a;m<g.length;m++)for(var _=g[m],y=0,h=_;y<h.length;y++){var f=h[y];e.isGlobalScopeAugmentation(f.parent)||hr(f)}}(),z;function cr(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxNamespace)return r.localJsxNamespace;var n=r.pragmas.get("jsx");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,E),r.localJsxFactory)return r.localJsxNamespace=Fm(r.localJsxFactory).escapedText}}}return Jt||(Jt="React",C.jsxFactory?(zt=e.parseIsolatedEntityName(C.jsxFactory,E))&&(Jt=Fm(zt).escapedText):C.reactNamespace&&(Jt=e.escapeLeadingUnderscores(C.reactNamespace))),Jt}function ur(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);Bt.add(s)}function lr(t,r,i,a,o,s,c){!function(t,r){t?Bt.add(r):jt.add(r.file.fileName,n({},r,{category:e.DiagnosticCategory.Suggestion}))}(t,"message"in i?e.createDiagnosticForNode(r,i,a,o,s,c):e.createDiagnosticForNodeFromMessageChain(r,i))}function _r(e,t,r){x++;var n=new y(33554432|e,t);return n.checkFlags=r||0,n}function dr(e){return 0!=(33554432&e.flags)}function pr(e){var t=0;return 2&e&&(t|=67216319),1&e&&(t|=67216318),4&e&&(t|=0),8&e&&(t|=68008959),16&e&&(t|=67215791),32&e&&(t|=68008383),64&e&&(t|=67901832),256&e&&(t|=68008191),128&e&&(t|=68008831),512&e&&(t|=67215503),8192&e&&(t|=67208127),32768&e&&(t|=67150783),65536&e&&(t|=67183551),262144&e&&(t|=67639784),524288&e&&(t|=67901928),2097152&e&&(t|=2097152),t}function fr(e,t){t.mergeId||(t.mergeId=o,o++),Ct[t.mergeId]=e}function mr(t){var r=_r(t.flags,t.escapedName);return r.declarations=t.declarations?t.declarations.slice():[],r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=e.cloneMap(t.members)),t.exports&&(r.exports=e.cloneMap(t.exports)),fr(r,t),r}function gr(t,r){if(!(t.flags&pr(r.flags))||67108864&(r.flags|t.flags)){if(512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&(!t.valueDeclaration||238===t.valueDeclaration.kind&&238!==r.valueDeclaration.kind)&&(t.valueDeclaration=r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),yr(t.members,r.members)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),yr(t.exports,r.exports)),67108864&(r.flags|t.flags)){var n=e.getJSInitializerSymbol(r),i=e.getJSInitializerSymbol(t);n===r&&i===t||gr(i,n)}fr(t,r)}else if(1024&t.flags)ur(e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,An(t));else{var a=384&t.flags||384&r.flags?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:2&t.flags||2&r.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;e.forEach(r.declarations,function(t){ur((e.getJavascriptInitializer(t,!1)?e.getOuterNameOfJsInitializer(t):e.getNameOfDeclaration(t))||t,a,An(r))}),e.forEach(t.declarations,function(t){ur((e.getJavascriptInitializer(t,!1)?e.getOuterNameOfJsInitializer(t):e.getNameOfDeclaration(t))||t,a,An(r))})}}function yr(e,t){t.forEach(function(t,r){var n=e.get(r);n?(33554432&n.flags||(n=mr(n),e.set(r,n)),gr(n,t)):e.set(r,t)})}function hr(t){var r=t.parent;if(r.symbol.declarations[0]===r)if(e.isGlobalScopeAugmentation(r))yr(_t,r.symbol.exports);else{var n=Gr(t,t,2097152&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!n)return;1920&(n=Yr(n)).flags?gr(n=33554432&n.flags?n:mr(n),r.symbol):ur(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(r.symbol.declarations.length>1)}function vr(e){if(33554432&e.flags)return e;var t=u(e);return Et[t]||(Et[t]={})}function br(e){var t=c(e);return Nt[t]||(Nt[t]={flags:0})}function xr(t){return 273===t.kind&&!e.isExternalOrCommonJsModule(t)}function Sr(t,r,n){if(n){var i=t.get(r);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=zr(i);if(a===X||a.flags&n)return i}}}}function kr(t,r){var n=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(r);if(n!==a){if(N&&(n.externalModuleIndicator||a.externalModuleIndicator)||!C.outFile&&!C.out||al(r)||2097152&t.flags)return!0;if(u(r,t))return!0;var o=i.getSourceFiles();return o.indexOf(n)<=o.indexOf(a)}if(t.pos<=r.pos){if(181===t.kind){var s=e.getAncestor(r,181);return s?e.findAncestor(s,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos<s.pos:kr(e.getAncestor(t,231),r)}return 231!==t.kind||!function(t,r){var n=e.getEnclosingBlockScopeContainer(t);switch(t.parent.parent.kind){case 213:case 219:case 221:if(Pr(r,t,n))return!0}return e.isForInOrOfStatement(t.parent.parent)&&Pr(r,t.parent.parent.expression,n)}(t,r)}if(251===r.parent.kind||248===r.parent.kind&&r.parent.isExportEquals)return!0;if(248===r.kind&&r.isExportEquals)return!0;var c=e.getEnclosingBlockScopeContainer(t);return al(r)||u(r,t,c);function u(t,r,n){return!!e.findAncestor(t,function(i){if(i===n)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&151===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(153===r.kind)return!0}else if(151!==r.kind||e.hasModifier(r,32)||e.getContainingClass(t)!==e.getContainingClass(r))return!0})}}function Dr(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),Tr(e,t,r,n,i,a,o,Sr,s)}function Tr(t,r,n,i,a,o,s,c,u){var l,_,d,p,f,m=t,g=t,y=!1;e:for(;t;){if(t.locals&&!xr(t)&&(l=c(t.locals,r,n))){var h=!0;if(e.isFunctionLike(t)&&_&&_!==t.body?(n&l.flags&67901928&&283!==_.kind&&(h=!!(262144&l.flags)&&(_===t.type||148===_.kind||147===_.kind)),67216319&n&&1&l.flags&&(h=148===_.kind||_===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter))):170===t.kind&&(h=_===t.trueType),h)break e;l=void 0}switch(t.kind){case 273:if(!e.isExternalOrCommonJsModule(t))break;y=!0;case 238:var v=cn(t).exports;if(273===t.kind||e.isAmbientModule(t)){if(l=v.get("default")){var b=e.getLocalSymbolForExportDefault(l);if(b&&l.flags&n&&b.escapedName===r)break e;l=void 0}var x=v.get(r);if(x&&2097152===x.flags&&e.getDeclarationOfKind(x,251))break}if("default"!==r&&(l=c(v,r,2623475&n)))break e;break;case 237:if(l=c(cn(t).exports,r,8&n))break e;break;case 151:case 150:if(e.isClassLike(t.parent)&&!e.hasModifier(t,32)){var S=dn(t.parent);S&&S.locals&&c(S.locals,r,67216319&n)&&(p=t)}break;case 234:case 204:case 235:if(l=c(Zi(cn(t)),r,67901928&n)){if(!Nr(l,t)){l=void 0;break}if(_&&e.hasModifier(_,32))return void ur(g,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(204===t.kind&&32&n){var k=t.name;if(k&&r===k.escapedText){l=t.symbol;break e}}break;case 206:if(_===t.expression&&85===t.parent.token){var D=t.parent.parent;if(e.isClassLike(D)&&(l=c(cn(D).members,r,67901928&n)))return void(i&&ur(g,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 146:if(f=t.parent.parent,(e.isClassLike(f)||235===f.kind)&&(l=c(cn(f).members,r,67901928&n)))return void ur(g,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 153:case 152:case 154:case 155:case 156:case 233:case 192:if(3&n&&"arguments"===r){l=J;break e}break;case 191:if(3&n&&"arguments"===r){l=J;break e}if(16&n){var T=t.name;if(T&&r===T.escapedText){l=t.symbol;break e}}break;case 149:t.parent&&148===t.parent.kind&&(t=t.parent),t.parent&&e.isClassElement(t.parent)&&(t=t.parent)}Cr(t)&&(d=t),_=t,t=t.parent}if(!o||!l||d&&l===d.symbol||(l.isReferenced|=n),!l){if(_&&(e.Debug.assert(273===_.kind),_.commonJsModuleIndicator&&"exports"===r))return _.symbol;s||(l=c(_t,r,n))}if(l){if(i){if(p){var C=p.name;return void ur(g,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(C),Er(a))}if(g&&(2&n||(32&n||384&n)&&67216319==(67216319&n))){var E=ln(l);(2&E.flags||32&E.flags||384&E.flags)&&function(t,r){e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags));var n=e.forEach(t.declarations,function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||237===t.kind?t:void 0});e.Debug.assert(void 0!==n,"Declaration to checkResolvedBlockScopedVariable is undefined"),2097152&n.flags||kr(n,r)||(2&t.flags?ur(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(n))):32&t.flags?ur(r,e.Diagnostics.Class_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(n))):256&t.flags&&ur(r,e.Diagnostics.Enum_0_used_before_its_declaration,e.declarationNameToString(e.getNameOfDeclaration(n))))}(E,g)}if(l&&y&&67216319==(67216319&n)&&!(1048576&m.flags)){var N=l.declarations;N&&1===N.length&&241===N[0].kind&&ur(g,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}}return l}if(i&&(!g||!(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||Gm(t)||al(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=cn(a.parent);if(!o)break;var s=fi(o);if(Ka(s,r))return ur(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Er(n),An(o)),!0;if(a===i&&!e.hasModifier(a,32)){var c=Ri(o).thisType;if(Ka(c,r))return ur(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Er(n)),!0}}a=a.parent}return!1}(g,r,a)||Ar(g)||function(t,r,n){var i=1920|(e.isInJavaScriptFile(t)?67216319:0);if(n===i){var a=Jr(Dr(t,r,67901928&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText,c=Ka(Ri(a),s);if(c)return ur(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return ur(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(g,r,n)||function(t,r,n){if(67216319&n){if("any"===r||"string"===r||"number"===r||"boolean"===r||"never"===r)return ur(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=Jr(Dr(t,r,792640,void 0,void 0,!1));if(i&&!(1024&i.flags))return ur(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0}return!1}(g,r,n)||function(t,r,n){if(107031&n){var i=Jr(Dr(t,r,1024,void 0,void 0,!1));if(i)return ur(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(792640&n){var i=Jr(Dr(t,r,1536,void 0,void 0,!1));if(i)return ur(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(g,r,n)))){var A=void 0;u&&Dt<Tt&&(A=hd(m,r,n))&&ur(g,u,Er(a),A),A||ur(g,i,Er(a)),Dt++}}function Cr(e){switch(e.kind){case 233:case 234:case 235:case 237:case 236:case 238:return!0;default:return!1}}function Er(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function Nr(t,r){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n],o=e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent;if(147===a.kind&&o===r)return!0}return!1}function Ar(t){var r=function t(r){switch(r.kind){case 71:case 184:return r.parent?t(r.parent):void 0;case 206:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}(t),n=!(!r||!Wr(r,64,!0));return n&&ur(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),n}function Pr(t,r,n){return r&&!!e.findAncestor(t,function(t){return t===n||e.isFunctionLike(t)?"quit":t===r})}function wr(e){switch(e.kind){case 242:return e;case 244:return e.parent;case 245:return e.parent.parent;case 247:return e.parent.parent.parent;default:return}}function Fr(t){return e.find(t.declarations,e.isAliasSymbolDeclaration)}function Or(e,t,r){var n=e.exports.get("export=");return n?Ka(fi(n),t):Jr(e.exports.get(t),r)}function Ir(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasModifier(t,512)}function Mr(t,r,n){if(!A)return!1;if(!t||t.isDeclarationFile){var i=Or(r,"default",!0);return!(i&&e.some(i.declarations,Ir)||Or(r,e.escapeLeadingUnderscores("__esModule"),n))}return e.isSourceFileJavaScript(t)?!t.externalModuleIndicator&&!Or(r,e.escapeLeadingUnderscores("__esModule"),n):Zr(r)}function Lr(t,r,n){var i=Hr(t,t.moduleSpecifier),a=$r(i,t.moduleSpecifier,n);if(a){var o=r.propertyName||r.name;if(o.escapedText){if(e.isShorthandAmbientModuleSymbol(i))return i;var s=void 0;s=Jr(s=i&&i.exports&&i.exports.get("export=")?Ka(fi(a),o.escapedText):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Jr(Ka(cc(r),t))}}(a,o.escapedText),n);var c=function(e,t,r){if(1536&e.flags)return Jr(rn(e).get(t),r)}(a,o.escapedText,n);!c&&A&&"default"===o.escapedText&&(c=Yr(i,n)||Jr(i,n));var u=c&&s?function(t,r){if(t===X&&r===X)return X;if(67903464&t.flags)return t;var n=_r(t.flags|r.flags,t.escapedName);return n.declarations=e.concatenate(t.declarations,r.declarations),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=r.members),t.exports&&(n.exports=t.exports),n}(s,c):c||s;if(!u){var l=Vr(i),_=e.declarationNameToString(o),d=vd(o,a);void 0!==d?ur(o,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,l,_,d):ur(o,e.Diagnostics.Module_0_has_no_exported_member_1,l,_)}return u}}}function Rr(e,t,r){return e.parent.parent.moduleSpecifier?Lr(e.parent.parent,e,r):Wr(e.propertyName||e.name,t,!1,r)}function Br(t,r){switch(t.kind){case 242:return function(t,r){return 253===t.moduleReference.kind?Yr(Hr(t,e.getExternalModuleImportEqualsDeclarationExpression(t))):qr(t.moduleReference,r)}(t,r);case 244:return function(t,r){var n=Hr(t,t.parent.moduleSpecifier);if(n){var i=void 0;i=e.isShorthandAmbientModuleSymbol(n)?n:Or(n,"default",r);var a=Mr(e.find(n.declarations,e.isSourceFile),n,r);if(i||a){if(a)return Yr(n,r)||Jr(n,r)}else ur(t.name,e.Diagnostics.Module_0_has_no_default_export,An(n));return i}}(t,r);case 245:return function(e,t){var r=e.parent.parent.moduleSpecifier;return $r(Hr(e,r),r,t)}(t,r);case 247:return function(e,t){return Lr(e.parent.parent.parent,e,t)}(t,r);case 251:return Rr(t,68009983,r);case 248:return function(e,t){var r=Wr(e.expression,68009983,!0,t);return r||(nf(e.expression),br(e.expression).resolvedSymbol)}(t,r);case 241:return function(e,t){return Yr(e.parent.symbol,t)}(t,r)}}function jr(e,t){return void 0===t&&(t=68009983),!!e&&(2097152==(e.flags&(2097152|t))||2097152&e.flags&&67108864&e.flags)}function Jr(e,t){return!t&&jr(e)?zr(e):e}function zr(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=vr(t);if(r.target)r.target===Q&&(r.target=X);else{r.target=Q;var n=Fr(t);e.Debug.assert(!!n);var i=Br(n);r.target===Q?r.target=i||X:ur(n,e.Diagnostics.Circular_definition_of_import_alias_0,An(t))}return r.target}function Kr(e){var t=cn(e),r=zr(t);r&&(r===X||67216319&r.flags&&!fg(r))&&Ur(t)}function Ur(t){var r=vr(t);if(!r.referenced){r.referenced=!0;var n=Fr(t);e.Debug.assert(!!n),248===n.kind?Xp(n.expression):251===n.kind?Xp(n.propertyName||n.name):e.isInternalModuleImportEqualsDeclaration(n)&&Xp(n.moduleReference)}}function qr(t,r){return 71===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),71===t.kind||145===t.parent.kind?Wr(t,1920,!1,r):(e.Debug.assert(242===t.parent.kind),Wr(t,68009983,!1,r))}function Vr(e){return e.parent?Vr(e.parent)+"."+An(e):An(e)}function Wr(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJavaScriptFile(t)?67216319&r:0);if(71===t.kind){var c=r===s?e.Diagnostics.Cannot_find_namespace_0:e.Diagnostics.Cannot_find_name_0,u=e.isInJavaScriptFile(t)?function(t,r){if(zo(t.parent)&&e.isJSDocTag(t.parent.parent.parent)){var n=e.getJSDocHost(t.parent.parent.parent);if(e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&3===e.getSpecialPropertyAssignmentKind(n.expression)){var i=cn(n.expression.left).parent.valueDeclaration;return Dr(i,t.escapedText,r,void 0,t,!0)}}}(t,r):void 0;if(!(o=Dr(a||t,t.escapedText,r,n||u?void 0:c,t,!0)))return u}else if(145===t.kind||184===t.kind){var l=145===t.kind?t.left:t.expression,_=145===t.kind?t.right:t.name,d=Wr(l,s,n,!1,a);if(!d||e.nodeIsMissing(_))return;if(d===X)return d;if(e.isInJavaScriptFile(t)){var p=e.getDeclaredJavascriptInitializer(d.valueDeclaration)||e.getAssignedJavascriptInitializer(d.valueDeclaration);if(p&&(d=cn(p)),!d)return;if(d.valueDeclaration&&e.isVariableDeclaration(d.valueDeclaration)&&d.valueDeclaration.initializer&&fp(d.valueDeclaration.initializer)){var f=d.valueDeclaration.initializer.arguments[0],m=Hr(f,f);if(m){var g=Yr(m);g&&(d=g)}}}if(!(o=Sr(rn(d),_.escapedText,r)))return void(n||ur(_,e.Diagnostics.Namespace_0_has_no_exported_member_1,Vr(d),e.declarationNameToString(_)))}else e.Debug.assertNever(t,"Unknown entity name kind.");return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),o.flags&r||i?o:zr(o)}}function Hr(t,r){return Gr(t,r,e.Diagnostics.Cannot_find_module_0)}function Gr(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?Xr(t,r.text,n,r,i):void 0}function Xr(t,r,n,a,o){if(void 0===o&&(o=!1),void 0!==r){e.startsWith(r,"@types/")&&ur(a,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var s=Za(r,!0);if(s)return s;var c=e.getSourceFileOfNode(t),u=e.getResolvedModule(c,r),l=u&&e.getResolutionDiagnostic(C,u),_=u&&!l&&i.getSourceFile(u.resolvedFileName);if(_)return _.symbol?(u.isExternalLibraryImport&&!e.extensionIsTypeScript(u.extension)&&Qr(!1,a,u,r),sn(_.symbol)):void(n&&ur(a,e.Diagnostics.File_0_is_not_a_module,_.fileName));if(Ee){var d=e.findBestPatternMatch(Ee,function(e){return e.pattern},r);if(d)return sn(d.symbol)}if(u&&!e.extensionIsTypeScript(u.extension)&&void 0===l||l===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?ur(a,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,u.resolvedFileName):Qr(O&&!!n,a,u,r);else if(n)if(l)ur(a,l,r,u.resolvedFileName);else{var p=e.tryExtractTypeScriptExtension(r);p?ur(a,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,p,e.removeExtension(r,p)):ur(a,n,r)}}}function Qr(t,r,n,i){var a=n.packageId,o=n.resolvedFileName,s=a&&e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,e.getMangledNameForScopedPackage(a.name));lr(t,r,e.chainDiagnosticMessages(s,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,o))}function Yr(e,t){return e&&sn(Jr(function(e){var t=e.exports.get("export=");if(!t||!t.exports||1===e.exports.size)return t;var r=mr(t);return e.exports.forEach(function(e,t){"export="!==t&&(r.exports.has(t)||r.exports.set(t,e))}),r}(e),t))||e}function $r(t,r,n){var i=Yr(t,n);if(!n&&i){if(!(1539&i.flags))return ur(r,e.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,An(t)),i;if(C.esModuleInterop){var a=r.parent;if(e.isImportDeclaration(a)&&e.getNamespaceDeclarationNode(a)||e.isImportCall(a)){var o=fi(i),s=Ua(o,0);if(s&&s.length||(s=Ua(o,1)),s&&s.length){var c=pp(o,i,t),u=_r(i.flags,i.escapedName);u.declarations=i.declarations?i.declarations.slice():[],u.parent=i.parent,u.target=i,u.originatingImport=a,i.valueDeclaration&&(u.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),i.members&&(u.members=e.cloneMap(i.members)),i.exports&&(u.exports=e.cloneMap(i.exports));var l=Sa(c);return u.type=vn(u,l.members,e.emptyArray,e.emptyArray,l.stringIndexInfo,l.numberIndexInfo),u}}}}return i}function Zr(e){return void 0!==e.exports.get("export=")}function en(e){return Ya(nn(e))}function tn(e,t){var r=nn(t);if(r)return r.get(e)}function rn(e){return 32&e.flags?$i(e,"resolvedExports"):1536&e.flags?nn(e):e.exports||D}function nn(e){var t=vr(e);return t.resolvedExports||(t.resolvedExports=on(e))}function an(t,r,n,i){r&&r.forEach(function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Jr(o)!==Jr(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}})}function on(t){var r=[];return function t(n){if(n&&1952&n.flags&&e.pushIfUnique(r,n)){var i=e.cloneMap(n.exports),a=n.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=e.createMap(),c=0,u=a.declarations;c<u.length;c++){var l=u[c],_=Hr(l,l.moduleSpecifier),d=t(_);an(o,d,s,l)}s.forEach(function(t,r){var n=t.exportsWithDuplicate;if("export="!==r&&n&&n.length&&!i.has(r))for(var a=0,o=n;a<o.length;a++){var c=o[a];Bt.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(r).specifierText,e.unescapeLeadingUnderscores(r)))}}),an(i,o)}return i}}(t=Yr(t))||D}function sn(e){var t;return e&&e.mergeId&&(t=Ct[e.mergeId])?t:e}function cn(e){return sn(e.symbol&&ea(e.symbol))}function un(e){return sn(e.parent&&ea(e.parent))}function ln(e){return e&&0!=(1048576&e.flags)?sn(e.exportSymbol):e}function _n(e){return!!(67216319&e.flags||2097152&e.flags&&67216319&zr(e).flags)}function dn(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(154===i.kind&&e.nodeIsPresent(i.body))return i}}function pn(e){var t=new h(z,e);return b++,t.id=b,t}function fn(e,t){var r=pn(e);return r.intrinsicName=t,r}function mn(e,t){var r=pn(65536);return r.objectFlags=e,r.symbol=t,r}function gn(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function yn(t){var r;return t.forEach(function(e,t){gn(t)||(r||(r=[]),_n(e)&&r.push(e))}),r||e.emptyArray}function hn(e,t,r,n,i,a){return e.members=t,e.properties=yn(t),e.callSignatures=r,e.constructSignatures=n,i&&(e.stringIndexInfo=i),a&&(e.numberIndexInfo=a),e}function vn(e,t,r,n,i,a){return hn(mn(16,e),t,r,n,i,a)}function bn(t,r){for(var n,i=t;i;i=i.parent){if(i.locals&&!xr(i)&&(n=r(i.locals)))return n;switch(i.kind){case 273:if(!e.isExternalOrCommonJsModule(i))break;case 238:if(n=r(cn(i).exports))return n}}return r(_t)}function xn(e){return 67216319===e?67216319:1920}function Sn(t,r,n,i,a){if(void 0===a&&(a=e.createMap()),t&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 151:case 153:case 155:case 156:continue;default:return!1}}return!0}return!1}(t)){var o=""+u(t),s=a.get(o);return s||a.set(o,s=[]),bn(r,c)}function c(a,o){if(e.pushIfUnique(s,a)){var u=function(a,o){return _(a.get(t.escapedName),void 0,o)?[t]:e.forEachEntry(a,function(t){if(2097152&t.flags&&"export="!==t.escapedName&&"default"!==t.escapedName&&!(e.isUMDExportSymbol(t)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(t.declarations,e.isExternalModuleImportEqualsDeclaration))){var a=zr(t);if(_(t,a,o))return[t];var s=rn(a),u=s&&c(s,!0);if(u&&l(t,xn(n)))return[t].concat(u)}})}(a,o);return s.pop(),u}}function l(e,t){return!kn(e,r,t)||!!Sn(e.parent,r,xn(t),i,a)}function _(r,i,a){return t===(i||r)&&!e.some(r.declarations,Cn)&&(a||l(r,n))}}function kn(t,r,n){var i=!1;return bn(r,function(r){var a=r.get(t.escapedName);return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,251)?zr(a):a).flags&n)&&(i=!0,!0))}),i}function Dn(e,t){return 0===Tn(e,t,67216319,!1).accessibility}function Tn(t,r,n,i){if(t&&r&&!(262144&t.flags)){for(var a=t,o=n;t;){var s=Sn(t,r,o,!1);if(s){var c=En(s[0],i);return c||{accessibility:1,errorSymbolName:An(a,r,n),errorModuleName:t!==a?An(t,r,1920):void 0}}o=xn(n),t=un(t)}var u=e.forEach(a.declarations,l);return u&&u!==l(r)?{accessibility:2,errorSymbolName:An(a,r,n),errorModuleName:An(u)}:{accessibility:1,errorSymbolName:An(a,r,n)}}return{accessibility:0};function l(t){var r=e.findAncestor(t,Cn);return r&&cn(r)}}function Cn(t){return e.isAmbientModule(t)||273===t.kind&&e.isExternalOrCommonJsModule(t)}function En(t,r){var n;if(!e.forEach(t.declarations,function(t){return!function(t){if(!Bn(t)){var r=wr(t);return r&&!e.hasModifier(r,1)&&Bn(r.parent)?i(t,r):!(!e.isVariableDeclaration(t)||!e.isVariableStatement(t.parent.parent)||e.hasModifier(t.parent.parent,1)||!Bn(t.parent.parent.parent))&&i(t,t.parent.parent)}return!0}(t)}))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(br(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function Nn(t,r){var n;n=164===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||146===t.parent.kind?68264895:145===t.kind||184===t.kind||242===t.parent.kind?1920:67901928;var i=Fm(t),a=Dr(r,i.escapedText,n,void 0,void 0,!1);return a&&En(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function An(t,r,n,i,a){void 0===i&&(i=4);var o=3112960;2&i&&(o|=128),1&i&&(o|=512),8&i&&(o|=16384);var s=4&i?L.symbolToExpression:L.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,n,r,o),c=e.createPrinter({removeComments:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,a,u,i),i}}function Pn(t,r,n,i,a){return a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o;o=262144&n?1===i?163:162:1===i?158:157;var s=L.signatureToSignatureDeclaration(t,o,r,3113472|Fn(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,u,a),a}}function wn(t,r,n,i){void 0===n&&(n=1048576),void 0===i&&(i=e.createTextWriter(""));var a=L.typeToTypeNode(t,r,3112960|Fn(n),i);e.Debug.assert(void 0!==a,"should always get typenode");var o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);o.writeNode(4,a,s,i);var c=i.getText(),u=C.noErrorTruncation||1&n?void 0:100;return u&&c&&c.length>=u?c.substr(0,u-"...".length)+"...":c}function Fn(e){return 9469291&e}function On(t,r,n,i){return i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.createTypePredicateNode(1===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),L.typeToTypeNode(t.type,r,3113472|Fn(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function In(e){return 8===e?"private":16===e?"protected":"public"}function Mn(t){return t&&t.parent&&239===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function Ln(t){return 273===t.kind||e.isAmbientModule(t)}function Rn(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],Ln)!==e.findAncestor(r.enclosingDeclaration,Ln)))return"default";if(t.declarations&&t.declarations.length){var n=t.declarations[0],i=e.getNameOfDeclaration(n);if(i)return e.declarationNameToString(i);if(n.parent&&231===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),n.kind){case 204:return"(Anonymous class)";case 191:case 192:return"(Anonymous function)"}}if(t.nameType&&32&t.nameType.flags){var a=t.nameType.value;if(!e.isIdentifierText(a,C.target))return'"'+e.escapeString(a,34)+'"'}return e.symbolName(t)}function Bn(t){if(t){var r=br(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 181:return Bn(t.parent.parent);case 231:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 238:case 234:case 235:case 236:case 233:case 237:case 242:if(e.isExternalModuleAugmentation(t))return!0;var r=qn(t);return 1&e.getCombinedModifierFlags(t)||242!==t.kind&&273!==r.kind&&2097152&r.flags?Bn(r):xr(r);case 151:case 150:case 155:case 156:case 153:case 152:if(e.hasModifier(t,24))return!1;case 154:case 158:case 157:case 159:case 148:case 239:case 162:case 163:case 165:case 161:case 166:case 167:case 168:case 169:case 172:return Bn(t.parent);case 244:case 245:case 247:return!1;case 147:case 273:case 241:return!0;case 248:default:return!1}}()),r.isVisible}return!1}function jn(t,r){var n,i;return t.parent&&248===t.parent.kind?n=Dr(t,t.escapedText,70107135,void 0,t,!1):251===t.parent.kind&&(n=Rr(t.parent,70107135)),n&&function t(n){e.forEach(n,function(n){var a=wr(n)||n;if(r?br(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,a)),e.isInternalModuleImportEqualsDeclaration(n)){var o=n.moduleReference,s=Fm(o),c=Dr(n,s.escapedText,68009983,void 0,void 0,!1);c&&t(c.declarations)}})}(n.declarations),i}function Jn(e,t){var r=zn(e,t);if(r>=0){for(var n=xt.length,i=r;i<n;i++)St[i]=!1;return!1}return xt.push(e),St.push(!0),kt.push(t),!0}function zn(e,t){for(var r=xt.length-1;r>=0;r--){if(Kn(xt[r],kt[r]))return-1;if(xt[r]===e&&kt[r]===t)return r}return-1}function Kn(t,r){if(0===r)return vr(t).type;if(2===r)return vr(t).declaredType;if(1===r)return t.resolvedBaseConstructorType;if(3===r)return t.resolvedReturnType;if(4===r){var n=t.resolvedBaseConstraint;return n&&n!==Se}e.Debug.fail("Unhandled TypeSystemPropertyName "+r)}function Un(){return xt.pop(),kt.pop(),St.pop()}function qn(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 231:case 232:case 247:case 246:case 245:case 244:return!1;default:return!0}}))&&t.parent}function Vn(e,t){var r=Ka(e,t);return r?fi(r):void 0}function Wn(e){return e&&0!=(1&e.flags)}function Hn(e){var t=cn(e);return t&&vr(t).type||ei(e,!1)}function Gn(t){return 146===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function Xn(t,r,n){if(16384&(t=Pl(t,function(e){return!(12288&e.flags)})).flags)return ge;if(131072&t.flags)return wl(t,function(e){return Xn(e,r,n)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=r;o<s.length;o++){var c=s[o];a.set(e.getTextOfPropertyName(c),!0)}for(var u=0,l=Ca(t);u<l.length;u++){var _=l[u],d=a.has(_.escapedName),p=24&e.getDeclarationModifierFlagsFromSymbol(_),f=65536&_.flags&&!(32768&_.flags);d||p||tc(_)||f||i.set(_.escapedName,_)}var m=Ha(t,0),g=Ha(t,1);return vn(n,i,e.emptyArray,e.emptyArray,m,g)}function Qn(t){var r,n=t.parent,i=Hn(n.parent);if(i===ee)return ee;if(!i)return t.initializer?Yp(t):i;if(Wn(i))return i;if(179===n.kind)if(t.dotDotDotToken){if(!J_(i))return ur(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),ee;for(var a=[],o=0,s=n.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||a.push(c.propertyName||c.name)}r=Xn(i,a,t.symbol)}else{var u=t.propertyName||t.name,l=Hi(u),_=e.isComputedPropertyName(u)&&e.isWellKnownSymbolSyntactically(u.expression);if(!l&&!_&&Gn(u))return Y;var d=l?Qi(R_(u)):_?e.getPropertyNameForKnownSymbolName(e.idText(u.expression.name)):e.getTextOfPropertyName(u);P&&2097152&t.flags&&e.isParameterDeclaration(t)&&(i=Eu(i));var p=$l(Vn(i,d),t.name);if(!(r=p&&Vl(t,p)||L_(d)&&Ga(i,1)||Ga(i,0)))return ur(u,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,wn(i),e.declarationNameToString(u)),ee}else{var f=sm(i,n,!1,!1);if(t.dotDotDotToken)r=ds(f);else{var m=""+n.elements.indexOf(t);if(!(r=pu(i)?Vn(i,m):f))return bu(i)?ur(t,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,wn(i),wo(i),n.elements.length):ur(t,e.Diagnostics.Type_0_has_no_property_1,wn(i),m),ee}}return!P||!t.initializer||4096&Su(Xp(t.initializer))||(r=fl(r,131072)),t.initializer?Ss([r,Xp(t.initializer)],2):r}function Yn(t){var r=e.getJSDocType(t);if(r)return cc(r)}function $n(t){var r=e.skipParentheses(t);return 182===r.kind&&0===r.elements.length}function Zn(e,t){return void 0===t&&(t=!0),P&&t?Cu(e):e}function ei(t,r){if(e.isVariableDeclaration(t)&&220===t.parent.parent.kind){var n=Ps(_d(t.parent.parent.expression));return 557056&n.flags?n:ae}if(e.isVariableDeclaration(t)&&221===t.parent.parent.kind){var i=t.parent.parent;return om(i.expression,i.awaitModifier)||Y}if(e.isBindingPattern(t.parent))return Qn(t);var a,o,s=r&&(e.isParameter(t)&&$a(t)||!e.isBindingElement(t)&&!e.isVariableDeclaration(t)&&!!t.questionToken),c=oi(t);if(c)return Zn(c,s);if((O||e.isInJavaScriptFile(t))&&231===t.kind&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(2097152&t.flags)){if(!(2&e.getCombinedNodeFlags(t)||t.initializer&&(a=t.initializer,o=e.skipParentheses(a),95!==o.kind&&(71!==o.kind||il(o)!==R))))return $;if(t.initializer&&$n(t.initializer))return Be}if(148===t.kind){var u=t.parent;if(156===u.kind&&!Xi(u)){var l=e.getDeclarationOfKind(cn(t.parent),155);if(l){var _=ao(l),d=Hg(u);return d&&t===d?(e.Debug.assert(!d.type),fi(_.thisParameter)):_o(_)}}var p=void 0;if(p="this"===t.symbol.escapedName?__(u):d_(t))return Zn(p,s)}return t.initializer?Zn(p=Yp(t),s):e.isJsxAttribute(t)?se:e.isBindingPattern(t.name)?ni(t.name,!1,!0):void 0}function ti(t){var r=e.getAssignedJavascriptInitializer(t.valueDeclaration);if(r)return yu(Xp(r));for(var n,i,a=[],o=!1,s=!1,c=function(r){var c=!1,u=199===r.kind?r:184===r.kind?e.cast(r.parent,e.isBinaryExpression):void 0;if(!u)return{value:ee};var l=e.getSpecialPropertyAssignmentKind(u);if(4===l){var _=e.getThisContainer(u,!1);(c=154===_.kind||233===_.kind||191===_.kind&&!e.isPrototypePropertyAssignment(_.parent))?o=!0:s=!0}var d=Yn(u.parent);if(d){var p=Mu(d);i?i===ee||p===ee||wc(i,p)||67108864&t.flags||em(i,r,p):i=p}else if(!i){var f=yu(Xp(u.right));if(16&e.getObjectFlags(f)&&2===l&&"export="===t.escapedName){var m=Sa(f),g=e.createSymbolTable();e.copyEntries(m.members,g),t.exports.forEach(function(e,t){if(g.has(t)){var r=m.members.get(t),n=_r(e.flags|r.flags,t);n.type=Ss([fi(e),fi(r)]),g.set(t,n)}else g.set(t,e)}),f=vn(m.symbol,g,m.callSignatures,m.constructSignatures,m.stringIndexInfo,m.numberIndexInfo)}var y=f;du(f)&&(y=Re,O&&Ru(u,Re)),a.push(y),c&&(n||(n=[])).push(y)}},u=0,l=t.declarations;u<l.length;u++){var _=c(l[u]);if("object"===p(_))return _.value}var d=i;d||(d=Ss(e.some(n,function(e){return!!(-16789505&e.flags)})?n:a,2));var f=Mu(Zn(d,s&&!o));return Pl(f,function(e){return!!(-12289&e.flags)})===de?(O&&Ru(t.valueDeclaration,Y),Y):f}function ri(t,r,n){return t.initializer?Yp(t):e.isBindingPattern(t.name)?ni(t.name,r,n):(n&&O&&!ai(t)&&Ru(t,Y),Y)}function ni(t,r,n){return 179===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=128;e.forEach(t.elements,function(t){var s=t.propertyName||t.name;if(Gn(s))o|=512;else if(t.dotDotDotToken)i=ko(Y,!1);else{var c=e.getTextOfPropertyName(s),u=_r(4|(t.initializer?16777216:0),c);u.type=ri(t,r,n),u.bindingElement=t,a.set(u.escapedName,u)}});var s=vn(void 0,a,e.emptyArray,e.emptyArray,i,void 0);return s.flags|=33554432,s.objectFlags|=o,r&&(s.pattern=t),s}(t,r,n):function(t,r,n){var i=t.elements,a=e.lastOrUndefined(i);if(0===i.length||!e.isOmittedExpression(a)&&a.dotDotDotToken)return E>=2?ls(Y):Re;var o=fs(e.map(i,function(t){return e.isOmittedExpression(t)?Y:ri(t,r,n)}));return r&&((o=Po(o)).pattern=t),o}(t,r,n)}function ii(t,r){var n=ei(t,!0);return n?(r&&Bu(t,n),1024&n.flags&&(e.isBindingElement(t)||!t.type)&&n.symbol!==cn(t)&&(n=le),Mu(n)):(n=e.isParameter(t)&&t.dotDotDotToken?Re:Y,r&&O&&(ai(t)||Ru(t,n)),n)}function ai(t){var r=e.getRootDeclaration(t);return xf(148===r.kind?r.parent:r)}function oi(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return cc(r)}function si(t){var r,n=vr(t);if(!n.type){if(4194304&t.flags)return n.type=(r=Ri(un(t))).typeParameters?Ao(r,e.map(r.typeParameters,function(e){return Y})):r;var i=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(i))return n.type=Y;if(248===i.kind)return n.type=nf(i.expression);if(e.isInJavaScriptFile(i)&&e.isJSDocPropertyLikeTag(i)&&i.typeExpression)return n.type=cc(i.typeExpression.type);if(!Jn(t,0))return ee;var a=void 0;if(199===i.kind||184===i.kind&&199===i.parent.kind)a=ti(t);else if(e.isJSDocPropertyTag(i)||e.isPropertyAccessExpression(i)||e.isIdentifier(i)||e.isMethodDeclaration(i)&&!e.isObjectLiteralMethod(i)||e.isMethodSignature(i)){if(9136&t.flags)return di(t);a=oi(i)||Y}else e.isPropertyAssignment(i)?a=oi(i)||Zp(i):e.isJsxAttribute(i)?a=oi(i)||U_(i):e.isShorthandPropertyAssignment(i)?a=oi(i)||$p(i.name,0):e.isObjectLiteralMethod(i)?a=oi(i)||ef(i,0):e.isParameter(i)||e.isPropertyDeclaration(i)||e.isPropertySignature(i)||e.isVariableDeclaration(i)||e.isBindingElement(i)?a=ii(i,!0):e.Debug.fail("Unhandled declaration kind! "+e.Debug.showSyntaxKind(i));Un()||(a=pi(t)),n.type=a}return n.type}function ci(t){if(t){if(155===t.kind){var r=e.getEffectiveReturnTypeNode(t);return r&&cc(r)}var n=e.getEffectiveSetAccessorTypeAnnotationNode(t);return n&&cc(n)}}function ui(e){return co(ao(e))}function li(t){var r=vr(t);if(!r.type){var n=e.getDeclarationOfKind(t,155),i=e.getDeclarationOfKind(t,156);if(n&&e.isInJavaScriptFile(n)){var a=Yn(n);if(a)return r.type=a}if(!Jn(t,0))return ee;var o=void 0,s=ci(n);if(s)o=s;else{var c=ci(i);c?o=c:n&&n.body?o=Dp(n):(O&&(i?ur(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,An(t)):(e.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),ur(n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,An(t)))),o=Y)}Un()||(o=Y,O&&ur(e.getDeclarationOfKind(t,155),e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,An(t))),r.type=o}return r.type}function _i(e){var t=Ei(Pi(e));return 1081344&t.flags?t:void 0}function di(t){var r=vr(t);if(!r.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))r.type=Y;else if(199===t.valueDeclaration.kind||184===t.valueDeclaration.kind&&199===t.valueDeclaration.parent.kind)r.type=ti(t);else{var n=mn(16,t);if(32&t.flags){var i=_i(t);r.type=i?Es([n,i]):n}else r.type=P&&16777216&t.flags?Cu(n):n}return r.type}function pi(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(ur(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,An(t)),ee):(O&&ur(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,An(t)),Y)}function fi(t){return 1&e.getCheckFlags(t)?function(t){var r=vr(t);if(!r.type)if(100===k)ur(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),r.type=ee;else{if(!Jn(t,0))return ee;k++;var n=Dc(fi(r.target),r.mapper);k--,Un()||(n=pi(t)),r.type=n}return r.type}(t):2048&e.getCheckFlags(t)?function(e){return Wu(e.propertyType,e.mappedType)}(t):7&t.flags?si(t):9136&t.flags?di(t):8&t.flags?function(e){var t=vr(e);return t.type||(t.type=Mi(e)),t.type}(t):98304&t.flags?li(t):2097152&t.flags?function(e){var t=vr(e);if(!t.type){var r=zr(e);t.type=67216319&r.flags?fi(r):ee}return t.type}(t):ee}function mi(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function gi(t){return 4&e.getObjectFlags(t)?t.target:t}function yi(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=gi(n);return i===r||e.forEach(Ni(i),t)}if(262144&n.flags)return e.forEach(n.types,t)}(t)}function hi(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,Li(cn(a)))}return t}function vi(t,r){for(;;){if(!(t=t.parent))return;switch(t.kind){case 234:case 204:case 235:case 157:case 158:case 152:case 162:case 163:case 281:case 233:case 153:case 191:case 192:case 236:case 291:case 176:case 170:var n=vi(t,r);if(176===t.kind)return e.append(n,Li(cn(t.typeParameter)));if(170===t.kind)return e.concatenate(n,Vs(t));var i=hi(n,e.getEffectiveTypeParameterDeclarations(t)||e.emptyArray),a=r&&(234===t.kind||204===t.kind||235===t.kind)&&Pi(cn(t)).thisType;return a?e.append(i,a):i}}}function bi(t){return vi(32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,235))}function xi(t){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(235===a.kind||234===a.kind||204===a.kind||236===a.kind){var o=a,s=e.getEffectiveTypeParameterDeclarations(o);s&&(r=hi(r,s))}}return r}function Si(e){var t=qa(e,1);if(1===t.length){var r=t[0];return!r.typeParameters&&1===r.parameters.length&&r.hasRestParameter&&yp(r.parameters[0])===Re}return!1}function ki(e){if(Ai(e)&&qa(e,1).length>0)return!0;if(1081344&e.flags){var t=Fa(e);return t&&Ai(t)&&Si(t)}return!1}function Di(t){var r=t.symbol.valueDeclaration;if(e.isInJavaScriptFile(r)){var n=e.getJSDocAugmentsTag(r);if(n)return n.class}return e.getClassExtendsHeritageClauseElement(r)}function Ti(t,r,n){var i=e.length(r),a=e.isInJavaScriptFile(n);return e.filter(qa(t,1),function(t){return(a||i>=no(t.typeParameters))&&i<=e.length(t.typeParameters)})}function Ci(t,r,n){var i=Ti(t,r,n),a=e.map(r,cc);return e.sameMap(i,function(t){return e.some(t.typeParameters)?fo(t,a,e.isInJavaScriptFile(n)):t})}function Ei(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getClassExtendsHeritageClauseElement(r),i=Di(t);if(!i)return t.resolvedBaseConstructorType=te;if(!Jn(t,1))return ee;var a=nf(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),nf(n.expression)),327680&a.flags&&Sa(a),!Un())return ur(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,An(t.symbol)),t.resolvedBaseConstructorType=ee;if(!(1&a.flags||a===ie||ki(a)))return ur(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,wn(a)),t.resolvedBaseConstructorType=ee;t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function Ni(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[ds(Ss(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=Ba(Ei(t));if(!(327681&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=Di(t),a=qo(i),o=r&&r.symbol?Ri(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=e.typeArguments;return t[r].symbol!==n[r].symbol}return!0}(o))n=Fo(i,r.symbol,a);else if(1&r.flags)n=r;else{var s=Ci(r,i.typeArguments,i);if(!s.length)return ur(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=_o(s[0])}n===ee?t.resolvedBaseTypes=e.emptyArray:Ai(n)?t===n||yi(n,t)?(ur(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,wn(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray):(t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[n]):(ur(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,wn(n)),t.resolvedBaseTypes=e.emptyArray)}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];if(235===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=cc(s);c!==ee&&(Ai(c)?t===c||yi(c,t)?ur(i,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,wn(t,void 0,2)):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):ur(s,e.Diagnostics.An_interface_may_only_extend_a_class_or_another_interface))}}}(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function Ai(t){return 134283265&t.flags&&!xa(t)||262144&t.flags&&!e.forEach(t.types,function(e){return!Ai(e)})}function Pi(t){var r=vr(t);if(!r.declaredType){var n=32&t.flags?1:2,i=r.declaredType=mn(n,t),a=bi(t),o=xi(t);(a||o||1===n||!function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(235===i.kind){if(64&i.flags)return!1;var a=e.getInterfaceBaseTypeNodes(i);if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var u=Wr(c.expression,67901928,!0);if(!u||!(64&u.flags)||Pi(u).thisType)return!1}}}}return!0}(t))&&(i.objectFlags|=4,i.typeParameters=e.concatenate(a,o),i.outerTypeParameters=a,i.localTypeParameters=o,i.instantiations=e.createMap(),i.instantiations.set(Eo(i.typeParameters),i),i.target=i,i.typeArguments=i.typeParameters,i.thisType=pn(32768),i.thisType.isThisType=!0,i.thisType.symbol=t,i.thisType.constraint=i)}return r.declaredType}function wi(t){var r=t.initializer;if(!r)return!(2097152&t.flags);switch(r.kind){case 9:case 8:return!0;case 197:return 38===r.operator&&8===r.operand.kind;case 71:return e.nodeIsMissing(r)||!!cn(t.parent).exports.get(r.escapedText);default:return!1}}function Fi(e){var t=vr(e);if(void 0!==t.enumKind)return t.enumKind;for(var r=!1,n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(237===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o];if(c.initializer&&9===c.initializer.kind)return t.enumKind=1;wi(c)||(r=!0)}}return t.enumKind=r?0:1}function Oi(e){return 256&e.flags&&!(131072&e.flags)?Ri(un(e.symbol)):e}function Ii(e){var t=vr(e);if(t.declaredType)return t.declaredType;if(1===Fi(e)){S++;for(var r=[],n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(237===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],u=ac(vg(c),S,cn(c));vr(cn(c)).declaredType=u,r.push(u)}}if(r.length){var l=Ss(r,1,e,void 0);return 131072&l.flags&&(l.flags|=256,l.symbol=e),t.declaredType=l}}var _=pn(16);return _.symbol=e,t.declaredType=_}function Mi(e){var t=vr(e);if(!t.declaredType){var r=Ii(un(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function Li(e){var t=vr(e);if(!t.declaredType){var r=pn(32768);r.symbol=e,t.declaredType=r}return t.declaredType}function Ri(e){return Bi(e)||ee}function Bi(t){return 96&t.flags?Pi(t):524288&t.flags?function(t){var r=vr(t);if(!r.declaredType){if(!Jn(t,2))return ee;var n=e.find(t.declarations,function(e){return 292===e.kind||236===e.kind}),i=292===n.kind?n.typeExpression:n.type,a=i?cc(i):ee;if(Un()){var o=xi(t);o&&(r.typeParameters=o,r.instantiations=e.createMap(),r.instantiations.set(Eo(o),a))}else a=ee,ur(n.name,e.Diagnostics.Type_alias_0_circularly_references_itself,An(t));r.declaredType=a}return r.declaredType}(t):262144&t.flags?Li(t):384&t.flags?Ii(t):8&t.flags?Mi(t):2097152&t.flags?function(e){var t=vr(e);return t.declaredType||(t.declaredType=Ri(zr(e))),t.declaredType}(t):void 0}function ji(e){switch(e.kind){case 119:case 137:case 134:case 122:case 138:case 135:case 105:case 140:case 95:case 131:case 177:return!0;case 166:return ji(e.elementType);case 161:return!e.typeArguments||e.typeArguments.every(ji)}return!1}function Ji(e){return!e.constraint||ji(e.constraint)}function zi(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?ji(r):!e.hasInitializer(t)}function Ki(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 151:case 150:return zi(r);case 153:case 152:case 154:return n=r,i=e.getEffectiveReturnTypeNode(n),a=e.getEffectiveTypeParameterDeclarations(n),(154===n.kind||i&&ji(i))&&n.parameters.every(zi)&&(!a||a.every(Ji))}}var n,i,a;return!1}function Ui(t,r,n){for(var i=e.createSymbolTable(),a=0,o=t;a<o.length;a++){var s=o[a];i.set(s.escapedName,n&&Ki(s)?s:vc(s,r))}return i}function qi(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||e.set(i.escapedName,i)}}function Vi(e){if(!e.declaredProperties){var t=e.symbol,r=Zi(t);e.declaredProperties=yn(r),e.declaredCallSignatures=so(r.get("__call")),e.declaredConstructSignatures=so(r.get("__new")),e.declaredStringIndexInfo=Do(t,0),e.declaredNumberIndexInfo=Do(t,1)}return e}function Wi(e){return!!(1120&e.flags)}function Hi(t){return e.isComputedPropertyName(t)&&e.isEntityNameExpression(t.expression)&&Wi(R_(t))}function Gi(t){var r=e.getNameOfDeclaration(t);return r&&Hi(r)}function Xi(t){return e.hasDynamicName(t)&&!Gi(t)}function Qi(t){return 1024&t.flags?"__@"+t.symbol.escapedName+"@"+u(t.symbol):96&t.flags?e.escapeLeadingUnderscores(""+t.value):void 0}function Yi(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=br(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=R_(i.name);if(Wi(o)){var s=Qi(o),c=i.symbol.flags,u=n.get(s);u||n.set(s,u=_r(0,s,1024));var l=r&&r.get(s);if(u.flags&pr(c)||l){var _=l?e.concatenate(l.declarations,u.declarations):u.declarations,d=e.declarationNameToString(i.name);e.forEach(_,function(t){return ur(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_declaration_0,d)}),ur(i.name||i,e.Diagnostics.Duplicate_declaration_0,d),u=_r(0,s,1024)}var p=vr(u);return p.nameType||(p.nameType=o),function(t,r,n){if(e.Debug.assert(!!(1024&e.getCheckFlags(t)),"Expected a late-bound symbol."),t.flags|=n,vr(r.symbol).lateSymbol=t,t.declarations?t.declarations.push(r):t.declarations=[r],67216319&n){var i=t.valueDeclaration;i&&i.kind===r.kind||(t.valueDeclaration=r)}}(u,i,c),u.parent?e.Debug.assert(u.parent===t,"Existing symbol parent should match new one"):u.parent=t,a.resolvedSymbol=u}}return a.resolvedSymbol}function $i(t,r){var n=vr(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?on(t):t.exports:t.members;n[r]=a||D;for(var o=e.createSymbolTable(),s=0,c=t.declarations;s<c.length;s++){var u=c[s],l=e.getMembersOfDeclaration(u);if(l)for(var _=0,d=l;_<d.length;_++){var p=d[_];i===e.hasStaticModifier(p)&&Gi(p)&&Yi(t,a,o,p)}}n[r]=function(t,r){if(!t||0===t.size)return r;if(!r||0===r.size)return t;var n=e.createSymbolTable();return yr(n,t),yr(n,r),n}(a,o)||D}return n[r]}function Zi(e){return 6240&e.flags?$i(e,"resolvedMembers"):e.members||D}function ea(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=vr(t);return!r.lateSymbol&&e.some(t.declarations,Gi)&&(e.some(t.declarations,e.hasStaticModifier)?rn(t.parent):Zi(t.parent)),r.lateSymbol||(r.lateSymbol=t)}return t}function ta(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=t.typeArguments;if(e.length(i.typeParameters)===e.length(a)){var o=Ao(i,e.concatenate(a,[r||i.thisType]));return n?Ba(o):o}}else if(262144&t.flags)return Es(e.map(t.types,function(e){return ta(e,r,n)}));return n?Ba(t):t}function ra(t,r,n,i){var a,o,s,c,u,l;e.rangeEquals(n,i,0,n.length)?(a=T,o=r.symbol?Zi(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,u=r.declaredStringIndexInfo,l=r.declaredNumberIndexInfo):(a=dc(n,i),o=Ui(r.declaredProperties,a,1===n.length),s=_c(r.declaredCallSignatures,a),c=_c(r.declaredConstructSignatures,a),u=Cc(r.declaredStringIndexInfo,a),l=Cc(r.declaredNumberIndexInfo,a));var _=Ni(r);if(_.length){r.symbol&&o===Zi(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),hn(t,o,s,c,u,l);for(var d=e.lastOrUndefined(i),p=0,f=_;p<f.length;p++){var m=f[p],g=d?ta(Dc(m,a),d):m;qi(o,Ca(g)),s=e.concatenate(s,qa(g,0)),c=e.concatenate(c,qa(g,1)),u||(u=g===Y?ko(Y,!1):Ha(g,0)),l=l||Ha(g,1)}}hn(t,o,s,c,u,l)}function na(e,t,r,n,i,a,o,s,c){var u=new v(z);return u.declaration=e,u.typeParameters=t,u.parameters=n,u.thisParameter=r,u.resolvedReturnType=i,u.resolvedTypePredicate=a,u.minArgumentCount=o,u.hasRestParameter=s,u.hasLiteralTypes=c,u.target=void 0,u.mapper=void 0,u}function ia(e){return na(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes)}function aa(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(su(s,t,r,n,i,Fc))return s}}function oa(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!aa(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:aa(t[i],r,!0,!0,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function sa(t,r){for(var n,i=e.map(t,function(e){return qa(e,r)}),a=0;a<i.length;a++)for(var o=0,s=i[a];o<s.length;o++){var c=s[o];if(!n||!aa(n,c,!1,!0,!0)){var u=oa(i,c,a);if(u){var l=c;if(u.length>1){var _=c.thisParameter;if(e.forEach(u,function(e){return e.thisParameter})){var d=Ss(e.map(u,function(e){return e.thisParameter?fi(e.thisParameter):Y}),2);_=Au(c.thisParameter,d)}(l=ia(c)).thisParameter=_,l.unionSignatures=u}(n||(n=[])).push(l)}}}return n||e.emptyArray}function ca(e,t){for(var r=[],n=!1,i=0,a=e;i<a.length;i++){var o=Ha(a[i],t);if(!o)return;r.push(o.type),n=n||o.isReadonly}return ko(Ss(r,2),n)}function ua(e,t){return e?t?Es([e,t]):e:t}function la(e,t){return e?t?ko(Es([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function _a(e,t){return e&&t&&ko(Ss([e.type,t.type]),e.isReadonly||t.isReadonly)}function da(t){for(var r,n,i=e.emptyArray,a=e.emptyArray,o=t.types,s=e.countWhere(o,Si),c=function(c){var u=t.types[c];if(0===s||s===o.length&&0===c||!Si(u)){var l=qa(u,1);l.length&&s>0&&(l=e.map(l,function(e){var t=ia(e);return t.resolvedReturnType=function(e,t,r){for(var n=[],i=0;i<t.length;i++)i===r?n.push(e):Si(t[i])&&n.push(_o(qa(t[i],1)[0]));return Es(n)}(_o(e),o,c),t})),a=e.concatenate(a,l)}i=e.concatenate(i,qa(u,0)),r=la(r,Ha(u,0)),n=la(n,Ha(u,1))},u=0;u<o.length;u++)c(u);hn(t,D,i,a,r,n)}function pa(t){var r=t.symbol;if(t.target)hn(t,n=Ui(ka(t.target),t.mapper,!1),_c(qa(t.target,0),t.mapper),s=_c(qa(t.target,1),t.mapper),i=Cc(Ha(t.target,0),t.mapper),o=Cc(Ha(t.target,1),t.mapper));else if(2048&r.flags)hn(t,n=Zi(r),so(n.get("__call")),s=so(n.get("__new")),i=Do(r,0),o=Do(r,1));else{var n=D,i=void 0;if(r.exports&&(n=rn(r)),hn(t,n,e.emptyArray,e.emptyArray,void 0,void 0),32&r.flags){var a=Ei(c=Pi(r));1409024&a.flags?qi(n=e.createSymbolTable(yn(n)),Ca(a)):a===Y&&(i=ko(Y,!1))}var o=384&r.flags?ut:void 0;if(hn(t,n,e.emptyArray,e.emptyArray,i,o),8208&r.flags&&(t.callSignatures=so(r)),32&r.flags){var s,c=Pi(r);(s=so(r.members.get("__constructor"))).length||(s=function(t){var r=qa(Ei(t),1);if(0===r.length)return[na(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,!1,!1)];for(var n=Di(t),i=e.isInJavaScriptFile(n),a=qo(n),o=e.length(a),s=[],c=0,u=r;c<u.length;c++){var l=u[c],_=no(l.typeParameters),d=e.length(l.typeParameters);if(i||o>=_&&o<=d){var p=d?mo(l,io(a,l.typeParameters,_,i)):ia(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(c)),t.constructSignatures=s}}}function fa(e){return e.typeParameter||(e.typeParameter=Li(cn(e.declaration.typeParameter)))}function ma(e){return e.constraintType||(e.constraintType=Dc(Na(fa(e)),e.mapper||T)||ee)}function ga(e){return e.templateType||(e.templateType=e.declaration.type?Dc(Zn(cc(e.declaration.type),!!(4&ha(e))),e.mapper||T):ee)}function ya(e){if(!e.modifiersType){var t=e.declaration.typeParameter.constraint;if(174===t.kind&&128===t.operator)e.modifiersType=Dc(cc(t.type),e.mapper||T);else{var r=ma(Js(e.declaration)),n=r&&32768&r.flags?Na(r):r;e.modifiersType=n&&524288&n.flags?Dc(n.type,e.mapper||T):ge}}return e.modifiersType}function ha(e){var t=e.declaration;return(t.readonlyToken?38===t.readonlyToken.kind?2:1:0)|(t.questionToken?38===t.questionToken.kind?8:4:0)}function va(e){var t=ha(e);return 8&t?-1:4&t?1:0}function ba(e){var t=va(e),r=ya(e);return t||(xa(r)?va(r):0)}function xa(t){return 32&e.getObjectFlags(t)&&Os(ma(t))}function Sa(t){return t.members||(65536&t.flags?4&t.objectFlags?function(t){var r=Vi(t.target),n=e.concatenate(r.typeParameters,[r.thisType]);ra(t,r,n,t.typeArguments&&t.typeArguments.length===n.length?t.typeArguments:e.concatenate(t.typeArguments,[t]))}(t):3&t.objectFlags?function(t){ra(t,Vi(t),e.emptyArray,e.emptyArray)}(t):2048&t.objectFlags?function(t){for(var r=Ha(t.source,0),n=ha(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r&&ko(Wu(r.type,t.mappedType),i&&r.isReadonly),s=e.createSymbolTable(),c=0,u=Ca(t.source);c<u.length;c++){var l=u[c],_=2048|(i&&Fp(l)?8:0),d=_r(4|l.flags&a,l.escapedName,_);d.declarations=l.declarations,d.propertyType=fi(l),d.mappedType=t.mappedType,s.set(l.escapedName,d)}hn(t,s,e.emptyArray,e.emptyArray,o,void 0)}(t):16&t.objectFlags?pa(t):32&t.objectFlags&&function(t){var r,n=e.createSymbolTable();hn(t,D,e.emptyArray,e.emptyArray,void 0,void 0);var i=fa(t),a=ma(t),o=ga(t.target||t),s=Ba(ya(t)),c=ha(t),u=t.declaration.typeParameter.constraint;if(174===u.kind&&128===u.operator){for(var l=0,_=Ca(s);l<_.length;l++){var d=_[l];m(Ns(d),d)}(1&s.flags||Ha(s,0))&&m(ae)}else{var f=7372800&a.flags?Ba(a):a;Al(524288&f.flags?Ps(Ba(f.type)):f,m)}function m(e,a){var u;"object"===p(a)&&(u=a);var l=fc(t.mapper,dc([i],[e])),_=Dc(o,l);if(32&e.flags){var d=Qi(e),f=Ka(s,d),m=!!(4&c||!(8&c)&&f&&16777216&f.flags),g=!!(1&c||!(2&c)&&f&&Fp(f)),y=_r(4|(m?16777216:0),d,g?8:0);y.type=P&&m&&!Mc(te,_)?Cu(_):P&&!m&&f&&16777216&f.flags?fl(_,131072):_,u&&(y.syntheticOrigin=u,y.declarations=u.declarations),y.nameType=e,n.set(d,y)}else 3&e.flags&&(r=ko(_,!!(1&c)))}hn(t,n,e.emptyArray,e.emptyArray,r,void 0)}(t):131072&t.flags?function(e){var t=sa(e.types,0),r=sa(e.types,1),n=ca(e.types,0),i=ca(e.types,1);hn(e,D,t,r,n,i)}(t):262144&t.flags&&da(t)),t}function ka(t){return 65536&t.flags?Sa(t).properties:e.emptyArray}function Da(e,t){if(65536&e.flags){var r=Sa(e).members.get(t);if(r&&_n(r))return r}}function Ta(t){if(!t.resolvedProperties){for(var r=e.createSymbolTable(),n=0,i=t.types;n<i.length;n++){for(var a=0,o=Ca(i[n]);a<o.length;a++){var s=o[a];if(!r.has(s.escapedName)){var c=za(t,s.escapedName);c&&r.set(s.escapedName,c)}}if(131072&t.flags)break}t.resolvedProperties=yn(r)}return t.resolvedProperties}function Ca(e){return 393216&(e=Ba(e)).flags?Ta(e):ka(e)}function Ea(e){return 32768&e.flags?Na(e):1048576&e.flags?function(e){var t=Ls(e);if(t)return t;var r=Fa(e.objectType),n=Fa(e.indexType);return(n!==ae||Ha(r||e.objectType,0))&&(r||n)?Bs(r||e.objectType,n||e.indexType):void 0}(e):2097152&e.flags?wa(e):Fa(e)}function Na(e){return Ia(e)?To(e):void 0}function Aa(e){if(!e.resolvedDefaultConstraint){var t=e.root.trueType,r=4194304&t.flags?t.substitute:t;e.resolvedDefaultConstraint=Ss([Dc(r,e.combinedMapper||e.mapper),qs(e)])}return e.resolvedDefaultConstraint}function Pa(e){if(e.root.isDistributive){var t=Ea(e.checkType);if(t){var r=kc(e,fc(dc([e.root.checkType],[t]),e.mapper));if(!(16384&r.flags))return r}}}function wa(e){return Pa(e)||Aa(e)}function Fa(e){var t=function(e){if(7766016&e.flags){var t=Ma(e);if(t!==xe&&t!==Se)return t}}(e);return!t&&524288&e.flags?ae:t}function Oa(e){return Fa(e)||e}function Ia(e){return Ma(e)!==Se}function Ma(e){var t;if(!e.resolvedBaseConstraint){var r=n(e);e.resolvedBaseConstraint=t?Se:ta(r||xe,e)}return e.resolvedBaseConstraint;function n(e){if(Jn(e,4)){var r=function(e){if(32768&e.flags){var t=To(e);return e.isThisType||!t?t:n(t)}if(393216&e.flags){for(var r=e.types,i=[],a=0,o=r;a<o.length;a++){var s=o[a],c=n(s);c&&i.push(c)}return 131072&e.flags&&i.length===r.length?Ss(i):262144&e.flags&&i.length?Es(i):void 0}if(524288&e.flags)return ae;if(1048576&e.flags){var u=Ls(e);if(u)return n(u);var l=n(e.objectType),_=n(e.indexType),d=l&&_?Bs(l,_):void 0;return d&&d!==ee?n(d):void 0}if(2097152&e.flags){var t=wa(e);return t&&n(t)}return 4194304&e.flags?n(e.substitute):xa(e)?ge:e}(e);if(Un())return r;t=!0}else t=!0}}function La(t){if(t.default)t.default===ke&&(t.default=Se);else if(t.target){var r=La(t.target);t.default=r?Dc(r,t.mapper):xe}else{t.default=ke;var n=t.symbol&&e.forEach(t.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default}),i=n?cc(n):xe;t.default===ke&&(t.default=i)}return t.default}function Ra(e){var t=La(e);return t!==xe&&t!==Se?t:void 0}function Ba(e){var t=7897088&e.flags?Fa(e)||ge:e;return 262144&t.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=ta(e,e,!0))}(t):524322&t.flags?Fe:84&t.flags?Oe:136&t.flags?Ie:1536&t.flags?Yo(E>=2):134217728&t.flags?ge:t}function ja(t,r){for(var n,i=131072&t.flags,a=i?24:0,o=i?0:16777216,s=4,c=0,u=0,l=t.types;u<l.length;u++)if((h=Ba(l[u]))!==ee){var _=(y=Ka(h,r))?e.getDeclarationModifierFlagsFromSymbol(y):0;!y||_&a?i&&(c|=16):(o&=y.flags,n=e.appendIfUnique(n,y),c|=(Fp(y)?8:0)|(24&_?0:64)|(16&_?128:0)|(8&_?256:0)|(32&_?512:0),cd(y)||(s=2))}if(n){if(1===n.length&&!(16&c))return n[0];for(var d,p=[],f=[],m=0,g=n;m<g.length;m++){var y;(y=g[m]).declarations&&e.addRange(f,y.declarations);var h=fi(y);d?h!==d&&(c|=32):d=h,p.push(h)}var v=_r(4|o,r,s|c);return v.containingType=t,v.declarations=f,v.type=i?Ss(p):Es(p),v}}function Ja(t,r){var n=t.propertyCache||(t.propertyCache=e.createSymbolTable()),i=n.get(r);return i||(i=ja(t,r))&&n.set(r,i),i}function za(t,r){var n=Ja(t,r);return!n||16&e.getCheckFlags(n)?void 0:n}function Ka(e,t){if(65536&(e=Ba(e)).flags){var r=Sa(e),n=r.members.get(t);if(n&&_n(n))return n;if(r===be||r.callSignatures.length||r.constructSignatures.length){var i=Da(Ae,t);if(i)return i}return Da(Ne,t)}if(393216&e.flags)return za(e,t)}function Ua(t,r){if(458752&t.flags){var n=Sa(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function qa(e,t){return Ua(Ba(e),t)}function Va(e,t){if(458752&e.flags){var r=Sa(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function Wa(e,t){var r=Va(e,t);return r&&r.type}function Ha(e,t){return Va(Ba(e),t)}function Ga(e,t){return Wa(Ba(e),t)}function Xa(e,t){if(Nu(e)){for(var r=[],n=0,i=Ca(e);n<i.length;n++){var a=i[n];(0===t||L_(a.escapedName))&&r.push(fi(a))}if(r.length)return Ss(r,2)}}function Qa(t){var r;return e.forEach(e.getEffectiveTypeParameterDeclarations(t),function(t){r=e.appendIfUnique(r,Li(t.symbol))}),r}function Ya(e){var t=[];return e.forEach(function(e,r){gn(r)||t.push(e)}),t}function $a(t){return e.isInJavaScriptFile(t)&&(t.type&&280===t.type.kind||e.getJSDocParameterTags(t).some(function(e){var t=e.isBracketed,r=e.typeExpression;return t||!!r&&280===r.type.kind}))}function Za(t,r){if(!e.isExternalModuleNameRelative(t)){var n=Sr(_t,'"'+t+'"',512);return n&&r?sn(n):n}}function eo(t){if(e.hasQuestionToken(t)||$a(t))return!0;if(t.initializer){var r=ao(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=r.minArgumentCount}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function to(e,t,r){return{kind:1,parameterName:e,parameterIndex:t,type:r}}function ro(e){return{kind:0,type:e}}function no(t){var r,n=0;if(t)for(var i=0;i<t.length;i++)(r=t[i]).symbol&&e.forEach(r.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default})||(n=i+1);return n}function io(t,r,n,i){var a=e.length(r);if(a){var o=e.length(t);if(i||o>=n&&o<=a){t||(t=[]);for(var s=o;s<a;s++)t[s]=rl(i);for(s=o;s<a;s++){var c=dc(r,t),u=Ra(r[s]);u&&wc(u,ge)&&i&&(u=Y),t[s]=u?Dc(u,c):rl(i)}t.length=r.length}}return t}function ao(t){var r,n=br(t);if(!n.resolvedSignature){for(var i=[],a=!1,o=0,s=void 0,c=void 0,u=e.getImmediatelyInvokedFunctionExpression(t),l=e.isJSDocConstructSignature(t),_=!u&&e.isInJavaScriptFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t),d=l?1:0;d<t.parameters.length;d++){var p=t.parameters[d],f=p.symbol;f&&4&f.flags&&!e.isBindingPattern(p.name)&&(f=Dr(p,f.escapedName,67216319,void 0,void 0,!1)),0===d&&"this"===f.escapedName?(c=!0,s=p.symbol):i.push(f),p.type&&177===p.type.kind&&(a=!0),p.initializer||p.questionToken||p.dotDotDotToken||u&&i.length>u.arguments.length&&!p.type||_||$a(p)||(o=i.length)}if(!(155!==t.kind&&156!==t.kind||Xi(t)||c&&s)){var m=155===t.kind?156:155,g=e.getDeclarationOfKind(cn(t),m);g&&(s=(r=Hg(g))&&r.symbol)}var y=154===t.kind?Pi(sn(t.parent.symbol)):void 0,h=y?y.localTypeParameters:Qa(t),v=function(t,r,n){if(r)return cc(t.parameters[0].type);if(n)return n;var i=e.getEffectiveReturnTypeNode(t);if(i)return cc(i);if(155===t.kind&&!Xi(t)){var a=e.getDeclarationOfKind(cn(t),156);return ci(a)}return e.nodeIsMissing(t.body)?Y:void 0}(t,l,y),b=e.hasRestParameter(t)||e.isInJavaScriptFile(t)&&function(t,r){if(!oo(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=_r(3,"args");return o.type=a?ds(cc(a.type)):Re,o.isRestParameter=!0,a&&r.pop(),r.push(o),!0}(t,i);n.resolvedSignature=na(t,h,s,i,v,void 0,o,b,a)}return n.resolvedSignature}function oo(t){var r=br(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 71:return"arguments"===r.escapedText&&e.isExpressionNode(r);case 151:case 153:case 155:case 156:return 146===r.name.kind&&t(r.name);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function so(t){if(!t)return e.emptyArray;for(var r=[],n=0;n<t.declarations.length;n++){var i=t.declarations[n],a=e.isPropertyAccessExpression(i)?e.getAssignedJavascriptInitializer(i):i;if(e.isFunctionLike(a)){if(n>0&&a.body){var o=t.declarations[n-1];if(a.parent===o.parent&&a.kind===o.kind&&a.pos===o.end)continue}r.push(ao(a))}}return r}function co(e){if(e.thisParameter)return fi(e.thisParameter)}function uo(e){return void 0!==lo(e)}function lo(t){if(!t.resolvedTypePredicate){if(t.target){var r=lo(t.target);t.resolvedTypePredicate=r?(s=r,c=t.mapper,e.isIdentifierTypePredicate(s)?{kind:1,parameterName:s.parameterName,parameterIndex:s.parameterIndex,type:Dc(s.type,c)}:{kind:0,type:Dc(s.type,c)}):it}else if(t.unionSignatures)t.resolvedTypePredicate=function(t){for(var r,n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=lo(o);if(s){if(r){if(!ks(r,s))return}else r=s;n.push(s.type)}}if(r){var c=Ss(n);return e.isIdentifierTypePredicate(r)?to(r.parameterName,r.parameterIndex,c):ro(c)}}(t.unionSignatures)||it;else{var n=t.declaration;t.resolvedTypePredicate=n&&n.type&&160===n.type.kind?(i=n.type,a=i.parameterName,o=cc(i.type),71===a.kind?to(a&&a.escapedText,a&&function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r];if(71===n.name.kind&&n.name.escapedText===t.escapedText)return r}return-1}(i.parent.parameters,a),o):ro(o)):it}e.Debug.assert(!!t.resolvedTypePredicate)}var i,a,o,s,c;return t.resolvedTypePredicate===it?void 0:t.resolvedTypePredicate}function _o(t){if(!t.resolvedReturnType){if(!Jn(t,3))return ee;var r=void 0;if(r=t.target?Dc(_o(t.target),t.mapper):t.unionSignatures?Ss(e.map(t.unionSignatures,_o),2):Dp(t.declaration),!Un()&&(r=Y,O)){var n=t.declaration,i=e.getNameOfDeclaration(n);i?ur(i,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(i)):ur(n,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}t.resolvedReturnType=r}return t.resolvedReturnType}function po(t){if(t.hasRestParameter){var r=fi(e.lastOrUndefined(t.parameters));if(4&e.getObjectFlags(r)&&r.target===Pe)return r.typeArguments[0]}return Y}function fo(t,r,n){r=io(r,t.typeParameters,no(t.typeParameters),n);var i=t.instantiations||(t.instantiations=e.createMap()),a=Eo(r),o=i.get(a);return o||i.set(a,o=mo(t,r)),o}function mo(e,t){return hc(e,go(e,t),!0)}function go(e,t){return dc(e.typeParameters,t)}function yo(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return hc(e,pc(e.typeParameters),!0)}(e)):e}function ho(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return fo(t,e.map(t.typeParameters,function(e){return e.target&&!Na(e.target)?e.target:e}),e.isInJavaScriptFile(t.declaration))}(t)):t}function vo(t){var r=t.typeParameters;if(r){var n=pc(r);return hc(t,dc(r,e.map(r,function(e){return Dc(Fa(e),n)||ge})),!0)}return t}function bo(t){if(!t.isolatedSignatureType){var r=154===t.declaration.kind||158===t.declaration.kind,n=mn(16);n.members=D,n.properties=e.emptyArray,n.callSignatures=r?e.emptyArray:[t],n.constructSignatures=r?[t]:e.emptyArray,t.isolatedSignatureType=n}return t.isolatedSignatureType}function xo(e){return e.members.get("__index")}function So(t,r){var n=1===r?134:137,i=xo(t);if(i)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.cast(s,e.isIndexSignatureDeclaration);if(1===c.parameters.length){var u=c.parameters[0];if(u.type&&u.type.kind===n)return c}}}function ko(e,t,r){return{type:e,isReadonly:t,declaration:r}}function Do(t,r){var n=So(t,r);if(n)return ko(n.type?cc(n.type):Y,e.hasModifier(n,64),n)}function To(t){if(!t.constraint)if(t.target){var r=Na(t.target);t.constraint=r?Dc(r,t.mapper):xe}else{var n=(i=t).symbol&&e.getDeclarationOfKind(i.symbol,147).constraint;t.constraint=n?cc(n):function(t){var r;if(t.symbol)for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n];if(171===a.parent.kind&&161===a.parent.parent.kind){var o=a.parent.parent,s=yf(o);if(s){var c=o.typeArguments.indexOf(a.parent);if(c<s.length){var u=Na(s[c]);if(u){var l=Dc(u,dc(s,mf(o,s)));l!==t&&(r=e.append(r,l))}}}}}return r&&Es(r)}(t)||xe}var i;return t.constraint===xe?void 0:t.constraint}function Co(t){return cn(e.getDeclarationOfKind(t.symbol,147).parent)}function Eo(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var i=e[n].id,a=1;n+a<r&&e[n+a].id===i+a;)a++;t.length&&(t+=","),t+=i,a>1&&(t+=":"+a),n+=a}return t}function No(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var a=i[n];a.flags&t||(r|=a.flags)}return 117440512&r}function Ao(e,t){var r=Eo(t),n=e.instantiations.get(r);return n||(n=mn(4,e.symbol),e.instantiations.set(r,n),n.flags|=t?No(t,0):0,n.target=e,n.typeArguments=t),n}function Po(e){var t=pn(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.typeArguments=e.typeArguments,t}function wo(t){return e.length(t.target.typeParameters)}function Fo(t,r,n){var i=Ri(sn(r)),a=i.localTypeParameters;if(a){var o=e.length(t.typeArguments),s=no(a),c=e.isInJavaScriptFile(t);if((O||!c)&&(o<s||o>a.length)){var u=c&&286!==t.parent.kind;if(ur(t,s===a.length?u?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:u?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,wn(i,void 0,2),s,a.length),!c)return ee}return Ao(i,e.concatenate(i.outerTypeParameters,io(n,a,s,c)))}return Ko(t,r)?i:ee}function Oo(t,r){var n=Ri(t),i=vr(t),a=i.typeParameters,o=Eo(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=Dc(n,dc(a,io(r,a,no(a),e.isInJavaScriptFile(t.valueDeclaration))))),s}function Io(t){switch(t.kind){case 161:return t.typeName;case 206:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function Mo(e,t){return e&&Wr(e,t)||X}function Lo(e,t){var r=qo(e);if(t===X)return ee;var n=Ro(e,t,r);if(n)return n;var i=Bi(t);if(i)return Ko(e,t)?32768&i.flags?Jo(i,e):i:ee;if(!(67216319&t.flags&&zo(e)))return ee;var a=op(t),o=fi(t),s=o.symbol&&!up(o)&&Ro(e,o.symbol,r);return s||a?s&&a?Es([a,s]):s||a:(Mo(Io(e),67901928),o)}function Ro(t,r,n){return 96&r.flags?Fo(t,r,n):524288&r.flags?function(t,r,n){var i=Ri(r),a=vr(r).typeParameters;if(a){var o=e.length(t.typeArguments),s=no(a);return o<s||o>a.length?(ur(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,An(r),s,a.length),ee):Oo(r,n)}return Ko(t,r)?i:ee}(t,r,n):16&r.flags&&zo(t)&&(r.members||e.getJSDocClassTag(r.valueDeclaration))?cp(r):void 0}function Bo(e){return 167===e.kind&&1===e.elementTypes.length}function jo(e,t,r){return Bo(t)&&Bo(r)?jo(e,t.elementTypes[0],r.elementTypes[0]):zs(cc(t))===e?cc(r):void 0}function Jo(t,r){for(var n;r&&!e.isStatement(r);){var i=r.parent;if(170===i.kind&&r===i.trueType){var a=jo(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?function(e,t){var r=pn(4194304);return r.typeVariable=e,r.substitute=t,r}(t,Es(e.append(n,t))):t}function zo(e){return 1048576&e.flags&&161===e.kind}function Ko(t,r){return!t.typeArguments||(ur(t,e.Diagnostics.Type_0_is_not_generic,r?An(r):t.typeName?e.declarationNameToString(t.typeName):"(anonymous)"),!1)}function Uo(t){var r=br(t);if(!r.resolvedType){var n=void 0,i=void 0,a=67901928;zo(t)&&(i=function(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Ko(t),ae;case"Number":return Ko(t),oe;case"Boolean":return Ko(t),ue;case"Void":return Ko(t),_e;case"Undefined":return Ko(t),te;case"Null":return Ko(t),ne;case"Function":case"function":return Ko(t),Ae;case"Array":case"array":return r&&r.length?void 0:Re;case"Promise":case"promise":return r&&r.length?void 0:Sp(Y);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=cc(r[0]),i=ko(cc(r[1]),!1);return vn(void 0,D,e.emptyArray,e.emptyArray,n===ae&&i,n===oe&&i)}return Y}return Ko(t),Y}}}(t),a|=67216319),i||(i=Lo(t,n=Mo(Io(t),a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function qo(t){return e.map(t.typeArguments,cc)}function Vo(e){var t=br(e);return t.resolvedType||(t.resolvedType=Mu(nf(e.exprName))),t.resolvedType}function Wo(t,r){function n(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 234:case 235:case 237:return n}}}if(!t)return r?ve:ge;var i=Ri(t);return 65536&i.flags?e.length(i.typeParameters)!==r?(ur(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?ve:ge):i:(ur(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?ve:ge)}function Ho(t,r){return Go(t,67216319,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function Go(e,t,r){return Dr(void 0,e,t,r,e,!1)}function Xo(t,r,n){var i=function(t,r){return Go(t,67901928,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}(t,n);return i||n?Wo(i,r):void 0}function Qo(e){return ze||(ze=Ho("Symbol",e))}function Yo(e){return Ke||(Ke=Xo("Symbol",0,e))||ge}function $o(e){return qe||(qe=Xo("Promise",1,e))||ve}function Zo(e){return Ve||(Ve=Ho("Promise",e))}function es(e){return Qe||(Qe=Xo("AsyncIterable",1,e))||ve}function ts(e){return Ye||(Ye=Xo("AsyncIterator",1,e))||ve}function rs(e){return $e||($e=Xo("AsyncIterableIterator",1,e))||ve}function ns(e){return He||(He=Xo("Iterable",1,e))||ve}function is(e){return Ge||(Ge=Xo("Iterator",1,e))||ve}function as(e){return Xe||(Xe=Xo("IterableIterator",1,e))||ve}function os(e,t){void 0===t&&(t=0);var r=Go(e,67901928,void 0);return r&&Wo(r,t)}function ss(e,t){return e!==ve?Ao(e,t):ge}function cs(e){return ss(Ue||(Ue=Xo("TypedPropertyDescriptor",1,!0))||ve,[e])}function us(e){return ss(rs(!0),[e])}function ls(e){return ss(ns(!0),[e])}function _s(e){return ss(as(!0),[e])}function ds(e){return ss(Pe,[e])}function ps(t){return K[t]||(K[t]=function(t){for(var r=[],n=[],i=0;i<t;i++){var a=pn(32768);r.push(a);var o=_r(4,""+i);o.type=a,n.push(o)}var s=_r(4,"length");s.type=ac(t),n.push(s);var c=mn(12);return c.typeParameters=r,c.outerTypeParameters=void 0,c.localTypeParameters=r,c.instantiations=e.createMap(),c.instantiations.set(Eo(c.typeParameters),c),c.target=c,c.typeArguments=c.typeParameters,c.thisType=pn(32768),c.thisType.isThisType=!0,c.thisType.constraint=c,c.declaredProperties=n,c.declaredCallSignatures=e.emptyArray,c.declaredConstructSignatures=e.emptyArray,c.declaredStringIndexInfo=void 0,c.declaredNumberIndexInfo=void 0,c}(t))}function fs(e){return Ao(ps(e.length),e)}function ms(e){return e.id}function gs(t,r){return e.binarySearch(t,r,ms,e.compareValues)>=0}function ys(t,r,n){var i=n.flags;if(131072&i)r=hs(t,r,n.types);else if(1&i)r|=1,n===Z&&(r|=4096);else if(!P&&12288&i)4096&i&&(r|=2),8192&i&&(r|=4),16777216&i||(r|=16);else if(!(16384&i||262144&i&&function(e){for(var t=0,r=0,n=e.types;r<n.length;r++){var i=n[r];if(13536&i.flags&&13536&t)return!0;if(12288&(t|=i.flags)&&134283264&t)return!0}return!1}(n))){2&i&&(r|=32),4&i&&(r|=64),512&i&&(r|=128),1120&i&&(r|=256);var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,ms,e.compareValues);o<0&&(65536&i&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&vs(t,n)||t.splice(~o,0,n))}return r}function hs(e,t,r){for(var n=0,i=r;n<i.length;n++)t=ys(e,t,i[n]);return t}function vs(e,t){for(var r=0,n=e;r<n.length;r++)if(wc(n[r],t))return!0;return!1}function bs(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(t!==a&&Ic(t,a)&&(!(1&e.getObjectFlags(gi(t)))||!(1&e.getObjectFlags(gi(a)))||Lc(t,a)))return!0}return!1}function xs(t){if(0!==t.length&&!function(e){var t=e[0];if(256&t.flags){for(var r=un(t.symbol),n=1;n<e.length;n++){var i=e[n];if(!(256&i.flags)||r!==un(i.symbol))return!1}return!0}return!1}(t))for(var r=t.length;r>0;)bs(t[--r],t)&&e.orderedRemoveItemAt(t,r)}function Ss(t,r,n,i){if(void 0===r&&(r=1),0===t.length)return de;if(1===t.length)return t[0];var a=[],o=hs(a,0,t);if(1&o)return 4096&o?Z:Y;switch(r){case 1:256&o&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(32&i.flags&&32&r||64&i.flags&&64&r||1024&i.flags&&128&r||96&i.flags&&8388608&i.flags&&gs(t,i.regularType))&&e.orderedRemoveItemAt(t,n)}}(a,o);break;case 2:xs(a)}return 0===a.length?4&o?16&o?ne:ie:2&o?16&o?te:re:de:Ds(a,n,i)}function ks(t,r){return e.isIdentifierTypePredicate(t)?e.isIdentifierTypePredicate(r)&&t.parameterIndex===r.parameterIndex:!e.isIdentifierTypePredicate(r)}function Ds(e,t,r){if(0===e.length)return de;if(1===e.length)return e[0];var n=Eo(e),i=U.get(n);return i||(i=pn(131072|No(e,12288)),U.set(n,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=r),i}function Ts(t,r,n){var i=n.flags;return 262144&i?r=Cs(t,r,n.types):1&i?(r|=1,n===Z&&(r|=4096)):16384&i?r|=8:16&e.getObjectFlags(n)&&qc(n)?r|=1024:!P&&12288&i||e.contains(t,n)||(65536&i&&(r|=512),131072&i&&(r|=2048),65536&i&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&vs(t,n)||t.push(n)),r}function Cs(e,t,r){for(var n=0,i=r;n<i.length;n++)t=Ts(e,t,ic(i[n]));return t}function Es(t,r,n){if(0===t.length)return ge;var i=[],a=Cs(i,0,t);if(8&a)return de;if(1&a)return 4096&a?Z:Y;if(1024&a&&!(512&a)&&i.push(ge),1===i.length)return i[0];if(2048&a){var o=e.findIndex(i,function(e){return 0!=(131072&e.flags)}),s=i[o];return Ss(e.map(s.types,function(t){return Es(e.replaceElement(i,o,t))}),1,r,n)}var c=Eo(i),u=q.get(c);return u||(u=pn(262144|No(i,12288)),q.set(c,u),u.types=i,u.aliasSymbol=r,u.aliasTypeArguments=n),u}function Ns(t){var r=vr(ea(t));return r.nameType||(r.target&&r.target!==X&&r.target!==Q&&r.target.escapedName===t.escapedName?r.nameType=Ns(r.target):r.nameType=24&e.getDeclarationModifierFlagsFromSymbol(t)||e.isKnownSymbol(t)?de:ac(e.symbolName(t))),r.nameType}function As(e){return Rp(e,524322)}function Ps(t,r){return 262144&t.flags?Ss(e.map(t.types,function(e){return Ps(e,r)})):Lp(t,7372800)?function(e,t){var r=t?"resolvedDeclaredIndexType":"resolvedIndexType";return e[r]||(e[r]=pn(524288),e[r].type=e,t&&(e[r].isDeclaredType=!0)),e[r]}(t,r):32&e.getObjectFlags(t)?ma(t):t===Z?Z:1&t.flags||Ha(t,0)?ae:function(t,r){var n=e.map(Ca(t),Ns);return Ss(r?n:e.filter(n,As))}(t,r)}function ws(t,r,n,i){var a=n&&185===n.kind?n:void 0,o=Wi(r)?Qi(r):a&&Cd(a.argumentExpression,r,!1)?e.getPropertyNameForKnownSymbolName(e.idText(a.argumentExpression.name)):void 0;if(void 0!==o){var s=Ka(t,o);if(s){if(a){if(Sd(s,a,99===a.expression.kind),e.isAssignmentTarget(a)&&(Op(a,s)||Ip(a)))return ur(a.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,An(s)),ee;i&&(br(n).resolvedSymbol=s)}return fi(s)}}if(!(12288&r.flags)&&Rp(r,525942)){if(Wn(t))return t;var c=Rp(r,84)&&Ha(t,1)||Ha(t,0)||void 0;if(c)return a&&c.isReadonly&&(e.isAssignmentTarget(a)||e.isDeleteTarget(a))&&ur(a,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,wn(t)),c.type;if(16384&r.flags)return de;if(a&&!jp(t))return O&&!C.suppressImplicitAnyIndexErrors&&(Ga(t,1)?ur(a.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):ur(a,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,wn(t))),Y}if(n){var u=185===n.kind?n.argumentExpression:n.indexType;return 96&r.flags?ur(u,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,wn(t)):6&r.flags?ur(u,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,wn(t),wn(r)):ur(u,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,wn(r)),ee}return Y}function Fs(e){return Lp(e,544243712)}function Os(e){return Lp(e,7897088)}function Is(e){if(65536&e.flags&&!xa(e)){var t=Sa(e);return 0===t.properties.length&&0===t.callSignatures.length&&0===t.constructSignatures.length&&t.stringIndexInfo&&!t.numberIndexInfo}return!1}function Ms(t){return 32&e.getObjectFlags(t)&&ga(t)===de}function Ls(t){var r=t.objectType;if(262144&r.flags&&Fs(r)){if(e.some(r.types,Is)){for(var n=[],i=[],a=0,o=r.types;a<o.length;a++){var s=o[a];Is(s)?i.push(Ga(s,0)):n.push(s)}return Ss([Bs(Es(n),t.indexType),Es(i)])}if(e.some(r.types,Ms))return Bs(Es(e.filter(r.types,function(e){return!Ms(e)})),t.indexType)}if(xa(r))return Rs(r,t);if(32768&r.flags){var c=To(r);if(c&&xa(c))return Rs(c,t)}}function Rs(e,t){var r=dc([fa(e)],[t.indexType]),n=fc(e.mapper,r);return Dc(ga(e),n)}function Bs(e,t,r){if(e===Z||t===Z)return Z;if(Os(t)||(!r||185!==r.kind)&&Fs(e)){if(1&e.flags)return e;var n=e.id+","+t.id,i=W.get(n);return i||W.set(n,i=function(e,t){var r=pn(1048576);return r.objectType=e,r.indexType=t,r}(e,t)),i}var a=Ba(e);if(131072&t.flags&&!(8&t.flags)){for(var o=[],s=0,c=t.types;s<c.length;s++){var u=ws(a,c[s],r,!1);if(u===ee)return ee;o.push(u)}return Ss(o)}return ws(a,t,r,!0)}function js(e){var t=br(e);if(!t.resolvedType){var r=cc(e.objectType),n=cc(e.indexType),i=Bs(r,n,e);t.resolvedType=1048576&i.flags&&i.objectType===r&&i.indexType===n?Jo(i,e):i}return t.resolvedType}function Js(e){var t=br(e);if(!t.resolvedType){var r=mn(32,e.symbol);r.declaration=e,r.aliasSymbol=Qs(e),r.aliasTypeArguments=Ys(e),t.resolvedType=r,ma(r)}return t.resolvedType}function zs(e){return 4194304&e.flags?e.typeVariable:e}function Ks(e,t){var r=Dc(e.checkType,t),n=Dc(e.extendsType,t);if(r===Z||n===Z)return Z;var i,a=e.isDistributive&&Lp(r,7897088);if(e.inferTypeParameters){var o=Ju(e.inferTypeParameters,void 0,0);a||Xu(o.inferences,r,n,96),i=fc(t,o)}if(!a){if(1&r.flags)return Ss([Dc(e.trueType,i||t),Dc(e.falseType,t)]);var s=i?Dc(e.extendsType,i):n;if(!Mc(Tc(r),Tc(s)))return Dc(e.falseType,t);if(Xc(r,s,rr,void 0))return Dc(e.trueType,i||t)}var c=zs(r),u=pn(2097152);return u.root=e,u.checkType=c,u.extendsType=n,u.mapper=t,u.combinedMapper=i,u.aliasSymbol=e.aliasSymbol,u.aliasTypeArguments=lc(e.aliasTypeArguments,t),u}function Us(e){return e.resolvedTrueType||(e.resolvedTrueType=Dc(e.root.trueType,e.mapper))}function qs(e){return e.resolvedFalseType||(e.resolvedFalseType=Dc(e.root.falseType,e.mapper))}function Vs(t){var r;return t.locals&&t.locals.forEach(function(t){262144&t.flags&&(r=e.append(r,Ri(t)))}),r}function Ws(t){var r=br(t);if(!r.resolvedType){var n=cc(t.checkType),i=Ys(t),a=vi(t,!0),o=i?a:e.filter(a,function(e){return function(e,t){if(xc(e,t))return!0;for(;t;){if(170===t.kind&&xc(e,t.extendsType))return!0;t=t.parent}return!1}(e,t)}),s={node:t,checkType:n,extendsType:cc(t.extendsType),trueType:cc(t.trueType),falseType:cc(t.falseType),isDistributive:!!(32768&n.flags),inferTypeParameters:Vs(t),outerTypeParameters:o,instantiations:void 0,aliasSymbol:Qs(t),aliasTypeArguments:i};r.resolvedType=Ks(s,void 0),o&&(s.instantiations=e.createMap(),s.instantiations.set(Eo(o),r.resolvedType))}return r.resolvedType}function Hs(t){var r=br(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return ur(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=X,r.resolvedType=ee;if(!e.isLiteralImportTypeNode(t))return ur(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=X,r.resolvedType=ee;var n=cc(t.argument),i=t.isTypeOf?67216319:67901928,a=n.value,o=Xr(t,a,e.Diagnostics.Cannot_find_module_0,t,!1);if(!o)return r.resolvedSymbol=X,r.resolvedType=ee;var s=Yr(o,!1);if(e.nodeIsMissing(t.qualifier))s.flags&i?Gs(t,r,s,i):(ur(t,67216319===i?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here,a),r.resolvedSymbol=X,r.resolvedType=ee);else{for(var c=function t(r){return e.isIdentifier(r)?[r]:e.append(t(r.left),r.right)}(t.qualifier),u=s,l=void 0;l=c.shift();){var _=c.length?1920:i,d=Sr(rn(sn(Jr(u))),l.escapedText,_);if(!d)return ur(l,e.Diagnostics.Namespace_0_has_no_exported_member_1,Vr(u),e.declarationNameToString(l)),r.resolvedType=ee;br(l).resolvedSymbol=d,br(l.parent).resolvedSymbol=d,u=d}Gs(t,r,u,i)}}return r.resolvedType}function Gs(e,t,r,n){return t.resolvedSymbol=r,t.resolvedType=67216319===n?fi(r):Lo(e,r)}function Xs(t){var r=br(t);if(!r.resolvedType){var n=Qs(t);if(0!==Zi(t.symbol).size||n){var i=mn(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=Ys(t),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=ds(i)),r.resolvedType=i}else r.resolvedType=he}return r.resolvedType}function Qs(e){return 236===e.parent.kind?cn(e.parent):void 0}function Ys(e){var t=Qs(e);return t?xi(t):void 0}function $s(t,r,n,i,a){if(1&t.flags||1&r.flags)return Y;if(16384&t.flags)return r;if(16384&r.flags)return t;if(131072&t.flags)return wl(t,function(e){return $s(e,r,n,i,a)});if(131072&r.flags)return wl(r,function(e){return $s(t,e,n,i,a)});if(134742526&r.flags)return t;var o,s,c=e.createSymbolTable(),u=e.createUnderscoreEscapedMap();t===ge?(o=Ha(r,0),s=Ha(r,1)):(o=_a(Ha(t,0),Ha(r,0)),s=_a(Ha(t,1),Ha(r,1)));for(var l=0,_=Ca(r);l<_.length;l++){var d=65536&(g=_[l]).flags&&!(32768&g.flags);24&e.getDeclarationModifierFlagsFromSymbol(g)?u.set(g.escapedName,!0):tc(g)||d||c.set(g.escapedName,Zs(g))}for(var p=0,f=Ca(t);p<f.length;p++){var m=f[p];if(!(65536&m.flags&&!(32768&m.flags)||u.has(m.escapedName)||tc(m)))if(c.has(m.escapedName)){var g,y=fi(g=c.get(m.escapedName));if(16777216&g.flags){var h=e.concatenate(m.declarations,g.declarations),v=_r(4|16777216&m.flags,m.escapedName);v.type=Ss([fi(m),fl(y,131072)]),v.leftSpread=m,v.rightSpread=g,v.declarations=h,c.set(m.escapedName,v)}}else c.set(m.escapedName,Zs(m))}var b=vn(n,c,e.emptyArray,e.emptyArray,ec(o),ec(s));return b.flags|=33554432|i,b.objectFlags|=1152|a,b}function Zs(e){if(!Fp(e))return e;var t=_r(4|16777216&e.flags,e.escapedName);return t.type=fi(e),t.declarations=e.declarations,t.syntheticOrigin=e,t}function ec(e){return e&&e.isReadonly?ko(e.type,!1,e.declaration):e}function tc(t){return 8192&t.flags&&e.find(t.declarations,function(t){return e.isClassLike(t.parent)})}function rc(e,t,r){var n=pn(e);return n.symbol=r,n.value=t,n}function nc(e){if(96&e.flags&&!(8388608&e.flags)){if(!e.freshType){var t=rc(8388608|e.flags,e.value,e.symbol);t.regularType=e,e.freshType=t}return e.freshType}return e}function ic(e){return 96&e.flags&&8388608&e.flags?e.regularType:e}function ac(e,t,r){var n="number"==typeof e?"#":"@",i=t?t+n+e:n+e,a=V.get(i);if(!a){var o=("number"==typeof e?64:32)|(t?256:0);V.set(i,a=rc(o,e,r))}return a}function oc(t){if(e.isValidESSymbolDeclaration(t)){var r=cn(t),n=vr(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=function(e){var t=pn(1024);return t.symbol=e,t}(r))}return le}function sc(t){var r=br(t);return r.resolvedType||(r.resolvedType=function(t){var r=e.getThisContainer(t,!1),n=r&&r.parent;return!n||!e.isClassLike(n)&&235!==n.kind||e.hasModifier(r,32)||154===r.kind&&!e.isNodeDescendantOf(t,r.body)?(ur(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ee):Pi(cn(n)).thisType}(t)),r.resolvedType}function cc(t){switch(t.kind){case 119:case 276:case 277:return Y;case 137:return ae;case 134:return oe;case 122:return ue;case 138:return le;case 105:return _e;case 140:return te;case 95:return ne;case 131:return de;case 135:return 65536&t.flags?Y:me;case 173:case 99:return sc(t);case 177:return function(e){var t=br(e);return t.resolvedType||(t.resolvedType=ic(nf(e.literal))),t.resolvedType}(t);case 161:return Uo(t);case 160:return ue;case 206:return Uo(t);case 164:return Vo(t);case 166:return function(e){var t=br(e);return t.resolvedType||(t.resolvedType=ds(cc(e.elementType))),t.resolvedType}(t);case 167:return function(t){var r=br(t);return r.resolvedType||(r.resolvedType=fs(e.map(t.elementTypes,cc))),r.resolvedType}(t);case 168:return function(t){var r=br(t);return r.resolvedType||(r.resolvedType=Ss(e.map(t.types,cc),1,Qs(t),Ys(t))),r.resolvedType}(t);case 169:return function(t){var r=br(t);return r.resolvedType||(r.resolvedType=Es(e.map(t.types,cc),Qs(t),Ys(t))),r.resolvedType}(t);case 278:return function(e){var t=cc(e.type);return P?Tu(t,8192):t}(t);case 280:return Zn(cc(t.type));case 172:case 279:case 275:return cc(t.type);case 282:return function(t){var r=cc(t.type),n=t.parent,i=n.parent;if(e.isJSDocTypeExpression(n)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i);if(a){var o=e.lastOrUndefined(a.parameters),s=e.getParameterSymbolFromJSDoc(i);if(!o||s&&o.symbol===s&&e.isRestParameter(o))return ds(r)}}return e.isParameter(n)&&e.isJSDocFunctionType(n.parent)?ds(r):Zn(r)}(t);case 162:case 163:case 165:case 284:case 281:return Xs(t);case 174:return function(t){var r=br(t);if(!r.resolvedType)switch(t.operator){case 128:r.resolvedType=Ps(cc(t.type));break;case 141:r.resolvedType=138===t.type.kind?oc(e.walkUpParenthesizedTypes(t.parent)):ee}return r.resolvedType}(t);case 175:return js(t);case 176:return Js(t);case 170:return Ws(t);case 171:return function(e){var t=br(e);return t.resolvedType||(t.resolvedType=Li(cn(e.typeParameter))),t.resolvedType}(t);case 178:return Hs(t);case 71:case 145:var r=Zm(t);return r&&Ri(r);default:return ee}}function uc(e,t,r){if(e&&e.length)for(var n=0;n<e.length;n++){var i=e[n],a=r(i,t);if(i!==a){var o=0===n?[]:e.slice(0,n);for(o.push(a),n++;n<e.length;n++)o.push(r(e[n],t));return o}}return e}function lc(e,t){return uc(e,t,Dc)}function _c(e,t){return uc(e,t,hc)}function dc(t,r){return e.Debug.assert(void 0===r||t.length===r.length),1===t.length?(s=t[0],c=r?r[0]:Y,function(e){return e===s?c:e}):2===t.length?(n=t[0],i=r?r[0]:Y,a=t[1],o=r?r[1]:Y,function(e){return e===n?i:e===a?o:e}):function(e,t){return function(r){for(var n=0;n<e.length;n++)if(r===e[n])return t?t[n]:Y;return r}}(t,r);var n,i,a,o,s,c}function pc(e){return dc(e,void 0)}function fc(e,t){return e?t?function(r){return Dc(e(r),t)}:e:t}function mc(e,t,r){return function(n){return n===e?t:r(n)}}function gc(e){return 32768&e.flags?Z:e}function yc(e){var t=pn(32768);return t.symbol=e.symbol,t.target=e,t}function hc(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,yc),r=fc(dc(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++)o[a].mapper=r}var s=na(t.declaration,i,t.thisParameter&&vc(t.thisParameter,r),uc(t.parameters,r,vc),void 0,void 0,t.minArgumentCount,t.hasRestParameter,t.hasLiteralTypes);return s.target=t,s.mapper=r,s}function vc(t,r){var n=vr(t);if(n.type&&!Lp(n.type,7962624))return t;1&e.getCheckFlags(t)&&(t=n.target,r=fc(n.mapper,r));var i=_r(t.flags,t.escapedName,1|1024&e.getCheckFlags(t));return i.declarations=t.declarations,i.parent=t.parent,i.target=t,i.mapper=r,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.isRestParameter&&(i.isRestParameter=t.isRestParameter),i}function bc(t,r){var n=64&t.objectFlags?t.target:t,i=n.symbol,a=vr(i),o=a.outerTypeParameters;if(!o){var s=i.declarations[0],c=vi(s,!0);if(ap(s)){var u=Qa(s);c=e.addRange(c,u)}o=c||e.emptyArray,o=2048&i.flags&&!n.aliasTypeArguments?e.filter(o,function(e){return xc(e,s)}):o,a.outerTypeParameters=o,o.length&&(a.instantiations=e.createMap(),a.instantiations.set(Eo(o),n))}if(o.length){var l=64&t.objectFlags?fc(t.mapper,r):r,_=e.map(o,l),d=Eo(_),p=a.instantiations.get(d);if(!p){var f=dc(o,_);p=32&n.objectFlags?function(e,t){var r=ma(e);if(524288&r.flags){var n=r.type;if(32768&n.flags){var i=Dc(n,t);if(n!==i)return wl(i,function(r){return function(e){return 7700481&e.flags}(r)?Sc(e,mc(n,r,t)):r})}}return Sc(e,t)}(n,f):Sc(n,f),a.instantiations.set(d,p)}return p}return t}function xc(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){var n=t.symbol.declarations[0].parent;if(e.findAncestor(r,function(e){return 212===e.kind?"quit":e===n}))return e.forEachChild(r,function r(n){switch(n.kind){case 173:return t.isThisType;case 71:return!t.isThisType&&e.isPartOfTypeNode(n)&&function(e){return!(145===e.kind||161===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName)}(n)&&cc(n)===t;case 164:return!0}return e.forEachChild(n,r)})}return!0}function Sc(e,t){var r=mn(64|e.objectFlags,e.symbol);return 32&e.objectFlags&&(r.declaration=e.declaration),r.target=e,r.mapper=t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=lc(e.aliasTypeArguments,t),r}function kc(t,r){var n=t.root;if(n.outerTypeParameters){var i=e.map(n.outerTypeParameters,r),a=Eo(i),o=n.instantiations.get(a);return o||(o=function(e,t){if(e.isDistributive){var r=e.checkType,n=t(r);if(r!==n&&147456&n.flags)return wl(n,function(n){return Ks(e,mc(r,n,t))})}return Ks(e,t)}(n,dc(n.outerTypeParameters,i)),n.instantiations.set(a,o)),o}return t}function Dc(e,t){if(e&&t&&t!==T){if(32768&e.flags)return t(e);if(65536&e.flags){if(16&e.objectFlags)return e.symbol&&14384&e.symbol.flags&&e.symbol.declarations?bc(e,t):e;if(32&e.objectFlags)return bc(e,t);if(4&e.objectFlags){var r=e.typeArguments,n=lc(r,t);return n!==r?Ao(e.target,n):e}}var i,a;if(131072&e.flags&&!(16382&e.flags))return(a=lc(i=e.types,t))!==i?Ss(a,1,e.aliasSymbol,lc(e.aliasTypeArguments,t)):e;if(262144&e.flags)return(a=lc(i=e.types,t))!==i?Es(a,e.aliasSymbol,lc(e.aliasTypeArguments,t)):e;if(524288&e.flags)return Ps(Dc(e.type,t));if(1048576&e.flags)return Bs(Dc(e.objectType,t),Dc(e.indexType,t));if(2097152&e.flags)return kc(e,fc(e.mapper,t));if(4194304&e.flags)return Dc(e.typeVariable,t)}return e}function Tc(e){return 32767&e.flags?e:e.wildcardInstantiation||(e.wildcardInstantiation=Dc(e,gc))}function Cc(e,t){return e&&ko(Dc(e.type,t),e.isReadonly,e.declaration)}function Ec(t){switch(e.Debug.assert(153!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 191:case 192:case 153:return Nc(t);case 183:return e.forEach(t.properties,Ec);case 182:return e.forEach(t.elements,Ec);case 200:return Ec(t.whenTrue)||Ec(t.whenFalse);case 199:return 54===t.operatorToken.kind&&(Ec(t.left)||Ec(t.right));case 269:return Ec(t.initializer);case 190:return Ec(t.expression);case 262:return e.forEach(t.properties,Ec);case 261:return t.initializer&&Ec(t.initializer);case 264:return t.expression&&Ec(t.expression)}return!1}function Nc(t){if(t.typeParameters)return!1;if(e.forEach(t.parameters,function(t){return!e.getEffectiveTypeAnnotationNode(t)}))return!0;if(192!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!e.parameterIsThisKeyword(r))return!0}return 212!==t.body.kind&&Ec(t.body)}function Ac(t){return(e.isInJavaScriptFile(t)&&e.isFunctionDeclaration(t)||A_(t)||e.isObjectLiteralMethod(t))&&Nc(t)}function Pc(t){if(65536&t.flags){var r=Sa(t);if(r.constructSignatures.length){var n=mn(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n}}else if(262144&t.flags)return Es(e.map(t.types,Pc));return t}function wc(e,t){return Hc(e,t,ir)}function Fc(e,t){return Hc(e,t,ir)?-1:0}function Oc(e,t){return Hc(e,t,tr)?-1:0}function Ic(e,t){return Hc(e,t,er)}function Mc(e,t){return Hc(e,t,tr)}function Lc(t,r){return 131072&t.flags?e.every(t.types,function(e){return Lc(e,r)}):131072&r.flags?e.some(r.types,function(e){return Lc(t,e)}):7372800&t.flags?Lc(Fa(t)||ge,r):r===Ne||r===Ae?Ic(t,r):yi(t,gi(r))}function Rc(e,t){return Hc(e,t,nr)}function Bc(e,t){return Rc(e,t)||Rc(t,e)}function jc(e,t,r,n,i){return Xc(e,t,tr,r,n,i)}function Jc(e,t,r,n,i){return Xc(e,t,nr,r,n,i)}function zc(t,r,n,i,a,o,s){if(t===r)return-1;if(!r.hasRestParameter&&t.minArgumentCount>r.parameters.length)return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Id(t,r=ho(r),void 0,s));var c=r.declaration?r.declaration.kind:0,u=!n&&w&&153!==c&&152!==c&&154!==c,l=-1,_=co(t);if(_&&_!==_e){var d=co(r);if(d){if(!(v=!u&&s(_,d,!1)||s(d,_,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;l&=v}}for(var p=Uc(t),f=Uc(r),m=function(e,t,r,n){return e.hasRestParameter===r.hasRestParameter?e.hasRestParameter?Math.max(t,n)+1:Math.min(t,n):e.hasRestParameter?n:t}(t,p,r,f),g=t.parameters,y=r.parameters,h=0;h<m;h++){var v,b=h<p?yp(g[h]):po(t),x=h<f?yp(y[h]):po(r),S=n?void 0:Od(Eu(b)),k=n?void 0:Od(Eu(x));if(!(v=S&&k&&!uo(S)&&!uo(k)&&(12288&Su(b))==(12288&Su(x))?zc(k,S,u?2:1,!1,a,o,s):!n&&!u&&s(b,x,!1)||s(x,b,a)))return a&&o(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.symbolName(g[h<p?h:p]),e.symbolName(y[h<f?h:f])),0;l&=v}if(!i){var D=_o(r);if(D===_e)return l;var T=_o(t),C=lo(r);if(C){var E=lo(t);if(E)l&=function(t,r,n,i,a,o,s){if(t.kind!==r.kind)return a&&(o(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,On(t),On(r))),0;if(1===t.kind){var c=r,u=t.parameterIndex-(e.getThisParameter(n)?1:0),l=c.parameterIndex-(e.getThisParameter(i)?1:0);if(u!==l)return a&&(o(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,c.parameterName),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,On(t),On(r))),0}var _=s(t.type,r.type,a);return 0===_&&a&&o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,On(t),On(r)),_}(E,C,t.declaration,r.declaration,a,o,s);else if(e.isIdentifierTypePredicate(C))return a&&o(e.Diagnostics.Signature_0_must_be_a_type_predicate,Pn(t)),0}else l&=1===n&&s(D,T,!1)||s(T,D,a)}return l}function Kc(e,t){var r=yo(e),n=yo(t),i=_o(r),a=_o(n);return!(a!==_e&&!Hc(a,i,tr)&&!Hc(i,a,tr))&&0!==zc(r,n,0,!0,!1,void 0,Oc)}function Uc(e){var t=e.parameters.length;return e.hasRestParameter?t-1:t}function qc(t){return 65536&t.flags?0===(r=Sa(t)).properties.length&&0===r.callSignatures.length&&0===r.constructSignatures.length&&!r.stringIndexInfo&&!r.numberIndexInfo:!!(134217728&t.flags)||(131072&t.flags?e.forEach(t.types,qc):!!(262144&t.flags)&&!e.forEach(t.types,function(e){return!qc(e)}));var r}function Vc(t,r,n){if(t===r)return!0;var i=u(t)+","+u(r),a=ar.get(i);if(void 0!==a)return a;if(!(t.escapedName===r.escapedName&&256&t.flags&&256&r.flags))return ar.set(i,!1),!1;for(var o=fi(r),s=0,c=Ca(fi(t));s<c.length;s++){var l=c[s];if(8&l.flags){var _=Ka(o,l.escapedName);if(!(_&&8&_.flags))return n&&n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(l),wn(Ri(r),void 0,64)),ar.set(i,!1),!1}}return ar.set(i,!0),!0}function Wc(e,t,r,n){var i=e.flags,a=t.flags;if(1&a||16384&i||e===Z)return!0;if(16384&a)return!1;if(524322&i&&2&a)return!0;if(32&i&&256&i&&32&a&&!(256&a)&&e.value===t.value)return!0;if(84&i&&4&a)return!0;if(64&i&&256&i&&64&a&&!(256&a)&&e.value===t.value)return!0;if(136&i&&8&a)return!0;if(1536&i&&512&a)return!0;if(16&i&&16&a&&Vc(e.symbol,t.symbol,n))return!0;if(256&i&&256&a){if(131072&i&&131072&a&&Vc(e.symbol,t.symbol,n))return!0;if(224&i&&224&a&&e.value===t.value&&Vc(un(e.symbol),un(t.symbol),n))return!0}if(4096&i&&(!P||6144&a))return!0;if(8192&i&&(!P||8192&a))return!0;if(65536&i&&134217728&a)return!0;if(1024&i||1024&a)return!1;if(r===tr||r===rr||r===nr){if(1&i)return!0;if(68&i&&!(256&i)&&(16&a||64&a&&256&a))return!0}return!1}function Hc(e,t,r){if(96&e.flags&&8388608&e.flags&&(e=e.regularType),96&t.flags&&8388608&t.flags&&(t=t.regularType),e===t||r===nr&&!(16384&t.flags)&&Wc(t,e,r)||r!==ir&&Wc(e,t,r))return!0;if(65536&e.flags&&65536&t.flags){var n=r.get(tu(e,t,r));if(void 0!==n)return 1===n}return!!(8355840&e.flags||8355840&t.flags)&&Xc(e,t,r,void 0)}function Gc(t,r,n){return 4096&e.getObjectFlags(t)&&!(z_(r.escapedName)||n)}function Xc(t,r,n,i,a,o){var s,c,u,l,_=0,d=0,f=0,m=!1,g=!1;e.Debug.assert(n!==ir||!i,"no error reporting in identity checking");var y=S(t,r,!!i,a);if(m)ur(i,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,wn(t),wn(r));else if(s){if(o){var h=o();h&&(s=e.concatenateDiagnosticMessageChains(h,s))}Bt.add(e.createDiagnosticForNodeFromMessageChain(i,s))}if(a&&i&&!y&&t.symbol){var v=vr(t.symbol);v.originatingImport&&!e.isImportCall(v.originatingImport)&&Xc(fi(v.target),r,n,void 0)&&Bt.add(e.createDiagnosticForNode(v.originatingImport,e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime))}return 0!==y;function b(t,r,n,a){e.Debug.assert(!!i),s=e.chainDiagnosticMessages(s,t,r,n,a)}function x(t,r,i){var a=wn(r),o=wn(i);a===o&&(a=wn(r,void 0,64),o=wn(i,void 0,64)),t||(t=n===nr?e.Diagnostics.Type_0_is_not_comparable_to_type_1:a===o?e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:e.Diagnostics.Type_0_is_not_assignable_to_type_1),b(t,a,o)}function S(t,r,a,o){if(96&t.flags&&8388608&t.flags&&(t=t.regularType),96&r.flags&&8388608&r.flags&&(r=r.regularType),4194304&t.flags&&(t=n===rr?t.typeVariable:t.substitute),4194304&r.flags&&(r=r.typeVariable),t===r)return-1;if(n===ir)return function(e,t){var r,n=e.flags&t.flags;return 65536&n?N(e,t,!1):393216&n&&(r=k(e,t))&&(r&=k(t,e))?r:524288&n?S(e.type,t.type,!1):1048576&n&&(r=S(e.objectType,t.objectType,!1))&&(r&=S(e.indexType,t.indexType,!1))?r:2097152&n&&e.root.isDistributive===t.root.isDistributive&&(r=S(e.checkType,t.checkType,!1))&&(r&=S(e.extendsType,t.extendsType,!1))&&(r&=S(Us(e),Us(t),!1))&&(r&=S(qs(e),qs(t),!1))?r:4194304&n?S(e.substitute,t.substitute,!1):0}(t,r);if(n===nr&&!(16384&r.flags)&&Wc(r,t,n)||Wc(t,r,n,a?b:void 0))return-1;if($u(t)&&8388608&t.flags){var c=131072&r.flags?T(t,r):void 0;if(function t(r,a,o,s){if(Lp(a,65536)&&!(512&e.getObjectFlags(a))){var c=!!(4096&e.getObjectFlags(r));if((n===tr||n===rr||n===nr)&&(Nl(Ne,a)||!c&&qc(a)))return!1;if(o)return t(r,o,void 0,s);for(var u=function(t){if(!od(a,t.escapedName,c)){if(s)if(e.Debug.assert(!!i),e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i))b(e.Diagnostics.Property_0_does_not_exist_on_type_1,An(t),wn(a));else{var n=r.symbol&&e.firstOrUndefined(r.symbol.declarations),o=void 0;if(t.valueDeclaration&&e.findAncestor(t.valueDeclaration,function(e){return e===n})){var u=t.valueDeclaration;e.Debug.assertNode(u,e.isObjectLiteralElementLike),i=u,e.isIdentifier(u.name)&&(o=yd(u.name,a))}void 0!==o?b(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,An(t),wn(a),o):b(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,An(t),wn(a))}return{value:!0}}},l=0,_=ka(r);l<_.length;l++){var d=_[l],f=u(d);if("object"===p(f))return f.value}}return!1}(t,r,c,a))return a&&x(o,t,r),0;(function(e){if(!(393216&e.flags))return!1;for(var t=!1,r=0,n=e.types;r<n.length;r++)if(!(12288&n[r].flags)){if(t)return!0;t=!0}return!1})(r)&&!c&&(t=Pu(t))}if(n!==nr&&!(393216&t.flags)&&!(131072&r.flags)&&!g&&t!==Ne&&(Ca(t).length>0||ng(t))&&P(r)&&!function(t,r){for(var n=!!(4096&e.getObjectFlags(t)),i=0,a=Ca(t);i<a.length;i++){var o=a[i];if(od(r,o.escapedName,n))return!0}return!1}(t,r)){if(a){var u=qa(t,0),l=qa(t,1);u.length>0&&S(_o(u[0]),r,!1)||l.length>0&&S(_o(l[0]),r,!1)?b(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,wn(t),wn(r)):b(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,wn(t),wn(r))}return 0}var _=0,d=s,f=g;return g=!1,131072&t.flags?_=n===nr?E(t,r,a&&!(16382&t.flags)):function(e,t,r){for(var n=-1,i=0,a=e.types;i<a.length;i++){var o=a[i],s=S(o,t,r);if(!s)return 0;n&=s}return n}(t,r,a&&!(16382&t.flags)):(131072&r.flags?_=D(t,r,a&&!(16382&t.flags)&&!(16382&r.flags)):262144&r.flags?(g=!0,_=function(e,t,r){for(var n=-1,i=0,a=t.types;i<a.length;i++){var o=a[i],s=S(e,o,r);if(!s)return 0;n&=s}return n}(t,r,a)):262144&t.flags&&(_=E(t,r,!1)),!_&&(8355840&t.flags||8355840&r.flags)&&(_=N(t,r,a))&&(s=d)),g=f,!_&&a&&(65536&t.flags&&16382&r.flags?function(t,r){var n=wn(t),i=wn(r);(Fe===t&&ae===r||Oe===t&&oe===r||Ie===t&&ue===r||Yo(!1)===t&&le===r)&&b(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(t,r):t.symbol&&65536&t.flags&&Ne===t&&b(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),x(o,t,r)),_}function k(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=D(i[n],t,!1);if(!a)return 0;r&=a}return r}function D(e,t,r){var n=t.types;if(131072&t.flags&&gs(n,e))return-1;for(var i=0,a=n;i<a.length;i++){var o=S(e,a[i],!1);if(o)return o}return r&&S(e,T(e,t)||n[n.length-1],!0),0}function T(e,t){var r,n=ka(e);if(n){var i=function(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(ll(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}(n,t);if(i)for(var a=0,o=i;a<o.length;a++)for(var s=o[a],c=fi(s),u=0,l=t.types;u<l.length;u++){var _=l[u],d=Vn(_,s.escapedName);if(d&&S(c,d)){if(_===r)continue;if(r)return;r=_}}}return r}function E(e,t,r){var n=e.types;if(131072&e.flags&&gs(n,t))return-1;for(var i=n.length,a=0;a<i;a++){var o=S(n[a],t,r&&a===i-1);if(o)return o}return 0}function N(t,r,i){if(m)return 0;var a=tu(t,r,n),o=n.get(a);if(void 0!==o){if(!i||2!==o)return 1===o?-1:0;n.set(a,3)}if(c){for(var p=0;p<_;p++)if(a===c[p])return 1;if(100===d)return m=!0,0}else c=[],u=[],l=[];var g=_;c[_]=a,_++,u[d]=t,l[d]=r,d++;var y=f;1&f||!au(t,u,d)||(f|=1),2&f||!au(r,l,d)||(f|=2);var h=3!==f?function(t,r,i){var a,o,c,u=s;if(32768&r.flags){if(32&e.getObjectFlags(t)&&ma(t)===Ps(r)&&!(4&ha(t))){var l=ga(t),_=Bs(r,fa(t));if(a=S(l,_,i))return a}}else if(524288&r.flags){if(524288&t.flags&&(a=S(r.type,t.type,!1)))return a;var d=A(r.type);if(d&&(a=S(t,Ps(d,r.isDeclaredType),i)))return a}else if(1048576&r.flags){var d=A(r);if(d&&(a=S(t,d,i)))return s=u,a}else if(xa(r)){var p=ga(r),f=ha(r);if(!(8&f)){if(1048576&p.flags&&p.objectType===t&&p.indexType===fa(r))return-1;if(!xa(t)&&ma(r)===Ps(t)){var _=Bs(t,fa(r)),l=ga(r);if(a=S(_,l,i))return s=u,a}}}if(32768&t.flags){var d=A(t);if(d||!(134217728&r.flags)){(!d||1&d.flags)&&(d=ge);var m=i&&d!==ge;if(a=S(d,r,m))return s=u,a}}else if(1048576&t.flags){var d=A(t);if(d){if(a=S(d,r,i))return s=u,a}else if(1048576&r.flags&&((a=S(t.objectType,r.objectType,i))&&(a&=S(t.indexType,r.indexType,i)),a))return s=u,a}else if(2097152&t.flags){if(2097152&r.flags){if(wc(t.extendsType,r.extendsType)&&(S(t.checkType,r.checkType)||S(r.checkType,t.checkType))&&((a=S(Us(t),Us(r),i))&&(a&=S(qs(t),qs(r),i)),a))return s=u,a}else if(n!==rr){var g=Pa(t);if(g&&(a=S(g,r,i)))return s=u,a;var y=Aa(t);if(y&&(a=S(y,r,i)))return s=u,a}}else{if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target&&!(8192&e.getObjectFlags(t)||8192&e.getObjectFlags(r))){var h=Yc(t.target);if(a=function(t,r,i,a){var o=t.typeArguments||e.emptyArray,s=r.typeArguments||e.emptyArray;if(o.length!==s.length&&n===ir)return 0;for(var c=o.length<=s.length?o.length:s.length,u=-1,l=0;l<c;l++){var _=l<i.length?i[l]:1;if(4!==_){var d=o[l],p=s[l],f=-1;if(1===_?f=S(d,p,a):2===_?f=S(p,d,a):3===_?(f=S(p,d,!1))||(f=S(d,p,a)):(f=S(d,p,a))&&(f&=S(p,d,a)),!f)return 0;u&=f}}return u}(t,r,h,i))return a;if(h!==e.emptyArray&&!function(e,t){for(var r=0;r<t.length;r++)if(1===t[r]&&2048&e.typeArguments[r].flags)return!0;return!1}(r,h)){if(!i||!e.some(h,function(e){return 0===e}))return 0;o=s,s=u}}var v=!!(16382&t.flags);if(n!==ir&&(t=Ba(t)),327680&t.flags&&65536&r.flags){var x=i&&s===u&&!v;if(c=r,32&e.getObjectFlags(c)&&4&ha(c)&&!xa(t)&&qc(t)?a=-1:xa(r)?a=xa(t)?function(e,t,r){var i;if((n===nr||(n===ir?ha(e)===ha(t):ba(e)<=ba(t)))&&(i=S(ma(t),ma(e),r))){var a=dc([fa(e)],[fa(t)]);return i&S(Dc(ga(e),a),ga(t),r)}return 0}(t,r,x):0:(a=function(t,r,i){if(n===ir)return function(e,t){if(!(65536&e.flags&&65536&t.flags))return 0;var r=ka(e),n=ka(t);if(r.length!==n.length)return 0;for(var i=-1,a=0,o=r;a<o.length;a++){var s=o[a],c=Da(t,s.escapedName);if(!c)return 0;var u=ou(s,c,S);if(!u)return 0;i&=u}return i}(t,r);var a=n===er&&!$u(t)&&!du(t),o=Hu(t,r,a);if(o)return i&&b(e.Diagnostics.Property_0_is_missing_in_type_1,An(o),wn(t)),0;if($u(r))for(var s=0,c=Ca(t);s<c.length;s++){var u=c[s];if(!Da(r,u.escapedName)){var l=fi(u);if(l!==te&&l!==re)return i&&b(e.Diagnostics.Property_0_does_not_exist_on_type_1,An(u),wn(r)),0}}for(var _=-1,d=0,p=ka(r);d<p.length;d++){var f=p[d];if(!(4194304&f.flags)){var u=Ka(t,f.escapedName);if(u&&u!==f){if(Gc(t,u,fi(f)))continue;var m=e.getDeclarationModifierFlagsFromSymbol(u),g=e.getDeclarationModifierFlagsFromSymbol(f);if(8&m||8&g){if(256&e.getCheckFlags(u))return i&&b(e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,An(u),wn(t)),0;if(u.valueDeclaration!==f.valueDeclaration)return i&&(8&m&&8&g?b(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,An(f)):b(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,An(f),wn(8&m?t:r),wn(8&m?r:t))),0}else if(16&g){if(!iu(u,f))return i&&b(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,An(f),wn(nu(u)||t),wn(nu(f)||r)),0}else if(16&m)return i&&b(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,An(f),wn(t),wn(r)),0;var y=S(fi(u),fi(f),i);if(!y)return i&&b(e.Diagnostics.Types_of_property_0_are_incompatible,An(f)),0;if(_&=y,n!==nr&&16777216&u.flags&&!(16777216&f.flags))return i&&b(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,An(f),wn(t),wn(r)),0}}}return _}(t,r,x))&&(a&=w(t,r,0,x))&&(a&=w(t,r,1,x))&&(a&=I(t,r,0,v,x))&&(a&=I(t,r,1,v,x)),a){if(!o)return s=u,a;s=o}}}return 0}(t,r,i):1;if(f=y,d--,h){if(-1===h||0===d){for(p=g;p<_;p++)n.set(c[p],1);_=g}}else n.set(a,i?3:2),_=g;return h}function A(e){return n===rr?void 0:Ea(e)}function P(t){if(65536&t.flags){var r=Sa(t);return 0===r.callSignatures.length&&0===r.constructSignatures.length&&!r.stringIndexInfo&&!r.numberIndexInfo&&r.properties.length>0&&e.every(r.properties,function(e){return!!(16777216&e.flags)})}return!!(262144&t.flags)&&e.every(t.types,P)}function w(t,r,i,a){if(n===ir)return function(e,t,r){var n=qa(e,r),i=qa(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=su(n[o],i[o],!1,!1,!1,S);if(!s)return 0;a&=s}return a}(t,r,i);if(r===be||t===be)return-1;var o=qa(t,i),c=qa(r,i);if(1===i&&o.length&&c.length){if(e.isAbstractConstructorType(t)&&!e.isAbstractConstructorType(r))return a&&b(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(t,r,n){if(!t.declaration||!r.declaration)return!0;var i=e.getSelectedModifierFlags(t.declaration,24),a=e.getSelectedModifierFlags(r.declaration,24);return 8===a||(16===a&&8!==i||(16!==a&&!i||(n&&b(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,In(i),In(a)),!1)))}(o[0],c[0],a))return 0}var u=-1,l=s;if(64&e.getObjectFlags(t)&&64&e.getObjectFlags(r)&&t.symbol===r.symbol)for(var _=0;_<c.length;_++){if(!(v=F(o[_],c[_],!0,a)))return 0;u&=v}else if(1===o.length&&1===c.length){var d=n===nr||C.noStrictGenericChecks;u=F(o[0],c[0],d,a)}else e:for(var p=0,f=c;p<f.length;p++){for(var m=f[p],g=a,y=0,h=o;y<h.length;y++){var v;if(v=F(h[y],m,!0,g)){u&=v,s=l;continue e}g=!1}return g&&b(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,wn(t),Pn(m,void 0,void 0,i)),0}return u}function F(e,t,r,n){return zc(r?yo(e):e,r?yo(t):t,0,!1,n,b,S)}function O(t,r,n){var i=S(t.type,r.type,n);return!i&&n&&b(e.Diagnostics.Index_signatures_are_incompatible),i}function I(t,r,i,a,o){if(n===ir)return function(e,t,r){var n=Ha(t,r),i=Ha(e,r);return i||n?i&&n&&i.isReadonly===n.isReadonly?S(i.type,n.type):0:-1}(t,r,i);var s=Ha(r,i);if(!s||1&s.type.flags&&!a)return-1;var c=Ha(t,i)||1===i&&Ha(t,0);if(c)return O(c,s,o);if(xa(t))return 0===i&&S(ga(t),s.type,o);if(Nu(t)){var u=-1;if(0===i){var l=Ha(t,1);l&&(u=O(l,s,o))}return u&&(u&=function(t,r,n,i){for(var a=-1,o=0,s=ka(t);o<s.length;o++){var c=s[o];if(!Gc(t,c,void 0)){var u=Ns(c);if((void 0===u||S(u,ae)||S(u,oe))&&(0===n||L_(c.escapedName))){var l=S(fi(c),r,i);if(!l)return i&&b(e.Diagnostics.Property_0_is_incompatible_with_index_signature,An(c)),0;a&=l}}}return a}(t,s.type,i,o)),u}return o&&b(e.Diagnostics.Index_signature_is_missing_in_type_0,wn(t)),0}}function Qc(t,r,n){var i=Ao(t,e.map(t.typeParameters,function(e){return e===r?n:e}));return i.objectFlags|=8192,i}function Yc(t){if(!w)return e.emptyArray;var r=t.typeParameters||e.emptyArray,n=t.variances;if(!n){if(t===Pe||t===we)n=[1];else{t.variances=e.emptyArray,n=[];for(var i=0,a=r;i<a.length;i++){var o=a[i],s=Qc(t,o,De),c=Qc(t,o,Te),u=(Mc(c,s)?1:0)|(Mc(s,c)?2:0);3===u&&Mc(Qc(t,o,nt),s)&&(u=4),n.push(u)}}t.variances=n}return n}function $c(e){return 32768&e.flags&&!To(e)}function Zc(t){return 4&e.getObjectFlags(t)&&e.some(t.typeArguments,function(e){return $c(e)||Zc(e)})}function eu(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,i=0,a=e.typeArguments;i<a.length;i++){var o=a[i];if($c(o)){var s=t.indexOf(o);s<0&&(s=t.length,t.push(o)),n+="="+s}else r<4&&Zc(o)?n+="<"+eu(o,t,r+1)+">":n+="-"+o.id}return n}function tu(e,t,r){if(r===ir&&e.id>t.id){var n=e;e=t,t=n}if(Zc(e)&&Zc(t)){var i=[];return eu(e,i)+","+eu(t,i)}return e.id+","+t.id}function ru(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=Ka(i[n],t.escapedName),o=a&&ru(a,r);if(o)return o}}function nu(e){return e.parent&&32&e.parent.flags?Ri(un(e)):void 0}function iu(t,r){return!ru(r,function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=nu(r),!ru(n,function(e){var t=nu(e);return!!t&&yi(t,i)}));var n,i})}function au(e,t,r){if(r>=5&&65536&e.flags){var n=e.symbol;if(n)for(var i=0,a=0;a<r;a++){var o=t[a];if(65536&o.flags&&o.symbol===n&&++i>=5)return!0}}return!1}function ou(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(Dm(t)!==Dm(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return Fp(t)!==Fp(r)?0:n(fi(t),fi(r))}function su(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var n=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(r&&e.minArgumentCount<=t.minArgumentCount&&(n>i||n===i&&e.parameters.length>=t.parameters.length))}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;t=yo(t),r=yo(r);var s=-1;if(!i){var c=co(t);if(c){var u=co(r);if(u){if(!(d=o(c,u)))return 0;s&=d}}}for(var l=r.parameters.length,_=0;_<l;_++){var d;if(!(d=o(cu(t,_)?po(t):yp(t.parameters[_]),cu(r,_)?po(r):yp(r.parameters[_]))))return 0;s&=d}if(!a){var p=lo(t),f=lo(r);s&=void 0!==p||void 0!==f?function(e,t,r){return void 0!==e&&void 0!==t&&ks(e,t)?r(e.type,t.type):0}(p,f,o):o(_o(t),_o(r))}return s}function cu(e,t){return e.hasRestParameter&&t>=e.parameters.length-1}function uu(t){return function(e){for(var t,r=0,n=e;r<n.length;r++){var i=n[r],a=gu(i);if(t||(t=a),a===i||a!==t)return!1}return!0}(t)?Ss(t):e.reduceLeft(t,function(e,t){return Ic(e,t)?t:e})}function lu(t){return 4&e.getObjectFlags(t)&&t.target===Pe}function _u(t){return 4&e.getObjectFlags(t)&&(t.target===Pe||t.target===we)||!(12288&t.flags)&&Mc(t,je)}function du(e){var t=lu(e)?e.typeArguments[0]:void 0;return t===re||t===fe}function pu(e){return!!Ka(e,"0")}function fu(e){return!!(13536&e.flags)}function mu(t){return!!(8&t.flags)||(131072&t.flags?!!(256&t.flags)||!e.forEach(t.types,function(e){return!fu(e)}):fu(t))}function gu(t){return 256&t.flags?Oi(t):32&t.flags?ae:64&t.flags?oe:128&t.flags?ue:131072&t.flags?Ss(e.sameMap(t.types,gu)):t}function yu(t){return 256&t.flags?Oi(t):32&t.flags&&8388608&t.flags?ae:64&t.flags&&8388608&t.flags?oe:128&t.flags?ue:131072&t.flags?Ss(e.sameMap(t.types,yu)):t}function hu(t){return 1024&t.flags?le:131072&t.flags?Ss(e.sameMap(t.types,hu)):t}function vu(t,r){return function t(r,n){if(n){if(393216&n.flags){var i=n.types;return e.some(i,function(e){return t(r,e)})}if(7372800&n.flags){var a=Fa(n)||ge;return 2&a.flags&&Lp(r,32)||4&a.flags&&Lp(r,64)||8&a.flags&&Lp(r,128)||512&a.flags&&Lp(r,1024)||t(r,a)}return 524320&n.flags&&Lp(r,32)||64&n.flags&&Lp(r,64)||128&n.flags&&Lp(r,128)||1024&n.flags&&Lp(r,1024)}return!1}(t,r)||(t=hu(yu(t))),t}function bu(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function xu(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=Su(n[r]);return t}function Su(e){return 131072&e.flags?xu(e.types):32&e.flags?""===e.value?32:0:64&e.flags?0===e.value?64:0:128&e.flags?e===ce?128:0:14574&e.flags}function ku(e){return 14560&Su(e)?Pl(e,function(e){return!(14560&Su(e))}):e}function Du(e){return 2&e.flags?vt:4&e.flags?bt:8&e.flags||e===ce?ce:14336&e.flags||32&e.flags&&""===e.value||64&e.flags&&0===e.value?e:de}function Tu(e,t){var r=t&~e.flags&12288;return 0===r?e:Ss(4096===r?[e,te]:8192===r?[e,ne]:[e,te,ne])}function Cu(t){return e.Debug.assert(P),4096&t.flags?t:Ss([t,te])}function Eu(e){return P?function(e){return Je||(Je=Go("NonNullable",524288,void 0)||X),Je!==X?Oo(Je,[e]):fl(e,524288)}(e):e}function Nu(e){return e.symbol&&0!=(6656&e.symbol.flags)&&!ng(e)}function Au(e,t){var r=_r(e.flags,e.escapedName);return r.declarations=e.declarations,r.parent=e.parent,r.type=t,r.target=e,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),r}function Pu(t){if(!($u(t)&&8388608&t.flags))return t;var r=t.regularType;if(r)return r;var n=t,i=function(t,r){for(var n=e.createSymbolTable(),i=0,a=ka(t);i<a.length;i++){var o=a[i],s=fi(o),c=r(s);n.set(o.escapedName,c===s?o:Au(o,c))}return n}(t,Pu),a=vn(n.symbol,i,n.callSignatures,n.constructSignatures,n.stringIndexInfo,n.numberIndexInfo);return a.flags=-8388609&n.flags,a.objectFlags|=128,t.regularType=a,a}function wu(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedPropertyNames:void 0}}function Fu(t){if(!t.resolvedPropertyNames){for(var r=e.createMap(),n=0,i=function e(t){if(!t.siblings){for(var r=[],n=0,i=e(t.parent);n<i.length;n++){var a=i[n];if($u(a)){var o=Da(a,t.propertyName);o&&Al(fi(o),function(e){r.push(e)})}}t.siblings=r}return t.siblings}(t);n<i.length;n++){var a=i[n];if($u(a)&&!(1024&e.getObjectFlags(a)))for(var o=0,s=Ca(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,!0)}}t.resolvedPropertyNames=e.arrayFrom(r.keys())}return t.resolvedPropertyNames}function Ou(e,t){var r=fi(e),n=Lu(r,t&&wu(t,e.escapedName,void 0));return n===r?e:Au(e,n)}function Iu(t){var r=G.get(t);if(r)return r;var n=_r(16777220,t);n.type=te;var i=ac(e.unescapeLeadingUnderscores(t));return 32&i.flags&&(n.nameType=i),G.set(t,n),n}function Mu(e){return Lu(e,void 0)}function Lu(t,r){if(50331648&t.flags){if(12288&t.flags)return Y;if($u(t))return function(t,r){for(var n=e.createSymbolTable(),i=0,a=ka(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,4&o.flags?Ou(o,r):o)}if(r)for(var s=0,c=Fu(r);s<c.length;s++){var u=c[s];n.has(u)||n.set(u,Iu(u))}var l=Ha(t,0),_=Ha(t,1);return vn(t.symbol,n,e.emptyArray,e.emptyArray,l&&ko(Mu(l.type),l.isReadonly),_&&ko(Mu(_.type),_.isReadonly))}(t,r);if(131072&t.flags){var n=r||wu(void 0,void 0,t.types),i=e.sameMap(t.types,function(e){return 12288&e.flags?e:Lu(e,n)});return Ss(i,e.some(i,qc)?2:1)}if(lu(t)||bu(t))return Ao(t.target,e.sameMap(t.typeArguments,Mu))}return t}function Ru(t,r){var n,i=wn(Mu(r));switch(t.kind){case 199:case 151:case 150:n=e.Diagnostics.Member_0_implicitly_has_an_1_type;break;case 148:n=t.dotDotDotToken?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type;break;case 181:n=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type;break;case 233:case 153:case 152:case 155:case 156:case 191:case 192:if(!t.name)return void ur(t,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);n=e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type;break;case 176:return void ur(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);default:n=e.Diagnostics.Variable_0_implicitly_has_an_1_type}ur(t,n,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}function Bu(t,r){a&&O&&16777216&r.flags&&(function t(r){var n=!1;if(16777216&r.flags){if(131072&r.flags)if(e.some(r.types,qc))n=!0;else for(var i=0,a=r.types;i<a.length;i++)t(l=a[i])&&(n=!0);if(lu(r)||bu(r))for(var o=0,s=r.typeArguments;o<s.length;o++)t(l=s[o])&&(n=!0);if($u(r))for(var c=0,u=ka(r);c<u.length;c++){var l,_=u[c];16777216&(l=fi(_)).flags&&(t(l)||ur(_.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,An(_),wn(Mu(l))),n=!0)}}return n}(r)||Ru(t,r))}function ju(e,t,r){var n,i=e.parameters.length,a=t.parameters.length;n=e.hasRestParameter&&t.hasRestParameter?Math.max(i,a):e.hasRestParameter?a:t.hasRestParameter?i:Math.min(i,a);for(var o=0;o<n;o++)r(hp(e,o),hp(t,o))}function Ju(e,t,r,n,i){var a=i?i.map(Ku):e.map(zu),o=function(e){for(var t=0;t<a.length;t++)if(e===a[t].typeParameter)return a[t].isFixed=!0,tl(o,t);return e};return o.typeParameters=e,o.signature=t,o.inferences=a,o.flags=r,o.compareTypes=n||Oc,o}function zu(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function Ku(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed}}function Uu(t){var r=e.getObjectFlags(t);return!!(7897088&t.flags||4&r&&e.forEach(t.typeArguments,Uu)||16&r&&t.symbol&&10288&t.symbol.flags||32&r||393216&t.flags&&function(t){return void 0===t.couldContainTypeVariables&&(t.couldContainTypeVariables=e.forEach(t.types,Uu)),t.couldContainTypeVariables}(t))}function qu(t,r){return t===r||393216&t.flags&&e.forEach(t.types,function(e){return qu(e,r)})}function Vu(e,t){var r=e.id+","+t.id;if(dt.has(r))return dt.get(r);dt.set(r,void 0);var n=function(e,t){var r=Ca(e);if(0!==r.length||Ha(e,0)){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(67108864&fi(a).flags)return}var o=mn(2064,void 0);return o.source=e,o.mappedType=t,o}}(e,t);return dt.set(r,n),n}function Wu(e,t){var r=Bs(ma(t).type,fa(t)),n=ga(t),i=zu(r);return Xu([i],e,n),Gu(i)}function Hu(e,t,r){for(var n=0,i=262144&t.flags?Ta(t):ka(t);n<i.length;n++){var a=i[n];if((r||!(16777216&a.flags))&&!Ka(e,a.escapedName))return a}}function Gu(e){return e.candidates?Ss(e.candidates,2):e.contraCandidates?Es(e.contraCandidates):ge}function Xu(t,r,n,i){var a,o;void 0===i&&(i=0);var s,c=!1;function u(t,r){if(Uu(r)){if(t===Z){var p=s;return s=t,u(r,r),void(s=p)}if(t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol)for(var f=t.aliasTypeArguments,m=r.aliasTypeArguments,g=0;g<f.length;g++)u(f[g],m[g]);else{if(131072&t.flags&&131072&r.flags&&!(256&t.flags&&256&r.flags)||262144&t.flags&&262144&r.flags){if(t===r){for(var y=0,h=t.types;y<h.length;y++)u(O=h[y],O);return}for(var v=void 0,b=0,x=t.types;b<x.length;b++)if(Qu(O=x[b],r.types))(v||(v=[])).push(O),u(O,O);else if(96&O.flags){var S=gu(O);Qu(S,r.types)&&(v||(v=[])).push(O,S)}v&&(t=Yu(t,v),r=Yu(r,v))}if(1081344&r.flags){if(67108864&t.flags||t===pe)return;var k=_(r);if(k){if(!k.isFixed){if((void 0===k.priority||i<k.priority)&&(k.candidates=void 0,k.contraCandidates=void 0,k.priority=i),i===k.priority){var D=s||t;c?k.contraCandidates=e.append(k.contraCandidates,D):k.candidates=e.append(k.candidates,D)}8&i||!(32768&r.flags)||qu(n,r)||(k.topLevel=!1)}return}}if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target){f=t.typeArguments||e.emptyArray,m=r.typeArguments||e.emptyArray;var T=f.length<m.length?f.length:m.length,C=Yc(t.target);for(g=0;g<T;g++)g<C.length&&2===C[g]?l(f[g],m[g]):u(f[g],m[g])}else if(524288&t.flags&&524288&r.flags)c=!c,u(t.type,r.type),c=!c;else if((mu(t)||2&t.flags)&&524288&r.flags){var E=function(t){var r=e.createSymbolTable();Al(t,function(t){if(32&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=_r(4,n);i.type=Y,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),r.set(n,i)}});var n=2&t.flags?ko(ge,!1):void 0;return vn(void 0,r,e.emptyArray,e.emptyArray,n,void 0)}(t);c=!c;var N=i;i|=16,u(E,r.type),i=N,c=!c}else if(1048576&t.flags&&1048576&r.flags)u(t.objectType,r.objectType),u(t.indexType,r.indexType);else if(2097152&t.flags&&2097152&r.flags)u(t.checkType,r.checkType),u(t.extendsType,r.extendsType),u(Us(t),Us(r)),u(qs(t),qs(r));else if(393216&r.flags){for(var A=0,P=void 0,w=0,F=m=r.types;w<F.length;w++){var O;_(O=F[w])?(P=O,A++):u(t,O)}1===A&&(N=i,i|=1,u(t,P),i=N)}else if(131072&t.flags)for(var I=0,M=f=t.types;I<M.length;I++)u(M[I],r);else if(32&i&&8159232&t.flags||(t=Ba(t)),327680&t.flags){var L=t.id+","+r.id;if(o&&o.get(L))return;(o||(o=e.createMap())).set(L,!0);var R=65536&r.flags&&!(16&e.getObjectFlags(r)&&r.symbol&&32&r.symbol.flags)?r.symbol:void 0;if(R){if(e.contains(a,R))return;(a||(a=[])).push(R),d(t,r),a.pop()}else d(t,r)}}}}function l(e,t){w||64&i?(c=!c,u(e,t),c=!c):u(e,t)}function _(e){if(1081344&e.flags)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e===i.typeParameter)return i}}function d(t,r){if(xa(t)&&xa(r)&&(u(ma(t),ma(r)),u(ga(t),ga(r))),32&e.getObjectFlags(r)){var n=ma(r);if(524288&n.flags){var a=_(n.type);if(a&&!a.isFixed){var o=Vu(t,r);if(o){var s=i;i|=2,u(o,a.typeParameter),i=s}}return}if(32768&n.flags)return s=i,i|=4,u(Ps(t),n),i=s,void u(Ss(e.map(Ca(t),fi)),ga(r))}(function(e,t){return bu(e)&&bu(t)&&wo(e)!==wo(t)||!!Hu(e,t,!1)&&!!Hu(t,e,!1)})(t,r)||(function(e,t){for(var r=0,n=ka(t);r<n.length;r++){var i=n[r],a=Ka(e,i.escapedName);a&&u(fi(a),fi(i))}}(t,r),p(t,r,0),p(t,r,1),function(e,t){var r=Ga(t,0);if(r){var n=Ga(e,0)||Xa(e,0);n&&u(n,r)}var i=Ga(t,1);if(i){var n=Ga(e,1)||Ga(e,0)||Xa(e,1);n&&u(n,i)}}(t,r))}function p(e,t,r){for(var n=qa(e,r),i=qa(t,r),a=n.length,o=i.length,s=a<o?a:o,c=0;c<s;c++)f(vo(n[a-s+c]),vo(i[o-s+c]))}function f(e,t){ju(e,t,l);var r=lo(e),n=lo(t);r&&n&&r.kind===n.kind?u(r.type,n.type):u(_o(e),_o(t))}u(r,n)}function Qu(e,t){for(var r=0,n=t;r<n.length;r++)if(wc(n[r],e))return!0;return!1}function Yu(e,t){for(var r=[],n=0,i=e.types;n<i.length;n++){var a=i[n];Qu(a,t)||r.push(a)}return 131072&e.flags?Ss(r):Es(r)}function $u(t){return!!(128&e.getObjectFlags(t))}function Zu(t){return 28&t.priority?Es(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,function(e,t){return Ic(t,e)?t:e}));var r}function el(t,r,n){var i,a,o=function(t){if(t.length>1){var r=e.filter(t,$u);if(r.length){var n=Mu(Ss(r,2));return e.concatenate(e.filter(t,function(e){return!$u(e)}),[n])}}return t}(t.candidates),s=!t.topLevel||(i=t.typeParameter,(a=Na(i))&&Lp(a,540670))||!t.isFixed&&qu(_o(n),t.typeParameter)?o:e.sameMap(o,yu);return Mu(1&r.flags||28&t.priority?Ss(s,2):function(t){if(!P)return uu(t);var r=e.filter(t,function(e){return!(12288&e.flags)});return r.length?Tu(uu(r),12288&xu(t)):Ss(t,2)}(s))}function tl(e,t){var r=e.inferences[t],n=r.inferredType;if(!n){var i=e.signature;if(i)if(r.candidates)16384&(n=el(r,e,i)).flags&&r.contraCandidates&&(n=Zu(r));else if(r.contraCandidates)n=Zu(r);else if(2&e.flags)n=pe;else{var a=Ra(r.typeParameter);n=a?Dc(a,fc(function(e,t){return function(r){return e.indexOf(r)>=t?ge:r}}(e.signature.typeParameters,t),e)):rl(!!(4&e.flags))}else n=Gu(r);n=hu(n),r.inferredType=n;var o=Na(r.typeParameter);if(o){var s=Dc(o,e);e.compareTypes(n,ta(s,n))||(r.inferredType=n=hu(s))}}return n}function rl(e){return e?Y:ge}function nl(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(tl(e,r));return t}function il(t){var r=br(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&Dr(t,t.escapedText,68264895,e.Diagnostics.Cannot_find_name_0,t,!e.isWriteOnlyAccess(t),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||X),r.resolvedSymbol}function al(t){return!!e.findAncestor(t,function(e){return 164===e.kind||71!==e.kind&&145!==e.kind&&"quit"})}function ol(t){if(179!==t.parent.kind)return""+t.parent.elements.indexOf(t);var r=t.propertyName||t.name;switch(r.kind){case 71:return e.idText(r);case 146:return e.isStringOrNumericLiteral(r.expression)?r.expression.text:void 0;case 9:case 8:return r.text;default:e.Debug.fail("Unexpected name kind for binding element name")}}function sl(e,t){switch(e.kind){case 71:return 71===t.kind&&il(e)===il(t)||(231===t.kind||181===t.kind)&&ln(il(e))===cn(t);case 99:return 99===t.kind;case 97:return 97===t.kind;case 184:return 184===t.kind&&e.name.escapedText===t.name.escapedText&&sl(e.expression,t.expression);case 181:if(184!==t.kind)return!1;var r=t;if(r.name.escapedText!==ol(e))return!1;if(181===e.parent.parent.kind&&sl(e.parent.parent,r.expression))return!0;if(231===e.parent.parent.kind){var n=e.parent.parent.initializer;return n&&sl(n,r.expression)}}return!1}function cl(e,t){for(;184===e.kind;)if(sl(e=e.expression,t))return!0;return!1}function ul(e,t){return 184===t.kind&&cl(e,t.expression)&&ll(function e(t){if(71===t.kind)return fi(il(t));if(184===t.kind){var r=e(t.expression);return r&&Vn(r,t.name.escapedText)}}(t.expression),t.name.escapedText)}function ll(t,r){if(t&&131072&t.flags){var n=Ja(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=32&n.checkFlags&&mu(fi(n))),n.isDiscriminantProperty}return!1}function _l(e,t){return sl(e,t)||cl(e,t)}function dl(e,t){if(e!==t){if(16384&t.flags)return t;var r=Pl(e,function(e){return function(e,t){if(!(131072&e.flags))return Mc(e,t);for(var r=0,n=e.types;r<n.length;r++)if(Mc(n[r],t))return!0;return!1}(t,e)});if(!(16384&r.flags))return r}return e}function pl(e){var t=e.flags;if(2&t)return P?4079361:4194049;if(32&t){var r=""===e.value;return P?r?3030785:1982209:r?3145473:4194049}if(20&t)return P?4079234:4193922;if(64&t){var n=0===e.value;return P?n?3030658:1982082:n?3145346:4193922}return 8&t?P?4078980:4193668:136&t?P?e===ce?3030404:1981828:e===ce?3145092:4193668:65536&t?function(e){var t=Sa(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Ic(e,Ae))}(e)?P?1970144:4181984:P?1972176:4184016:6144&t?2457472:8192&t?2340752:1536&t?P?1981320:4193160:134217728&t?P?1972176:4184016:7897088&t?pl(Fa(e)||ge):393216&t?function(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=pl(n[r]);return t}(e.types):4194303}function fl(e,t){return Pl(e,function(e){return 0!=(pl(e)&t)})}function ml(e,t){if(t){var r=rf(t);return Ss([fl(e,131072),r])}return e}function gl(t,r){var n=e.getTextOfPropertyName(r);return $l(Vn(t,n),r)||L_(n)&&Ga(t,1)||Ga(t,0)||ee}function yl(e,t){return pu(e)&&Vn(e,""+t)||sm(e,void 0,!1,!1)||ee}function hl(e){return ds(sm(e,void 0,!1,!1)||ee)}function vl(e){return 199===e.parent.kind&&e.parent.left===e||221===e.parent.kind&&e.parent.initializer===e}function bl(e){return gl(xl(e.parent),e.name)}function xl(e){var t=e.parent;switch(t.kind){case 220:return ae;case 221:return om(t.expression,t.awaitModifier)||ee;case 199:return function(e){return 182===e.parent.kind&&vl(e.parent)||269===e.parent.kind&&vl(e.parent.parent)?ml(xl(e),e.right):rf(e.right)}(t);case 193:return te;case 182:return function(e,t){return yl(xl(e),e.elements.indexOf(t))}(t,e);case 203:return function(e){return hl(xl(e.parent))}(t);case 269:return bl(t);case 270:return function(e){return ml(bl(e),e.objectAssignmentInitializer)}(t)}return ee}function Sl(e){return e.initializer?function(e){return br(e).resolvedType||rf(e)}(e.initializer):220===e.parent.parent.kind?ae:221===e.parent.parent.kind&&om(e.parent.parent.expression,e.parent.parent.awaitModifier)||ee}function kl(e){return 231===e.kind?Sl(e):function(e){var t=e.parent,r=kl(t.parent);return ml(179===t.kind?gl(r,e.propertyName||e.name):e.dotDotDotToken?hl(r):yl(r,t.elements.indexOf(e)),e.initializer)}(e)}function Dl(e){return 231===e.kind||181===e.kind?kl(e):xl(e)}function Tl(e){switch(e.kind){case 190:return Tl(e.expression);case 199:switch(e.operatorToken.kind){case 58:return Tl(e.left);case 26:return Tl(e.right)}}return e}function Cl(e){if(265===e.kind){var t=ic(rf(e.expression));return fu(t)?t:void 0}return de}function El(t){var r=br(t);if(!r.switchTypes){r.switchTypes=[];for(var n=0,i=t.caseBlock.clauses;n<i.length;n++){var a=Cl(i[n]);if(void 0===a)return r.switchTypes=e.emptyArray;r.switchTypes.push(a)}}return r.switchTypes}function Nl(e,t){return e===t||131072&t.flags&&function(e,t){if(131072&e.flags){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!gs(t.types,i))return!1}return!0}return!!(256&e.flags&&Oi(e)===t)||gs(t.types,e)}(e,t)}function Al(t,r){return 131072&t.flags?e.forEach(t.types,r):r(t)}function Pl(t,r){if(131072&t.flags){var n=t.types,i=e.filter(n,r);return i===n?t:Ds(i)}return r(t)?t:de}function wl(e,t,r){if(16384&e.flags)return e;if(!(131072&e.flags))return t(e);for(var n,i,a=0,o=e.types;a<o.length;a++){var s=t(o[a]);s&&(n?i?i.push(s):i=[n,s]:n=s)}return i?Ss(i,r?0:1):n}function Fl(e,t){return Pl(e,function(e){return 0!=(e.flags&t)})}function Ol(e,t){return Nl(ae,e)&&Lp(t,32)||Nl(oe,e)&&Lp(t,64)?wl(e,function(e){return 2&e.flags?Fl(t,34):4&e.flags?Fl(t,68):e}):e}function Il(e){return 0===e.flags}function Ml(e){return 0===e.flags?e.type:e}function Ll(e,t){return t?{flags:0,type:e}:e}function Rl(e){return H[e.id]||(H[e.id]=function(e){var t=mn(256);return t.elementType=e,t}(e))}function Bl(e,t){var r=gu(function(e){var t=e.contextualType;e.contextualType=Y;var r=rf(e);return e.contextualType=t,r}(t));return Nl(r,e.elementType)?e:Rl(Ss([e.elementType,r]))}function jl(e){return e.finalArrayType||(e.finalArrayType=16384&(t=e.elementType).flags?Be:ds(131072&t.flags?Ss(t.types,2):t));var t}function Jl(t){return 256&e.getObjectFlags(t)?jl(t):t}function zl(t){return 256&e.getObjectFlags(t)?t.elementType:de}function Kl(t,r){return function(t){for(var r=!1,n=0,i=t;n<i.length;n++){var a=i[n];if(!(16384&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;r=!0}}return r}(t)?Rl(Ss(e.map(t,zl))):Ss(e.sameMap(t,Jl),r)}function Ul(t){var r=function e(t){var r=t.parent;return 190===r.kind||199===r.kind&&58===r.operatorToken.kind&&r.left===t||199===r.kind&&26===r.operatorToken.kind&&r.right===t?e(r):t}(t),n=r.parent,i=184===n.kind&&("length"===n.name.escapedText||186===n.parent.kind&&e.isPushOrUnshiftIdentifier(n.name)),a=185===n.kind&&n.expression===r&&199===n.parent.kind&&58===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&Rp(rf(n.argumentExpression),84);return i||a}function ql(t){var r=br(t);return void 0===r.maybeTypePredicate&&(r.maybeTypePredicate=function(t){if(97!==t.expression.kind){var r=_d(t.expression);if(r!==pe){var n=Ba(r);return n!==ee&&e.some(qa(n,0),uo)}}return!1}(t)),r.maybeTypePredicate}function Vl(t,r,n,i,a){var o;void 0===n&&(n=r);var c=0;if(ht)return ee;if(!t.flowNode||!a&&!(142575359&r.flags))return r;var l=yt,_=Ml(p(t.flowNode));yt=l;var d=256&e.getObjectFlags(_)&&Ul(t)?Re:Jl(_);return t.parent&&208===t.parent.kind&&16384&fl(d,524288).flags?r:d;function p(a){if(2500===c)return ht=!0,o=t,s=e.findAncestor(o,e.isFunctionOrModuleBlock),u=e.getSourceFileOfNode(o),_=e.getSpanOfTokenAtPosition(u,s.statements.pos),Bt.add(e.createFileDiagnostic(u,_.start,_.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),ee;var o,s,u,_;for(c++;;){var d=a.flags;if(1024&d)for(var b=l;b<yt;b++)if(Ot[b]===a)return c--,It[b];var x=void 0;if(4096&d)a.locked=!0,x=p(a.antecedent),a.locked=!1;else{if(2048&d){a=a.antecedent;continue}if(16&d){if(!(x=f(a))){a=a.antecedent;continue}}else if(96&d)x=g(a);else if(128&d)x=y(a);else if(12&d){if(1===a.antecedents.length){a=a.antecedents[0];continue}x=4&d?h(a):v(a)}else if(256&d){if(!(x=m(a))){a=a.antecedent;continue}}else if(2&d){var S=a.container;if(S&&S!==i&&184!==t.kind&&99!==t.kind){a=S.flowNode;continue}x=n}else x=$f(r)}return 1024&d&&(Ot[yt]=a,It[yt]=x,yt++),c--,x}}function f(n){var i=n.node;if(sl(t,i)){if(2===e.getAssignmentTargetKind(i)){var a=p(n.antecedent);return Ll(gu(Ml(a)),Il(a))}if(r===$||r===Be){if(function(e){return 231===e.kind&&e.initializer&&$n(e.initializer)||181!==e.kind&&199===e.parent.kind&&$n(e.parent.right)}(i))return Rl(de);var o=gu(Dl(i));return Mc(o,r)?o:Re}return 131072&r.flags?dl(r,Dl(i)):r}if(cl(t,i))return r}function m(n){if(r===$||r===Be){var i=n.node,a=186===i.kind?i.expression.expression:i.left.expression;if(sl(t,Tl(a))){var o=p(n.antecedent),s=Ml(o);if(256&e.getObjectFlags(s)){var c=s;if(186===i.kind)for(var u=0,l=i.arguments;u<l.length;u++)c=Bl(c,l[u]);else Rp(rf(i.left.argumentExpression),84)&&(c=Bl(c,i.right));return c===s?o:Ll(c,Il(o))}return o}}}function g(e){var t=p(e.antecedent),r=Ml(t);if(16384&r.flags)return t;var n=0!=(32&e.flags),i=Jl(r),a=w(i,e.expression,n);if(a===i)return t;var o=Il(t);return Ll(o&&16384&a.flags?pe:a,o)}function y(e){var r=p(e.antecedent),n=Ml(r),i=e.switchStatement.expression;return sl(t,i)?n=E(n,e.switchStatement,e.clauseStart,e.clauseEnd):b(i,n)&&(n=x(n,i,function(t){return E(t,e.switchStatement,e.clauseStart,e.clauseEnd)})),Ll(n,Il(r))}function h(t){for(var i=[],a=!1,o=!1,s=0,c=t.antecedents;s<c.length;s++){var u=c[s];if(!(2048&u.flags&&u.lock.locked)){var l=p(u),_=Ml(l);if(_===r&&r===n)return _;e.pushIfUnique(i,_),Nl(_,r)||(a=!0),Il(l)&&(o=!0)}}return Ll(Kl(i,a?2:1),o)}function v(n){var i=function(e){return e.id||(e.id=s,s++),e.id}(n),a=At[i]||(At[i]=e.createMap());if(!o&&!(o=function t(r){if(71===r.kind){var n=il(r);return n!==X?(Ql(r)?"@":"")+u(n):void 0}if(99===r.kind)return"0";if(184===r.kind)return(a=t(r.expression))&&a+"."+e.idText(r.name);if(181===r.kind){var i=r.parent.parent,a=181===i.kind?t(i):i.initializer&&t(i.initializer),o=ol(r);return a&&o&&a+"."+o}}(t)))return r;var c=a.get(o);if(c)return c;for(var l=mt;l<gt;l++)if(Pt[l]===n&&wt[l]===o&&Ft[l].length)return Ll(Kl(Ft[l],1),!0);var _,d=[],f=!1;Pt[gt]=n,wt[gt]=o,Ft[gt]=d;for(var m=0,g=n.antecedents;m<g.length;m++){var y=g[m];gt++;var h=p(y);gt--,_||(_=h);var v=Ml(h),b=a.get(o);if(b)return b;if(e.pushIfUnique(d,v),Nl(v,r)||(f=!0),v===r)break}var x=Kl(d,f?2:1);return Il(_)?Ll(x,!0):(a.set(o,x),x)}function b(e,r){return 184===e.kind&&131072&r.flags&&sl(t,e.expression)&&ll(r,e.name.escapedText)}function x(e,t,r){var n=t.name.escapedText,i=Vn(e,n),a=i&&r(i);return i===a?e:Pl(e,function(e){return Rc(Vn(e,n),a)})}function S(e,n,i){return sl(t,n)?fl(e,i?1048576:2097152):b(n,r)?x(e,n,function(e){return fl(e,i?1048576:2097152)}):ul(t,n)?r:e}function k(t,r,n){if(196608&t.flags||32768&t.flags&&t.isThisType){var i=e.escapeLeadingUnderscores(r.text);return Pl(t,function(e){return function(e,t,r){if(Ha(e,0))return!0;var n=Ka(e,t);return n?!!(16777216&n.flags)||r:!r}(e,i,n)})}return t}function D(n,i,a){switch(i.operatorToken.kind){case 58:return S(n,i.left,a);case 32:case 33:case 34:case 35:var o=i.operatorToken.kind,s=Tl(i.left),c=Tl(i.right);if(194===s.kind&&e.isStringLiteralLike(c))return C(n,s,o,c,a);if(194===c.kind&&e.isStringLiteralLike(s))return C(n,c,o,s,a);if(sl(t,s))return T(n,o,c,a);if(sl(t,c))return T(n,o,s,a);if(b(s,r))return x(n,s,function(e){return T(e,o,c,a)});if(b(c,r))return x(n,c,function(e){return T(e,o,s,a)});if(ul(t,s)||ul(t,c))return r;break;case 93:return function(n,i,a){var o=Tl(i.left);if(!sl(t,o))return cl(t,o)?r:n;var s,c=rf(i.right);if(!Ic(c,Ae))return n;var u=Ka(c,"prototype");if(u){var l=fi(u);Wn(l)||(s=l)}if(Wn(n)&&(s===Ne||s===Ae))return n;if(!s){var _=void 0;2&e.getObjectFlags(c)?_=Vi(c).declaredConstructSignatures:16&e.getObjectFlags(c)&&(_=qa(c,1)),_&&_.length&&(s=Ss(e.map(_,function(e){return _o(yo(e))})))}return s?N(n,s,a,Lc):n}(n,i,a);case 92:var u=Tl(i.right);if(e.isStringLiteralLike(i.left)&&sl(t,u))return k(n,i.left,a);break;case 26:return w(n,i.right,a)}return n}function T(e,t,r,n){if(1&e.flags)return e;33!==t&&35!==t||(n=!n);var i=rf(r);if(12288&i.flags)return P?fl(e,32===t||33===t?n?65536:524288:95===r.kind?n?32768:262144:n?16384:131072):e;if(134283777&e.flags)return e;if(n){var a=Pl(e,function(e){return Bc(e,i)});return 16384&a.flags?e:Ol(a,i)}if(fu(i)){var o=ic(i);return Pl(e,function(e){return ic(e)!==o})}return e}function C(e,n,i,a,o){var s=Tl(n.expression);if(!sl(t,s))return cl(t,s)?r:e;if(33!==i&&35!==i||(o=!o),o&&!(131072&e.flags)){var c=$t.get(a.text);if(c){if(Ic(c,e))return c;if(7897088&e.flags&&Ic(c,Fa(e)||Y))return Es([e,c])}}return fl(e,o?Qt.get(a.text)||64:Yt.get(a.text)||8192)}function E(t,r,n,i){var a=El(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,de),c=Ss(o),u=16384&c.flags?de:Ol(Pl(t,function(e){return Bc(c,e)}),c);if(!s)return u;var l=Pl(t,function(t){return!(fu(t)&&e.contains(a,ic(t)))});return 16384&u.flags?l:Ss([u,l])}function N(e,t,r,n){if(!r)return Pl(e,function(e){return!n(e,t)});if(131072&e.flags){var i=Pl(e,function(e){return n(e,t)});if(!(16384&i.flags))return i}return Ic(t,e)?t:Mc(e,t)?e:Mc(t,e)?t:Es([e,t])}function A(n,i,a){if(!function(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(_l(t,n[r]))return!0;return!(184!==e.expression.kind||!_l(t,e.expression.expression))}(i,t)||!ql(i))return n;var o=ip(i),s=lo(o);if(!s)return n;if(Wn(n)&&(s.type===Ne||s.type===Ae))return n;if(e.isIdentifierTypePredicate(s)){var c=i.arguments[s.parameterIndex-(o.thisParameter?1:0)];if(c){if(sl(t,c))return N(n,s.type,a,Ic);if(cl(t,c))return r}}else{var u=e.skipParentheses(i.expression);if(185===u.kind||184===u.kind){var l=u,_=e.skipParentheses(l.expression);if(sl(t,_))return N(n,s.type,a,Ic);if(cl(t,_))return r}}return n}function w(e,t,r){switch(t.kind){case 71:case 99:case 97:case 184:return S(e,t,r);case 186:return A(e,t,r);case 190:return w(e,t.expression,r);case 199:return D(e,t,r);case 197:if(51===t.operator)return w(e,t.operand,!r)}return e}}function Wl(t){return e.findAncestor(t.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||239===t.kind||273===t.kind||151===t.kind})}function Hl(t){var r,n=e.getRootDeclaration(t.valueDeclaration).parent,i=br(n);return 4194304&i.flags||(i.flags|=4194304,r=n,e.findAncestor(r.parent,function(t){return e.isFunctionLike(t)&&!!(4194304&br(t).flags)})||Gl(n)),t.isAssigned||!1}function Gl(t){if(71===t.kind){if(e.isAssignmentTarget(t)){var r=il(t);r.valueDeclaration&&148===e.getRootDeclaration(r.valueDeclaration).kind&&(r.isAssigned=!0)}}else e.forEachChild(t,Gl)}function Xl(e){return 3&e.flags&&0!=(2&sd(e))&&fi(e)!==Be}function Ql(e){var t=e.parent;return 184===t.kind||186===t.kind&&t.expression===e||185===t.kind&&t.expression===e||181===t.kind&&t.name===e&&!!t.initializer}function Yl(e){return 7372800&e.flags&&Lp(Fa(e)||ge,12288)}function $l(e,t){return e&&Ql(t)&&Al(e,Yl)?wl(Mu(e),Oa):e}function Zl(e,t){!jr(e,67216319)||al(t)||fg(zr(e))||Ur(e)}function e_(t){var r=il(t);if(r===X)return ee;if(r===J){var n=e.getContainingFunction(t);return E<2&&(192===n.kind?ur(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasModifier(n,256)&&ur(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),br(n).flags|=8192,fi(r)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||Zl(r,t);var i=ln(r),a=i.valueDeclaration;if(32&i.flags)if(234===a.kind&&e.nodeIsDecorated(a))for(n=e.getContainingClass(t);void 0!==n;){if(n===a&&n.name!==t){br(a).flags|=8388608,br(t).flags|=16777216;break}n=e.getContainingClass(n)}else if(204===a.kind)for(n=e.getThisContainer(t,!1);void 0!==n;){if(n.parent===a){151===n.kind&&e.hasModifier(n,32)&&(br(a).flags|=8388608,br(t).flags|=16777216);break}n=e.getThisContainer(n,!1)}!function(t,r){if(!(E>=2||0==(34&r.flags)||268===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,function(t){return t===r?"quit":e.isFunctionLike(t)})}(t.parent,n),a=n,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}o&&(i&&(br(a).flags|=65536),219===n.kind&&e.getAncestor(r.valueDeclaration,232).parent===n&&function(t,r){for(var n=t;190===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(197===n.parent.kind||198===n.parent.kind){var a=n.parent;i=43===a.operator||44===a.operator}return!!i&&!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}(t,n)&&(br(r.valueDeclaration).flags|=2097152),br(r.valueDeclaration).flags|=262144),i&&(br(r.valueDeclaration).flags|=131072)}}(t,r);var o=$l(fi(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags||e.isInJavaScriptFile(t)&&512&i.flags))return ur(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,An(r)),ee;if(Fp(i))return ur(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,An(r)),ee}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(r.declarations,d)}if(!a)return o;for(var u=148===e.getRootDeclaration(a).kind,l=Wl(a),_=Wl(t),p=_!==l,f=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&vl(t.parent.parent);_!==l&&(191===_.kind||192===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(Xl(i)||u&&!Hl(i));)_=Wl(_);var m=u||c||p||f||o!==$&&o!==Be&&(!P||0!=(1&o.flags)||al(t)||251===t.parent.kind)||208===t.parent.kind||231===a.kind&&a.exclamationToken||2097152&a.flags,g=Vl(t,o,m?u?function(e,t){return P&&148===t.kind&&t.initializer&&4096&Su(e)&&!(4096&Su(nf(t.initializer)))?fl(e,131072):e}(o,a):o:o===$||o===Be?te:Cu(o),_,!m);if(o===$||o===Be){if(g===$||g===Be)return O&&(ur(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,An(r),wn(g)),ur(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,An(r),wn(g))),$f(g)}else if(!m&&!(4096&Su(o))&&4096&Su(g))return ur(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,An(r)),o;return s?gu(g):g}function t_(e,t){br(e).flags|=2,151===t.kind||154===t.kind?br(t.parent).flags|=4:br(t).flags|=4}function r_(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,r_)}function n_(e){var t=br(e);return void 0===t.hasSuperCall&&(t.superCall=r_(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function i_(e){return Ei(Ri(cn(e)))===ie}function a_(t,r,n){var i=r.parent;if(e.getClassExtendsHeritageClauseElement(i)&&!i_(i)){var a=n_(r);(!a||a.end>t.pos)&&ur(t,n)}}function o_(t,r){if(void 0===r&&(r=e.getThisContainer(t,!1)),e.isFunctionLike(r)&&(!p_(t)||e.getThisParameter(r))){if(191===r.kind&&199===r.parent.kind&&3===e.getSpecialPropertyAssignmentKind(r.parent)){var n=nf(r.parent.left.expression.expression).symbol;if(n&&n.members&&16&n.flags)return Vl(t,cp(n))}var i=ui(r)||__(r);if(i)return Vl(t,i)}if(e.isClassLike(r.parent)){var a=cn(r.parent);return Vl(t,o=e.hasModifier(r,32)?fi(a):Ri(a).thisType)}var o;if(e.isInJavaScriptFile(t)&&(o=function(t){var r=e.getJSDocType(t);if(r&&281===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return cc(n.parameters[0].type)}}(r))&&o!==ee)return Vl(t,o)}function s_(t,r){return!!e.findAncestor(t,function(e){return e===r?"quit":148===e.kind})}function c_(t){var r=186===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=!1;if(!r)for(;n&&192===n.kind;)n=e.getSuperContainer(n,!0),i=E<2;var a=0;if(!function(t){return!!t&&(r?154===t.kind:!(!e.isClassLike(t.parent)&&183!==t.parent.kind)&&(e.hasModifier(t,32)?153===t.kind||152===t.kind||155===t.kind||156===t.kind:153===t.kind||152===t.kind||155===t.kind||156===t.kind||151===t.kind||150===t.kind||154===t.kind))}(n)){var o=e.findAncestor(t,function(e){return e===n?"quit":146===e.kind});return o&&146===o.kind?ur(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?ur(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(e.isClassLike(n.parent)||183===n.parent.kind)?ur(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):ur(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),ee}if(r||154!==n.kind||a_(t,n,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(n,32)||r?512:256,br(t).flags|=a,153===n.kind&&e.hasModifier(n,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?br(n).flags|=4096:br(n).flags|=2048),i&&t_(t.parent,n),183===n.parent.kind)return E<2?(ur(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ee):Y;var s=n.parent;if(!e.getClassExtendsHeritageClauseElement(s))return ur(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ee;var c=Ri(cn(s)),u=c&&Ni(c)[0];return u?154===n.kind&&s_(t,n)?(ur(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ee):512===a?Ei(c):ta(u,c.thisType):ee}function u_(t){return 4&e.getObjectFlags(t)&&t.target===Le?t.typeArguments[0]:void 0}function l_(t){return wl(t,function(t){return 262144&t.flags?e.forEach(t.types,u_):u_(t)})}function __(t){if(192!==t.kind){if(Ac(t)){var r=F_(t);if(r){var n=r.thisParameter;if(n)return fi(n)}}var i=e.isInJavaScriptFile(t);if(I||i){var a=function(e){return 153!==e.kind&&155!==e.kind&&156!==e.kind||183!==e.parent.kind?191===e.kind&&269===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=D_(a),s=a,c=o;c;){var u=l_(c);if(u)return Dc(u,C_(a));if(269!==s.parent.kind)break;c=D_(s=s.parent.parent)}return o?Eu(o):Xp(a)}var l=t.parent;if(199===l.kind&&58===l.operatorToken.kind){var _=l.left;if(184===_.kind||185===_.kind){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&il(d)===p.symbol)return}return Xp(d)}}}}}function d_(t){var r=t.parent;if(Ac(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=r.parameters.indexOf(t);if(t.dotDotDotToken){for(var a=[],o=i;o<n.arguments.length;o++)a.push(yu(nf(n.arguments[o])));return a.length?ds(Ss(a)):void 0}var s=br(n),c=s.resolvedSignature;s.resolvedSignature=at;var u=i<n.arguments.length?yu(nf(n.arguments[i])):t.initializer?void 0:re;return s.resolvedSignature=c,u}var l=F_(r);if(l){var _=e.hasRestParameter(r),d=r.parameters.length-(_?1:0);if(i=r.parameters.indexOf(t),void 0===e.getThisParameter(r)||l.thisParameter||(e.Debug.assert(0!==i),i-=1),i<d)return hp(l,i);if(_&&i===r.parameters.length-1&&cu(l,r.parameters.length-1))return fi(e.lastOrUndefined(l.parameters))}}}function p_(t){for(var r=!1;t.parent&&!e.isFunctionLike(t.parent);){if(e.isParameter(t.parent)&&(r||t.parent.initializer===t))return!0;e.isBindingElement(t.parent)&&t.parent.initializer===t&&(r=!0),t=t.parent}return!1}function f_(t){if(154===t.kind||e.getEffectiveReturnTypeNode(t)||fm(t))return _o(ao(t));var r=P_(t);return r&&!function(e){return!e.resolvedReturnType&&zn(e,3)>=0}(r)?_o(r):void 0}function m_(e,t){var r=Jd(e).indexOf(t);return-1===r?void 0:g_(e,r)}function g_(e,t){return hp(br(e).resolvedSignature===st?st:ip(e),t)}function y_(t){var r=t.parent,n=r.left,i=r.operatorToken,a=r.right;switch(i.kind){case 58:return t===a&&function(t){var r=e.getSpecialPropertyAssignmentKind(t);switch(r){case 0:return!0;case 5:return!t.left.symbol;case 1:case 2:case 3:case 4:case 6:return!1;default:e.Debug.assertNever(r)}}(r)?rf(n):void 0;case 54:var o=T_(r);return o||t!==a||e.getDeclaredJavascriptInitializer(r.parent)||e.getAssignedJavascriptInitializer(r)?o:rf(n,!0);case 53:case 26:return t===a?T_(r):void 0;default:return}}function h_(e,t){return wl(e,function(e){var r=458752&e.flags?Ka(e,t):void 0;return r?fi(r):void 0},!0)}function v_(e,t){return wl(e,function(e){return Wa(e,t)},!0)}function b_(e){var t=D_(e.parent);if(t){if(!Xi(e)){var r=h_(t,cn(e).escapedName);if(r)return r}return M_(e.name)&&v_(t,1)||v_(t,0)}}function x_(e,t){return e&&(h_(e,""+t)||v_(e,1)||cm(e,void 0,!1,!1,!1))}function S_(t){var r=t.parent;return e.isJsxAttributeLike(r)?T_(t):e.isJsxElement(r)?function(e){var t=D_(e.openingElement.tagName),r=Y_(X_(e));return t&&!Wn(t)&&r&&""!==r?h_(t,r):void 0}(r):void 0}function k_(t){if(e.isJsxAttribute(t)){var r=D_(t.parent);if(!r||Wn(r))return;return h_(r,t.name.escapedText)}return T_(t.parent)}function D_(t){var r,n=T_(t);if(!((n=n&&wl(n,Ba))&&131072&n.flags&&e.isObjectLiteralExpression(t)))return n;e:for(var i=0,a=t.properties;i<a.length;i++){var o=a[i];if(o.symbol&&269===o.kind&&ll(n,o.symbol.escapedName))for(var s=eg(o.initializer),c=0,u=n.types;c<u.length;c++){var l=u[c],_=Vn(l,o.symbol.escapedName);if(_&&jc(s,_,void 0)){if(r){if(l===r)continue;r=void 0;break e}r=l}}}return r||n}function T_(r){if(!(4194304&r.flags)){if(r.contextualType)return r.contextualType;var n=r.parent;switch(n.kind){case 231:case 148:case 151:case 150:case 181:return function(t){var r=t.parent;if(e.hasInitializer(r)&&t===r.initializer){var n=e.getEffectiveTypeAnnotationNode(r);if(n)return cc(n);if(148===r.kind){var i=d_(r);if(i)return i}if(e.isBindingPattern(r.name))return ni(r.name,!0,!1);if(e.isBindingPattern(r.parent)){var a=r.parent.parent,o=r.propertyName||r.name;if(181!==a.kind){var s=e.getEffectiveTypeAnnotationNode(a);if(s&&!e.isBindingPattern(o)){var c=e.getTextOfPropertyName(o);if(c)return Vn(cc(s),c)}}}}}(r);case 192:case 224:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r);if(1&n)return;var i=f_(r);return 2&n?i&&Tf(i):i}}(r);case 202:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=f_(r);if(i)return t.asteriskToken?i:dm(i,0!=(2&n))}}(n);case 186:case 187:return m_(n,r);case 189:case 207:return cc(n.type);case 199:return y_(r);case 269:case 270:return b_(n);case 271:return D_(n.parent);case 182:var i=n;return x_(D_(i),e.indexOfNode(i.elements,r));case 200:return function(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?T_(t):void 0}(r);case 210:return e.Debug.assert(201===n.parent.kind),function(e,t){if(188===e.parent.kind)return m_(e.parent,t)}(n.parent,r);case 190:var a=e.isInJavaScriptFile(n)?e.getJSDocTypeTag(n):void 0;return a?cc(a.typeExpression.type):T_(n);case 264:return S_(n);case 261:case 263:return k_(n);case 256:case 255:return function(r){if(K_(r.tagName))return ed(r);var n=nf(r.tagName);if(Wn(n))return Y;var i=e.isInJavaScriptFile(r);return wl(n,function(n){return function(r,n,i){if(2&r.flags)return Y;if(32&r.flags){var a=W_(t.IntrinsicElements,i);if(a!==ee){var o=r.value,s=Ka(a,e.escapeLeadingUnderscores(o));if(s)return fi(s);var c=Ga(a,0);if(c)return c}return Y}var u=qa(r,1),l=!0;return 0===u.length&&(u=qa(r,0),l=!1,0===u.length)?ee:(i.typeArguments&&(u=e.mapDefined(u,function(e){return G_(e,i,n)})),Ss(e.map(u,l?function(e){return E_(e,n,i,!1)}:function(e){return function(e,r){var n=bp(e,ge),i=W_(t.IntrinsicAttributes,r);return i!==ee&&(n=ua(i,n)),n}(e,i)}),0))}(n,i,r)})}(n)}}}function C_(t){return(t=e.findAncestor(t,function(e){return!!e.contextualMapper}))?t.contextualMapper:T}function E_(r,n,i,a){var o,s=(o=X_(i),Q_(t.ElementAttributesPropertyNameContainer,o)),c=void 0===s?bp(r,ge):""===s?_o(r):function(e,t){var r=_o(e);return Wn(r)?r:Vn(r,t)}(r,s);if(c){if(Wn(c))return c;var u=c,l=W_(t.IntrinsicClassAttributes,i);if(l!==ee){var _=xi(l.symbol),d=_o(r);u=ua(_?Ao(l,io([d],_,no(_),n)):l,u)}var p=W_(t.IntrinsicAttributes,i);return p!==ee&&(u=ua(p,u)),u}return a&&s&&e.length(i.attributes.properties)&&ur(i,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(s)),ge}function N_(t,r){var n=qa(t,0);if(1===n.length){var i=n[0];if(!function(t,r){for(var n=0;n<r.parameters.length;n++){var i=r.parameters[n];if(i.initializer||i.questionToken||i.dotDotDotToken||$a(i))break}return r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--,(t.hasRestParameter?Number.MAX_VALUE:t.parameters.length)<n}(i,r))return i}}function A_(e){return 191===e.kind||192===e.kind}function P_(t){return A_(t)||e.isObjectLiteralMethod(t)?F_(t):void 0}function w_(t){return e.isObjectLiteralMethod(t)?function(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(4194304&t.flags))return b_(t)}(t):D_(t)}function F_(t){var r;if(e.Debug.assert(153!==t.kind||e.isObjectLiteralMethod(t)),e.isInJavaScriptFile(t)){var n=e.getJSDocType(t);n&&(r=cc(n))}if(r||(r=w_(t)),r){if(!(131072&r.flags))return N_(r,t);for(var i,a,o=0,s=r.types;o<s.length;o++){var c=N_(s[o],t);if(c)if(i){if(!su(i[0],c,!1,!0,!0,Fc))return;i.push(c)}else i=[c]}return i&&((a=ia(i[0])).unionSignatures=i),a}}function O_(e){return 181===e.kind&&!!e.initializer||199===e.kind&&58===e.operatorToken.kind}function I_(t,r){for(var n=t.elements,i=!1,a=[],o=e.isAssignmentTarget(t),s=D_(t),c=0;c<n.length;c++){var u=n[c];if(o&&203===u.kind){var l=nf(u.expression,r),_=Ga(l,1)||cm(l,void 0,!1,!1,!1);_&&a.push(_)}else{var d=$p(u,r,x_(s,c));a.push(d)}i=i||203===u.kind}if(!i){if(o&&a.length)return(d=Po(fs(a))).pattern=t,d;if(s&&function(t){return!!(131072&t.flags?e.forEach(t.types,pu):pu(t))}(s)){var p=s.pattern;if(p&&(180===p.kind||182===p.kind))for(var f=p.elements,m=a.length;m<f.length;m++){var g=f[m];O_(g)?a.push(s.typeArguments[m]):(205!==g.kind&&ur(g,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.push(P?fe:re))}if(a.length)return fs(a)}}return ds(a.length?Ss(a,2):P?fe:re)}function M_(e){switch(e.kind){case 146:return function(e){return Rp(R_(e),84)}(e);case 71:return L_(e.escapedText);case 8:case 9:return L_(e.text);default:return!1}}function L_(e){return(+e).toString()===e}function R_(t){var r=br(t.expression);return r.resolvedType||(r.resolvedType=nf(t.expression),12288&r.resolvedType.flags||!Rp(r.resolvedType,525942)&&!Mc(r.resolvedType,Ss([ae,oe,le]))?ur(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):Cd(t.expression,r.resolvedType,!0)),r.resolvedType}function B_(e,t,r,n){for(var i=[],a=0;a<r.length;a++)(0===n||M_(e[a+t].name))&&i.push(fi(r[a]));return ko(i.length?Ss(i,2):te,!1)}function j_(t,r){var n,i=e.isAssignmentTarget(t);!function(t,r){var n;!function(e){e[e.Property=1]="Property",e[e.GetAccessor=2]="GetAccessor",e[e.SetAccessor=4]="SetAccessor",e[e.GetOrSetAccessor=6]="GetOrSetAccessor"}(n||(n={}));for(var i=e.createUnderscoreEscapedMap(),a=0,o=t.properties;a<o.length;a++){var s=o[a];if(271!==s.kind){var c=s.name;if(146===c.kind&&Ug(c),270===s.kind&&!r&&s.objectAssignmentInitializer)return ty(s.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(s.modifiers)for(var u=0,l=s.modifiers;u<l.length;u++){var _=l[u];120===_.kind&&153===s.kind||ty(_,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(_))}var d=void 0;switch(s.kind){case 269:case 270:Vg(s.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===c.kind&&ny(c);case 153:d=1;break;case 155:d=2;break;case 156:d=4;break;default:e.Debug.assertNever(s,"Unexpected syntax kind:"+s.kind)}var p=e.getPropertyNameForPropertyNameNode(c);if(void 0!==p){var f=i.get(p);if(f)if(1===d&&1===f)ty(c,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(c));else{if(!(6&d&&6&f))return ty(c,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(6===f||d===f)return ty(c,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);i.set(p,d|f)}else i.set(p,d)}}}}(t,i);var a=[],o=ge,s=8388608,c=D_(t),u=c&&c.pattern&&(179===c.pattern.kind||183===c.pattern.kind),l=e.isInJavaScriptFile(t),_=!c&&l,d=0,p=!1,f=!1,m=!1;if(l&&0===t.properties.length){var g=cn(t);if(g.exports)return n=g.exports,g.exports.forEach(function(e){return a.push(sn(e))}),O()}n=e.createSymbolTable();for(var y=0,h=0;h<t.properties.length;h++){var v=t.properties[h],b=cn(v),x=void 0;if(269===v.kind||270===v.kind||e.isObjectLiteralMethod(v)){var S=void 0;l&&(S=Yn(v));var k=void 0;if(269===v.kind){if(146===v.name.kind){var D=R_(v.name);224&D.flags&&(x=e.escapeLeadingUnderscores(""+D.value))}k=Zp(v,r)}else 153===v.kind?k=ef(v,r):(e.Debug.assert(270===v.kind),k=$p(v.name,r));S&&(jc(k,S,v),k=S),d|=k.flags;var T=Gi(v)?R_(v.name):void 0,N=T&&Wi(T),A=N?_r(4|b.flags,Qi(T),1024):_r(4|b.flags,x||b.escapedName);if(N&&(A.nameType=T),i)(269===v.kind&&O_(v.initializer)||270===v.kind&&v.objectAssignmentInitializer)&&(A.flags|=16777216),!x&&e.hasDynamicName(v)&&(p=!0);else if(u&&!(512&e.getObjectFlags(c))){var P=Ka(c,b.escapedName);P?A.flags|=16777216&P.flags:C.suppressExcessPropertyErrors||Ha(c,0)||ur(v.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,An(b),wn(c))}A.declarations=b.declarations,A.parent=b.parent,b.valueDeclaration&&(A.valueDeclaration=b.valueDeclaration),A.type=k,A.target=b,b=A}else{if(271===v.kind){if(E<2&&Fg(v,2),a.length>0&&(o=$s(o,O(),t.symbol,s,0),a=[],n=e.createSymbolTable(),f=!1,m=!1,d=0),!J_(k=nf(v.expression)))return ur(v,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ee;o=$s(o,k,t.symbol,s,0),y=h+1;continue}e.Debug.assert(155===v.kind||156===v.kind),Km(v)}!x&&Xi(v)?M_(v.name)?m=!0:f=!0:n.set(b.escapedName,b),a.push(b)}if(u)for(var w=0,F=Ca(c);w<F.length;w++)A=F[w],n.get(A.escapedName)||o&&Ka(o,A.escapedName)||(16777216&A.flags||ur(A.valueDeclaration||A.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),n.set(A.escapedName,A),a.push(A));return o!==ge?(a.length>0&&(o=$s(o,O(),t.symbol,s,0)),o):O();function O(){var r=_?lt:f?B_(t.properties,y,a,0):void 0,o=m&&!_?B_(t.properties,y,a,1):void 0,c=vn(t.symbol,n,e.emptyArray,e.emptyArray,r,o),u=C.suppressExcessPropertyErrors?0:8388608;return c.flags|=33554432|u|117440512&d,c.objectFlags|=128,p&&(c.objectFlags|=512),i&&(c.pattern=t),12288&c.flags||(s|=117440512&c.flags),c}}function J_(t){return!!(134217729&t.flags||14560&Su(t)&&J_(ku(t))||65536&t.flags&&!xa(t)||393216&t.flags&&!e.forEach(t.types,function(e){return!J_(e)}))}function z_(t){return!e.stringContains(t,"-")}function K_(t){switch(t.kind){case 184:case 99:return!1;case 71:return e.isIntrinsicJsxName(t.escapedText);default:e.Debug.fail()}}function U_(e,t){return e.initializer?$p(e.initializer,t):se}function q_(t,r){for(var n,i=t.attributes,a=e.createSymbolTable(),o=ge,s=!1,c=!1,u=Y_(X_(t)),l=0,_=i.properties;l<_.length;l++){var d=_[l],p=d.symbol;if(e.isJsxAttribute(d)){var f=U_(d,r),m=_r(33554436|p.flags,p.escapedName);m.declarations=p.declarations,m.parent=p.parent,p.valueDeclaration&&(m.valueDeclaration=p.valueDeclaration),m.type=f,m.target=p,a.set(m.escapedName,m),d.name.escapedText===u&&(c=!0)}else e.Debug.assert(263===d.kind),a.size>0&&(o=$s(o,b(),i.symbol,0,4096),a=e.createSymbolTable()),Wn(f=Xp(d.expression,r))&&(s=!0),J_(f)?o=$s(o,f,t.symbol,0,4096):n=n?Es([n,f]):f}s||a.size>0&&(o=$s(o,b(),i.symbol,0,4096));var g=254===t.parent.kind?t.parent:void 0;if(g&&g.openingElement===t&&g.children.length>0){var y=V_(g,r);if(!s&&u&&""!==u){c&&ur(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(u));var h=_r(33554436,u);h.type=1===y.length?y[0]:ds(Ss(y));var v=e.createSymbolTable();v.set(u,h),o=$s(o,vn(i.symbol,v,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,0,4096)}}return s?Y:n&&o!==ge?Es([n,o]):n||(o===ge?b():o);function b(){var t=vn(i.symbol,a,e.emptyArray,e.emptyArray,void 0,void 0);return t.flags|=33554432,t.objectFlags|=4224,t}}function V_(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];10===a.kind?a.containsOnlyWhiteSpaces||r.push(ae):r.push($p(a,t))}return r}function W_(e,t){var r=X_(t),n=r&&rn(r),i=n&&Sr(n,e,67901928);return i?Ri(i):ee}function H_(r){var n=br(r);if(!n.resolvedSymbol){var i=W_(t.IntrinsicElements,r);if(i!==ee){if(!e.isIdentifier(r.tagName))return e.Debug.fail();var a=Ka(i,r.tagName.escapedText);return a?(n.jsxFlags|=1,n.resolvedSymbol=a):Ga(i,0)?(n.jsxFlags|=2,n.resolvedSymbol=i.symbol):(ur(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+t.IntrinsicElements),n.resolvedSymbol=X)}return O&&ur(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(t.IntrinsicElements)),n.resolvedSymbol=X}return n.resolvedSymbol}function G_(e,t,r,n){if(t.typeArguments&&Fd(e,t.typeArguments)){var i=Rd(e,t.typeArguments,n);if(i)return fo(e,i,r)}}function X_(e){var r=cr(e),n=Dr(e,r,1920,void 0,r,!1);if(n){var i=Sr(rn(Jr(n)),t.JSX,1920);if(i)return i}return Go(t.JSX,1920,void 0)}function Q_(t,r){var n=r&&Sr(r.exports,t,67901928),i=n&&Ri(n),a=i&&Ca(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&ur(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Y_(e){return Q_(t.ElementChildrenAttributeNameContainer,e)}function $_(e){if(e){if(262144&e.flags){for(var t=[],r=0,n=e.types;r<n.length;r++){var i=n[r];t.push(Ba(i))}return Es(t)}return Ba(e)}}function Z_(r,n,i,a){if(131072&i.flags)return Ss(i.types.map(function(e){return Z_(r,n,e,a)}),2);if(Wn(i))return i;if(2&i.flags)return Y;if(32&i.flags){var o=W_(t.IntrinsicElements,r);if(o!==ee){var s=i.value,c=Ka(o,e.escapeLeadingUnderscores(s));if(c)return fi(c);var u=Ga(o,0);if(u)return u;ur(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,s,"JSX."+t.IntrinsicElements)}return Y}var l=qa(i,1);if(0===l.length&&0===(l=qa(i,0)).length)return ur(r.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(r.tagName)),ee;var _=function(t,r){for(var n,i=[],a=!!t.typeArguments,o=0,s=r;o<s.length;o++){var c=s[o];if(c.typeParameters){var u=e.isInJavaScriptFile(t),l=G_(c,t,u,!1);if(l)a=!1,i.push(l);else{t.typeArguments&&Fd(c,t.typeArguments)&&(n=c);var _=Md(c,t,Ju(c.typeParameters,c,u?4:0));i.push(fo(c,_,u))}}else i.push(c)}return t.typeArguments&&a&&(n?Rd(n,t.typeArguments,!0):0!==t.typeArguments.length&&Bt.add(Hd(t,r,t.typeArguments))),i}(r,l),d=Ss(e.map(_,_o),2),p=n?function(r,n,i,a){if(e.Debug.assert(!(131072&n.flags)),!a||!Mc(i,a)){var o=id(r);if(o){var s=[];tp(r,n,s);for(var c=void 0,u=void 0,l=0,_=s;l<_.length;l++){var d=_[l],p=_o(d),f=p&&(0===d.parameters.length?ge:fi(d.parameters[0]));if(f=$_(f),p&&Mc(p,o)){for(var m=!0,g=0,y=r.attributes.properties;g<y.length;g++){var h=y[g];if(e.isJsxAttribute(h)&&z_(h.name.escapedText)&&!Ka(f,h.name.escapedText)){m=!1;break}}m&&(c=ua(c,f)),u=ua(u,f)}}c||(c=u);var v=W_(t.IntrinsicAttributes,r);return v!==ee&&(c=ua(v,c)),c}}}(r,i,d,a):function(r,n,i,a){if(e.Debug.assert(!(131072&n.flags)),!a||!Mc(i,a)){var o=id(r);if(o){var s=tp(r,n,void 0);if(s!==ot){var c=s&&_o(s),u=c&&(0===s.parameters.length?ge:fi(s.parameters[0]));if(u=$_(u),c&&Mc(c,o)){var l=W_(t.IntrinsicAttributes,r);return l!==ee&&(u=ua(l,u)),u}}}}}(r,i,d,a);if(p)return p;a&&Xc(d,a,tr,r,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements);var f=e.isInJavaScriptFile(r);return Ss(e.map(_,function(e){return E_(e,f,r,!0)}))}function ed(t){e.Debug.assert(K_(t.tagName));var r=br(t);if(!r.resolvedJsxElementAttributesType){var n=H_(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=fi(n):2&r.jsxFlags?r.resolvedJsxElementAttributesType=Do(n,0).type:r.resolvedJsxElementAttributesType=ee}return r.resolvedJsxElementAttributesType}function td(e,r){return Z_(e,r,nf(e.tagName),(n=e,(i=W_(t.ElementClass,n))===ee?void 0:i));var n,i}function rd(e){var t;return Ka(K_((t=e.parent.parent).tagName)?ed(t):td(t,!1),e.name.escapedText)||X}function nd(e){return W_(t.Element,e)}function id(e){var t=nd(e);if(t)return Ss([t,ne])}function ad(t,r){var n,i=e.isJsxOpeningLikeElement(t);i&&function(t){jg(t,t.typeArguments);for(var r=e.createUnderscoreEscapedMap(),n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(263!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return ty(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&264===s.kind&&!s.expression)return ty(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(t),n=t,0===(C.jsx||0)&&ur(n,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===nd(n)&&O&&ur(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var a=Bt&&2===C.jsx?e.Diagnostics.Cannot_find_name_0:void 0,o=cr(t),s=Dr(i?t.tagName:t,o,67216319,a,o,!0);s&&(s.isReferenced=67108863,2097152&s.flags&&!fg(zr(s))&&Ur(s)),i?function(t,r){var n=K_(t.tagName)?ed(t):td(t,!1),i=q_(t,r),a=Mc(i,n);if(!a||Wn(i)||Wn(n)){if(!a){if(e.length(t.attributes.properties)){for(var o=!1,s=function(t){if(e.isJsxSpreadAttribute(t))return"continue";var r=e.idText(t.name),a=Bs(i,ac(r)),s=Bs(n,ac(r));jc(a,s,t,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Types_of_property_0_are_incompatible,r)})||(o=!0)},c=0,u=t.attributes.properties;c<u.length;c++){var l=u[c];s(l)}if(o)return}jc(i,n,t.tagName)}}else for(var _=0,d=t.attributes.properties;_<d.length;_++){var p=d[_];if(e.isJsxAttribute(p)){var f=p.name,m=z_(e.idText(f))||!!Ka(n,f.escapedText);if(m&&!od(n,f.escapedText,!0)){ur(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(f),wn(n));break}}}}(t,r):V_(t.parent)}function od(e,t,r){if(65536&e.flags){var n=Sa(e);if(n.stringIndexInfo||n.numberIndexInfo&&L_(t)||Da(e,t)||r&&!z_(t))return!0}else if(393216&e.flags)for(var i=0,a=e.types;i<a.length;i++)if(od(a[i],t,r))return!0;return!1}function sd(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function cd(t){if(8192&t.flags||4&e.getCheckFlags(t))return!0;if(e.isInJavaScriptFile(t.valueDeclaration)){var r=t.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&3===e.getSpecialPropertyAssignmentKind(r)}}function ud(t,r,n,i){var a,o=e.getDeclarationModifierFlagsFromSymbol(i),s=184===t.kind||231===t.kind?t.name:178===t.kind?t:t.right;if(256&e.getCheckFlags(i))return ur(s,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,An(i),wn(n)),!1;if(97===r.kind){if(E<2&&ld(i))return ur(s,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&o)return ur(s,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,An(i),wn(nu(i))),!1}if(128&o&&e.isThisProperty(t)&&ld(i)&&(a=e.getClassLikeDeclarationOfSymbol(un(i)))&&function(t,r){return e.findAncestor(t,function(t){return!(!e.isConstructorDeclaration(t)||!e.nodeIsPresent(t.body)||t.parent!==r)||!(t!==r&&!e.isFunctionLikeDeclaration(t))&&"quit"})}(t,a))return ur(s,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,An(i),e.getTextOfIdentifierOrLiteral(a.name)),!1;if(!(24&o))return!0;if(8&o)return!!Qm(t,a=e.getClassLikeDeclarationOfSymbol(un(i)))||(ur(s,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,An(i),wn(nu(i))),!1);if(97===r.kind)return!0;var c=Xm(t,function(t){var r=Ri(cn(t));return function(t,r){return ru(r,function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&!yi(t,nu(r))})?void 0:t}(r,i)?r:void 0});return c?!!(32&o)||(32768&n.flags&&(n=n.isThisType?Na(n):Fa(n)),!(!n||!yi(n,c))||(ur(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,An(i),wn(c)),!1)):(ur(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,An(i),wn(nu(i)||n)),!1)}function ld(e){return ru(e,function(e){var t,r=(t=e).valueDeclaration?t.valueDeclaration.kind:151;return 153!==r&&152!==r})}function _d(e,t,r,n){return dd(nf(e),e,t,r,n)}function dd(t,r,n,i,a){var o=12288&(P?Su(t):t.flags);if(o){ur(r,4096&o?8192&o?a||e.Diagnostics.Object_is_possibly_null_or_undefined:i||e.Diagnostics.Object_is_possibly_undefined:n||e.Diagnostics.Object_is_possibly_null);var s=Eu(t);return 28672&s.flags?ee:s}return t}function pd(e){return md(e,e.expression,e.name)}function fd(e){return md(e,e.left,e.right)}function md(t,r,n){var i,a=_d(r),o=br(r).resolvedSymbol,s=Ba(Mu(a));if(Wn(s)||s===pe)return e.isIdentifier(r)&&o&&Zl(o,t),s;var c=e.getAssignmentTargetKind(t),u=Ka(s,n.escapedText);if(!e.isIdentifier(r)||!o||u&&fg(u)||Zl(o,t),u){if(function(t,r,n){var i=t.valueDeclaration;i&&(!function(t){return!!e.findAncestor(t,function(t){switch(t.kind){case 151:return!0;case 269:return!1;default:return!e.isExpressionNode(t)&&"quit"}})}(r)||kr(i,n)||function(e){if(!(32&e.parent.flags))return!1;for(var t=fi(e.parent);;){if(!(t=t.symbol&&gd(t)))return!1;var r=Ka(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(t)?234!==i.kind||161===r.parent.kind||2097152&i.flags||kr(i,n)||ur(n,e.Diagnostics.Class_0_used_before_its_declaration,e.idText(n)):ur(n,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,e.idText(n)))}(u,t,n),Sd(u,t,99===r.kind),br(t).resolvedSymbol=u,ud(t,r,s,u),c&&(Op(t,u)||Ip(t)))return ur(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,e.idText(n)),ee;i=$l(fi(u),t)}else{var l=Ha(s,0);if(!l||!l.type)return n.escapedText&&!Ar(t)&&function(t,r){var n;if(131072&r.flags&&!(16382&r.flags))for(var i=0,a=r.types;i<a.length;i++){var o=a[i];if(!Ka(o,t.escapedText)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),wn(o));break}}var s=Cf(r);if(s&&Ka(s,t.escapedText))n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await,e.declarationNameToString(t),wn(r));else{var c=yd(t,r);n=void 0!==c?e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(t),wn(r),c):e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),wn(r))}Bt.add(e.createDiagnosticForNodeFromMessageChain(t,n))}(n,32768&a.flags&&a.isThisType?s:a),ee;l.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&ur(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,wn(s)),i=l.type}if(184!==t.kind||1===c||u&&!(98311&u.flags)&&!(8192&u.flags&&131072&i.flags))return i;var _=!1;if(P&&F&&99===r.kind){var d=u&&u.valueDeclaration;if(d&&Tm(d)){var p=Wl(t);154===p.kind&&p.parent===d.parent&&(_=!0)}}var f=Vl(t,i,_?Cu(i):i);return _&&!(4096&Su(i))&&4096&Su(f)?(ur(n,e.Diagnostics.Property_0_is_used_before_being_assigned,An(u)),i):c?gu(f):f}function gd(e){var t=Ni(e);if(0!==t.length)return Es(t)}function yd(t,r){var n=bd(e.idText(t),Ca(r),67216319);return n&&e.symbolName(n)}function hd(t,r,n){e.Debug.assert(void 0!==r,"outername should always be defined");var i=Tr(t,r,n,void 0,r,!1,!1,function(t,n,i){return e.Debug.assertEqual(r,n,"name should equal outerName"),Sr(t,n,i)||bd(e.unescapeLeadingUnderscores(n),e.arrayFrom(t.values()),i)});return i&&e.symbolName(i)}function vd(t,r){var n=r.exports&&bd(e.idText(t),en(r),2623475);return n&&e.symbolName(n)}function bd(t,r,n){for(var i,a=Math.min(2,Math.floor(.34*t.length)),o=Math.floor(.4*t.length)+1,s=!1,c=t.toLowerCase(),u=0,l=r;u<l.length;u++){var _=l[u],d=e.symbolName(_);if(34!==d.charCodeAt(0)&&_.flags&n&&Math.abs(d.length-c.length)<=a){var p=d.toLowerCase();if(p===c)return _;if(!(s||d.length<3)){var f=xd(c,p,o-1);void 0!==f&&(f<3?(s=!0,i=_):(e.Debug.assert(f<o),o=f,i=_))}}}return i}function xd(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+1,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=o>r?o-r:1,u=t.length>r+o?r+o:t.length;i[0]=o;for(var l=o,_=1;_<c;_++)i[_]=a;for(_=c;_<=u;_++){var d=s===t.charCodeAt(_-1)?n[_-1]:Math.min(n[_]+1,i[_-1]+1,n[_-1]+2);i[_]=d,l=Math.min(l,d)}for(_=u+1;_<=t.length;_++)i[_]=a;if(l>r)return;var p=n;n=i,i=p}var f=n[t.length];return f>r?void 0:f}function Sd(t,r,n){if(t&&106500&t.flags&&t.valueDeclaration&&e.hasModifier(t.valueDeclaration,8)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags&&!(32768&t.flags))){if(n){var i=e.findAncestor(r,e.isFunctionLikeDeclaration);if(i&&i.symbol===t)return}(1&e.getCheckFlags(t)?vr(t).target:t).isReferenced=67108863}}function kd(t,r,n,i){if(i===ee||Wn(i))return!0;var a=Ka(i,n);return a?ud(t,r,i,a):e.isInJavaScriptFile(t)&&131072&i.flags&&i.types.some(function(e){return kd(t,r,n,e)})}function Dd(t){var r=t.initializer;if(232===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return cn(n)}else if(71===r.kind)return il(r)}function Td(t){var r=_d(t.expression),n=t.argumentExpression;if(!n){var i,a=e.getSourceFileOfNode(t);return 187===t.parent.kind&&t.parent.expression===t?ey(a,i=e.skipTrivia(a.text,t.expression.end),t.end-i,e.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead):ey(a,i=t.end-"]".length,t.end-i,e.Diagnostics.Expression_expected),ee}var o=function(t){var r,n=e.skipParentheses(t);if(71===n.kind){var i=il(n);if(3&i.flags)for(var a=t,o=t.parent;o;){if(220===o.kind&&a===o.statement&&Dd(o)===i&&Ga(r=rf(o.expression),1)&&!Ga(r,0))return!0;a=o,o=o.parent}}return!1}(n)?oe:nf(n);return r===ee||r===pe?r:jp(r)&&9!==n.kind?(ur(n,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ee):vf(Bs(r,o,t),t)}function Cd(t,r,n){if(r===ee)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0==(1536&r.flags))return n&&ur(t,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(t)),!1;var i=t.expression,a=il(i);if(!a)return!1;var o=Qo(!0);return!(!o||a!==o&&(n&&ur(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),1))}function Ed(t){return e.isCallOrNewExpression(t)}function Nd(t){return Ed(t)&&e.forEach(t.typeArguments,Jm),188===t.kind?nf(t.template):149!==t.kind&&e.forEach(t.arguments,function(e){nf(e)}),at}function Ad(e){return Nd(e),ot}function Pd(e){for(var t=0;t<e.length;t++){var r=e[t];if(r&&203===r.kind)return t}return-1}function wd(t,r,n,i){var a,o,s;void 0===i&&(i=!1);var c=-1;if(e.isJsxOpeningLikeElement(t))return!0;if(188===t.kind)if(a=r.length,o=void 0,201===t.template.kind){var u=e.lastOrUndefined(t.template.templateSpans);e.Debug.assert(void 0!==u),s=e.nodeIsMissing(u.literal)||!!u.literal.isUnterminated}else{var l=t.template;e.Debug.assert(13===l.kind),s=!!l.isUnterminated}else if(149===t.kind)o=void 0,a=zd(t,void 0,n);else{if(!t.arguments)return e.Debug.assert(187===t.kind),0===n.minArgumentCount;a=i?r.length+1:r.length,s=t.arguments.end===t.end,o=t.typeArguments,c=Pd(r)}if(!Fd(n,o))return!1;if(c>=0)return cu(n,c)||n.minArgumentCount<=c&&c<n.parameters.length;if(!n.hasRestParameter&&a>n.parameters.length)return!1;var _=a>=n.minArgumentCount;return s||_}function Fd(t,r){var n=e.length(t.typeParameters),i=no(t.typeParameters);return!r||r.length>=i&&r.length<=n}function Od(e){if(65536&e.flags){var t=Sa(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function Id(t,r,n,i){var a=Ju(t.typeParameters,t,1,i);return ju(r,t,function(e,t){Xu(a.inferences,Dc(e,n||T),t)}),n||Xu(a.inferences,_o(r),_o(t),8),fo(t,nl(a),e.isInJavaScriptFile(r.declaration))}function Md(e,t,r){var n=hp(e,0),i=Gp(t.attributes,n,T);Xu(r.inferences,i,n);var a=hp(e,0),o=Gp(t.attributes,a,r);return Xu(r.inferences,o,a),nl(r)}function Ld(t,r,n,i,a){for(var o=0,s=a.inferences;o<s.length;o++){var c=s[o];c.isFixed||(c.inferredType=void 0)}if(149!==t.kind){var u=T_(t);if(u){var l=Dc(u,function(e){return e&&function(e){return!!e.typeParameters}(e)?Ju(e.typeParameters,e.signature,2|e.flags,e.compareTypes,e.inferences):e}(C_(t))),_=Od(l),d=_&&_.typeParameters?bo(fo(_,_.typeParameters,e.isInJavaScriptFile(t))):l,p=_o(r);Xu(a.inferences,d,p,8)}}var f=co(r);if(f){var m=jd(t),g=m?nf(m):_e;Xu(a.inferences,g,f)}for(var y=zd(t,n,r),h=0;h<y;h++)if(void 0===(x=Vd(t,n,h))||205!==x.kind){var v=hp(r,h),b=qd(t,h);void 0===b&&(b=Gp(x,v,i&&void 0!==i[h]?T:a)),Xu(a.inferences,b,v)}if(i)for(h=0;h<y;h++)if(!1===i[h]){var x=n[h];v=hp(r,h),Xu(a.inferences,Gp(x,v,a),v)}return nl(a)}function Rd(t,r,n,i){for(var a,o=e.isInJavaScriptFile(t.declaration),s=t.typeParameters,c=io(e.map(r,cc),s,no(s),o),u=0;u<r.length;u++){e.Debug.assert(void 0!==s[u],"Should not call checkTypeArguments with too many type arguments");var l=Na(s[u]);if(l){var _=n&&i&&function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)},d=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=dc(s,c));var p=c[u];if(!jc(p,ta(Dc(l,a),p),n?r[u]:void 0,d,_))return!1}}return c}function Bd(t,r,n,i,a,o){if(e.isJsxOpeningLikeElement(t))return function(t,r,n){if(t.attributes.end===t.end)return!0;for(var i=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,a=hp(r,0),o=Gp(t.attributes,a,void 0),s=0,c=Ca(o);s<c.length;s++){var u=c[s];if(!Ka(a,u.escapedName)&&z_(u.escapedName))return!1}return Xc(o,a,n,void 0,i)}(t,n,i);var s=co(n);if(s&&s!==_e&&187!==t.kind){var c=jd(t),u=c?nf(c):_e,l=o?c||t:void 0,_=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Xc(u,co(n),i,l,_))return!1}for(var d=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,p=zd(t,r,n),f=0;f<p;f++){var m=Vd(t,r,f);if(void 0===m||205!==m.kind){var g=hp(n,f),y=qd(t,f)||Gp(m,g,a&&a[f]?T:void 0);if(!Xc(a?Pu(y):y,g,i,l=o?Wd(t,f,m):void 0,d))return!1}}return!0}function jd(t){if(186===t.kind){var r=e.skipOuterExpressions(t.expression);if(184===r.kind||185===r.kind)return r.expression}}function Jd(t){if(188===t.kind){var r=t.template,n=[void 0];return 201===r.kind&&e.forEach(r.templateSpans,function(e){n.push(e.expression)}),n}return 149===t.kind?void 0:e.isJsxOpeningLikeElement(t)?t.attributes.properties.length>0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function zd(e,t,r){if(149!==e.kind)return t.length;switch(e.parent.kind){case 234:case 204:return 1;case 151:return 2;case 153:case 155:case 156:return 0===E?2:r.parameters.length>=3?3:2;case 148:return 3}}function Kd(t){return 234===t.kind?fi(cn(t)):148===t.kind&&154===(t=t.parent).kind?fi(cn(t)):151===t.kind||153===t.kind||155===t.kind||156===t.kind?function(t){var r=cn(t.parent);return e.hasModifier(t,32)?fi(r):Ri(r)}(t):(e.Debug.fail("Unsupported decorator target."),ee)}function Ud(t,r){return 0===r?Kd(t.parent):1===r?function(t){if(234===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),ee;if(148===t.kind&&154===(t=t.parent).kind)return Y;if(151===t.kind||153===t.kind||155===t.kind||156===t.kind){var r=t;switch(r.name.kind){case 71:return ac(e.idText(r.name));case 8:case 9:return ac(r.name.text);case 146:var n=R_(r.name);return Rp(n,1536)?n:ae;default:return e.Debug.fail("Unsupported property name."),ee}}return e.Debug.fail("Unsupported decorator target."),ee}(t.parent):2===r?function(t){return 234===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),ee):148===t.kind?oe:151===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),ee):153===t.kind||155===t.kind||156===t.kind?cs(eg(t)):(e.Debug.fail("Unsupported decorator target."),ee)}(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),ee)}function qd(e,t){return 149===e.kind?Ud(e,t):0===t&&188===e.kind?Ze||(Ze=Xo("TemplateStringsArray",0,!0))||ge:void 0}function Vd(e,t,r){if(149!==e.kind&&(0!==r||188!==e.kind))return t[r]}function Wd(e,t,r){return 149===e.kind?e.expression:0===t&&188===e.kind?e.template:r}function Hd(t,r,n){for(var i=1/0,a=-1/0,o=0,s=r;o<s.length;o++){var c=s[o];i=Math.min(i,no(c.typeParameters)),a=Math.max(a,e.length(c.typeParameters))}var u=i===a?i:i+"-"+a;return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,u,n.length)}function Gd(t,r,n,i){var o,s=188===t.kind,c=149===t.kind,u=e.isJsxOpeningLikeElement(t);c||u||(o=t.typeArguments,(s||97!==t.expression.kind)&&e.forEach(o,Jm));var l=n||[];if(function(t,r){var n,i,a,o,s=0,c=-1;e.Debug.assert(!r.length);for(var u=0,l=t;u<l.length;u++){var _=l[u],d=_.declaration&&cn(_.declaration),p=_.declaration&&_.declaration.parent;i&&d!==i?(a=s=r.length,n=p):n&&p===n?a++:(n=p,a=s),i=d,_.hasLiteralTypes?(o=++c,s++):o=a,r.splice(o,0,_)}}(r,l),!l.length)return Bt.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Ad(t);var _,d,p,f,m=Jd(t),g=1===l.length&&!l[0].typeParameters,y=0;if(!c&&!g)for(var h=s?1:0;h<m.length;h++)Ec(m[h])&&(_||(_=new Array(m.length)),_[h]=!0,y++);var v=n&&186===t.kind&&t.arguments.hasTrailingComma;if(l.length>1&&(f=M(l,er,v)),f||(f=M(l,tr,v)),f)return f;if(d){if(u)return d;Bd(t,m,d,tr,void 0,!0)}else if(p)Rd(p,t.typeArguments,!0,i);else if(o&&e.every(r,function(t){return e.length(t.typeParameters)!==o.length}))Bt.add(Hd(t,r,o));else if(m){for(var b=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY,S=0,k=r;S<k.length;S++){var D=k[S];b=Math.min(b,D.minArgumentCount),x=Math.max(x,D.parameters.length)}var T=e.some(r,function(e){return e.hasRestParameter}),C=Pd(m)>-1,E=T?b:b<x?b+"-"+x:b,N=m.length;N<=x&&C&&N--;var A=T&&C?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:T?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:C?e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1;Bt.add(e.createDiagnosticForNode(t,A,E,N))}else i&&Bt.add(e.createDiagnosticForNode(t,i));if(!a){e.Debug.assert(l.length>0);var P=function(e,t){for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i];if(a.hasRestParameter||a.parameters.length>=t)return i;a.parameters.length>n&&(n=a.parameters.length,r=i)}return r}(l,void 0===B?m.length:B),w=l[P],F=w.typeParameters;if(F&&Ed(t)&&t.typeArguments){for(var O=t.typeArguments.map(eg);O.length>F.length;)O.pop();for(;O.length<F.length;)O.push(rl(e.isInJavaScriptFile(t)));var I=mo(w,O);return l[P]=I,I}return w}return Ad(t);function M(r,n,i){if(void 0===i&&(i=!1),d=void 0,p=void 0,g){var a=r[0];if(!wd(t,m,a,i))return;return Bd(t,m,a,n,_,!1)?a:void(d=a)}for(var s=0;s<r.length;s++){var c=r[s];if(wd(t,m,c,i)){a=void 0;for(var u=c.typeParameters?Ju(c.typeParameters,c,e.isInJavaScriptFile(t)?4:0):void 0;;){if((a=c).typeParameters){var l=void 0;if(o){var f=Rd(a,o,!1);if(!f){p=c;break}l=f}else l=Ld(t,a,m,_,u);a=fo(a,l,e.isInJavaScriptFile(a.declaration))}if(!Bd(t,m,a,n,_,!1)){d=a;break}if(0===y)return r[s]=a,a;--y>0?_[_.indexOf(!0)]=!1:_=void 0}}}}}function Xd(e,t,r,n){return Wn(e)||Wn(t)&&32768&e.flags||!r&&!n&&!(147456&t.flags)&&Mc(e,Ae)}function Qd(t,r){if(t.arguments&&E<1){var n=Pd(t.arguments);n>=0&&ur(t.arguments[n],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=_d(t.expression);if(i===pe)return ct;if((i=Ba(i))===ee)return Ad(t);if(Wn(i))return t.typeArguments&&ur(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Nd(t);var a=qa(i,1);if(a.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedModifierFlags(n,24);if(!i)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=Ri(n.parent.symbol);if(!Qm(t,a)){var s=e.getContainingClass(t);if(s)for(var c=eg(s),u=Ni(c);u.length;){var l=u[0];if(16&i&&l.symbol===n.parent.symbol)return!0;u=Ni(l)}return 8&i&&ur(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,wn(o)),16&i&&ur(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,wn(o)),!1}return!0}(t,a[0]))return Ad(t);var o=i.symbol&&e.getClassLikeDeclarationOfSymbol(i.symbol);return o&&e.hasModifier(o,128)?(ur(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Ad(t)):Gd(t,a,r)}var s=qa(i,0);if(s.length){var c=Gd(t,s,r);return ap(c.declaration)||_o(c)===_e||ur(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),co(c)===_e&&ur(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return Yd(t,i,1),Ad(t)}function Yd(t,r,n){ur(t,0===n?e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature,wn(r)),$d(r,n)}function $d(t,r){if(t.symbol){var n=vr(t.symbol).originatingImport;if(n&&!e.isImportCall(n)){var i=qa(fi(vr(t.symbol).target),r);if(!i||!i.length)return;ur(n,e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime)}}}function Zd(t){switch(t.parent.kind){case 234:case 204:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 148:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 151:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 153:case 155:case 156:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function ep(t,r){var n=nf(t.expression),i=Ba(n);if(i===ee)return Ad(t);var a,o,s=qa(i,0),c=qa(i,1);if(Xd(n,i,s.length,c.length))return Nd(t);if(a=t,(o=s).length&&e.every(o,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length<zd(a,void 0,e)})){var u=e.getTextOfNode(t.expression,!1);return ur(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,u),Ad(t)}var l=Zd(t);if(!s.length){var _=void 0;return _=e.chainDiagnosticMessages(_,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,wn(i)),_=e.chainDiagnosticMessages(_,l),Bt.add(e.createDiagnosticForNodeFromMessageChain(t,_)),$d(i,0),Ad(t)}return Gd(t,s,r,l)}function tp(t,r,n){return e.Debug.assert(!(131072&r.flags)),rp(t,r,n)}function rp(e,t,r){if(131072&t.flags){for(var n=void 0,i=0,a=t.types;i<a.length;i++){var o=a[i];n=n||rp(e,o,r)}return n}var s=t&&qa(t,0);if(s&&s.length>0)return Gd(e,s,r)}function np(t,r){switch(t.kind){case 186:return function(t,r){if(97===t.expression.kind){var n=c_(t.expression);if(Wn(n))return at;if(n!==ee){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i)return Gd(t,Ci(n,i.typeArguments,i),r)}return Nd(t)}var a=_d(t.expression,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(a===pe)return ct;var o=Ba(a);if(o===ee)return Ad(t);var s=qa(o,0),c=qa(o,1);return Xd(a,o,s.length,c.length)?(a!==ee&&t.typeArguments&&ur(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Nd(t)):s.length?Gd(t,s,r):(c.length?ur(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,wn(a)):Yd(t,o,0),Ad(t))}(t,r);case 187:return Qd(t,r);case 188:return function(e,t){var r=nf(e.tag),n=Ba(r);if(n===ee)return Ad(e);var i=qa(n,0),a=qa(n,1);return Xd(r,n,i.length,a.length)?Nd(e):i.length?Gd(e,i,t):(Yd(e,n,0),Ad(e))}(t,r);case 149:return ep(t,r);case 256:case 255:return rp(t,nf(t.tagName),r)||ot}e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function ip(e,t){var r=br(e),n=r.resolvedSignature;if(n&&n!==st&&!t)return n;r.resolvedSignature=st;var i=np(e,t);return r.resolvedSignature=mt===gt?i:n,i}function ap(t){if(t&&e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var r=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?cn(t):e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?cn(t.initializer):void 0;return r&&void 0!==r.members}return!1}function op(t){var r=t.valueDeclaration,n=r&&r.parent&&(e.isBinaryExpression(r.parent)&&cn(r.parent.left)||e.isVariableDeclaration(r.parent)&&cn(r.parent));if(n){var i=e.forEach(n.declarations,sp);if(i)return nf(i)}}function sp(t){if(!t.parent)return!1;for(var r=t.parent;r&&184===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&58===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}}function cp(t){var r=vr(t);return r.inferredClassType||(r.inferredClassType=vn(t,Zi(t)||D,e.emptyArray,e.emptyArray,void 0,void 0)),r.inferredClassType}function up(t){return t.symbol&&16&e.getObjectFlags(t)&&vr(t.symbol).inferredClassType===t}function lp(t){jg(t,t.typeArguments)||Jg(t.arguments);var r=ip(t);if(97===t.expression.kind)return _e;if(187===t.kind){var n=r.declaration;if(n&&154!==n.kind&&158!==n.kind&&163!==n.kind&&!e.isJSDocConstructSignature(n)){var i=nf(t.expression).symbol;i||71!==t.expression.kind||(i=il(t.expression));var a=i&&function(t){var r,n=e.getDeclaredJavascriptInitializer(t.valueDeclaration);n&&(t=cn(n)),ap(t.valueDeclaration)&&(r=cp(t));var i=op(t),a=fi(t);return a.symbol&&!up(a)&&ap(a.symbol.valueDeclaration)&&(r=cp(a.symbol)),i&&r?Es([r,i]):i||r}(i);return a?r.target?Dc(a,r.mapper):a:(O&&ur(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Y)}}if(e.isInJavaScriptFile(t)&&fp(t))return function(e){var t=Hr(e,e);if(t){var r=Yr(t);if(r)return fi(r)}return Y}(t.arguments[0]);var o=_o(r);return 1536&o.flags&&_p(t)?oc(e.walkUpParenthesizedExpressions(t.parent)):o}function _p(t){if(!e.isCallExpression(t))return!1;var r=t.expression;if(e.isPropertyAccessExpression(r)&&"for"===r.name.escapedText&&(r=r.expression),!e.isIdentifier(r)||"Symbol"!==r.escapedText)return!1;var n=Qo(!1);return!!n&&n===Dr(r,"Symbol",67216319,void 0,void 0,!1)}function dp(t){if(Jg(t.arguments)||function(t){if(N===e.ModuleKind.ES2015)return ty(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return ty(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;if(1!==r.length)return ty(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);e.isSpreadElement(r[0])&&ty(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return kp(t,Y);for(var r=t.arguments[0],n=Xp(r),i=1;i<t.arguments.length;++i)Xp(t.arguments[i]);(4096&n.flags||8192&n.flags||!Mc(n,ae))&&ur(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,wn(n));var a=Hr(t,r);if(a){var o=$r(a,r,!0);if(o)return kp(t,pp(fi(o),o,a))}return kp(t,Y)}function pp(t,r,n){if(A&&t&&t!==ee){var i=t;if(!i.syntheticType)if(Mr(e.find(n.declarations,e.isSourceFile),n,!1)){var a=e.createSymbolTable(),o=_r(2097152,"default");o.target=Jr(r),a.set("default",o);var s=_r(2048,"__type"),c=vn(s,a,e.emptyArray,e.emptyArray,void 0,void 0);s.type=c,i.syntheticType=J_(t)?$s(t,c,s,0,0):c}else i.syntheticType=t;return i.syntheticType}return t}function fp(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=Dr(t.expression,t.expression.escapedText,67216319,void 0,void 0,!0);if(!r)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?233:3&r.flags?231:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(2097152&i.flags)}return!1}function mp(t,r,n,i){var o=Pu(gu(nf(n,i)));Jm(r);var s=cc(r);return a&&s!==ee&&(Rc(s,Mu(o))||Jc(o,s,t,e.Diagnostics.Type_0_cannot_be_converted_to_type_1)),s}function gp(t){!function(t){94===t.keywordToken&&"target"!==t.name.escapedText&&ty(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target")}(t);var r=e.getNewTargetContainer(t);return r?154===r.kind?fi(cn(r.parent)):fi(cn(r)):(ur(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ee)}function yp(t){var r=fi(t);if(P){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return Cu(r)}return r}function hp(e,t){return e.hasRestParameter?t<e.parameters.length-1?yp(e.parameters[t]):po(e):t<e.parameters.length?yp(e.parameters[t]):Y}function vp(e){return bp(e,de)}function bp(e,t){return e.parameters.length>0?hp(e,0):t}function xp(t,r){var n=vr(t);if(!n.type){n.type=r;var i=t.valueDeclaration;71!==i.name.kind&&(n.type===ge&&(n.type=ni(i.name)),function t(r){for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(71===a.name.kind?vr(cn(a)).type=Qn(a):t(a.name))}}(i.name))}}function Sp(e){var t=$o(!0);return t!==ve?Ao(t,[e=Nf(e)||ge]):ge}function kp(t,r){var n=Sp(r);return n===ge?(ur(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ee):(Zo(!0)||ur(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function Dp(t,r){if(!t.body)return ee;var n,i=e.getFunctionFlags(t);if(212!==t.body.kind)n=Xp(t.body,r),2&i&&(n=Ef(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else{var a=function(t,r){var n=e.getFunctionFlags(t),i=[],a=Ep(t),o=!1;if(e.forEachReturnStatement(t.body,function(s){var c=s.expression;if(c){var u=Xp(c,r);2&n&&(u=Ef(u,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),16384&u.flags&&(o=!0),e.pushIfUnique(i,u)}else a=!0}),0!==i.length||a||!o&&!function(e){switch(e.kind){case 191:case 192:return!0;case 153:return 183===e.parent.kind;default:return!1}}(t))return!(P&&i.length&&a)||ap(t)&&i.some(function(e){return e.symbol===t.symbol})||e.pushIfUnique(i,te),i}(t,r);if(1&i){if(!(a=e.concatenate(function(t,r){var n=[],i=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,function(t){e.pushIfUnique(n,Tp(t,i,r))}),n}(t,r),a))||0===a.length){var o=2&i?us(Y):_s(Y);return O&&ur(t.asteriskToken,e.Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type,wn(o)),o}}else{if(!a)return 2&i?kp(t,de):de;if(0===a.length)return 2&i?kp(t,_e):_e}n=Ss(a,2)}var s=P_(t);if(s||Bu(t,n),fu(n)){var c=s?s===ao(t)?n:_o(s):void 0;if(c)switch(3&i){case 3:c=dm(c,!0);break;case 1:c=dm(c,!1);break;case 2:c=Cf(c)}n=vu(n,c)}var u=Mu(n);switch(3&i){case 3:return us(u);case 1:return _s(u);case 2:return Sp(u);default:return u}}function Tp(t,r,n){var i=t.expression||t,a=t.expression?Xp(t.expression,n):re,o=t.asteriskToken?sm(a,i,!1,r):a;return r?Nf(o,i,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function Cp(t){if(!t.possiblyExhaustive)return!1;var r=rf(t.expression);if(!mu(r))return!1;var n,i,a=El(t);return!!a.length&&(n=wl(r,ic),i=a,131072&n.flags?!e.forEach(n.types,function(t){return!e.contains(i,t)}):e.contains(i,n))}function Ep(t){return!!(128&t.flags)&&!e.some(t.body.statements,function(e){return 226===e.kind&&Cp(e)})}function Np(t,r){if(a&&(!r||!Lp(r,2049))&&152!==t.kind&&!e.nodeIsMissing(t.body)&&212===t.body.kind&&Ep(t)){var n=256&t.flags;if(r&&16384&r.flags)ur(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!n)ur(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(r&&P&&!Mc(te,r))ur(e.getEffectiveReturnTypeNode(t),e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(C.noImplicitReturns){if(!r){if(!n)return;if(mm(t,_o(ao(t))))return}ur(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Not_all_code_paths_return_a_value)}}}function Ap(t,r){if(e.Debug.assert(153!==t.kind||e.isObjectLiteralMethod(t)),1===r&&Ec(t))return be;Bg(t)||191!==t.kind||qg(t);var n=br(t),i=fi(t.symbol);if(Wn(i))return i;if(!(1024&n.flags)){var a=F_(t);if(!(1024&n.flags)){if(n.flags|=1024,a){var o=qa(i,0)[0];if(Ec(t)){var s=C_(t);2===r&&function(t,r,n){for(var i=t.parameters.length-(t.hasRestParameter?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&Xu(n.inferences,cc(s),hp(r,a))}}}(o,a,s),function(t,r){t.typeParameters=r.typeParameters,r.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=Au(r.thisParameter,void 0)),xp(t.thisParameter,fi(r.thisParameter)));for(var n=t.parameters.length-(t.hasRestParameter?1:0),i=0;i<n;i++){var a=t.parameters[i];e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||xp(a,hp(r,i))}t.hasRestParameter&&cu(r,t.parameters.length-1)&&(!dr(a=e.lastOrUndefined(t.parameters))&&e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||xp(a,fi(e.lastOrUndefined(r.parameters))))}(o,s===T?a:hc(a,s))}if(!e.getEffectiveReturnTypeNode(t)&&!o.resolvedReturnType){var c=Dp(t,r);o.resolvedReturnType||(o.resolvedReturnType=c)}}cf(t),Km(t)}}return i}function Pp(t){e.Debug.assert(153!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=e.getEffectiveReturnTypeNode(t),i=n&&(2==(3&r)?Af(t):cc(n));if(0==(1&r)&&Np(t,i),t.body)if(n||_o(ao(t)),212===t.body.kind)Jm(t.body);else{var a=nf(t.body);i&&jc(2==(3&r)?Ef(a,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a,i,t.body)}}function wp(e,t,r){return!!Rp(t,84)||(ur(e,r),!1)}function Fp(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&sd(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags)}function Op(t,r){if(Fp(r)){if(4&r.flags&&(184===t.kind||185===t.kind)&&99===t.expression.kind){var n=e.getContainingFunction(t);return!n||154!==n.kind||!(n.parent===r.valueDeclaration.parent||n===r.valueDeclaration.parent)}return!0}return!1}function Ip(t){if(184===t.kind||185===t.kind){var r=e.skipParentheses(t.expression);if(71===r.kind){var n=br(r).resolvedSymbol;if(2097152&n.flags){var i=Fr(n);return i&&245===i.kind}}}return!1}function Mp(t,r){var n=e.skipOuterExpressions(t,3);return 71===n.kind||184===n.kind||185===n.kind||(ur(t,r),!1)}function Lp(e,t){if(e.flags&t||536870912&t&&xa(e))return!0;if(393216&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(Lp(n[r],t))return!0;return!1}function Rp(e,t,r){return!!(e.flags&t)||!(r&&14337&e.flags)&&(84&t&&Mc(e,oe)||524322&t&&Mc(e,ae)||136&t&&Mc(e,ue)||2048&t&&Mc(e,_e)||16384&t&&Mc(e,de)||8192&t&&Mc(e,ne)||4096&t&&Mc(e,te)||512&t&&Mc(e,le)||134217728&t&&Mc(e,me))}function Bp(t,r,n){return 131072&t.flags?e.every(t.types,function(e){return Bp(e,r,n)}):Rp(t,r,n)}function jp(t){return 16&e.getObjectFlags(t)&&t.symbol&&Jp(t.symbol)}function Jp(e){return 0!=(128&e.flags)}function zp(t,r,n){if(269===r.kind||270===r.kind){var i=r.name;if(146===i.kind&&R_(i),Gn(i))return;var a=e.getTextOfPropertyName(i);if(c=Wn(t)?t:Vn(t,a)||L_(a)&&Ga(t,1)||Ga(t,0))return 270===r.kind?Up(r,c):Up(r.initializer,c);ur(i,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,wn(t),e.declarationNameToString(i))}else{if(271===r.kind){E<6&&Fg(r,4);var o=[];if(n)for(var s=0;s<n.length-1;s++)o.push(n[s].name);var c=Xn(t,o,t.symbol);return Up(r.expression,c)}ur(r,e.Diagnostics.Property_assignment_expected)}}function Kp(t,r,n,i,a){var o=t.elements,s=o[n];if(205!==s.kind)if(203!==s.kind){var c=""+n,u=Wn(r)?r:pu(r)?Vn(r,c):i;if(u)return Up(s,u,a);nf(s),bu(r)?ur(s,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,wn(r),wo(r),o.length):ur(s,e.Diagnostics.Type_0_has_no_property_1,wn(r),c)}else if(n<o.length-1)ur(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var l=s.expression;if(199!==l.kind||58!==l.operatorToken.kind)return Up(l,ds(i),a);ur(l.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function Up(t,r,n){var i;if(270===t.kind){var a=t;a.objectAssignmentInitializer&&(!P||4096&Su(nf(a.objectAssignmentInitializer))||(r=fl(r,131072)),Wp(a.name,a.equalsToken,a.objectAssignmentInitializer,n)),i=t.name}else i=t;return 199===i.kind&&58===i.operatorToken.kind&&(Vp(i,n),i=i.left),183===i.kind?function(t,r){var n=t.properties;if(Lg(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),P&&0===n.length)return dd(r,t);for(var i=0,a=n;i<a.length;i++)zp(r,a[i],n);return r}(i,r):182===i.kind?function(t,r,n){var i=t.elements;Lg(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),E<2&&C.downlevelIteration&&Fg(t,512);for(var a=sm(r,t,!1,!1)||ee,o=0;o<i.length;o++)Kp(t,r,o,a,n);return r}(i,r,n):function(t,r,n){var i=nf(t,n),a=271===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access;return Mp(t,a)&&jc(r,i,t,void 0),r}(i,r,n)}function qp(e,t){return 0!=(12288&t.flags)||Rc(e,t)}function Vp(t,r){return e.isInJavaScriptFile(t)&&e.getAssignedJavascriptInitializer(t)?nf(t.right,r):Wp(t.left,t.operatorToken,t.right,r,t)}function Wp(t,r,n,i,o){var s=r.kind;if(58===s&&(183===t.kind||182===t.kind))return Up(t,nf(n,i),i);var c,u,l=nf(t,i),_=nf(n,i);switch(s){case 39:case 40:case 61:case 62:case 41:case 63:case 42:case 64:case 38:case 60:case 45:case 65:case 46:case 66:case 47:case 67:case 49:case 69:case 50:case 70:case 48:case 68:if(l===pe||_===pe)return pe;l=dd(l,t),_=dd(_,n);var d=void 0;if(136&l.flags&&136&_.flags&&void 0!==(d=function(e){switch(e){case 49:case 69:return 54;case 50:case 70:return 35;case 48:case 68:return 53;default:return}}(r.kind)))ur(o||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(d));else{var p=wp(t,l,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type),f=wp(n,_,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type);p&&f&&v(oe)}return oe;case 37:case 59:if(l===pe||_===pe)return pe;Rp(l,524322)||Rp(_,524322)||(l=dd(l,t),_=dd(_,n));var m=void 0;return Rp(l,84,!0)&&Rp(_,84,!0)?m=oe:Rp(l,524322,!0)||Rp(_,524322,!0)?m=ae:(Wn(l)||Wn(_))&&(m=l===ee||_===ee?ee:Y),m&&!h(s)?m:m?(59===s&&v(m),m):(b(),Y);case 27:case 29:case 30:case 31:return h(s)&&(l=gu(dd(l,t)),_=gu(dd(_,n)),Rc(l,_)||Rc(_,l)||b()),ue;case 32:case 33:case 34:case 35:var g=mu(l),y=mu(_);return g&&y||(l=g?gu(l):l,_=y?gu(_):_),qp(l,_)||qp(_,l)||b(),ue;case 93:return function(t,r,n,i){return n===pe||i===pe?pe:(!Wn(n)&&Bp(n,16382)&&ur(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Wn(i)||ng(i)||Ic(i,Ae)||ur(r,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),ue)}(t,n,l,_);case 92:return function(t,r,n,i){return n===pe||i===pe?pe:(n=dd(n,t),i=dd(i,r),Rc(n,ae)||Rp(n,1620)||ur(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),Rp(i,141590528)||ur(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ue)}(t,n,l,_);case 53:return 1048576&pl(l)?Ss([(u=P?l:gu(_),wl(u,Du)),_]):l;case 54:return 2097152&pl(l)?Ss([ku(l),_],2):l;case 58:return v(_),Pu(_);case 26:return!C.allowUnreachableCode&&function t(r){switch((r=e.skipParentheses(r)).kind){case 71:case 9:case 12:case 188:case 201:case 13:case 8:case 101:case 86:case 95:case 140:case 191:case 204:case 192:case 182:case 183:case 194:case 208:case 255:case 254:return!0;case 200:return t(r.whenTrue)&&t(r.whenFalse);case 199:return!e.isAssignmentOperator(r.operatorToken.kind)&&t(r.left)&&t(r.right);case 197:case 198:switch(r.operator){case 51:case 37:case 38:case 52:return!0}return!1;case 195:case 189:case 207:default:return!1}}(t)&&(71!==(c=n).kind||"eval"!==c.escapedText)&&ur(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),_}function h(r){var i=Lp(l,1536)?t:Lp(_,1536)?n:void 0;return!i||(ur(i,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function v(r){a&&e.isAssignmentOperator(s)&&(!Mp(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)||e.isIdentifier(t)&&"exports"===e.unescapeLeadingUnderscores(t.escapedText)||jc(r,l,t,void 0))}function b(){ur(o||r,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),wn(l),wn(_))}}function Hp(t){a&&(4096&t.flags&&!function(t){for(var r=t,n=t.parent;n;){if(e.isFunctionLike(n)&&r===n.body)return!1;if(e.isClassLike(r))return!0;r=n,n=n.parent}return!1}(t)||Zg(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),p_(t)&&ur(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(t),n=r?e.getFunctionFlags(r):0;if(!(1&n))return Y;t.asteriskToken&&(3==(3&n)&&E<6&&Fg(t,26624),1==(3&n)&&E<2&&C.downlevelIteration&&Fg(t,256));var i=0!=(2&n),o=Tp(t,i),s=e.getEffectiveReturnTypeNode(r);return s&&jc(o,dm(cc(s),i)||Y,t.expression||t,void 0),Y}function Gp(e,t,r){var n=function(e){return 262===e.kind?e.parent.parent:e}(e),i=n.contextualType,a=n.contextualMapper;n.contextualType=t,n.contextualMapper=r;var o=nf(e,r===T?1:r?2:3);return n.contextualType=i,n.contextualMapper=a,o}function Xp(e,t){var r=br(e);if(!r.resolvedType){if(t)return nf(e,t);var n=mt;mt=gt,r.resolvedType=nf(e,t),mt=n}return r.resolvedType}function Qp(t){return 189===(t=e.skipParentheses(t)).kind||207===t.kind}function Yp(t){var r=e.isInJavaScriptFile(t),n=r&&e.getDeclaredJavascriptInitializer(t)||t.initializer,i=rf(n,!0),a=2&e.getCombinedNodeFlags(t)||64&e.getCombinedModifierFlags(t)&&!e.isParameterPropertyDeclaration(t)||Qp(n)?i:yu(i);if(r){if(12288&a.flags)return O&&Ru(t,Y),Y;if(du(a))return O&&Ru(t,Re),Re}return a}function $p(e,t,r){2===arguments.length&&(r=T_(e));var n=nf(e,t);return Qp(e)?n:vu(n,r)}function Zp(e,t){return 146===e.name.kind&&R_(e.name),$p(e.initializer,t)}function ef(e,t){return Xg(e),146===e.name.kind&&R_(e.name),tf(e,Ap(e,t),t)}function tf(e,t,r){if(2===r){var n=Od(t);if(n&&n.typeParameters){var i=D_(e);if(i){var a=Od(Eu(i));if(a&&!a.typeParameters)return bo(Id(n,a,C_(e)))}}}return t}function rf(t,r){if(186===t.kind&&97!==t.expression.kind&&!e.isRequireCall(t,!0)&&!_p(t)){var n=Od(_d(t.expression));if(n&&!n.typeParameters)return _o(n)}return r?Xp(t):nf(t)}function nf(t,r){var n;return jp(n=145===t.kind?fd(t):tf(t,function(t,r){switch(t.kind){case 71:return e_(t);case 99:return function(t){var r=e.getThisContainer(t,!0),n=!1;switch(154===r.kind&&a_(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),192===r.kind&&(r=e.getThisContainer(r,!1),n=E<2),r.kind){case 238:ur(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 237:ur(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 154:s_(t,r)&&ur(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 151:case 150:e.hasModifier(r,32)&&ur(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 146:ur(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&t_(t,r);var i=o_(t,r);return!i&&I&&ur(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),i||Y}(t);case 97:return c_(t);case 95:return ie;case 13:case 9:return nc(ac(t.text));case 8:return ny(t),nc(ac(+t.text));case 101:return se;case 86:return ce;case 201:return function(t){return e.forEach(t.templateSpans,function(t){Lp(nf(t.expression),1536)&&ur(t.expression,e.Diagnostics.Type_0_cannot_be_converted_to_type_1,wn(le),wn(ae))}),ae}(t);case 12:return Me;case 182:return I_(t,r);case 183:return j_(t,r);case 184:return pd(t);case 185:return Td(t);case 186:if(91===t.expression.kind)return dp(t);case 187:return lp(t);case 188:return function(e){return jg(e,e.typeArguments),E<2&&Fg(e,65536),_o(ip(e))}(t);case 190:return function(t,r){var n=e.isInJavaScriptFile(t)?e.getJSDocTypeTag(t):void 0;return n?mp(n,n.typeExpression.type,t.expression,r):nf(t.expression,r)}(t,r);case 204:return function(e){return Sm(e),Km(e),fi(cn(e))}(t);case 191:case 192:return Ap(t,r);case 194:return function(e){return nf(e.expression),Zt}(t);case 189:case 207:return function(e){return mp(e,e.type,e.expression)}(t);case 208:return function(e){return Eu(nf(e.expression))}(t);case 209:return gp(t);case 193:return function(t){nf(t.expression);var r=e.skipParentheses(t.expression);if(184!==r.kind&&185!==r.kind)return ur(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),ue;var n=ln(br(r).resolvedSymbol);return n&&Fp(n)&&ur(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),ue}(t);case 195:return function(e){return nf(e.expression),re}(t);case 196:return function(t){return a&&(16384&t.flags||Zg(t,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),p_(t)&&ur(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)),Ef(nf(t.expression),t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t);case 197:return function(t){var r=nf(t.operand);if(r===pe)return pe;if(8===t.operand.kind){if(38===t.operator)return nc(ac(-t.operand.text));if(37===t.operator)return nc(ac(+t.operand.text))}switch(t.operator){case 37:case 38:case 52:return dd(r,t.operand),Lp(r,1536)&&ur(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),oe;case 51:var n=3145728&pl(r);return 1048576===n?ce:2097152===n?se:ue;case 43:case 44:return wp(t.operand,dd(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type)&&Mp(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),oe}return ee}(t);case 198:return function(t){var r=nf(t.operand);return r===pe?pe:(wp(t.operand,dd(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type)&&Mp(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),oe)}(t);case 199:return Vp(t,r);case 200:return function(e,t){return nf(e.condition),Ss([nf(e.whenTrue,t),nf(e.whenFalse,t)],2)}(t,r);case 203:return function(e,t){return E<2&&C.downlevelIteration&&Fg(e,1536),sm(nf(e.expression,t),e.expression,!1,!1)}(t,r);case 205:return re;case 202:return Hp(t);case 264:return function(t,r){if(t.expression){var n=nf(t.expression,r);return t.dotDotDotToken&&n!==Y&&!lu(n)&&ur(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return ee}(t,r);case 254:return function(e,t){return ad(e.openingElement,t),K_(e.closingElement.tagName)?H_(e.closingElement):nf(e.closingElement.tagName),nd(e)||Y}(t,r);case 255:return function(e,t){return ad(e,t),nd(e)||Y}(t,r);case 258:return function(t,r){return ad(t.openingFragment,r),2===C.jsx&&(C.jsxFactory||e.getSourceFileOfNode(t).pragmas.has("jsx"))&&ur(t,C.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),nd(t)||Y}(t,r);case 262:return function(e,t){return q_(e.parent,t)}(t,r);case 256:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return ee}(t,r),r))&&(184===t.parent.kind&&t.parent.expression===t||185===t.parent.kind&&t.parent.expression===t||(71===t.kind||145===t.kind)&&Ym(t)||164===t.parent.kind&&t.parent.exprName===t||ur(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query)),n}function af(t){t.expression&&Zg(t.expression,e.Diagnostics.Type_expected),Jm(t.constraint),Jm(t.default);var r=Li(cn(t));Ia(r)||ur(t.constraint,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,wn(r)),function(e){return La(e)!==Se}(r)||ur(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,wn(r));var n=Na(r),i=Ra(r);n&&i&&jc(i,ta(n,i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),a&&hm(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function of(t){Ig(t),Zf(t);var r=e.getContainingFunction(t);e.hasModifier(t,92)&&(154===r.kind&&e.nodeIsPresent(r.body)||ur(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&ur(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&ur(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),154!==r.kind&&158!==r.kind&&163!==r.kind||ur(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter)),!t.dotDotDotToken||e.isBindingPattern(t.name)||lu(fi(t.symbol))||ur(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function sf(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(71===s.kind&&s.escapedText===n)return ur(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((180===s.kind||179===s.kind)&&sf(s,r,n))return!0}}}function cf(t){159===t.kind?function(t){Ig(t)||function(t){var r=t.parameters[0];if(1!==t.parameters.length)return ty(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(r.dotDotDotToken)return ty(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasModifiers(r))return ty(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return ty(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return ty(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return ty(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(137!==r.type.kind&&134!==r.type.kind){var n=cc(r.type);return 2&n.flags||4&n.flags?ty(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(r.name),wn(n),wn(cc(t.type))):131072&n.flags&&Bp(n,32,!0)?ty(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):ty(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number)}t.type||ty(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}(t)}(t):162!==t.kind&&233!==t.kind&&163!==t.kind&&157!==t.kind&&154!==t.kind&&158!==t.kind||Bg(t);var r=e.getFunctionFlags(t);if(4&r||(3==(3&r)&&E<6&&Fg(t,6144),2==(3&r)&&E<4&&Fg(t,64),0!=(3&r)&&E<2&&Fg(t,128)),vm(t.typeParameters),e.forEach(t.parameters,of),t.type&&Jm(t.type),a){!function(t){E>=2||C.noEmit||!e.hasRestParameter(t)||2097152&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===J.escapedName&&ur(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(t);var n=e.getEffectiveReturnTypeNode(t);if(O&&!n)switch(t.kind){case 158:ur(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 157:ur(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){var i=e.getFunctionFlags(t);if(1==(5&i)){var o=cc(n);if(o===_e)ur(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=dm(o,0!=(2&i))||Y;jc(2&i?us(s):_s(s),o,n)}}else 2==(3&i)&&Af(t)}159!==t.kind&&281!==t.kind&&Rf(t)}}function uf(t){for(var r=e.createMap(),n=0,i=t.members;n<i.length;n++){var a=i[n];if(150===a.kind){var o=void 0;switch(a.name.kind){case 9:case 8:o=a.name.text;break;case 71:o=e.idText(a.name);break;default:continue}r.get(o)?(ur(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),ur(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function lf(t){if(235===t.kind){var r=cn(t);if(r.declarations.length>0&&r.declarations[0]!==t)return}var n=xo(cn(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o<s.length;o++){var c=s[o];if(1===c.parameters.length&&c.parameters[0].type)switch(c.parameters[0].type.kind){case 137:a?ur(c,e.Diagnostics.Duplicate_string_index_signature):a=!0;break;case 134:i?ur(c,e.Diagnostics.Duplicate_number_index_signature):i=!0}}}function _f(t){Ig(t)||function(t){if(e.isClassLike(t.parent)){if(Gg(t.name,e.Diagnostics.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))return!0}else if(235===t.parent.kind){if(Gg(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return ty(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(165===t.parent.kind){if(Gg(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return ty(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}return 2097152&t.flags&&t.initializer?Zg(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts):e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||2097152&t.flags||e.hasModifier(t,160))?ty(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context):void 0}(t)||Ug(t.name),Zf(t)}function df(t){cf(t),function(t){var r=e.getEffectiveTypeParameterDeclarations(t);if(r){var n=e.isNodeArray(r)?r:e.first(r),i=n.pos,a=n.end;return ey(t,i,a-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var r=e.getEffectiveReturnTypeNode(t);r&&ty(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),Jm(t.body);var r=cn(t);if(t===e.getDeclarationOfKind(r,t.kind)&&kf(r),!e.nodeIsMissing(t.body)&&a){var n=t.parent;if(e.getClassExtendsHeritageClauseElement(n)){t_(t.parent,n);var i=i_(n),o=n_(t);if(o){if(i&&ur(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),e.some(t.parent.members,function(t){return 151===t.kind&&!e.hasModifier(t,32)&&!!t.initializer})||e.some(t.parameters,function(t){return e.hasModifier(t,92)})){for(var s=void 0,c=0,u=t.body.statements;c<u.length;c++){var l=u[c];if(215===l.kind&&e.isSuperCall(l.expression)){s=l;break}if(!e.isPrologueDirective(l))break}s||ur(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else i||ur(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function pf(t){if(a){if(Bg(t)||function(t){var r=t.kind;if(E<1)return ty(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(2097152&t.flags)return ty(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return ey(t,t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return ty(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return ty(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return Hg(e)||e.parameters.length===(155===e.kind?0:1)}(t))return ty(t.name,155===r?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(156===r){if(t.type)return ty(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var n=t.parameters[0];if(n.dotDotDotToken)return ty(n.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return ty(n.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return ty(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}(t)||Ug(t.name),If(t),cf(t),155===t.kind&&!(2097152&t.flags)&&e.nodeIsPresent(t.body)&&128&t.flags&&(256&t.flags||ur(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),146===t.name.kind&&R_(t.name),!Xi(t)){var r=155===t.kind?156:155,n=e.getDeclarationOfKind(cn(t),r);if(n){var i=e.getModifierFlags(t),o=e.getModifierFlags(n);(28&i)!=(28&o)&&ur(t.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&i)!=(128&o)&&ur(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),ff(t,n,ci,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),ff(t,n,ui,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var s=li(cn(t));155===t.kind&&Np(t,s)}Jm(t.body)}function ff(e,t,r,n){var i=r(e),a=r(t);i&&a&&!wc(i,a)&&ur(e,n)}function mf(t,r){return io(e.map(t.typeArguments,cc),r,no(r),e.isInJavaScriptFile(t))}function gf(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=Na(r[o]);s&&(n||(i=dc(r,n=mf(t,r))),a=a&&jc(n[o],Dc(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function yf(t){var r=Uo(t);if(r!==ee){var n=br(t).resolvedSymbol;if(n)return 524288&n.flags&&vr(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function hf(t){jg(t,t.typeArguments),161!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJavaScriptFile(t)||e.isInJSDoc(t)||ey(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);var r=Uo(t);if(r!==ee){if(t.typeArguments&&(e.forEach(t.typeArguments,Jm),a)){var n=yf(t);n&&gf(t,n)}16&r.flags&&8&br(t).resolvedSymbol.flags&&ur(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,wn(r))}}function vf(t,r){if(!(1048576&t.flags))return t;var n=t.objectType,i=t.indexType;return Mc(i,Ps(n,!0))?(185===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&ha(n)&&ur(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,wn(n)),t):Ha(Ba(n),1)&&Rp(i,84)?t:(ur(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,wn(i),wn(n)),t)}function bf(t){!function(t){if(141===t.operator){if(138!==t.type.kind)return ty(t.type,e.Diagnostics._0_expected,e.tokenToString(138));var r=e.walkUpParenthesizedTypes(t.parent);switch(r.kind){case 231:var n=r;if(71!==n.name.kind)return ty(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(n))return ty(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return ty(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 151:if(!e.hasModifier(r,32)||!e.hasModifier(r,64))return ty(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 150:if(!e.hasModifier(r,64))return ty(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:ty(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}}(t),Jm(t.type)}function xf(t){return e.hasModifier(t,8)&&!!(2097152&t.flags)}function Sf(t,r){var n=e.getCombinedModifierFlags(t);return 235!==t.parent.kind&&234!==t.parent.kind&&204!==t.parent.kind&&2097152&t.flags&&(2&n||(n|=1),n|=2),n&r}function kf(t){if(a){for(var r,n,i,o=0,s=155,c=!1,u=!0,l=!1,_=t.declarations,d=0!=(16384&t.flags),p=!1,f=!1,m=0,g=_;m<g.length;m++){var y=g[m],h=2097152&y.flags,v=235===y.parent.kind||165===y.parent.kind||h;if(v&&(i=void 0),233===y.kind||153===y.kind||152===y.kind||154===y.kind){var b=Sf(y,155);o|=b,s&=b,c=c||e.hasQuestionToken(y),u=u&&e.hasQuestionToken(y),e.nodeIsPresent(y.body)&&r?d?f=!0:p=!0:i&&i.parent===y.parent&&i.end!==y.pos&&E(i),e.nodeIsPresent(y.body)?r||(r=y):l=!0,i=y,v||(n=y)}}if(f&&e.forEach(_,function(t){ur(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),p&&e.forEach(_,function(t){ur(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_function_implementation)}),!n||n.body||e.hasModifier(n,128)||n.questionToken||E(n),l&&(function(t,r,n,i,a){if(0!=(i^a)){var o=Sf(C(t,r),n);e.forEach(t,function(t){var r=Sf(t,n)^o;1&r?ur(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?ur(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?ur(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&ur(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}(_,r,155,o,s),function(t,r,n,i){if(n!==i){var a=e.hasQuestionToken(C(t,r));e.forEach(t,function(t){e.hasQuestionToken(t)!==a&&ur(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}(_,r,c,u),r))for(var x=so(t),S=ao(r),k=0,D=x;k<D.length;k++){var T=D[k];if(!Kc(S,T)){ur(T.declaration,e.Diagnostics.Overload_signature_is_not_compatible_with_function_implementation);break}}}function C(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function E(t){if(!t.name||!e.nodeIsMissing(t.name)){var r=!1,n=e.forEachChild(t.parent,function(e){if(r)return e;r=e===t});if(n&&n.pos===t.end&&n.kind===t.kind){var i=n.name||n,a=n.name;if(t.name&&a&&(e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||!e.isComputedPropertyName(t.name)&&!e.isComputedPropertyName(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a)))return void(153!==t.kind&&152!==t.kind||e.hasModifier(t,32)===e.hasModifier(n,32)||ur(i,e.hasModifier(t,32)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(n.body))return void ur(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;d?ur(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasModifier(t,128)?ur(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):ur(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function Df(t){if(a){var r=t.localSymbol;if((r||(r=cn(t)).exportSymbol)&&e.getDeclarationOfKind(r,t.kind)===t){for(var n=0,i=0,o=0,s=0,c=r.declarations;s<c.length;s++){var u=h(g=c[s]),l=Sf(g,513);1&l?512&l?o|=u:n|=u:i|=u}var _,d=n&i,p=o&(n|i);if(d||p)for(var f=0,m=r.declarations;f<m.length;f++){u=h(g=m[f]);var g,y=e.getNameOfDeclaration(g);u&p?ur(y,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(y)):u&d&&ur(y,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(y))}!function(e){e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"}(_||(_={}))}}function h(t){switch(t.kind){case 235:case 236:case 292:return 2;case 238:return e.isAmbientModule(t)||0!==e.getModuleInstanceState(t)?5:4;case 234:case 237:return 3;case 273:return 7;case 242:case 245:case 244:var r=0,n=zr(cn(t));return e.forEach(n.declarations,function(e){r|=h(e)}),r;case 231:case 181:case 233:case 247:return 1;default:e.Debug.fail(e.Debug.showSyntaxKind(t))}}}function Tf(e,t,r){var n=Cf(e,t);return n&&Nf(n,t,r)}function Cf(t,r){if(!Wn(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(mi(t,$o(!1)))return n.promisedTypeOfPromise=t.typeArguments[0];var i=Vn(t,"then");if(!Wn(i)){var a=i?qa(i,0):e.emptyArray;if(0!==a.length){var o=fl(Ss(e.map(a,vp)),524288);if(!Wn(o)){var s=qa(o,0);if(0!==s.length)return n.promisedTypeOfPromise=Ss(e.map(s,vp),2);r&&ur(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&ur(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}function Ef(e,t,r){return Nf(e,t,r)||ee}function Nf(t,r,n){var i=t;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(Wn(t))return i.awaitedTypeOfType=t;if(131072&t.flags){for(var a=void 0,o=0,s=t.types;o<s.length;o++){var c=s[o];a=e.append(a,Nf(c,r,n))}if(!a)return;return i.awaitedTypeOfType=Ss(a)}var u=Cf(t);if(u){if(t.id===u.id||Rt.indexOf(u.id)>=0)return void(r&&ur(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Rt.push(t.id);var l=Nf(u,r,n);if(Rt.pop(),!l)return;return i.awaitedTypeOfType=l}var _=Vn(t,"then");if(!(_&&qa(_,0).length>0))return i.awaitedTypeOfType=t;r&&(e.Debug.assert(!!n),ur(r,n))}function Af(t){var r=e.getEffectiveReturnTypeNode(t),n=cc(r);if(E>=2){if(n===ee)return ee;var i=$o(!0);if(i!==ve&&!mi(n,i))return ur(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),ee}else{if(function(t){wf(t&&e.getEntityNameFromTypeNode(t))}(r),n===ee)return ee;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return ur(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,wn(n)),ee;var o=Wr(a,67216319,!0),s=o?fi(o):ee;if(s===ee)return 71===a.kind&&"Promise"===a.escapedText&&gi(n)===$o(!1)?ur(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):ur(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),ee;var c=We||(We=Xo("PromiseConstructorLike",0,!0))||ge;if(c===ge)return ur(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),ee;if(!jc(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return ee;var u=a&&Fm(a),l=Sr(t.locals,u.escapedText,67216319);if(l)return ur(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a)),ee}return Ef(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function Pf(t){var r=_o(ip(t));if(!(1&r.flags)){var n,i,a=Zd(t);switch(t.parent.kind){case 234:n=Ss([fi(cn(t.parent)),_e]);break;case 148:n=_e,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 151:n=_e,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 153:case 155:case 156:n=Ss([cs(eg(t.parent)),_e])}jc(r,n,t,a,function(){return i})}}function wf(e){if(e){var t=Fm(e),r=2097152|(71===e.kind?67901928:1920),n=Dr(t,t.escapedText,r,void 0,void 0,!0);n&&2097152&n.flags&&_n(n)&&!fg(zr(n))&&Ur(n)}}function Ff(t){var r=function t(r){if(r)switch(r.kind){case 169:case 168:for(var n=void 0,i=0,a=r.types;i<a.length;i++){for(var o=a[i];172===o.kind;)o=o.type;if(131!==o.kind&&(P||95!==o.kind&&140!==o.kind)){var s=t(o);if(!s)return;if(n){if(!e.isIdentifier(n)||!e.isIdentifier(s)||n.escapedText!==s.escapedText)return}else n=s}}return n;case 172:return t(r.type);case 161:return r.typeName}}(t);r&&e.isEntityName(r)&&wf(r)}function Of(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function If(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){C.experimentalDecorators||ur(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);var r=t.decorators[0];if(Fg(r,8),148===t.kind&&Fg(r,32),C.emitDecoratorMetadata)switch(Fg(r,16),t.kind){case 234:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++)Ff(Of(a[i]));break;case 153:case 155:case 156:for(var o=0,s=t.parameters;o<s.length;o++)Ff(Of(s[o]));Ff(e.getEffectiveReturnTypeNode(t));break;case 151:Ff(e.getEffectiveTypeAnnotationNode(t));break;case 148:Ff(Of(t));for(var c=0,u=t.parent.parameters;c<u.length;c++)Ff(Of(u[c]))}e.forEach(t.decorators,Pf)}}function Mf(e){switch(e.kind){case 71:return e;case 184:return e.name;default:return}}function Lf(t){If(t),cf(t);var r=e.getFunctionFlags(t);if(t.name&&146===t.name.kind&&R_(t.name),!Xi(t)){var n=cn(t),i=t.localSymbol||n,o=e.find(i.declarations,function(e){return e.kind===t.kind&&!(65536&e.flags)});t===o&&kf(i),n.parent&&e.getDeclarationOfKind(n,t.kind)===t&&kf(n)}var s=152===t.kind?void 0:t.body;Jm(s);var c=e.getEffectiveReturnTypeNode(t);if(0==(1&r)){var u=c&&(2&r?Af(t):cc(c));Np(t,u)}a&&!c&&(O&&e.nodeIsMissing(s)&&!xf(t)&&Ru(t,Y),1&r&&e.nodeIsPresent(s)&&_o(ao(t)))}function Rf(e){tt&&tt.push(e)}function Bf(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 273:case 238:qf(a,r);break;case 234:case 204:Kf(a,r),Uf(a,r);break;case 235:Uf(a,r);break;case 212:case 240:case 219:case 220:case 221:jf(a,r);break;case 154:case 191:case 233:case 192:case 153:case 155:case 156:a.body&&jf(a,r),Uf(a,r);break;case 152:case 157:case 158:case 162:case 163:case 236:Uf(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function jf(t,r){2097152&t.flags||t.locals.forEach(function(t){if(262144&t.flags?3&t.flags&&!(3&t.isReferenced):!t.isReferenced)if(t.valueDeclaration&&148===e.getRootDeclaration(t.valueDeclaration).kind){var n=e.getRootDeclaration(t.valueDeclaration),i=e.getNameOfDeclaration(t.valueDeclaration);e.isParameterPropertyDeclaration(n)||e.parameterIsThisKeyword(n)||(a=i)&&zf(a)||r(1,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t)))}else e.forEach(t.declarations,function(n){return Jf(n,e.symbolName(t),r)});var a})}function Jf(t,r,n){var i=e.getNameOfDeclaration(t)||t;if(zf(i)){var a=e.getRootDeclaration(i.parent);if(231===a.kind&&e.isForInOrOfStatement(a.parent.parent)||147===a.kind)return}(function(t){if(e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)){var r=e.lastOrUndefined(t.parent.elements);return r!==t&&!!r.dotDotDotToken}return!1})(71===i.kind?i.parent:i)||n(0,e.createDiagnosticForNodeSpan(e.getSourceFileOfNode(t),t,i,e.Diagnostics._0_is_declared_but_its_value_is_never_read,r))}function zf(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function Kf(t,r){if(!(2097152&t.flags))for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 153:case 151:case 155:case 156:if(156===a.kind&&32768&a.symbol.flags)break;var o=cn(a);!o.isReferenced&&e.hasModifier(a,8)&&r(0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,An(o)));break;case 154:for(var s=0,c=a.parameters;s<c.length;s++){var u=c[s];!u.symbol.isReferenced&&e.hasModifier(u,8)&&r(0,e.createDiagnosticForNode(u.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(u.symbol)))}break;case 159:case 211:break;default:e.Debug.fail()}}}function Uf(t,r){var n=e.getEffectiveTypeParameterDeclarations(t);if(!(2097152&t.flags)&&n&&e.last(cn(t).declarations)===t)for(var i=0,a=n;i<a.length;i++){var o=a[i];262144&sn(o.symbol).isReferenced||zf(o.name)||r(1,e.createDiagnosticForNode(o.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(o.symbol)))}}function qf(t,r){if(!(2097152&t.flags)){var n=e.createMap();t.locals.forEach(function(t){var i,a;if(!t.isReferenced&&!t.exportSymbol)for(var o=0,s=t.declarations;o<s.length;o++){var u=s[o];if(!e.isAmbientModule(u))if(244===(a=u).kind||247===a.kind||245===a.kind){var l=244===(i=u).kind?i:245===i.kind?i.parent:i.parent.parent,_=String(c(l)),d=n.get(_);d?d[1].push(u):n.set(_,[l,[u]])}else Jf(u,e.symbolName(t),r)}}),n.forEach(function(t){var n=t[0],i=t[1],a=n.parent;if(function(t,r){var n=t.name,i=t.namedBindings;return n&&r(t)||i&&(245===i.kind?r(i):e.forEach(i.elements,r))}(n,function(t){return!e.contains(i,t)}))for(var o=0,s=i;o<s.length;o++){var c=s[o];Jf(c,e.idText(c.name),r)}else 1===i.length?r(0,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(i).name))):r(0,e.createDiagnosticForNode(a,e.Diagnostics.All_imports_in_import_declaration_are_unused,e.showModuleSpecifier(a)))})}}function Vf(t){if(212===t.kind&&ry(t),e.isFunctionOrModuleBlock(t)){var r=ht;e.forEach(t.statements,Jm),ht=r}else e.forEach(t.statements,Jm);t.locals&&Rf(t)}function Wf(t,r,n){if(!r||r.escapedText!==n)return!1;if(151===t.kind||150===t.kind||153===t.kind||152===t.kind||155===t.kind||156===t.kind)return!1;if(2097152&t.flags)return!1;var i=e.getRootDeclaration(t);return 148!==i.kind||!e.nodeIsMissing(i.parent.body)}function Hf(t){e.findAncestor(t,function(r){if(4&hg(r))return 71!==t.kind?ur(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):ur(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0})}function Gf(t){e.findAncestor(t,function(r){if(8&hg(r))return 71!==t.kind?ur(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):ur(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0})}function Xf(t,r){if(!(N>=e.ModuleKind.ES2015||C.noEmit)&&(Wf(t,r,"require")||Wf(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=qn(t);273===n.kind&&e.isExternalOrCommonJsModule(n)&&ur(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function Qf(t,r){if(!(E>=4||C.noEmit)&&Wf(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=qn(t);273===n.kind&&e.isExternalOrCommonJsModule(n)&&1024&n.flags&&ur(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function Yf(t){if(148===e.getRootDeclaration(t).kind){var r=e.getContainingFunction(t);!function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(184===i.kind)return n(i.expression);if(71!==i.kind)return e.forEachChild(i,n);var a=Dr(i,i.escapedText,69313471,void 0,void 0,!1);if(a&&a!==X&&a.valueDeclaration)if(a.valueDeclaration!==t){var o=e.getEnclosingBlockScopeContainer(a.valueDeclaration);if(o===r){if(148===a.valueDeclaration.kind||181===a.valueDeclaration.kind){if(a.valueDeclaration.pos<t.pos)return;if(e.findAncestor(i,function(r){return r===t.initializer?"quit":e.isFunctionLike(r.parent)||151===r.parent.kind&&!e.hasModifier(r.parent,32)&&e.isClassLike(r.parent.parent)}))return}ur(i,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(t.name),e.declarationNameToString(i))}}else ur(i,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(t.name))}}(t.initializer)}}function $f(e){return e===$?Y:e===Be?Re:e}function Zf(t){if(If(t),e.isBindingElement(t)||Jm(t.type),t.name){if(146===t.name.kind&&(R_(t.name),t.initializer&&Xp(t.initializer)),181===t.kind){179===t.parent.kind&&E<6&&Fg(t,4),t.propertyName&&146===t.propertyName.kind&&R_(t.propertyName);var r=t.parent.parent,n=Hn(r),i=t.propertyName||t.name;if(!e.isBindingPattern(i)){var a=Ka(n,e.getTextOfPropertyName(i));Sd(a,void 0,!1),r.initializer&&a&&ud(r,r.initializer,n,a)}}if(e.isBindingPattern(t.name)&&(180===t.name.kind&&E<2&&C.downlevelIteration&&Fg(t,512),e.forEach(t.name.elements,Jm)),t.initializer&&148===e.getRootDeclaration(t).kind&&e.nodeIsMissing(e.getContainingFunction(t).body))ur(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){if(t.initializer&&220!==t.parent.parent.kind){var o=Xp(t.initializer);P&&0===t.name.elements.length?dd(o,t):jc(o,ii(t),t,void 0),Yf(t)}}else{var s=cn(t),c=$f(fi(s));if(t===s.valueDeclaration)t.initializer&&220!==t.parent.parent.kind&&(jc(Xp(e.isInJavaScriptFile(t)&&e.getDeclaredJavascriptInitializer(t)||t.initializer),c,t,void 0),Yf(t));else{var u=$f(ii(t));c===ee||u===ee||wc(c,u)||67108864&s.flags||em(c,t,u),t.initializer&&jc(Xp(t.initializer),u,t,void 0),l=t,_=s.valueDeclaration,148===l.kind&&231===_.kind||231===l.kind&&148===_.kind||e.hasQuestionToken(l)===e.hasQuestionToken(_)&&e.getSelectedModifierFlags(l,504)===e.getSelectedModifierFlags(_,504)||(ur(e.getNameOfDeclaration(s.valueDeclaration),e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name)),ur(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name)))}151!==t.kind&&150!==t.kind&&(Df(t),231!==t.kind&&181!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(231!==t.kind||t.initializer)){var r=cn(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=Dr(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&sd(n)){var i=e.getAncestor(n.valueDeclaration,232),a=213===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(212===a.kind&&e.isFunctionLike(a.parent)||239===a.kind||238===a.kind||273===a.kind)){var o=An(n);ur(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),Xf(t,t.name),Qf(t,t.name))}}var l,_}function em(t,r,n){var i=e.getNameOfDeclaration(r);ur(i,151===r.kind||150===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,e.declarationNameToString(i),wn(t),wn(n))}function tm(t){return function(t){if(220!==t.parent.parent.kind&&221!==t.parent.parent.kind)if(2097152&t.flags){if(t.initializer){if(!e.isConst(t)||t.type){var r="=".length;return ey(t,t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!Qg(t.initializer))return ty(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!Qg(t.initializer))){var r="=".length;return ey(t,t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return ty(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return ty(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(213!==t.parent.parent.kind||!t.type||t.initializer||2097152&t.flags))return ty(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);C.module===e.ModuleKind.ES2015||C.module===e.ModuleKind.ESNext||C.module===e.ModuleKind.System||C.noEmit||2097152&t.parent.parent.flags||!e.hasModifier(t.parent.parent,1)||function t(r){if(71===r.kind){if("__esModule"===e.idText(r))return ty(r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=r.elements,i=0,a=n;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o))return t(o.name)}}(t.name),(e.isLet(t)||e.isConst(t))&&function t(r){if(71===r.kind){if(110===r.originalKeywordKind)return ty(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var n=r.elements,i=0,a=n;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||t(o.name)}}(t.name)}(t),Zf(t)}function rm(t){return function(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return ty(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Lg(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),180===t.name.kind||179===t.name.kind)return ty(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.propertyName)return ty(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);t.initializer&&ey(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(t),Zf(t)}function nm(t){Ig(t)||Yg(t.declarationList)||function(t){if(!function e(t){switch(t.kind){case 216:case 217:case 218:case 225:case 219:case 220:case 221:return!1;case 227:return e(t.parent)}return!0}(t.parent)){if(e.isLet(t.declarationList))return ty(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isConst(t.declarationList)&&ty(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(t),e.forEach(t.declarationList.declarations,Jm)}function im(t){Wg(t);var r,n=_d(t.expression);if(232===t.initializer.kind){var i=t.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&ur(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),am(t)}else{var a=t.initializer,o=nf(a);182===a.kind||183===a.kind?ur(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Mc(16384&(r=Ps(n)).flags?ae:r,o)?Mp(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):ur(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}n!==de&&Rp(n,141590528)||ur(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,wn(n)),Jm(t.statement),t.locals&&Rf(t)}function am(e){var t=e.initializer;t.declarations.length>=1&&tm(t.declarations[0])}function om(e,t){return sm(_d(e),e,!0,void 0!==t)}function sm(e,t,r,n){return Wn(e)?e:cm(e,t,r,n,!0)||Y}function cm(t,r,n,i,a){if(t!==de){var o=E>=2,s=!o&&C.downlevelIteration;if(o||s||i){var c=um(t,o?r:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(n){if(131072&u.flags){var d=t.types,p=e.filter(d,function(e){return!(524322&e.flags)});p!==d&&(u=Ss(p,2))}else 524322&u.flags&&(u=de);if((_=u!==t)&&(E<1&&r&&(ur(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),16384&u.flags))return ae}if(!_u(u)){if(r&&!l){var f=!!um(t,void 0,i,!0,a);ur(r,!n||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:f?e.Diagnostics.Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:f?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,wn(u))}return _?ae:void 0}var m=Ga(u,1);return _&&m?524322&m.flags?ae:Ss([m,ae],2):m}lm(r,t,i)}function um(t,r,n,i,a){if(!Wn(t))return wl(t,function(t){var o=t;if(n){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(mi(t,es(!1))||mi(t,rs(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(mi(t,ns(!1))||mi(t,as(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=n&&Vn(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&&Vn(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!Wn(c)){var u=c&&qa(c,0);if(e.some(u)){var l=_m(Ss(e.map(u,_o),2),r,!!s);return a&&r&&l&&jc(t,s?function(e){return ss(es(!0),[e])}(l):ls(l),r),s?o.iteratedTypeOfAsyncIterable=l:o.iteratedTypeOfIterable=l}r&&(lm(r,t,n),r=void 0)}})}function lm(t,r,n){ur(t,n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,wn(r))}function _m(t,r,n){if(!Wn(t)){var i=t;if(n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(mi(t,(n?ts:is)(!1)))return n?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=Vn(t,"next");if(!Wn(a)){var o=a?qa(a,0):e.emptyArray;if(0!==o.length){var s=Ss(e.map(o,_o),2);if(!(Wn(s)||n&&Wn(s=Tf(s,r,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property)))){var c=s&&Vn(s,"value");if(c)return n?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;r&&ur(r,n?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}}else r&&ur(r,n?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method)}}}function dm(e,t){if(!Wn(e))return um(e,void 0,t,!t,!1)||_m(e,void 0,t)}function pm(t){ry(t)||function(t){for(var r=t;r;){if(e.isFunctionLike(r))return ty(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 227:if(t.label&&r.label.escapedText===t.label.escapedText){var n=222===t.kind&&!e.isIterationStatement(r.statement,!0);return!!n&&ty(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 226:if(223===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}if(t.label){var i=223===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return ty(t,i)}var i=223===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;ty(t,i)}(t)}function fm(t){return 155===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,156))}function mm(t,r){var n=2==(3&e.getFunctionFlags(t))?Cf(r):r;return n&&Lp(n,2049)}function gm(t){ry(t)||void 0===t.expression&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!$g(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);Bt.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a))}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&nf(t.expression)}function ym(t){var r,n=So(t.symbol,1),i=So(t.symbol,0),a=Ga(t,0),o=Ga(t,1);if((a||o)&&(e.forEach(ka(t),function(e){var r=fi(e);d(e,r,t,i,a,0),d(e,r,t,n,o,1)}),1&e.getObjectFlags(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=0,c=t.symbol.valueDeclaration.members;s<c.length;s++){var u=c[s];if(!e.hasModifier(u,32)&&Xi(u)){var l=cn(u),_=fi(l);d(l,_,t,i,a,0),d(l,_,t,n,o,1)}}function d(t,r,n,i,a,o){if(a&&!e.isKnownSymbol(t)){var s,c=t.valueDeclaration;if(1!==o||(c?M_(e.getNameOfDeclaration(c)):L_(t.escapedName)))!c||199!==c.kind&&146!==e.getNameOfDeclaration(c).kind&&t.parent!==n.symbol?i?s=i:2&e.getObjectFlags(n)&&(s=e.forEach(Ni(n),function(e){return Da(e,t.escapedName)&&Ga(e,o)})?void 0:n.symbol.declarations[0]):s=c,s&&!Mc(r,a)&&ur(s,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,An(t),wn(r),wn(a))}}a&&o&&!(r=n||i)&&2&e.getObjectFlags(t)&&(r=e.forEach(Ni(t),function(e){return Ga(e,0)&&Ga(e,1)})?void 0:t.symbol.declarations[0]),r&&!Mc(o,a)&&ur(r,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,wn(o),wn(a))}function hm(e,t){switch(e.escapedText){case"any":case"number":case"boolean":case"string":case"symbol":case"void":case"object":ur(e,t,e.escapedText)}}function vm(t){if(t)for(var r=!1,n=0;n<t.length;n++){var i=t[n];if(af(i),a){i.default?r=!0:r&&ur(i,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<n;o++)t[o].symbol===i.symbol&&ur(i.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(i.name))}}}function bm(t){if(1!==t.declarations.length){var r=vr(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=function(t){return e.filter(t.declarations,function(e){return 234===e.kind||235===e.kind})}(t);if(n.length<=1)return;if(!function(t,r){for(var n=e.length(r),i=no(r),a=0,o=t;a<o.length;a++){var s=o[a],c=e.getEffectiveTypeParameterDeclarations(s),u=e.length(c);if(u<i||u>n)return!1;for(var l=0;l<u;l++){var _=c[l],d=r[l];if(_.name.escapedText!==d.symbol.escapedName)return!1;var p=_.constraint&&cc(_.constraint),f=To(d);if(p&&(!f||!wc(p,f)))return!1;var m=_.default&&cc(_.default),g=Ra(d);if(m&&g&&!wc(m,g))return!1}}return!0}(n,Ri(t).localTypeParameters))for(var i=An(t),a=0,o=n;a<o.length;a++)ur(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}function xm(t){e.forEach(t.members,Jm),Rf(t)}function Sm(t){!function(t){var r=e.getSourceFileOfNode(t);(function(t){var r=!1,n=!1;if(!Ig(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(85===o.token){if(r)return Zg(o,e.Diagnostics.extends_clause_already_seen);if(n)return Zg(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return Zg(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(108===o.token),n)return Zg(o,e.Diagnostics.implements_clause_already_seen);n=!0}zg(o)}})(t)||Rg(e.getEffectiveTypeParameterDeclarations(t),r)}(t),If(t),t.name&&(hm(t.name,e.Diagnostics.Class_name_cannot_be_0),Xf(t,t.name),Qf(t,t.name)),vm(e.getEffectiveTypeParameterDeclarations(t)),Df(t);var r=cn(t),n=Ri(r),i=ta(n),o=fi(r);bm(r),function(t){var r;!function(e){e[e.Getter=1]="Getter",e[e.Setter=2]="Setter",e[e.Method=4]="Method",e[e.Property=3]="Property"}(r||(r={}));for(var n=e.createUnderscoreEscapedMap(),i=e.createUnderscoreEscapedMap(),a=0,o=t.members;a<o.length;a++){var s=o[a];if(154===s.kind)for(var c=0,u=s.parameters;c<u.length;c++){var l=u[c];e.isParameterPropertyDeclaration(l)&&!e.isBindingPattern(l.name)&&p(n,l.name,l.name.escapedText,3)}else{var _=e.hasModifier(s,32)?i:n,d=s.name&&e.getPropertyNameForPropertyNameNode(s.name);if(d)switch(s.kind){case 155:p(_,s.name,d,1);break;case 156:p(_,s.name,d,2);break;case 151:p(_,s.name,d,3);break;case 153:p(_,s.name,d,4)}}}function p(t,r,n,i){var a=t.get(n);a?4&a?4!==i&&ur(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i?ur(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t.set(n,a|i):t.set(n,i)}}(t),2097152&t.flags||function(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r],a=i.name;if(e.hasModifier(i,32)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":ur(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,Rn(cn(t)))}}}}(t);var s=e.getClassExtendsHeritageClauseElement(t);if(s){E<2&&Fg(s.parent,1);var c=Ni(n);if(c.length&&a){var u=c[0],l=Ei(n),_=Ba(l);if(function(t,r){var n=qa(t,1);if(n.length){var i=n[0].declaration;if(i&&e.hasModifier(i,8)){var a=e.getClassLikeDeclarationOfSymbol(t.symbol);Qm(r,a)||ur(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Vr(t.symbol))}}}(_,s),Jm(s.expression),e.some(s.typeArguments)){e.forEach(s.typeArguments,Jm);for(var d=0,p=Ti(_,s.typeArguments,s);d<p.length&&gf(s,p[d].typeParameters);d++);}if(jc(i,b=ta(u,n.thisType),void 0)||km(t,i,b,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),jc(o,Pc(_),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1),1081344&l.flags&&!Si(o)&&ur(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(_.symbol&&32&_.symbol.flags||1081344&l.flags)){var f=Ci(_,s.typeArguments,s);e.forEach(f,function(e){return _o(e)!==u})&&ur(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(t,r){for(var n=0,i=Ca(r);n<i.length;n++){var a=i[n],o=Dm(a);if(!(4194304&o.flags)){var s=Dm(Da(t,o.escapedName)),c=e.getDeclarationModifierFlagsFromSymbol(o);if(e.Debug.assert(!!s,"derived should point to something, even if it is the base class' declaration."),s)if(s===o){var u=e.getClassLikeDeclarationOfSymbol(t.symbol);!(128&c)||u&&e.hasModifier(u,128)||(204===u.kind?ur(u,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,An(a),wn(r)):ur(u,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,wn(t),An(a),wn(r)))}else{var l=e.getDeclarationModifierFlagsFromSymbol(s);if(8&c||8&l)continue;if(cd(o)&&cd(s)||98308&o.flags&&98308&s.flags)continue;var _=void 0;_=cd(o)?98304&s.flags?e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:98304&o.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function,ur(e.getNameOfDeclaration(s.valueDeclaration)||s.valueDeclaration,_,wn(r),An(o),wn(t))}}}}(n,u)}}var m=e.getClassImplementsHeritageClauseElements(t);if(m)for(var g=0,y=m;g<y.length;g++){var h=y[g];if(e.isEntityNameExpression(h.expression)||ur(h.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),hf(h),a){var v=cc(h);if(v!==ee)if(Ai(v)){var b,x=v.symbol&&32&v.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1;jc(i,b=ta(v,n.thisType),void 0)||km(t,i,b,x)}else ur(h,e.Diagnostics.A_class_may_only_implement_another_class_or_interface)}}a&&(ym(n),lf(t),function(t){if(P&&F&&!(2097152&t.flags))for(var r=dn(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(Tm(a)){var o=a.name;if(e.isIdentifier(o)){var s=fi(cn(a));1&s.flags||4096&Su(s)||r&&Cm(o,s,r)||ur(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(t))}function km(t,r,n,i){for(var a=!1,o=function(t){if(e.hasStaticModifier(t))return"continue";var i=t.name&&Zm(t.name)||Zm(t);if(i){var o=Ka(r,i.escapedName),s=Ka(n,i.escapedName);o&&s&&(jc(fi(o),fi(s),t.name||t,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,An(i),wn(r),wn(n))})||(a=!0))}},s=0,c=t.members;s<c.length;s++)o(c[s]);a||jc(r,n,t.name||t,i)}function Dm(t){return 1&e.getCheckFlags(t)?t.target:t}function Tm(t){return 151===t.kind&&!e.hasModifier(t,160)&&!t.exclamationToken&&!t.initializer}function Cm(t,r,n){var i=e.createPropertyAccess(e.createThis(),t);return i.flowNode=n.returnFlowNode,!(4096&Su(Vl(i,r,Cu(r))))}function Em(t){if(Ig(t)||function(t){var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n<i.length;n++){var a=i[n];if(85!==a.token)return e.Debug.assert(108===a.token),Zg(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return Zg(a,e.Diagnostics.extends_clause_already_seen);r=!0,zg(a)}}(t),vm(t.typeParameters),a){hm(t.name,e.Diagnostics.Interface_name_cannot_be_0),Df(t);var r=cn(t);if(bm(r),t===e.getDeclarationOfKind(r,235)){var n=Ri(r),i=ta(n);if(function(t,r){var n=Ni(t);if(n.length<2)return!0;var i=e.createUnderscoreEscapedMap();e.forEach(Vi(t).declaredProperties,function(e){i.set(e.escapedName,{prop:e,containingType:t})});for(var a=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],u=0,l=Ca(ta(c,t.thisType));u<l.length;u++){var _=l[u],d=i.get(_.escapedName);if(d){if(d.containingType!==t&&0===ou(d.prop,_,Fc)){a=!1;var p=wn(d.containingType),f=wn(c),m=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,An(_),p,f);m=e.chainDiagnosticMessages(m,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,wn(t),p,f),Bt.add(e.createDiagnosticForNodeFromMessageChain(r,m))}}else i.set(_.escapedName,{prop:_,containingType:c})}return a}(n,t.name)){for(var o=0,s=Ni(n);o<s.length;o++)jc(i,ta(s[o],n.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);ym(n)}}uf(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),function(t){e.isEntityNameExpression(t.expression)||ur(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),hf(t)}),e.forEach(t.members,Jm),a&&(lf(t),Rf(t))}function Nm(e){var t=br(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,i=e.members;n<i.length;n++){var a=i[n],o=Am(a,r);br(a).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function Am(t,r){if(Gn(t.name))ur(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);L_(n)&&"Infinity"!==(i=n)&&"-Infinity"!==i&&"NaN"!==i&&ur(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}var i;return t.initializer?function(t){var r=Fi(cn(t.parent)),n=e.isConst(t.parent),i=t.initializer,a=1!==r||wi(t)?function r(n){switch(n.kind){case 197:var i=r(n.operand);if("number"==typeof i)switch(n.operator){case 37:return i;case 38:return-i;case 52:return~i}break;case 199:var a=r(n.left),s=r(n.right);if("number"==typeof a&&"number"==typeof s)switch(n.operatorToken.kind){case 49:return a|s;case 48:return a&s;case 46:return a>>s;case 47:return a>>>s;case 45:return a<<s;case 50:return a^s;case 39:return a*s;case 41:return a/s;case 37:return a+s;case 38:return a-s;case 42:return a%s;case 40:return Math.pow(a,s)}break;case 9:return n.text;case 8:return ny(n),+n.text;case 190:return r(n.expression);case 71:return e.nodeIsMissing(n)?0:o(n,cn(t.parent),n.escapedText);case 185:case 184:var c=n;if(function e(t){return 71===t.kind||184===t.kind&&e(t.expression)||185===t.kind&&e(t.expression)&&9===t.argumentExpression.kind}(c)){var u=rf(c.expression);if(u.symbol&&384&u.symbol.flags){var l=void 0;if(184===c.kind)l=c.name.escapedText;else{var _=c.argumentExpression;e.Debug.assert(e.isLiteralExpression(_)),l=e.escapeLeadingUnderscores(_.text)}return o(n,u.symbol,l)}}}}(i):void 0;if(void 0!==a)n&&"number"==typeof a&&!isFinite(a)&&ur(i,isNaN(a)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===r)return ur(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;n?ur(i,e.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression):2097152&t.parent.flags?ur(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):jc(nf(i),Ri(cn(t.parent)),i,void 0)}return a;function o(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return kr(o,t)?vg(o):(ur(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}}}(t):2097152&t.parent.flags&&!e.isConst(t.parent)?void 0:void 0!==r?r:void ur(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function Pm(t){if(a){var r=e.isGlobalScopeAugmentation(t),n=2097152&t.flags;r&&!n&&ur(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(t);if(Lm(t,i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;Ig(t)||n||9!==t.name.kind||ty(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(Xf(t,t.name),Qf(t,t.name)),Df(t);var o=cn(t);if(512&o.flags&&o.declarations.length>1&&!n&&l(t,C.preserveConstEnums||C.isolatedModules)){var s=function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if((234===i.kind||233===i.kind&&e.nodeIsPresent(i.body))&&!(2097152&i.flags))return i}}(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?ur(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos<s.pos&&ur(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var c=e.getDeclarationOfKind(o,234);c&&(d=t,p=c,f=e.getEnclosingBlockScopeContainer(d),m=e.getEnclosingBlockScopeContainer(p),xr(f)?xr(m):!xr(m)&&f===m)&&(br(t).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(t)){if((r||33554432&cn(t).flags)&&t.body)for(var u=0,_=t.body.statements;u<_.length;u++)wm(_[u],r)}else xr(t.parent)?r?ur(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name))&&ur(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):ur(t.name,r?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var d,p,f,m;t.body&&(Jm(t.body),e.isGlobalScopeAugmentation(t)||Rf(t))}function wm(t,r){switch(t.kind){case 213:for(var n=0,i=t.declarationList.declarations;n<i.length;n++)wm(i[n],r);break;case 248:case 249:Zg(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 242:case 243:Zg(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 181:case 231:var a=t.name;if(e.isBindingPattern(a)){for(var o=0,s=a.elements;o<s.length;o++)wm(s[o],r);break}case 234:case 237:case 233:case 235:case 238:case 236:if(r)return;var c=cn(t);if(c){var u=!(33554432&c.flags);u||(u=e.isExternalModuleAugmentation(c.parent.declarations[0]))}}}function Fm(e){switch(e.kind){case 71:return e;case 145:do{e=e.left}while(71!==e.kind);return e;case 184:do{e=e.expression}while(71!==e.kind);return e}}function Om(t){var r=e.getExternalModuleName(t);if(e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return ur(r,e.Diagnostics.String_literal_expected),!1;var n=239===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 273===t.parent.kind||n?!(n&&e.isExternalModuleNameRelative(r.text)&&!Mn(t)&&(ur(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),1)):(ur(r,249===t.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function Im(t){var r=cn(t),n=zr(r);if(n!==X){var i=(68264895&r.flags?67216319:0)|(67901928&r.flags?67901928:0)|(1920&r.flags?1920:0);n.flags&i&&ur(t,251===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,An(r)),!C.isolatedModules||251!==t.kind||67216319&n.flags||2097152&t.flags||ur(t,e.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}function Mm(e){Xf(e,e.name),Qf(e,e.name),Im(e)}function Lm(e,t){var r=273===e.parent.kind||239===e.parent.kind||238===e.parent.kind;return r||Zg(e,t),!r}function Rm(t){if(Im(t),C.declaration&&jn(t.propertyName||t.name,!0),!t.parent.parent.moduleSpecifier){var r=t.propertyName||t.name,n=Dr(r,r.escapedText,70107135,void 0,void 0,!0);n&&(n===R||xr(qn(n.declarations[0])))?ur(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r)):Kr(t)}}function Bm(t){var r=cn(t),n=vr(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&function(t){return e.forEachEntry(t.exports,function(e,t){return"export="!==t})}(r)){var a=Fr(i)||i.valueDeclaration;Mn(a)||e.isInJavaScriptFile(a)||ur(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=nn(r);o&&o.forEach(function(t,r){var n=t.declarations,i=t.flags;if("__export"!==r&&!(1984&i)){var a=e.countWhere(n,sr);if(!(524288&i&&a<=2)&&a>1)for(var o=0,s=n;o<s.length;o++){var c=s[o];jm(c)&&Bt.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}}),n.exportsChecked=!0}}function jm(e){return 233!==e.kind&&153!==e.kind||!!e.body}function Jm(t){if(t){if(e.isInJavaScriptFile(t)&&t.jsDoc)for(var r=0,n=t.jsDoc;r<n.length;r++){var i=n[r].tags;e.forEach(i,Jm)}var o=t.kind;if(f)switch(o){case 238:case 234:case 235:case 233:f.throwIfCancellationRequested()}switch(o){case 147:return af(t);case 148:return of(t);case 151:case 150:return _f(t);case 162:case 163:case 157:case 158:case 159:return cf(t);case 153:case 152:return function(t){Xg(t)||Ug(t.name),Lf(t),e.hasModifier(t,128)&&153===t.kind&&t.body&&ur(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}(t);case 154:return df(t);case 155:case 156:return pf(t);case 161:return hf(t);case 160:return function(t){var r=function(e){switch(e.parent.kind){case 192:case 157:case 233:case 191:case 162:case 153:case 152:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=lo(ao(r));if(n){Jm(t.type);var i=t.parameterName;if(e.isThisTypePredicate(n))sc(i);else if(n.parameterIndex>=0)r.parameters[n.parameterIndex].dotDotDotToken?ur(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):jc(n.type,eg(r.parameters[n.parameterIndex]),t.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(i){for(var a=!1,o=0,s=r.parameters;o<s.length;o++){var c=s[o].name;if(e.isBindingPattern(c)&&sf(c,i,n.parameterName)){a=!0;break}}a||ur(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,n.parameterName)}}}else ur(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(t);case 164:return function(e){Vo(e)}(t);case 165:return function(t){e.forEach(t.members,Jm),a&&(ym(Xs(t)),lf(t),uf(t))}(t);case 166:return function(e){Jm(e.elementType)}(t);case 167:return function(t){Lg(t.elementTypes)||0!==t.elementTypes.length||ty(t,e.Diagnostics.A_tuple_type_element_list_cannot_be_empty),e.forEach(t.elementTypes,Jm)}(t);case 168:case 169:return function(t){e.forEach(t.types,Jm)}(t);case 172:return Jm(t.type);case 174:return bf(t);case 170:return function(t){e.forEachChild(t,Jm)}(t);case 171:return function(t){e.findAncestor(t,function(e){return e.parent&&170===e.parent.kind&&e.parent.extendsType===e})||ty(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Jm(t.typeParameter)}(t);case 178:return function(e){Jm(e.argument),cc(e)}(t);case 286:return function(t){var r=e.getJSDocHost(t);if(e.isClassDeclaration(r)||e.isClassExpression(r)){var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0),n.length>1&&ur(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Mf(t.class.expression),a=e.getClassExtendsHeritageClauseElement(r);if(a){var o=Mf(a.expression);o&&i.escapedText!==o.escapedText&&ur(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else ur(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 292:return function(t){t.typeExpression||ur(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&hm(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Jm(t.typeExpression)}(t);case 288:return function(t){if(Jm(t.typeExpression),!e.getParameterSymbolFromJSDoc(t)){var r=e.getHostSignatureFromJSDoc(t);if(r){var n=e.getJSDocTags(r).filter(e.isJSDocParameterTag).indexOf(t);if(n>-1&&n<r.parameters.length&&e.isBindingPattern(r.parameters[n].name))return;oo(r)?e.findLast(e.getJSDocTags(r),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!lu(cc(t.typeExpression.type))&&ur(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(145===t.name.kind?t.name.right:t.name)):ur(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(145===t.name.kind?t.name.right:t.name))}}}(t);case 281:cf(t);case 279:case 278:case 276:case 277:case 284:return zm(t),void e.forEachChild(t,Jm);case 282:return void function(t){zm(t),Jm(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))e.last(r.parent.parameters)!==r&&ur(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);else{e.isJSDocTypeExpression(r)||ur(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=r.parent;if(e.isJSDocParameterTag(n)){var i=e.getParameterSymbolFromJSDoc(n);if(i){var a=e.getHostSignatureFromJSDoc(n);a&&e.last(a.parameters).symbol===i||ur(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else ur(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}}(t);case 275:return Jm(t.type);case 175:return function(e){Jm(e.objectType),Jm(e.indexType),vf(js(e),e)}(t);case 176:return function(e){Jm(e.typeParameter),Jm(e.type),O&&!e.type&&Ru(e,Y),jc(ma(Js(e)),ae,e.typeParameter.constraint)}(t);case 233:return function(e){a&&(Lf(e),qg(e),Xf(e,e.name),Qf(e,e.name))}(t);case 212:case 239:return Vf(t);case 213:return nm(t);case 215:return function(e){ry(e),nf(e.expression)}(t);case 216:return function(t){ry(t),nf(t.expression),Jm(t.thenStatement),214===t.thenStatement.kind&&ur(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Jm(t.elseStatement)}(t);case 217:return function(e){ry(e),Jm(e.statement),nf(e.expression)}(t);case 218:return function(e){ry(e),nf(e.expression),Jm(e.statement)}(t);case 219:return function(t){ry(t)||t.initializer&&232===t.initializer.kind&&Yg(t.initializer),t.initializer&&(232===t.initializer.kind?e.forEach(t.initializer.declarations,tm):nf(t.initializer)),t.condition&&nf(t.condition),t.incrementor&&nf(t.incrementor),Jm(t.statement),t.locals&&Rf(t)}(t);case 220:return im(t);case 221:return function(t){if(Wg(t),t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&E<6&&Fg(t,16384):C.downlevelIteration&&E<2&&Fg(t,256),232===t.initializer.kind)am(t);else{var r=t.initializer,n=om(t.expression,t.awaitModifier);if(182===r.kind||183===r.kind)Up(r,n||ee);else{var i=nf(r);Mp(r,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),n&&jc(n,i,r,void 0)}}Jm(t.statement),t.locals&&Rf(t)}(t);case 222:case 223:return pm(t);case 224:return function(t){if(!ry(t)){var r=e.getContainingFunction(t);if(r){var n=_o(ao(r)),i=e.getFunctionFlags(r),a=1&i;if(P||t.expression||16384&n.flags){var o=t.expression?Xp(t.expression):te;if(a)return;if(156===r.kind)t.expression&&ur(t,e.Diagnostics.Setters_cannot_return_a_value);else if(154===r.kind)t.expression&&!jc(o,n,t)&&ur(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(r)||fm(r))if(2&i){var s=Cf(n),c=Ef(o,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);s&&jc(c,s,t)}else jc(o,n,t)}else 154===r.kind||!C.noImplicitReturns||mm(r,n)||a||ur(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else Zg(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(t);case 225:return function(t){ry(t)||16384&t.flags&&Zg(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),nf(t.expression);var r=e.getSourceFileOfNode(t);if(!$g(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;ey(r,n,t.statement.pos-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(t);case 226:return function(t){var r;ry(t);var n=!1,i=nf(t.expression),o=mu(i);e.forEach(t.caseBlock.clauses,function(s){if(266===s.kind&&!n)if(void 0===r)r=s;else{var c=e.getSourceFileOfNode(t),u=e.skipTrivia(c.text,s.pos);ey(c,u,(s.statements.length>0?s.statements[0].pos:s.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0}if(a&&265===s.kind){var l=nf(s.expression),_=mu(l),d=i;_&&o||(l=_?gu(l):l,d=gu(i)),qp(d,l)||Jc(l,d,s.expression,void 0)}e.forEach(s.statements,Jm)}),t.caseBlock.locals&&Rf(t.caseBlock)}(t);case 227:return function(t){ry(t)||e.findAncestor(t.parent,function(r){return e.isFunctionLike(r)?"quit":227===r.kind&&r.label.escapedText===t.label.escapedText?(ty(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0):void 0}),Jm(t.statement)}(t);case 228:return gm(t);case 229:return function(t){ry(t),Vf(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)Zg(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)Zg(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,function(t){var r=n.get(t);r&&0!=(2&r.flags)&&ty(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}Vf(r.block)}t.finallyBlock&&Vf(t.finallyBlock)}(t);case 231:return tm(t);case 181:return rm(t);case 234:return function(t){t.name||e.hasModifier(t,512)||Zg(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),Sm(t),e.forEach(t.members,Jm),Rf(t)}(t);case 235:return Em(t);case 236:return function(t){Ig(t),hm(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),vm(t.typeParameters),Jm(t.type),Rf(t)}(t);case 237:return function(t){if(a){Ig(t),hm(t.name,e.Diagnostics.Enum_name_cannot_be_0),Xf(t,t.name),Qf(t,t.name),Df(t),Nm(t);var r=e.isConst(t);C.isolatedModules&&r&&2097152&t.flags&&ur(t.name,e.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided);var n=cn(t);if(t===e.getDeclarationOfKind(n,t.kind)){n.declarations.length>1&&e.forEach(n.declarations,function(t){e.isConstEnumDeclaration(t)!==r&&ur(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var i=!1;e.forEach(n.declarations,function(t){if(237!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?ur(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)})}}}(t);case 238:return Pm(t);case 243:return function(t){if(!Lm(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!Ig(t)&&e.hasModifiers(t)&&Zg(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),Om(t))){var r=t.importClause;r&&(r.name&&Mm(r),r.namedBindings&&(245===r.namedBindings.kind?Mm(r.namedBindings):Hr(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,Mm)))}}(t);case 242:return function(t){if(!Lm(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(Ig(t),e.isInternalModuleImportEqualsDeclaration(t)||Om(t)))if(Mm(t),e.hasModifier(t,1)&&Kr(t),253!==t.moduleReference.kind){var r=zr(cn(t));if(r!==X){if(67216319&r.flags){var n=Fm(t.moduleReference);1920&Wr(n,67217343).flags||ur(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}67901928&r.flags&&hm(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else N>=e.ModuleKind.ES2015&&!(2097152&t.flags)&&ty(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 249:return function(t){if(!Lm(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!Ig(t)&&e.hasModifiers(t)&&Zg(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||Om(t)))if(t.exportClause){e.forEach(t.exportClause.elements,Rm);var r=239===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&239===t.parent.kind&&!t.moduleSpecifier&&2097152&t.flags;273===t.parent.kind||r||n||ur(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=Hr(t,t.moduleSpecifier);i&&Zr(i)&&ur(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,An(i)),N!==e.ModuleKind.System&&N!==e.ModuleKind.ES2015&&N!==e.ModuleKind.ESNext&&Fg(t,32768)}}(t);case 248:return function(t){if(!Lm(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=273===t.parent.kind?t.parent:t.parent.parent;238!==r.kind||e.isAmbientModule(r)?(!Ig(t)&&e.hasModifiers(t)&&Zg(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),71===t.expression.kind?(Kr(t),C.declaration&&jn(t.expression,!0)):Xp(t.expression),Bm(r),2097152&t.flags&&!e.isEntityNameExpression(t.expression)&&ty(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||2097152&t.flags||(N>=e.ModuleKind.ES2015?ty(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):N===e.ModuleKind.System&&ty(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):t.isExportEquals?ur(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):ur(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 214:case 230:return void ry(t);case 252:return function(e){If(e)}(t)}}}function zm(t){e.isInJavaScriptFile(t)||ty(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Km(e){et&&et.push(e)}function Um(t){e.performance.mark("beforeCheck"),function(t){var r=br(t);if(!(1&r.flags)){if(C.skipLibCheck&&t.isDeclarationFile||C.skipDefaultLibCheck&&t.hasNoDefaultLib)return;!function(t){2097152&t.flags&&function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if((e.isDeclaration(i)||213===i.kind)&&(235!==(a=i).kind&&236!==a.kind&&243!==a.kind&&242!==a.kind&&249!==a.kind&&248!==a.kind&&241!==a.kind&&!e.hasModifier(a,515)&&Zg(a,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)))return!0}var a}(t)}(t),e.clear(Mt),e.clear(Lt),et=[],a&&(e.Debug.assert(!pt.has(t.fileName)),pt.set(t.fileName,tt=[])),e.forEach(t.statements,Jm),function(){for(var e=0,t=et;e<t.length;e++){var r=t[e];switch(r.kind){case 191:case 192:case 153:case 152:Pp(r);break;case 155:case 156:pf(r);break;case 204:xm(r)}}}(),e.isExternalOrCommonJsModule(t)&&Rf(t),t.isDeclarationFile||!C.noUnusedLocals&&!C.noUnusedParameters||Bf(tt,function(e,t){qm(e)&&Bt.add(t)}),et=void 0,ft.clear(),tt=void 0,e.isExternalOrCommonJsModule(t)&&Bm(t),Mt.length&&(e.forEach(Mt,Hf),e.clear(Mt)),Lt.length&&(e.forEach(Lt,Gf),e.clear(Lt)),r.flags|=1}}(t),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function qm(t){switch(t){case 0:return C.noUnusedLocals;case 1:return C.noUnusedParameters;default:return e.Debug.assertNever(t)}}function Vm(t,r){try{return f=r,function(t){if(Wm(),t){var r=Bt.getGlobalDiagnostics(),n=r.length;Um(t);var a=Bt.getDiagnostics(t.fileName),o=Bt.getGlobalDiagnostics();if(o!==r){var s=e.relativeComplement(r,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===n&&o.length>0?e.concatenate(o,a):a}return e.forEach(i.getSourceFiles(),Um),Bt.getDiagnostics()}(t)}finally{f=void 0}}function Wm(){if(!a)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Hm(e){switch(e.kind){case 147:case 234:case 235:case 236:case 237:return!0}}function Gm(e){for(var t=e;t.parent&&145===t.parent.kind;)t=t.parent;return t.parent&&161===t.parent.kind}function Xm(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function Qm(e,t){return!!Xm(e,function(e){return e===t})}function Ym(e){return void 0!==function(e){for(;145===e.parent.kind;)e=e.parent;return 242===e.parent.kind?e.parent.moduleReference===e&&e.parent:248===e.parent.kind?e.parent.expression===e&&e.parent:void 0}(e)}function $m(t){if(e.isDeclarationName(t))return cn(t.parent);if(e.isInJavaScriptFile(t)&&184===t.parent.kind&&t.parent===t.parent.parent.left){var r=function(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return cn(t.parent);case 4:case 2:case 5:return cn(t.parent.parent)}}(t);if(r)return r}if(248===t.parent.kind&&e.isEntityNameExpression(t)){var n=Wr(t,70107135,!0);if(n&&n!==X)return n}else if(!e.isPropertyAccessExpression(t)&&Ym(t)){var i=e.getAncestor(t,242);return e.Debug.assert(void 0!==i),qr(t,!0)}if(!e.isPropertyAccessExpression(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&178===r.kind&&r.qualifier===t)return r}(t);if(a){cc(a);var o=br(t).resolvedSymbol;return o===X?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(var t=e;t.parent&&184===t.parent.kind;)t=t.parent;return t.parent&&206===t.parent.kind}(t)){var s=0;206===t.parent.kind?(s=67901928,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=67216319)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?Wr(t,s):void 0;if(c)return c}if(288===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(147===t.parent.kind&&291===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(71===t.kind){if(e.isJSXTagName(t)&&K_(t)){var l=H_(t.parent);return l===X?void 0:l}return Wr(t,67216319,!1,!0)}if(184===t.kind||145===t.kind){var _=br(t);return _.resolvedSymbol?_.resolvedSymbol:(184===t.kind?pd(t):fd(t),_.resolvedSymbol)}}else{if(Gm(t))return Wr(t,s=161===t.parent.kind?67901928:1920,!1,!0);if(261===t.parent.kind)return rd(t.parent)}return 160===t.parent.kind?Wr(t,1):void 0}function Zm(t){if(273===t.kind)return e.isExternalModule(t)?sn(t.symbol):void 0;if(!(4194304&t.flags)){if(_(t))return cn(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return cn(t.parent.parent);if(71===t.kind){if(Ym(t))return $m(t);if(181===t.parent.kind&&179===t.parent.parent.kind&&t===t.parent.propertyName){var r=eg(t.parent.parent),n=r&&Ka(r,t.escapedText);if(n)return n}}switch(t.kind){case 71:case 184:case 145:return $m(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var a=ao(i);if(a.thisParameter)return a.thisParameter}if(e.isInExpressionContext(t))return nf(t).symbol;case 173:return sc(t).symbol;case 97:return nf(t).symbol;case 123:var o=t.parent;return o&&154===o.kind?o.parent.symbol:void 0;case 9:case 13:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(243===t.parent.kind||249===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return Hr(t,t);case 8:var s=e.isElementAccessExpression(t.parent)?t.parent.argumentExpression===t?rf(t.parent.expression):void 0:e.isLiteralTypeNode(t.parent)&&e.isIndexedAccessTypeNode(t.parent.parent)?cc(t.parent.parent.objectType):void 0;return s&&Ka(s,e.escapeLeadingUnderscores(t.text));case 79:case 89:case 36:return cn(t.parent);case 178:return e.isLiteralImportTypeNode(t)?Zm(t.argument.literal):void 0;default:return}}}function eg(t){if(4194304&t.flags)return ee;if(e.isPartOfTypeNode(t)){var r=cc(t);return r&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(r=ta(r,(n=eg(e.getContainingClass(t))).thisType)),r}if(e.isExpressionNode(t))return tg(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var n,i=Ni(n=Ri(cn(e.getContainingClass(t))))[0];return i&&ta(i,n.thisType)}var a,o;if(Hm(t))return Ri(o=cn(t));if(71===(a=t).kind&&Hm(a.parent)&&a.parent.name===a)return(o=Zm(t))&&Ri(o);if(e.isDeclaration(t))return fi(o=cn(t));if(_(t))return(o=Zm(t))&&fi(o);if(e.isBindingPattern(t))return ei(t.parent,!0);if(Ym(t)&&(o=Zm(t))){var s=Ri(o);return s!==ee?s:fi(o)}return ee}function tg(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),ic(rf(t))}function rg(t){t=Ba(t);var r=e.createSymbolTable(Ca(t));return ng(t)&&e.forEach(Ca(Ae),function(e){r.has(e.escapedName)||r.set(e.escapedName,e)}),yn(r)}function ng(t){return e.typeHasCallOrConstructSignatures(t,z)}function ig(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier)))&&(!(184===t.parent.kind&&t.parent.name===t)&&Eg(t)===J)}function ag(t){var r=Hr(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=Zr(r),i=vr(r=Yr(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(67216319&r.flags):e.forEachEntry(nn(r),function(e){return(e=Jr(e))&&!!(67216319&e.flags)})),i.exportsSomeValue}function og(t,r){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=Eg(t,function(t){var r=t.parent;return r&&e.isModuleOrEnumDeclaration(r)&&t===r.name}(t));if(n){if(1048576&n.flags){var i=sn(n.exportSymbol);if(!r&&944&i.flags&&!(3&i.flags))return;n=i}var a=un(n);if(a){if(512&a.flags&&273===a.valueDeclaration.kind){var o=a.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&cn(t)===a})}}}}function sg(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=Eg(t);if(jr(r,67216319))return Fr(r)}}function cg(t){if(418&t.flags){var r=vr(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var i=br(t.valueDeclaration);if(Dr(n.parent,t.escapedName,67216319,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(n,!1),s=212===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function ug(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=Eg(t);if(r&&cg(r))return r.valueDeclaration}}function lg(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var r=cn(t);if(r)return cg(r)}return!1}function _g(t){switch(t.kind){case 242:case 244:case 245:case 247:case 251:return pg(cn(t)||X);case 249:var r=t.exportClause;return r&&e.forEach(r.elements,_g);case 248:return!t.expression||71!==t.expression.kind||pg(cn(t)||X)}return!1}function dg(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||273!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&pg(cn(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function pg(e){var t=zr(e);return t===X||67216319&t.flags&&(C.preserveConstEnums||!fg(t))}function fg(e){return Jp(e)||e.constEnumOnlyModule}function mg(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=so(cn(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function gg(t){return P&&!eo(t)&&t.initializer&&!e.hasModifier(t,92)}function yg(t){return P&&eo(t)&&!t.initializer&&e.hasModifier(t,92)}function hg(e){return br(e).flags}function vg(e){return Nm(e.parent),br(e).enumMemberValue}function bg(e){switch(e.kind){case 272:case 184:case 185:return!0}return!1}function xg(t){if(272===t.kind)return vg(t);var r=br(t).resolvedSymbol;return r&&8&r.flags&&e.isConstEnumDeclaration(r.valueDeclaration.parent)?vg(r.valueDeclaration):void 0}function Sg(t,r){if(!(t=e.getParseTreeNode(t,e.isEntityName)))return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var n=Wr(t,67216319,!0,!1,r),i=Wr(t,67901928,!0,!1,r);if(n&&n===i){var a=Zo(!1);if(a&&n===a)return e.TypeReferenceSerializationKind.Promise;var o=fi(n);if(o&&ki(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=Ri(i);return s===ee?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:Rp(s,30720)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Rp(s,136)?e.TypeReferenceSerializationKind.BooleanType:Rp(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:Rp(s,524322)?e.TypeReferenceSerializationKind.StringLikeType:bu(s)?e.TypeReferenceSerializationKind.ArrayLikeType:Rp(s,1536)?e.TypeReferenceSerializationKind.ESSymbolType:function(e){return 65536&e.flags&&qa(e,0).length>0}(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:lu(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function kg(t,r,n,i,a){if(!(t=e.getParseTreeNode(t,e.isVariableLikeOrAccessor)))return e.createToken(119);var o=cn(t),s=!o||133120&o.flags?ee:yu(fi(o));return 1024&s.flags&&s.symbol===o&&(n|=1048576),a&&(s=Cu(s)),L.typeToTypeNode(s,r,1024|n,i)}function Dg(t,r,n,i){if(!(t=e.getParseTreeNode(t,e.isFunctionLike)))return e.createToken(119);var a=ao(t);return L.typeToTypeNode(_o(a),r,1024|n,i)}function Tg(t,r,n,i){if(!(t=e.getParseTreeNode(t,e.isExpression)))return e.createToken(119);var a=Mu(tg(t));return L.typeToTypeNode(a,r,1024|n,i)}function Cg(t){return _t.has(e.escapeLeadingUnderscores(t))}function Eg(t,r){var n=br(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=qn(a))}return Dr(i,t.escapedText,70362047,void 0,void 0,!0)}function Ng(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=Eg(t);if(r)return ln(r).valueDeclaration}}function Ag(t){if(e.isConst(t)){var r=fi(cn(t));return!!(96&r.flags&&8388608&r.flags)}return!1}function Pg(t){return function(t){return e.createLiteral(t.value)}(fi(cn(t)))}function wg(t){var r=238===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=Gr(r,r,void 0);if(n)return e.getDeclarationOfKind(n,273)}function Fg(t,r){if((m&r)!==r&&C.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,C)&&!(2097152&t.flags)){var i=(c=t,g||(g=Xr(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,c)||X),g);if(i!==X)for(var a=r&~m,o=1;o<=65536;o<<=1)if(a&o){var s=Og(o);Sr(i.exports,e.escapeLeadingUnderscores(s),67216319)||ur(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}m|=r}}var c}function Og(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__makeTemplateObject";default:e.Debug.fail("Unrecognized helper")}}function Ig(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 153!==t.kind||e.nodeIsPresent(t.body)?Zg(t,e.Diagnostics.Decorators_are_not_valid_here):Zg(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(155===t.kind||156===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return Zg(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var r,n,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 155:case 156:case 154:case 151:case 150:case 153:case 152:case 159:case 238:case 243:case 242:case 249:case 248:case 191:case 192:case 148:return!1;default:if(239===t.parent.kind||273===t.parent.kind)return!1;switch(t.kind){case 233:return Mg(t,120);case 234:return Mg(t,117);case 235:case 213:case 236:return!0;case 237:return Mg(t,76);default:return e.Debug.fail(),!1}}}(t)?Zg(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c<u.length;c++){var l=u[c];if(132!==l.kind){if(150===t.kind||152===t.kind)return ty(l,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(l.kind));if(159===t.kind)return ty(l,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(l.kind))}switch(l.kind){case 76:if(237!==t.kind&&234===t.parent.kind)return ty(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(76));break;case 114:case 113:case 112:var _=In(e.modifierToFlag(l.kind));if(28&s)return ty(l,e.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return ty(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"static");if(64&s)return ty(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"readonly");if(256&s)return ty(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"async");if(239===t.parent.kind||273===t.parent.kind)return ty(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,_);if(128&s)return 112===l.kind?ty(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,_,"abstract"):ty(l,e.Diagnostics._0_modifier_must_precede_1_modifier,_,"abstract");s|=e.modifierToFlag(l.kind);break;case 115:if(32&s)return ty(l,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return ty(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return ty(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(239===t.parent.kind||273===t.parent.kind)return ty(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(148===t.kind)return ty(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return ty(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");s|=32,r=l;break;case 132:if(64&s)return ty(l,e.Diagnostics._0_modifier_already_seen,"readonly");if(151!==t.kind&&150!==t.kind&&159!==t.kind&&148!==t.kind)return ty(l,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,a=l;break;case 84:if(1&s)return ty(l,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return ty(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return ty(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return ty(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(234===t.parent.kind)return ty(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(148===t.kind)return ty(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 79:var d=273===t.parent.kind?t.parent:t.parent.parent;if(238===d.kind&&!e.isAmbientModule(d))return ty(l,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 124:if(2&s)return ty(l,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return ty(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(234===t.parent.kind)return ty(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(148===t.kind)return ty(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(2097152&t.parent.flags&&239===t.parent.kind)return ty(l,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);s|=2,n=l;break;case 117:if(128&s)return ty(l,e.Diagnostics._0_modifier_already_seen,"abstract");if(234!==t.kind){if(153!==t.kind&&151!==t.kind&&155!==t.kind&&156!==t.kind)return ty(l,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(234!==t.parent.kind||!e.hasModifier(t.parent,128))return ty(l,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return ty(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return ty(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}s|=128;break;case 120:if(256&s)return ty(l,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||2097152&t.parent.flags)return ty(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(148===t.kind)return ty(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");s|=256,i=l}}return 154===t.kind?32&s?ty(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?ty(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?ty(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):64&s?ty(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):void 0:(243===t.kind||242===t.kind)&&2&s?ty(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):148===t.kind&&92&s&&e.isBindingPattern(t.name)?ty(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):148===t.kind&&92&s&&t.dotDotDotToken?ty(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):256&s?function(t,r){switch(t.kind){case 153:case 233:case 191:case 192:return!1}return ty(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(t,i):void 0}(t)}function Mg(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function Lg(t,r){if(void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),t&&t.hasTrailingComma)return ey(t[0],t.end-",".length,",".length,r)}function Rg(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return ey(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function Bg(t){var r=e.getSourceFileOfNode(t);return Ig(t)||Rg(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i<n;i++){var a=t[i];if(a.dotDotDotToken){if(i!==n-1)return ty(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(2097152&a.flags||Lg(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.isBindingPattern(a.name))return ty(a.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(a.questionToken)return ty(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return ty(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(a.questionToken){if(r=!0,a.initializer)return ty(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return ty(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(t.parameters)||function(t,r){if(!e.isArrowFunction(t))return!1;var n=t.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(r,n.pos).line,a=e.getLineAndCharacterOfPosition(r,n.end).line;return i!==a&&ty(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)}function jg(t,r){return Lg(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return ey(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}(t,r)}function Jg(t){return function(t){if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(205===i.kind)return ey(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}}(t)}function zg(t){var r=t.types;if(Lg(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return ey(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.forEach(r,Kg)}function Kg(e){return jg(e,e.typeArguments)}function Ug(t){if(146!==t.kind)return!1;var r=t;return 199===r.expression.kind&&26===r.expression.operatorToken.kind?ty(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):void 0}function qg(t){if(t.asteriskToken){if(e.Debug.assert(233===t.kind||191===t.kind||153===t.kind),2097152&t.flags)return ty(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return ty(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function Vg(e,t){if(e)return ty(e,t)}function Wg(t){if(ry(t))return!0;if(221===t.kind&&t.awaitModifier&&0==(16384&t.flags))return ty(t.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator);if(232===t.initializer.kind){var r=t.initializer;if(!Yg(r)){var n=r.declarations;if(!n.length)return!1;if(n.length>1){var i=220===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Zg(r.declarations[1],i)}var a=n[0];if(a.initializer){var i=220===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return ty(a.name,i)}if(a.type)return ty(a,i=220===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function Hg(t){if(t.parameters.length===(155===t.kind?1:2))return e.getThisParameter(t)}function Gg(t,r){if(function(t){return e.isDynamicName(t)&&!Hi(t)}(t))return ty(t,r)}function Xg(t){if(Bg(t))return!0;if(153===t.kind){if(183===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||120!==e.first(t.modifiers).kind))return Zg(t,e.Diagnostics.Modifiers_cannot_appear_here);if(Vg(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return ey(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(qg(t))return!0}if(e.isClassLike(t.parent)){if(2097152&t.flags)return Gg(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(153===t.kind&&!t.body)return Gg(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(235===t.parent.kind)return Gg(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(165===t.parent.kind)return Gg(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Qg(e){return 9===e.kind||8===e.kind||197===e.kind&&38===e.operator&&8===e.operand.kind}function Yg(t){var r=t.declarations;return!!Lg(t.declarations)||(t.declarations.length?void 0:ey(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty))}function $g(e){return e.parseDiagnostics.length>0}function Zg(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!$g(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Bt.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}}function ey(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);if(!$g(c))return Bt.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0}function ty(t,r,n,i,a){if(!$g(e.getSourceFileOfNode(t)))return Bt.add(e.createDiagnosticForNode(t,r,n,i,a)),!0}function ry(t){if(2097152&t.flags){if(e.isAccessor(t.parent))return br(t).hasReportedStatementInAmbientContext=!0;if(!br(t).hasReportedStatementInAmbientContext&&e.isFunctionLike(t.parent))return br(t).hasReportedStatementInAmbientContext=Zg(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(212===t.parent.kind||239===t.parent.kind||273===t.parent.kind){var r=br(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=Zg(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function ny(t){if(32&t.numericLiteralFlags){var r=void 0;if(E>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,177)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,272)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return ty(n?t.parent:t,r,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes"}(t||(t={}))}(o||(o={})),function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(jt(t,r),Ot(t,r),e.aggregateTransformFlags(t)),t}function n(t,r){if(t&&t!==e.emptyArray){if(e.isNodeArray(t))return t}else t=[];var n=t;return n.pos=-1,n.end=-1,n.hasTrailingComma=r,n}function i(e){if(void 0!==e){var r=t(e.kind);for(var n in r.flags|=e.flags,jt(r,e),e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}}function a(t,r){if("number"==typeof t)return o(t+"");if("boolean"==typeof t)return t?p():f();if(e.isString(t)){var n=s(t);return r&&(n.singleQuote=!0),n}return i=t,(a=s(e.getTextOfIdentifierOrLiteral(i))).textSourceNode=i,a;var i,a}function o(e){var r=t(8);return r.text=e,r.numericLiteralFlags=0,r}function s(e){var r=t(9);return r.text=e,r}function c(r,i){var a=t(71);return a.escapedText=e.escapeLeadingUnderscores(r),a.originalKeywordKind=r?e.stringToToken(r):0,a.autoGenerateFlags=0,a.autoGenerateId=0,i&&(a.typeArguments=n(i)),a}e.updateNode=r,e.createNodeArray=n,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createIdentifier=c,e.updateIdentifier=function(t,n){return t.typeArguments!==n?r(c(e.idText(t),n),t):t};var u,l=0;function _(e){var t=c(e);return t.autoGenerateFlags=35,t.autoGenerateId=l,l++,t}function d(e){return t(e)}function p(){return t(101)}function f(){return t(86)}function m(e){return d(e)}function g(e,r){var n=t(145);return n.left=e,n.right=Pt(r),n}function y(r){var n=t(146);return n.expression=function(t){return e.isBinaryExpression(t)&&26===t.operatorToken.kind||297===t.kind?ie(t):t}(r),n}function h(e,r,n){var i=t(147);return i.name=Pt(e),i.constraint=r,i.default=n,i}function v(r,n,i,a,o,s,c){var u=t(148);return u.decorators=wt(r),u.modifiers=wt(n),u.dotDotDotToken=i,u.name=Pt(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function b(r){var n=t(149);return n.expression=e.parenthesizeForAccess(r),n}function x(e,r,n,i,a){var o=t(150);return o.modifiers=wt(e),o.name=Pt(r),o.questionToken=n,o.type=i,o.initializer=a,o}function S(e,r,n,i,a,o){var s=t(151);return s.decorators=wt(e),s.modifiers=wt(r),s.name=Pt(n),s.questionToken=void 0!==i&&55===i.kind?i:void 0,s.exclamationToken=void 0!==i&&51===i.kind?i:void 0,s.type=a,s.initializer=o,s}function k(e,t,r,n,i){var a=A(152,e,t,r);return a.name=Pt(n),a.questionToken=i,a}function D(e,r,i,a,o,s,c,u,l){var _=t(153);return _.decorators=wt(e),_.modifiers=wt(r),_.asteriskToken=i,_.name=Pt(a),_.questionToken=o,_.typeParameters=wt(s),_.parameters=n(c),_.type=u,_.body=l,_}function T(e,r,i,a){var o=t(154);return o.decorators=wt(e),o.modifiers=wt(r),o.typeParameters=void 0,o.parameters=n(i),o.type=void 0,o.body=a,o}function C(e,r,i,a,o,s){var c=t(155);return c.decorators=wt(e),c.modifiers=wt(r),c.name=Pt(i),c.typeParameters=void 0,c.parameters=n(a),c.type=o,c.body=s,c}function E(e,r,i,a,o){var s=t(156);return s.decorators=wt(e),s.modifiers=wt(r),s.name=Pt(i),s.typeParameters=void 0,s.parameters=n(a),s.body=o,s}function N(e,r,i,a){var o=t(159);return o.decorators=wt(e),o.modifiers=wt(r),o.parameters=n(i),o.type=a,o}function A(e,r,n,i,a){var o=t(e);return o.typeParameters=wt(r),o.parameters=wt(n),o.type=i,o.typeArguments=wt(a),o}function P(e,t,n,i){return e.typeParameters!==t||e.parameters!==n||e.type!==i?r(A(e.kind,t,n,i),e):e}function w(e,r){var n=t(160);return n.parameterName=Pt(e),n.type=r,n}function F(r,n){var i=t(161);return i.typeName=Pt(r),i.typeArguments=n&&e.parenthesizeTypeParameters(n),i}function O(e){var r=t(164);return r.exprName=e,r}function I(e){var r=t(165);return r.members=n(e),r}function M(r){var n=t(166);return n.elementType=e.parenthesizeArrayTypeMember(r),n}function L(e){var r=t(167);return r.elementTypes=n(e),r}function R(r,n){var i=t(r);return i.types=e.parenthesizeElementTypeMembers(n),i}function B(e,t){return e.types!==t?r(R(e.kind,t),e):e}function j(r,n,i,a){var o=t(170);return o.checkType=e.parenthesizeConditionalTypeMember(r),o.extendsType=e.parenthesizeConditionalTypeMember(n),o.trueType=i,o.falseType=a,o}function J(e){var r=t(171);return r.typeParameter=e,r}function z(e,r,n,i){var a=t(178);return a.argument=e,a.qualifier=r,a.typeArguments=wt(n),a.isTypeOf=i,a}function K(e){var r=t(172);return r.type=e,r}function U(r,n){var i=t(174);return i.operator="number"==typeof r?r:128,i.type=e.parenthesizeElementTypeMember("number"==typeof r?n:r),i}function q(r,n){var i=t(175);return i.objectType=e.parenthesizeElementTypeMember(r),i.indexType=n,i}function V(e,r,n,i){var a=t(176);return a.readonlyToken=e,a.typeParameter=r,a.questionToken=n,a.type=i,a}function W(e){var r=t(177);return r.literal=e,r}function H(e){var r=t(179);return r.elements=n(e),r}function G(e){var r=t(180);return r.elements=n(e),r}function X(e,r,n,i){var a=t(181);return a.dotDotDotToken=e,a.propertyName=Pt(r),a.name=Pt(n),a.initializer=i,a}function Q(r,i){var a=t(182);return a.elements=e.parenthesizeListElements(n(r)),i&&(a.multiLine=!0),a}function Y(e,r){var i=t(183);return i.properties=n(e),r&&(i.multiLine=!0),i}function $(r,n){var i=t(184);return i.expression=e.parenthesizeForAccess(r),i.name=Pt(n),It(i,131072),i}function Z(r,n){var i,o=t(185);return o.expression=e.parenthesizeForAccess(r),o.argumentExpression=(i=n,e.isString(i)||"number"==typeof i?a(i):i),o}function ee(r,i,a){var o=t(186);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=wt(i),o.arguments=e.parenthesizeListElements(n(a)),o}function te(r,i,a){var o=t(187);return o.expression=e.parenthesizeForNew(r),o.typeArguments=wt(i),o.arguments=a?e.parenthesizeListElements(n(a)):void 0,o}function re(r,n,i){var a=t(188);return a.tag=e.parenthesizeForAccess(r),i?(a.typeArguments=wt(n),a.template=i):(a.typeArguments=void 0,a.template=n),a}function ne(r,n){var i=t(189);return i.type=r,i.expression=e.parenthesizePrefixOperand(n),i}function ie(e){var r=t(190);return r.expression=e,r}function ae(e,r,i,a,o,s,c){var u=t(191);return u.modifiers=wt(e),u.asteriskToken=r,u.name=Pt(i),u.typeParameters=wt(a),u.parameters=n(o),u.type=s,u.body=c,u}function oe(r,i,a,o,s,c){var u=t(192);return u.modifiers=wt(r),u.typeParameters=wt(i),u.parameters=n(a),u.type=o,u.equalsGreaterThanToken=s||d(36),u.body=e.parenthesizeConciseBody(c),u}function se(r){var n=t(193);return n.expression=e.parenthesizePrefixOperand(r),n}function ce(r){var n=t(194);return n.expression=e.parenthesizePrefixOperand(r),n}function ue(r){var n=t(195);return n.expression=e.parenthesizePrefixOperand(r),n}function le(r){var n=t(196);return n.expression=e.parenthesizePrefixOperand(r),n}function _e(r,n){var i=t(197);return i.operator=r,i.operand=e.parenthesizePrefixOperand(n),i}function de(r,n){var i=t(198);return i.operand=e.parenthesizePostfixOperand(r),i.operator=n,i}function pe(r,n,i){var a,o=t(199),s="number"==typeof(a=n)?d(a):a,c=s.kind;return o.left=e.parenthesizeBinaryOperand(c,r,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(c,i,!1,o.left),o}function fe(r,n,i,a,o){var s=t(200);return s.condition=e.parenthesizeForConditionalHead(r),s.questionToken=o?n:d(55),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?i:n),s.colonToken=o?a:d(56),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||i),s}function me(e,r){var i=t(201);return i.head=e,i.templateSpans=n(r),i}function ge(e,r){var n=t(202);return n.asteriskToken=e&&39===e.kind?e:void 0,n.expression=e&&39!==e.kind?e:r,n}function ye(r){var n=t(203);return n.expression=e.parenthesizeExpressionForList(r),n}function he(e,r,i,a,o){var s=t(204);return s.decorators=void 0,s.modifiers=wt(e),s.name=Pt(r),s.typeParameters=wt(i),s.heritageClauses=wt(a),s.members=n(o),s}function ve(r,n){var i=t(206);return i.expression=e.parenthesizeForAccess(n),i.typeArguments=wt(r),i}function be(e,r){var n=t(207);return n.expression=e,n.type=r,n}function xe(r){var n=t(208);return n.expression=e.parenthesizeForAccess(r),n}function Se(e,r){var n=t(209);return n.keywordToken=e,n.name=r,n}function ke(e,r){var n=t(210);return n.expression=e,n.literal=r,n}function De(e,r){var i=t(212);return i.statements=n(e),r&&(i.multiLine=r),i}function Te(r,n){var i=t(213);return i.decorators=void 0,i.modifiers=wt(r),i.declarationList=e.isArray(n)?Ke(n):n,i}function Ce(r){var n=t(215);return n.expression=e.parenthesizeExpressionForExpressionStatement(r),n}function Ee(e,r,n){var i=t(216);return i.expression=e,i.thenStatement=r,i.elseStatement=n,i}function Ne(e,r){var n=t(217);return n.statement=e,n.expression=r,n}function Ae(e,r){var n=t(218);return n.expression=e,n.statement=r,n}function Pe(e,r,n,i){var a=t(219);return a.initializer=e,a.condition=r,a.incrementor=n,a.statement=i,a}function we(e,r,n){var i=t(220);return i.initializer=e,i.expression=r,i.statement=n,i}function Fe(e,r,n,i){var a=t(221);return a.awaitModifier=e,a.initializer=r,a.expression=n,a.statement=i,a}function Oe(e){var r=t(222);return r.label=Pt(e),r}function Ie(e){var r=t(223);return r.label=Pt(e),r}function Me(e){var r=t(224);return r.expression=e,r}function Le(e,r){var n=t(225);return n.expression=e,n.statement=r,n}function Re(r,n){var i=t(226);return i.expression=e.parenthesizeExpressionForList(r),i.caseBlock=n,i}function Be(e,r){var n=t(227);return n.label=Pt(e),n.statement=r,n}function je(e){var r=t(228);return r.expression=e,r}function Je(e,r,n){var i=t(229);return i.tryBlock=e,i.catchClause=r,i.finallyBlock=n,i}function ze(r,n,i){var a=t(231);return a.name=Pt(r),a.type=n,a.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,a}function Ke(e,r){var i=t(232);return i.flags|=3&r,i.declarations=n(e),i}function Ue(e,r,i,a,o,s,c,u){var l=t(233);return l.decorators=wt(e),l.modifiers=wt(r),l.asteriskToken=i,l.name=Pt(a),l.typeParameters=wt(o),l.parameters=n(s),l.type=c,l.body=u,l}function qe(e,r,i,a,o,s){var c=t(234);return c.decorators=wt(e),c.modifiers=wt(r),c.name=Pt(i),c.typeParameters=wt(a),c.heritageClauses=wt(o),c.members=n(s),c}function Ve(e,r,i,a,o,s){var c=t(235);return c.decorators=wt(e),c.modifiers=wt(r),c.name=Pt(i),c.typeParameters=wt(a),c.heritageClauses=wt(o),c.members=n(s),c}function We(e,r,n,i,a){var o=t(236);return o.decorators=wt(e),o.modifiers=wt(r),o.name=Pt(n),o.typeParameters=wt(i),o.type=a,o}function He(e,r,i,a){var o=t(237);return o.decorators=wt(e),o.modifiers=wt(r),o.name=Pt(i),o.members=n(a),o}function Ge(e,r,n,i,a){var o=t(238);return o.flags|=532&a,o.decorators=wt(e),o.modifiers=wt(r),o.name=n,o.body=i,o}function Xe(e){var r=t(239);return r.statements=n(e),r}function Qe(e){var r=t(240);return r.clauses=n(e),r}function Ye(e){var r=t(241);return r.name=Pt(e),r}function $e(e,r,n,i){var a=t(242);return a.decorators=wt(e),a.modifiers=wt(r),a.name=Pt(n),a.moduleReference=i,a}function Ze(e,r,n,i){var a=t(243);return a.decorators=wt(e),a.modifiers=wt(r),a.importClause=n,a.moduleSpecifier=i,a}function et(e,r){var n=t(244);return n.name=e,n.namedBindings=r,n}function tt(e){var r=t(245);return r.name=e,r}function rt(e){var r=t(246);return r.elements=n(e),r}function nt(e,r){var n=t(247);return n.propertyName=e,n.name=r,n}function it(r,n,i,a){var o=t(248);return o.decorators=wt(r),o.modifiers=wt(n),o.isExportEquals=i,o.expression=i?e.parenthesizeBinaryOperand(58,a,!1,void 0):e.parenthesizeDefaultExpression(a),o}function at(e,r,n,i){var a=t(249);return a.decorators=wt(e),a.modifiers=wt(r),a.exportClause=n,a.moduleSpecifier=i,a}function ot(e){var r=t(250);return r.elements=n(e),r}function st(e,r){var n=t(251);return n.propertyName=Pt(e),n.name=Pt(r),n}function ct(e){var r=t(253);return r.expression=e,r}function ut(e,r,i){var a=t(254);return a.openingElement=e,a.children=n(r),a.closingElement=i,a}function lt(e,r,i){var a=t(255);return a.tagName=e,a.typeArguments=r&&n(r),a.attributes=i,a}function _t(e,r,i){var a=t(256);return a.tagName=e,a.typeArguments=r&&n(r),a.attributes=i,a}function dt(e){var r=t(257);return r.tagName=e,r}function pt(e,r,i){var a=t(258);return a.openingFragment=e,a.children=n(r),a.closingFragment=i,a}function ft(e,r){var n=t(261);return n.name=e,n.initializer=r,n}function mt(e){var r=t(262);return r.properties=n(e),r}function gt(e){var r=t(263);return r.expression=e,r}function yt(e,r){var n=t(264);return n.dotDotDotToken=e,n.expression=r,n}function ht(r,i){var a=t(265);return a.expression=e.parenthesizeExpressionForList(r),a.statements=n(i),a}function vt(e){var r=t(266);return r.statements=n(e),r}function bt(e,r){var i=t(267);return i.token=e,i.types=n(r),i}function xt(r,n){var i=t(268);return i.variableDeclaration=e.isString(r)?ze(r):r,i.block=n,i}function St(r,n){var i=t(269);return i.name=Pt(r),i.questionToken=void 0,i.initializer=e.parenthesizeExpressionForList(n),i}function kt(r,n){var i=t(270);return i.name=Pt(r),i.objectAssignmentInitializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,i}function Dt(r){var n=t(271);return n.expression=void 0!==r?e.parenthesizeExpressionForList(r):void 0,n}function Tt(r,n){var i=t(272);return i.name=Pt(r),i.initializer=n&&e.parenthesizeExpressionForList(n),i}function Ct(e,r){var n=t(296);return n.expression=e,n.original=r,Ot(n,r),n}function Et(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(297===t.kind)return t.elements;if(e.isBinaryExpression(t)&&26===t.operatorToken.kind)return[t.left,t.right]}return t}function Nt(r){var i=t(297);return i.elements=n(e.sameFlatMap(r,Et)),i}function At(t){var r=e.createNode(274);return r.sourceFiles=t,r}function Pt(t){return e.isString(t)?c(t):t}function wt(e){return e?n(e):void 0}function Ft(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(273===t.kind)return t.emitNode={annotatedNodes:[t]};Ft(e.getSourceFileOfNode(t)).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Ot(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function It(e,t){return Ft(e).flags=t,e}function Mt(e){var t=e.emitNode;return t&&t.leadingComments}function Lt(e,t){return Ft(e).leadingComments=t,e}function Rt(e){var t=e.emitNode;return t&&t.trailingComments}function Bt(e,t){return Ft(e).trailingComments=t,e}function jt(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,_=t.startsOnNewLine;r||(r={});i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments));a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments));n&&(r.flags=n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==u&&(r.constantValue=u);l&&(r.helpers=e.addRange(r.helpers,l));void 0!==_&&(r.startsOnNewLine=_);return r}(n,t.emitNode))}return t}e.createTempVariable=function(e,t){var r=c("");return r.autoGenerateFlags=1,r.autoGenerateId=l,l++,e&&e(r),t&&(r.autoGenerateFlags|=16),r},e.createLoopVariable=function(){var e=c("");return e.autoGenerateFlags=2,e.autoGenerateId=l,l++,e},e.createUniqueName=function(e){var t=c(e);return t.autoGenerateFlags=3,t.autoGenerateId=l,l++,t},e.createOptimisticUniqueName=_,e.createFileLevelUniqueName=function(e){var t=_(e);return t.autoGenerateFlags|=64,t},e.getGeneratedNameForNode=function(e,t){var r=c("");return r.autoGenerateFlags=4,r.autoGenerateId=l,r.original=e,t&&(r.autoGenerateFlags|=8),l++,r},e.createToken=d,e.createSuper=function(){return t(97)},e.createThis=function(){return t(99)},e.createNull=function(){return t(95)},e.createTrue=p,e.createFalse=f,e.createModifier=m,e.createModifiersFromModifierFlags=function(e){var t=[];return 1&e&&t.push(m(84)),2&e&&t.push(m(124)),512&e&&t.push(m(79)),2048&e&&t.push(m(76)),4&e&&t.push(m(114)),8&e&&t.push(m(112)),16&e&&t.push(m(113)),128&e&&t.push(m(117)),32&e&&t.push(m(115)),64&e&&t.push(m(132)),256&e&&t.push(m(120)),t},e.createQualifiedName=g,e.updateQualifiedName=function(e,t,n){return e.left!==t||e.right!==n?r(g(t,n),e):e},e.createComputedPropertyName=y,e.updateComputedPropertyName=function(e,t){return e.expression!==t?r(y(t),e):e},e.createTypeParameterDeclaration=h,e.updateTypeParameterDeclaration=function(e,t,n,i){return e.name!==t||e.constraint!==n||e.default!==i?r(h(t,n,i),e):e},e.createParameter=v,e.updateParameter=function(e,t,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==i||e.name!==a||e.questionToken!==o||e.type!==s||e.initializer!==c?r(v(t,n,i,a,o,s,c),e):e},e.createDecorator=b,e.updateDecorator=function(e,t){return e.expression!==t?r(b(t),e):e},e.createPropertySignature=x,e.updatePropertySignature=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?r(x(t,n,i,a,o),e):e},e.createProperty=S,e.updateProperty=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.questionToken!==(void 0!==a&&55===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&51===a.kind?a:void 0)||e.type!==o||e.initializer!==s?r(S(t,n,i,a,o,s),e):e},e.createMethodSignature=k,e.updateMethodSignature=function(e,t,n,i,a,o){return e.typeParameters!==t||e.parameters!==n||e.type!==i||e.name!==a||e.questionToken!==o?r(k(t,n,i,a,o),e):e},e.createMethod=D,e.updateMethod=function(e,t,n,i,a,o,s,c,u,l){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.questionToken!==o||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?r(D(t,n,i,a,o,s,c,u,l),e):e},e.createConstructor=T,e.updateConstructor=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.parameters!==i||e.body!==a?r(T(t,n,i,a),e):e},e.createGetAccessor=C,e.updateGetAccessor=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.type!==o||e.body!==s?r(C(t,n,i,a,o,s),e):e},e.createSetAccessor=E,e.updateSetAccessor=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.body!==o?r(E(t,n,i,a,o),e):e},e.createCallSignature=function(e,t,r){return A(157,e,t,r)},e.updateCallSignature=function(e,t,r,n){return P(e,t,r,n)},e.createConstructSignature=function(e,t,r){return A(158,e,t,r)},e.updateConstructSignature=function(e,t,r,n){return P(e,t,r,n)},e.createIndexSignature=N,e.updateIndexSignature=function(e,t,n,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==n?r(N(t,n,i,a),e):e},e.createSignatureDeclaration=A,e.createKeywordTypeNode=function(e){return t(e)},e.createTypePredicateNode=w,e.updateTypePredicateNode=function(e,t,n){return e.parameterName!==t||e.type!==n?r(w(t,n),e):e},e.createTypeReferenceNode=F,e.updateTypeReferenceNode=function(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(F(t,n),e):e},e.createFunctionTypeNode=function(e,t,r){return A(162,e,t,r)},e.updateFunctionTypeNode=function(e,t,r,n){return P(e,t,r,n)},e.createConstructorTypeNode=function(e,t,r){return A(163,e,t,r)},e.updateConstructorTypeNode=function(e,t,r,n){return P(e,t,r,n)},e.createTypeQueryNode=O,e.updateTypeQueryNode=function(e,t){return e.exprName!==t?r(O(t),e):e},e.createTypeLiteralNode=I,e.updateTypeLiteralNode=function(e,t){return e.members!==t?r(I(t),e):e},e.createArrayTypeNode=M,e.updateArrayTypeNode=function(e,t){return e.elementType!==t?r(M(t),e):e},e.createTupleTypeNode=L,e.updateTypleTypeNode=function(e,t){return e.elementTypes!==t?r(L(t),e):e},e.createUnionTypeNode=function(e){return R(168,e)},e.updateUnionTypeNode=function(e,t){return B(e,t)},e.createIntersectionTypeNode=function(e){return R(169,e)},e.updateIntersectionTypeNode=function(e,t){return B(e,t)},e.createUnionOrIntersectionTypeNode=R,e.createConditionalTypeNode=j,e.updateConditionalTypeNode=function(e,t,n,i,a){return e.checkType!==t||e.extendsType!==n||e.trueType!==i||e.falseType!==a?r(j(t,n,i,a),e):e},e.createInferTypeNode=J,e.updateInferTypeNode=function(e,t){return e.typeParameter!==t?r(J(t),e):e},e.createImportTypeNode=z,e.updateImportTypeNode=function(e,t,n,i,a){return e.argument!==t||e.qualifier!==n||e.typeArguments!==i||e.isTypeOf!==a?r(z(t,n,i,a),e):e},e.createParenthesizedType=K,e.updateParenthesizedType=function(e,t){return e.type!==t?r(K(t),e):e},e.createThisTypeNode=function(){return t(173)},e.createTypeOperatorNode=U,e.updateTypeOperatorNode=function(e,t){return e.type!==t?r(U(e.operator,t),e):e},e.createIndexedAccessTypeNode=q,e.updateIndexedAccessTypeNode=function(e,t,n){return e.objectType!==t||e.indexType!==n?r(q(t,n),e):e},e.createMappedTypeNode=V,e.updateMappedTypeNode=function(e,t,n,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==i||e.type!==a?r(V(t,n,i,a),e):e},e.createLiteralTypeNode=W,e.updateLiteralTypeNode=function(e,t){return e.literal!==t?r(W(t),e):e},e.createObjectBindingPattern=H,e.updateObjectBindingPattern=function(e,t){return e.elements!==t?r(H(t),e):e},e.createArrayBindingPattern=G,e.updateArrayBindingPattern=function(e,t){return e.elements!==t?r(G(t),e):e},e.createBindingElement=X,e.updateBindingElement=function(e,t,n,i,a){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?r(X(t,n,i,a),e):e},e.createArrayLiteral=Q,e.updateArrayLiteral=function(e,t){return e.elements!==t?r(Q(t,e.multiLine),e):e},e.createObjectLiteral=Y,e.updateObjectLiteral=function(e,t){return e.properties!==t?r(Y(t,e.multiLine),e):e},e.createPropertyAccess=$,e.updatePropertyAccess=function(t,n,i){return t.expression!==n||t.name!==i?r(It($(n,i),e.getEmitFlags(t)),t):t},e.createElementAccess=Z,e.updateElementAccess=function(e,t,n){return e.expression!==t||e.argumentExpression!==n?r(Z(t,n),e):e},e.createCall=ee,e.updateCall=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(ee(t,n,i),e):e},e.createNew=te,e.updateNew=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(te(t,n,i),e):e},e.createTaggedTemplate=re,e.updateTaggedTemplate=function(e,t,n,i){return e.tag!==t||(i?e.typeArguments!==n||e.template!==i:void 0!==e.typeArguments||e.template!==n)?r(re(t,n,i),e):e},e.createTypeAssertion=ne,e.updateTypeAssertion=function(e,t,n){return e.type!==t||e.expression!==n?r(ne(t,n),e):e},e.createParen=ie,e.updateParen=function(e,t){return e.expression!==t?r(ie(t),e):e},e.createFunctionExpression=ae,e.updateFunctionExpression=function(e,t,n,i,a,o,s,c){return e.name!==i||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?r(ae(t,n,i,a,o,s,c),e):e},e.createArrowFunction=oe,e.updateArrowFunction=function(t,n,i,a,o,s,c){var u,l;return void 0===c?(u=t.equalsGreaterThanToken,l=e.cast(s,e.isConciseBody)):(u=e.cast(s,function(e){return 36===e.kind}),l=c),t.modifiers!==n||t.typeParameters!==i||t.parameters!==a||t.type!==o||t.equalsGreaterThanToken!==u||t.body!==l?r(oe(n,i,a,o,u,l),t):t},e.createDelete=se,e.updateDelete=function(e,t){return e.expression!==t?r(se(t),e):e},e.createTypeOf=ce,e.updateTypeOf=function(e,t){return e.expression!==t?r(ce(t),e):e},e.createVoid=ue,e.updateVoid=function(e,t){return e.expression!==t?r(ue(t),e):e},e.createAwait=le,e.updateAwait=function(e,t){return e.expression!==t?r(le(t),e):e},e.createPrefix=_e,e.updatePrefix=function(e,t){return e.operand!==t?r(_e(e.operator,t),e):e},e.createPostfix=de,e.updatePostfix=function(e,t){return e.operand!==t?r(de(t,e.operator),e):e},e.createBinary=pe,e.updateBinary=function(e,t,n,i){return e.left!==t||e.right!==n?r(pe(t,i||e.operatorToken,n),e):e},e.createConditional=fe,e.updateConditional=function t(n,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];if(2===a.length){var s=a[0],c=a[1];return t(n,i,n.questionToken,s,n.colonToken,c)}e.Debug.assert(4===a.length);var u=a[0],l=a[1],_=a[2],d=a[3];return n.condition!==i||n.questionToken!==u||n.whenTrue!==l||n.colonToken!==_||n.whenFalse!==d?r(fe(i,u,l,_,d),n):n},e.createTemplateExpression=me,e.updateTemplateExpression=function(e,t,n){return e.head!==t||e.templateSpans!==n?r(me(t,n),e):e},e.createTemplateHead=function(e){var r=t(14);return r.text=e,r},e.createTemplateMiddle=function(e){var r=t(15);return r.text=e,r},e.createTemplateTail=function(e){var r=t(16);return r.text=e,r},e.createNoSubstitutionTemplateLiteral=function(e){var r=t(13);return r.text=e,r},e.createYield=ge,e.updateYield=function(e,t,n){return e.expression!==n||e.asteriskToken!==t?r(ge(t,n),e):e},e.createSpread=ye,e.updateSpread=function(e,t){return e.expression!==t?r(ye(t),e):e},e.createClassExpression=he,e.updateClassExpression=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?r(he(t,n,i,a,o),e):e},e.createOmittedExpression=function(){return t(205)},e.createExpressionWithTypeArguments=ve,e.updateExpressionWithTypeArguments=function(e,t,n){return e.typeArguments!==t||e.expression!==n?r(ve(t,n),e):e},e.createAsExpression=be,e.updateAsExpression=function(e,t,n){return e.expression!==t||e.type!==n?r(be(t,n),e):e},e.createNonNullExpression=xe,e.updateNonNullExpression=function(e,t){return e.expression!==t?r(xe(t),e):e},e.createMetaProperty=Se,e.updateMetaProperty=function(e,t){return e.name!==t?r(Se(e.keywordToken,t),e):e},e.createTemplateSpan=ke,e.updateTemplateSpan=function(e,t,n){return e.expression!==t||e.literal!==n?r(ke(t,n),e):e},e.createSemicolonClassElement=function(){return t(211)},e.createBlock=De,e.updateBlock=function(e,t){return e.statements!==t?r(De(t,e.multiLine),e):e},e.createVariableStatement=Te,e.updateVariableStatement=function(e,t,n){return e.modifiers!==t||e.declarationList!==n?r(Te(t,n),e):e},e.createEmptyStatement=function(){return t(214)},e.createStatement=Ce,e.updateStatement=function(e,t){return e.expression!==t?r(Ce(t),e):e},e.createIf=Ee,e.updateIf=function(e,t,n,i){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==i?r(Ee(t,n,i),e):e},e.createDo=Ne,e.updateDo=function(e,t,n){return e.statement!==t||e.expression!==n?r(Ne(t,n),e):e},e.createWhile=Ae,e.updateWhile=function(e,t,n){return e.expression!==t||e.statement!==n?r(Ae(t,n),e):e},e.createFor=Pe,e.updateFor=function(e,t,n,i,a){return e.initializer!==t||e.condition!==n||e.incrementor!==i||e.statement!==a?r(Pe(t,n,i,a),e):e},e.createForIn=we,e.updateForIn=function(e,t,n,i){return e.initializer!==t||e.expression!==n||e.statement!==i?r(we(t,n,i),e):e},e.createForOf=Fe,e.updateForOf=function(e,t,n,i,a){return e.awaitModifier!==t||e.initializer!==n||e.expression!==i||e.statement!==a?r(Fe(t,n,i,a),e):e},e.createContinue=Oe,e.updateContinue=function(e,t){return e.label!==t?r(Oe(t),e):e},e.createBreak=Ie,e.updateBreak=function(e,t){return e.label!==t?r(Ie(t),e):e},e.createReturn=Me,e.updateReturn=function(e,t){return e.expression!==t?r(Me(t),e):e},e.createWith=Le,e.updateWith=function(e,t,n){return e.expression!==t||e.statement!==n?r(Le(t,n),e):e},e.createSwitch=Re,e.updateSwitch=function(e,t,n){return e.expression!==t||e.caseBlock!==n?r(Re(t,n),e):e},e.createLabel=Be,e.updateLabel=function(e,t,n){return e.label!==t||e.statement!==n?r(Be(t,n),e):e},e.createThrow=je,e.updateThrow=function(e,t){return e.expression!==t?r(je(t),e):e},e.createTry=Je,e.updateTry=function(e,t,n,i){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==i?r(Je(t,n,i),e):e},e.createDebuggerStatement=function(){return t(230)},e.createVariableDeclaration=ze,e.updateVariableDeclaration=function(e,t,n,i){return e.name!==t||e.type!==n||e.initializer!==i?r(ze(t,n,i),e):e},e.createVariableDeclarationList=Ke,e.updateVariableDeclarationList=function(e,t){return e.declarations!==t?r(Ke(t,e.flags),e):e},e.createFunctionDeclaration=Ue,e.updateFunctionDeclaration=function(e,t,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?r(Ue(t,n,i,a,o,s,c,u),e):e},e.createClassDeclaration=qe,e.updateClassDeclaration=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(qe(t,n,i,a,o,s),e):e},e.createInterfaceDeclaration=Ve,e.updateInterfaceDeclaration=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(Ve(t,n,i,a,o,s),e):e},e.createTypeAliasDeclaration=We,e.updateTypeAliasDeclaration=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.type!==o?r(We(t,n,i,a,o),e):e},e.createEnumDeclaration=He,e.updateEnumDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.members!==a?r(He(t,n,i,a),e):e},e.createModuleDeclaration=Ge,e.updateModuleDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.body!==a?r(Ge(t,n,i,a,e.flags),e):e},e.createModuleBlock=Xe,e.updateModuleBlock=function(e,t){return e.statements!==t?r(Xe(t),e):e},e.createCaseBlock=Qe,e.updateCaseBlock=function(e,t){return e.clauses!==t?r(Qe(t),e):e},e.createNamespaceExportDeclaration=Ye,e.updateNamespaceExportDeclaration=function(e,t){return e.name!==t?r(Ye(t),e):e},e.createImportEqualsDeclaration=$e,e.updateImportEqualsDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.moduleReference!==a?r($e(t,n,i,a),e):e},e.createImportDeclaration=Ze,e.updateImportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.importClause!==i||e.moduleSpecifier!==a?r(Ze(t,n,i,a),e):e},e.createImportClause=et,e.updateImportClause=function(e,t,n){return e.name!==t||e.namedBindings!==n?r(et(t,n),e):e},e.createNamespaceImport=tt,e.updateNamespaceImport=function(e,t){return e.name!==t?r(tt(t),e):e},e.createNamedImports=rt,e.updateNamedImports=function(e,t){return e.elements!==t?r(rt(t),e):e},e.createImportSpecifier=nt,e.updateImportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(nt(t,n),e):e},e.createExportAssignment=it,e.updateExportAssignment=function(e,t,n,i){return e.decorators!==t||e.modifiers!==n||e.expression!==i?r(it(t,n,e.isExportEquals,i),e):e},e.createExportDeclaration=at,e.updateExportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.exportClause!==i||e.moduleSpecifier!==a?r(at(t,n,i,a),e):e},e.createNamedExports=ot,e.updateNamedExports=function(e,t){return e.elements!==t?r(ot(t),e):e},e.createExportSpecifier=st,e.updateExportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(st(t,n),e):e},e.createExternalModuleReference=ct,e.updateExternalModuleReference=function(e,t){return e.expression!==t?r(ct(t),e):e},e.createJsxElement=ut,e.updateJsxElement=function(e,t,n,i){return e.openingElement!==t||e.children!==n||e.closingElement!==i?r(ut(t,n,i),e):e},e.createJsxSelfClosingElement=lt,e.updateJsxSelfClosingElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(lt(t,n,i),e):e},e.createJsxOpeningElement=_t,e.updateJsxOpeningElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(_t(t,n,i),e):e},e.createJsxClosingElement=dt,e.updateJsxClosingElement=function(e,t){return e.tagName!==t?r(dt(t),e):e},e.createJsxFragment=pt,e.updateJsxFragment=function(e,t,n,i){return e.openingFragment!==t||e.children!==n||e.closingFragment!==i?r(pt(t,n,i),e):e},e.createJsxAttribute=ft,e.updateJsxAttribute=function(e,t,n){return e.name!==t||e.initializer!==n?r(ft(t,n),e):e},e.createJsxAttributes=mt,e.updateJsxAttributes=function(e,t){return e.properties!==t?r(mt(t),e):e},e.createJsxSpreadAttribute=gt,e.updateJsxSpreadAttribute=function(e,t){return e.expression!==t?r(gt(t),e):e},e.createJsxExpression=yt,e.updateJsxExpression=function(e,t){return e.expression!==t?r(yt(e.dotDotDotToken,t),e):e},e.createCaseClause=ht,e.updateCaseClause=function(e,t,n){return e.expression!==t||e.statements!==n?r(ht(t,n),e):e},e.createDefaultClause=vt,e.updateDefaultClause=function(e,t){return e.statements!==t?r(vt(t),e):e},e.createHeritageClause=bt,e.updateHeritageClause=function(e,t){return e.types!==t?r(bt(e.token,t),e):e},e.createCatchClause=xt,e.updateCatchClause=function(e,t,n){return e.variableDeclaration!==t||e.block!==n?r(xt(t,n),e):e},e.createPropertyAssignment=St,e.updatePropertyAssignment=function(e,t,n){return e.name!==t||e.initializer!==n?r(St(t,n),e):e},e.createShorthandPropertyAssignment=kt,e.updateShorthandPropertyAssignment=function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?r(kt(t,n),e):e},e.createSpreadAssignment=Dt,e.updateSpreadAssignment=function(e,t){return e.expression!==t?r(Dt(t),e):e},e.createEnumMember=Tt,e.updateEnumMember=function(e,t,n){return e.name!==t||e.initializer!==n?r(Tt(t,n),e):e},e.updateSourceFileNode=function(e,i,a,o,s,c){if(e.statements!==i||void 0!==a&&e.isDeclarationFile!==a||void 0!==o&&e.referencedFiles!==o||void 0!==s&&e.typeReferenceDirectives!==s||void 0!==c&&e.hasNoDefaultLib!==c){var u=t(273);return u.flags|=e.flags,u.statements=n(i),u.endOfFileToken=e.endOfFileToken,u.fileName=e.fileName,u.path=e.path,u.text=e.text,u.isDeclarationFile=void 0===a?e.isDeclarationFile:a,u.referencedFiles=void 0===o?e.referencedFiles:o,u.typeReferenceDirectives=void 0===s?e.typeReferenceDirectives:s,u.hasNoDefaultLib=void 0===c?e.hasNoDefaultLib:c,void 0!==e.amdDependencies&&(u.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(u.moduleName=e.moduleName),void 0!==e.languageVariant&&(u.languageVariant=e.languageVariant),void 0!==e.renamedDependencies&&(u.renamedDependencies=e.renamedDependencies),void 0!==e.languageVersion&&(u.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(u.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(u.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(u.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(u.identifiers=e.identifiers),void 0!==e.nodeCount&&(u.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(u.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(u.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(u.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(u.bindDiagnostics=e.bindDiagnostics),void 0!==e.lineMap&&(u.lineMap=e.lineMap),void 0!==e.classifiableNames&&(u.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(u.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(u.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(u.imports=e.imports),void 0!==e.moduleAugmentations&&(u.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(u.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(u.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(u.localJsxNamespace=e.localJsxNamespace),r(u,e)}return e},e.getMutableClone=function(e){var t=i(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t},e.createNotEmittedStatement=function(e){var r=t(295);return r.original=e,Ot(r,e),r},e.createEndOfDeclarationMarker=function(e){var r=t(299);return r.emitNode={},r.original=e,r},e.createMergeDeclarationMarker=function(e){var r=t(298);return r.emitNode={},r.original=e,r},e.createPartiallyEmittedExpression=Ct,e.updatePartiallyEmittedExpression=function(e,t){return e.expression!==t?r(Ct(t,e.original),e):e},e.createCommaList=Nt,e.updateCommaList=function(e,t){return e.elements!==t?r(Nt(t),e):e},e.createBundle=At,e.updateBundle=function(e,t){return e.sourceFiles!==t?At(t):e},e.createImmediatelyInvokedFunctionExpression=function(e,t,r){return ee(ae(void 0,void 0,void 0,void 0,t?[t]:[],void 0,De(e,!0)),void 0,r?[r]:[])},e.createImmediatelyInvokedArrowFunction=function(e,t,r){return ee(oe(void 0,void 0,t?[t]:[],void 0,void 0,De(e,!0)),void 0,r?[r]:[])},e.createComma=function(e,t){return pe(e,26,t)},e.createLessThan=function(e,t){return pe(e,27,t)},e.createAssignment=function(e,t){return pe(e,58,t)},e.createStrictEquality=function(e,t){return pe(e,34,t)},e.createStrictInequality=function(e,t){return pe(e,35,t)},e.createAdd=function(e,t){return pe(e,37,t)},e.createSubtract=function(e,t){return pe(e,38,t)},e.createPostfixIncrement=function(e){return de(e,43)},e.createLogicalAnd=function(e,t){return pe(e,53,t)},e.createLogicalOr=function(e,t){return pe(e,54,t)},e.createLogicalNot=function(e){return _e(51,e)},e.createVoidZero=function(){return ue(a(0))},e.createExportDefault=function(e){return it(void 0,void 0,!1,e)},e.createExternalModuleExport=function(e){return at(void 0,void 0,ot([st(void 0,e)]))},e.disposeEmitNodes=function(t){var r=(t=e.getSourceFileOfNode(e.getParseTreeNode(t)))&&t.emitNode,n=r&&r.annotatedNodes;if(n)for(var i=0,a=n;i<a.length;i++)a[i].emitNode=void 0},e.getOrCreateEmitNode=Ft,e.setTextRange=Ot,e.setEmitFlags=It,e.addEmitFlags=function(e,t){var r=Ft(e);return r.flags=r.flags|t,e},e.getSourceMapRange=function(e){var t=e.emitNode;return t&&t.sourceMapRange||e},e.setSourceMapRange=function(e,t){return Ft(e).sourceMapRange=t,e},e.createSourceMapSource=function(t,r,n){return new(u||(u=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n)},e.getTokenSourceMapRange=function(e,t){var r=e.emitNode,n=r&&r.tokenSourceMapRanges;return n&&n[t]},e.setTokenSourceMapRange=function(e,t,r){var n=Ft(e);return(n.tokenSourceMapRanges||(n.tokenSourceMapRanges=[]))[t]=r,e},e.getStartsOnNewLine=function(e){var t=e.emitNode;return t&&t.startsOnNewLine},e.setStartsOnNewLine=function(e,t){return Ft(e).startsOnNewLine=t,e},e.getCommentRange=function(e){var t=e.emitNode;return t&&t.commentRange||e},e.setCommentRange=function(e,t){return Ft(e).commentRange=t,e},e.getSyntheticLeadingComments=Mt,e.setSyntheticLeadingComments=Lt,e.addSyntheticLeadingComment=function(t,r,n,i){return Lt(t,e.append(Mt(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))},e.getSyntheticTrailingComments=Rt,e.setSyntheticTrailingComments=Bt,e.addSyntheticTrailingComment=function(t,r,n,i){return Bt(t,e.append(Rt(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))},e.getConstantValue=function(e){var t=e.emitNode;return t&&t.constantValue},e.setConstantValue=function(e,t){return Ft(e).constantValue=t,e},e.addEmitHelper=function(t,r){var n=Ft(t);return n.helpers=e.append(n.helpers,r),t},e.addEmitHelpers=function(t,r){if(e.some(r))for(var n=Ft(t),i=0,a=r;i<a.length;i++){var o=a[i];n.helpers=e.appendIfUnique(n.helpers,o)}return t},e.removeEmitHelper=function(t,r){var n=t.emitNode;if(n){var i=n.helpers;if(i)return e.orderedRemoveItem(i,r)}return!1},e.getEmitHelpers=function(e){var t=e.emitNode;return t&&t.helpers},e.moveEmitHelpers=function(t,r,n){var i=t.emitNode,a=i&&i.helpers;if(e.some(a)){for(var o=Ft(r),s=0,c=0;c<a.length;c++){var u=a[c];n(u)?(s++,o.helpers=e.appendIfUnique(o.helpers,u)):s>0&&(a[c-s]=u)}s>0&&(a.length-=s)}},e.compareEmitHelpers=function(t,r){return t===r?0:t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)},e.setOriginalNode=jt}(o||(o={})),function(e){function t(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var i=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function n(t,n,i){return t?function t(n,i){if(e.isQualifiedName(n)){var a=t(n.left,i),o=e.createIdentifier(e.idText(n.right));return o.escapedText=n.right.escapedText,e.createPropertyAccess(a,o)}return r(e.idText(n),i)}(t,i):e.createPropertyAccess(r(n,i),"createElement")}function i(t){return e.setEmitFlags(e.createIdentifier(t),4098)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:function(){},getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop},e.createTypeCheck=function(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))},e.createMemberAccessForPropertyName=t,e.createFunctionCall=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[r].concat(n)),i)},e.createFunctionApply=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[r,n]),i)},e.createArraySlice=function(t,r){var n=[];return void 0!==r&&n.push("number"==typeof r?e.createLiteral(r):r),e.createCall(e.createPropertyAccess(t,"slice"),void 0,n)},e.createArrayConcat=function(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,r)},e.createMathPow=function(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,r]),n)},e.createExpressionForJsxElement=function(t,r,i,a,o,s,c){var u=[i];if(a&&u.push(a),o&&o.length>0)if(a||u.push(e.createNull()),o.length>1)for(var l=0,_=o;l<_.length;l++){var d=_[l];C(d),u.push(d)}else u.push(o[0]);return e.setTextRange(e.createCall(n(t,r,s),void 0,u),c)},e.createExpressionForJsxFragment=function(t,i,a,o,s){var c=[e.createPropertyAccess(r(i,o),"Fragment")];if(c.push(e.createNull()),a&&a.length>0)if(a.length>1)for(var u=0,l=a;u<l.length;u++){var _=l[u];C(_),c.push(_)}else c.push(a[0]);return e.setTextRange(e.createCall(n(t,i,o),void 0,c),s)},e.getHelperName=i;var a={name:"typescript:values",scoped:!1,text:'\n var __values = (this && this.__values) || function (o) {\n var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;\n if (m) return m.call(o);\n return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };'};e.createValuesHelper=function(t,r,n){return t.requestEmitHelper(a),e.setTextRange(e.createCall(i("__values"),void 0,[r]),n)};var o={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'};e.createReadHelper=function(t,r,n,a){return t.requestEmitHelper(o),e.setTextRange(e.createCall(i("__read"),void 0,void 0!==n?[r,e.createLiteral(n)]:[r]),a)};var s={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};function c(t,r){var n=e.skipParentheses(t);switch(n.kind){case 71:return r;case 99:case 8:case 9:return!1;case 182:return 0!==n.elements.length;case 183:return n.properties.length>0;default:return!0}}function u(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function l(e,t,r){return _(e,t,r,8192)}function _(t,r,n,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function d(t,r,n,i){var a,o=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));return e.setTextRange(o,r),i||(a|=48),n||(a|=1536),a&&e.setEmitFlags(o,a),o}function p(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function f(t,r,n){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=r.length;a<o;){var s=r[a];if(!e.isPrologueDirective(s))break;p(s)&&(i=!0),t.push(s),a++}return n&&!i&&t.push(C(e.createStatement(e.createLiteral("use strict")))),a}function m(t,r,n,i){for(var a=r.length;n<a;){var o=r[n];if(!(1048576&e.getEmitFlags(o)))break;e.append(t,i?e.visitNode(o,i,e.isStatement):o),n++}return n}function g(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(199===t.kind&&37===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=g(t.left),n=e.isLiteralKind(r)&&r===g(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function y(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isLeftHandSideExpression(r)&&(187!==r.kind||r.arguments)?t:e.setTextRange(e.createParen(t),t)}function h(t){var r=e.skipPartiallyEmittedExpressions(t);return e.getExpressionPrecedence(r)>e.getOperatorPrecedence(199,26)?t:e.setTextRange(e.createParen(t),t)}function v(t){return 170===t.kind?e.createParenthesizedType(t):t}function b(t){switch(t.kind){case 168:case 169:case 162:case 163:return e.createParenthesizedType(t)}return v(t)}function x(e,t){for(;;){switch(e.kind){case 198:e=e.operand;continue;case 199:e=e.left;continue;case 200:e=e.condition;continue;case 186:if(t)return e;case 185:case 184:case 296:e=e.expression;continue}return e}}function S(e,t){switch(void 0===t&&(t=7),e.kind){case 190:return 0!=(1&t);case 189:case 207:case 208:return 0!=(2&t);case 296:return 0!=(4&t)}return!1}function k(t,r){var n;void 0===r&&(r=7);do{n=t,1&r&&(t=e.skipParentheses(t)),2&r&&(t=D(t)),4&r&&(t=e.skipPartiallyEmittedExpressions(t))}while(n!==t);return t}function D(t){for(;e.isAssertionExpression(t)||208===t.kind;)t=t.expression;return t}function T(t,r,n){return void 0===n&&(n=7),t&&S(t,n)&&(!(190===(i=t).kind&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i)))||e.some(e.getSyntheticLeadingComments(i))||e.some(e.getSyntheticTrailingComments(i)))?function(t,r){switch(t.kind){case 190:return e.updateParen(t,r);case 189:return e.updateTypeAssertion(t,t.type,r);case 207:return e.updateAsExpression(t,r,t.type);case 208:return e.updateNonNullExpression(t,r);case 296:return e.updatePartiallyEmittedExpression(t,r)}}(t,T(t.expression,r)):r;var i}function C(t){return e.setStartsOnNewLine(t,!0)}function E(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function N(t,r,n){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!n.out&&!n.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(r,t.fileName))}function A(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?A(t.left):e.isSpreadElement(t)?A(t.expression):t;switch(t.kind){case 269:return A(t.initializer);case 270:return t.name;case 271:return A(t.expression)}}function P(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t);var r=M(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(r,t.initializer),t),t):r}return e.Debug.assertNode(t,e.isExpression),t}function w(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=M(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function F(e){switch(e.kind){case 180:case 182:return I(e);case 179:case 183:return O(e)}}function O(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,w)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function I(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,P)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function M(t){return e.isBindingPattern(t)?F(t):(e.Debug.assertNode(t,e.isExpression),t)}e.createSpreadHelper=function(t,r,n){return t.requestEmitHelper(o),t.requestEmitHelper(s),e.setTextRange(e.createCall(i("__spread"),void 0,r),n)},e.createForOfBindingStatement=function(t,r){if(e.isVariableDeclarationList(t)){var n=e.firstOrUndefined(t.declarations),i=e.updateVariableDeclaration(n,n.name,void 0,r);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,r),t);return e.setTextRange(e.createStatement(a),t)},e.insertLeadingStatement=function(t,r){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([r].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)},e.restoreEnclosingLabel=function t(r,n,i){if(!n)return r;var a=e.updateLabel(n,n.label,227===n.statement.kind?t(r,n.statement):r);return i&&i(n),a},e.createCallBinding=function(t,r,n,i){var a,o,s=k(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=n<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=y(s);else switch(s.kind){case 184:c(s.expression,i)?(a=e.createTempVariable(r),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 185:c(s.expression,i)?(a=e.createTempVariable(r),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=y(t)}return{target:o,thisArg:a}},e.inlineExpressions=function(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)},e.createExpressionFromEntityName=function t(r){if(e.isQualifiedName(r)){var n=t(r.left),i=e.getMutableClone(r.right);return e.setTextRange(e.createPropertyAccess(n,i),r)}return e.getMutableClone(r)},e.createExpressionForPropertyName=u,e.createExpressionForObjectLiteralElementLike=function(r,n,i){switch(n.kind){case 155:case 156:return function(t,r,n,i){var a=e.getAllAccessorDeclarations(t,r),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(r===o){var l=[];if(s){var _=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(_,s),e.setOriginalNode(_,s);var d=e.createPropertyAssignment("get",_);l.push(d)}if(c){var p=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(p,c),e.setOriginalNode(p,c);var f=e.createPropertyAssignment("set",p);l.push(f)}l.push(e.createPropertyAssignment("enumerable",e.createTrue())),l.push(e.createPropertyAssignment("configurable",e.createTrue()));var m=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[n,u(r.name),e.createObjectLiteral(l,i)]),o);return e.aggregateTransformFlags(m)}}(r.properties,n,i,r.multiLine);case 269:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),r.initializer),r),r))}(n,i);case 270:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.getSynthesizedClone(r.name)),r),r))}(n,i);case 153:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r))}(n,i)}},e.getInternalName=function(e,t,r){return _(e,t,r,49152)},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.getLocalName=function(e,t,r){return _(e,t,r,16384)},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.getExportName=l,e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.getDeclarationName=function(e,t,r){return _(e,t,r)},e.getExternalModuleOrNamespaceExportName=function(t,r,n,i){return t&&e.hasModifier(r,1)?d(t,_(r),n,i):l(r,n,i)},e.getNamespaceMemberName=d,e.convertToFunctionBody=function(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)},e.convertFunctionDeclarationToExpression=function(t){e.Debug.assert(!!t.body);var r=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0),e.aggregateTransformFlags(r),r},e.addPrologue=function(e,t,r,n){return m(e,t,f(e,t,r),n)},e.addStandardPrologue=f,e.addCustomPrologue=m,e.startsWithUseStrict=function(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&p(r)},e.ensureUseStrict=function(t){for(var r=!1,n=0,i=t;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))break;if(p(a)){r=!0;break}}return r?t:e.setTextRange(e.createNodeArray([C(e.createStatement(e.createLiteral("use strict")))].concat(t)),t)},e.parenthesizeBinaryOperand=function(t,r,n,i){return 190===e.skipPartiallyEmittedExpressions(r).kind?r:function(t,r,n,i){var a=e.getOperatorPrecedence(199,t),o=e.getOperatorAssociativity(199,t),s=e.skipPartiallyEmittedExpressions(r),c=e.getExpressionPrecedence(s);switch(e.compareValues(c,a)){case-1:return!(!n&&1===o&&202===r.kind);case 1:return!1;case 0:if(n)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===t){if(function(e){return 39===e||49===e||48===e||50===e}(t))return!1;if(37===t){var u=i?g(i):0;if(e.isLiteralKind(u)&&u===g(s))return!1}}var l=e.getExpressionAssociativity(s);return 0===l}}(t,r,n,i)?e.createParen(r):r},e.parenthesizeForConditionalHead=function(t){var r=e.getOperatorPrecedence(200,55),n=e.skipPartiallyEmittedExpressions(t),i=e.getExpressionPrecedence(n);return-1===e.compareValues(i,r)?e.createParen(t):t},e.parenthesizeSubexpressionOfConditionalExpression=function(t){var r=e.skipPartiallyEmittedExpressions(t);return 199===r.kind&&26===r.operatorToken.kind||297===r.kind?e.createParen(t):t},e.parenthesizeDefaultExpression=function(t){var r=e.skipPartiallyEmittedExpressions(t);return 204===r.kind||191===r.kind||297===r.kind||e.isBinaryExpression(r)&&26===r.operatorToken.kind?e.createParen(t):t},e.parenthesizeForNew=function(t){var r=x(t,!0);switch(r.kind){case 186:return e.createParen(t);case 187:return r.arguments?t:e.createParen(t)}return y(t)},e.parenthesizeForAccess=y,e.parenthesizePostfixOperand=function(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizePrefixOperand=function(t){return e.isUnaryExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizeListElements=function(t){for(var r,n=0;n<t.length;n++){var i=h(t[n]);void 0===r&&i===t[n]||(void 0===r&&(r=t.slice(0,n)),r.push(i))}return void 0!==r?e.setTextRange(e.createNodeArray(r,t.hasTrailingComma),t):t},e.parenthesizeExpressionForList=h,e.parenthesizeExpressionForExpressionStatement=function(t){var r=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(r)){var n=r.expression,i=e.skipPartiallyEmittedExpressions(n).kind;if(191===i||192===i){var a=e.getMutableClone(r);return a.expression=e.setTextRange(e.createParen(n),n),T(t,a,4)}}var o=x(r,!1).kind;return 183===o||191===o?e.setTextRange(e.createParen(t),t):t},e.parenthesizeConditionalTypeMember=v,e.parenthesizeElementTypeMember=b,e.parenthesizeArrayTypeMember=function(t){switch(t.kind){case 164:case 174:return e.createParenthesizedType(t)}return b(t)},e.parenthesizeElementTypeMembers=function(t){return e.createNodeArray(e.sameMap(t,b))},e.parenthesizeTypeParameters=function(t){if(e.some(t)){for(var r=[],n=0;n<t.length;++n){var i=t[n];r.push(0===n&&e.isFunctionOrConstructorTypeNode(i)&&i.typeParameters?e.createParenthesizedType(i):i)}return e.createNodeArray(r)}},e.parenthesizeConciseBody=function(t){return e.isBlock(t)||183!==x(t,!1).kind?t:e.setTextRange(e.createParen(t),t)},function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=S,e.skipOuterExpressions=k,e.skipAssertions=D,e.recreateOuterExpressions=T,e.startOnNewLine=C,e.getExternalHelpersModuleName=E,e.getOrCreateExternalHelpersModuleNameIfNeeded=function(t,r,n,i){if(r.importHelpers&&e.isEffectiveExternalModule(t,r)){var a=E(t);if(a)return a;var o=e.getEmitModuleKind(r),s=(n||r.esModuleInterop&&i)&&o!==e.ModuleKind.System&&o!==e.ModuleKind.ES2015&&o!==e.ModuleKind.ESNext;if(!s){var c=e.getEmitHelpers(t);if(c)for(var u=0,l=c;u<l.length;u++)if(!l[u].scoped){s=!0;break}}if(s){var _=e.getOriginalNode(t,e.isSourceFile),d=e.getOrCreateEmitNode(_);return d.externalHelpersModuleName||(d.externalHelpersModuleName=e.createUniqueName(e.externalHelpersModuleNameText))}}},e.getLocalNameForExternalImport=function(t,r){var n=e.getNamespaceDeclarationNode(t);if(n&&!e.isDefaultImport(t)){var i=n.name;return e.isGeneratedIdentifier(i)?i:e.createIdentifier(e.getSourceTextOfNodeFromSourceFile(r,i)||e.idText(i))}return 243===t.kind&&t.importClause?e.getGeneratedNameForNode(t):249===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0},e.getExternalModuleNameLiteral=function(t,r,n,i,a){var o=e.getExternalModuleName(t);if(9===o.kind)return function(e,t,r,n){return N(r.getExternalModuleFileFromDeclaration(e),t,n)}(t,n,i,a)||function(t,r){var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n&&e.createLiteral(n)}(o,r)||e.getSynthesizedClone(o)},e.tryGetModuleNameFromFile=N,e.getInitializerOfBindingOrAssignmentElement=function t(r){return e.isDeclarationBindingElement(r)?r.initializer:e.isPropertyAssignment(r)?e.isAssignmentExpression(r.initializer,!0)?r.initializer.right:void 0:e.isShorthandPropertyAssignment(r)?r.objectAssignmentInitializer:e.isAssignmentExpression(r,!0)?r.right:e.isSpreadElement(r)?t(r.expression):void 0},e.getTargetOfBindingOrAssignmentElement=A,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 148:case 181:return e.dotDotDotToken;case 203:case 271:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(t){switch(t.kind){case 181:if(t.propertyName){var r=t.propertyName;return e.isComputedPropertyName(r)&&e.isStringOrNumericLiteral(r.expression)?r.expression:r}break;case 269:if(t.name)return r=t.name,e.isComputedPropertyName(r)&&e.isStringOrNumericLiteral(r.expression)?r.expression:r;break;case 271:return t.name}var n=A(t);if(n&&e.isPropertyName(n))return e.isComputedPropertyName(n)&&e.isStringOrNumericLiteral(n.expression)?n.expression:n;e.Debug.fail("Invalid property name for binding element.")},e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 179:case 180:case 182:return e.elements;case 183:return e.properties}},e.convertToArrayAssignmentElement=P,e.convertToObjectAssignmentElement=w,e.convertToAssignmentPattern=F,e.convertToObjectAssignmentPattern=O,e.convertToArrayAssignmentPattern=I,e.convertToAssignmentElementTarget=M}(o||(o={})),function(e){var t=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function r(t,r,n,i){if(void 0===t||void 0===r)return t;e.aggregateTransformFlags(t);var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||function(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)})(o):o,e.Debug.assertNode(a,n),e.aggregateTransformFlags(a),a):void 0}function n(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>s-i)&&(a=s-i),(i>0||a<s)&&(o=e.createNodeArray([],t.hasTrailingComma&&i+a===s));for(var c=0;c<a;c++){var u=t[c+i];e.aggregateTransformFlags(u);var l=void 0!==u?r(u):void 0;if((void 0!==o||void 0===l||l!==u)&&(void 0===o&&(o=e.createNodeArray(t.slice(0,c),t.hasTrailingComma),e.setTextRange(o,t)),l))if(e.isArray(l))for(var _=0,d=l;_<d.length;_++){var p=d[_];e.Debug.assertNode(p,n),e.aggregateTransformFlags(p),o.push(p)}else e.Debug.assertNode(l,n),e.aggregateTransformFlags(l),o.push(l)}return o||t}function i(t,r,i,a,o){i.startLexicalEnvironment(),t=n(t,r,e.isStatement,a),o&&!e.startsWithUseStrict(t)&&(t=e.setTextRange(e.createNodeArray([e.createStatement(e.createLiteral("use strict"))].concat(t)),t));var s=i.endLexicalEnvironment();return e.setTextRange(e.createNodeArray(e.concatenate(t,s)),t)}function a(t,r,i,a){void 0===a&&(a=n),i.startLexicalEnvironment();var o=a(t,r,e.isParameterDeclaration);return i.suspendLexicalEnvironment(),o}function o(t,n,i){i.resumeLexicalEnvironment();var a=r(t,n,e.isConciseBody),o=i.endLexicalEnvironment();if(e.some(o)){var s=e.convertToFunctionBody(a),c=e.mergeLexicalEnvironment(s.statements,o);return e.updateBlock(s,c)}return a}e.visitNode=r,e.visitNodes=n,e.visitLexicalEnvironment=i,e.visitParameterList=a,e.visitFunctionBody=o,e.visitEachChild=function(s,c,u,l,_){if(void 0===l&&(l=n),void 0!==s){var d=s.kind;if(d>0&&d<=144||173===d)return s;switch(d){case 71:return e.updateIdentifier(s,l(s.typeArguments,c,t));case 145:return e.updateQualifiedName(s,r(s.left,c,e.isEntityName),r(s.right,c,e.isIdentifier));case 146:return e.updateComputedPropertyName(s,r(s.expression,c,e.isExpression));case 147:return e.updateTypeParameterDeclaration(s,r(s.name,c,e.isIdentifier),r(s.constraint,c,e.isTypeNode),r(s.default,c,e.isTypeNode));case 148:return e.updateParameter(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.dotDotDotToken,_,e.isToken),r(s.name,c,e.isBindingName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 149:return e.updateDecorator(s,r(s.expression,c,e.isExpression));case 150:return e.updatePropertySignature(s,l(s.modifiers,c,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 151:return e.updateProperty(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 152:return e.updateMethodSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken));case 153:return e.updateMethod(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,_,e.isToken),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 154:return e.updateConstructor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),a(s.parameters,c,u,l),o(s.body,c,u));case 155:return e.updateGetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 156:return e.updateSetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),o(s.body,c,u));case 157:return e.updateCallSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 158:return e.updateConstructSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 159:return e.updateIndexSignature(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 160:return e.updateTypePredicateNode(s,r(s.parameterName,c),r(s.type,c,e.isTypeNode));case 161:return e.updateTypeReferenceNode(s,r(s.typeName,c,e.isEntityName),l(s.typeArguments,c,e.isTypeNode));case 162:return e.updateFunctionTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 163:return e.updateConstructorTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 164:return e.updateTypeQueryNode(s,r(s.exprName,c,e.isEntityName));case 165:return e.updateTypeLiteralNode(s,l(s.members,c,e.isTypeElement));case 166:return e.updateArrayTypeNode(s,r(s.elementType,c,e.isTypeNode));case 167:return e.updateTypleTypeNode(s,l(s.elementTypes,c,e.isTypeNode));case 168:return e.updateUnionTypeNode(s,l(s.types,c,e.isTypeNode));case 169:return e.updateIntersectionTypeNode(s,l(s.types,c,e.isTypeNode));case 170:return e.updateConditionalTypeNode(s,r(s.checkType,c,e.isTypeNode),r(s.extendsType,c,e.isTypeNode),r(s.trueType,c,e.isTypeNode),r(s.falseType,c,e.isTypeNode));case 171:return e.updateInferTypeNode(s,r(s.typeParameter,c,e.isTypeParameterDeclaration));case 178:return e.updateImportTypeNode(s,r(s.argument,c,e.isTypeNode),r(s.qualifier,c,e.isEntityName),n(s.typeArguments,c,e.isTypeNode),s.isTypeOf);case 172:return e.updateParenthesizedType(s,r(s.type,c,e.isTypeNode));case 174:return e.updateTypeOperatorNode(s,r(s.type,c,e.isTypeNode));case 175:return e.updateIndexedAccessTypeNode(s,r(s.objectType,c,e.isTypeNode),r(s.indexType,c,e.isTypeNode));case 176:return e.updateMappedTypeNode(s,r(s.readonlyToken,_,e.isToken),r(s.typeParameter,c,e.isTypeParameterDeclaration),r(s.questionToken,_,e.isToken),r(s.type,c,e.isTypeNode));case 177:return e.updateLiteralTypeNode(s,r(s.literal,c,e.isExpression));case 179:return e.updateObjectBindingPattern(s,l(s.elements,c,e.isBindingElement));case 180:return e.updateArrayBindingPattern(s,l(s.elements,c,e.isArrayBindingElement));case 181:return e.updateBindingElement(s,r(s.dotDotDotToken,_,e.isToken),r(s.propertyName,c,e.isPropertyName),r(s.name,c,e.isBindingName),r(s.initializer,c,e.isExpression));case 182:return e.updateArrayLiteral(s,l(s.elements,c,e.isExpression));case 183:return e.updateObjectLiteral(s,l(s.properties,c,e.isObjectLiteralElementLike));case 184:return e.updatePropertyAccess(s,r(s.expression,c,e.isExpression),r(s.name,c,e.isIdentifier));case 185:return e.updateElementAccess(s,r(s.expression,c,e.isExpression),r(s.argumentExpression,c,e.isExpression));case 186:return e.updateCall(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 187:return e.updateNew(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 188:return e.updateTaggedTemplate(s,r(s.tag,c,e.isExpression),n(s.typeArguments,c,e.isExpression),r(s.template,c,e.isTemplateLiteral));case 189:return e.updateTypeAssertion(s,r(s.type,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 190:return e.updateParen(s,r(s.expression,c,e.isExpression));case 191:return e.updateFunctionExpression(s,l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 192:return e.updateArrowFunction(s,l(s.modifiers,c,e.isModifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),r(s.equalsGreaterThanToken,c,e.isToken),o(s.body,c,u));case 193:return e.updateDelete(s,r(s.expression,c,e.isExpression));case 194:return e.updateTypeOf(s,r(s.expression,c,e.isExpression));case 195:return e.updateVoid(s,r(s.expression,c,e.isExpression));case 196:return e.updateAwait(s,r(s.expression,c,e.isExpression));case 197:return e.updatePrefix(s,r(s.operand,c,e.isExpression));case 198:return e.updatePostfix(s,r(s.operand,c,e.isExpression));case 199:return e.updateBinary(s,r(s.left,c,e.isExpression),r(s.right,c,e.isExpression),r(s.operatorToken,c,e.isToken));case 200:return e.updateConditional(s,r(s.condition,c,e.isExpression),r(s.questionToken,c,e.isToken),r(s.whenTrue,c,e.isExpression),r(s.colonToken,c,e.isToken),r(s.whenFalse,c,e.isExpression));case 201:return e.updateTemplateExpression(s,r(s.head,c,e.isTemplateHead),l(s.templateSpans,c,e.isTemplateSpan));case 202:return e.updateYield(s,r(s.asteriskToken,_,e.isToken),r(s.expression,c,e.isExpression));case 203:return e.updateSpread(s,r(s.expression,c,e.isExpression));case 204:return e.updateClassExpression(s,l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 206:return e.updateExpressionWithTypeArguments(s,l(s.typeArguments,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 207:return e.updateAsExpression(s,r(s.expression,c,e.isExpression),r(s.type,c,e.isTypeNode));case 208:return e.updateNonNullExpression(s,r(s.expression,c,e.isExpression));case 209:return e.updateMetaProperty(s,r(s.name,c,e.isIdentifier));case 210:return e.updateTemplateSpan(s,r(s.expression,c,e.isExpression),r(s.literal,c,e.isTemplateMiddleOrTemplateTail));case 212:return e.updateBlock(s,l(s.statements,c,e.isStatement));case 213:return e.updateVariableStatement(s,l(s.modifiers,c,e.isModifier),r(s.declarationList,c,e.isVariableDeclarationList));case 215:return e.updateStatement(s,r(s.expression,c,e.isExpression));case 216:return e.updateIf(s,r(s.expression,c,e.isExpression),r(s.thenStatement,c,e.isStatement,e.liftToBlock),r(s.elseStatement,c,e.isStatement,e.liftToBlock));case 217:return e.updateDo(s,r(s.statement,c,e.isStatement,e.liftToBlock),r(s.expression,c,e.isExpression));case 218:return e.updateWhile(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 219:return e.updateFor(s,r(s.initializer,c,e.isForInitializer),r(s.condition,c,e.isExpression),r(s.incrementor,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 220:return e.updateForIn(s,r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 221:return e.updateForOf(s,r(s.awaitModifier,c,e.isToken),r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 222:return e.updateContinue(s,r(s.label,c,e.isIdentifier));case 223:return e.updateBreak(s,r(s.label,c,e.isIdentifier));case 224:return e.updateReturn(s,r(s.expression,c,e.isExpression));case 225:return e.updateWith(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 226:return e.updateSwitch(s,r(s.expression,c,e.isExpression),r(s.caseBlock,c,e.isCaseBlock));case 227:return e.updateLabel(s,r(s.label,c,e.isIdentifier),r(s.statement,c,e.isStatement,e.liftToBlock));case 228:return e.updateThrow(s,r(s.expression,c,e.isExpression));case 229:return e.updateTry(s,r(s.tryBlock,c,e.isBlock),r(s.catchClause,c,e.isCatchClause),r(s.finallyBlock,c,e.isBlock));case 231:return e.updateVariableDeclaration(s,r(s.name,c,e.isBindingName),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 232:return e.updateVariableDeclarationList(s,l(s.declarations,c,e.isVariableDeclaration));case 233:return e.updateFunctionDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,_,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 234:return e.updateClassDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 235:return e.updateInterfaceDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isTypeElement));case 236:return e.updateTypeAliasDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),r(s.type,c,e.isTypeNode));case 237:return e.updateEnumDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.members,c,e.isEnumMember));case 238:return e.updateModuleDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.body,c,e.isModuleBody));case 239:return e.updateModuleBlock(s,l(s.statements,c,e.isStatement));case 240:return e.updateCaseBlock(s,l(s.clauses,c,e.isCaseOrDefaultClause));case 241:return e.updateNamespaceExportDeclaration(s,r(s.name,c,e.isIdentifier));case 242:return e.updateImportEqualsDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.moduleReference,c,e.isModuleReference));case 243:return e.updateImportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.importClause,c,e.isImportClause),r(s.moduleSpecifier,c,e.isExpression));case 244:return e.updateImportClause(s,r(s.name,c,e.isIdentifier),r(s.namedBindings,c,e.isNamedImportBindings));case 245:return e.updateNamespaceImport(s,r(s.name,c,e.isIdentifier));case 246:return e.updateNamedImports(s,l(s.elements,c,e.isImportSpecifier));case 247:return e.updateImportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 248:return e.updateExportAssignment(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.expression,c,e.isExpression));case 249:return e.updateExportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.exportClause,c,e.isNamedExports),r(s.moduleSpecifier,c,e.isExpression));case 250:return e.updateNamedExports(s,l(s.elements,c,e.isExportSpecifier));case 251:return e.updateExportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 253:return e.updateExternalModuleReference(s,r(s.expression,c,e.isExpression));case 254:return e.updateJsxElement(s,r(s.openingElement,c,e.isJsxOpeningElement),l(s.children,c,e.isJsxChild),r(s.closingElement,c,e.isJsxClosingElement));case 255:return e.updateJsxSelfClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 256:return e.updateJsxOpeningElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 257:return e.updateJsxClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression));case 258:return e.updateJsxFragment(s,r(s.openingFragment,c,e.isJsxOpeningFragment),l(s.children,c,e.isJsxChild),r(s.closingFragment,c,e.isJsxClosingFragment));case 261:return e.updateJsxAttribute(s,r(s.name,c,e.isIdentifier),r(s.initializer,c,e.isStringLiteralOrJsxExpression));case 262:return e.updateJsxAttributes(s,l(s.properties,c,e.isJsxAttributeLike));case 263:return e.updateJsxSpreadAttribute(s,r(s.expression,c,e.isExpression));case 264:return e.updateJsxExpression(s,r(s.expression,c,e.isExpression));case 265:return e.updateCaseClause(s,r(s.expression,c,e.isExpression),l(s.statements,c,e.isStatement));case 266:return e.updateDefaultClause(s,l(s.statements,c,e.isStatement));case 267:return e.updateHeritageClause(s,l(s.types,c,e.isExpressionWithTypeArguments));case 268:return e.updateCatchClause(s,r(s.variableDeclaration,c,e.isVariableDeclaration),r(s.block,c,e.isBlock));case 269:return e.updatePropertyAssignment(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 270:return e.updateShorthandPropertyAssignment(s,r(s.name,c,e.isIdentifier),r(s.objectAssignmentInitializer,c,e.isExpression));case 271:return e.updateSpreadAssignment(s,r(s.expression,c,e.isExpression));case 272:return e.updateEnumMember(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 273:return e.updateSourceFileNode(s,i(s.statements,c,u));case 296:return e.updatePartiallyEmittedExpression(s,r(s.expression,c,e.isExpression));case 297:return e.updateCommaList(s,l(s.elements,c,e.isExpression));default:return s}}}}(o||(o={})),function(e){function t(e,t,r){return e?t(r,e):r}function r(e,t,r){return e?t(r,e):r}function n(n,i,a,o){if(void 0===n)return i;var s=o?r:e.reduceLeft,c=o||a,u=n.kind;if(u>0&&u<=144)return i;if(u>=160&&u<=177)return i;var l=i;switch(n.kind){case 211:case 214:case 205:case 230:case 295:break;case 145:l=t(n.left,a,l),l=t(n.right,a,l);break;case 146:l=t(n.expression,a,l);break;case 148:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 149:l=t(n.expression,a,l);break;case 150:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.questionToken,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 151:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 153:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 154:l=s(n.modifiers,c,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 155:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 156:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 179:case 180:l=s(n.elements,c,l);break;case 181:l=t(n.propertyName,a,l),l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 182:l=s(n.elements,c,l);break;case 183:l=s(n.properties,c,l);break;case 184:l=t(n.expression,a,l),l=t(n.name,a,l);break;case 185:l=t(n.expression,a,l),l=t(n.argumentExpression,a,l);break;case 186:case 187:l=t(n.expression,a,l),l=s(n.typeArguments,c,l),l=s(n.arguments,c,l);break;case 188:l=t(n.tag,a,l),l=t(n.template,a,l);break;case 189:l=t(n.type,a,l),l=t(n.expression,a,l);break;case 191:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 192:l=s(n.modifiers,c,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 190:case 193:case 194:case 195:case 196:case 202:case 203:case 208:l=t(n.expression,a,l);break;case 197:case 198:l=t(n.operand,a,l);break;case 199:l=t(n.left,a,l),l=t(n.right,a,l);break;case 200:l=t(n.condition,a,l),l=t(n.whenTrue,a,l),l=t(n.whenFalse,a,l);break;case 201:l=t(n.head,a,l),l=s(n.templateSpans,c,l);break;case 204:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 206:l=t(n.expression,a,l),l=s(n.typeArguments,c,l);break;case 207:l=t(n.expression,a,l),l=t(n.type,a,l);break;case 210:l=t(n.expression,a,l),l=t(n.literal,a,l);break;case 212:l=s(n.statements,c,l);break;case 213:l=s(n.modifiers,c,l),l=t(n.declarationList,a,l);break;case 215:l=t(n.expression,a,l);break;case 216:l=t(n.expression,a,l),l=t(n.thenStatement,a,l),l=t(n.elseStatement,a,l);break;case 217:l=t(n.statement,a,l),l=t(n.expression,a,l);break;case 218:case 225:l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 219:l=t(n.initializer,a,l),l=t(n.condition,a,l),l=t(n.incrementor,a,l),l=t(n.statement,a,l);break;case 220:case 221:l=t(n.initializer,a,l),l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 224:case 228:l=t(n.expression,a,l);break;case 226:l=t(n.expression,a,l),l=t(n.caseBlock,a,l);break;case 227:l=t(n.label,a,l),l=t(n.statement,a,l);break;case 229:l=t(n.tryBlock,a,l),l=t(n.catchClause,a,l),l=t(n.finallyBlock,a,l);break;case 231:l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 232:l=s(n.declarations,c,l);break;case 233:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 234:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 237:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.members,c,l);break;case 238:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.body,a,l);break;case 239:l=s(n.statements,c,l);break;case 240:l=s(n.clauses,c,l);break;case 242:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.moduleReference,a,l);break;case 243:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.importClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 244:l=t(n.name,a,l),l=t(n.namedBindings,a,l);break;case 245:l=t(n.name,a,l);break;case 246:case 250:l=s(n.elements,c,l);break;case 247:case 251:l=t(n.propertyName,a,l),l=t(n.name,a,l);break;case 248:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.expression,a,l);break;case 249:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.exportClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 253:l=t(n.expression,a,l);break;case 254:l=t(n.openingElement,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingElement,a,l);break;case 258:l=t(n.openingFragment,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingFragment,a,l);break;case 255:case 256:l=t(n.tagName,a,l),l=t(n.attributes,a,l);break;case 262:l=s(n.properties,c,l);break;case 257:l=t(n.tagName,a,l);break;case 261:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 263:case 264:l=t(n.expression,a,l);break;case 265:l=t(n.expression,a,l);case 266:l=s(n.statements,c,l);break;case 267:l=s(n.types,c,l);break;case 268:l=t(n.variableDeclaration,a,l),l=t(n.block,a,l);break;case 269:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 270:l=t(n.name,a,l),l=t(n.objectAssignmentInitializer,a,l);break;case 271:l=t(n.expression,a,l);break;case 272:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 273:l=s(n.statements,c,l);break;case 296:l=t(n.expression,a,l);break;case 297:l=s(n.elements,c,l)}return l}function i(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var r=function(t){if(e.hasModifier(t,2)||e.isTypeNode(t)&&206!==t.kind)return 0;return n(t,0,a,o)}(t);return e.computeTransformFlagsForNode(t,r)}function a(e,t){return e|i(t)}function o(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,a=e;n<a.length;n++){var o=a[n];t|=i(o),r|=-536870913&o.transformFlags}return e.transformFlags=536870912|r,t}(t)}var s;e.reduceEachChild=n,e.mergeLexicalEnvironment=function(t,r){return e.some(r)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,r)),t):e.addRange(t,r):t},e.liftToBlock=function(t){return s.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)},e.aggregateTransformFlags=function(e){return i(e),e},function(t){var r=!1;t.failBadSyntaxKind=function r(n,i){return t.fail((i||"Unexpected node.")+"\r\nNode "+e.formatSyntaxKind(n.kind)+" was unexpected.",r)},t.assertEachNode=t.shouldAssert(1)?function(r,n,i){return t.assert(void 0===n||e.every(r,n),i||"Unexpected node.",function(){return"Node array did not pass test '"+t.getFunctionName(n)+"'."},t.assertEachNode)}:e.noop,t.assertNode=t.shouldAssert(1)?function(r,n,i){return t.assert(void 0===n||n(r),i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" did not pass test '"+t.getFunctionName(n)+"'."},t.assertNode)}:e.noop,t.assertOptionalNode=t.shouldAssert(1)?function(r,n,i){return t.assert(void 0===n||void 0===r||n(r),i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" did not pass test '"+t.getFunctionName(n)+"'."},t.assertOptionalNode)}:e.noop,t.assertOptionalToken=t.shouldAssert(1)?function(r,n,i){return t.assert(void 0===n||void 0===r||r.kind===n,i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" was not a '"+e.formatSyntaxKind(n)+"' token."},t.assertOptionalToken)}:e.noop,t.assertMissingNode=t.shouldAssert(1)?function(r,n){return t.assert(void 0===r,n||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" was unexpected'."},t.assertMissingNode)}:e.noop,t.enableDebugInfo=function(){if(!r){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return e.formatSymbolFlags(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return e.formatTypeFlags(this.flags)}},__debugObjectFlags:{get:function(){return 65536&this.flags?e.formatObjectFlags(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var t=0,n=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];t<n.length;t++){var i=n[t];i.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(i.prototype,{__debugKind:{get:function(){return e.formatSyntaxKind(this.kind)}},__debugModifierFlags:{get:function(){return e.formatModifierFlags(e.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return e.formatTransformFlags(this.transformFlags)}},__debugEmitFlags:{get:function(){return e.formatEmitFlags(e.getEmitFlags(this))}},__debugGetText:{value:function(t){if(e.nodeIsSynthesized(this))return"";var r=e.getParseTreeNode(this),n=r&&e.getSourceFileOfNode(r);return n?e.getSourceTextOfNodeFromSourceFile(n,r,t):""}}})}r=!0}}}(s=e.Debug||(e.Debug={}))}(o||(o={})),function(e){function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function r(t){if(!t.importClause||!t.importClause.namedBindings)return 0;var r=t.importClause.namedBindings;return r&&e.isNamedImports(r)?r.elements.length:0}function n(t){return!!t&&(!!e.isNamedImports(t)&&e.some(t.elements,i))}function i(e){return e.propertyName&&"default"===e.propertyName.escapedText}function a(t){return!!e.getNamespaceDeclarationNode(t)||r(t)>1&&n(t.importClause.namedBindings)}function o(t){return e.isDefaultImport(t)||1===r(t)&&n(t.importClause.namedBindings)}function s(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,a=t.name.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||(n=s(o,r,n))}else if(!e.isGeneratedIdentifier(t.name)){var c=e.idText(t.name);r.get(c)||(r.set(c,!0),n=e.append(n,t.name))}return n}function c(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}e.getOriginalNodeId=t,e.getImportNeedsImportStarHelper=a,e.getImportNeedsImportDefaultHelper=o,e.collectExternalModuleInfo=function(r,n,i){for(var u,l,_=[],d=e.createMultiMap(),p=[],f=e.createMap(),m=!1,g=!1,y=!1,h=0,v=r.statements;h<v.length;h++){var b=v[h];switch(b.kind){case 243:_.push(b),y=y||a(b)||o(b);break;case 242:253===b.moduleReference.kind&&_.push(b);break;case 249:if(b.moduleSpecifier)b.exportClause?_.push(b):(_.push(b),g=!0);else for(var x=0,S=b.exportClause.elements;x<S.length;x++){var k=S[x];if(!f.get(e.idText(k.name))){var D=k.propertyName||k.name;d.add(e.idText(D),k),(E=n.getReferencedImportDeclaration(D)||n.getReferencedValueDeclaration(D))&&c(p,t(E),k.name),f.set(e.idText(k.name),!0),u=e.append(u,k.name)}}break;case 248:b.isExportEquals&&!l&&(l=b);break;case 213:if(e.hasModifier(b,1))for(var T=0,C=b.declarationList.declarations;T<C.length;T++){var E;u=s(E=C[T],f,u)}break;case 233:e.hasModifier(b,1)&&(e.hasModifier(b,512)?m||(c(p,t(b),e.getDeclarationName(b)),m=!0):(D=b.name,f.get(e.idText(D))||(c(p,t(b),D),f.set(e.idText(D),!0),u=e.append(u,D))));break;case 234:e.hasModifier(b,1)&&(e.hasModifier(b,512)?m||(c(p,t(b),e.getDeclarationName(b)),m=!0):(D=b.name)&&!f.get(e.idText(D))&&(c(p,t(b),D),f.set(e.idText(D),!0),u=e.append(u,D)))}}var N=e.getOrCreateExternalHelpersModuleNameIfNeeded(r,i,g,y),A=N&&e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(N)),e.createLiteral(e.externalHelpersModuleNameText));return A&&(e.addEmitFlags(A,67108864),_.unshift(A)),{externalImports:_,exportSpecifiers:d,exportEquals:l,hasExportStarsToExportValues:g,exportedBindings:p,exportedNames:u,externalHelpersImportDeclaration:A}},e.isSimpleCopiableExpression=function(t){return e.isStringLiteralLike(t)||8===t.kind||e.isKeyword(t.kind)||e.isIdentifier(t)},e.helperString=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(r){for(var n="",i=0;i<t.length;i++)n+=e[i],n+=r(t[i]);return n+=e[e.length-1]}}}(o||(o={})),function(e){function t(r,n){var i=e.getTargetOfBindingOrAssignmentElement(r);return e.isBindingOrAssignmentPattern(i)?function(r,n){for(var i=0,a=e.getElementsOfBindingOrAssignmentPattern(r);i<a.length;i++){var o=a[i];if(t(o,n))return!0}return!1}(i,n):!!e.isIdentifier(i)&&i.escapedText===n}function r(t,a,o,s,c){if(!c){var u=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(a),t.visitor,e.isExpression);u?o=o?function(t,r,n,a){return r=i(t,r,!0,a),e.createConditional(e.createTypeCheck(r,"undefined"),n,r)}(t,o,u,s):u:o||(o=e.createVoidZero())}var l=e.getTargetOfBindingOrAssignmentElement(a);e.isObjectBindingOrAssignmentPattern(l)?function(t,a,o,s,c){var u,l,_=e.getElementsOfBindingOrAssignmentPattern(o),p=_.length;if(1!==p){var f=!e.isDeclarationBindingElement(a)||0!==p;s=i(t,s,f,c)}for(var m=0;m<p;m++){var g=_[m];if(e.getRestIndicatorOfBindingOrAssignmentElement(g)){if(m===p-1){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var y=d(t.context,s,_,l,o);r(t,g,y,g)}}else{var h=e.getPropertyNameOfBindingOrAssignmentElement(g);if(!(t.level>=1)||1572864&g.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(g).transformFlags||e.isComputedPropertyName(h)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var y=n(t,s,h);e.isComputedPropertyName(h)&&(l=e.append(l,y.argumentExpression)),r(t,g,y,g)}else u=e.append(u,g)}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,a,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,n,a,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(a),_=l.length;if(t.level<1&&t.downlevelIteration)o=i(t,e.createReadHelper(t.context,o,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[_-1])?void 0:_,s),!1,s);else if(1!==_&&(t.level<1||0===_)||e.every(l,e.isOmittedExpression)){var d=!e.isDeclarationBindingElement(n)||0!==_;o=i(t,o,d,s)}for(var p=0;p<_;p++){var f=l[p];if(t.level>=1)if(1048576&f.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),u=e.append(u,[m,f]),c=e.append(c,t.createArrayBindingOrAssignmentElement(m))}else c=e.append(c,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===_-1){var g=e.createArraySlice(o,p);r(t,f,g,f)}}else{var g=e.createElementAccess(o,p);r(t,f,g,f)}}}c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,a);if(u)for(var y=0,h=u;y<h.length;y++){var v=h[y],b=v[0],f=v[1];r(t,f,b,f)}}(t,a,l,o,s):t.emitBindingOrAssignment(l,o,s,a)}function n(t,r,n){if(e.isComputedPropertyName(n)){var a=i(t,e.visitNode(n.expression,t.visitor),!1,n);return e.createElementAccess(r,a)}if(e.isStringOrNumericLiteral(n))return(a=e.getSynthesizedClone(n)).text=a.text,e.createElementAccess(r,a);var o=e.createIdentifier(e.idText(n));return e.createPropertyAccess(r,o)}function i(t,r,n,i){if(e.isIdentifier(r)&&n)return r;var a=e.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(e.createAssignment(a,r),i))):t.emitBindingOrAssignment(a,r,i,void 0),a}function a(t){return e.Debug.assertEachNode(t,e.isArrayBindingElement),e.createArrayBindingPattern(t)}function o(t){return e.createArrayLiteral(e.map(t,e.convertToArrayAssignmentElement))}function s(t){return e.Debug.assertEachNode(t,e.isBindingElement),e.createObjectBindingPattern(t)}function c(t){return e.createObjectLiteral(e.map(t,e.convertToObjectAssignmentElement))}function u(t){return e.createBindingElement(void 0,void 0,t)}function l(e){return e}!function(e){e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest"}(e.FlattenLevel||(e.FlattenLevel={})),e.flattenDestructuringAssignment=function(n,a,s,u,_,d){var p,f,m=n;if(e.isDestructuringAssignment(n))for(p=n.right;e.isEmptyArrayLiteral(n.left)||e.isEmptyObjectLiteral(n.left);){if(!e.isDestructuringAssignment(p))return p;m=n=p,p=n.right}var g={context:s,level:u,downlevelIteration:s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:y,emitBindingOrAssignment:function(t,r,n,i){e.Debug.assertNode(t,d?e.isIdentifier:e.isExpression);var o=d?d(t,r,n):e.setTextRange(e.createAssignment(e.visitNode(t,a,e.isExpression),r),n);o.original=i,y(o)},createArrayBindingOrAssignmentPattern:o,createObjectBindingOrAssignmentPattern:c,createArrayBindingOrAssignmentElement:l,visitor:a};if(p&&(p=e.visitNode(p,a,e.isExpression),e.isIdentifier(p)&&t(n,p.escapedText)?p=i(g,p,!1,m):_?p=i(g,p,!0,m):e.nodeIsSynthesized(n)&&(m=p)),r(g,n,p,m,e.isDestructuringAssignment(n)),p&&_){if(!e.some(f))return p;f.push(p)}return e.aggregateTransformFlags(e.inlineExpressions(f))||e.createOmittedExpression();function y(t){e.setEmitFlags(t,64),e.aggregateTransformFlags(t),f=e.append(f,t)}},e.flattenDestructuringBinding=function(n,o,c,l,_,d,p){var f,m=[],g=[],y={context:c,level:l,downlevelIteration:c.getCompilerOptions().downlevelIteration,hoistTempVariables:d,emitExpression:function(t){f=e.append(f,t)},emitBindingOrAssignment:P,createArrayBindingOrAssignmentPattern:a,createObjectBindingOrAssignmentPattern:s,createArrayBindingOrAssignmentElement:u,visitor:o};if(e.isVariableDeclaration(n)){var h=e.getInitializerOfBindingOrAssignmentElement(n);h&&e.isIdentifier(h)&&t(n,h.escapedText)&&(h=i(y,h,!1,h),n=e.updateVariableDeclaration(n,n.name,n.type,h))}if(r(y,n,_,n,p),f){var v=e.createTempVariable(void 0);if(d){var b=e.inlineExpressions(f);f=void 0,P(v,b,void 0,void 0)}else{c.hoistVariableDeclaration(v);var x=e.lastOrUndefined(m);x.pendingExpressions=e.append(x.pendingExpressions,e.createAssignment(v,x.value)),e.addRange(x.pendingExpressions,f),x.value=v}}for(var S=0,k=m;S<k.length;S++){var D=k[S],T=D.pendingExpressions,C=D.name,E=(b=D.value,D.location),N=D.original,A=e.createVariableDeclaration(C,void 0,T?e.inlineExpressions(e.append(T,b)):b);A.original=N,e.setTextRange(A,E),e.isIdentifier(C)&&e.setEmitFlags(A,64),e.aggregateTransformFlags(A),g.push(A)}return g;function P(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),f&&(r=e.inlineExpressions(e.append(f,r)),f=void 0),m.push({pendingExpressions:f,name:t,value:r,location:n,original:i})}};var _={name:"typescript: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++) if (e.indexOf(p[i]) < 0)\n t[p[i]] = s[p[i]];\n return t;\n };'};function d(t,r,n,i,a){t.requestEmitHelper(_);for(var o=[],s=0,c=0;c<n.length-1;c++){var u=e.getPropertyNameOfBindingOrAssignmentElement(n[c]);if(u)if(e.isComputedPropertyName(u)){var l=i[s];s++,o.push(e.createConditional(e.createTypeCheck(l,"symbol"),l,e.createAdd(l,e.createLiteral(""))))}else o.push(e.createLiteral(u))}return e.createCall(e.getHelperName("__rest"),void 0,[r,e.setTextRange(e.createArrayLiteral(o),a)])}}(o||(o={})),function(e){var t,r,n=!1;function i(t,r,n,i,o,s){var c=[];return c.push(e.createArrayLiteral(r,!0)),c.push(n),i&&(c.push(i),o&&c.push(o)),t.requestEmitHelper(a),e.setTextRange(e.createCall(e.getHelperName("__decorate"),void 0,c),s)}!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"}(r||(r={})),e.transformTypeScript=function(t){var r,a,s,u,l,_,d,p,f,m=t.startLexicalEnvironment,g=t.resumeLexicalEnvironment,y=t.endLexicalEnvironment,h=t.hoistVariableDeclaration,v=t.getEmitResolver(),b=t.getCompilerOptions(),x=e.getStrictOptionValue(b,"strictNullChecks"),S=e.getEmitScriptTarget(b),k=e.getEmitModuleKind(b),D=t.onEmitNode,T=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){var a=p,o=r;e.isSourceFile(n)&&(r=n),2&_&&function(t){return 238===e.getOriginalNode(t).kind}(n)&&(p|=2),8&_&&function(t){return 237===e.getOriginalNode(t).kind}(n)&&(p|=8),D(t,n,i),p=a,r=o},t.onSubstituteNode=function(t,r){return r=T(t,r),1===t?function(t){switch(t.kind){case 71:return function(t){return function(t){if(1&_&&16777216&v.getNodeCheckFlags(t)){var r=v.getReferencedValueDeclaration(t);if(r){var n=d[r.id];if(n){var i=e.getSynthesizedClone(n);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}}(t)||ze(t)||t}(t);case 184:case 185:return function(e){return Ke(e)}(t)}return t}(r):e.isShorthandPropertyAssignment(r)?function(t){if(2&_){var r=t.name,n=ze(r);if(n){if(t.objectAssignmentInitializer){var i=e.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(r,i),t)}return e.setTextRange(e.createPropertyAssignment(r,n),t)}}return t}(r):r},t.enableSubstitution(184),t.enableSubstitution(185),function(n){if(n.isDeclarationFile)return n;r=n;var i=C(n,R);return e.addEmitHelpers(i,t.readEmitHelpers()),r=void 0,i};function C(t,r){var n=u,i=l;!function(t){switch(t.kind){case 273:case 240:case 239:case 212:u=t,l=void 0;break;case 234:case 233:if(e.hasModifier(t,2))break;t.name?xe(t):e.Debug.assert(234===t.kind||e.hasModifier(t,512))}}(t);var a=r(t);return u!==n&&(l=i),u=n,a}function E(e){return C(e,N)}function N(r){return 1&r.transformFlags?L(r):2&r.transformFlags?e.visitEachChild(r,E,t):r}function A(e){return C(e,P)}function P(r){switch(r.kind){case 243:case 242:case 248:case 249:return function(r){if(e.getParseTreeNode(r)!==r)return 2&r.transformFlags?e.visitEachChild(r,E,t):r;switch(r.kind){case 243:return function(t){if(!t.importClause)return t;var r=e.visitNode(t.importClause,Te,e.isImportClause);return r?e.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}(r);case 242:return Pe(r);case 248:return function(r){return v.isValueAliasDeclaration(r)?e.visitEachChild(r,E,t):void 0}(r);case 249:return function(t){if(!t.exportClause)return b.isolatedModules||v.moduleExportsSomeValue(t.moduleSpecifier)?t:void 0;if(v.isValueAliasDeclaration(t)){var r=e.visitNode(t.exportClause,Ne,e.isNamedExports);return r?e.updateExportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}}(r);default:e.Debug.fail("Unhandled ellided statement")}}(r);default:return N(r)}}function w(e){return C(e,F)}function F(r){if(249!==r.kind&&243!==r.kind&&244!==r.kind&&(242!==r.kind||253!==r.moduleReference.kind))return 1&r.transformFlags||e.hasModifier(r,1)?L(r):2&r.transformFlags?e.visitEachChild(r,E,t):r}function O(e){return C(e,I)}function I(t){switch(t.kind){case 154:return;case 151:case 159:case 155:case 156:case 153:return N(t);case 211:return t;default:return e.Debug.failBadSyntaxKind(t)}}function M(t){if(!(2270&e.modifierToFlag(t.kind)||a&&84===t.kind))return t}function L(n){if(e.hasModifier(n,2)&&e.isStatement(n))return e.createNotEmittedStatement(n);switch(n.kind){case 84:case 79:return a?void 0:n;case 114:case 112:case 113:case 117:case 76:case 124:case 132:case 166:case 167:case 165:case 160:case 147:case 119:case 122:case 137:case 134:case 131:case 105:case 138:case 163:case 162:case 164:case 161:case 168:case 169:case 170:case 172:case 173:case 174:case 175:case 176:case 177:case 159:case 149:case 236:return;case 151:return function(t){var r=fe(t.name,e.some(t.decorators)||!!t.initializer,!0);r&&!de(r)&&(f||(f=[])).push(r)}(n);case 241:return;case 154:return function(r){if(ge(r))return e.updateConstructor(r,e.visitNodes(r.decorators,E,e.isDecorator),e.visitNodes(r.modifiers,E,e.isModifier),e.visitParameterList(r.parameters,E,t),e.visitFunctionBody(r.body,E,t))}(n);case 235:return e.createNotEmittedStatement(n);case 234:return function(n){var a=f;f=void 0;var o=K(n,!0),s=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getClassExtendsHeritageClauseElement(t);return i&&95!==e.skipOuterExpressions(i.expression).kind&&(n|=64),function(t){if(t.decorators&&t.decorators.length>0)return!0;var r=e.getFirstConstructorWithBody(t);return!!r&&e.forEach(r.parameters,B)}(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),we(t)?n|=8:function(t){return Fe(t)&&e.hasModifier(t,512)}(t)?n|=32:Oe(t)&&(n|=16),S<=1&&7&n&&(n|=128),n}(n,o);128&s&&t.startLexicalEnvironment();var c=n.name||(5&s?e.getGeneratedNameForNode(n):void 0),u=2&s?function(t,r,n){var i=e.moveRangePastDecorators(t),a=function(t){if(8388608&v.getNodeCheckFlags(t)){Je();var r=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return d[e.getOriginalNodeId(t)]=r,h(r),r}}(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,E,e.isHeritageClause),c=j(t,0!=(64&n)),u=e.createClassExpression(void 0,r,void 0,s,c);e.setOriginalNode(u,t),e.setTextRange(u,i);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,u):u)],1));return e.setOriginalNode(l,t),e.setTextRange(l,i),e.setCommentRange(l,t),l}(n,c,s):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,M,e.isModifier),a=e.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,E,e.isHeritageClause),j(t,0!=(64&n))),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(n,c,s),l=[u];if(e.some(f)&&l.push(e.createStatement(e.inlineExpressions(f))),f=a,1&s&&W(l,o,128&s?e.getInternalName(n):e.getLocalName(n)),Z(l,n,!1),Z(l,n,!0),function(r,n){var a=function(r){var n=function(t){var r=t.decorators,n=Q(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}}(r),a=$(r,r,n);if(a){var o=d&&d[e.getOriginalNodeId(r)],s=e.getLocalName(r,!1,!0),c=i(t,a,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(r)),u}}(n);a&&r.push(e.setOriginalNode(e.createStatement(a),n))}(l,n),128&s){var _=e.createTokenRange(e.skipTrivia(r.text,n.members.end),18),p=e.getInternalName(n),m=e.createPartiallyEmittedExpression(p);m.end=_.end,e.setEmitFlags(m,1536);var g=e.createReturn(m);g.pos=_.pos,e.setEmitFlags(g,1920),l.push(g),e.addRange(l,t.endLexicalEnvironment());var y=e.createImmediatelyInvokedArrowFunction(l);e.setEmitFlags(y,33554432);var b=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,y)]));e.setOriginalNode(b,n),e.setCommentRange(b,n),e.setSourceMapRange(b,e.moveRangePastDecorators(n)),e.startOnNewLine(b),l=[b]}return 8&s?Me(l,n):(128&s||2&s)&&(32&s?l.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&s&&l.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),l.length>1&&(l.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(u,4194304|e.getEmitFlags(u))),e.singleOrMany(l)}(n);case 204:return function(t){var r=f;f=void 0;var n=K(t,!0),i=e.visitNodes(t.heritageClauses,E,e.isHeritageClause),a=j(t,e.some(i,function(e){return 85===e.token})),o=e.createClassExpression(void 0,t.name,void 0,i,a);if(e.setOriginalNode(o,t),e.setTextRange(o,t),e.some(n)||e.some(f)){var s=[],c=8388608&v.getNodeCheckFlags(t),u=e.createTempVariable(h,!!c);if(c){Je();var l=e.getSynthesizedClone(u);l.autoGenerateFlags&=-17,d[e.getOriginalNodeId(t)]=l}return e.setEmitFlags(o,65536|e.getEmitFlags(o)),s.push(e.startOnNewLine(e.createAssignment(u,o))),e.addRange(s,e.map(f,e.startOnNewLine)),f=r,e.addRange(s,function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=H(o,r);e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),n.push(s)}return n}(n,u)),s.push(e.startOnNewLine(u)),e.inlineExpressions(s)}return f=r,o}(n);case 267:return function(t){if(85===t.token){var r=e.visitNodes(t.types,E,e.isExpressionWithTypeArguments,0,1);return e.setTextRange(e.createHeritageClause(85,r),t)}}(n);case 206:return function(t){return e.updateExpressionWithTypeArguments(t,void 0,e.visitNode(t.expression,E,e.isLeftHandSideExpression))}(n);case 153:return function(r){if(ge(r)){var n=e.updateMethod(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,me(r),void 0,void 0,e.visitParameterList(r.parameters,E,t),void 0,e.visitFunctionBody(r.body,E,t));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(n);case 155:return function(r){if(ye(r)){var n=e.updateGetAccessor(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),me(r),e.visitParameterList(r.parameters,E,t),void 0,e.visitFunctionBody(r.body,E,t)||e.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(n);case 156:return function(r){if(ye(r)){var n=e.updateSetAccessor(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),me(r),e.visitParameterList(r.parameters,E,t),e.visitFunctionBody(r.body,E,t)||e.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(n);case 233:return function(r){if(!ge(r))return e.createNotEmittedStatement(r);var n=e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,e.visitFunctionBody(r.body,E,t)||e.createBlock([]));if(we(r)){var i=[n];return Me(i,r),i}return n}(n);case 191:return function(r){return ge(r)?e.updateFunctionExpression(r,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,e.visitFunctionBody(r.body,E,t)||e.createBlock([])):e.createOmittedExpression()}(n);case 192:return function(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,M,e.isModifier),void 0,e.visitParameterList(r.parameters,E,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,E,t))}(n);case 148:return function(t){if(!e.parameterIsThisKeyword(t)){var r=e.createParameter(void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,E,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,E,e.isExpression));return e.setOriginalNode(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32),r}}(n);case 190:return function(r){var n=e.skipOuterExpressions(r.expression,-3);if(e.isAssertionExpression(n)){var i=e.visitNode(r.expression,E,e.isExpression);return e.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,E,t)}(n);case 189:case 207:return function(t){var r=e.visitNode(t.expression,E,e.isExpression);return e.createPartiallyEmittedExpression(r,t)}(n);case 186:return function(t){return e.updateCall(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,E,e.isExpression))}(n);case 187:return function(t){return e.updateNew(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,E,e.isExpression))}(n);case 188:return function(t){return e.updateTaggedTemplate(t,e.visitNode(t.tag,E,e.isExpression),void 0,e.visitNode(t.template,E,e.isExpression))}(n);case 208:return function(t){var r=e.visitNode(t.expression,E,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(r,t)}(n);case 237:return function(t){if(function(t){return!e.isConst(t)||b.preserveConstEnums||b.isolatedModules}(t)){var n=[],i=2;ke(n,t)&&(k===e.ModuleKind.System&&u===r||(i|=512));var a=Be(t),o=je(t),c=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(s,t,!1,!0):e.getLocalName(t,!1,!0),l=e.createLogicalOr(c,e.createAssignment(c,e.createObjectLiteral()));if(be(t)){var _=e.getLocalName(t,!1,!0);l=e.createAssignment(_,l)}var d=e.createStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,a)],void 0,function(t,r){var n=s;s=r;var i=[];return m(),e.addRange(i,e.map(t.members,ve)),e.addRange(i,y()),s=n,e.createBlock(e.setTextRange(e.createNodeArray(i),t.members),!0)}(t,o)),void 0,[l]));return e.setOriginalNode(d,t),e.setTextRange(d,t),e.setEmitFlags(d,i),n.push(d),n.push(e.createEndOfDeclarationMarker(t)),n}}(n);case 213:return function(r){if(we(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(e.createStatement(e.inlineExpressions(e.map(n,he))),r)}return e.visitEachChild(r,E,t)}(n);case 231:return function(t){return e.updateVariableDeclaration(t,e.visitNode(t.name,E,e.isBindingName),void 0,e.visitNode(t.initializer,E,e.isExpression))}(n);case 238:return De(n);case 242:return Pe(n);default:return e.Debug.failBadSyntaxKind(n)}}function R(r){var n=e.getStrictOptionValue(b,"alwaysStrict")&&!(e.isExternalModule(r)&&k>=e.ModuleKind.ES2015);return e.updateSourceFileNode(r,e.visitLexicalEnvironment(r.statements,A,t,0,n))}function B(e){return void 0!==e.decorators&&e.decorators.length>0}function j(r,n){var i=[],a=function(r,n){var i=e.forEach(r.members,q),a=262144&r.transformFlags,o=e.getFirstConstructorWithBody(r);if(!i&&!a)return e.visitEachChild(o,E,t);var s=function(r){return e.visitParameterList(r&&r.parameters,E,t)||[]}(o),c=function(t,r,n){var i=[],a=0;if(g(),r){a=function(t,r){if(t.body){var n=t.body.statements,i=e.addPrologue(r,n,!1,E);if(i===n.length)return i;var a=n[i];return 215===a.kind&&e.isSuperCall(a.expression)?(r.push(e.visitNode(a,E,e.isStatement)),i+1):i}return 0}(r,i);var o=function(t){return e.filter(t.parameters,J)}(r);e.addRange(i,e.map(o,z))}else n&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));var s=K(t,!1);return W(i,s,e.createThis()),r&&e.addRange(i,e.visitNodes(r.body.statements,E,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,y()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),r?r.body.statements:t.members),!0),r?r.body:void 0)}(r,o,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||r),o))}(r,n);return a&&i.push(a),e.addRange(i,e.visitNodes(r.members,O,e.isClassElement)),e.setTextRange(e.createNodeArray(i),r.members)}function J(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function z(t){e.Debug.assert(e.isIdentifier(t.name));var r=t.name,n=e.getMutableClone(r);e.setEmitFlags(n,1584);var i=e.getMutableClone(r);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setEmitFlags(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),i)),e.moveRangePos(t,-1)),1536))}function K(t,r){return e.filter(t.members,r?U:q)}function U(e){return V(e,!0)}function q(e){return V(e,!1)}function V(t,r){return 151===t.kind&&r===e.hasModifier(t,32)&&void 0!==t.initializer}function W(t,r,n){for(var i=0,a=r;i<a.length;i++){var o=a[i],s=e.createStatement(H(o,n));e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),t.push(s)}}function H(t,r){var n=e.isComputedPropertyName(t.name)&&!de(t.name.expression)?e.updateComputedPropertyName(t.name,e.getGeneratedNameForNode(t.name,!e.hasModifier(t,32))):t.name,i=e.visitNode(t.initializer,E,e.isExpression),a=e.createMemberAccessForPropertyName(r,n,n);return e.createAssignment(a,i)}function G(t,r){return e.filter(t.members,r?function(e){return X(e,!0,t)}:function(e){return X(e,!1,t)})}function X(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.hasModifier(t,32)}function Q(e){var t;if(e)for(var r=e.parameters,n=0;n<r.length;n++){var i=r[n];(t||i.decorators)&&(t||(t=new Array(r.length)),t[n]=i.decorators)}return t}function Y(t,r){switch(r.kind){case 155:case 156:return function(t,r){if(r.body){var n=e.getAllAccessorDeclarations(t.members,r),i=n.firstAccessor,a=n.secondAccessor,o=n.setAccessor,s=i.decorators?i:a&&a.decorators?a:void 0;if(s&&r===s){var c=s.decorators,u=Q(o);if(c||u)return{decorators:c,parameters:u}}}}(t,r);case 153:return function(e){if(e.body){var t=e.decorators,r=Q(e);if(t||r)return{decorators:t,parameters:r}}}(r);case 151:return function(e){var t=e.decorators;if(t)return{decorators:t}}(r);default:return}}function $(r,i,a){if(a){var s=[];return e.addRange(s,e.map(a.decorators,te)),e.addRange(s,e.flatMap(a.parameters,re)),function(r,i,a){n?function(r,n,i){if(b.emitDecoratorMetadata){var a=void 0;ne(r)&&(a||(a=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),oe(r)))),ae(r)&&(a||(a=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),se(r,n)))),ie(r)&&(a||(a=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(36),ce(r)))),a&&i.push(o(t,"design:typeinfo",e.createObjectLiteral(a,!0)))}}(r,i,a):function(e,r,n){b.emitDecoratorMetadata&&(ne(e)&&n.push(o(t,"design:type",oe(e))),ae(e)&&n.push(o(t,"design:paramtypes",se(e,r))),ie(e)&&n.push(o(t,"design:returntype",ce(e))))}(r,i,a)}(r,i,s),s}}function Z(t,r,n){e.addRange(t,e.map(function(e,t){for(var r,n=0,i=G(e,t);n<i.length;n++){var a=i[n],o=ee(e,a);o&&(r?r.push(o):r=[o])}return r}(r,n),Ie))}function ee(r,n){var a=$(n,r,Y(r,n));if(a){var o=function(t,r){return e.hasModifier(r,32)?e.getDeclarationName(t):function(t){return e.createPropertyAccess(e.getDeclarationName(t),"prototype")}(t)}(r,n),s=pe(n,!0),c=S>0?151===n.kind?e.createVoidZero():e.createNull():void 0,u=i(t,a,o,s,c,e.moveRangePastDecorators(n));return e.setEmitFlags(u,1536),u}}function te(t){return e.visitNode(t.expression,E,e.isExpression)}function re(r,n){var i;if(r){i=[];for(var a=0,o=r;a<o.length;a++){var s=o[a],u=c(t,te(s),n,s.expression);e.setEmitFlags(u,1536),i.push(u)}}return i}function ne(e){var t=e.kind;return 153===t||155===t||156===t||151===t}function ie(e){return 153===e.kind}function ae(t){switch(t.kind){case 234:case 204:return void 0!==e.getFirstConstructorWithBody(t);case 153:case 155:case 156:return!0}return!1}function oe(t){switch(t.kind){case 151:case 148:case 155:return ue(t.type);case 156:return ue(e.getSetAccessorTypeAnnotationNode(t));case 234:case 204:case 153:return e.createIdentifier("Function");default:return e.createVoidZero()}}function se(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=function(t,r){if(r&&155===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters}(n,r),o=a.length,s=0;s<o;s++){var c=a[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.escapedText||(c.dotDotDotToken?i.push(ue(e.getRestParameterElementType(c.type))):i.push(oe(c)))}return e.createArrayLiteral(i)}function ce(t){return e.isFunctionLike(t)&&t.type?ue(t.type):e.isAsyncFunction(t)?e.createIdentifier("Promise"):e.createVoidZero()}function ue(t){if(void 0===t)return e.createIdentifier("Object");switch(t.kind){case 105:case 140:case 95:case 131:return e.createVoidZero();case 172:return ue(t.type);case 162:case 163:return e.createIdentifier("Function");case 166:case 167:return e.createIdentifier("Array");case 160:case 122:return e.createIdentifier("Boolean");case 137:return e.createIdentifier("String");case 135:return e.createIdentifier("Object");case 177:switch(t.literal.kind){case 9:return e.createIdentifier("String");case 8:return e.createIdentifier("Number");case 101:case 86:return e.createIdentifier("Boolean");default:return e.Debug.failBadSyntaxKind(t.literal)}case 134:return e.createIdentifier("Number");case 138:return S<2?_e():e.createIdentifier("Symbol");case 161:return function(t){switch(v.getTypeReferenceSerializationKind(t.typeName,u)){case e.TypeReferenceSerializationKind.Unknown:var r=le(t.typeName,!0),n=e.createTempVariable(h);return e.createLogicalOr(e.createLogicalAnd(e.createTypeCheck(e.createAssignment(n,r),"function"),n),e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return le(t.typeName,!1);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.createVoidZero();case e.TypeReferenceSerializationKind.BooleanType:return e.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return S<2?_e():e.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:default:return e.createIdentifier("Object")}}(t);case 169:case 168:return function(t){for(var r,n=0,i=t.types;n<i.length;n++){for(var a=i[n];172===a.kind;)a=a.type;if(131!==a.kind&&(x||95!==a.kind&&140!==a.kind)){var o=ue(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return e.createIdentifier("Object")}else r=o}}return r||e.createVoidZero()}(t);case 164:case 174:case 175:case 176:case 165:case 119:case 173:break;default:return e.Debug.failBadSyntaxKind(t)}return e.createIdentifier("Object")}function le(t,r){switch(t.kind){case 71:var n=e.getMutableClone(t);return n.flags&=-9,n.original=void 0,n.parent=e.getParseTreeNode(u),r?e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(n),e.createLiteral("undefined")),n):n;case 145:return function(t,r){var n;if(71===t.left.kind)n=le(t.left,r);else if(r){var i=e.createTempVariable(h);n=e.createLogicalAnd(e.createAssignment(i,le(t.left,!0)),i)}else n=le(t.left,!1);return e.createPropertyAccess(n,t.right)}(t,r)}}function _e(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function de(t){return!e.isIdentifier(t)&&e.isSimpleCopiableExpression(t)||e.isWellKnownSymbolSyntactically(t)}function pe(t,r){var n=t.name;return e.isComputedPropertyName(n)?r&&!de(n.expression)?e.getGeneratedNameForNode(n):n.expression:e.isIdentifier(n)?e.createLiteral(e.idText(n)):e.getSynthesizedClone(n)}function fe(t,r,n){if(e.isComputedPropertyName(t)){var i=e.visitNode(t.expression,E,e.isExpression),a=e.skipPartiallyEmittedExpressions(i),o=de(a);if(!o&&r){var s=e.getGeneratedNameForNode(t);return h(s),e.createAssignment(s,i)}return n&&(o||e.isIdentifier(a))?void 0:i}}function me(t){var r=t.name,n=fe(r,e.some(t.decorators),!1);return n?(e.some(f)&&(n=e.inlineExpressions(f.concat([n])),f.length=0),e.updateComputedPropertyName(r,n)):r}function ge(t){return!e.nodeIsMissing(t.body)}function ye(t){return!(e.nodeIsMissing(t.body)&&e.hasModifier(t,128))}function he(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,E,t,0,!1,Le):e.setTextRange(e.createAssignment(Re(n),e.visitNode(r.initializer,E,e.isExpression)),r)}function ve(r){var n=pe(r,!1),i=function(r){var n=v.getConstantValue(r);return void 0!==n?e.createLiteral(n):(0==(8&_)&&(_|=8,t.enableSubstitution(71)),r.initializer?e.visitNode(r.initializer,E,e.isExpression):e.createVoidZero())}(r),a=e.createAssignment(e.createElementAccess(s,n),i),o=9===i.kind?a:e.createAssignment(e.createElementAccess(s,a),n);return e.setTextRange(e.createStatement(e.setTextRange(o,r)),r)}function be(t){return we(t)||Fe(t)&&k!==e.ModuleKind.ES2015&&k!==e.ModuleKind.ESNext&&k!==e.ModuleKind.System}function xe(t){l||(l=e.createUnderscoreEscapedMap());var r=Se(t);l.has(r)||l.set(r,t)}function Se(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function ke(t,r){var n=e.createVariableStatement(e.visitNodes(r.modifiers,M,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!0))],273===u.kind?0:1));if(e.setOriginalNode(n,r),xe(r),function(e){if(l){var t=Se(e);return l.get(t)===e}return!0}(r))return 237===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.setEmitFlags(n,4195328),t.push(n),!0;var i=e.createMergeDeclarationMarker(n);return e.setEmitFlags(i,4195840),t.push(i),!1}function De(n){if(!function(t){return e.isInstantiatedModule(t,b.preserveConstEnums||b.isolatedModules)}(n))return e.createNotEmittedStatement(n);e.Debug.assertNode(n.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&_)&&(_|=2,t.enableSubstitution(71),t.enableSubstitution(270),t.enableEmitNotification(238));var i=[],o=2;ke(i,n)&&(k===e.ModuleKind.System&&u===r||(o|=512));var c=Be(n),d=je(n),p=e.hasModifier(n,1)?e.getExternalModuleOrNamespaceExportName(s,n,!1,!0):e.getLocalName(n,!1,!0),f=e.createLogicalOr(p,e.createAssignment(p,e.createObjectLiteral()));if(be(n)){var g=e.getLocalName(n,!1,!0);f=e.createAssignment(g,f)}var h=e.createStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,c)],void 0,function(t,r){var n=s,i=a,o=l;s=r,a=t,l=void 0;var c,u,_=[];m();var d=t.body;if(239===d.kind)C(d,function(t){return e.addRange(_,e.visitNodes(t.statements,w,e.isStatement))}),c=d.statements,u=d;else{var p=De(d);p&&(e.isArray(p)?e.addRange(_,p):_.push(p));var f=function e(t){if(238===t.body.kind){var r=e(t.body);return r||t.body}}(t).body;c=e.moveRangePos(f.statements,-1)}e.addRange(_,y()),s=n,a=i,l=o;var g=e.createBlock(e.setTextRange(e.createNodeArray(_),c),!0);return e.setTextRange(g,u),239!==d.kind&&e.setEmitFlags(g,1536|e.getEmitFlags(g)),g}(n,d)),void 0,[f]));return e.setOriginalNode(h,n),e.setTextRange(h,n),e.setEmitFlags(h,o),i.push(h),i.push(e.createEndOfDeclarationMarker(n)),i}function Te(t){var r=v.isReferencedAliasDeclaration(t)?t.name:void 0,n=e.visitNode(t.namedBindings,Ce,e.isNamedImportBindings);return r||n?e.updateImportClause(t,r,n):void 0}function Ce(t){if(245===t.kind)return v.isReferencedAliasDeclaration(t)?t:void 0;var r=e.visitNodes(t.elements,Ee,e.isImportSpecifier);return e.some(r)?e.updateNamedImports(t,r):void 0}function Ee(e){return v.isReferencedAliasDeclaration(e)?e:void 0}function Ne(t){var r=e.visitNodes(t.elements,Ae,e.isExportSpecifier);return e.some(r)?e.updateNamedExports(t,r):void 0}function Ae(e){return v.isValueAliasDeclaration(e)?e:void 0}function Pe(n){if(e.isExternalModuleImportEqualsDeclaration(n))return v.isReferencedAliasDeclaration(n)?e.visitEachChild(n,E,t):void 0;if(function(t){return v.isReferencedAliasDeclaration(t)||!e.isExternalModule(r)&&v.isTopLevelValueImportEqualsWithEntityName(t)}(n)){var i,a,o,c=e.createExpressionFromEntityName(n.moduleReference);return e.setEmitFlags(c,3584),Oe(n)||!we(n)?e.setOriginalNode(e.setTextRange(e.createVariableStatement(e.visitNodes(n.modifiers,M,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(n.name,void 0,c),n)])),n),n):e.setOriginalNode((i=n.name,a=c,o=n,e.setTextRange(e.createStatement(e.createAssignment(e.getNamespaceMemberName(s,i,!1,!0),a)),o)),n)}}function we(t){return void 0!==a&&e.hasModifier(t,1)}function Fe(t){return void 0===a&&e.hasModifier(t,1)}function Oe(t){return Fe(t)&&!e.hasModifier(t,512)}function Ie(t){return e.createStatement(t)}function Me(t,r){var n=e.createAssignment(e.getExternalModuleOrNamespaceExportName(s,r,!1,!0),e.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var i=e.createStatement(n);e.setSourceMapRange(i,e.createRange(-1,r.end)),t.push(i)}function Le(t,r,n){return e.setTextRange(e.createAssignment(Re(t),r),n)}function Re(t){return e.getNamespaceMemberName(s,t,!1,!0)}function Be(t){var r=e.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function je(t){return e.getGeneratedNameForNode(t)}function Je(){0==(1&_)&&(_|=1,t.enableSubstitution(71),d=[])}function ze(t){if(_&p&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=v.getReferencedExportContainer(t,!1);if(r&&273!==r.kind&&(2&p&&238===r.kind||8&p&&237===r.kind))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r),t),t)}}function Ke(t){var r=function(t){if(!b.isolatedModules)return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?v.getConstantValue(t):void 0}(t);if(void 0!==r){e.setConstantValue(t,r);var n=e.createLiteral(r);if(!b.removeComments){var i=e.isPropertyAccessExpression(t)?e.declarationNameToString(t.name):e.getTextOfNode(t.argumentExpression);e.addSyntheticTrailingComment(n,3," "+i+" ")}return n}return t}};var a={name:"typescript:decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'};function o(t,r,n){return t.requestEmitHelper(s),e.createCall(e.getHelperName("__metadata"),void 0,[e.createLiteral(r),n])}var s={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'};function c(t,r,n,i){return t.requestEmitHelper(u),e.setTextRange(e.createCall(e.getHelperName("__param"),void 0,[e.createLiteral(n),r]),i)}var u={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"}}(o||(o={})),function(e){var t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformES2017=function(t){var r,i,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),u=t.getCompilerOptions(),l=e.getEmitScriptTarget(u),_=0,d=t.onEmitNode,p=t.onSubstituteNode;return t.onEmitNode=function(e,t,n){if(1&r&&function(e){var t=e.kind;return 234===t||154===t||153===t||155===t||156===t}(t)){var i=6144&c.getNodeCheckFlags(t);if(i!==_){var a=_;return _=i,d(e,t,n),void(_=a)}}d(e,t,n)},t.onSubstituteNode=function(t,r){return r=p(t,r),1===t&&_?function(t){switch(t.kind){case 184:return T(t);case 185:return C(t);case 186:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?T(r):C(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(r):r},function(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,f,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n};function f(r){if(0==(16&r.transformFlags))return r;switch(r.kind){case 120:return;case 196:return function(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,f,e.isExpression)),t),t)}(r);case 153:return function(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,f,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,f,t),void 0,2&e.getFunctionFlags(r)?S(r):e.visitFunctionBody(r.body,f,t))}(r);case 233:return function(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,f,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,f,t),void 0,2&e.getFunctionFlags(r)?S(r):e.visitFunctionBody(r.body,f,t))}(r);case 191:return function(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,f,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,f,t),void 0,2&e.getFunctionFlags(r)?S(r):e.visitFunctionBody(r.body,f,t))}(r);case 192:return function(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,f,e.isModifier),void 0,e.visitParameterList(r.parameters,f,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?S(r):e.visitFunctionBody(r.body,f,t))}(r);default:return e.visitEachChild(r,f,t)}}function m(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 213:return function(r){if(y(r.declarationList)){var n=h(r.declarationList,!1);return n?e.createStatement(n):void 0}return e.visitEachChild(r,f,t)}(r);case 219:return function(t){return e.updateFor(t,y(t.initializer)?h(t.initializer,!1):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.condition,f,e.isExpression),e.visitNode(t.incrementor,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(r);case 220:return function(t){return e.updateForIn(t,y(t.initializer)?h(t.initializer,!0):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.expression,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(r);case 221:return function(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,f,e.isToken),y(t.initializer)?h(t.initializer,!0):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.expression,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(r);case 268:return function(r){var n,a=e.createUnderscoreEscapedMap();if(g(r.variableDeclaration,a),a.forEach(function(t,r){i.has(r)&&(n||(n=e.cloneMap(i)),n.delete(r))}),n){var o=i;i=n;var s=e.visitEachChild(r,m,t);return i=o,s}return e.visitEachChild(r,m,t)}(r);case 212:case 226:case 240:case 265:case 266:case 229:case 217:case 218:case 216:case 225:case 227:return e.visitEachChild(r,m,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return f(r)}function g(t,r){var n=t.name;if(e.isIdentifier(n))r.set(n.escapedText,!0);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||g(o,r)}}function y(t){return t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&e.forEach(t.declarations,x)}function h(t,r){!function(t){e.forEach(t.declarations,v)}(t);var n=e.getInitializedVariables(t);return 0===n.length?r?e.visitNode(e.convertToAssignmentElementTarget(t.declarations[0].name),f,e.isExpression):void 0:e.inlineExpressions(e.map(n,b))}function v(t){var r=t.name;if(e.isIdentifier(r))s(r);else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||v(a)}}function b(t){var r=e.setSourceMapRange(e.createAssignment(e.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,f,e.isExpression)}function x(t){var r=t.name;if(e.isIdentifier(r))return i.has(r.escapedText);for(var n=0,a=r.elements;n<a.length;n++){var o=a[n];if(!e.isOmittedExpression(o)&&x(o))return!0}return!1}function S(r){a();var s,u=e.getOriginalNode(r,e.isFunctionLike).type,_=l<2?function(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=c.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}}(u):void 0,d=192===r.kind,p=0!=(8192&c.getNodeCheckFlags(r)),m=i;i=e.createUnderscoreEscapedMap();for(var y=0,h=r.parameters;y<h.length;y++)g(h[y],i);if(d){var v=n(t,p,_,k(r.body)),b=o();e.some(b)?(T=e.convertToFunctionBody(v),s=e.updateBlock(T,e.setTextRange(e.createNodeArray(e.concatenate(T.statements,b)),T.statements))):s=v}else{var x=[],S=e.addPrologue(x,r.body.statements,!1,f);x.push(e.createReturn(n(t,p,_,k(r.body,S)))),e.addRange(x,o());var T=e.createBlock(x,!0);e.setTextRange(T,r.body),l>=2&&(4096&c.getNodeCheckFlags(r)?(D(),e.addEmitHelper(T,e.advancedAsyncSuperHelper)):2048&c.getNodeCheckFlags(r)&&(D(),e.addEmitHelper(T,e.asyncSuperHelper))),s=T}return i=m,s}function k(t,r){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,m,e.isStatement,r)):e.convertToFunctionBody(e.visitNode(t,m,e.isConciseBody))}function D(){0==(1&r)&&(r|=1,t.enableSubstitution(186),t.enableSubstitution(184),t.enableSubstitution(185),t.enableEmitNotification(234),t.enableEmitNotification(153),t.enableEmitNotification(155),t.enableEmitNotification(156),t.enableEmitNotification(154))}function T(t){return 97===t.expression.kind?E(e.createLiteral(e.idText(t.name)),t):t}function C(e){return 97===e.expression.kind?E(e.argumentExpression,e):e}function E(t,r){return 4096&_?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_super"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_super"),void 0,[t]),r)}};var r={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};function n(t,n,i,a){t.requestEmitHelper(r);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),i?e.createExpressionFromEntityName(i):e.createVoidZero(),o])}e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e.helperString(i(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_super")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(i(["\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);"]),"_super")}}(o||(o={})),function(e){var t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformESNext=function(t){var r=t.resumeLexicalEnvironment,c=t.endLexicalEnvironment,l=t.hoistVariableDeclaration,_=t.getEmitResolver(),d=t.getCompilerOptions(),p=e.getEmitScriptTarget(d),f=t.onEmitNode;t.onEmitNode=function(e,t,r){if(1&m&&function(e){var t=e.kind;return 234===t||154===t||153===t||155===t||156===t}(t)){var n=6144&_.getNodeCheckFlags(t);if(n!==h){var i=h;return h=n,f(e,t,r),void(h=i)}}f(e,t,r)};var m,g,y=t.onSubstituteNode;t.onSubstituteNode=function(t,r){return r=y(t,r),1===t&&h?function(t){switch(t.kind){case 184:return A(t);case 185:return P(t);case 186:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?A(r):P(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(r):r};var h=0;return function(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,v,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n};function v(e){return S(e,!1)}function b(e){return S(e,!0)}function x(e){if(120!==e.kind)return e}function S(r,o){if(0==(8&r.transformFlags))return r;switch(r.kind){case 196:return function(r){return 2&g&&1&g?e.setOriginalNode(e.setTextRange(e.createYield(a(t,e.visitNode(r.expression,v,e.isExpression))),r),r):e.visitEachChild(r,v,t)}(r);case 202:return function(r){if(2&g&&1&g&&r.asteriskToken){var n=e.visitNode(r.expression,v,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(a(t,e.updateYield(r,r.asteriskToken,function(t,r,n){return t.requestEmitHelper(i),t.requestEmitHelper(s),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[r]),n)}(t,u(t,n,n),n)))),r),r)}return e.visitEachChild(r,v,t)}(r);case 227:return function(r){if(2&g){var n=e.unwrapInnermostStatementOfLabel(r);return 221===n.kind&&n.awaitModifier?k(n,r):e.restoreEnclosingLabel(e.visitEachChild(n,v,t),r)}return e.visitEachChild(r,v,t)}(r);case 183:return function(r){if(1048576&r.transformFlags){var i=function(t){for(var r,n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(271===o.kind){r&&(n.push(e.createObjectLiteral(r)),r=void 0);var s=o.expression;n.push(e.visitNode(s,v,e.isExpression))}else r=e.append(r,269===o.kind?e.createPropertyAssignment(o.name,e.visitNode(o.initializer,v,e.isExpression)):e.visitNode(o,v,e.isObjectLiteralElementLike))}return r&&n.push(e.createObjectLiteral(r)),n}(r.properties);return i.length&&183!==i[0].kind&&i.unshift(e.createObjectLiteral()),n(t,i)}return e.visitEachChild(r,v,t)}(r);case 199:return function(r,n){return e.isDestructuringAssignment(r)&&1048576&r.left.transformFlags?e.flattenDestructuringAssignment(r,v,t,1,!n):26===r.operatorToken.kind?e.updateBinary(r,e.visitNode(r.left,b,e.isExpression),e.visitNode(r.right,n?b:v,e.isExpression)):e.visitEachChild(r,v,t)}(r,o);case 231:return function(r){return e.isBindingPattern(r.name)&&1048576&r.name.transformFlags?e.flattenDestructuringBinding(r,v,t,1):e.visitEachChild(r,v,t)}(r);case 221:return k(r,void 0);case 219:return function(t){return e.updateFor(t,e.visitNode(t.initializer,b,e.isForInitializer),e.visitNode(t.condition,v,e.isExpression),e.visitNode(t.incrementor,v,e.isExpression),e.visitNode(t.statement,v,e.isStatement))}(r);case 195:return function(r){return e.visitEachChild(r,b,t)}(r);case 154:return function(r){var n=g;g=0;var i=e.updateConstructor(r,void 0,r.modifiers,e.visitParameterList(r.parameters,v,t),C(r));return g=n,i}(r);case 153:return function(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateMethod(r,void 0,1&g?e.visitNodes(r.modifiers,x,e.isModifier):r.modifiers,2&g?void 0:r.asteriskToken,e.visitNode(r.name,v,e.isPropertyName),e.visitNode(void 0,v,e.isToken),void 0,e.visitParameterList(r.parameters,v,t),void 0,2&g&&1&g?T(r):C(r));return g=n,i}(r);case 155:return function(r){var n=g;g=0;var i=e.updateGetAccessor(r,void 0,r.modifiers,e.visitNode(r.name,v,e.isPropertyName),e.visitParameterList(r.parameters,v,t),void 0,C(r));return g=n,i}(r);case 156:return function(r){var n=g;g=0;var i=e.updateSetAccessor(r,void 0,r.modifiers,e.visitNode(r.name,v,e.isPropertyName),e.visitParameterList(r.parameters,v,t),C(r));return g=n,i}(r);case 233:return function(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateFunctionDeclaration(r,void 0,1&g?e.visitNodes(r.modifiers,x,e.isModifier):r.modifiers,2&g?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,v,t),void 0,2&g&&1&g?T(r):C(r));return g=n,i}(r);case 191:return function(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateFunctionExpression(r,1&g?e.visitNodes(r.modifiers,x,e.isModifier):r.modifiers,2&g?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,v,t),void 0,2&g&&1&g?T(r):C(r));return g=n,i}(r);case 192:return function(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateArrowFunction(r,r.modifiers,void 0,e.visitParameterList(r.parameters,v,t),void 0,r.equalsGreaterThanToken,C(r));return g=n,i}(r);case 148:return function(r){return 1048576&r.transformFlags?e.updateParameter(r,void 0,void 0,r.dotDotDotToken,e.getGeneratedNameForNode(r),void 0,void 0,e.visitNode(r.initializer,v,e.isExpression)):e.visitEachChild(r,v,t)}(r);case 215:return function(r){return e.visitEachChild(r,b,t)}(r);case 190:return function(r,n){return e.visitEachChild(r,n?b:v,t)}(r,o);case 268:return function(r){return r.variableDeclaration?e.visitEachChild(r,v,t):e.updateCatchClause(r,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(r.block,v,e.isBlock))}(r);default:return e.visitEachChild(r,v,t)}}function k(r,n){return 1048576&r.initializer.transformFlags&&(r=function(t){var r=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(r)||e.isAssignmentPattern(r)){var n=void 0,i=void 0,a=e.createTempVariable(void 0),o=[e.createForOfBindingStatement(r,a)];return e.isBlock(t.statement)?(e.addRange(o,t.statement.statements),n=t.statement,i=t.statement.statements):t.statement&&(e.append(o,t.statement),n=t.statement,i=t.statement),e.updateForOf(t,t.awaitModifier,e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a),t.initializer)],1),t.initializer),t.expression,e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),i),!0),n))}return t}(r)),r.awaitModifier?function(r,n){var i=e.visitNode(r.expression,v,e.isExpression),a=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0),o=e.isIdentifier(i)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0),s=e.createUniqueName("e"),c=e.getGeneratedNameForNode(s),_=e.createTempVariable(void 0),d=u(t,i,r.expression),p=e.createCall(e.createPropertyAccess(a,"next"),void 0,[]),f=e.createPropertyAccess(o,"done"),m=e.createPropertyAccess(o,"value"),g=e.createFunctionCall(_,a,[]);l(s),l(_);var y=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a,void 0,d),r.expression),e.createVariableDeclaration(o)]),r.expression),2097152),e.createComma(e.createAssignment(o,D(p)),e.createLogicalNot(f)),void 0,function(t,r){var n,i,a=e.createForOfBindingStatement(t.initializer,r),o=[e.visitNode(a,v,e.isStatement)],s=e.visitNode(t.statement,v,e.isStatement);return e.isBlock(s)?(e.addRange(o,s.statements),n=s,i=s.statements):o.push(s),e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),i),!0),n),432)}(r,D(m))),r),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(y,n)]),e.createCatchClause(e.createVariableDeclaration(c),e.setEmitFlags(e.createBlock([e.createStatement(e.createAssignment(s,e.createObjectLiteral([e.createPropertyAssignment("error",c)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(o,e.createLogicalNot(f)),e.createAssignment(_,e.createPropertyAccess(a,"return"))),e.createStatement(D(g))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(s,e.createThrow(e.createPropertyAccess(s,"error"))),1)]),1))]))}(r,n):e.restoreEnclosingLabel(e.visitEachChild(r,v,t),n)}function D(r){return 1&g?e.createYield(void 0,a(t,r)):e.createAwait(r)}function T(n){r();var a=[],s=e.addPrologue(a,n.body.statements,!1,v);E(a,n),a.push(e.createReturn(function(t,r){return t.requestEmitHelper(i),t.requestEmitHelper(o),(r.emitNode||(r.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),r])}(t,e.createFunctionExpression(void 0,e.createToken(39),n.name&&e.getGeneratedNameForNode(n.name),void 0,[],void 0,e.updateBlock(n.body,e.visitLexicalEnvironment(n.body.statements,v,t,s)))))),e.addRange(a,c());var u=e.updateBlock(n.body,a);return p>=2&&(4096&_.getNodeCheckFlags(n)?(N(),e.addEmitHelper(u,e.advancedAsyncSuperHelper)):2048&_.getNodeCheckFlags(n)&&(N(),e.addEmitHelper(u,e.asyncSuperHelper))),u}function C(t){r();var n=0,i=[],a=e.visitNode(t.body,v,e.isConciseBody);e.isBlock(a)&&(n=e.addPrologue(i,a.statements,!1,v)),e.addRange(i,E(void 0,t));var o=c();if(n>0||e.some(i)||e.some(o)){var s=e.convertToFunctionBody(a,!0);return e.addRange(i,s.statements.slice(n)),e.addRange(i,o),e.updateBlock(s,e.setTextRange(e.createNodeArray(i),s.statements))}return a}function E(r,n){for(var i=0,a=n.parameters;i<a.length;i++){var o=a[i];if(1048576&o.transformFlags){var s=e.getGeneratedNameForNode(o),c=e.flattenDestructuringBinding(o,v,t,1,s,!1,!0);if(e.some(c)){var u=e.createVariableStatement(void 0,e.createVariableDeclarationList(c));e.setEmitFlags(u,1048576),r=e.append(r,u)}}}return r}function N(){0==(1&m)&&(m|=1,t.enableSubstitution(186),t.enableSubstitution(184),t.enableSubstitution(185),t.enableEmitNotification(234),t.enableEmitNotification(153),t.enableEmitNotification(155),t.enableEmitNotification(156),t.enableEmitNotification(154))}function A(t){return 97===t.expression.kind?w(e.createLiteral(e.idText(t.name)),t):t}function P(e){return 97===e.expression.kind?w(e.argumentExpression,e):e}function w(t,r){return 4096&h?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),r)}};var r={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };"};function n(t,n){return t.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(r),e.createCall(e.getHelperName("__assign"),void 0,n))}e.createAssignHelper=n;var i={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"};function a(t,r){return t.requestEmitHelper(i),e.createCall(e.getHelperName("__await"),void 0,[r])}var o={name:"typescript:asyncGenerator",scoped:!1,text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'};var s={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };'};var c={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };'};function u(t,r,n){return t.requestEmitHelper(c),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[r]),n)}}(o||(o={})),function(e){e.transformJsx=function(r){var n,i=r.getCompilerOptions();return function(t){if(t.isDeclarationFile)return t;n=t;var i=e.visitEachChild(t,a,r);return e.addEmitHelpers(i,r.readEmitHelpers()),i};function a(t){return 4&t.transformFlags?function(t){switch(t.kind){case 254:return s(t,!1);case 255:return c(t,!1);case 258:return u(t,!1);case 264:return m(t);default:return e.visitEachChild(t,a,r)}}(t):t}function o(t){switch(t.kind){case 10:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a<t.length;a++){var o=t.charCodeAt(a);e.isLineBreak(o)?(-1!==n&&-1!==i&&(r=p(r,t.substr(n,i-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===n&&(n=a))}return-1!==n?p(r,t.substr(n)):r}(e.getTextOfNode(t,!0));return void 0===r?void 0:e.createLiteral(r)}(t);case 264:return m(t);case 254:return s(t,!0);case 255:return c(t,!0);case 258:return u(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function s(e,t){return l(e.openingElement,e.children,t,e)}function c(e,t){return l(e,void 0,t,e)}function u(t,a){return function(t,a,s,c){var u=e.createExpressionForJsxFragment(r.getEmitResolver().getJsxFactoryEntity(n),i.reactNamespace,e.mapDefined(a,o),t,c);return s&&e.startOnNewLine(u),u}(t.openingFragment,t.children,a,t)}function l(t,a,s,c){var u,l=function t(r){if(254===r.kind)return t(r.openingElement);var n=r.tagName;return e.isIdentifier(n)&&e.isIntrinsicJsxName(n.escapedText)?e.createLiteral(e.idText(n)):e.createExpressionFromEntityName(n)}(t),p=t.attributes.properties;if(0===p.length)u=e.createNull();else{var f=e.flatten(e.spanMap(p,e.isJsxSpreadAttribute,function(t,r){return r?e.map(t,_):e.createObjectLiteral(e.map(t,d))}));e.isJsxSpreadAttribute(p[0])&&f.unshift(e.createObjectLiteral()),(u=e.singleOrUndefined(f))||(u=e.createAssignHelper(r,f))}var m=e.createExpressionForJsxElement(r.getEmitResolver().getJsxFactoryEntity(n),i.reactNamespace,l,u,e.mapDefined(a,o),t,c);return s&&e.startOnNewLine(m),m}function _(t){return e.visitNode(t.expression,a,e.isExpression)}function d(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:e.createLiteral(n)}(t),i=function(t){if(void 0===t)return e.createTrue();if(9===t.kind){var r=e.createLiteral((i=t.text,((a=f(i))===i?void 0:a)||t.text));return r.singleQuote=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),e.setTextRange(r,t)}return 264===t.kind?void 0===t.expression?e.createTrue():m(t):e.Debug.failBadSyntaxKind(t);var i,a}(t.initializer);return e.createPropertyAssignment(r,i)}function p(e,t){var r=f(t);return void 0===e?r:e+" "+r}function f(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,r,n,i,a,o,s){if(a)return String.fromCharCode(parseInt(a,10));if(o)return String.fromCharCode(parseInt(o,16));var c=t.get(s);return c?String.fromCharCode(c):e})}function m(t){return e.visitNode(t.expression,a,e.isExpression)}};var t=e.createMapFromTemplate({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})}(o||(o={})),function(e){e.transformES2016=function(t){var r=t.hoistVariableDeclaration;return function(r){return r.isDeclarationFile?r:e.visitEachChild(r,n,t)};function n(i){if(0==(32&i.transformFlags))return i;switch(i.kind){case 199:return function(i){switch(i.operatorToken.kind){case 62:return function(t){var i,a,o=e.visitNode(t.left,n,e.isExpression),s=e.visitNode(t.right,n,e.isExpression);if(e.isElementAccessExpression(o)){var c=e.createTempVariable(r),u=e.createTempVariable(r);i=e.setTextRange(e.createElementAccess(e.setTextRange(e.createAssignment(c,o.expression),o.expression),e.setTextRange(e.createAssignment(u,o.argumentExpression),o.argumentExpression)),o),a=e.setTextRange(e.createElementAccess(c,u),o)}else if(e.isPropertyAccessExpression(o)){var c=e.createTempVariable(r);i=e.setTextRange(e.createPropertyAccess(e.setTextRange(e.createAssignment(c,o.expression),o.expression),o.name),o),a=e.setTextRange(e.createPropertyAccess(c,o.name),o)}else i=o,a=o;return e.setTextRange(e.createAssignment(i,e.createMathPow(a,s,t)),t)}(i);case 40:return function(t){var r=e.visitNode(t.left,n,e.isExpression),i=e.visitNode(t.right,n,e.isExpression);return e.createMathPow(r,i,t)}(i);default:return e.visitEachChild(i,n,t)}}(i);default:return e.visitEachChild(i,n,t)}}}}(o||(o={})),function(e){var t,r,n,i,a;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(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"}(n||(n={})),function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn"}(i||(i={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask"}(a||(a={})),e.transformES2015=function(t){var r,n,i,a,c,u,l=t.startLexicalEnvironment,_=t.resumeLexicalEnvironment,d=t.endLexicalEnvironment,p=t.hoistVariableDeclaration,f=t.getCompilerOptions(),m=t.getEmitResolver(),g=t.onSubstituteNode,y=t.onEmitNode;return t.onEmitNode=function(t,r,n){if(1&u&&e.isFunctionLike(r)){var i=h(16286,8&e.getEmitFlags(r)?81:65);return y(t,r,n),void v(i,0,0)}y(t,r,n)},t.onSubstituteNode=function(t,r){return r=g(t,r),1===t?function(t){switch(t.kind){case 71:return function(t){if(2&u&&!e.isInternalName(t)){var r=m.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!function(t,r){var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 99:return function(t){return 1&u&&16&i?e.setTextRange(e.createFileLevelUniqueName("_this"),t):t}(t)}return t}(r):e.isIdentifier(r)?function(t){if(2&u&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){var t=e.parent;switch(t.kind){case 181:case 234:case 237:case 231:return t.name===e&&m.isDeclarationWithCollidingName(t)}return!1}(r))return e.setTextRange(e.getGeneratedNameForNode(r),t)}return t}(r):r},function(o){if(o.isDeclarationFile)return o;r=o,n=o.text;var s=function(t){var r=h(3968,64),n=[];l();var i=e.addStandardPrologue(n,t.statements,!1);return O(n,t),i=e.addCustomPrologue(n,t.statements,i,S),e.addRange(n,e.visitNodes(t.statements,S,e.isStatement,i)),a&&n.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(a))),e.addRange(n,d()),v(r,0,0),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(n),t.statements))}(o);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,a=void 0,i=0,s};function h(e,t){var r=i;return i=16383&(i&~e|t),r}function v(e,t,r){i=-16384&(i&~t|r)|e}function b(e){return 4096&i&&224===e.kind&&!e.expression}function x(t){return 0!=(128&t.transformFlags)||void 0!==c||4096&i&&(e.isStatement(t)||212===t.kind)||e.isIterationStatement(t,!1)&&ae(t)||0!=(33554432&e.getEmitFlags(t))}function S(n){return x(n)?function(n){switch(n.kind){case 115:return;case 234:return function(t){var r=e.createVariableDeclaration(e.getLocalName(t,!0),void 0,C(t));e.setOriginalNode(r,t);var n=[],i=e.createVariableStatement(void 0,e.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createExportDefault(e.getLocalName(t)):e.createExternalModuleExport(e.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)}(n);case 204:return function(e){return C(e)}(n);case 148:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 233:return function(r){var n=c;c=void 0;var a=h(16286,65),o=e.visitParameterList(r.parameters,S,t),s=64&r.transformFlags?z(r):K(r),u=16384&i?e.getLocalName(r):r.name;return v(a,49152,0),c=n,e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,S,e.isModifier),r.asteriskToken,u,void 0,o,void 0,s)}(n);case 192:return function(r){16384&r.transformFlags&&De();var n=c;c=void 0;var i=h(16256,66),a=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,S,t),void 0,z(r));return e.setTextRange(a,r),e.setOriginalNode(a,r),e.setEmitFlags(a,8),v(i,0,0),c=n,a}(n);case 191:return function(r){var n=262144&e.getEmitFlags(r)?h(16278,69):h(16286,65),a=c;c=void 0;var o=e.visitParameterList(r.parameters,S,t),s=64&r.transformFlags?z(r):K(r),u=16384&i?e.getLocalName(r):r.name;return v(n,49152,0),c=a,e.updateFunctionExpression(r,void 0,r.asteriskToken,u,void 0,o,void 0,s)}(n);case 231:return H(n);case 71:return function(t){return c?e.isGeneratedIdentifier(t)?t:"arguments"===t.escapedText&&m.isArgumentsLocalBinding(t)?c.argumentsName||(c.argumentsName=e.createUniqueName("arguments")):t:t}(n);case 232:return function(r){if(64&r.transformFlags){3&r.flags&&ke();var n=e.flatMap(r.declarations,1&r.flags?W:H),i=e.createVariableDeclarationList(n);if(e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),8388608&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.lastOrUndefined(r.declarations).name))){var a=e.firstOrUndefined(n);if(a){var o=e.lastOrUndefined(n);e.setSourceMapRange(i,e.createRange(a.pos,o.end))}}return i}return e.visitEachChild(r,S,t)}(n);case 226:return function(r){if(void 0!==c){var n=c.allowedNonLabeledJumps;c.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,S,t);return c.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,S,t)}(n);case 240:return function(r){var n=h(4032,0),i=e.visitEachChild(r,S,t);return v(n,0,0),i}(n);case 212:return U(n,!1);case 223:case 222:return function(r){if(c){var n=223===r.kind?2:4,i=r.label&&c.labels&&c.labels.get(e.idText(r.label))||!r.label&&c.allowedNonLabeledJumps&n;if(!i){var a=void 0;r.label?223===r.kind?(a="break-"+r.label.escapedText,ue(c,!0,e.idText(r.label),a)):(a="continue-"+r.label.escapedText,ue(c,!1,e.idText(r.label),a)):223===r.kind?(c.nonLocalJumps|=2,a="break"):(c.nonLocalJumps|=4,a="continue");var o=e.createLiteral(a);if(c.loopOutParameters.length){for(var s=c.loopOutParameters,u=void 0,l=0;l<s.length;l++){var _=se(s[l],1);u=0===l?_:e.createBinary(u,26,_)}o=e.createBinary(u,26,o)}return e.createReturn(o)}}return e.visitEachChild(r,S,t)}(n);case 227:return function(t){c&&!c.labels&&(c.labels=e.createMap());var r=e.unwrapInnermostStatementOfLabel(t,c&&G);return e.isIterationStatement(r,!1)?function(e,t){switch(e.kind){case 217:case 218:return Y(e,t);case 219:return $(e,t);case 220:return Z(e,t);case 221:return ee(e,t)}}(r,t):e.restoreEnclosingLabel(e.visitNode(r,S,e.isStatement),t,c&&X)}(n);case 217:case 218:return Y(n,void 0);case 219:return $(n,void 0);case 220:return Z(n,void 0);case 221:return ee(n,void 0);case 215:return function(r){switch(r.expression.kind){case 190:return e.updateStatement(r,q(r.expression,!1));case 199:return e.updateStatement(r,V(r.expression,!1))}return e.visitEachChild(r,S,t)}(n);case 183:return function(r){for(var n=r.properties,a=n.length,o=a,s=a,c=0;c<a;c++){var u=n[c];if(16777216&u.transformFlags&&4&i&&c<s&&(s=c),146===u.name.kind){o=c;break}}if(o!==a){s<o&&(o=s);var l=e.createTempVariable(p),_=[],d=e.createAssignment(l,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(n,S,e.isObjectLiteralElementLike,0,o),r.multiLine),65536));return r.multiLine&&e.startOnNewLine(d),_.push(d),function(t,r,n,i){for(var a=r.properties,o=a.length,s=i;s<o;s++){var c=a[s];switch(c.kind){case 155:case 156:var u=e.getAllAccessorDeclarations(r.properties,c);c===u.firstAccessor&&t.push(j(n,u,r,r.multiLine));break;case 153:t.push(fe(c,n,r,r.multiLine));break;case 269:t.push(de(c,n,r.multiLine));break;case 270:t.push(pe(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}}(_,r,l,o),_.push(r.multiLine?e.startOnNewLine(e.getMutableClone(l)):l),e.inlineExpressions(_)}return e.visitEachChild(r,S,t)}(n);case 268:return function(r){var n,i,a,o,s=h(4032,0);if(e.Debug.assert(!!r.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(r.variableDeclaration.name)){var c=e.createTempVariable(void 0),u=e.createVariableDeclaration(c);e.setTextRange(u,r.variableDeclaration);var l=e.flattenDestructuringBinding(r.variableDeclaration,S,t,0,c),_=e.createVariableDeclarationList(l);e.setTextRange(_,r.variableDeclaration);var d=e.createVariableStatement(void 0,_);n=e.updateCatchClause(r,u,(i=r.block,a=d,o=e.visitNodes(i.statements,S,e.isStatement),e.updateBlock(i,[a].concat(o))))}else n=e.visitEachChild(r,S,t);return v(s,0,0),n}(n);case 270:return function(t){return e.setTextRange(e.createPropertyAssignment(t.name,e.getSynthesizedClone(t.name)),t)}(n);case 146:return function(r){var n=h(0,8192),a=e.visitEachChild(r,S,t);return v(n,49152,49152&i?32768:0),a}(n);case 182:return function(r){return 64&r.transformFlags?ge(r.elements,!0,r.multiLine,r.elements.hasTrailingComma):e.visitEachChild(r,S,t)}(n);case 186:return function(t){return 33554432&e.getEmitFlags(t)?function(t){var r=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock),n=e.visitNodes(r.statements,S,e.isStatement,0,1),i=e.visitNodes(r.statements,S,e.isStatement,1,r.statements.length-1),a=e.cast(e.firstOrUndefined(n),e.isVariableStatement).declarationList.declarations[0],o=e.skipOuterExpressions(a.initializer),s=e.tryCast(o,e.isAssignmentExpression),c=e.cast(s?e.skipOuterExpressions(s.right):o,e.isCallExpression),u=e.cast(e.skipOuterExpressions(c.expression),e.isFunctionExpression),l=u.body.statements,_=0,d=-1,p=[];if(s){var f=e.tryCast(l[_],e.isExpressionStatement);f&&(p.push(f),_++),p.push(l[_]),_++,p.push(e.createStatement(e.createAssignment(s.left,e.cast(a.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(l,d));)d--;return e.addRange(p,l,_,d),d<-1&&e.addRange(p,l,d+1),e.addRange(p,i),e.addRange(p,n,1),e.recreateOuterExpressions(t.expression,e.recreateOuterExpressions(a.initializer,e.recreateOuterExpressions(s&&s.right,e.updateCall(c,e.recreateOuterExpressions(c.expression,e.updateFunctionExpression(u,void 0,void 0,void 0,void 0,u.parameters,void 0,e.updateBlock(u.body,p))),void 0,c.arguments))))}(t):64&t.transformFlags?me(t,!0):e.updateCall(t,e.visitNode(t.expression,D,e.isExpression),void 0,e.visitNodes(t.arguments,S,e.isExpression))}(n);case 187:return function(r){if(524288&r.transformFlags){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),p),i=n.target,a=n.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(i,S,e.isExpression),a,ge(e.createNodeArray([e.createVoidZero()].concat(r.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(r,S,t)}(n);case 190:return q(n,!0);case 199:return V(n,!0);case 13:case 14:case 15:case 16:return function(t){return e.setTextRange(e.createLiteral(t.text),t)}(n);case 9:return function(t){return t.hasExtendedUnicodeEscape?e.setTextRange(e.createLiteral(t.text),t):t}(n);case 8:return function(t){return 384&t.numericLiteralFlags?e.setTextRange(e.createNumericLiteral(t.text),t):t}(n);case 188:return function(n){var i=e.visitNode(n.tag,S,e.isExpression),o=[void 0],c=[],u=[],l=n.template;if(e.isNoSubstitutionTemplateLiteral(l))c.push(e.createLiteral(l.text)),u.push(xe(l));else{c.push(e.createLiteral(l.head.text)),u.push(xe(l.head));for(var _=0,d=l.templateSpans;_<d.length;_++){var p=d[_];c.push(e.createLiteral(p.literal.text)),u.push(xe(p.literal)),o.push(e.visitNode(p.expression,S,e.isExpression))}}var f,m=function(t,r,n){return t.requestEmitHelper(s),e.createCall(e.getHelperName("__makeTemplateObject"),void 0,[r,n])}(t,e.createArrayLiteral(c),e.createArrayLiteral(u));if(e.isExternalModule(r)){var g=e.createUniqueName("templateObject");f=g,a=e.append(a,e.createVariableDeclaration(f)),o[0]=e.createLogicalOr(g,e.createAssignment(g,m))}else o[0]=m;return e.createCall(i,void 0,o)}(n);case 201:return function(t){var r=[];(function(t,r){(function(t){return e.Debug.assert(0!==t.templateSpans.length),0!==t.head.text.length||0===t.templateSpans[0].literal.text.length})(r)&&t.push(e.createLiteral(r.head.text))})(r,t),function(t,r){for(var n=0,i=r.templateSpans;n<i.length;n++){var a=i[n];t.push(e.visitNode(a.expression,S,e.isExpression)),0!==a.literal.text.length&&t.push(e.createLiteral(a.literal.text))}}(r,t);var n=e.reduceLeft(r,e.createAdd);return e.nodeIsSynthesized(n)&&(n.pos=t.pos,n.end=t.end),n}(n);case 202:return function(r){return e.visitEachChild(r,S,t)}(n);case 203:return function(t){return e.visitNode(t.expression,S,e.isExpression)}(n);case 97:return Se(!1);case 99:return function(t){return c?2&i?(c.containsLexicalThis=!0,t):c.thisName||(c.thisName=e.createUniqueName("this")):t}(n);case 209:return function(t){return 94===t.keywordToken&&"target"===t.name.escapedText?(i|=8192&i?32768:16384,e.createFileLevelUniqueName("_newTarget")):t}(n);case 153:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=J(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(e.createPropertyAssignment(t.name,r),t)}(n);case 155:case 156:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=c;c=void 0;var i,a=h(16286,65),o=e.visitParameterList(r.parameters,S,t),s=32896&r.transformFlags?z(r):K(r);return i=155===r.kind?e.updateGetAccessor(r,r.decorators,r.modifiers,r.name,o,r.type,s):e.updateSetAccessor(r,r.decorators,r.modifiers,r.name,o,s),v(a,49152,0),c=n,i}(n);case 213:return function(r){var n,i=h(0,e.hasModifier(r,1)?32:0);if(c&&0==(3&r.declarationList.flags)){for(var a=void 0,o=0,s=r.declarationList.declarations;o<s.length;o++){var u=s[o];if(oe(c,u),u.initializer){var l=void 0;e.isBindingPattern(u.name)?l=e.flattenDestructuringAssignment(u,S,t,0):(l=e.createBinary(u.name,58,e.visitNode(u.initializer,S,e.isExpression)),e.setTextRange(l,u)),a=e.append(a,l)}}n=a?e.setTextRange(e.createStatement(e.inlineExpressions(a)),r):void 0}else n=e.visitEachChild(r,S,t);return v(i,0,0),n}(n);case 224:return function(r){return c?(c.nonLocalJumps|=8,b(r)&&(r=T(r)),e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),r.expression?e.visitNode(r.expression,S,e.isExpression):e.createVoidZero())]))):b(r)?T(r):e.visitEachChild(r,S,t)}(n);default:return e.visitEachChild(n,S,t)}}(n):n}function k(e){return x(e)?U(e,!0):e}function D(e){return 97===e.kind?Se(!0):S(e)}function T(t){return e.setOriginalNode(e.createReturn(e.createFileLevelUniqueName("_this")),t)}function C(r){r.name&&ke();var a=e.getClassExtendsHeritageClauseElement(r),s=e.createFunctionExpression(void 0,void 0,void 0,void 0,a?[e.createParameter(void 0,void 0,void 0,e.createFileLevelUniqueName("_super"))]:[],void 0,function(r,a){var s=[];l(),function(r,n,i){i&&r.push(e.setTextRange(e.createStatement(function(t,r){return t.requestEmitHelper(o),e.createCall(e.getHelperName("__extends"),void 0,[r,e.createFileLevelUniqueName("_super")])}(t,e.getInternalName(n))),i))}(s,r,a),function(r,n,a){var o=c;c=void 0;var s=h(16278,73),u=e.getFirstConstructorWithBody(n),l=function(t,r){if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||215!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||186!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||97!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||203!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(u,void 0!==a),p=e.createFunctionDeclaration(void 0,void 0,void 0,e.getInternalName(n),void 0,function(r,n){return e.visitParameterList(r&&!n&&r.parameters,S,t)||[]}(u,l),void 0,function(t,r,n,a){var o=[];_();var s=-1;a?s=0:t&&(s=e.addStandardPrologue(o,t.body.statements,!1)),t&&(A(o,t),F(o,t,a),a||(s=e.addCustomPrologue(o,t.body.statements,s,S)),e.Debug.assert(s>=0,"statementOffset not initialized correctly!"));var c=n&&95!==e.skipOuterExpressions(n.expression).kind,u=function(t,r,n,i,a){if(!n)return r&&O(t,r),0;if(!r)return t.push(e.createReturn(N())),2;if(i)return I(t,r,N()),De(),1;var o,s,c,u=r.body.statements;if(a<u.length&&215===(o=u[a]).kind&&e.isSuperCall(o.expression)&&(c=o.expression,s=me(c,!1)),s&&a===u.length-1&&!(49152&r.transformFlags)){var l=e.createReturn(s);return 199===s.kind&&186===s.left.kind||e.Debug.fail("Assumed generated super call would have form 'super.call(...) || this'."),e.setCommentRange(l,e.getCommentRange(e.setEmitFlags(s.left,1536))),t.push(l),2}return I(t,r,s||E(),o),s?1:0}(o,t,c,a,s);1!==u&&2!==u||s++,t&&(1===u&&(i|=4096),e.addRange(o,e.visitNodes(t.body.statements,S,e.isStatement,s))),!c||2===u||t&&function t(r){if(224===r.kind)return!0;if(216===r.kind){var n=r;if(n.elseStatement)return t(n.thenStatement)&&t(n.elseStatement)}else if(212===r.kind){var i=e.lastOrUndefined(r.statements);if(i&&t(i))return!0}return!1}(t.body)||o.push(e.createReturn(e.createFileLevelUniqueName("_this"))),e.addRange(o,d()),t&&M(o,t,!1);var l=e.createBlock(e.setTextRange(e.createNodeArray(o),t?t.body.statements:r.members),!0);return e.setTextRange(l,t?t.body:r),t||e.setEmitFlags(l,1536),l}(u,n,a,l));e.setTextRange(p,u||n),a&&e.setEmitFlags(p,8),r.push(p),v(s,49152,0),c=o}(s,r,a),function(t,r){for(var n=0,i=r.members;n<i.length;n++){var a=i[n];switch(a.kind){case 211:t.push(L(a));break;case 153:t.push(R(Te(r,a),a,r));break;case 155:case 156:var o=e.getAllAccessorDeclarations(r.members,a);a===o.firstAccessor&&t.push(B(Te(r,a),o,r));break;case 154:break;default:e.Debug.failBadSyntaxKind(r)}}}(s,r);var u=e.createTokenRange(e.skipTrivia(n,r.members.end),18),p=e.getInternalName(r),f=e.createPartiallyEmittedExpression(p);f.end=u.end,e.setEmitFlags(f,1536);var m=e.createReturn(f);m.pos=u.pos,e.setEmitFlags(m,1920),s.push(m),e.addRange(s,d());var g=e.createBlock(e.setTextRange(e.createNodeArray(s),r.members),!0);return e.setEmitFlags(g,1536),g}(r,a));e.setEmitFlags(s,65536&e.getEmitFlags(r)|524288);var u=e.createPartiallyEmittedExpression(s);u.end=r.end,e.setEmitFlags(u,1536);var p=e.createPartiallyEmittedExpression(u);p.end=e.skipTrivia(n,r.pos),e.setEmitFlags(p,1536);var f=e.createParen(e.createCall(p,void 0,a?[e.visitNode(a.expression,S,e.isExpression)]:[]));return e.addSyntheticLeadingComment(f,3,"* @class "),f}function E(){return e.setEmitFlags(e.createThis(),4)}function N(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createFileLevelUniqueName("_super"),e.createNull()),e.createFunctionApply(e.createFileLevelUniqueName("_super"),E(),e.createIdentifier("arguments"))),E())}function A(t,r){if(function(e){return 0!=(131072&e.transformFlags)}(r))for(var n=0,i=r.parameters;n<i.length;n++){var a=i[n],o=a.name,s=a.initializer;a.dotDotDotToken||(e.isBindingPattern(o)?P(t,a,o,s):s&&w(t,a,o,s))}}function P(r,n,i,a){var o=e.getGeneratedNameForNode(n);i.elements.length>0?r.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,S,t,0,o))),1048576)):a&&r.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,S,e.isExpression))),1048576))}function w(t,r,n,i){i=e.visitNode(i,S,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),t.push(a)}function F(t,r,n){var i=e.lastOrUndefined(r.parameters);if(function(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}(i,n)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=r.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u)}}function O(t,r){32768&r.transformFlags&&192!==r.kind&&I(t,r,e.createThis())}function I(t,r,n,i){De();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,n)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,r),t.push(a)}function M(t,r,n){if(16384&i){var a=void 0;switch(r.kind){case 192:return t;case 153:case 155:case 156:a=e.createVoidZero();break;case 154:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 233:case 191:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,a)]));if(n)return[o].concat(t);t.unshift(o)}return t}function L(t){return e.setTextRange(e.createEmptyStatement(),t)}function R(t,r,n){var a=h(0,0),o=e.getCommentRange(r),s=e.getSourceMapRange(r),c=e.createMemberAccessForPropertyName(t,e.visitNode(r.name,S,e.isPropertyName),r.name),u=J(r,r,void 0,n);e.setEmitFlags(u,1536),e.setSourceMapRange(u,s);var l=e.setTextRange(e.createStatement(e.createAssignment(c,u)),r);return e.setOriginalNode(l,r),e.setCommentRange(l,o),e.setEmitFlags(l,48),v(a,49152,49152&i?16384:0),l}function B(t,r,n){var i=e.createStatement(j(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function j(t,r,n,a){var o=r.firstAccessor,s=r.getAccessor,c=r.setAccessor,u=h(0,0),l=e.getMutableClone(t);e.setEmitFlags(l,1568),e.setSourceMapRange(l,o.name);var _=e.createExpressionForPropertyName(e.visitNode(o.name,S,e.isPropertyName));e.setEmitFlags(_,1552),e.setSourceMapRange(_,o.name);var d=[];if(s){var p=J(s,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(s)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(s)),d.push(f)}if(c){var m=J(c,void 0,void 0,n);e.setSourceMapRange(m,e.getSourceMapRange(c)),e.setEmitFlags(m,512);var g=e.createPropertyAssignment("set",m);e.setCommentRange(g,e.getCommentRange(c)),d.push(g)}d.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var y=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[l,_,e.createObjectLiteral(d,!0)]);return a&&e.startOnNewLine(y),v(u,49152,49152&i?16384:0),y}function J(r,n,a,o){var s=c;c=void 0;var u=o&&e.isClassLike(o)&&!e.hasModifier(r,32)?h(16286,73):h(16286,65),l=e.visitParameterList(r.parameters,S,t),_=z(r);return 16384&i&&!a&&(233===r.kind||191===r.kind)&&(a=e.getGeneratedNameForNode(r)),v(u,49152,0),c=s,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,r.asteriskToken,a,void 0,l,void 0,_),n),r)}function z(n){var i,a,o,s=!1,c=!1,u=[],l=n.body;if(_(),e.isBlock(l)&&(o=e.addStandardPrologue(u,l.statements,!1)),O(u,n),A(u,n),F(u,n,!1),!s&&u.length>0&&(s=!0),e.isBlock(l))o=e.addCustomPrologue(u,l.statements,o,S),i=l.statements,e.addRange(u,e.visitNodes(l.statements,S,e.isStatement,o)),!s&&l.multiLine&&(s=!0);else{e.Debug.assert(192===n.kind),i=e.moveRangeEnd(l,-1);var d=n.equalsGreaterThanToken;e.nodeIsSynthesized(d)||e.nodeIsSynthesized(l)||(e.rangeEndIsOnSameLineAsRangeStart(d,l,r)?c=!0:s=!0);var p=e.visitNode(l,S,e.isExpression),f=e.createReturn(p);e.setTextRange(f,l),e.setEmitFlags(f,1440),u.push(f),a=l}var m=t.endLexicalEnvironment();e.addRange(u,m),M(u,n,!1),!s&&m&&m.length&&(s=!0);var g=e.createBlock(e.setTextRange(e.createNodeArray(u),i),s);return e.setTextRange(g,n.body),!s&&c&&e.setEmitFlags(g,1),a&&e.setTokenSourceMapRange(g,18,a),e.setOriginalNode(g,n.body),g}function K(r){var n=e.visitFunctionBody(r.body,k,t);return e.updateBlock(n,e.setTextRange(e.createNodeArray(M(n.statements,r,!0)),n.statements))}function U(r,n){if(n)return e.visitEachChild(r,S,t);var a=256&i?h(4032,512):h(3904,128),o=e.visitEachChild(r,S,t);return v(a,0,0),o}function q(r,n){if(!n)switch(r.expression.kind){case 190:return e.updateParen(r,q(r.expression,!1));case 199:return e.updateParen(r,V(r.expression,!1))}return e.visitEachChild(r,S,t)}function V(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,S,t,0,n):e.visitEachChild(r,S,t)}function W(r){var n=r.name;if(e.isBindingPattern(n))return H(r);if(!r.initializer&&function(e){var t=m.getNodeCheckFlags(e),r=131072&t,n=262144&t;return!(0!=(64&i)||r&&n&&0!=(512&i))&&0==(2048&i)&&(!m.isDeclarationWithCollidingName(e)||n&&!r&&0==(3072&i))}(r)){var a=e.getMutableClone(r);return a.initializer=e.createVoidZero(),a}return e.visitEachChild(r,S,t)}function H(r){var n,i=h(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,S,t,0,void 0,0!=(32&i)):e.visitEachChild(r,S,t),v(i,0,0),n}function G(t){c.labels.set(e.idText(t.label),!0)}function X(t){c.labels.set(e.idText(t.label),!1)}function Q(r,n,a,o,s){var u=h(r,n),_=function(r,n,a){if(!ae(r)){var o=void 0;c&&(o=c.allowedNonLabeledJumps,c.allowedNonLabeledJumps=6);var s=a?a(r,n,void 0):e.restoreEnclosingLabel(e.visitEachChild(r,S,t),n,c&&X);return c&&(c.allowedNonLabeledJumps=o),s}var u,_=e.createUniqueName("_loop");switch(r.kind){case 219:case 220:case 221:var p=r.initializer;p&&232===p.kind&&(u=p)}var f=[],m=[];if(u&&3&e.getCombinedNodeFlags(u))for(var g=0,y=u.declarations;g<y.length;g++){var h=y[g];_e(h,f,m)}var v=c;c={loopOutParameters:m},v&&(v.argumentsName&&(c.argumentsName=v.argumentsName),v.thisName&&(c.thisName=v.thisName),v.hoistedLocalVariables&&(c.hoistedLocalVariables=v.hoistedLocalVariables)),l();var b=e.visitNode(r.statement,S,e.isStatement,e.liftToBlock),x=d(),k=c;if(c=v,m.length||x){var D=e.isBlock(b)?b.statements.slice():[b];m.length&&ce(m,1,D),e.addRange(D,x),b=e.createBlock(D,!0)}e.isBlock(b)?b.multiLine=!0:b=e.createBlock([b],!0);var T=0!=(16777216&r.statement.transformFlags),C=T&&0!=(4&i),E=0;k.containsLexicalThis&&(E|=8),C&&(E|=262144);var N,A=[e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(_,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,T?e.createToken(39):void 0,void 0,void 0,f,void 0,b),E))]),2097152))];if(k.argumentsName&&(v?v.argumentsName=k.argumentsName:(N||(N=[])).push(e.createVariableDeclaration(k.argumentsName,void 0,e.createIdentifier("arguments")))),k.thisName&&(v?v.thisName=k.thisName:(N||(N=[])).push(e.createVariableDeclaration(k.thisName,void 0,e.createIdentifier("this")))),k.hoistedLocalVariables)if(v)v.hoistedLocalVariables=k.hoistedLocalVariables;else{N||(N=[]);for(var P=0,w=k.hoistedLocalVariables;P<w.length;P++){var F=w[P];N.push(e.createVariableDeclaration(F))}}if(m.length){N||(N=[]);for(var O=0,I=m;O<I.length;O++){var M=I[O];N.push(e.createVariableDeclaration(M.outParamName))}}N&&A.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(N)));var L,R=function(t,r,n,i){var a=c,o=[],s=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),u=e.createCall(t,void 0,e.map(r,function(e){return e.name})),l=i?e.createYield(e.createToken(39),e.setEmitFlags(u,8388608)):u;if(s)o.push(e.createStatement(l)),ce(n.loopOutParameters,0,o);else{var _=e.createUniqueName("state"),d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(_,void 0,l)]));if(o.push(d),ce(n.loopOutParameters,0,o),8&n.nonLocalJumps){var p=void 0;a?(a.nonLocalJumps|=8,p=e.createReturn(_)):p=e.createReturn(e.createPropertyAccess(_,"value")),o.push(e.createIf(e.createBinary(e.createTypeOf(_),34,e.createLiteral("object")),p))}if(2&n.nonLocalJumps&&o.push(e.createIf(e.createBinary(_,34,e.createLiteral("break")),e.createBreak())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){var f=[];le(n.labeledNonLocalBreaks,!0,_,a,f),le(n.labeledNonLocalContinues,!1,_,a,f),o.push(e.createSwitch(_,e.createCaseBlock(f)))}}return o}(_,f,k,T);if(a)L=a(r,n,R);else{var B=e.getMutableClone(r);B.statement=void 0,(B=e.visitEachChild(B,S,t)).statement=e.createBlock(R,!0),B.transformFlags=0,e.aggregateTransformFlags(B),L=e.restoreEnclosingLabel(B,n,c&&X)}return A.push(L),A}(a,o,s);return v(u,0,0),_}function Y(e,t){return Q(0,256,e,t)}function $(e,t){return Q(3008,1280,e,t)}function Z(e,t){return Q(1984,2304,e,t)}function ee(e,t){return Q(1984,2304,e,t,f.downlevelIteration?ie:ne)}function te(r,n,i){var a=[];if(e.isVariableDeclarationList(r.initializer)){3&r.initializer.flags&&ke();var o=e.firstOrUndefined(r.initializer.declarations);if(o&&e.isBindingPattern(o.name)){var s=e.flattenDestructuringBinding(o,S,t,0,n),c=e.setTextRange(e.createVariableDeclarationList(s),r.initializer);e.setOriginalNode(c,r.initializer);var u=s[0],l=e.lastOrUndefined(s);e.setSourceMapRange(c,e.createRange(u.pos,l.end)),a.push(e.createVariableStatement(void 0,c))}else a.push(e.setTextRange(e.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(o?o.name:e.createTempVariable(void 0),void 0,n)]),e.moveRangePos(r.initializer,-1)),r.initializer)),e.moveRangeEnd(r.initializer,-1)))}else{var _=e.createAssignment(r.initializer,n);e.isDestructuringAssignment(_)?(e.aggregateTransformFlags(_),a.push(e.createStatement(V(_,!1)))):(_.end=r.initializer.end,a.push(e.setTextRange(e.createStatement(e.visitNode(_,S,e.isExpression)),e.moveRangeEnd(r.initializer,-1))))}if(i)return re(e.addRange(a,i));var d=e.visitNode(r.statement,S,e.isStatement,e.liftToBlock);return e.isBlock(d)?e.updateBlock(d,e.setTextRange(e.createNodeArray(e.concatenate(a,d.statements)),d.statements)):(a.push(d),re(a))}function re(t){return e.setEmitFlags(e.createBlock(e.createNodeArray(t),!0),432)}function ne(t,r,n){var i=e.visitNode(t.expression,S,e.isExpression),a=e.createLoopVariable(),o=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var s=e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a,void 0,e.createLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(e.createVariableDeclaration(o,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(e.createLessThan(a,e.createPropertyAccess(o,"length")),t.expression),e.setTextRange(e.createPostfixIncrement(a),t.expression),te(t,e.createElementAccess(o,a),n)),t);return e.setEmitFlags(s,256),e.setTextRange(s,t),e.restoreEnclosingLabel(s,r,c&&X)}function ie(r,n,i){var a=e.visitNode(r.expression,S,e.isExpression),o=e.isIdentifier(a)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0),s=e.isIdentifier(a)?e.getGeneratedNameForNode(o):e.createTempVariable(void 0),u=e.createUniqueName("e"),l=e.getGeneratedNameForNode(u),_=e.createTempVariable(void 0),d=e.createValuesHelper(t,a,r.expression),f=e.createCall(e.createPropertyAccess(o,"next"),void 0,[]);p(u),p(_);var m=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(o,void 0,d),r.expression),e.createVariableDeclaration(s,void 0,f)]),r.expression),2097152),e.createLogicalNot(e.createPropertyAccess(s,"done")),e.createAssignment(s,f),te(r,e.createPropertyAccess(s,"value"),i)),r),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(m,n,c&&X)]),e.createCatchClause(e.createVariableDeclaration(l),e.setEmitFlags(e.createBlock([e.createStatement(e.createAssignment(u,e.createObjectLiteral([e.createPropertyAssignment("error",l)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(s,e.createLogicalNot(e.createPropertyAccess(s,"done"))),e.createAssignment(_,e.createPropertyAccess(o,"return"))),e.createStatement(e.createFunctionCall(_,o,[]))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(u,e.createThrow(e.createPropertyAccess(u,"error"))),1)]),1))]))}function ae(e){return 0!=(65536&m.getNodeCheckFlags(e))}function oe(t,r){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function r(n){if(71===n.kind)t.hoistedLocalVariables.push(n);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||r(o.name)}}(r.name)}function se(t,r){var n=0===r?t.outParamName:t.originalName,i=0===r?t.originalName:t.outParamName;return e.createBinary(i,58,n)}function ce(t,r,n){for(var i=0,a=t;i<a.length;i++){var o=a[i];n.push(e.createStatement(se(o,r)))}}function ue(t,r,n,i){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=e.createMap()),t.labeledNonLocalBreaks.set(n,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=e.createMap()),t.labeledNonLocalContinues.set(n,i))}function le(t,r,n,i,a){t&&t.forEach(function(t,o){var s=[];if(!i||i.labels&&i.labels.get(o)){var c=e.createIdentifier(o);s.push(r?e.createBreak(c):e.createContinue(c))}else ue(i,r,o,t),s.push(e.createReturn(n));a.push(e.createCaseClause(e.createLiteral(t),s))})}function _e(t,r,n){var i=t.name;if(e.isBindingPattern(i))for(var a=0,o=i.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||_e(s,r,n)}else if(r.push(e.createParameter(void 0,void 0,void 0,i)),2097152&m.getNodeCheckFlags(t)){var c=e.createUniqueName("out_"+e.idText(i));n.push({originalName:i,outParamName:c})}}function de(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,S,e.isPropertyName)),e.visitNode(t.initializer,S,e.isExpression));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function pe(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,S,e.isPropertyName)),e.getSynthesizedClone(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function fe(t,r,n,a){var o=h(0,0),s=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,S,e.isPropertyName)),J(t,t,void 0,n));return e.setTextRange(s,t),a&&e.startOnNewLine(s),v(o,49152,49152&i?16384:0),s}function me(r,n){if(524288&r.transformFlags||97===r.expression.kind||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=e.createCallBinding(r.expression,p),a=i.target,o=i.thisArg;97===r.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=524288&r.transformFlags?e.createFunctionApply(e.visitNode(a,D,e.isExpression),e.visitNode(o,S,e.isExpression),ge(r.arguments,!1,!1,!1)):e.createFunctionCall(e.visitNode(a,D,e.isExpression),e.visitNode(o,S,e.isExpression),e.visitNodes(r.arguments,S,e.isExpression),r),97===r.expression.kind){var c=e.createThis();e.setEmitFlags(c,4);var u=e.createLogicalOr(s,c);s=n?e.createAssignment(e.createFileLevelUniqueName("_this"),u):u}return e.setOriginalNode(s,r)}return e.visitEachChild(r,S,t)}function ge(r,n,i,a){var o=r.length,s=e.flatten(e.spanMap(r,ye,function(e,t,r,n){return t(e,i,a&&n===o)}));if(f.downlevelIteration){if(1===s.length){var c=s[0];if(e.isCallExpression(c)&&e.isIdentifier(c.expression)&&4096&e.getEmitFlags(c.expression)&&"___spread"===c.expression.escapedText)return s[0]}return e.createSpreadHelper(t,s)}if(1===s.length){var u=r[0];return n&&e.isSpreadElement(u)&&182!==u.expression.kind?e.createArraySlice(s[0]):s[0]}return e.createArrayConcat(s.shift(),s)}function ye(t){return e.isSpreadElement(t)?he:ve}function he(t){return e.map(t,be)}function ve(t,r,n){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(t,n),S,e.isExpression),r)}function be(t){return e.visitNode(t.expression,S,e.isExpression)}function xe(t){var n=e.getSourceTextOfNodeFromSourceFile(r,t),i=13===t.kind||16===t.kind;return n=(n=n.substring(1,n.length-(i?1:2))).replace(/\r\n?/g,"\n"),e.setTextRange(e.createLiteral(n),t)}function Se(t){return 8&i&&!t?e.createPropertyAccess(e.createFileLevelUniqueName("_super"),"prototype"):e.createFileLevelUniqueName("_super")}function ke(){0==(2&u)&&(u|=2,t.enableSubstitution(71))}function De(){0==(1&u)&&(u|=1,t.enableSubstitution(99),t.enableEmitNotification(154),t.enableEmitNotification(153),t.enableEmitNotification(155),t.enableEmitNotification(156),t.enableEmitNotification(192),t.enableEmitNotification(191),t.enableEmitNotification(233))}function Te(t,r){return e.hasModifier(r,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}};var o={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"},s={name:"typescript: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 };'}}(o||(o={})),function(e){e.transformES5=function(t){var r,n,i=t.getCompilerOptions();1!==i.jsx&&3!==i.jsx||(r=t.onEmitNode,t.onEmitNode=function(t,i,a){switch(i.kind){case 256:case 257:case 255:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(256),t.enableEmitNotification(257),t.enableEmitNotification(255),n=[]);var a=t.onSubstituteNode;return t.onSubstituteNode=function(t,r){return r.id&&n&&n[r.id]?a(t,r):(r=a(t,r),e.isPropertyAccessExpression(r)?function(t){var r=o(t.name);return r?e.setTextRange(e.createElementAccess(t.expression,r),t):t}(r):e.isPropertyAssignment(r)?function(t){var r=e.isIdentifier(t.name)&&o(t.name);return r?e.updatePropertyAssignment(t,r,t.initializer):t}(r):r)},t.enableSubstitution(184),t.enableSubstitution(269),function(e){return e};function o(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(r>=72&&r<=107)return e.setTextRange(e.createLiteral(t),t)}}}(o||(o={})),function(e){var t,r,n,i,a;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(i||(i={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(a||(a={})),e.transformGenerators=function(t){var r,n,i,a,s,c,u,l,_,d,p=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,m=t.hoistFunctionDeclaration,g=t.hoistVariableDeclaration,y=t.getCompilerOptions(),h=e.getEmitScriptTarget(y),v=t.getEmitResolver(),b=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=b(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=v.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var x,S,k,D,T,C,E,N,A,P,w,F,O=1,I=0,M=0;return function(r){if(r.isDeclarationFile||0==(512&r.transformFlags))return r;var n=e.visitEachChild(r,L,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n};function L(r){var n=r.transformFlags;return a?function(r){switch(r.kind){case 217:case 218:return function(r){return a?(ne(),r=e.visitEachChild(r,L,t),ae(),r):e.visitEachChild(r,L,t)}(r);case 226:return function(r){return a&&Z({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,L,t),a&&oe(),r}(r);case 227:return function(r){return a&&Z({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,L,t),a&&se(),r}(r);default:return R(r)}}(r):i?R(r):256&n?function(t){switch(t.kind){case 233:return B(t);case 191:return j(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):512&n?e.visitEachChild(r,L,t):r}function R(r){switch(r.kind){case 233:return B(r);case 191:return j(r);case 155:case 156:return function(r){var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o,r}(r);case 213:return function(t){if(16777216&t.transformFlags)V(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var i=n[r];g(i.name)}var a=e.getInitializedVariables(t.declarationList);if(0!==a.length)return e.setSourceMapRange(e.createStatement(e.inlineExpressions(e.map(a,W))),t)}}(r);case 219:return function(r){a&&ne();var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];g(s.name)}var c=e.getInitializedVariables(n);r=e.updateFor(r,c.length>0?e.inlineExpressions(e.map(c,W)):void 0,e.visitNode(r.condition,L,e.isExpression),e.visitNode(r.incrementor,L,e.isExpression),e.visitNode(r.statement,L,e.isStatement,e.liftToBlock))}else r=e.visitEachChild(r,L,t);return a&&ae(),r}(r);case 220:return function(r){a&&ne();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];g(s.name)}r=e.updateForIn(r,n.declarations[0].name,e.visitNode(r.expression,L,e.isExpression),e.visitNode(r.statement,L,e.isStatement,e.liftToBlock))}else r=e.visitEachChild(r,L,t);return a&&ae(),r}(r);case 223:return function(r){if(a){var n=de(r.label&&e.idText(r.label));if(n>0)return ge(n,r)}return e.visitEachChild(r,L,t)}(r);case 222:return function(r){if(a){var n=pe(r.label&&e.idText(r.label));if(n>0)return ge(n,r)}return e.visitEachChild(r,L,t)}(r);case 224:return function(t){return r=e.visitNode(t.expression,L,e.isExpression),n=t,e.setTextRange(e.createReturn(e.createArrayLiteral(r?[me(2),r]:[me(2)])),n);var r,n}(r);default:return 16777216&r.transformFlags?function(r){switch(r.kind){case 199:return function(r){switch(e.getExpressionAssociativity(r)){case 0:return function(r){if(H(r.right)){if(e.isLogicalOperator(r.operatorToken.kind))return function(t){var r=Y(),n=Q();return ve(n,e.visitNode(t.left,L,e.isExpression),t.left),53===t.operatorToken.kind?Se(r,n,t.left):xe(r,n,t.left),ve(n,e.visitNode(t.right,L,e.isExpression),t.right),$(r),n}(r);if(26===r.operatorToken.kind)return function(t){var r=[];return n(t.left),n(t.right),e.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(H(t)&&r.length>0&&(ke(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,L,e.isExpression)))}}(r);var n=e.getMutableClone(r);return n.left=X(e.visitNode(r.left,L,e.isExpression)),n.right=e.visitNode(r.right,L,e.isExpression),n}return e.visitEachChild(r,L,t)}(r);case 1:return function(r){var n,i=r.left,a=r.right;if(H(a)){var o=void 0;switch(i.kind){case 184:o=e.updatePropertyAccess(i,X(e.visitNode(i.expression,L,e.isLeftHandSideExpression)),i.name);break;case 185:o=e.updateElementAccess(i,X(e.visitNode(i.expression,L,e.isLeftHandSideExpression)),X(e.visitNode(i.argumentExpression,L,e.isExpression)));break;default:o=e.visitNode(i,L,e.isExpression)}var s=r.operatorToken.kind;return(n=s)>=59&&n<=70?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(X(o),function(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}(s),e.visitNode(a,L,e.isExpression)),r)),r):e.updateBinary(r,o,e.visitNode(a,L,e.isExpression))}return e.visitEachChild(r,L,t)}(r);default:e.Debug.fail("Unknown associativity.")}}(r);case 200:return function(r){if(H(r.whenTrue)||H(r.whenFalse)){var n=Y(),i=Y(),a=Q();return Se(n,e.visitNode(r.condition,L,e.isExpression),r.condition),ve(a,e.visitNode(r.whenTrue,L,e.isExpression),r.whenTrue),be(i),$(n),ve(a,e.visitNode(r.whenFalse,L,e.isExpression),r.whenFalse),$(i),a}return e.visitEachChild(r,L,t)}(r);case 202:return function(r){var n,i=Y(),a=e.visitNode(r.expression,L,e.isExpression);if(r.asteriskToken){var o=0==(8388608&e.getEmitFlags(r.expression))?e.createValuesHelper(t,a,r):a;!function(e,t){ke(7,[e],t)}(o,r)}else!function(e,t){ke(6,[e],t)}(a,r);return $(i),n=r,e.setTextRange(e.createCall(e.createPropertyAccess(D,"sent"),void 0,[]),n)}(r);case 182:return function(e){return z(e.elements,void 0,void 0,e.multiLine)}(r);case 183:return function(t){var r=t.properties,n=t.multiLine,i=G(r),a=Q();ve(a,e.createObjectLiteral(e.visitNodes(r,L,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,function(r,i){H(i)&&r.length>0&&(he(e.createStatement(e.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(t,i,a),s=e.visitNode(o,L,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r},[],i);return o.push(n?e.startOnNewLine(e.getMutableClone(a)):a),e.inlineExpressions(o)}(r);case 185:return function(r){if(H(r.argumentExpression)){var n=e.getMutableClone(r);return n.expression=X(e.visitNode(r.expression,L,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(r.argumentExpression,L,e.isExpression),n}return e.visitEachChild(r,L,t)}(r);case 186:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,H)){var n=e.createCallBinding(r.expression,g,h,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.createFunctionApply(X(e.visitNode(i,L,e.isLeftHandSideExpression)),a,z(r.arguments),r),r)}return e.visitEachChild(r,L,t)}(r);case 187:return function(r){if(e.forEach(r.arguments,H)){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),g),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(X(e.visitNode(i,L,e.isExpression)),a,z(r.arguments,e.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,L,t)}(r);default:return e.visitEachChild(r,L,t)}}(r):33554944&r.transformFlags?e.visitEachChild(r,L,t):r}}function B(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,L,t),void 0,J(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o}return i?void m(r):r}function j(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,L,t),void 0,J(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o}return r}function J(t){var r=[],n=i,o=a,m=s,g=c,y=u,h=l,v=_,b=d,T=O,C=x,E=S,N=k,A=D;i=!0,a=!1,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0,O=1,x=void 0,S=void 0,k=void 0,D=e.createTempVariable(void 0),p();var P=e.addPrologue(r,t.statements,!1,L);K(t.statements,P);var w=De();return e.addRange(r,f()),r.push(e.createReturn(w)),i=n,a=o,s=m,c=g,u=y,l=h,_=v,d=b,O=T,x=C,S=E,k=N,D=A,e.setTextRange(e.createBlock(r,t.multiLine),t)}function z(t,r,n,i){var a,o=G(t);if(o>0){a=Q();var s=e.visitNodes(t,L,e.isExpression,0,o);ve(a,e.createArrayLiteral(r?[r].concat(s):s)),r=void 0}var c=e.reduceLeft(t,function(t,n){if(H(n)&&t.length>0){var o=void 0!==a;a||(a=Q()),ve(a,o?e.createArrayConcat(a,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(r?[r].concat(t):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,L,e.isExpression)),t},[],o);return a?e.createArrayConcat(a,[e.createArrayLiteral(c,i)]):e.setTextRange(e.createArrayLiteral(r?[r].concat(c):c,i),n)}function K(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)q(e[n])}function U(t){e.isBlock(t)?K(t.statements):q(t)}function q(i){var o=a;a||(a=H(i)),function(i){switch(i.kind){case 212:return function(t){H(t)?K(t.statements):he(e.visitNode(t,L,e.isStatement))}(i);case 215:return function(t){he(e.visitNode(t,L,e.isStatement))}(i);case 216:return function(t){if(H(t))if(H(t.thenStatement)||H(t.elseStatement)){var r=Y(),n=t.elseStatement?Y():void 0;Se(t.elseStatement?n:r,e.visitNode(t.expression,L,e.isExpression),t.expression),U(t.thenStatement),t.elseStatement&&(be(r),$(n),U(t.elseStatement)),$(r)}else he(e.visitNode(t,L,e.isStatement));else he(e.visitNode(t,L,e.isStatement))}(i);case 217:return function(t){if(H(t)){var r=Y(),n=Y();ie(r),$(n),U(t.statement),$(r),xe(n,e.visitNode(t.expression,L,e.isExpression)),ae()}else he(e.visitNode(t,L,e.isStatement))}(i);case 218:return function(t){if(H(t)){var r=Y(),n=ie(r);$(r),Se(n,e.visitNode(t.expression,L,e.isExpression)),U(t.statement),be(r),ae()}else he(e.visitNode(t,L,e.isStatement))}(i);case 219:return function(t){if(H(t)){var r=Y(),n=Y(),i=ie(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?V(a):he(e.setTextRange(e.createStatement(e.visitNode(a,L,e.isExpression)),a))}$(r),t.condition&&Se(i,e.visitNode(t.condition,L,e.isExpression)),U(t.statement),$(n),t.incrementor&&he(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,L,e.isExpression)),t.incrementor)),be(r),ae()}else he(e.visitNode(t,L,e.isStatement))}(i);case 220:return function(t){if(H(t)){var r=Q(),n=Q(),i=e.createLoopVariable(),a=t.initializer;g(i),ve(r,e.createArrayLiteral()),he(e.createForIn(n,e.visitNode(t.expression,L,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(r,"push"),void 0,[n])))),ve(i,e.createLiteral(0));var o=Y(),s=Y(),c=ie(s);$(o),Se(c,e.createLessThan(i,e.createPropertyAccess(r,"length")));var u=void 0;if(e.isVariableDeclarationList(a)){for(var l=0,_=a.declarations;l<_.length;l++){var d=_[l];g(d.name)}u=e.getSynthesizedClone(a.declarations[0].name)}else u=e.visitNode(a,L,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(u));ve(u,e.createElementAccess(r,i)),U(t.statement),$(s),he(e.createStatement(e.createPostfixIncrement(i))),be(o),ae()}else he(e.visitNode(t,L,e.isStatement))}(i);case 222:return function(t){var r=pe(t.label?e.idText(t.label):void 0);r>0?be(r,t):he(t)}(i);case 223:return function(t){var r=de(t.label?e.idText(t.label):void 0);r>0?be(r,t):he(t)}(i);case 224:return function(t){ke(8,[e.visitNode(t.expression,L,e.isExpression)],t)}(i);case 225:return function(t){var r,n,i;H(t)?(r=X(e.visitNode(t.expression,L,e.isExpression)),n=Y(),i=Y(),$(n),Z({kind:1,expression:r,startLabel:n,endLabel:i}),U(t.statement),e.Debug.assert(1===re()),$(ee().endLabel)):he(e.visitNode(t,L,e.isStatement))}(i);case 226:return function(t){if(H(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(Z({kind:2,isScript:!1,breakLabel:p=Y()}),p),a=X(e.visitNode(t.expression,L,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var u=r.clauses[c];o.push(Y()),266===u.kind&&-1===s&&(s=c)}for(var l=0,_=[];l<n;){for(var d=0,c=l;c<n;c++){var u=r.clauses[c];if(265===u.kind){if(H(u.expression)&&_.length>0)break;_.push(e.createCaseClause(e.visitNode(u.expression,L,e.isExpression),[ge(o[c],u.expression)]))}else d++}_.length&&(he(e.createSwitch(a,e.createCaseBlock(_))),l+=_.length,_=[]),d>0&&(l+=d,d=0)}be(s>=0?o[s]:i);for(var c=0;c<n;c++)$(o[c]),K(r.clauses[c].statements);oe()}else he(e.visitNode(t,L,e.isStatement));var p}(i);case 227:return function(t){var r,n;H(t)?(r=e.idText(t.label),n=Y(),Z({kind:4,isScript:!1,labelText:r,breakLabel:n}),U(t.statement),se()):he(e.visitNode(t,L,e.isStatement))}(i);case 228:return function(t){ke(9,[e.visitNode(t.expression,L,e.isExpression)],t)}(i);case 229:return function(i){var a,o;H(i)?(a=Y(),o=Y(),$(a),Z({kind:0,state:0,startLabel:a,endLabel:o}),ye(),U(i.tryBlock),i.catchClause&&(function(i){var a;if(e.Debug.assert(0===re()),e.isGeneratedIdentifier(i.name))a=i.name,g(i.name);else{var o=e.idText(i.name);a=Q(o),r||(r=e.createMap(),n=[],t.enableSubstitution(71)),r.set(o,!0),n[e.getOriginalNodeId(i)]=a}var s=te();e.Debug.assert(s.state<1),be(s.endLabel);var c=Y();$(c),s.state=1,s.catchVariable=a,s.catchLabel=c,ve(a,e.createCall(e.createPropertyAccess(D,"sent"),void 0,[])),ye()}(i.catchClause.variableDeclaration),U(i.catchClause.block)),i.finallyBlock&&(function(){e.Debug.assert(0===re());var t=te();e.Debug.assert(t.state<2),be(t.endLabel);var r=Y();$(r),t.state=2,t.finallyLabel=r}(),U(i.finallyBlock)),function(){e.Debug.assert(0===re());var t=ee();t.state<2?be(t.endLabel):ke(10),$(t.endLabel),ye(),t.state=3}()):he(e.visitEachChild(i,L,t))}(i);default:he(e.visitNode(i,L,e.isStatement))}}(i),a=o}function V(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=e.getSynthesizedClone(i.name);e.setCommentRange(a,i.name),g(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,u=[];c<s;){for(var l=c;l<s&&!(H((i=o[l]).initializer)&&u.length>0);l++)u.push(W(i));u.length&&(he(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function W(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,L,e.isExpression)),t)}function H(e){return e&&0!=(16777216&e.transformFlags)}function G(e){for(var t=e.length,r=0;r<t;r++)if(H(e[r]))return r;return-1}function X(t){var r;return e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t)?t:(ve(r=e.createTempVariable(g),t,t),r)}function Q(t){var r=t?e.createUniqueName(t):e.createTempVariable(void 0);return g(r),r}function Y(){_||(_=[]);var e=O;return O++,_[e]=-1,e}function $(t){e.Debug.assert(void 0!==_,"No labels were defined."),_[t]=x?x.length:0}function Z(e){s||(s=[],u=[],c=[],l=[]);var t=u.length;return u[t]=0,c[t]=x?x.length:0,s[t]=e,l.push(e),t}function ee(){var t=te();e.Debug.assert(void 0!==t,"beginBlock was never called.");var r=u.length;return u[r]=1,c[r]=x?x.length:0,s[r]=t,l.pop(),t}function te(){return e.lastOrUndefined(l)}function re(){var e=te();return e&&e.kind}function ne(){Z({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ie(e){var t=Y();return Z({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ae(){e.Debug.assert(3===re());var t=ee(),r=t.breakLabel;t.isScript||$(r)}function oe(){e.Debug.assert(2===re());var t=ee(),r=t.breakLabel;t.isScript||$(r)}function se(){e.Debug.assert(4===re());var t=ee();t.isScript||$(t.breakLabel)}function ce(e){return 2===e.kind||3===e.kind}function ue(e){return 4===e.kind}function le(e){return 3===e.kind}function _e(e,t){for(var r=t;r>=0;r--){var n=l[r];if(!ue(n))break;if(n.labelText===e)return!0}return!1}function de(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(ue(r=l[t])&&r.labelText===e)return r.breakLabel;if(ce(r)&&_e(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(ce(r=l[t]))return r.breakLabel}return 0}function pe(e){if(l)if(e){for(var t=l.length-1;t>=0;t--)if(le(r=l[t])&&_e(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(le(r=l[t]))return r.continueLabel}return 0}function fe(t){if(t>0){void 0===d&&(d=[]);var r=e.createLiteral(-1);return void 0===d[t]?d[t]=[r]:d[t].push(r),r}return e.createOmittedExpression()}function me(t){var r=e.createLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}(t)),r}function ge(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),r)}function ye(){ke(0)}function he(e){e?ke(1,[e]):ye()}function ve(e,t,r){ke(2,[e,t],r)}function be(e,t){ke(3,[e],t)}function xe(e,t,r){ke(4,[e,t],r)}function Se(e,t,r){ke(5,[e,t],r)}function ke(e,t,r){void 0===x&&(x=[],S=[],k=[]),void 0===_&&$(Y());var n=x.length;x[n]=e,S[n]=t,k[n]=r}function De(){I=0,M=0,T=void 0,C=!1,E=!1,N=void 0,A=void 0,P=void 0,w=void 0,F=void 0;var r=function(){if(x){for(var t=0;t<x.length;t++)Ne(t);Te(x.length)}else Te(0);if(N){var r=e.createPropertyAccess(D,"label"),n=e.createSwitch(r,e.createCaseBlock(N));return[e.startOnNewLine(n)]}return A||[]}();return function(t,r){return t.requestEmitHelper(o),e.createCall(e.getHelperName("__generator"),void 0,[e.createThis(),r])}(t,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,D)],void 0,e.createBlock(r,r.length>0)),524288))}function Te(e){(function(e){if(!E)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(Ee(e),F=void 0,Pe(void 0,void 0)),A&&N&&Ce(!1),function(){if(void 0!==d&&void 0!==T)for(var e=0;e<T.length;e++){var t=T[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=d[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++){var c=s[o];c.text=String(e)}}}}()}function Ce(t){if(N||(N=[]),A){if(F)for(var r=F.length-1;r>=0;r--){var n=F[r];A=[e.createWith(n.expression,e.createBlock(A))]}if(w){var i=w.startLabel,a=w.catchLabel,o=w.finallyLabel,s=w.endLabel;A.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(D,"trys"),"push"),void 0,[e.createArrayLiteral([fe(i),fe(a),fe(o),fe(s)])]))),w=void 0}t&&A.push(e.createStatement(e.createAssignment(e.createPropertyAccess(D,"label"),e.createLiteral(M+1))))}N.push(e.createCaseClause(e.createLiteral(M),A||[])),A=void 0}function Ee(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(A&&(Ce(!C),C=!1,E=!1,M++),void 0===T&&(T=[]),void 0===T[M]?T[M]=[t]:T[M].push(t))}function Ne(t){if(Ee(t),function(e){if(s)for(;I<u.length&&c[I]<=e;I++){var t=s[I],r=u[I];switch(t.kind){case 0:0===r?(P||(P=[]),A||(A=[]),P.push(w),w=t):1===r&&(w=P.pop());break;case 1:0===r?(F||(F=[]),F.push(t)):1===r&&F.pop()}}}(t),!C){C=!1,E=!1;var r=x[t];if(0!==r){if(10===r)return C=!0,void Ae(e.createReturn(e.createArrayLiteral([me(7)])));var n=S[t];if(1===r)return Ae(n[0]);var i,a,o,l=k[t];switch(r){case 2:return i=n[0],a=n[1],o=l,void Ae(e.setTextRange(e.createStatement(e.createAssignment(i,a)),o));case 3:return function(t,r){C=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),r),384))}(n[0],l);case 4:return function(t,r,n){Ae(e.setEmitFlags(e.createIf(r,e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),n),384)),1))}(n[0],n[1],l);case 5:return function(t,r,n){Ae(e.setEmitFlags(e.createIf(e.createLogicalNot(r),e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),n),384)),1))}(n[0],n[1],l);case 6:return function(t,r){C=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[me(4),t]:[me(4)])),r),384))}(n[0],l);case 7:return function(t,r){C=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(5),t])),r),384))}(n[0],l);case 8:return Pe(n[0],l);case 9:return function(t,r){C=!0,E=!0,Ae(e.setTextRange(e.createThrow(t),r))}(n[0],l)}}}}function Ae(e){e&&(A?A.push(e):A=[e])}function Pe(t,r){C=!0,E=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[me(2),t]:[me(2)])),r),384))}};var o={name:"typescript: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 = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [0, 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 };'}}(o||(o={})),function(e){e.transformModule=function(a){var o=a.startLexicalEnvironment,s=a.endLexicalEnvironment,c=a.hoistVariableDeclaration,u=a.getCompilerOptions(),l=a.getEmitResolver(),_=a.getEmitHost(),d=e.getEmitScriptTarget(u),p=e.getEmitModuleKind(u),f=a.onSubstituteNode,m=a.onEmitNode;a.onSubstituteNode=function(t,r){return(r=f(t,r)).id&&h[r.id]?r:1===t?function(t){switch(t.kind){case 71:return G(t);case 199:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=X(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];h[e.getNodeId(n)]=!0,n=W(o,n,t)}return n}}return t}(t);case 198:case 197:return function(t){if((43===t.operator||44===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=X(t.operand);if(r){for(var n=198===t.kind?e.setTextRange(e.createBinary(t.operand,e.createToken(43===t.operator?59:60),e.createLiteral(1)),t):t,i=0,a=r;i<a.length;i++){var o=a[i];h[e.getNodeId(n)]=!0,n=W(o,n)}return n}}return t}(t)}return t}(r):e.isShorthandPropertyAssignment(r)?function(t){var r=t.name,n=G(r);if(n!==r){if(t.objectAssignmentInitializer){var i=e.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(r,i),t)}return e.setTextRange(e.createPropertyAssignment(r,n),t)}return t}(r):r},a.onEmitNode=function(t,r,n){273===r.kind?(g=r,y=b[e.getOriginalNodeId(g)],h=[],m(t,r,n),g=void 0,y=void 0,h=void 0):m(t,r,n)},a.enableSubstitution(71),a.enableSubstitution(199),a.enableSubstitution(197),a.enableSubstitution(198),a.enableSubstitution(270),a.enableEmitNotification(273);var g,y,h,v,b=[],x=[];return function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,u)||67108864&t.transformFlags))return t;g=t,y=e.collectExternalModuleInfo(t,l,u),b[e.getOriginalNodeId(t)]=y;var r=function(t){switch(t){case e.ModuleKind.AMD:return D;case e.ModuleKind.UMD:return T;default:return k}}(p)(t);return g=void 0,y=void 0,v=!1,e.aggregateTransformFlags(r)};function S(){return!(y.exportEquals||!e.isExternalModule(g))}function k(r){o();var n=[],i=e.getStrictOptionValue(u,"alwaysStrict")||!u.noImplicitUseStrict&&e.isExternalModule(g),c=e.addPrologue(n,r.statements,i,P);S()&&e.append(n,V()),e.append(n,e.visitNode(y.externalHelpersImportDeclaration,P,e.isStatement)),e.addRange(n,e.visitNodes(r.statements,P,e.isStatement,c)),A(n,!1),e.addRange(n,s());var l=e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray(n),r.statements));return y.hasExportStarsToExportValues&&!u.importHelpers&&e.addEmitHelper(l,t),e.addEmitHelpers(l,a.readEmitHelpers()),l}function D(t){var r=e.createIdentifier("define"),n=e.tryGetModuleNameFromFile(t,_,u),i=C(t,!0),o=i.aliasedModuleNames,s=i.unaliasedModuleNames,c=i.importAliasNames,l=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(r,void 0,(n?[n]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(o,s)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(c),void 0,N(t))])))]),t.statements));return e.addEmitHelpers(l,a.readEmitHelpers()),l}function T(t){var r=C(t,!1),n=r.aliasedModuleNames,i=r.unaliasedModuleNames,o=r.importAliasNames,s=e.tryGetModuleNameFromFile(t,_,u),c=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,(s?[s]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(n,i)),e.createIdentifier("factory")])))])))],!0),void 0)),l=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(c,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(o),void 0,N(t))]))]),t.statements));return e.addEmitHelpers(l,a.readEmitHelpers()),l}function C(t,r){for(var n=[],i=[],a=[],o=0,s=t.amdDependencies;o<s.length;o++){var c=s[o];c.name?(n.push(e.createLiteral(c.path)),a.push(e.createParameter(void 0,void 0,void 0,c.name))):i.push(e.createLiteral(c.path))}for(var d=0,p=y.externalImports;d<p.length;d++){var f=p[d],m=e.getExternalModuleNameLiteral(f,g,_,l,u),h=e.getLocalNameForExternalImport(f,g);m&&(r&&h?(e.setEmitFlags(h,4),n.push(m),a.push(e.createParameter(void 0,void 0,void 0,h))):i.push(m))}return{aliasedModuleNames:n,unaliasedModuleNames:i,importAliasNames:a}}function E(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(t,g,_,l,u)){var r=e.getLocalNameForExternalImport(t,g),n=I(t,r);if(n!==r)return e.createStatement(e.createAssignment(r,n))}}function N(n){o();var i=[],a=e.addPrologue(i,n.statements,!u.noImplicitUseStrict,P);S()&&e.append(i,V()),e.append(i,e.visitNode(y.externalHelpersImportDeclaration,P,e.isStatement)),p===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(y.externalImports,E)),e.addRange(i,e.visitNodes(n.statements,P,e.isStatement,a)),A(i,!0),e.addRange(i,s());var c=e.createBlock(i,!0);return y.hasExportStarsToExportValues&&!u.importHelpers&&e.addEmitHelper(c,t),v&&e.addEmitHelper(c,r),c}function A(t,r){if(y.exportEquals){var n=e.visitNode(y.exportEquals.expression,w);if(n)if(r){var i=e.createReturn(n);e.setTextRange(i,y.exportEquals),e.setEmitFlags(i,1920),t.push(i)}else i=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),n)),e.setTextRange(i,y.exportEquals),e.setEmitFlags(i,1536),t.push(i)}}function P(t){switch(t.kind){case 243:return function(t){var r,n=e.getNamespaceDeclarationNode(t);if(p!==e.ModuleKind.AMD){if(!t.importClause)return e.setTextRange(e.createStatement(M(t)),t);var i=[];n&&!e.isDefaultImport(t)?i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,I(t,M(t)))):(i.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,I(t,M(t)))),n&&e.isDefaultImport(t)&&i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)))),r=e.append(r,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(i,d>=2?2:0)),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)),t)],d>=2?2:0))));if(R(t)){var a=e.getOriginalNodeId(t);x[a]=B(x[a],t)}else r=B(r,t);return e.singleOrMany(r)}(t);case 242:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setTextRange(e.createStatement(W(t.name,M(t))),t)):e.append(r,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,M(t))],d>=2?2:0)),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setTextRange(e.createStatement(W(e.getExportName(t),e.getLocalName(t))),t))),R(t)){var n=e.getOriginalNodeId(t);x[n]=j(x[n],t)}else r=j(r,t);return e.singleOrMany(r)}(t);case 249:return function(t){if(t.moduleSpecifier){var r=e.getGeneratedNameForNode(t);if(t.exportClause){var n=[];p!==e.ModuleKind.AMD&&n.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,M(t))])),t));for(var i=0,o=t.exportClause.elements;i<o.length;i++){var s=o[i],c=e.createPropertyAccess(r,s.propertyName||s.name);n.push(e.setTextRange(e.createStatement(W(e.getExportName(s),c)),s))}return e.singleOrMany(n)}return e.setTextRange(e.createStatement(function(t,r){return t.getCompilerOptions().importHelpers?e.createCall(e.getHelperName("__exportStar"),void 0,[r,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[r])}(a,p!==e.ModuleKind.AMD?M(t):r)),t)}}(t);case 248:return function(t){if(!t.isExportEquals){var r,n=t.original;if(n&&R(n)){var i=e.getOriginalNodeId(t);x[i]=q(x[i],e.createIdentifier("default"),e.visitNode(t.expression,w),t,!0)}else r=q(r,e.createIdentifier("default"),e.visitNode(t.expression,w),t,!0);return e.singleOrMany(r)}}(t);case 213:return function(t){var r,n,i;if(e.hasModifier(t,1)){for(var o=void 0,s=0,c=t.declarationList.declarations;s<c.length;s++){var u=c[s];e.isIdentifier(u.name)&&e.isLocalName(u.name)?(o||(o=e.visitNodes(t.modifiers,H,e.isModifier)),n=e.append(n,u)):u.initializer&&(i=e.append(i,L(u)))}n&&(r=e.append(r,e.updateVariableStatement(t,o,e.updateVariableDeclarationList(t.declarationList,n)))),i&&(r=e.append(r,e.setTextRange(e.createStatement(e.inlineExpressions(i)),t)))}else r=e.append(r,e.visitEachChild(t,w,a));if(R(t)){var l=e.getOriginalNodeId(t);x[l]=J(x[l],t)}else r=J(r,t);return e.singleOrMany(r)}(t);case 233:return function(t){var r;if(r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,H,e.isModifier),t.asteriskToken,e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,w),void 0,e.visitEachChild(t.body,w,a)),t),t)):e.append(r,e.visitEachChild(t,w,a)),R(t)){var n=e.getOriginalNodeId(t);x[n]=K(x[n],t)}else r=K(r,t);return e.singleOrMany(r)}(t);case 234:return function(t){var r;if(r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createClassDeclaration(void 0,e.visitNodes(t.modifiers,H,e.isModifier),e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,w),e.visitNodes(t.members,w)),t),t)):e.append(r,e.visitEachChild(t,w,a)),R(t)){var n=e.getOriginalNodeId(t);x[n]=K(x[n],t)}else r=K(r,t);return e.singleOrMany(r)}(t);case 298:return function(t){if(R(t)&&213===t.original.kind){var r=e.getOriginalNodeId(t);x[r]=J(x[r],t.original)}return t}(t);case 299:return function(t){var r=e.getOriginalNodeId(t),n=x[r];return n?(delete x[r],e.append(n,t)):t}(t);default:return e.visitEachChild(t,w,a)}}function w(t){return 67108864&t.transformFlags?e.isImportCall(t)?function(t){var r=e.visitNode(e.firstOrUndefined(t.arguments),w),n=!!(16384&t.transformFlags);switch(u.module){case e.ModuleKind.AMD:return F(r,n);case e.ModuleKind.UMD:return function(t,r){if(v=!0,e.isSimpleCopiableExpression(t)){var n=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?e.createLiteral(t):e.setEmitFlags(e.setTextRange(e.getSynthesizedClone(t),t),1536);return e.createConditional(e.createIdentifier("__syncRequire"),O(t,r),F(n,r))}var i=e.createTempVariable(c);return e.createComma(e.createAssignment(i,t),e.createConditional(e.createIdentifier("__syncRequire"),O(i,r),F(i,r)))}(r,n);case e.ModuleKind.CommonJS:default:return O(r,n)}}(t):e.visitEachChild(t,w,a):t}function F(t,r){var i,o=e.createUniqueName("resolve"),s=e.createUniqueName("reject"),c=[e.createParameter(void 0,void 0,void 0,o),e.createParameter(void 0,void 0,void 0,s)],l=e.createBlock([e.createStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([t||e.createOmittedExpression()]),o,s]))]);d>=2?i=e.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),r&&e.setEmitFlags(i,8));var _=e.createNew(e.createIdentifier("Promise"),void 0,[i]);return u.esModuleInterop?(a.requestEmitHelper(n),e.createCall(e.createPropertyAccess(_,e.createIdentifier("then")),void 0,[e.getHelperName("__importStar")])):_}function O(t,r){var i,o=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),s=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);return u.esModuleInterop&&(a.requestEmitHelper(n),s=e.createCall(e.getHelperName("__importStar"),void 0,[s])),d>=2?i=e.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(s)])),r&&e.setEmitFlags(i,8)),e.createCall(e.createPropertyAccess(o,"then"),void 0,[i])}function I(t,r){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?(a.requestEmitHelper(n),e.createCall(e.getHelperName("__importStar"),void 0,[r])):e.getImportNeedsImportDefaultHelper(t)?(a.requestEmitHelper(i),e.createCall(e.getHelperName("__importDefault"),void 0,[r])):r}function M(t){var r=e.getExternalModuleNameLiteral(t,g,_,l,u),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function L(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,w),void 0,a,0,!1,W):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),t.name),t.name),e.visitNode(t.initializer,w))}function R(t){return 0!=(4194304&e.getEmitFlags(t))}function B(e,t){if(y.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=U(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 245:e=U(e,n);break;case 246:for(var i=0,a=n.elements;i<a.length;i++)e=U(e,a[i])}return e}function j(e,t){return y.exportEquals?e:U(e,t)}function J(e,t){if(y.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++)e=z(e,n[r]);return e}function z(t,r){if(y.exportEquals)return t;if(e.isBindingPattern(r.name))for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(t=z(t,a))}else e.isGeneratedIdentifier(r.name)||(t=U(t,r));return t}function K(t,r){return y.exportEquals?t:(e.hasModifier(r,1)&&(t=q(t,e.hasModifier(r,512)?e.createIdentifier("default"):e.getDeclarationName(r),e.getLocalName(r),r)),r.name&&(t=U(t,r)),t)}function U(t,r){var n=e.getDeclarationName(r),i=y.exportSpecifiers.get(e.idText(n));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];t=q(t,s.name,n,s.name)}return t}function q(t,r,n,i,a){return t=e.append(t,function(t,r,n,i){var a=e.setTextRange(e.createStatement(W(t,r)),n);return e.startOnNewLine(a),i||e.setEmitFlags(a,1536),a}(r,n,i,a))}function V(){var t;return t=0===d?e.createStatement(W(e.createIdentifier("__esModule"),e.createLiteral(!0))):e.createStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[e.createIdentifier("exports"),e.createLiteral("__esModule"),e.createObjectLiteral([e.createPropertyAssignment("value",e.createLiteral(!0))])])),e.setEmitFlags(t,1048576),t}function W(t,r,n){return e.setTextRange(e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),r),n)}function H(e){switch(e.kind){case 84:case 79:return}return e}function G(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(g);return r?e.createPropertyAccess(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=l.getReferencedExportContainer(t,e.isExportName(t));if(n&&273===n.kind)return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),t);var i=l.getReferencedImportDeclaration(t);if(i){if(e.isImportClause(i))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(i.parent),e.createIdentifier("default")),t);if(e.isImportSpecifier(i)){var a=i.propertyName||i.name;return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(i.parent.parent.parent),e.getSynthesizedClone(a)),t)}}}return t}function X(t){if(!e.isGeneratedIdentifier(t)){var r=l.getReferencedImportDeclaration(t)||l.getReferencedValueDeclaration(t);if(r)return y&&y.exportedBindings[e.getOriginalNodeId(r)]}}};var t={name:"typescript:export-star",scoped:!0,text:"\n function __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n }"};var r={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'},n={name:"typescript:commonjsimportstar",scoped:!1,text:'\nvar __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 (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result["default"] = mod;\n return result;\n};'},i={name:"typescript:commonjsimportdefault",scoped:!1,text:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}}(o||(o={})),function(e){e.transformSystemModule=function(t){var r=t.startLexicalEnvironment,n=t.endLexicalEnvironment,i=t.hoistVariableDeclaration,a=t.getCompilerOptions(),o=t.getEmitResolver(),s=t.getEmitHost(),c=t.onSubstituteNode,u=t.onEmitNode;t.onSubstituteNode=function(t,r){return function(e){return g&&e.id&&g[e.id]}(r=c(t,r))?r:1===t?function(t){switch(t.kind){case 71:return function(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(l);return r?e.createPropertyAccess(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=o.getReferencedImportDeclaration(t);if(n){if(e.isImportClause(n))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n.parent),e.createIdentifier("default")),t);if(e.isImportSpecifier(n))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n.parent.parent.parent),e.getSynthesizedClone(n.propertyName||n.name)),t)}}return t}(t);case 199:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=q(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];n=B(o,V(n))}return n}}return t}(t);case 197:case 198:return function(t){if((43===t.operator||44===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=q(t.operand);if(r){for(var n=198===t.kind?e.setTextRange(e.createPrefix(t.operator,t.operand),t):t,i=0,a=r;i<a.length;i++){var o=a[i];n=B(o,V(n))}return 198===t.kind&&(n=43===t.operator?e.createSubtract(V(n),e.createLiteral(1)):e.createAdd(V(n),e.createLiteral(1))),n}}return t}(t)}return t}(r):4===t?function(t){switch(t.kind){case 270:return function(t){var r=t.name;if(!e.isGeneratedIdentifier(r)&&!e.isLocalName(r)){var n=o.getReferencedImportDeclaration(r);if(n){if(e.isImportClause(n))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(r),e.createPropertyAccess(e.getGeneratedNameForNode(n.parent),e.createIdentifier("default"))),t);if(e.isImportSpecifier(n))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(r),e.createPropertyAccess(e.getGeneratedNameForNode(n.parent.parent.parent),e.getSynthesizedClone(n.propertyName||n.name))),t)}}return t}(t)}return t}(r):r},t.onEmitNode=function(t,r,n){if(273===r.kind){var i=e.getOriginalNodeId(r);l=r,_=y[i],d=v[i],(g=b[i])&&delete b[i],u(t,r,n),l=void 0,_=void 0,d=void 0,g=void 0}else u(t,r,n)},t.enableSubstitution(71),t.enableSubstitution(270),t.enableSubstitution(199),t.enableSubstitution(197),t.enableSubstitution(198),t.enableEmitNotification(273);var l,_,d,p,f,m,g,y=[],h=[],v=[],b=[];return function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,a)||67108864&t.transformFlags))return t;var i=e.getOriginalNodeId(t);l=t,m=t,_=y[i]=e.collectExternalModuleInfo(t,o,a),d=e.createUniqueName("exports"),v[i]=d,p=e.createUniqueName("context");var c=function(t){for(var r=e.createMap(),n=[],i=0,c=t;i<c.length;i++){var u=c[i],_=e.getExternalModuleNameLiteral(u,l,s,o,a);if(_){var d=_.text,p=r.get(d);void 0!==p?n[p].externalImports.push(u):(r.set(d,n.length),n.push({name:_,externalImports:[u]}))}}return n}(_.externalImports),u=function(t,i){var o=[];r();var s=e.getStrictOptionValue(a,"alwaysStrict")||!a.noImplicitUseStrict&&e.isExternalModule(l),c=e.addPrologue(o,t.statements,s,S);o.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(p,e.createPropertyAccess(p,"id")))]))),e.visitNode(_.externalHelpersImportDeclaration,S,e.isStatement);var u=e.visitNodes(t.statements,S,e.isStatement,c);e.addRange(o,f),e.addRange(o,n());var m=function(t){if(_.hasExportStarsToExportValues){if(!_.exportedNames&&0===_.exportSpecifiers.size){for(var r=!1,n=0,i=_.externalImports;n<i.length;n++){var a=i[n];if(249===a.kind&&a.exportClause){r=!0;break}}if(!r){var o=x(void 0);return t.push(o),o.name}}var s=[];if(_.exportedNames)for(var c=0,u=_.exportedNames;c<u.length;c++){var l=u[c];"default"!==l.escapedText&&s.push(e.createPropertyAssignment(e.createLiteral(l),e.createTrue()))}for(var d=0,p=_.externalImports;d<p.length;d++){var a=p[d];if(249===a.kind&&a.exportClause)for(var f=0,m=a.exportClause.elements;f<m.length;f++){var g=m[f];s.push(e.createPropertyAssignment(e.createLiteral(e.idText(g.name||g.propertyName)),e.createTrue()))}}var y=e.createUniqueName("exportedNames");t.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(y,void 0,e.createObjectLiteral(s,!0))])));var h=x(y);return t.push(h),h.name}}(o),g=e.createObjectLiteral([e.createPropertyAssignment("setters",function(t,r){for(var n=[],i=0,a=r;i<a.length;i++){for(var o=a[i],s=e.forEach(o.externalImports,function(t){return e.getLocalNameForExternalImport(t,l)}),c=s?e.getGeneratedNameForNode(s):e.createUniqueName(""),u=[],_=0,p=o.externalImports;_<p.length;_++){var f=p[_],m=e.getLocalNameForExternalImport(f,l);switch(f.kind){case 243:if(!f.importClause)break;case 242:e.Debug.assert(void 0!==m),u.push(e.createStatement(e.createAssignment(m,c)));break;case 249:if(e.Debug.assert(void 0!==m),f.exportClause){for(var g=[],y=0,h=f.exportClause.elements;y<h.length;y++){var v=h[y];g.push(e.createPropertyAssignment(e.createLiteral(e.idText(v.name)),e.createElementAccess(c,e.createLiteral(e.idText(v.propertyName||v.name)))))}u.push(e.createStatement(e.createCall(d,void 0,[e.createObjectLiteral(g,!0)])))}else u.push(e.createStatement(e.createCall(t,void 0,[c])))}}n.push(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,c)],void 0,e.createBlock(u,!0)))}return e.createArrayLiteral(n,!0)}(m,i)),e.createPropertyAssignment("execute",e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock(u,!0)))]);return g.multiLine=!0,o.push(e.createReturn(g)),e.createBlock(o,!0)}(t,c),h=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,d),e.createParameter(void 0,void 0,void 0,p)],void 0,u),k=e.tryGetModuleNameFromFile(t,s,a),D=e.createArrayLiteral(e.map(c,function(e){return e.name})),T=e.setEmitFlags(e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,k?[k,D,h]:[D,h]))]),t.statements)),1024);return a.outFile||a.out||e.moveEmitHelpers(T,u,function(e){return!e.scoped}),g&&(b[i]=g,g=void 0),l=void 0,_=void 0,d=void 0,p=void 0,f=void 0,m=void 0,e.aggregateTransformFlags(T)};function x(t){var r=e.createUniqueName("exportStar"),n=e.createIdentifier("m"),i=e.createIdentifier("n"),a=e.createIdentifier("exports"),o=e.createStrictInequality(i,e.createLiteral("default"));return t&&(o=e.createLogicalAnd(o,e.createLogicalNot(e.createCall(e.createPropertyAccess(t,"hasOwnProperty"),void 0,[i])))),e.createFunctionDeclaration(void 0,void 0,void 0,r,void 0,[e.createParameter(void 0,void 0,void 0,n)],void 0,e.createBlock([e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createObjectLiteral([]))])),e.createForIn(e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0)]),n,e.createBlock([e.setEmitFlags(e.createIf(o,e.createStatement(e.createAssignment(e.createElementAccess(a,i),e.createElementAccess(n,i)))),1)])),e.createStatement(e.createCall(d,void 0,[a]))],!0))}function S(t){switch(t.kind){case 243:return function(t){var r;if(t.importClause&&i(e.getLocalNameForExternalImport(t,l)),A(t)){var n=e.getOriginalNodeId(t);h[n]=P(h[n],t)}else r=P(r,t);return e.singleOrMany(r)}(t);case 242:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),i(e.getLocalNameForExternalImport(t,l)),A(t)){var n=e.getOriginalNodeId(t);h[n]=w(h[n],t)}else r=w(r,t);return e.singleOrMany(r)}(t);case 249:return;case 248:return function(t){if(!t.isExportEquals){var r=e.visitNode(t.expression,z,e.isExpression),n=t.original;if(!n||!A(n))return R(e.createIdentifier("default"),r,!0);var i=e.getOriginalNodeId(t);h[i]=L(h[i],e.createIdentifier("default"),r,!0)}}(t);default:return j(t)}}function k(t){if(e.isBindingPattern(t.name))for(var r=0,n=t.name.elements;r<n.length;r++){var a=n[r];e.isOmittedExpression(a)||k(a)}else i(e.getSynthesizedClone(t.name))}function D(t){return 0==(2097152&e.getEmitFlags(t))&&(273===m.kind||0==(3&e.getOriginalNode(t).flags))}function T(r,n){var i=n?C:E;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,z,t,0,!1,i):r.initializer?i(r.name,e.visitNode(r.initializer,z,e.isExpression)):r.name}function C(e,t,r){return N(e,t,r,!0)}function E(e,t,r){return N(e,t,r,!1)}function N(t,r,n,a){return i(e.getSynthesizedClone(t)),a?B(t,V(e.setTextRange(e.createAssignment(t,r),n))):V(e.setTextRange(e.createAssignment(t,r),n))}function A(t){return 0!=(4194304&e.getEmitFlags(t))}function P(e,t){if(_.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=M(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 245:e=M(e,n);break;case 246:for(var i=0,a=n.elements;i<a.length;i++)e=M(e,a[i])}return e}function w(e,t){return _.exportEquals?e:M(e,t)}function F(e,t,r){if(_.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=O(e,a,r))}return e}function O(t,r,n){if(_.exportEquals)return t;if(e.isBindingPattern(r.name))for(var i=0,a=r.name.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||(t=O(t,o,n))}else if(!e.isGeneratedIdentifier(r.name)){var s=void 0;n&&(t=L(t,r.name,e.getLocalName(r)),s=e.idText(r.name)),t=M(t,r,s)}return t}function I(t,r){if(_.exportEquals)return t;var n;if(e.hasModifier(r,1)){var i=e.hasModifier(r,512)?e.createLiteral("default"):r.name;t=L(t,i,e.getLocalName(r)),n=e.getTextOfIdentifierOrLiteral(i)}return r.name&&(t=M(t,r,n)),t}function M(t,r,n){if(_.exportEquals)return t;var i=e.getDeclarationName(r),a=_.exportSpecifiers.get(e.idText(i));if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];c.name.escapedText!==n&&(t=L(t,c.name,i))}return t}function L(t,r,n,i){return t=e.append(t,R(r,n,i))}function R(t,r,n){var i=e.createStatement(B(t,r));return e.startOnNewLine(i),n||e.setEmitFlags(i,1536),i}function B(t,r){var n=e.isIdentifier(t)?e.createLiteral(t):t;return e.setEmitFlags(r,1536|e.getEmitFlags(r)),e.setCommentRange(e.createCall(d,void 0,[n,r]),r)}function j(r){switch(r.kind){case 213:return function(t){if(!D(t.declarationList))return e.visitNode(t,z,e.isStatement);for(var r,n,i=e.hasModifier(t,1),a=A(t),o=0,s=t.declarationList.declarations;o<s.length;o++){var c=s[o];c.initializer?r=e.append(r,T(c,i&&!a)):k(c)}if(r&&(n=e.append(n,e.setTextRange(e.createStatement(e.inlineExpressions(r)),t))),a){var u=e.getOriginalNodeId(t);h[u]=F(h[u],t,i)}else n=F(n,t,!1);return e.singleOrMany(n)}(r);case 233:return function(r){if(f=e.hasModifier(r,1)?e.append(f,e.updateFunctionDeclaration(r,r.decorators,e.visitNodes(r.modifiers,U,e.isModifier),r.asteriskToken,e.getDeclarationName(r,!0,!0),void 0,e.visitNodes(r.parameters,z,e.isParameterDeclaration),void 0,e.visitNode(r.body,z,e.isBlock))):e.append(f,e.visitEachChild(r,z,t)),A(r)){var n=e.getOriginalNodeId(r);h[n]=I(h[n],r)}else f=I(f,r)}(r);case 234:return function(t){var r,n=e.getLocalName(t);if(i(n),r=e.append(r,e.setTextRange(e.createStatement(e.createAssignment(n,e.setTextRange(e.createClassExpression(void 0,t.name,void 0,e.visitNodes(t.heritageClauses,z,e.isHeritageClause),e.visitNodes(t.members,z,e.isClassElement)),t))),t)),A(t)){var a=e.getOriginalNodeId(t);h[a]=I(h[a],t)}else r=I(r,t);return e.singleOrMany(r)}(r);case 219:return function(t){var r=m;return m=t,t=e.updateFor(t,J(t.initializer),e.visitNode(t.condition,z,e.isExpression),e.visitNode(t.incrementor,z,e.isExpression),e.visitNode(t.statement,j,e.isStatement)),m=r,t}(r);case 220:return function(t){var r=m;return m=t,t=e.updateForIn(t,J(t.initializer),e.visitNode(t.expression,z,e.isExpression),e.visitNode(t.statement,j,e.isStatement,e.liftToBlock)),m=r,t}(r);case 221:return function(t){var r=m;return m=t,t=e.updateForOf(t,t.awaitModifier,J(t.initializer),e.visitNode(t.expression,z,e.isExpression),e.visitNode(t.statement,j,e.isStatement,e.liftToBlock)),m=r,t}(r);case 217:return function(t){return e.updateDo(t,e.visitNode(t.statement,j,e.isStatement,e.liftToBlock),e.visitNode(t.expression,z,e.isExpression))}(r);case 218:return function(t){return e.updateWhile(t,e.visitNode(t.expression,z,e.isExpression),e.visitNode(t.statement,j,e.isStatement,e.liftToBlock))}(r);case 227:return function(t){return e.updateLabel(t,t.label,e.visitNode(t.statement,j,e.isStatement,e.liftToBlock))}(r);case 225:return function(t){return e.updateWith(t,e.visitNode(t.expression,z,e.isExpression),e.visitNode(t.statement,j,e.isStatement,e.liftToBlock))}(r);case 226:return function(t){return e.updateSwitch(t,e.visitNode(t.expression,z,e.isExpression),e.visitNode(t.caseBlock,j,e.isCaseBlock))}(r);case 240:return function(t){var r=m;return m=t,t=e.updateCaseBlock(t,e.visitNodes(t.clauses,j,e.isCaseOrDefaultClause)),m=r,t}(r);case 265:return function(t){return e.updateCaseClause(t,e.visitNode(t.expression,z,e.isExpression),e.visitNodes(t.statements,j,e.isStatement))}(r);case 266:case 229:return function(r){return e.visitEachChild(r,j,t)}(r);case 268:return function(t){var r=m;return m=t,t=e.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,j,e.isBlock)),m=r,t}(r);case 212:return function(r){var n=m;return m=r,r=e.visitEachChild(r,j,t),m=n,r}(r);case 298:return function(t){if(A(t)&&213===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasModifier(t.original,1);h[r]=F(h[r],t.original,n)}return t}(r);case 299:return function(t){var r=e.getOriginalNodeId(t),n=h[r];if(n)return delete h[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(M(n,i),t):t}(r);default:return z(r)}}function J(r){if(!r)return r;if(function(t){return e.isVariableDeclarationList(t)&&D(t)}(r)){for(var n=void 0,i=0,a=r.declarations;i<a.length;i++){var o=a[i];n=e.append(n,T(o,!1)),o.initializer||k(o)}return n?e.inlineExpressions(n):e.createOmittedExpression()}return e.visitEachChild(r,j,t)}function z(r){return 1024&r.transformFlags&&199===r.kind?function(r){return K(r.left)?e.flattenDestructuringAssignment(r,z,t,0,!0):e.visitEachChild(r,z,t)}(r):e.isImportCall(r)?function(t){return e.createCall(e.createPropertyAccess(p,e.createIdentifier("import")),void 0,e.some(t.arguments)?[e.visitNode(t.arguments[0],z)]:[])}(r):2048&r.transformFlags||67108864&r.transformFlags?e.visitEachChild(r,z,t):r}function K(t){if(e.isAssignmentExpression(t,!0))return K(t.left);if(e.isSpreadElement(t))return K(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,K);if(e.isArrayLiteralExpression(t))return e.some(t.elements,K);if(e.isShorthandPropertyAssignment(t))return K(t.name);if(e.isPropertyAssignment(t))return K(t.initializer);if(e.isIdentifier(t)){var r=o.getReferencedExportContainer(t);return void 0!==r&&273===r.kind}return!1}function U(e){switch(e.kind){case 84:case 79:return}return e}function q(t){var r;if(!e.isGeneratedIdentifier(t)){var n=o.getReferencedImportDeclaration(t)||o.getReferencedValueDeclaration(t);if(n){var i=o.getReferencedExportContainer(t,!1);i&&273===i.kind&&(r=e.append(r,e.getDeclarationName(n))),r=e.addRange(r,_&&_.exportedBindings[e.getOriginalNodeId(n)])}}return r}function V(t){return void 0===g&&(g=[]),g[e.getNodeId(t)]=!0,t}}}(o||(o={})),function(e){e.transformES2015Module=function(t){var r,n=t.getCompilerOptions(),i=t.onEmitNode,a=t.onSubstituteNode;return t.onEmitNode=function(t,n,a){e.isSourceFile(n)?(r=n,i(t,n,a),r=void 0):i(t,n,a)},t.onSubstituteNode=function(t,n){return n=a(t,n),e.isIdentifier(n)&&1===t?function(t){if(4096&e.getEmitFlags(t)){var n=e.getExternalHelpersModuleName(r);if(n)return e.createPropertyAccess(n,t)}return t}(n):n},t.enableEmitNotification(273),t.enableSubstitution(71),function(r){if(r.isDeclarationFile)return r;if(e.isExternalModule(r)||n.isolatedModules){var i=e.getOrCreateExternalHelpersModuleNameIfNeeded(r,n);if(i){var a=[],s=e.addPrologue(a,r.statements),c=e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(i)),e.createLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(c,67108864),e.append(a,c),e.addRange(a,e.visitNodes(r.statements,o,e.isStatement,s)),e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray(a),r.statements))}return e.visitEachChild(r,o,t)}return r};function o(e){switch(e.kind){case 242:return;case 248:return function(e){return e.isExportEquals?void 0:e}(e)}return e}}}(o||(o={})),function(e){function t(t){if(e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t))return r;if(e.isSetAccessor(t)||e.isGetAccessor(t))return function(r){var n;n=156===t.kind?e.hasModifier(t,32)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:t.name,typeName:t.name}};if(e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t))return function(r){var n;switch(t.kind){case 158:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 159:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 153:case 152:n=e.hasModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:234===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 233:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}};if(e.isParameter(t))return e.isParameterPropertyDeclaration(t)&&e.hasModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 154:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 158:case 163:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 159:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 153:case 152:return e.hasModifier(t.parent,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:234===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 233:case 162:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[t.parent.kind])}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0};if(e.isTypeParameterDeclaration(t))return function(){var r;switch(t.parent.kind){case 234:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 235:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 158:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 157:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 153:case 152:r=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:234===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 233:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 236:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}};if(e.isExpressionWithTypeArguments(t))return function(){var r;r=234===t.parent.parent.kind?108===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}};if(e.isImportEqualsDeclaration(t))return function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}};if(e.isTypeAliasDeclaration(t))return function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}};function r(r){var n=function(r){return 231===t.kind||181===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:151===t.kind||150===t.kind||148===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:234===t.parent.kind||148===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[t.kind])}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.hasModifier(r,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:234===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.hasModifier(r,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:234===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(o||(o={})),function(e){e.getDeclarationDiagnostics=function(t,n,i){if(i&&e.isSourceFileJavaScript(i))return[];var a=t.getCompilerOptions();return e.transformNodes(n,t,a,i?[i]:e.filter(t.getSourceFiles(),e.isSourceFileNotJavaScript),[r],!1).diagnostics};var t=531464;function r(r){var o,s,c,u,l,_,d,p=function(){return e.Debug.fail("Diagnostic emitted without context")},f=p,m=!0,g=!1,y=!1,h=!1,v=!1,b={trackSymbol:function(e,t,r){N(x.isSymbolAccessible(e,t,r,!0)),E(x.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){_&&r.addDiagnostic(e.createDiagnosticForNode(_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(_),"this"))},reportInaccessibleUniqueSymbolError:function(){_&&r.addDiagnostic(e.createDiagnosticForNode(_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(_),"unique symbol"))},reportPrivateInBaseOfClassExpression:function(t){_&&r.addDiagnostic(e.createDiagnosticForNode(_,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))}},x=r.getEmitResolver(),S=r.getCompilerOptions(),k=e.getNewLineCharacter(S),D=S.noResolve,T=S.stripInternal,C=r.getEmitHost();return function(t){if(273===t.kind&&(t.isDeclarationFile||e.isSourceFileJavaScript(t)))return t;if(274===t.kind){g=!0;var n=e.createMap(),i=!1,a=e.createBundle(e.map(t.sourceFiles,function(t){if(!t.isDeclarationFile&&!e.isSourceFileJavaScript(t)){if(i=i||t.hasNoDefaultLib,d=t,o=t,c=void 0,l=!1,u=e.createMap(),f=p,h=!1,v=!1,A(t,n),e.isExternalModule(t)){y=!1,m=!1;var a=e.visitNodes(t.statements,H),s=e.updateSourceFileNode(t,[e.createModuleDeclaration([],[e.createModifier(124)],e.createLiteral(e.getResolvedExternalModuleName(r.getEmitHost(),t)),e.createModuleBlock(e.setTextRange(e.createNodeArray(q(a)),t.statements)))],!0,[],[],!1);return s}m=!0;var _=e.visitNodes(t.statements,H);return e.updateSourceFileNode(t,q(_),!0,[],[],!1)}}));a.syntheticFileReferences=[],a.syntheticTypeReferences=P(),a.hasNoDefaultLib=i;var _=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,C,!0).declarationFilePath)),b=F(a.syntheticFileReferences,_);return n.forEach(b),a}m=!0,h=!1,v=!1,o=t,d=t,f=p,g=!1,y=!1,l=!1,c=void 0,u=e.createMap(),s=void 0;var x=A(d,e.createMap()),S=[],k=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,C,!0).declarationFilePath)),D=F(S,k);x.forEach(D);var T=e.visitNodes(t.statements,H),E=e.setTextRange(e.createNodeArray(q(T)),t.statements),N=e.filter(E,e.isAnyImportSyntax);e.isExternalModule(t)&&(!y||h&&!v)&&(E=e.setTextRange(e.createNodeArray(E.concat([e.createExportDeclaration(void 0,void 0,e.createNamedExports([]),void 0)])),E));return e.updateSourceFileNode(t,E,!0,S,P(),t.hasNoDefaultLib);function P(){return s?e.mapDefined(e.arrayFrom(s.keys()),w):[]}function w(t){for(var r=0,n=N;r<n.length;r++){var i=n[r];if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference)){var a=i.moduleReference.expression;if(e.isStringLiteralLike(a)&&a.text===t)return}else if(e.isImportDeclaration(i)&&e.isStringLiteral(i.moduleSpecifier)&&i.moduleSpecifier.text===t)return}return{fileName:t,pos:-1,end:-1}}function F(r,n){return function(i){var a;if(i.isDeclarationFile)a=i.fileName;else{if(g&&e.contains(t.sourceFiles,i))return;var o=e.getOutputPathsFor(i,C,!0);a=o.declarationFilePath||o.jsFilePath}if(a){var s=e.getRelativePathToDirectoryOrUrl(n,a,C.getCurrentDirectory(),C.getCanonicalFileName,!1);e.startsWith(s,"./")&&e.hasExtension(s)&&(s=s.substring(2)),r.push({pos:-1,end:-1,fileName:s})}}}};function E(t){if(t){s=s||e.createMap();for(var r=0,n=t;r<n.length;r++){var i=n[r];s.set(i,!0)}}}function N(t){if(0===t.accessibility){if(t&&t.aliasesToMakeVisible)if(c)for(var n=0,i=t.aliasesToMakeVisible;n<i.length;n++){var a=i[n];e.pushIfUnique(c,a)}else c=t.aliasesToMakeVisible}else{var o=f(t);o&&(o.typeName?r.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),t.errorSymbolName,t.errorModuleName)):r.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,t.errorSymbolName,t.errorModuleName)))}}function A(t,r){return D||e.isSourceFileJavaScript(t)?r:(e.forEach(t.referencedFiles,function(n){var i=e.tryResolveScriptReference(C,t,n);i&&r.set(""+e.getNodeId(i),i)}),r)}function P(t,r){var i;l||(i=f,f=e.createGetSymbolAccessibilityDiagnosticForNode(t));var a=e.updateParameter(t,void 0,n(t,r),t.dotDotDotToken,function t(r){return 71===r.kind?r:180===r.kind?e.updateArrayBindingPattern(r,e.visitNodes(r.elements,n)):e.updateObjectBindingPattern(r,e.visitNodes(r.elements,n));function n(r){return 205===r.kind?r:e.updateBindingElement(r,r.dotDotDotToken,r.propertyName,t(r.name),w(r)?r.initializer:void 0)}}(t.name),x.isOptionalParameter(t)?t.questionToken||e.createToken(55):void 0,O(t,t.type,!0),F(t));return l||(f=i),a}function w(t){return function(e){switch(e.kind){case 231:case 151:case 150:case 148:return!0}return!1}(t)&&x.isLiteralConstDeclaration(e.getParseTreeNode(t))}function F(t){if(w(t))return x.createLiteralConstValue(e.getParseTreeNode(t))}function O(r,n,i){if((i||!e.hasModifier(r,8))&&!w(r)){var a,s=148===r.kind&&(x.isRequiredInitializedParameter(r)||x.isOptionalUninitializedParameterProperty(r));return n&&!s?e.visitNode(n,W):e.getParseTreeNode(r)?156===r.kind?e.createKeywordTypeNode(119):(_=r.name,l||(a=f,f=e.createGetSymbolAccessibilityDiagnosticForNode(r)),231===r.kind||181===r.kind?c(x.createTypeOfDeclaration(r,o,t,b)):148===r.kind||151===r.kind||150===r.kind?r.initializer?c(x.createTypeOfDeclaration(r,o,t,b,s)||x.createTypeOfExpression(r.initializer,o,t,b)):c(x.createTypeOfDeclaration(r,o,t,b,s)):c(x.createReturnTypeOfSignatureDeclaration(r,o,t,b))):n?e.visitNode(n,W):e.createKeywordTypeNode(119)}function c(t){return _=void 0,l||(f=a),t||e.createKeywordTypeNode(119)}}function I(t){switch((t=e.getParseTreeNode(t)).kind){case 233:case 238:case 235:case 234:case 236:case 237:return!x.isDeclarationVisible(t);case 231:return!M(t);case 242:case 243:case 249:case 248:return!1}return!1}function M(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.forEach(t.name.elements,M):x.isDeclarationVisible(t))}function L(t,r,n){if(!e.hasModifier(t,8)){var i=e.map(r,function(e){return P(e,n)});if(i)return e.createNodeArray(i,r.hasTrailingComma)}}function R(t,r){return e.hasModifier(t,8)?void 0:e.visitNodes(r,W)}function B(t){return e.isSourceFile(t)||e.isTypeAliasDeclaration(t)||e.isModuleDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionLike(t)||e.isIndexSignatureDeclaration(t)||e.isMappedTypeNode(t)}function j(e,t){N(x.isEntityNameVisible(e,t)),E(x.getTypeReferenceDirectivesForEntityName(e))}function J(t,r){return e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)&&(t.jsDoc=r.jsDoc),e.setCommentRange(t,e.getCommentRange(r))}function z(t,n){if(n){if(y=y||238!==t.kind&&178!==t.kind,9===n.kind&&g){var i=e.getExternalModuleNameFromDeclaration(r.getEmitHost(),x,t);if(i)return e.createLiteral(i)}return n}}function K(t){if(x.isDeclarationVisible(t)){if(253===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return e.updateImportEqualsDeclaration(t,void 0,t.modifiers,t.name,e.updateExternalModuleReference(t.moduleReference,z(t,r)))}var n=f;return f=e.createGetSymbolAccessibilityDiagnosticForNode(t),j(t.moduleReference,o),f=n,t}}function U(t){if(!t.importClause)return e.updateImportDeclaration(t,void 0,t.modifiers,t.importClause,z(t,t.moduleSpecifier));var r=t.importClause&&t.importClause.name&&x.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&e.updateImportDeclaration(t,void 0,t.modifiers,e.updateImportClause(t.importClause,r,void 0),z(t,t.moduleSpecifier));if(245===t.importClause.namedBindings.kind){var n=x.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||n?e.updateImportDeclaration(t,void 0,t.modifiers,e.updateImportClause(t.importClause,r,n),z(t,t.moduleSpecifier)):void 0}var i=e.mapDefined(t.importClause.namedBindings.elements,function(e){return x.isDeclarationVisible(e)?e:void 0});return i&&i.length||r?e.updateImportDeclaration(t,void 0,t.modifiers,e.updateImportClause(t.importClause,r,i&&i.length?e.updateNamedImports(t.importClause.namedBindings,i):void 0),z(t,t.moduleSpecifier)):void 0}function q(t){for(var r=[];e.length(c);){var n=c.shift();if((e.isSourceFile(n.parent)?n.parent:n.parent.parent)===o){if(!e.isLateVisibilityPaintedStatement(n))return e.Debug.fail("Late replaced statement was foudn which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[n.kind]:n.kind));switch(n.kind){case 242:var i=K(n);u.set(""+e.getNodeId(n),i);break;case 243:i=U(n);u.set(""+e.getNodeId(n),i);break;case 213:i=G(n,!0);u.set(""+e.getNodeId(n),i);break;default:e.Debug.assertNever(n,"Unhandled late painted statement!")}}else r.push(n)}return c=r,e.visitNodes(t,V)}function V(t){if(e.isLateVisibilityPaintedStatement(t)){var r=""+e.getNodeId(t);if(u.has(r)){var n=u.get(r);return u.delete(r),!n||!e.isSourceFile(t.parent)||e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasModifier(n,1)||(h=!0),n}return e.getParseTreeNode(t)?void 0:t}return t}function W(t){if(!Y(t)){if(e.isDeclaration(t)){if(I(t))return;if(e.hasDynamicName(t)&&!x.isLateBound(e.getParseTreeNode(t)))return}if(!(e.isFunctionLike(t)&&x.isImplementationOfOverload(t)||e.isSemicolonClassElement(t))){var n;B(t)&&(n=o,o=t);var i=f;if((e.isMethodDeclaration(t)||e.isMethodSignature(t))&&e.hasModifier(t,8)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return S(e.createProperty(void 0,$(t),t.name,void 0,void 0,void 0))}var a=e.canProduceDiagnostics(t);a&&!l&&(f=e.createGetSymbolAccessibilityDiagnosticForNode(t)),e.isTypeQueryNode(t)&&j(t.exprName,o);var s=l,c=(165===t.kind||176===t.kind)&&236!==t.parent.kind;if(c&&(l=!0),function(e){switch(e.kind){case 158:case 154:case 153:case 155:case 156:case 151:case 150:case 152:case 157:case 159:case 231:case 147:case 206:case 161:case 170:case 162:case 163:case 178:return!0}return!1}(t))switch(t.kind){case 206:(e.isEntityName(t.expression)||e.isEntityNameExpression(t.expression))&&j(t.expression,o);var u=e.visitEachChild(t,W,r);return S(e.updateExpressionWithTypeArguments(u,e.parenthesizeTypeParameters(u.typeArguments),u.expression));case 161:j(t.typeName,o);u=e.visitEachChild(t,W,r);return S(e.updateTypeReferenceNode(u,u.typeName,e.parenthesizeTypeParameters(u.typeArguments)));case 158:return S(e.updateConstructSignature(t,R(t,t.typeParameters),L(t,t.parameters),O(t,t.type)));case 154:var d=e.hasModifier(t,8),p=e.createSignatureDeclaration(154,d?void 0:R(t,t.typeParameters),d?void 0:L(t,t.parameters,0),void 0);return p.modifiers=e.createNodeArray($(t)),S(p);case 153:var m=e.createSignatureDeclaration(152,R(t,t.typeParameters),L(t,t.parameters),O(t,t.type));return m.name=t.name,m.modifiers=e.createNodeArray($(t)),m.questionToken=t.questionToken,S(m);case 155:case 156:return S(Z(t));case 151:return S(e.updateProperty(t,void 0,$(t),t.name,t.questionToken,e.hasModifier(t,8)?void 0:O(t,t.type),F(t)));case 150:return S(e.updatePropertySignature(t,$(t),t.name,t.questionToken,e.hasModifier(t,8)?void 0:O(t,t.type),F(t)));case 152:return S(e.updateMethodSignature(t,R(t,t.typeParameters),L(t,t.parameters),O(t,t.type),t.name,t.questionToken));case 157:return S(e.updateCallSignature(t,R(t,t.typeParameters),L(t,t.parameters),O(t,t.type)));case 159:return S(e.updateIndexSignature(t,void 0,$(t),L(t,t.parameters),e.visitNode(t.type,W)||e.createKeywordTypeNode(119)));case 231:return e.isBindingPattern(t.name)?X(t.name):(c=!0,l=!0,S(e.updateVariableDeclaration(t,t.name,O(t,t.type),F(t))));case 147:return function(t){return 153===t.parent.kind&&e.hasModifier(t.parent,8)}(t)&&(t.default||t.constraint)?S(e.updateTypeParameterDeclaration(t,t.name,void 0,void 0)):S(e.visitEachChild(t,W,r));case 170:var g=e.visitNode(t.checkType,W),y=e.visitNode(t.extendsType,W),h=o;o=t.trueType;var v=e.visitNode(t.trueType,W);o=h;var b=e.visitNode(t.falseType,W);return S(e.updateConditionalTypeNode(t,g,y,v,b));case 162:return S(e.updateFunctionTypeNode(t,e.visitNodes(t.typeParameters,W),L(t,t.parameters),e.visitNode(t.type,W)));case 163:return S(e.updateConstructorTypeNode(t,e.visitNodes(t.typeParameters,W),L(t,t.parameters),e.visitNode(t.type,W)));case 178:return e.isLiteralImportTypeNode(t)?S(e.updateImportTypeNode(t,e.updateLiteralTypeNode(t.argument,z(t,t.argument.literal)),t.qualifier,e.visitNodes(t.typeArguments,W,e.isTypeNode),t.isTypeOf)):S(t);default:e.Debug.assertNever(t,"Attempted to process unhandled node kind: "+e.SyntaxKind[t.kind])}return S(e.visitEachChild(t,W,r))}}function S(r){return r&&a&&e.hasDynamicName(t)&&function(t){var r;l||(r=f,f=e.createGetSymbolAccessibilityDiagnosticForNodeName(t));_=t.name,e.Debug.assert(x.isLateBound(e.getParseTreeNode(t))),j(t.name.expression,o),l||(f=r);_=void 0}(t),B(t)&&(o=n),a&&!l&&(f=i),c&&(l=s),r===t?r:r&&e.setOriginalNode(J(r,t),t)}}function H(r){if(function(e){switch(e.kind){case 233:case 238:case 242:case 235:case 234:case 236:case 237:case 213:case 243:case 249:case 248:return!0}return!1}(r)&&!Y(r)){switch(r.kind){case 249:return e.isSourceFile(r.parent)&&(y=!0,v=!0),e.updateExportDeclaration(r,void 0,r.modifiers,r.exportClause,z(r,r.moduleSpecifier));case 248:if(e.isSourceFile(r.parent)&&(y=!0,v=!0),71===r.expression.kind)return r;var n=e.createOptimisticUniqueName("_default");f=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:r}};var i=e.createVariableDeclaration(n,x.createTypeOfExpression(r.expression,r,t,b),void 0);return[w=e.createVariableStatement(m?[e.createModifier(124)]:[],e.createVariableDeclarationList([i],2)),e.updateExportAssignment(r,r.decorators,r.modifiers,n)];case 242:case 243:return c=c||[],e.pushIfUnique(c,r),r}if(!(e.isDeclaration(r)&&I(r)||e.isFunctionLike(r)&&x.isImplementationOfOverload(r))){var a,s;B(r)&&(a=o,o=r);var l,_=e.canProduceDiagnostics(r),d=f;switch(_&&(f=e.createGetSymbolAccessibilityDiagnosticForNode(r)),r.kind){case 236:return K(e.updateTypeAliasDeclaration(r,void 0,$(r),r.name,e.visitNodes(r.typeParameters,W,e.isTypeParameterDeclaration),e.visitNode(r.type,W,e.isTypeNode)));case 235:return K(e.updateInterfaceDeclaration(r,void 0,$(r),r.name,R(r,r.typeParameters),ee(r.heritageClauses),e.visitNodes(r.members,W)));case 233:return K(e.updateFunctionDeclaration(r,void 0,$(r),void 0,r.name,R(r,r.typeParameters),L(r,r.parameters),O(r,r.type),void 0));case 238:s=m,m=!1,l=c,c=void 0;var p=r.body;if(p&&239===p.kind){var g=e.visitNodes(p.statements,H),h=e.updateModuleBlock(p,q(g));m=s;var S=$(r);return K(e.updateModuleDeclaration(r,void 0,S,e.isExternalModuleAugmentation(r)?z(r,r.name):r.name,h))}m=s;S=$(r);return m=!1,K(e.updateModuleDeclaration(r,void 0,S,r.name,e.visitNode(p,H)));case 234:var k=e.createNodeArray($(r)),D=R(r,r.typeParameters),T=e.getFirstConstructorWithBody(r),C=void 0;if(T){var E=f;C=e.compact(e.flatMap(T.parameters,function(t){if(e.hasModifier(t,92))return f=e.createGetSymbolAccessibilityDiagnosticForNode(t),71===t.name.kind?J(e.createProperty(void 0,$(t),t.name,t.questionToken,O(t,t.type),F(t)),t):function r(n){var i;for(var a=0,o=n.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(i=e.concatenate(i,r(s.name))),(i=i||[]).push(e.createProperty(void 0,$(t),s.name,void 0,O(s,void 0),void 0)))}return i}(t.name)})),f=E}var N=e.createNodeArray(e.concatenate(C,e.visitNodes(r.members,W))),A=e.getClassExtendsHeritageClauseElement(r);if(A&&!e.isEntityNameExpression(A.expression)&&95!==A.expression.kind){var P=e.createOptimisticUniqueName(e.unescapeLeadingUnderscores(r.name.escapedText)+"_base");f=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:A,typeName:r.name}};i=e.createVariableDeclaration(P,x.createTypeOfExpression(A.expression,r,t,b),void 0);var w=e.createVariableStatement(m?[e.createModifier(124)]:[],e.createVariableDeclarationList([i],2)),M=e.createNodeArray(e.map(r.heritageClauses,function(t){if(85===t.token){var r=f;f=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=e.updateHeritageClause(t,e.map(t.types,function(t){return e.updateExpressionWithTypeArguments(t,e.visitNodes(t.typeArguments,W),P)}));return f=r,n}return e.updateHeritageClause(t,e.visitNodes(e.createNodeArray(e.filter(t.types,function(t){return e.isEntityNameExpression(t.expression)||95===t.expression.kind})),W))}));return[w,K(e.updateClassDeclaration(r,void 0,k,r.name,D,M,N))]}M=ee(r.heritageClauses);return K(e.updateClassDeclaration(r,void 0,k,r.name,D,M,N));case 213:var j=G(r);return u.set(""+e.getNodeId(r),j),K(r);case 237:return K(e.updateEnumDeclaration(r,void 0,e.createNodeArray($(r)),r.name,e.createNodeArray(e.mapDefined(r.members,function(t){if(!Y(t)){var r=x.getConstantValue(t);return J(e.updateEnumMember(t,t.name,void 0!==r?e.createLiteral(r):void 0),t)}}))))}return e.Debug.assertNever(r,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[r.kind])}}function K(t){return B(r)&&(o=a),238===r.kind&&(m=s,c=e.concatenate(l,c)),_&&(f=d),!t||e.isLateVisibilityPaintedStatement(r)&&!u.get(""+e.getNodeId(r))||!y&&e.hasModifier(r,1)&&e.isSourceFile(r.parent)&&(y=!0),t===r?t:t&&e.setOriginalNode(J(t,r),r)}}function G(t,r){if(e.forEach(t.declarationList.declarations,M)){var n=e.visitNodes(t.declarationList.declarations,W);if(e.length(n))return e.updateVariableStatement(t,e.createNodeArray($(t,r)),e.updateVariableDeclarationList(t.declarationList,n))}}function X(t){return e.flatten(e.mapDefined(t.elements,function(t){return function(t){if(205===t.kind)return;if(t.name){if(!M(t))return;return e.isBindingPattern(t.name)?X(t.name):e.createVariableDeclaration(t.name,O(t,void 0),void 0)}}(t)}))}function Q(t){var r=d.text.substring(t.pos,t.end);return e.stringContains(r,"@internal")}function Y(t){if(T&&t){var r=e.getLeadingCommentRangesOfNode(e.getParseTreeNode(t),d);if(e.forEach(r,Q))return!0}return!1}function $(t,r){var n=e.getModifierFlags(t),a=function(t,r){var n=2811,a=m&&!function(e){if(235===e.kind)return!0;return!1}(t)?2:0,o=273===t.parent.kind;(!o||g&&o&&e.isExternalModule(t.parent))&&(n^=514|(r||g&&o?0:1),a=0);return i(t,n,a)}(t,r);return n===a?t.modifiers:e.createModifiersFromModifierFlags(a)}function Z(t){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(t.kind===r.firstAccessor.kind){var i=a(t);!i&&r.secondAccessor&&(i=a(r.secondAccessor),f=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor));var o=e.createProperty(void 0,n(t,void 0,r.setAccessor?0:64),t.name,t.questionToken,O(t,i),void 0),s=r.secondAccessor&&e.getLeadingCommentRangesOfNode(r.secondAccessor,d);if(s)for(var c=function(t){if(3===t.kind){var r=d.text.slice(t.pos+2,t.end-2),n=r.split(/\r\n?|\n/g);if(n.length>1){var i=n.slice(1),a=e.guessIndentation(i);r=[n[0]].concat(e.map(i,function(e){return e.slice(a)})).join(k)}e.addSyntheticLeadingComment(o,t.kind,r,t.hasTrailingNewLine)}},u=0,l=s;u<l.length;u++){c(l[u])}return o}}function ee(t){return e.createNodeArray(e.filter(e.map(t,function(t){return e.updateHeritageClause(t,e.visitNodes(e.createNodeArray(e.filter(t.types,function(r){return e.isEntityNameExpression(r.expression)||85===t.token&&95===r.expression.kind})),W))}),function(e){return e.types&&!!e.types.length}))}}function n(t,r,n){return e.createModifiersFromModifierFlags(i(t,r,n))}function i(t,r,n){void 0===r&&(r=3067),void 0===n&&(n=0);var i=e.getModifierFlags(t)&r|n;return 512&i&&2&i&&(i^=2),i}function a(e){if(e)return 155===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=r}(o||(o={})),function(e){var t,r;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.getTransformers=function(t,r){var n=t.jsx,i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&r.before),o.push(e.transformTypeScript),2===n&&o.push(e.transformJsx),i<6&&o.push(e.transformESNext),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&r.after),o},e.transformNodes=function(t,r,n,i,a,o){for(var s,c,u,l=new Array(300),_=[],d=[],p=0,f=!1,m=function(e,t){return t},g=function(e,t,r){return r(e,t)},y=0,h=[],v={getCompilerOptions:function(){return n},getEmitResolver:function(){return t},getEmitHost:function(){return r},startLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),_[p]=s,d[p]=c,p++,s=void 0,c=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is already suspended."),f=!0},resumeLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(f,"Lexical environment is not suspended."),f=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),(s||c)&&(c&&(t=c.slice()),s)){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(s));t?t.push(r):t=[r]}return s=_[--p],c=d[p],0===p&&(_=[],d=[]),t},hoistVariableDeclaration:function(t){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);s?s.push(r):s=[r]},hoistFunctionDeclaration:function(t){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),c?c.push(t):c=[t]},requestEmitHelper:function(t){e.Debug.assert(y>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),u=e.append(u,t)},readEmitHelpers:function(){e.Debug.assert(y>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed.");var t=u;return u=void 0,t},enableSubstitution:function(t){e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),l[t]|=1},enableEmitNotification:function(t){e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),l[t]|=2},isSubstitutionEnabled:T,isEmitNotificationEnabled:C,get onSubstituteNode(){return m},set onSubstituteNode(t){e.Debug.assert(y<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),m=t},get onEmitNode(){return g},set onEmitNode(t){e.Debug.assert(y<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),g=t},addDiagnostic:function(e){h.push(e)}},b=0,x=i;b<x.length;b++){var S=x[b];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(S)))}e.performance.mark("beforeTransform");var k=e.chain.apply(void 0,a)(v);y=1;var D=e.map(i,o?k:function(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:k(t)});return y=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:D,substituteNode:function(t,r){return e.Debug.assert(y<3,"Cannot substitute a node after the result is disposed."),r&&T(r)&&m(t,r)||r},emitNodeWithNotification:function(t,r,n){e.Debug.assert(y<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(C(r)?g(t,r,n):n(t,r))},dispose:function(){if(y<3){for(var t=0,r=i;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}s=void 0,_=void 0,c=void 0,d=void 0,m=void 0,g=void 0,u=void 0,y=3}},diagnostics:h};function T(t){return 0!=(1&l[t.kind])&&0==(4&e.getEmitFlags(t))}function C(t){return 0!=(2&l[t.kind])||0!=(2&e.getEmitFlags(t))}}}(o||(o={})),function(e){var t={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=function(r,n,a){void 0===a&&(a=r.getCompilerOptions());var o,s,c,u,l,_,d,p,f,m=a.extendedDiagnostics,g=!(a.sourceMap||a.inlineSourceMap);return{initialize:function(n,i,m,y){g||(p&&h(),f=y,o=void 0,s=void 0,u=-1,l=void 0,_=t,d=0,(p={sourceMapFilePath:i,jsSourceMappingURL:a.inlineSourceMap?void 0:e.getBaseFileName(e.normalizeSlashes(i)),sourceMapFile:e.getBaseFileName(e.normalizeSlashes(n)),sourceMapSourceRoot:a.sourceRoot||"",sourceMapSources:[],inputSourceFileNames:[],sourceMapNames:[],sourceMapMappings:"",sourceMapSourcesContent:a.inlineSources?[]:void 0,sourceMapDecodedMappings:[]}).sourceMapSourceRoot=e.normalizeSlashes(p.sourceMapSourceRoot),p.sourceMapSourceRoot.length&&47!==p.sourceMapSourceRoot.charCodeAt(p.sourceMapSourceRoot.length-1)&&(p.sourceMapSourceRoot+=e.directorySeparator),a.mapRoot?(c=e.normalizeSlashes(a.mapRoot),273===m.kind&&(c=e.getDirectoryPath(e.getSourceFilePathInNewDir(m,r,c))),e.isRootedDiskPath(c)||e.isUrl(c)?p.jsSourceMappingURL=e.combinePaths(c,p.jsSourceMappingURL):(c=e.combinePaths(r.getCommonSourceDirectory(),c),p.jsSourceMappingURL=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(n)),e.combinePaths(c,p.jsSourceMappingURL),r.getCurrentDirectory(),r.getCanonicalFileName,!0))):c=e.getDirectoryPath(e.normalizePath(n)))},reset:h,setSourceFile:x,emitPos:b,emitNodeWithSourceMap:function(e,t,r){if(g)return r(e,t);if(t){var n=t.emitNode,i=n&&n.flags,a=n&&n.sourceMapRange,s=a||t,c=s.pos,u=s.end,l=a&&a.source,_=o;l===_&&(l=void 0),l&&x(l),295!==t.kind&&0==(16&i)&&c>=0&&b(y(c)),l&&x(_),64&i?(g=!0,r(e,t),g=!1):r(e,t),l&&x(l),295!==t.kind&&0==(32&i)&&u>=0&&b(u),l&&x(_)}},emitTokenWithSourceMap:function(e,t,r,n,i){if(g)return i(t,r,n);var a=e&&e.emitNode,o=a&&a.flags,s=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t];return n=y(s?s.pos:n),0==(128&o)&&n>=0&&b(n),n=i(t,r,n),s&&(n=s.end),0==(256&o)&&n>=0&&b(n),n},getText:S,getSourceMappingURL:function(){if(!g){if(a.inlineSourceMap){var t=e.base64encode(e.sys,S());return p.jsSourceMappingURL="data:application/json;base64,"+t}return p.jsSourceMappingURL}}};function y(t){return o.skipTrivia?o.skipTrivia(t):e.skipTrivia(s,t)}function h(){g||(f&&f.push(p),o=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0,p=void 0,f=void 0)}function v(){if(l&&l!==_){var t=_.emittedColumn;if(_.emittedLine===l.emittedLine)p.sourceMapMappings&&(p.sourceMapMappings+=",");else{for(var r=_.emittedLine;r<l.emittedLine;r++)p.sourceMapMappings+=";";t=1}p.sourceMapMappings+=i(l.emittedColumn-t),p.sourceMapMappings+=i(l.sourceIndex-_.sourceIndex),p.sourceMapMappings+=i(l.sourceLine-_.sourceLine),p.sourceMapMappings+=i(l.sourceColumn-_.sourceColumn),l.nameIndex>=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),p.sourceMapMappings+=i(l.nameIndex-d),d=l.nameIndex),_=l,p.sourceMapDecodedMappings.push(_)}}function b(t){if(!g&&!e.positionIsSynthesized(t)){m&&e.performance.mark("beforeSourcemap");var r=e.getLineAndCharacterOfPosition(o,t);r.line++,r.character++;var i=n.getLine(),a=n.getColumn();!l||l.emittedLine!==i||l.emittedColumn!==a||l.sourceIndex===u&&(l.sourceLine>r.line||l.sourceLine===r.line&&l.sourceColumn>r.character)?(v(),l={emittedLine:i,emittedColumn:a,sourceLine:r.line,sourceColumn:r.character,sourceIndex:u}):(l.sourceLine=r.line,l.sourceColumn=r.character,l.sourceIndex=u),m&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function x(t){if(!g){s=(o=t).text;var n=a.sourceRoot?r.getCommonSourceDirectory():c,i=e.getRelativePathToDirectoryOrUrl(n,o.fileName,r.getCurrentDirectory(),r.getCanonicalFileName,!0);-1===(u=p.sourceMapSources.indexOf(i))&&(u=p.sourceMapSources.length,p.sourceMapSources.push(i),p.inputSourceFileNames.push(o.fileName),a.inlineSources&&p.sourceMapSourcesContent.push(o.text))}}function S(){if(!g)return v(),JSON.stringify({version:3,file:p.sourceMapFile,sourceRoot:p.sourceMapSourceRoot,sources:p.sourceMapSources,names:p.sourceMapNames,mappings:p.sourceMapMappings,sourcesContent:p.sourceMapSourcesContent})}};var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e){if(e<64)return r.charAt(e);throw TypeError(e+": not a 64 based value")}function i(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;(e>>=5)>0&&(r|=32),t+=n(r)}while(e>0);return t}}(o||(o={})),function(e){e.createCommentWriter=function(t,r){var n,i,a,o,s,c=t.extendedDiagnostics,u=e.getNewLineCharacter(t),l=-1,_=-1,d=-1,p=!1,f=t.removeComments;return{reset:function(){i=void 0,a=void 0,o=void 0,s=void 0},setWriter:function(e){n=e},setSourceFile:function(t){a=(i=t).text,o=e.getLineStarts(i),s=void 0},emitNodeWithComments:function(t,r,n){if(f)n(t,r);else if(r){p=!1;var i=r.emitNode,a=i&&i.flags,o=i&&i.commentRange||r,s=o.pos,u=o.end;if(s<0&&u<0||s===u)m(t,r,i,a,n);else{c&&e.performance.mark("preEmitNodeWithComment");var g=295!==r.kind,y=s<0||0!=(512&a)||10===r.kind,h=u<0||0!=(1024&a)||10===r.kind;y||v(s,g);var b=l,x=_,S=d;y||(l=s),h||(_=u,232===r.kind&&(d=u)),c&&e.performance.measure("commentTime","preEmitNodeWithComment"),m(t,r,i,a,n),c&&e.performance.mark("postEmitNodeWithComment"),l=b,_=x,d=S,!h&&g&&function(e){C(e,k)}(u),c&&e.performance.measure("commentTime","postEmitNodeWithComment")}}},emitBodyWithDetachedComments:function(t,r,i){c&&e.performance.mark("preEmitBodyWithDetachedComments");var l,_,d=r.pos,m=r.end,g=e.getEmitFlags(t),y=f||m<0||0!=(1024&g);d<0||0!=(512&g)||(l=r,(_=e.emitDetachedComments(a,o,n,E,l,u,f))&&(s?s.push(_):s=[_])),c&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&g&&!f?(f=!0,i(t),f=!1):i(t),c&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),y||(v(r.end,!0),p&&!n.isAtStartOfLine()&&n.writeLine()),c&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")},emitTrailingCommentsOfPosition:function(t,r){f||(c&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),C(t,r?k:D),c&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))},emitLeadingCommentsOfPosition:function(e){f||-1===e||v(e,!0)}};function m(t,r,n,i,a){var o=n&&n.leadingComments;e.some(o)&&(c&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(o,g),c&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),function(e,t,r,n){2048&r?(f=!0,n(e,t),f=!1):n(e,t)}(t,r,i,a);var s=n&&n.trailingComments;e.some(s)&&(c&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(s,y),c&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function g(e){2===e.kind&&n.writeLine(),h(e),e.hasTrailingNewLine||2===e.kind?n.writeLine():n.write(" ")}function y(e){n.isAtStartOfLine()||n.write(" "),h(e),e.hasTrailingNewLine&&n.writeLine()}function h(t){var r=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),i=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,i,n,0,r.length,u)}function v(e,t){p=!1,t?T(e,S):0===e&&T(e,b)}function b(t,r,n,i,o){(function(t,r){return e.isRecognizedTripleSlashComment(a,t,r)})(t,r)&&S(t,r,n,i,o)}function x(r,n){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}function S(t,i,s,c,l){x(a,t)&&(p||(e.emitNewLineBeforeLeadingCommentOfPosition(o,n,l,t),p=!0),r&&r(t),e.writeCommentRange(a,o,n,t,i,u),r&&r(i),c?n.writeLine():3===s&&n.write(" "))}function k(t,i,s,c){x(a,t)&&(n.isAtStartOfLine()||n.write(" "),r&&r(t),e.writeCommentRange(a,o,n,t,i,u),r&&r(i),c&&n.writeLine())}function D(t,i,s,c){r&&r(t),e.writeCommentRange(a,o,n,t,i,u),r&&r(i),c?n.writeLine():n.write(" ")}function T(t,r){-1!==l&&t===l||(function(t){return void 0!==s&&e.lastOrUndefined(s).nodePos===t}(t)?function(t){var r=e.lastOrUndefined(s).detachedCommentEndPos;s.length-1?s.pop():s=void 0,e.forEachLeadingCommentRange(a,r,t,r)}(r):e.forEachLeadingCommentRange(a,t,r,t))}function C(t,r){(-1===_||t!==_&&t!==d)&&e.forEachTrailingCommentRange(a,t,r)}function E(t,n,i,o,s,c){x(a,o)&&(r&&r(o),e.writeCommentRange(t,n,i,o,s,c),r&&r(s))}}}(o||(o={})),function(e){var t,r=function(){var e=[];return e[512]=["{","}"],e[1024]=["(",")"],e[2048]=["<",">"],e[4096]=["[","]"],e}();function i(t,r,n,i){var o=e.isArray(n)?n:e.getSourceFilesToEmit(t,n),s=t.getCompilerOptions();if(s.outFile||s.out){if(o.length){var c=e.createBundle(o);if(_=r(a(c,t,i),c))return _}}else for(var u=0,l=o;u<l.length;u++){var _,d=l[u];if(_=r(a(d,t,i),d))return _}}function a(t,r,n){var i=r.getCompilerOptions();if(274===t.kind)return{jsFilePath:a=i.outFile||i.out,sourceMapFilePath:c=o(a,i),declarationFilePath:s=n||i.declaration?e.removeFileExtension(a)+".d.ts":void 0,declarationMapPath:e.getAreDeclarationMapsEnabled(i)?s+".map":void 0};var a,s,c=o(a=e.getOwnEmitOutputFilePath(t,r,function(t,r){if(1===r.jsx)if(e.isSourceFileJavaScript(t)){if(e.fileExtensionIs(t.fileName,".jsx"))return".jsx"}else if(1===t.languageVariant)return".jsx";return".js"}(t,i)),i),u=e.isSourceFileJavaScript(t);return{jsFilePath:a,sourceMapFilePath:c,declarationFilePath:s=!n&&!i.declaration||u?void 0:e.getDeclarationEmitOutputFilePath(t,r),declarationMapPath:e.getAreDeclarationMapsEnabled(i)?s+".map":void 0}}function o(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function s(t,n){void 0===t&&(t={}),void 0===n&&(n={});var i,a,o,s,c,u,l,_,d,p,f=n.hasGlobalName,m=n.onEmitSourceMapOfNode,g=n.onEmitSourceMapOfToken,y=n.onEmitSourceMapOfPosition,h=n.onEmitNode,v=n.onSetSourceFile,b=n.substituteNode,x=n.onBeforeEmitNodeArray,S=n.onAfterEmitNodeArray,k=n.onBeforeEmitToken,D=n.onAfterEmitToken,T=e.getNewLineCharacter(t),C=e.createCommentWriter(t,y),E=C.emitNodeWithComments,N=C.emitBodyWithDetachedComments,A=C.emitTrailingCommentsOfPosition,P=C.emitLeadingCommentsOfPosition,w=function(e){F(),d.write(e)},F=e.noop,O=Qe,I=!1;t.omitTrailingSemicolon&&(F=function(){I&&(Qe(),I=!1)},O=function(){I=!0});var M,L={pos:-1,end:-1},R=e.getEmitModuleKind(t),B=e.createMap();return Q(),{printNode:function(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 273:return J(r);case 274:return j(r)}return z(t,r,n,V()),W()},printList:function(e,t,r){return K(e,t,r,V()),W()},printFile:J,printBundle:j,writeNode:z,writeList:K,writeFile:q,writeBundle:U};function j(e){return U(e,V()),W()}function J(e){return q(e,V()),W()}function z(e,t,r,n){var i=d;X(n),H(e,t,r),Q(),d=i}function K(e,t,r,n){var i=d;X(n),r&&G(r),qe(L,t,e),Q(),d=i}function U(e,t){M=!1;var r,n=d;X(t),we(e),Pe(e),se(e),Ee((r=e).hasNoDefaultLib,r.syntheticFileReferences||[],r.syntheticTypeReferences||[]);for(var i=0,a=e.sourceFiles;i<a.length;i++){var o=a[i];H(0,o,o)}Q(),d=n}function q(e,t){M=!0;var r=d;X(t),we(e),Pe(e),H(0,e,e),Q(),d=r}function V(){return p||(p=e.createTextWriter(T))}function W(){var e=p.getText();return p.clear(),e}function H(e,t,r){r&&G(r),te(e,t)}function G(e){i=e,C.setSourceFile(e),v&&v(e)}function X(e){d=e,C.setWriter(e)}function Q(){a=[],o=[],s=e.createMap(),c=[],u=0,l=[],C.reset(),X(void 0)}function Y(e){e&&$(e)}function $(e){te(4,e)}function Z(e){te(2,e)}function ee(e){te(1,e)}function te(e,t){h?h(e,t,re):re(e,t)}function re(e,t){t=oe(e,t),E&&0!==e?E(e,t,ne):ne(e,t)}function ne(e,t){m&&0!==e&&2!==e?m(e,t,ie):ie(e,t)}function ie(t,r){switch(t){case 0:return function(t){e.Debug.assertNode(t,e.isSourceFile),function(t){rt();var r=t.statements;if(N){var n=0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]);if(n)return void N(t,r,Ne)}Ne(t)}(t)}(r);case 2:return function(t){e.Debug.assertNode(t,e.isIdentifier),ue(t)}(r);case 1:return ae(r);case 3:return function(e){$(e.name),et(),Ye("in"),et(),Y(e.constraint)}(e.cast(r,e.isTypeParameterDeclaration));case 4:return function(t){var r=t.kind;if(e.isKeyword(r))return void ot(t,Ye);switch(r){case 14:case 15:case 16:return ce(t);case 71:return ue(t);case 145:return function(e){(function(e){71===e.kind?ee(e):$(e)})(e.left),Xe("."),$(e.right)}(t);case 146:return function(e){Xe("["),ee(e.expression),Xe("]")}(t);case 147:return function(e){$(e.name),e.constraint&&(et(),Ye("extends"),et(),$(e.constraint));e.default&&(et(),$e("="),et(),$(e.default))}(t);case 148:return function(e){je(e,e.decorators),Oe(e,e.modifiers),Y(e.dotDotDotToken),e.name&&Fe(e.name,Ze);Y(e.questionToken),e.parent&&281===e.parent.kind&&!e.name?Y(e.type):Ie(e.type);Me(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e)}(t);case 149:return n=t,Xe("@"),void ee(n.expression);case 150:return function(e){je(e,e.decorators),Oe(e,e.modifiers),Fe(e.name,tt),Y(e.questionToken),Ie(e.type),O()}(t);case 151:return function(e){je(e,e.decorators),Oe(e,e.modifiers),$(e.name),Y(e.questionToken),Y(e.exclamationToken),Ie(e.type),Me(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),O()}(t);case 152:return function(e){je(e,e.decorators),Oe(e,e.modifiers),$(e.name),Y(e.questionToken),ze(e,e.typeParameters),Ke(e,e.parameters),Ie(e.type),O()}(t);case 153:return function(e){je(e,e.decorators),Oe(e,e.modifiers),Y(e.asteriskToken),$(e.name),Y(e.questionToken),ye(e,he)}(t);case 154:return function(e){Oe(e,e.modifiers),Ye("constructor"),ye(e,he)}(t);case 155:case 156:return function(e){je(e,e.decorators),Oe(e,e.modifiers),Ye(155===e.kind?"get":"set"),et(),$(e.name),ye(e,he)}(t);case 157:return function(e){je(e,e.decorators),Oe(e,e.modifiers),ze(e,e.typeParameters),Ke(e,e.parameters),Ie(e.type),O()}(t);case 158:return function(e){je(e,e.decorators),Oe(e,e.modifiers),Ye("new"),et(),ze(e,e.typeParameters),Ke(e,e.parameters),Ie(e.type),O()}(t);case 159:return function(e){je(e,e.decorators),Oe(e,e.modifiers),t=e,r=e.parameters,qe(t,r,4432),Ie(e.type),O();var t,r}(t);case 160:return function(e){$(e.parameterName),et(),Ye("is"),et(),$(e.type)}(t);case 161:return function(e){$(e.typeName),Je(e,e.typeArguments)}(t);case 162:return function(e){ze(e,e.typeParameters),Ue(e,e.parameters),et(),Xe("=>"),et(),Y(e.type)}(t);case 281:return function(e){w("function"),Ke(e,e.parameters),w(":"),Y(e.type)}(t);case 163:return function(e){Ye("new"),et(),ze(e,e.typeParameters),Ke(e,e.parameters),et(),Xe("=>"),et(),Y(e.type)}(t);case 164:return function(e){Ye("typeof"),et(),$(e.exprName)}(t);case 165:return function(t){Xe("{");var r=1&e.getEmitFlags(t)?384:16449;qe(t,t.members,262144|r),Xe("}")}(t);case 166:return function(e){$(e.elementType),Xe("["),Xe("]")}(t);case 167:return function(e){Xe("["),qe(e,e.elementTypes,272),Xe("]")}(t);case 168:return function(e){qe(e,e.types,260)}(t);case 169:return function(e){qe(e,e.types,264)}(t);case 170:return function(e){$(e.checkType),et(),Ye("extends"),et(),$(e.extendsType),et(),Xe("?"),et(),$(e.trueType),et(),Xe(":"),et(),$(e.falseType)}(t);case 171:return function(e){Ye("infer"),et(),$(e.typeParameter)}(t);case 172:return function(e){Xe("("),$(e.type),Xe(")")}(t);case 206:return function(e){ee(e.expression),Je(e,e.typeArguments)}(t);case 173:return void Ye("this");case 174:return function(e){st(e.operator,Ye),et(),$(e.type)}(t);case 175:return function(e){$(e.objectType),Xe("["),$(e.indexType),Xe("]")}(t);case 176:return function(t){var r=e.getEmitFlags(t);Xe("{"),1&r?et():(rt(),nt());t.readonlyToken&&($(t.readonlyToken),132!==t.readonlyToken.kind&&Ye("readonly"),et());Xe("["),te(3,t.typeParameter),Xe("]"),t.questionToken&&($(t.questionToken),55!==t.questionToken.kind&&Xe("?"));Xe(":"),et(),Y(t.type),O(),1&r?et():(rt(),it());Xe("}")}(t);case 177:return function(e){ee(e.literal)}(t);case 178:return function(e){e.isTypeOf&&(Ye("typeof"),et());Ye("import"),Xe("("),$(e.argument),Xe(")"),e.qualifier&&(Xe("."),$(e.qualifier));Je(e,e.typeArguments)}(t);case 276:return void w("*");case 277:return void w("?");case 278:return function(e){w("?"),$(e.type)}(t);case 279:return function(e){w("!"),$(e.type)}(t);case 280:return function(e){$(e.type),w("=")}(t);case 282:return function(e){w("..."),$(e.type)}(t);case 179:return function(e){Xe("{"),qe(e,e.elements,262576),Xe("}")}(t);case 180:return function(e){Xe("["),qe(e,e.elements,262448),Xe("]")}(t);case 181:return function(e){Y(e.dotDotDotToken),e.propertyName&&($(e.propertyName),Xe(":"),et());$(e.name),Me(e.initializer,e.name.end,e)}(t);case 210:return function(e){ee(e.expression),$(e.literal)}(t);case 211:return void O();case 212:return function(e){_e(e,!e.multiLine&&yt(e))}(t);case 213:return function(e){Oe(e,e.modifiers),$(e.declarationList),O()}(t);case 214:return void O();case 215:return function(e){ee(e.expression),O()}(t);case 216:return function(e){var t=fe(90,e.pos,Ye,e);et(),fe(19,t,Xe,e),ee(e.expression),fe(20,e.expression.end,Xe,e),Be(e,e.thenStatement),e.elseStatement&&(ct(e),fe(82,e.thenStatement.end,Ye,e),216===e.elseStatement.kind?(et(),$(e.elseStatement)):Be(e,e.elseStatement))}(t);case 217:return function(t){fe(81,t.pos,Ye,t),Be(t,t.statement),e.isBlock(t.statement)?et():ct(t);de(t,t.statement.end),Xe(";")}(t);case 218:return function(e){de(e,e.pos),Be(e,e.statement)}(t);case 219:return function(e){var t=fe(88,e.pos,Ye,e);et();var r=fe(19,t,Xe,e);pe(e.initializer),r=fe(25,e.initializer?e.initializer.end:r,O,e),Re(e.condition),r=fe(25,e.condition?e.condition.end:r,O,e),Re(e.incrementor),fe(20,e.incrementor?e.incrementor.end:r,Xe,e),Be(e,e.statement)}(t);case 220:return function(e){var t=fe(88,e.pos,Ye,e);et(),fe(19,t,Xe,e),pe(e.initializer),et(),fe(92,e.initializer.end,Ye,e),et(),ee(e.expression),fe(20,e.expression.end,Xe,e),Be(e,e.statement)}(t);case 221:return function(e){var t=fe(88,e.pos,Ye,e);et(),function(e){e&&($(e),et())}(e.awaitModifier),fe(19,t,Xe,e),pe(e.initializer),et(),fe(144,e.initializer.end,Ye,e),et(),ee(e.expression),fe(20,e.expression.end,Xe,e),Be(e,e.statement)}(t);case 222:return function(e){fe(77,e.pos,Ye,e),Le(e.label),O()}(t);case 223:return function(e){fe(72,e.pos,Ye,e),Le(e.label),O()}(t);case 224:return function(e){fe(96,e.pos,Ye,e),Re(e.expression),O()}(t);case 225:return function(e){var t=fe(107,e.pos,Ye,e);et(),fe(19,t,Xe,e),ee(e.expression),fe(20,e.expression.end,Xe,e),Be(e,e.statement)}(t);case 226:return function(e){var t=fe(98,e.pos,Ye,e);et(),fe(19,t,Xe,e),ee(e.expression),fe(20,e.expression.end,Xe,e),et(),$(e.caseBlock)}(t);case 227:return function(e){$(e.label),fe(56,e.label.end,Xe,e),et(),$(e.statement)}(t);case 228:return function(e){fe(100,e.pos,Ye,e),Re(e.expression),O()}(t);case 229:return function(e){fe(102,e.pos,Ye,e),et(),$(e.tryBlock),e.catchClause&&(ct(e),$(e.catchClause));e.finallyBlock&&(ct(e),fe(87,(e.catchClause||e.tryBlock).end,Ye,e),et(),$(e.finallyBlock))}(t);case 230:return function(e){at(78,e.pos,Ye),O()}(t);case 231:return function(e){$(e.name),Ie(e.type),Me(e.initializer,e.type?e.type.end:e.name.end,e)}(t);case 232:return function(t){Ye(e.isLet(t)?"let":e.isConst(t)?"const":"var"),et(),qe(t,t.declarations,272)}(t);case 233:return function(e){me(e)}(t);case 234:return function(e){Se(e)}(t);case 235:return function(e){je(e,e.decorators),Oe(e,e.modifiers),Ye("interface"),et(),$(e.name),ze(e,e.typeParameters),qe(e,e.heritageClauses,256),et(),Xe("{"),qe(e,e.members,65),Xe("}")}(t);case 236:return function(e){je(e,e.decorators),Oe(e,e.modifiers),Ye("type"),et(),$(e.name),ze(e,e.typeParameters),et(),Xe("="),et(),$(e.type),O()}(t);case 237:return function(e){Oe(e,e.modifiers),Ye("enum"),et(),$(e.name),et(),Xe("{"),qe(e,e.members,81),Xe("}")}(t);case 238:return function(e){Oe(e,e.modifiers),512&~e.flags&&(Ye(16&e.flags?"namespace":"module"),et());$(e.name);var t=e.body;if(!t)return O();for(;238===t.kind;)Xe("."),$(t.name),t=t.body;et(),$(t)}(t);case 239:return function(e){xt(e),_e(e,yt(e)),St(e)}(t);case 240:return function(e){fe(17,e.pos,Xe,e),qe(e,e.clauses,65),fe(18,e.clauses.end,Xe,e,!0)}(t);case 241:return function(e){var t=fe(84,e.pos,Ye,e);et(),t=fe(118,t,Ye,e),et(),t=fe(130,t,Ye,e),et(),$(e.name),O()}(t);case 242:return function(e){Oe(e,e.modifiers),fe(91,e.modifiers?e.modifiers.end:e.pos,Ye,e),et(),$(e.name),et(),fe(58,e.name.end,Xe,e),et(),function(e){71===e.kind?ee(e):$(e)}(e.moduleReference),O()}(t);case 243:return function(e){Oe(e,e.modifiers),fe(91,e.modifiers?e.modifiers.end:e.pos,Ye,e),et(),e.importClause&&($(e.importClause),et(),fe(142,e.importClause.end,Ye,e),et());ee(e.moduleSpecifier),O()}(t);case 244:return function(e){Y(e.name),e.name&&e.namedBindings&&(fe(26,e.name.end,Xe,e),et());Y(e.namedBindings)}(t);case 245:return function(e){var t=fe(39,e.pos,Xe,e);et(),fe(118,t,Ye,e),et(),$(e.name)}(t);case 246:return function(e){ke(e)}(t);case 247:return function(e){De(e)}(t);case 248:return function(e){var t=fe(84,e.pos,Ye,e);et(),e.isExportEquals?fe(58,t,$e,e):fe(79,t,Ye,e);et(),ee(e.expression),O()}(t);case 249:return function(e){var t=fe(84,e.pos,Ye,e);et(),e.exportClause?$(e.exportClause):t=fe(39,t,Xe,e);if(e.moduleSpecifier){et();var r=e.exportClause?e.exportClause.end:t;fe(142,r,Ye,e),et(),ee(e.moduleSpecifier)}O()}(t);case 250:return function(e){ke(e)}(t);case 251:return function(e){De(e)}(t);case 252:return;case 253:return function(e){Ye("require"),Xe("("),ee(e.expression),Xe(")")}(t);case 10:return function(e){F(),d.writeLiteral(vt(e,!0))}(t);case 256:case 259:return function(t){Xe("<"),e.isJsxOpeningElement(t)&&(Te(t.tagName),t.attributes.properties&&t.attributes.properties.length>0&&et(),$(t.attributes));Xe(">")}(t);case 257:case 260:return function(t){Xe("</"),e.isJsxClosingElement(t)&&Te(t.tagName);Xe(">")}(t);case 261:return function(e){$(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",Xe,e.initializer,$)}(t);case 262:return function(e){qe(e,e.properties,131328)}(t);case 263:return function(e){Xe("{..."),ee(e.expression),Xe("}")}(t);case 264:return function(e){e.expression&&(Xe("{"),Y(e.dotDotDotToken),ee(e.expression),Xe("}"))}(t);case 265:return function(e){fe(73,e.pos,Ye,e),et(),ee(e.expression),Ce(e,e.statements,e.expression.end)}(t);case 266:return function(e){var t=fe(79,e.pos,Ye,e);Ce(e,e.statements,t)}(t);case 267:return function(e){et(),st(e.token,Ye),et(),qe(e,e.types,272)}(t);case 268:return function(e){var t=fe(74,e.pos,Ye,e);et(),e.variableDeclaration&&(fe(19,t,Xe,e),$(e.variableDeclaration),fe(20,e.variableDeclaration.end,Xe,e),et());$(e.block)}(t);case 269:return function(t){$(t.name),Xe(":"),et();var r=t.initializer;if(A&&0==(512&e.getEmitFlags(r))){var n=e.getCommentRange(r);A(n.pos)}ee(r)}(t);case 270:return function(e){$(e.name),e.objectAssignmentInitializer&&(et(),Xe("="),et(),ee(e.objectAssignmentInitializer))}(t);case 271:return function(e){e.expression&&(Xe("..."),ee(e.expression))}(t);case 272:return function(e){$(e.name),Me(e.initializer,e.name.end,e)}(t)}var n;if(e.isExpression(t))return ae(oe(1,t));if(e.isToken(t))return void ot(t,Xe)}(r)}}function ae(r){switch(r.kind){case 8:return function(e){ce(e)}(r);case 9:case 12:case 13:return ce(r);case 71:return ue(r);case 86:case 95:case 97:case 101:case 99:case 91:return void ot(r,Ye);case 182:return function(e){var t=e.elements,r=e.multiLine?32768:0;Ve(e,t,4466|r)}(r);case 183:return function(t){var r=65536&e.getEmitFlags(t);r&&nt();var n=t.multiLine?32768:0,a=i.languageVersion>=1?32:0;qe(t,t.properties,263122|a|n),r&&it()}(r);case 184:return function(r){var n=!1,a=!1;if(!(131072&e.getEmitFlags(r))){var o=r.expression.end,s=e.skipTrivia(i.text,r.expression.end)+1,c=e.createToken(23);c.pos=o,c.end=s,n=gt(r,r.expression,c),a=gt(r,c,r.name)}ee(r.expression),lt(n),!n&&function(r){if(r=e.skipPartiallyEmittedExpressions(r),e.isNumericLiteral(r)){var n=bt(r);return!r.numericLiteralFlags&&!e.stringContains(n,e.tokenToString(23))}if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)){var i=e.getConstantValue(r);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}(r.expression)&&Xe(".");fe(23,r.expression.end,Xe,r),lt(a),$(r.name),_t(n,a)}(r);case 185:return function(e){ee(e.expression);var t=fe(21,e.expression.end,Xe,e);ee(e.argumentExpression),fe(22,e.argumentExpression?e.argumentExpression.end:t,Xe,e)}(r);case 186:return function(e){ee(e.expression),Je(e,e.typeArguments),Ve(e,e.arguments,1296)}(r);case 187:return function(e){fe(94,e.pos,Ye,e),et(),ee(e.expression),Je(e,e.typeArguments),Ve(e,e.arguments,9488)}(r);case 188:return function(e){ee(e.tag),Je(e,e.typeArguments),et(),ee(e.template)}(r);case 189:return function(e){Xe("<"),$(e.type),Xe(">"),ee(e.expression)}(r);case 190:return function(e){var t=fe(19,e.pos,Xe,e);ee(e.expression),fe(20,e.expression?e.expression.end:t,Xe,e)}(r);case 191:return function(e){me(e)}(r);case 192:return function(e){je(e,e.decorators),Oe(e,e.modifiers),ye(e,le)}(r);case 193:return function(e){fe(80,e.pos,Ye,e),et(),ee(e.expression)}(r);case 194:return function(e){fe(103,e.pos,Ye,e),et(),ee(e.expression)}(r);case 195:return function(e){fe(105,e.pos,Ye,e),et(),ee(e.expression)}(r);case 196:return function(e){fe(121,e.pos,Ye,e),et(),ee(e.expression)}(r);case 197:return function(e){st(e.operator,$e),function(e){var t=e.operand;return 197===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}(e)&&et();ee(e.operand)}(r);case 198:return function(e){ee(e.operand),st(e.operator,$e)}(r);case 199:return function(e){var t=26!==e.operatorToken.kind,r=gt(e,e.left,e.operatorToken),n=gt(e,e.operatorToken,e.right);ee(e.left),lt(r,t?" ":void 0),P(e.operatorToken.pos),ot(e.operatorToken,$e),A(e.operatorToken.end,!0),lt(n," "),ee(e.right),_t(r,n)}(r);case 200:return function(e){var t=gt(e,e.condition,e.questionToken),r=gt(e,e.questionToken,e.whenTrue),n=gt(e,e.whenTrue,e.colonToken),i=gt(e,e.colonToken,e.whenFalse);ee(e.condition),lt(t," "),$(e.questionToken),lt(r," "),ee(e.whenTrue),_t(t,r),lt(n," "),$(e.colonToken),lt(i," "),ee(e.whenFalse),_t(n,i)}(r);case 201:return function(e){$(e.head),qe(e,e.templateSpans,131072)}(r);case 202:return function(e){fe(116,e.pos,Ye,e),Y(e.asteriskToken),Re(e.expression)}(r);case 203:return function(e){Xe("..."),ee(e.expression)}(r);case 204:return function(e){Se(e)}(r);case 205:return;case 207:return function(e){ee(e.expression),e.type&&(et(),Ye("as"),et(),$(e.type))}(r);case 208:return function(e){ee(e.expression),$e("!")}(r);case 209:return function(e){at(e.keywordToken,e.pos,Xe),Xe("."),$(e.name)}(r);case 254:return function(e){$(e.openingElement),qe(e,e.children,131072),$(e.closingElement)}(r);case 255:return function(e){Xe("<"),Te(e.tagName),et(),$(e.attributes),Xe("/>")}(r);case 258:return function(e){$(e.openingFragment),qe(e,e.children,131072),$(e.closingFragment)}(r);case 296:return function(e){ee(e.expression)}(r);case 297:return function(e){Ve(e,e.elements,272)}(r)}}function oe(e,t){return t&&b&&b(e,t)||t}function se(r){var n=!1,a=274===r.kind?r:void 0;if(!a||R!==e.ModuleKind.None){for(var o=a?a.sourceFiles.length:1,s=0;s<o;s++){var c=a?a.sourceFiles[s]:r,u=e.isSourceFile(c)?c:i,l=t.noEmitHelpers||void 0!==e.getExternalHelpersModuleName(u),_=e.isSourceFile(c)&&!M,d=e.getEmitHelpers(c);if(d)for(var p=0,f=e.stableSort(d,e.compareEmitHelpers);p<f.length;p++){var m=f[p];if(m.scoped){if(a)continue}else{if(l)continue;if(_){if(B.get(m.name))continue;B.set(m.name,!0)}}"string"==typeof m.text?ut(m.text):ut(m.text(At)),n=!0}}return n}}function ce(r){var n,i=bt(r);!t.sourceMap&&!t.inlineSourceMap||9!==r.kind&&!e.isTemplateLiteralKind(r.kind)?function(e){F(),d.writeStringLiteral(e)}(i):(n=i,F(),d.writeLiteral(n))}function ue(e){(e.symbol?Ge:w)(vt(e,!1),e.symbol),qe(e,e.typeArguments,26896)}function le(e){ze(e,e.typeParameters),Ue(e,e.parameters),Ie(e.type),et(),$(e.equalsGreaterThanToken)}function _e(t,r){fe(17,t.pos,Xe,t);var n=r||1&e.getEmitFlags(t)?384:65;qe(t,t.statements,n),fe(18,t.statements.end,Xe,t,!!(1&n))}function de(e,t){var r=fe(106,t,Ye,e);et(),fe(19,r,Xe,e),ee(e.expression),fe(20,e.expression.end,Xe,e)}function pe(e){void 0!==e&&(232===e.kind?$(e):ee(e))}function fe(t,r,n,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,u=r;if(c&&(r=e.skipTrivia(i.text,r)),P&&c&&a.pos!==u){var l=o&&!e.positionsAreOnSameLine(u,r,i);l&&nt(),P(u),l&&it()}return r=st(t,n,r),A&&c&&a.end!==r&&A(r,!0),r}function me(e){je(e,e.decorators),Oe(e,e.modifiers),Ye("function"),Y(e.asteriskToken),et(),Z(e.name),ye(e,he)}function ge(e,t){ve(t)}function ye(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&nt(),xt(t),r(t),h?h(4,n,ge):ve(n),St(t),i&&it()}else r(t),et(),ee(n);else r(t),O()}function he(e){ze(e,e.typeParameters),Ke(e,e.parameters),Ie(e.type)}function ve(t){et(),Xe("{"),nt();var r=function(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,i))return!1;if(dt(t,t.statements,2)||ft(t,t.statements,2))return!1;for(var r,n=0,a=t.statements;n<a.length;n++){var o=a[n];if(pt(r,o,2))return!1;r=o}return!0}(t)?be:xe;N?N(t,t.statements,r):r(t),it(),at(18,t.statements.end,Xe,t)}function be(e){xe(e,!0)}function xe(e,t){var r=Ae(e.statements,!0),n=d.getTextPos();se(e),0===r&&n===d.getTextPos()&&t?(it(),qe(e,e.statements,384),nt()):qe(e,e.statements,1,r)}function Se(t){je(t,t.decorators),Oe(t,t.modifiers),Ye("class"),t.name&&(et(),Z(t.name));var r=65536&e.getEmitFlags(t);r&&nt(),ze(t,t.typeParameters),qe(t,t.heritageClauses,0),et(),Xe("{"),qe(t,t.members,65),Xe("}"),r&&it()}function ke(e){Xe("{"),qe(e,e.elements,262576),Xe("}")}function De(e){e.propertyName&&($(e.propertyName),et(),fe(118,e.propertyName.end,Ye,e),et()),$(e.name)}function Te(e){71===e.kind?ee(e):$(e)}function Ce(t,r,n){var a=81985;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(at(56,n,Xe,t),et(),a&=-66):fe(56,n,Xe,t),qe(t,r,a)}function Ee(e,t,r){if(e&&(w('/// <reference no-default-lib="true"/>'),rt()),i&&i.moduleName&&(w('/// <amd-module name="'+i.moduleName+'" />'),rt()),i&&i.amdDependencies)for(var n=0,a=i.amdDependencies;n<a.length;n++){var o=a[n];o.name?w('/// <amd-dependency name="'+o.name+'" path="'+o.path+'" />'):w('/// <amd-dependency path="'+o.path+'" />'),rt()}for(var s=0,c=t;s<c.length;s++){var u=c[s];w('/// <reference path="'+u.fileName+'" />'),rt()}for(var l=0,_=r;l<_.length;l++){u=_[l];w('/// <reference types="'+u.fileName+'" />'),rt()}}function Ne(t){var r=t.statements;xt(t),se(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});!function(e){e.isDeclarationFile&&Ee(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives)}(t),qe(t,r,1,-1===n?r.length:n),St(t)}function Ae(t,r,n){for(var i=0;i<t.length;i++){var a=t[i];if(!e.isPrologueDirective(a))return i;(!n||!n.has(a.expression.text))&&((r||i>0)&&rt(),$(a),n&&n.set(a.expression.text,!0))}return t.length}function Pe(t){if(e.isSourceFile(t))G(t),Ae(t.statements);else for(var r=e.createMap(),n=0,i=t.sourceFiles;n<i.length;n++){var a=i[n];G(a),Ae(a.statements,!0,r)}}function we(t){if(e.isSourceFile(t)){var r=e.getShebang(t.text);if(r)return w(r),rt(),!0}else for(var n=0,i=t.sourceFiles;n<i.length;n++){if(we(i[n]))break}}function Fe(e,t){var r=w;w=t,$(e),w=r}function Oe(e,t){t&&t.length&&(qe(e,t,131328),et())}function Ie(e){e&&(Xe(":"),et(),$(e))}function Me(e,t,r){e&&(et(),fe(58,t,$e,r),et(),ee(e))}function Le(e){e&&(et(),$(e))}function Re(e){e&&(et(),ee(e))}function Be(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(et(),$(r)):(rt(),nt(),$(r),it())}function je(e,t){qe(e,t,24577)}function Je(e,t){qe(e,t,26896)}function ze(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return Je(t,t.typeArguments);qe(t,r,26896)}function Ke(e,t){qe(e,t,1296)}function Ue(t,r){!function(t,r){var n=e.singleOrUndefined(r);return n&&n.pos===t.pos&&!(e.isArrowFunction(t)&&t.type)&&!e.some(t.decorators)&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&e.isIdentifier(n.name)}(t,r)?Ke(t,r):qe(t,r,272)}function qe(e,t,r,n,i){He($,e,t,r,n,i)}function Ve(e,t,r,n,i){He(ee,e,t,r,n,i)}function We(e){switch(28&e){case 0:break;case 16:Xe(",");break;case 4:et(),Xe("|");break;case 8:et(),Xe("&")}}function He(t,n,i,a,o,s){void 0===o&&(o=0),void 0===s&&(s=i?i.length-o:0);var c=void 0===i;if(!(c&&8192&a)){var u=c||o>=i.length||0===s;if(u&&16384&a)return x&&x(i),void(S&&S(i));if(7680&a&&(Xe(function(e){return r[7680&e][0]}(a)),u&&!c&&A(i.pos,!0)),x&&x(i),u)1&a?rt():128&a&&!(262144&a)&&et();else{var l=0==(131072&a),_=l;dt(n,i,a)?(rt(),_=!1):128&a&&et(),64&a&&nt();for(var d=void 0,p=void 0,f=0;f<s;f++){var m=i[o+f];if(d&&(28&a&&d.end!==n.end&&P(d.end),We(a),pt(d,m,a)?(0==(67&a)&&(nt(),p=!0),rt(),_=!1):d&&256&a&&et()),_){if(A){var g=e.getCommentRange(m);A(g.pos)}}else _=l;t(m),p&&(it(),p=!1),d=m}var y=32&a&&i.hasTrailingComma;16&a&&y&&Xe(","),d&&28&a&&d.end!==n.end&&!(1024&e.getEmitFlags(d))&&P(d.end),64&a&&it(),ft(n,i,a)?rt():128&a&&et()}S&&S(i),7680&a&&(u&&!c&&P(i.end),Xe(function(e){return r[7680&e][1]}(a)))}}function Ge(e,t){F(),d.writeSymbol(e,t)}function Xe(e){F(),d.writePunctuation(e)}function Qe(){d.writePunctuation(";")}function Ye(e){F(),d.writeKeyword(e)}function $e(e){F(),d.writeOperator(e)}function Ze(e){F(),d.writeParameter(e)}function et(){F(),d.writeSpace(" ")}function tt(e){F(),d.writeProperty(e)}function rt(){F(),d.writeLine()}function nt(){F(),d.increaseIndent()}function it(){F(),d.decreaseIndent()}function at(e,t,r,n){return g?g(n,e,r,t,st):st(e,r,t)}function ot(t,r){k&&k(t),r(e.tokenToString(t.kind)),D&&D(t)}function st(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function ct(t){1&e.getEmitFlags(t)?et():rt()}function ut(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i<a.length;i++){var o=a[i],s=n?o.slice(n):o;s.length&&(rt(),w(s),rt())}}function lt(e,t){e?(nt(),rt()):t&&w(t)}function _t(e,t){e&&it(),t&&it()}function dt(t,r,n){if(1&n)return!0;if(2&n){if(32768&n)return!0;var a=r[0];return void 0===a?!e.rangeIsOnSingleLine(t,i):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?mt(a,n):!e.rangeStartPositionsAreOnSameLine(t,a,i)}return!1}function pt(t,r,n){return!!(1&n)||(2&n?void 0!==t&&void 0!==r&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)?mt(t,n)||mt(r,n):!e.rangeEndIsOnSameLineAsRangeStart(t,r,i)):e.getStartsOnNewLine(r))}function ft(t,r,n){if(1&n)return 0==(65536&n);if(2&n){if(32768&n)return!0;var a=e.lastOrUndefined(r);return void 0===a?!e.rangeIsOnSingleLine(t,i):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?mt(a,n):!e.rangeEndPositionsAreOnSameLine(t,a,i)}return!1}function mt(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(32768&r):n}return 0!=(32768&r)}function gt(t,r,n){return t=ht(t),r=ht(r),n=ht(n),!!e.getStartsOnNewLine(n)||!(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)||e.rangeEndIsOnSameLineAsRangeStart(r,n,i))}function yt(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,i)}function ht(t){for(;190===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function vt(t,r){return e.isGeneratedIdentifier(t)?function(t){if(4==(7&t.autoGenerateFlags)){if(8&t.autoGenerateFlags){var r=u;St(void 0);var n=Dt(Pt(t));return xt(void 0),u=r,n}return Dt(Pt(t))}var i=t.autoGenerateId;return o[i]||(o[i]=function(t){switch(7&t.autoGenerateFlags){case 1:return Et(0,!!(16&t.autoGenerateFlags));case 2:return Et(268435456,!!(16&t.autoGenerateFlags));case 3:return Nt(e.idText(t),64&t.autoGenerateFlags?Ct:Tt,!!(32&t.autoGenerateFlags))}e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}(t):!e.isIdentifier(t)||!e.nodeIsSynthesized(t)&&t.parent?9===t.kind&&t.textSourceNode?vt(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(i,t,r):t.text:e.idText(t)}function bt(t){if(9===t.kind&&t.textSourceNode){var r=t.textSourceNode;return e.isIdentifier(r)?16777216&e.getEmitFlags(t)?'"'+e.escapeString(vt(r))+'"':'"'+e.escapeNonAsciiString(vt(r))+'"':bt(r)}return e.getLiteralText(t,i)}function xt(t){t&&524288&e.getEmitFlags(t)||(c.push(u),u=0,l.push(_))}function St(t){t&&524288&e.getEmitFlags(t)||(u=c.pop(),_=l.pop())}function kt(t){_&&_!==e.lastOrUndefined(l)||(_=e.createMap()),_.set(t,!0)}function Dt(t){var r=e.getNodeId(t);return a[r]||(a[r]=function(t){switch(t.kind){case 71:return Nt(vt(t));case 238:case 237:return function(t){var r=vt(t.name);return function(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&70362047&i.flags)return!1}return!0}(r,t)?r:Nt(r)}(t);case 243:case 249:return function(t){var r=e.getExternalModuleName(t);return Nt(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 233:case 234:case 248:return Nt("default");case 204:return Nt("class");case 153:case 155:case 156:return function(t){if(e.isIdentifier(t.name))return Dt(t.name);return Et(0)}(t);default:return Et(0)}}(t))}function Tt(e){return Ct(e)&&!s.has(e)&&!(_&&_.has(e))}function Ct(t){return e.isFileLevelUniqueName(i,t,f)}function Et(e,t){if(e&&!(u&e)&&Tt(r=268435456===e?"_i":"_n"))return u|=e,t&&kt(r),r;for(;;){var r,n=268435455&u;if(u++,8!==n&&13!==n)if(Tt(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&kt(r),r}}function Nt(e,t,r){if(void 0===t&&(t=Tt),r&&t(e))return s.set(e,!0),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var n=1;;){var i=e+n;if(t(i))return s.set(i,!0),i;n++}}function At(e){return Nt(e,Ct,!0)}function Pt(t){for(var r=t.autoGenerateId,n=t,i=n.original;i&&(n=i,!e.isIdentifier(n)||4!==n.autoGenerateFlags||n.autoGenerateId===r);)i=n.original;return n}}e.forEachEmittedFile=i,e.getOutputPathsFor=a,e.emitFiles=function(t,r,a,o,c){var u=r.getCompilerOptions(),l=u.sourceMap||u.inlineSourceMap||e.getAreDeclarationMapsEnabled(u)?[]:void 0,_=u.listEmittedFiles?[]:void 0,d=e.createDiagnosticCollection(),p=r.getNewLine(),f=e.createTextWriter(p),m=e.createSourceMapWriter(r,f),g=e.createSourceMapWriter(r,f,{sourceMap:u.declarationMap,sourceRoot:u.sourceRoot,mapRoot:u.mapRoot,extendedDiagnostics:u.extendedDiagnostics}),y=!1;return e.performance.mark("beforePrint"),i(r,function(i,a){var l=i.jsFilePath,p=i.sourceMapFilePath,f=i.declarationFilePath,x=i.declarationMapPath;(function(i,a,l){var _=e.isSourceFile(i)?[i]:i.sourceFiles;if(r.isEmitBlocked(a)||u.noEmit||u.emitDeclarationOnly)y=!0;else if(!o){var d=e.transformNodes(t,r,u,_,c,!1),p=s(n({},u,{noEmitHelpers:u.noEmitHelpers}),{hasGlobalName:t.hasGlobalName,onEmitNode:d.emitNodeWithNotification,substituteNode:d.substituteNode,onEmitSourceMapOfNode:m.emitNodeWithSourceMap,onEmitSourceMapOfToken:m.emitTokenWithSourceMap,onEmitSourceMapOfPosition:m.emitPos,onSetSourceFile:v});h(a,l,e.isSourceFile(i)?d.transformed[0]:e.createBundle(d.transformed),p,m),d.dispose()}})(a,l,p),function(i,a,c){if(a&&!e.isInJavaScriptFile(i)){var l=e.isSourceFile(i)?[i]:i.sourceFiles,_=e.filter(l,e.isSourceFileNotJavaScript),p=u.outFile||u.out?[e.createBundle(_)]:_,f=e.transformNodes(t,r,u,p,[e.transformDeclarations],!1);if(e.length(f.diagnostics))for(var m=0,v=f.diagnostics;m<v.length;m++){var x=v[m];d.add(x)}var S=s(n({},u,{onlyPrintJsDocStyle:!0,noEmitHelpers:!0}),{hasGlobalName:t.hasGlobalName,onEmitSourceMapOfNode:g.emitNodeWithSourceMap,onEmitSourceMapOfToken:g.emitTokenWithSourceMap,onEmitSourceMapOfPosition:g.emitPos,onSetSourceFile:b,onEmitNode:f.emitNodeWithNotification,substituteNode:f.substituteNode}),k=!!f.diagnostics&&!!f.diagnostics.length||!!r.isEmitBlocked(a)||!!u.noEmit;y=y||k,(!k||o)&&h(a,c,f.transformed[0],S,g),f.dispose()}}(a,f,x),!y&&_&&(o||_.push(l),p&&_.push(p),f&&_.push(f))},e.getSourceFilesToEmit(r,a),o),e.performance.measure("printTime","beforePrint"),{emitSkipped:y,diagnostics:d.getDiagnostics(),emittedFiles:_,sourceMaps:l};function h(t,n,i,a,o){var s=274===i.kind?i:void 0,c=273===i.kind?i:void 0,_=s?s.sourceFiles:[c];o.initialize(t,n||"",i,l),s?a.writeBundle(s,f):a.writeFile(c,f),f.writeLine();var p=o.getSourceMappingURL();p&&f.write("//# sourceMappingURL="+p),n&&e.writeFile(r,d,n,o.getText(),!1,_),e.writeFile(r,d,t,f.getText(),u.emitBOM,_),o.reset(),f.clear()}function v(e){m.setSourceFile(e)}function b(e){g.setSourceFile(e)}},e.createPrinter=s,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(t||(t={}))}(o||(o={})),function(e){var t;function r(e,t,r,n){return e.watchFile(t,r,n)}function n(e,t,r,n){return e.watchDirectory(t,r,0!=(1&n))}function i(e,r){switch(e){case t.None:return r;case t.TriggerOnly:return o;case t.Verbose:return a}}function a(e,t,r,n,i,a,c,u,l,_,d){l(_+":: Added:: "+s(t,n,a,c,d));var p=o(e,t,r,n,i,a,c,u,l,_,d);return{close:function(){l(_+":: Close:: "+s(t,n,a,c,d)),p.close()}}}function o(t,r,n,i,a,o,c,u,l,_,d){return u(t,r,function(t,u){var p=_+":: Triggered with "+t+(void 0!==u?u:"")+":: "+s(r,i,o,c,d);l(p);var f=e.timestamp();n(t,u,a);var m=e.timestamp()-f;l("Elapsed:: "+m+"ms "+p)},i)}function s(e,t,r,n,i){return"WatchInfo: "+e+" "+t+" "+(i?i(r,n):"")}function c(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(t,r,n){if(t.getDirectories&&t.readDirectory){var i=e.createMap(),a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists:function(e){var r=c(o(e));return r&&d(r.files,u(e))||t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:t.directoryExists&&function(e){var r=o(e);return i.has(r)||t.directoryExists(e)},getDirectories:function(e){var r=o(e),n=l(e,r);return n?n.directories.slice():t.getDirectories(e)},readDirectory:function(i,a,s,c,u){var _=o(i),d=l(i,_);return d?e.matchFiles(i,a,s,c,n,r,u,function(t){var r=o(t);return r===_?d:l(t,r)||e.emptyFileSystemEntries}):t.readDirectory(i,a,s,c,u)},createDirectory:t.createDirectory&&function(e){var r=c(o(e)),n=u(e);r&&p(r.directories,n,!0),t.createDirectory(e)},writeFile:t.writeFile&&function(e,r,n){var i=c(o(e));return i&&f(i,u(e),!0),t.writeFile(e,r,n)},addOrDeleteFileOrDirectory:function(e,r){if(s(r))m();else{var n=c(r);if(n){if(t.directoryExists){var i=u(e),a={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};return a.directoryExists||d(n.directories,i)?m():f(n,i,a.fileExists),a}m()}}},addOrDeleteFile:function(t,r,n){if(n!==e.FileWatcherEventKind.Changed){var i=c(r);i&&f(i,u(t),n===e.FileWatcherEventKind.Created)}},clearCache:m}}function o(t){return e.toPath(t,r,a)}function s(e){return i.get(e)}function c(t){return s(e.getDirectoryPath(t))}function u(t){return e.getBaseFileName(e.normalizePath(t))}function l(r,n){var a=s(n);if(a)return a;try{return function(r,n){var a={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),u)||[],directories:t.getDirectories(r)||[]};return i.set(n,a),a}(r,n)}catch(t){return void e.Debug.assert(!i.has(n))}}function _(e,t){return a(e)===a(t)}function d(t,r){return e.some(t,function(e){return _(e,r)})}function p(t,r,n){if(d(t,r)){if(!n)return e.filterMutate(t,function(e){return!_(e,r)})}else if(n)return t.push(r)}function f(e,t,r){p(e.files,t,r)}function m(){i.clear()}},function(e){e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={})),e.updateMissingFilePathsWatch=function(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToSet(i);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,r,n){function i(e,t){return{watcher:n(e,t),flags:t}}e.mutateMap(t,r,{createNewValue:i,onDeleteValue:c,onExistingValue:function(e,r,n){e.flags!==r&&(e.watcher.close(),t.set(n,i(n,r)))}})},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(e,a,o){return function(e,r,n,a,o){var s=i(e,a),c=e===t.None?function(e,t,r,n,i){return a(e,t,function(e,t){return r(e,t,i)},n)}:s,u=i(e,o);return{watchFile:function(e,t,i,o,c,u){return s(e,t,i,o,void 0,c,u,a,r,"FileWatcher",n)},watchFilePath:function(e,t,i,o,s,u,l){return c(e,t,i,o,s,u,l,a,r,"FileWatcher",n)},watchDirectory:function(e,t,i,a,s,c){return u(e,t,i,a,void 0,s,c,o,r,"DirectoryWatcher",n)}}}(e,a,o,r,n)},e.closeFileWatcherOf=c}(o||(o={})),function(e){var t,r=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function n(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function i(t,r,n){var i;return e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,r);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;s<o;s++)if(n(i[s])!==n(a[s])){if(0===s)return!0;i.length=s;break}a.length<i.length&&(i.length=a.length)}else i=a})?"":i?e.getNormalizedPathFromPathComponents(i):r}function a(t,r){var n,i=e.createMap();function a(t){t.length>e.getRootLength(t)&&!function(t){return!!i.has(t)||!!e.sys.directoryExists(t)&&(i.set(t,!0),!0)}(t)&&(a(e.getDirectoryPath(t)),e.sys.createDirectory(t))}function o(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var s=e.getNewLineCharacter(t),c=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:function(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=e.sys.readFile(n,t.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i,r):void 0},getDefaultLibLocation:o,getDefaultLibFileName:function(t){return e.combinePaths(o(),e.getDefaultLibFileName(t))},writeFile:function(r,i,o,s){try{e.performance.mark("beforeIOWrite"),a(e.getDirectoryPath(e.normalizePath(r))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?function(t,r,i){n||(n=e.createMap());var a=e.sys.createHash(r),o=e.sys.getModifiedTime(t);if(o){var s=n.get(t);if(s&&s.byteOrderMark===i&&s.hash===a&&s.mtime.getTime()===o.getTime())return}e.sys.writeFile(t,r,i);var c=e.sys.getModifiedTime(t);n.set(t,{hash:a,byteOrderMark:i,mtime:c})}(r,i,o):e.sys.writeFile(r,i,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){s&&s(e.message)}},getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:function(t){return e.sys.useCaseSensitiveFileNames?t:t.toLowerCase()},getNewLine:function(){return s},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+s)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:c}}function o(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+m(t.messageText,r.getNewLine())+r.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName;return e.convertToRelativePath(s,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)})+"("+(a+1)+","+(o+1)+"): "+n}return n}e.findConfigFile=function(t,r,n){return void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,function(t){var i=e.combinePaths(t,n);return r(i)?i:void 0})},e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=i,e.createCompilerHost=a,e.getPreEmitDiagnostics=function(t,r,n){var i=t.getConfigFileParsingDiagnostics().concat(t.getOptionsDiagnostics(n),t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));return t.getCompilerOptions().declaration&&e.addRange(i,t.getDeclarationDiagnostics(r,n)),e.sortAndDeduplicateDiagnostics(i)},e.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n<i.length;n++)r+=o(i[n],t);return r},e.formatDiagnostic=o,function(e){e.Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m"}(t=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var s="[30;47m",c=" ",u="[0m",l="...";function _(r){switch(r){case e.DiagnosticCategory.Error:return t.Red;case e.DiagnosticCategory.Warning:return t.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return t.Blue}}function d(e,t){return t+e+u}function f(e,t){for(;e.length<t;)e=" "+e;return e}function m(t,r){if(e.isString(t))return t;for(var n=t,i="",a=0;n;){if(a){i+=r;for(var o=0;o<a;o++)i+=" "}i+=n.messageText,a++,n=n.next}return i}function g(t,r,n){if(0===t.length)return[];for(var i=[],a=e.createMap(),o=0,s=t;o<s.length;o++){var c=s[o],u=void 0;a.has(c)?u=a.get(c):a.set(c,u=n(c,r)),i.push(u)}return i}function y(t,r){switch(r.extension){case".ts":case".d.ts":return;case".tsx":return n();case".jsx":return n()||i();case".js":return i()}function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return t.allowJs||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function h(e){for(var t=e.imports,r=e.moduleAugmentations,n=t.map(function(e){return e.text}),i=0,a=r;i<a.length;i++){var o=a[i];9===o.kind&&n.push(o.text)}return n}e.formatColorAndReset=d,e.formatDiagnosticsWithColorAndContext=function(r,n){for(var i="",a=0,o=r;a<o.length;a++){var p=o[a],g="";if(p.file){var y=p.start,h=p.length,v=p.file,b=e.getLineAndCharacterOfPosition(v,y),x=b.line,S=b.character,k=e.getLineAndCharacterOfPosition(v,y+h),D=k.line,T=k.character,C=e.getLineAndCharacterOfPosition(v,v.text.length).line,E=n?e.convertToRelativePath(v.fileName,n.getCurrentDirectory(),function(e){return n.getCanonicalFileName(e)}):v.fileName,N=D-x>=4,A=(D+1+"").length;N&&(A=Math.max(l.length,A));for(var P=x;P<=D;P++){g+=n.getNewLine(),N&&x+1<P&&P<D-1&&(g+=d(f(l,A),s)+c+n.getNewLine(),P=D-1);var w=e.getPositionOfLineAndCharacter(v,P,0),F=P<C?e.getPositionOfLineAndCharacter(v,P+1,0):v.text.length,O=v.text.slice(w,F);if(O=(O=O.replace(/\s+$/g,"")).replace("\t"," "),g+=d(f(P+1+"",A),s)+c,g+=O+n.getNewLine(),g+=d(f("",A),s)+c,g+=t.Red,P===x){var I=P===D?T:void 0;g+=O.slice(0,S).replace(/\S/g," "),g+=O.slice(S,I).replace(/./g,"~")}else g+=P===D?O.slice(0,T).replace(/./g,"~"):O.replace(/./g,"~");g+=u}i+=d(E,t.Cyan),i+=":",i+=d(""+(x+1),t.Yellow),i+=":",i+=d(""+(S+1),t.Yellow),i+=" - "}i+=d(e.diagnosticCategoryName(p),_(p.category)),i+=d(" TS"+p.code+": ",t.Grey),i+=m(p.messageText,n.getNewLine()),p.file&&(i+=n.getNewLine(),i+=g),i+=n.getNewLine()}return i+n.getNewLine()},e.flattenDiagnosticMessageText=m,e.isProgramUptoDate=function(t,r,n,i,a,o,s){if(!t||s)return!1;if(t.getRootFileNames().length!==r.length)return!1;if(t.getSourceFiles().some(function(e){return e.version!==i(e.path)||o(e.path)}))return!1;if(t.getMissingFilePaths().some(a))return!1;var c=t.getCompilerOptions();return!(!e.compareDataObjects(c,n)||c.configFile&&n.configFile&&c.configFile.text!==n.configFile.text)},e.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?e.options.configFile.parseDiagnostics.concat(e.errors):e.errors},e.createProgram=function(t,o,s,c,u){var l,_,d,f,m,v,b=[],x={},S={},k=e.createMap(),D=e.createDiagnosticCollection(),T="number"==typeof o.maxNodeModuleJsDepth?o.maxNodeModuleJsDepth:0,C=0,E=e.createMap(),N=e.createMap();e.performance.mark("beforeProgram"),s=s||a(o);var A,P,w,F,O=o.noLib,I=e.memoize(function(){return s.getDefaultLibFileName(o)}),M=s.getDefaultLibLocation?s.getDefaultLibLocation():e.getDirectoryPath(I()),L=e.createDiagnosticCollection(),R=s.getCurrentDirectory(),B=e.getSupportedExtensions(o),j=e.createMap(),J=s.hasInvalidatedResolution||e.returnFalse;if(s.resolveModuleNames)w=function(t,r,n){return s.resolveModuleNames(e.Debug.assertEachDefined(t),r,n).map(function(t){if(!t||void 0!==t.extension)return t;var r=e.clone(t);return r.extension=e.extensionFromPath(t.resolvedFileName),r})};else{P=e.createModuleResolutionCache(R,function(e){return s.getCanonicalFileName(e)});var z=function(t,r){return e.resolveModuleName(t,r,o,s,P).resolvedModule};w=function(t,r){return g(e.Debug.assertEachDefined(t),r,z)}}if(s.resolveTypeReferenceDirectives)F=function(t,r){return s.resolveTypeReferenceDirectives(e.Debug.assertEachDefined(t),r)};else{var K=function(t,r){return e.resolveTypeReferenceDirective(t,r,o,s).resolvedTypeReferenceDirective};F=function(t,r){return g(e.Debug.assertEachDefined(t),r,K)}}var U,q=e.createMap(),V=e.createMap(),W=e.createMap(),H=e.createMap(),G=s.useCaseSensitiveFileNames()?e.createMap():void 0,X=function(t,r){var n=t&&t.getCompilerOptions();return n&&(n.target!==r.target||n.module!==r.module||n.moduleResolution!==r.moduleResolution||n.noResolve!==r.noResolve||n.jsx!==r.jsx||n.allowJs!==r.allowJs||n.disableSizeLimit!==r.disableSizeLimit||n.baseUrl!==r.baseUrl||!e.equalOwnProperties(n.paths,r.paths))}(c,o),Q=function(){if(!c)return 0;var r=c.getCompilerOptions();if(e.changesAffectModuleResolution(r,o))return c.structureIsReused=0;e.Debug.assert(!(3&c.structureIsReused));var n=c.getRootFileNames();if(!e.arrayIsEqualTo(n,t))return c.structureIsReused=0;if(!e.arrayIsEqualTo(o.types,r.types))return c.structureIsReused=0;var i=[],a=[],u=[];if(c.structureIsReused=2,c.getMissingFilePaths().some(function(e){return s.fileExists(e)}))return c.structureIsReused=0;var l,_=c.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(l||(l={}));for(var d=e.createMap(),p=0,f=_;p<f.length;p++){var m=f[p],g=s.getSourceFileByPath?s.getSourceFileByPath(m.fileName,m.path,o.target,void 0,X):s.getSourceFile(m.fileName,o.target,void 0,X);if(!g)return c.structureIsReused=0;e.Debug.assert(!g.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var y=void 0;if(m.redirectInfo){if(g!==m.redirectInfo.unredirected)return c.structureIsReused=0;y=!1,g=m}else if(c.redirectTargetsSet.has(m.path)){if(g!==m)return c.structureIsReused=0;y=!1}else y=g!==m;g.path=m.path,a.push(g.path);var x=c.sourceFileToPackageName.get(m.path);if(void 0!==x){var S=d.get(x),T=y?1:0;if(void 0!==S&&1===T||1===S)return c.structureIsReused=0;d.set(x,T)}y?(m.hasNoDefaultLib!==g.hasNoDefaultLib&&(c.structureIsReused=1),e.arrayIsEqualTo(m.referencedFiles,g.referencedFiles,Ee)||(c.structureIsReused=1),Ae(g),e.arrayIsEqualTo(m.imports,g.imports,Ne)||(c.structureIsReused=1),e.arrayIsEqualTo(m.moduleAugmentations,g.moduleAugmentations,Ne)||(c.structureIsReused=1),(524288&m.flags)!=(524288&g.flags)&&(c.structureIsReused=1),e.arrayIsEqualTo(m.typeReferenceDirectives,g.typeReferenceDirectives,Ee)||(c.structureIsReused=1),u.push({oldFile:m,newFile:g})):J(m.path)&&(c.structureIsReused=1,u.push({oldFile:m,newFile:g})),i.push(g)}if(2!==c.structureIsReused)return c.structureIsReused;v=u.map(function(e){return e.newFile.path});for(var C=0,E=u;C<E.length;C++){var A=E[C],m=A.oldFile,g=A.newFile,P=e.getNormalizedAbsolutePath(g.fileName,R);if(w){var O=h(g),I={program:c,oldSourceFile:m,modifiedFilePaths:v},M=ce(O,P,g,I),L=e.hasChangesInResolutions(O,M,m.resolvedModules,e.moduleResolutionIsEqualTo);L?(c.structureIsReused=1,g.resolvedModules=e.zipToMap(O,M)):g.resolvedModules=m.resolvedModules}if(F){var B=e.map(g.typeReferenceDirectives,function(e){return e.fileName}),M=F(B,P),L=e.hasChangesInResolutions(B,M,m.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);L?(c.structureIsReused=1,g.resolvedTypeReferenceDirectiveNames=e.zipToMap(B,M)):g.resolvedTypeReferenceDirectiveNames=m.resolvedTypeReferenceDirectiveNames}}if(2!==c.structureIsReused)return c.structureIsReused;if(s.hasChangedAutomaticTypeDirectiveNames)return c.structureIsReused=1;U=c.getMissingFilePaths();for(var j=0;j<i.length;j++)H.set(a[j],i[j]),c.isSourceFileFromExternalLibrary(c.getSourceFileByPath(a[j]))&&N.set(a[j],!0);b=i,D=c.getFileProcessingDiagnostics();for(var z=0,K=u;z<K.length;z++){var q=K[z];D.reattachFileDiagnostics(q.newFile)}return k=c.getResolvedTypeReferenceDirectives(),V=c.sourceFileToPackageName,W=c.redirectTargetsSet,c.structureIsReused=2}();if(2!==Q){e.forEach(t,function(e){return Ce(e,!1)});var Y=e.getAutomaticTypeDirectiveNames(o,s);if(Y.length)for(var $=o.configFilePath?e.getDirectoryPath(o.configFilePath):s.getCurrentDirectory(),Z=e.combinePaths($,"__inferred type names__.ts"),ee=F(Y,Z),te=0;te<Y.length;te++)Le(Y[te],ee[te]);if(!O){var re=I();!o.lib&&re?Ce(re,!0):e.forEach(o.lib,function(t){Ce(e.combinePaths(M,t),!0)})}U=e.arrayFrom(H.keys(),function(e){return e}).filter(function(e){return!H.get(e)})}if(e.Debug.assert(!!U),c&&s.onReleaseOldSourceFile)for(var ne=0,ie=c.getSourceFiles();ne<ie.length;ne++){var ae=ie[ne];fe(ae.path)&&!X||s.onReleaseOldSourceFile(ae,c.getCompilerOptions())}return c=void 0,l={getRootFileNames:function(){return t},getSourceFile:fe,getSourceFileByPath:me,getSourceFiles:function(){return b},getMissingFilePaths:function(){return U},getCompilerOptions:function(){return o},getSyntacticDiagnostics:function(e,t){return ge(e,ye,t)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(D.getGlobalDiagnostics(),e.concatenate(L.getGlobalDiagnostics(),o.configFile?L.getDiagnostics(o.configFile.fileName):[])))},getGlobalDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(_e().getGlobalDiagnostics().slice())},getSemanticDiagnostics:function(e,t){return ge(e,ve,t)},getDeclarationDiagnostics:function(e,t){var r=l.getCompilerOptions();return!e||r.out||r.outFile?Se(e,t):ge(e,Te,t)},getTypeChecker:de,getClassifiableNames:function(){if(!m){de(),m=e.createUnderscoreEscapedMap();for(var t=0,r=b;t<r.length;t++){var n=r[t];e.copyEntries(n.classifiableNames,m)}}return m},getDiagnosticsProducingTypeChecker:_e,getCommonSourceDirectory:se,emit:function(t,r,n,i,a){return he(function(){return function(t,r,n,i,a,s){var c=[];if(!a){if(o.noEmit)return{diagnostics:c,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(o.noEmitOnError){var u=t.getOptionsDiagnostics(i).concat(t.getSyntacticDiagnostics(r,i),t.getGlobalDiagnostics(i),t.getSemanticDiagnostics(r,i));if(0===u.length&&t.getCompilerOptions().declaration&&(c=t.getDeclarationDiagnostics(void 0,i)),u.length>0||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var l=_e().getEmitResolver(o.outFile||o.out?void 0:r,i);e.performance.mark("beforeEmit");var _=a?[]:e.getTransformers(o,s),d=e.emitFiles(l,ue(n),r,a,_);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}(l,t,r,n,i,a)})},getCurrentDirectory:function(){return R},getNodeCount:function(){return _e().getNodeCount()},getIdentifierCount:function(){return _e().getIdentifierCount()},getSymbolCount:function(){return _e().getSymbolCount()},getTypeCount:function(){return _e().getTypeCount()},getFileProcessingDiagnostics:function(){return D},getResolvedTypeReferenceDirectives:function(){return k},isSourceFileFromExternalLibrary:le,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!o.noLib)return!1;var r=s.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return o.lib?e.forEach(o.lib,function(n){return r(t.fileName,e.combinePaths(M,n))}):r(t.fileName,I())},dropDiagnosticsProducingTypeChecker:function(){d=void 0},getSourceFileFromReference:function(e,t){return Pe(n(t.fileName,e.fileName),function(e){return H.get(oe(e))})},sourceFileToPackageName:V,redirectTargetsSet:W,isEmittedFile:function(t){if(o.noEmit)return!1;var r=oe(t);if(me(r))return!1;var n=o.outFile||o.out;if(n)return Xe(r,n)||Xe(r,e.removeFileExtension(n)+".d.ts");if(o.outDir)return e.containsPath(o.outDir,r,R,!s.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJavascriptExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!me(e.combinePaths(i,".ts"))||!!me(e.combinePaths(i,".tsx"))}return!1},getConfigFileParsingDiagnostics:function(){return u||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r){return P&&e.resolveModuleNameFromCache(t,r,P)}},function(){if(o.isolatedModules&&(o.declaration&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declaration","isolatedModules"),o.noEmitOnError&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules"),o.out&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),o.outFile&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),o.inlineSourceMap&&(o.sourceMap&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),o.mapRoot&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),o.paths&&void 0===o.baseUrl&&Ue(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),o.paths)for(var t in o.paths)if(e.hasProperty(o.paths,t))if(e.hasZeroOrOneAsteriskCharacter(t)||ze(!0,t,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,t),e.isArray(o.paths[t])){var r=o.paths[t].length;0===r&&ze(!1,t,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,t);for(var n=0;n<r;n++){var i=o.paths[t][n],a=p(i);"string"===a?e.hasZeroOrOneAsteriskCharacter(i)||Je(t,n,e.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,i,t):Je(t,n,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,i,t,a)}}else ze(!1,t,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,t);o.sourceMap||o.inlineSourceMap||(o.inlineSources&&Ue(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),o.sourceRoot&&Ue(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),o.out&&o.outFile&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!o.mapRoot||o.sourceMap||o.declarationMap||Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),o.declarationDir&&(o.declaration||Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"declarationDir","declaration"),(o.out||o.outFile)&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",o.out?"out":"outFile")),o.declarationMap&&!o.declaration&&Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"declarationMap","declaration"),o.lib&&o.noLib&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),o.noImplicitUseStrict&&e.getStrictOptionValue(o,"alwaysStrict")&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var c=o.target||0,u=o.outFile||o.out,l=e.forEach(b,function(t){return e.isExternalModule(t)&&!t.isDeclarationFile?t:void 0});if(o.isolatedModules){o.module===e.ModuleKind.None&&c<2&&Ue(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var _=e.forEach(b,function(t){return e.isExternalModule(t)||t.isDeclarationFile?void 0:t});if(_){var d=e.getErrorSpanForNode(_,_);L.add(e.createFileDiagnostic(_,d.start,d.length,e.Diagnostics.Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided))}}else if(l&&c<2&&o.module===e.ModuleKind.None){var d=e.getErrorSpanForNode(l,l.externalModuleIndicator);L.add(e.createFileDiagnostic(l,d.start,d.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(u)if(o.module&&o.module!==e.ModuleKind.AMD&&o.module!==e.ModuleKind.System)Ue(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,o.out?"out":"outFile","module");else if(void 0===o.module&&l){var d=e.getErrorSpanForNode(l,l.externalModuleIndicator);L.add(e.createFileDiagnostic(l,d.start,d.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,o.out?"out":"outFile"))}if(o.outDir||o.sourceRoot||o.mapRoot){var f=se();o.outDir&&""===f&&e.forEach(b,function(t){return e.getRootLength(t.fileName)>1})&&Ue(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!o.noEmit&&o.allowJs&&o.declaration&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),o.checkJs&&!o.allowJs&&L.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),o.emitDeclarationOnly&&(o.declaration||Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDeclarationOnly","declaration"),o.noEmit&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),o.emitDecoratorMetadata&&!o.experimentalDecorators&&Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),o.jsxFactory?(o.reactNamespace&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(o.jsxFactory,c)||qe("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,o.jsxFactory)):o.reactNamespace&&!e.isIdentifierText(o.reactNamespace,c)&&qe("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,o.reactNamespace),!o.noEmit&&!o.suppressOutputPathCheck){var m=ue(),g=e.createMap();e.forEachEmittedFile(m,function(e){o.emitDeclarationOnly||y(e.jsFilePath,g),y(e.declarationFilePath,g)})}function y(t,r){if(t){var n,i=oe(t);H.has(i)&&(o.configFilePath||(n=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)),n=e.chainDiagnosticMessages(n,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),Ge(t,e.createCompilerDiagnosticFromMessageChain(n)));var a=s.useCaseSensitiveFileNames()?i:i.toLocaleLowerCase();r.has(a)?Ge(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.set(a,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),l;function oe(t){return e.toPath(t,R,Be)}function se(){if(void 0===_){var t=e.filter(b,function(t){return e.sourceFileMayBeEmitted(t,o,le)});(_=o.rootDir&&function(t,r){var n=!0;if(t)for(var i=s.getCanonicalFileName(e.getNormalizedAbsolutePath(r,R)),a=0,c=t;a<c.length;a++){var u=c[a];if(!u.isDeclarationFile){var l=s.getCanonicalFileName(e.getNormalizedAbsolutePath(u.fileName,R));0!==l.indexOf(i)&&(L.add(e.createCompilerDiagnostic(e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,u.fileName,o.rootDir)),n=!1)}}return n}(t,o.rootDir)?e.getNormalizedAbsolutePath(o.rootDir,R):function(e){for(var t=[],r=0,n=e;r<n.length;r++){var a=n[r];a.isDeclarationFile||t.push(a.fileName)}return i(t,R,Be)}(t))&&_[_.length-1]!==e.directorySeparator&&(_+=e.directorySeparator)}return _}function ce(t,r,n,i){if(0===Q&&!n.ambientModuleNames.length)return w(t,r);var a,c,u,l=i.program&&i.program.getSourceFile(r);if(l!==n&&n.resolvedModules){for(var _=[],d=0,p=t;d<p.length;d++){var f=p[d],m=n.resolvedModules.get(f);_.push(m)}return _}for(var g={},y=0;y<t.length;y++){if(f=t[y],n===l&&!J(l.path)){var h=l&&l.resolvedModules.get(f);if(h){e.isTraceEnabled(o,s)&&e.trace(s,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,f,r),(c||(c=new Array(t.length)))[y]=h,(u||(u=[])).push(f);continue}}var v=!1;e.contains(n.ambientModuleNames,f)?(v=!0,e.isTraceEnabled(o,s)&&e.trace(s,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,f,r)):v=S(f,i),v?(c||(c=new Array(t.length)))[y]=g:(a||(a=[])).push(f)}var b=a&&a.length?w(a,r,u):e.emptyArray;if(!c)return e.Debug.assert(b.length===t.length),b;var x=0;for(y=0;y<c.length;y++)c[y]?c[y]===g&&(c[y]=void 0):(c[y]=b[x],x++);return e.Debug.assert(x===b.length),c;function S(t,r){var n=e.getResolvedModule(r.oldSourceFile,t),i=n&&r.program&&r.program.getSourceFile(n.resolvedFileName);if(n&&i&&!i.externalModuleIndicator)return!1;var a=r.program&&r.program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t);if(!a||!a.declarations)return!1;var c=e.forEach(a.declarations,function(t){var n=e.getSourceFileOfNode(t);return!e.contains(r.modifiedFilePaths,n.path)&&n});return!!c&&(e.isTraceEnabled(o,s)&&e.trace(s,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,c.fileName),!0)}}function ue(e){return{getCanonicalFileName:Be,getCommonSourceDirectory:l.getCommonSourceDirectory,getCompilerOptions:l.getCompilerOptions,getCurrentDirectory:function(){return R},getNewLine:function(){return s.getNewLine()},getSourceFile:l.getSourceFile,getSourceFileByPath:l.getSourceFileByPath,getSourceFiles:l.getSourceFiles,isSourceFileFromExternalLibrary:le,writeFile:e||function(e,t,r,n,i){return s.writeFile(e,t,r,n,i)},isEmitBlocked:pe}}function le(e){return N.get(e.path)}function _e(){return d||(d=e.createTypeChecker(l,!0))}function de(){return f||(f=e.createTypeChecker(l,!1))}function pe(e){return j.has(oe(e))}function fe(e){return me(oe(e))}function me(e){return H.get(e)}function ge(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(l.getSourceFiles(),function(e){return n&&n.throwIfCancellationRequested(),r(e,n)}))}function ye(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return he(function(){var r=[],n=t;return i(t),r;function i(t){switch(n.kind){case 148:case 151:if(n.questionToken===t)return void r.push(c(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 153:case 152:case 154:case 155:case 156:case 191:case 233:case 192:case 231:if(n.type===t)return void r.push(c(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 242:return void r.push(c(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 248:if(t.isExportEquals)return void r.push(c(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 267:var o=t;if(108===o.token)return void r.push(c(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 235:return void r.push(c(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 238:return void r.push(c(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 236:return void r.push(c(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 237:return void r.push(c(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 208:return void r.push(c(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 207:return void r.push(c(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 189:e.Debug.fail()}var s=n;n=t,e.forEachChild(t,i,a),n=s}function a(t){switch(n.decorators!==t||o.experimentalDecorators||r.push(c(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),n.kind){case 234:case 153:case 152:case 154:case 155:case 156:case 191:case 233:case 192:if(t===n.typeParameters)return void r.push(s(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 213:if(t===n.modifiers)return function(t,n){for(var i=0,a=t;i<a.length;i++){var o=a[i];switch(o.kind){case 76:if(n)continue;case 114:case 112:case 113:case 132:case 124:case 117:r.push(c(o,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(o.kind)))}}}(t,213===n.kind);break;case 151:if(t===n.modifiers){for(var a=0,u=t;a<u.length;a++){var l=u[a];115!==l.kind&&r.push(c(l,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(l.kind)))}return}break;case 148:if(t===n.modifiers)return void r.push(s(t,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 186:case 187:case 206:case 255:case 256:if(t===n.typeArguments)return void r.push(s(t,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var _=0,d=t;_<d.length;_++){var p=d[_];i(p)}}function s(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function c(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}})}(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function he(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(f=void 0,d=void 0),t}}function ve(e,t){return De(e,t,x,be)}function be(t,r){return he(function(){if(o.skipLibCheck&&t.isDeclarationFile||o.skipDefaultLibCheck&&t.hasNoDefaultLib)return e.emptyArray;var n=_e();e.Debug.assert(!!t.bindDiagnostics);var i=e.isCheckJsEnabledForFile(t,o),a=3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||i,s=a?t.bindDiagnostics:e.emptyArray,c=a?n.getDiagnostics(t,r):e.emptyArray,u=D.getDiagnostics(t.fileName),l=L.getDiagnostics(t.fileName),_=s.concat(c,u,l);return i&&(_=e.concatenate(_,t.jsDocDiagnostics)),e.filter(_,xe)})}function xe(t){var n=t.file,i=t.start;if(n)for(var a=e.getLineStarts(n),o=e.computeLineAndCharacterOfPosition(a,i).line;o>0;){var s=n.text.slice(a[o-1],a[o]),c=r.exec(s);if(!c)return!0;if(c[3])return!1;o--}return!0}function Se(e,t){return De(e,t,S,ke)}function ke(t,r){return he(function(){var n=_e().getEmitResolver(t,r);return e.getDeclarationDiagnostics(ue(e.noop),n,t)})}function De(t,r,n,i){var a=t?n.perFile&&n.perFile.get(t.path):n.allDiagnostics;if(a)return a;var o=i(t,r)||e.emptyArray;return t?(n.perFile||(n.perFile=e.createMap()),n.perFile.set(t.path,o)):n.allDiagnostics=o,o}function Te(e,t){return e.isDeclarationFile?[]:Se(e,t)}function Ce(t,r){we(e.normalizePath(t),r,void 0)}function Ee(e,t){return e.fileName===t.fileName}function Ne(e,t){return 71===e.kind?71===t.kind&&e.escapedText===t.escapedText:9===t.kind&&e.text===t.text}function Ae(t){if(!t.imports){var r,n,i,a=e.isSourceFileJavaScript(t),s=e.isExternalModule(t);if(o.importHelpers&&(o.isolatedModules||s)&&!t.isDeclarationFile){var c=e.createLiteral(e.externalHelpersModuleNameText),u=e.createImportDeclaration(void 0,void 0,void 0,c);e.addEmitFlags(u,67108864),c.parent=u,u.parent=t,r=[c]}for(var l=0,_=t.statements;l<_.length;l++){var d=_[l];p(d,!1),(524288&t.flags||a)&&f(d)}return(524288&t.flags||a)&&f(t.endOfFileToken),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function p(a,o){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||o&&e.isExternalModuleNameRelative(c.text)||(r=e.append(r,c))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(o||e.hasModifier(a,2)||t.isDeclarationFile)){var u=e.getTextOfIdentifierOrLiteral(a.name);if(s||o&&!e.isExternalModuleNameRelative(u))(n||(n=[])).push(a.name);else if(!o){t.isDeclarationFile&&(i||(i=[])).push(u);var l=a.body;if(l)for(var _=0,d=l.statements;_<d.length;_++)p(d[_],!0)}}}function f(t){e.isRequireCall(t,!0)?r=e.append(r,t.arguments[0]):e.isImportCall(t)&&1===t.arguments.length&&e.isStringLiteralLike(t.arguments[0])?r=e.append(r,t.arguments[0]):e.isLiteralImportTypeNode(t)?r=e.append(r,t.argument.literal):(m(t),e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,m))}function m(t){e.forEachChild(t,f)}}function Pe(t,r,n,i){if(e.hasExtension(t)){if(!o.allowNonTsExtensions&&!e.forEach(B,function(r){return e.fileExtensionIs(s.getCanonicalFileName(t),r)}))return void(n&&n(e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+B.join("', '")+"'"));var a=r(t);return n&&(a?i&&s.getCanonicalFileName(t)===s.getCanonicalFileName(i.fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself):n(e.Diagnostics.File_0_not_found,t)),a}var c=o.allowNonTsExtensions&&r(t);if(c)return c;if(!n||!o.allowNonTsExtensions){var u=e.forEach(B,function(e){return r(t+e)});return n&&!u&&n(e.Diagnostics.File_0_not_found,t+".ts"),u}n(e.Diagnostics.File_0_not_found,t)}function we(t,r,n,i,a,o){Pe(t,function(e){return Oe(e,oe(e),r,i,a,o,n)},function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];D.add(void 0!==i&&void 0!==o&&void 0!==a?e.createFileDiagnostic.apply(void 0,[i,a,o-a,t].concat(r)):e.createCompilerDiagnostic.apply(void 0,[t].concat(r)))},i)}function Fe(t,r,n,i,a){void 0!==n&&void 0!==i&&void 0!==a?D.add(e.createFileDiagnostic(n,i,a-i,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r)):D.add(e.createCompilerDiagnostic(e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r))}function Oe(t,r,n,i,a,c,u){if(H.has(r)){var l=H.get(r);return l&&o.forceConsistentCasingInFileNames&&e.getNormalizedAbsolutePath(l.fileName,R)!==e.getNormalizedAbsolutePath(t,R)&&Fe(t,l.fileName,i,a,c),l&&N.get(l.path)&&0===C?(N.set(l.path,!1),o.noResolve||(Ie(l,n),Me(l)),E.set(l.path,!1),je(l)):l&&E.get(l.path)&&C<T&&(E.set(l.path,!1),je(l)),l}var _=s.getSourceFile(t,o.target,function(r){void 0!==i&&void 0!==a&&void 0!==c?D.add(e.createFileDiagnostic(i,a,c-a,e.Diagnostics.Cannot_read_file_0_Colon_1,t,r)):D.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r))},X);if(u){var d=e.packageIdToString(u),p=q.get(d);if(p){var f=function(e,t,r,n){var i=Object.create(e);return i.fileName=r,i.path=n,i.redirectInfo={redirectTarget:e,unredirected:t},Object.defineProperties(i,{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}}}),i}(p,_,t,r);return W.set(p.path,!0),H.set(r,f),V.set(r,u.name),b.push(f),f}_&&(q.set(d,_),V.set(r,u.name))}if(H.set(r,_),_){if(N.set(r,C>0),_.path=r,s.useCaseSensitiveFileNames()){var m=r.toLowerCase(),g=G.get(m);g?Fe(t,g.fileName,i,a,c):G.set(m,_)}O=O||_.hasNoDefaultLib,o.noResolve||(Ie(_,n),Me(_)),je(_),n?b.unshift(_):b.push(_)}return _}function Ie(t,r){e.forEach(t.referencedFiles,function(e){we(n(e.fileName,t.fileName),r,void 0,t,e.pos,e.end)})}function Me(t){for(var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),n=F(r,t.fileName),i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i],o=n[i],s=a.fileName.toLocaleLowerCase();e.setResolvedTypeReferenceDirective(t,s,o),Le(s,o,t,a.pos,a.end)}}function Le(t,r,n,i,a){var o=k.get(t);if(!o||!o.primary){var c=!0;r?r.primary?we(r.resolvedFileName,!1,r.packageId,n,i,a):o?(r.resolvedFileName!==o.resolvedFileName&&s.readFile(r.resolvedFileName)!==fe(o.resolvedFileName).text&&D.add(Re(n,i,a,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,t,r.resolvedFileName,o.resolvedFileName)),c=!1):we(r.resolvedFileName,!1,r.packageId,n,i,a):D.add(Re(n,i,a,e.Diagnostics.Cannot_find_type_definition_file_for_0,t)),c&&k.set(t,r)}}function Re(t,r,n,i){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];return void 0===t||void 0===r||void 0===n?e.createCompilerDiagnostic.apply(void 0,[i].concat(a)):e.createFileDiagnostic.apply(void 0,[t,r,n-r,i].concat(a))}function Be(e){return s.getCanonicalFileName(e)}function je(t){if(Ae(t),t.imports.length||t.moduleAugmentations.length){var r=h(t),n={program:c,oldSourceFile:c&&c.getSourceFile(t.fileName),modifiedFilePaths:v},i=ce(r,e.getNormalizedAbsolutePath(t.fileName,R),t,n);e.Debug.assert(i.length===r.length);for(var a=0;a<r.length;a++){var s=i[a];if(e.setResolvedModule(t,r[a],s),s){var u=s.isExternalLibraryImport,l=!e.extensionIsTypeScript(s.extension),_=u&&l,d=s.resolvedFileName;u&&C++;var p=_&&C>T,f=d&&!y(o,s)&&!o.noResolve&&a<t.imports.length&&!p&&!(l&&!o.allowJs)&&(e.isInJavaScriptFile(t.imports[a])||!(1048576&t.imports[a].flags));p?E.set(t.path,!0):f&&Oe(d,oe(d),!1,t,e.skipTrivia(t.text,t.imports[a].pos),t.imports[a].end,s.packageId),u&&C--}}}else t.resolvedModules=void 0}function Je(t,r,n,i,a,s){for(var c=!0,u=0,l=Ke();u<l.length;u++){var _=l[u];if(e.isObjectLiteralExpression(_.initializer))for(var d=0,p=e.getPropertyAssignment(_.initializer,t);d<p.length;d++){var f=p[d];e.isArrayLiteralExpression(f.initializer)&&f.initializer.elements.length>r&&(L.add(e.createDiagnosticForNodeInSourceFile(o.configFile,f.initializer.elements[r],n,i,a,s)),c=!1)}}c&&L.add(e.createCompilerDiagnostic(n,i,a,s))}function ze(t,r,n,i){for(var a=!0,o=0,s=Ke();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&He(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&L.add(e.createCompilerDiagnostic(n,i))}function Ke(){var t=We();return t?e.getPropertyAssignment(t,"paths"):e.emptyArray}function Ue(e,t,r,n){Ve(!0,t,r,e,t,r,n)}function qe(e,t,r){Ve(!1,e,void 0,t,r)}function Ve(t,r,n,i,a,o,s){var c=We();(!c||!He(c,t,r,n,i,a,o,s))&&L.add(e.createCompilerDiagnostic(i,a,o,s))}function We(){if(void 0===A&&(A=null,o.configFile&&o.configFile.jsonObject))for(var t=0,r=e.getPropertyAssignment(o.configFile.jsonObject,"compilerOptions");t<r.length;t++){var n=r[t];if(e.isObjectLiteralExpression(n.initializer)){A=n.initializer;break}}return A}function He(t,r,n,i,a,s,c,u){for(var l=e.getPropertyAssignment(t,n,i),_=0,d=l;_<d.length;_++){var p=d[_];L.add(e.createDiagnosticForNodeInSourceFile(o.configFile,r?p.name:p.initializer,a,s,c,u))}return!!l.length}function Ge(e,t){j.set(oe(e),!0),L.add(t)}function Xe(t,r){return 0===e.comparePaths(t,r,R,!s.useCaseSensitiveFileNames())}},e.getResolutionDiagnostic=y}(o||(o={})),function(e){e.getFileEmitOutput=function(e,t,r,n,i){var a=[],o=e.emit(t,function(e,t,r){a.push({name:e,writeByteOrderMark:r,text:t})},n,r,i);return{outputFiles:a,emitSkipped:o.emitSkipped}}}(o||(o={})),function(e){!function(t){function r(t,r,n){var i;if(r.imports&&r.imports.length>0)for(var a=t.getTypeChecker(),o=0,s=r.imports;o<s.length;o++){var c=s[o],u=a.getSymbolAtLocation(c);if(u&&u.declarations&&u.declarations[0]){var l=e.getSourceFileOfNode(u.declarations[0]);l&&m(l.path)}}var _=e.getDirectoryPath(r.path);if(r.referencedFiles&&r.referencedFiles.length>0)for(var d=0,p=r.referencedFiles;d<p.length;d++){var f=p[d];m(e.toPath(f.fileName,_,n))}return r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach(function(t){if(t){var r=t.resolvedFileName;m(e.toPath(r,_,n))}}),i;function m(t){i||(i=e.createMap()),i.set(t,!0)}}function n(e,t){return t&&!t.referencedMap==!e}function i(e,t){t.forEach(function(t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.set(r,!0)})}function a(t,r,n,i,a,o){if(e.Debug.assert(!!n),t.hasCalledUpdateShapeSignature.has(n.path)||i.has(n.path))return!1;var s=t.fileInfos.get(n.path);e.Debug.assert(!!s);var c,u=s.signature;if(n.isDeclarationFile)c=n.version;else{var l=e.getFileEmitOutput(r,n,!0,a);c=l.outputFiles&&l.outputFiles.length>0?o(l.outputFiles[0].text):u}return i.set(n.path,c),!u||c!==u}function o(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map(function(e){return e.fileName})}return t.allFileNames}function s(t,r){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0];return e[1].has(r)?t:void 0}))}function c(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(!e.isModuleWithStringLiteralName(i))return!1}return!0}function u(t,r,n){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;c(n);for(var a=0,o=r.getSourceFiles();a<o.length;a++){var s=o[a];s!==n&&c(s)}return t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,t.allFilesExcludingDefaultLibraryFile;function c(e){r.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}t.canReuseOldState=n,t.create=function(t,i,a){for(var o=e.createMap(),s=t.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,c=e.createMap(),u=n(s,a),l=0,_=t.getSourceFiles();l<_.length;l++){var d=_[l],p=d.version,f=u&&a.fileInfos.get(d.path);if(s){var m=r(t,d,i);m&&s.set(d.path,m)}o.set(d.path,{version:p,signature:f&&f.signature})}return{fileInfos:o,referencedMap:s,hasCalledUpdateShapeSignature:c,allFilesExcludingDefaultLibraryFile:void 0,allFileNames:void 0}},t.getFilesAffectedBy=function(t,r,n,o,l,_){var d=_||e.createMap(),p=r.getSourceFileByPath(n);if(!p)return e.emptyArray;if(!a(t,r,p,d,o,l))return[p];var f=(t.referencedMap?function(t,r,n,i,o,l){if(!e.isExternalModule(n)&&!c(n))return u(t,r,n);var _=r.getCompilerOptions();if(_&&(_.isolatedModules||_.out||_.outFile))return[n];var d=e.createMap();d.set(n.path,n);for(var p=s(t,n.path);p.length>0;){var f=p.pop();if(!d.has(f)){var m=r.getSourceFileByPath(f);d.set(f,m),m&&a(t,r,m,i,o,l)&&p.push.apply(p,s(t,f))}}return e.arrayFrom(e.mapDefinedIterator(d.values(),function(e){return e}))}:function(e,t,r){var n=t.getCompilerOptions();return n&&(n.out||n.outFile)?[r]:u(e,t,r)})(t,r,p,d,o,l);return _||i(t,d),f},t.updateSignaturesFromCache=i,t.getAllDependencies=function(t,r,n){var i=r.getCompilerOptions();if(i.outFile||i.out)return o(t,r);if(!t.referencedMap||!e.isExternalModule(n)&&!c(n))return o(t,r);for(var a,s=e.createMap(),u=[n.path];u.length;){var l=u.pop();if(!s.has(l)){s.set(l,!0);var _=t.referencedMap.get(l);if(_)for(var d=_.keys(),p=d.next(),f=p.value,m=p.done;!m;f=(a=d.next()).value,m=a.done,a)u.push(f)}}return e.arrayFrom(e.mapDefinedIterator(s.keys(),function(e){var t=r.getSourceFileByPath(e);return t?t.fileName:e}))}}(e.BuilderState||(e.BuilderState={}))}(o||(o={})),function(e){function t(t,r,n){var i=e.BuilderState.create(t,r,n);i.program=t;var a=t.getCompilerOptions();a.outFile||a.out||(i.semanticDiagnosticsPerFile=e.createMap()),i.changedFilesSet=e.createMap();var o=e.BuilderState.canReuseOldState(i.referencedMap,n),s=o&&n.semanticDiagnosticsPerFile&&!!i.semanticDiagnosticsPerFile;o&&(n.currentChangedFilePath||e.Debug.assert(!(n.affectedFiles||n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.size),"Cannot reuse if only few affected files of currentChangedFile were iterated"),s&&e.Debug.assert(!e.forEachKey(n.changedFilesSet,function(e){return n.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),e.copyEntries(n.changedFilesSet,i.changedFilesSet));var c=i.referencedMap,u=o&&n.referencedMap;return i.fileInfos.forEach(function(t,r){var a,l,_,d;if(o&&(a=n.fileInfos.get(r))&&a.version===t.version&&(_=l=c&&c.get(r),d=u&&u.get(r),_===d||_&&d&&_.size===d.size&&!e.forEachKey(_,function(e){return!d.has(e)}))&&(!l||!e.forEachKey(l,function(e){return!i.fileInfos.has(e)&&n.fileInfos.has(e)}))){if(s){var p=n.semanticDiagnosticsPerFile.get(r);p&&i.semanticDiagnosticsPerFile.set(r,p)}}else i.changedFilesSet.set(r,!0)}),i}function r(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.path))}function n(t,r,n){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,o=t.semanticDiagnosticsPerFile,s=t.affectedFilesIndex;s<i.length;){var c=i[s];if(!a.has(c.path))return t.affectedFilesIndex=s,o.delete(c.path),c;a.set(c.path,!0),s++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(t,t.currentAffectedFilesSignatures),t.currentAffectedFilesSignatures.clear(),t.affectedFiles=void 0}var u=t.changedFilesSet.keys().next();if(u.done)return;var l=t.program.getCompilerOptions();if(l.outFile||l.out)return e.Debug.assert(!t.semanticDiagnosticsPerFile),t.program;t.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures||e.createMap(),t.affectedFiles=e.BuilderState.getFilesAffectedBy(t,t.program,u.value,r,n,t.currentAffectedFilesSignatures),t.currentChangedFilePath=u.value,t.semanticDiagnosticsPerFile.delete(u.value),t.affectedFilesIndex=0,t.seenAffectedFiles=t.seenAffectedFiles||e.createMap()}}function i(e,t){t===e.program?e.changedFilesSet.clear():(e.seenAffectedFiles.set(t.path,!0),e.affectedFilesIndex++)}function a(e,t,r){return i(e,r),{result:t,affected:r}}function o(e,t,r){var n=t.path,i=e.semanticDiagnosticsPerFile.get(n);if(i)return i;var a=e.program.getSemanticDiagnostics(t,r);return e.semanticDiagnosticsPerFile.set(n,a),a}var s;!function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(s=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a){var o,s,c;return void 0===t?(e.Debug.assert(void 0===r),o=n,c=i,e.Debug.assert(!!c),s=c.getProgram()):e.isArray(t)?(c=i,s=e.createProgram(t,r,n,c&&c.getProgram(),a),o=n):(s=t,o=r,c=n,a=i),{host:o,newProgram:s,oldProgram:c,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=function(c,u){var l=u.newProgram,_=u.host,d=u.oldProgram,p=u.configFileParsingDiagnostics,f=d&&d.getState();if(f&&l===f.program&&p!==l.getConfigFileParsingDiagnostics())return l=void 0,f=void 0,d;var m=e.createGetCanonicalFileName(_.useCaseSensitiveFileNames()),g=_.createHash||e.identity,y=t(l,m,f);l=void 0,d=void 0,f=void 0;var h={getState:function(){return y},getProgram:function(){return y.program},getCompilerOptions:function(){return y.program.getCompilerOptions()},getSourceFile:function(e){return y.program.getSourceFile(e)},getSourceFiles:function(){return y.program.getSourceFiles()},getOptionsDiagnostics:function(e){return y.program.getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return y.program.getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return p||y.program.getConfigFileParsingDiagnostics()},getSyntacticDiagnostics:function(e,t){return y.program.getSyntacticDiagnostics(e,t)},getSemanticDiagnostics:function(t,a){r(y,t);var u,l=y.program.getCompilerOptions();if(l.outFile||l.out)return e.Debug.assert(!y.semanticDiagnosticsPerFile),y.program.getSemanticDiagnostics(t,a);if(t)return o(y,t,a);if(c===s.SemanticDiagnosticsBuilderProgram)for(var _=void 0;_=n(y,a,g);)i(y,_);for(var d=0,p=y.program.getSourceFiles();d<p.length;d++){var f=p[d];u=e.addRange(u,o(y,f,a))}return u||e.emptyArray},emit:function(t,n,i,a,o){if(c===s.EmitAndSemanticDiagnosticsBuilderProgram&&(r(y,t),!t)){for(var u=[],l=void 0,d=void 0,p=[],f=void 0;f=v(n,i,a,o);)l=l||f.result.emitSkipped,d=e.addRange(d,f.result.diagnostics),p=e.addRange(p,f.result.emittedFiles),u=e.addRange(u,f.result.sourceMaps);return{emitSkipped:l,diagnostics:d||e.emptyArray,emittedFiles:p,sourceMaps:u}}return y.program.emit(t,n||_.writeFile,i,a,o)},getAllDependencies:function(t){return e.BuilderState.getAllDependencies(y,y.program,t)},getCurrentDirectory:function(){return y.program.getCurrentDirectory()}};return c===s.SemanticDiagnosticsBuilderProgram?h.getSemanticDiagnosticsOfNextAffectedFile=function(e,t){for(;;){var r=n(y,e,g);if(!r)return;if(r===y.program)return a(y,y.program.getSemanticDiagnostics(void 0,e),r);if(!t||!t(r))return a(y,o(y,r,e),r);i(y,r)}}:c===s.EmitAndSemanticDiagnosticsBuilderProgram?h.emitNextAffectedFile=v:e.notImplemented(),h;function v(e,t,r,i){var o=n(y,t,g);if(o)return a(y,y.program.emit(o===y.program?void 0:o,e||_.writeFile,t,r,i),o)}}}(o||(o={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a))},e.createAbstractBuilder=function(t,r,n,i,a){var o=e.getBuilderCreationParameters(t,r,n,i,a).newProgram;return{getProgram:function(){return o},getState:e.notImplemented,getCompilerOptions:e.notImplemented,getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented}}}(o||(o={})),function(e){e.maxNumberOfFilesToIterateForInvalidation=256,e.createResolutionCache=function(t,r,n){var i,a,o,s=!1,c=e.memoize(function(){return t.getCurrentDirectory()}),u=t.getCachedDirectoryStructureHost(),l=e.createMap(),_=e.createMap(),d=e.createMap(),p=e.createModuleResolutionCacheWithMaps(_,d,c(),t.getCanonicalFileName),f=e.createMap(),m=e.createMap(),g=[".ts",".tsx",".js",".jsx",".json"],y=e.createMap(),h=e.createMap(),v=r&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(r,c())),b=v&&t.toPath(v),x=e.createMap();return{startRecordingFilesWithChangedResolutions:function(){i=[]},finishRecordingFilesWithChangedResolutions:function(){var e=i;return i=void 0,e},startCachingPerDirectoryResolution:C,finishCachingPerDirectoryResolution:function(){s=!1,o=void 0,h.forEach(function(e,t){0===e.refCount&&(h.delete(t),e.watcher.close())}),C()},resolveModuleNames:function(e,t,r){return N(e,t,l,_,E,S,r,n)},resolveTypeReferenceDirectives:function(t,r){return N(t,r,f,m,e.resolveTypeReferenceDirective,k,void 0,!1)},removeResolutionsOfFile:z,invalidateResolutionOfFile:function(e){z(e),U(function(r,n){var i=n(r);return i&&t.toPath(i.resolvedFileName)===e})},setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(o===t||void 0===o),o=t},createHasInvalidatedResolution:function(t){if(s||t)return a=void 0,e.returnTrue;var r=a;return a=void 0,function(e){return r&&r.has(e)||T(e)}},updateTypeRootsWatch:function(){var r=t.getCompilationSettings();if(r.types)V();else{var n=e.getEffectiveTypeRoots(r,{directoryExists:H,getCurrentDirectory:c});n?e.mutateMap(x,e.arrayToMap(n,function(e){return t.toPath(e)}),{createNewValue:W,onDeleteValue:e.closeFileWatcher}):V()}},closeTypeRootsWatch:V,clear:function(){e.clearMap(h,e.closeFileWatcherOf),y.clear(),V(),l.clear(),f.clear(),s=!1,C()}};function S(e){return e.resolvedModule}function k(e){return e.resolvedTypeReferenceDirective}function D(t,r){return!(void 0===t||r.length<=t.length)&&e.startsWith(r,t)&&r[t.length]===e.directorySeparator}function T(e){if(!o)return!1;var t=o.get(e);return t&&!!t.length}function C(){_.clear(),d.clear(),m.clear()}function E(r,n,i,a){var o=e.resolveModuleName(r,n,i,a,p);if(!t.getGlobalCache)return o;var s=t.getGlobalCache();if(!(void 0===s||e.isExternalModuleNameRelative(r)||o.resolvedModule&&e.extensionIsTypeScript(o.resolvedModule.extension))){var c=e.loadModuleFromGlobalCache(r,t.projectName,i,a,s),u=c.resolvedModule,l=c.failedLookupLocations;if(u)return{resolvedModule:u,failedLookupLocations:e.addRange(o.failedLookupLocations,l)}}return o}function N(r,n,a,o,c,u,l,_){var d=t.toPath(n),p=a.get(d)||a.set(d,e.createMap()).get(d),f=e.getDirectoryPath(d),m=o.get(f);m||(m=e.createMap(),o.set(f,m));for(var g=[],y=t.getCompilationSettings(),h=_&&T(d),v=e.createMap(),b=0,x=r;b<x.length;b++){var S=x[b],k=p.get(S);if(!v.has(S)&&s||!k||k.isInvalidated||h&&!e.isExternalModuleNameRelative(S)&&!u(k)){var D=k,C=m.get(S);C?k=C:(k=c(S,n,y,t),m.set(S,k)),p.set(S,k),L(k),D&&B(D),_&&i&&!E(D,k)&&(i.push(d),_=!1)}e.Debug.assert(void 0!==k&&!k.isInvalidated),v.set(S,!0),g.push(u(k))}return p.forEach(function(t,r){v.has(r)||e.contains(l,r)||(B(t),p.delete(r))}),g;function E(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=u(e),n=u(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function A(t){return e.endsWith(t,"/node_modules")}function P(t){return e.endsWith(t,"/node_modules/@types")}function w(t){return function(t,r){for(var n=e.getRootLength(t);r>0;r--)if(0===(n=t.indexOf(e.directorySeparator,n)+1))return!1;return!0}(t,47===t.charCodeAt(0)?3:1)}function F(e,t){return w(t)||(e.ignore=!0),e}function O(t,r){return D(b,r)?{dir:v,dirPath:b}:I(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,c())),e.getDirectoryPath(r))}function I(t,r){for(;e.stringContains(r,"/node_modules/");)t=e.getDirectoryPath(t),r=e.getDirectoryPath(r);if(A(r))return F({dir:t,dirPath:r},e.getDirectoryPath(r));if(void 0!==b)for(;!D(r,b);){var n=e.getDirectoryPath(r);if(n===r)break;r=n,t=e.getDirectoryPath(t)}return F({dir:t,dirPath:r},r)}function M(t){return e.fileExtensionIsOneOf(t,g)}function L(e){if(e.failedLookupLocations&&e.failedLookupLocations.length)if(void 0===e.refCount){e.refCount=1;for(var r=!1,n=0,i=e.failedLookupLocations;n<i.length;n++){var a=i[n],o=t.toPath(a),s=O(a,o),c=s.dir,u=s.dirPath;if(!s.ignore){if(!M(o)){var l=y.get(o)||0;y.set(o,l+1)}u===b?r=!0:R(c,u)}}r&&R(v,b)}else e.refCount++}function R(r,n){var i=h.get(n);i?i.refCount++:h.set(n,{watcher:function(r,n){return t.watchDirectoryOfFailedLookupLocation(r,function(r){var i=t.toPath(r);u&&u.addOrDeleteFileOrDirectory(r,i),(!s&&n===b||A(n)||e.getDirectoryPath(i)===n)&&q(i,n===i)&&t.onInvalidatedResolution()},1)}(r,n),refCount:1})}function B(r){if(r.failedLookupLocations&&r.failedLookupLocations.length&&(r.refCount--,!r.refCount)){for(var n=!1,i=0,a=r.failedLookupLocations;i<a.length;i++){var o=a[i],s=t.toPath(o),c=O(o,s),u=c.dirPath;if(!c.ignore){var l=y.get(s);l&&(1===l?y.delete(s):(e.Debug.assert(l>1),y.set(s,l-1))),u===b?n=!0:j(u)}}n&&j(b)}}function j(e){h.get(e).refCount--}function J(e,t){var r=e.get(t);r&&(r.forEach(B),e.delete(t))}function z(e){J(l,e),J(f,e)}function K(t,r,n){var i=e.createMap();t.forEach(function(t,o){var s=e.getDirectoryPath(o),c=i.get(s);c||(c=e.createMap(),i.set(s,c)),t.forEach(function(t,i){c.has(i)||(c.set(i,!0),!t.isInvalidated&&r(t,n)&&(t.isInvalidated=!0,(a||(a=e.createMap())).set(o,!0)))})})}function U(r){var n;n=t.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation,l.size>n||f.size>n?s=!0:(K(l,r,S),K(f,r,k))}function q(r,n){var i;if(n)i=function(e){return D(r,t.toPath(e))};else{var o=e.getDirectoryPath(r);if(P(r)||A(r)||P(o)||A(o))i=function(n){return t.toPath(n)===r||e.startsWith(t.toPath(n),r)};else{if(!M(r)&&!y.has(r))return!1;if(e.isEmittedFileOfProgram(t.getCurrentProgram(),r))return!1;i=function(e){return t.toPath(e)===r}}}var c=a&&a.size;return U(function(t){return e.some(t.failedLookupLocations,i)}),s||a&&a.size!==c}function V(){e.clearMap(x,e.closeFileWatcher)}function W(e,r){return t.watchTypeRootsDirectory(r,function(n){var i=t.toPath(n);u&&u.addOrDeleteFileOrDirectory(n,i),t.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(!s){if(D(b,t))return b;var r=I(e,t),n=r.dirPath;return!r.ignore&&h.has(n)&&n}}(r,e);a&&q(i,a===i)&&t.onInvalidatedResolution()},1)}function H(r){var n=e.getDirectoryPath(e.getDirectoryPath(r)),i=t.toPath(n);return i===b||w(i)}}}(o||(o={})),function(e){var t=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function r(r,n){var i=r===e.sys?t:{getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.newLine},getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n)return function(t){return r.write(e.formatDiagnostic(t,i))};var a=new Array(1);return function(t){a[0]=t,r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function n(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||e.contains(e.nonClearingMessageCodes,r.code))&&(t.clearScreen(),!0)}function i(t,r){return r?function(r,i,a){n(t,r,a);var o="["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ";o+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(i+i),t.write(o)}:function(r,i,a){var o="";n(t,r,a)||(o+=i),o+=(new Date).toLocaleTimeString()+" - ",o+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+function(t,r){return e.contains(e.screenStartingMessageCodes,t.code)?r+r:r}(r,i),t.write(o)}}function a(t,r,n){var i;try{i=n.readFile(t)}catch(r){var a=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message);return void n.onUnRecoverableConfigFileDiagnostic(a)}if(i){var o=e.parseJsonText(t,i),s=n.getCurrentDirectory();return e.parseJsonSourceFileConfigFileContent(o,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),s),r,e.getNormalizedAbsolutePath(t,s))}a=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t);n.onUnRecoverableConfigFileDiagnostic(a)}function o(t,r,n,i){var a=t.getConfigFileParsingDiagnostics().slice(),o=a.length;e.addRange(a,t.getSyntacticDiagnostics());var s=!1;a.length===o&&(e.addRange(a,t.getOptionsDiagnostics()),e.addRange(a,t.getGlobalDiagnostics()),a.length===o&&(s=!0));var c=t.emit(),u=c.emittedFiles,l=c.emitSkipped,_=c.diagnostics;if(e.addRange(a,_),s&&e.addRange(a,t.getSemanticDiagnostics()),e.sortAndDeduplicateDiagnostics(a).forEach(r),n){var d=t.getCurrentDirectory();e.forEach(u,function(t){var r=e.getNormalizedAbsolutePath(t,d);n("TSFILE: "+r)}),t.getCompilerOptions().listFiles&&e.forEach(t.getSourceFiles(),function(e){n(e.fileName)})}return i&&i(a.filter(function(t){return t.category===e.DiagnosticCategory.Error}).length),l&&a.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:a.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.createDiagnosticReporter=r,e.nonClearingMessageCodes=[e.Diagnostics.Found_1_error_Watching_for_file_changes.code,e.Diagnostics.Found_0_errors_Watching_for_file_changes.code],e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.createWatchStatusReporter=i,e.parseConfigFileWithSystem=function(t,r,n,i){var o=n;o.onUnRecoverableConfigFileDiagnostic=function(t){return u(e.sys,i,t)};var s=a(t,r,o);return o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getParsedCommandLineOfConfigFile=a,e.emitFilesAndReportErrors=o;var s={close:e.noop};function c(t,r,n,a){void 0===t&&(t=e.sys),r||(r=e.createEmitAndSemanticDiagnosticsBuilderProgram);var c=function(e){return t.write(e+t.newLine)},u=a||i(t);return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:function(){return t.getCurrentDirectory()},getDefaultLibLocation:l,getDefaultLibFileName:function(t){return e.combinePaths(l(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:t.realpath&&function(e){return t.realpath(e)},getEnvironmentVariable:t.getEnvironmentVariable&&function(e){return t.getEnvironmentVariable(e)},watchFile:t.watchFile?function(e,r,n){return t.watchFile(e,r,n)}:function(){return s},watchDirectory:t.watchDirectory?function(e,r,n){return t.watchDirectory(e,r,n)}:function(){return s},setTimeout:t.setTimeout?function(e,r){for(var n,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return(n=t.setTimeout).call.apply(n,[t,e,r].concat(i))}:e.noop,clearTimeout:t.clearTimeout?function(e){return t.clearTimeout(e)}:e.noop,trace:function(e){return t.write(e)},onWatchStatusChange:u,createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},onCachedDirectoryStructureHostCreate:function(e){return e||t},createHash:t.createHash&&function(e){return t.createHash(e)},createProgram:r,afterProgramCreate:function(r){var i=r.getCompilerOptions(),a=e.getNewLineCharacter(i,function(){return t.newLine});o(r,n,c,function(t){u(1===t?e.createCompilerDiagnostic(e.Diagnostics.Found_1_error_Watching_for_file_changes,t):e.createCompilerDiagnostic(e.Diagnostics.Found_0_errors_Watching_for_file_changes,t,t),a,i)})}};function l(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}}function u(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createWatchCompilerHostOfConfigFile=function(e,t,n,i,a,o){a=a||r(n);var s=c(n,i,a,o);return s.onUnRecoverableConfigFileDiagnostic=function(e){return u(n,a,e)},s.configFileName=e,s.optionsToExtend=t,s},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,t,n,i,a,o){var s=c(n,i,a||r(n),o);return s.rootFiles=e,s.options=t,s}}(o||(o={})),function(e){e.createWatchCompilerHost=function(t,r,n,i,a,o){return e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions(t,r,n,i,a,o):e.createWatchCompilerHostOfConfigFile(t,r,n,i,a,o)};var t=1;e.createWatchProgram=function(r){var n,i,a,o,s,c,u,l,_=e.createMap(),d=!1,p=!1,f=r.useCaseSensitiveFileNames(),m=r.getCurrentDirectory(),g=function(){return m},y=function(e,t){return r.readFile(e,t)},h=r.configFileName,v=r.optionsToExtend,b=void 0===v?{}:v,x=r.createProgram,S=r.rootFiles,k=r.options,D=!1,T=h&&e.createCachedDirectoryStructureHost(r,m,f);T&&r.onCachedDirectoryStructureHostCreate&&r.onCachedDirectoryStructureHostCreate(T);var C=T||r,E={useCaseSensitiveFileNames:f,readDirectory:function(e,t,r,n,i){return C.readDirectory(e,t,r,n,i)},fileExists:function(e){return r.fileExists(e)},readFile:y,getCurrentDirectory:g,onUnRecoverableConfigFileDiagnostic:r.onUnRecoverableConfigFileDiagnostic},N=U();Y(e.Diagnostics.Starting_compilation_in_watch_mode),h&&(N=e.getNewLineCharacter(b,function(){return r.getNewLine()}),r.configFileParsingResult?te(r.configFileParsingResult):(e.Debug.assert(!S),ee()),N=U());var A=r.trace&&function(e){r.trace(e+N)},P=A?k.extendedDiagnostics?e.WatchLogLevel.Verbose:k.diagnostis?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,w=P!==e.WatchLogLevel.None?A:e.noop,F=e.getWatchFactory(P,w),O=F.watchFile,I=F.watchFilePath,M=F.watchDirectory,L=e.createGetCanonicalFileName(f);w("Current directory: "+m+" CaseSensitiveFileNames: "+f),h&&O(r,h,function(){e.Debug.assert(!!h),i=e.ConfigFileProgramReloadLevel.Full,$()},e.PollingInterval.High);var R={getSourceFile:function(e,t,r,n){return G(e,q(e),t,r,n)},getSourceFileByPath:G,getDefaultLibLocation:r.getDefaultLibLocation&&function(){return r.getDefaultLibLocation()},getDefaultLibFileName:function(e){return r.getDefaultLibFileName(e)},writeFile:function(t,n,i,a){try{e.performance.mark("beforeIOWrite"),function t(n){if(n.length>e.getRootLength(n)&&!r.directoryExists(n)){var i=e.getDirectoryPath(n);t(i),r.createDirectory(n)}}(e.getDirectoryPath(e.normalizePath(t))),r.writeFile(t,n,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:g,useCaseSensitiveFileNames:function(){return f},getCanonicalFileName:L,getNewLine:function(){return N},fileExists:H,readFile:y,trace:A,directoryExists:C.directoryExists&&function(e){return C.directoryExists(e)},getDirectories:C.getDirectories&&function(e){return C.getDirectories(e)},realpath:r.realpath&&function(e){return r.realpath(e)},getEnvironmentVariable:r.getEnvironmentVariable?function(e){return r.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:function(e,t){var r=_.get(e.path);r&&(V(r)?(c||(c=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),_.delete(e.path),B.removeResolutionsOfFile(e.path)))},createHash:r.createHash&&function(e){return r.createHash(e)},toPath:q,getCompilationSettings:function(){return k},watchDirectoryOfFailedLookupLocation:ie,watchTypeRootsDirectory:ie,getCachedDirectoryStructureHost:function(){return T},onInvalidatedResolution:$,onChangedAutomaticTypeDirectiveNames:function(){p=!0,$()},maxNumberOfFilesToIterateForInvalidation:r.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:z,writeLog:w},B=e.createResolutionCache(R,h?e.getDirectoryPath(e.getNormalizedAbsolutePath(h,m)):m,!1);R.resolveModuleNames=r.resolveModuleNames?function(e,t,n){return r.resolveModuleNames(e,t,n)}:function(e,t,r){return B.resolveModuleNames(e,t,r)},R.resolveTypeReferenceDirectives=r.resolveTypeReferenceDirectives?function(e,t){return r.resolveTypeReferenceDirectives(e,t)}:function(e,t){return B.resolveTypeReferenceDirectives(e,t)};var j=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;return K(),se(),h?{getCurrentProgram:J,getProgram:K}:{getCurrentProgram:J,getProgram:K,updateRootFileNames:function(t){e.Debug.assert(!h,"Cannot update root file names with config file watch mode"),S=t,$()}};function J(){return n}function z(){return n&&n.getProgram()}function K(){w("Synchronizing program");var t=z();d&&(N=U(),t&&e.changesAffectModuleResolution(t.getCompilerOptions(),k)&&B.clear());var i=B.createHasInvalidatedResolution(j);if(e.isProgramUptoDate(z(),S,k,Q,H,i,p))return D&&(n=x(void 0,void 0,R,n,l),D=!1),n;P!==e.WatchLogLevel.None&&(w("CreatingProgramWith::"),w(" roots: "+JSON.stringify(S)),w(" options: "+JSON.stringify(k)));var o=d||!t;if(d=!1,D=!1,B.startCachingPerDirectoryResolution(),R.hasInvalidatedResolution=i,R.hasChangedAutomaticTypeDirectiveNames=p,n=x(S,k,R,n,l),B.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(n.getProgram(),a||(a=e.createMap()),ae),o&&B.updateTypeRootsWatch(),c){for(var s=0,u=c;s<u.length;s++){var f=u[s];a.has(f)||_.delete(f)}c=void 0}return r.afterProgramCreate&&r.afterProgramCreate(n),n}function U(){return e.getNewLineCharacter(k||b,function(){return r.getNewLine()})}function q(t){return e.toPath(t,m,L)}function V(e){return"number"==typeof e}function W(e){return!!e.sourceFile}function H(e){var t=q(e);return!!V(_.get(t))||C.fileExists(e)}function G(n,i,a,o,s){var c=_.get(i);if(!V(c)){if(!c||s||!W(c)||c.version.toString()!==c.sourceFile.version){var u=function(){var t;try{e.performance.mark("beforeIORead"),t=r.readFile(n,k.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){o&&o(e.message)}return void 0!==t?e.createSourceFile(n,t,a):void 0}();if(c)s&&c.version++,u?(c.sourceFile=u,u.version=c.version.toString(),c.fileWatcher||(c.fileWatcher=I(r,n,re,e.PollingInterval.Low,i))):(W(c)&&c.fileWatcher.close(),_.set(i,c.version));else if(u){u.version=t.toString();var l=I(r,n,re,e.PollingInterval.Low,i);_.set(i,{sourceFile:u,version:t,fileWatcher:l})}else _.set(i,t);return u}return c.sourceFile}}function X(e){var t=_.get(e);void 0!==t&&(V(t)?_.set(e,{version:Number(t)+1}):t.version++)}function Q(e){var t=_.get(e);return!t||V(t)?void 0:t.version.toString()}function Y(t){r.onWatchStatusChange&&r.onWatchStatusChange(e.createCompilerDiagnostic(t),N,k||b)}function $(){r.setTimeout&&r.clearTimeout&&(s&&r.clearTimeout(s),s=r.setTimeout(Z,250))}function Z(){switch(s=void 0,Y(e.Diagnostics.File_change_detected_Starting_incremental_compilation),i){case e.ConfigFileProgramReloadLevel.Partial:return(t=e.getFileNamesFromConfigSpecs(u,e.getDirectoryPath(h),k,E)).fileNames.length?(l=e.filter(l,function(t){return!e.isErrorNoInputFiles(t)}),D=!0):u.filesSpecs||e.some(l,e.isErrorNoInputFiles)||(l=l.concat(e.getErrorForNoInputFiles(u,h)),D=!0),S=t.fileNames,void K();case e.ConfigFileProgramReloadLevel.Full:return w("Reloading config file: "+h),i=e.ConfigFileProgramReloadLevel.None,T&&T.clearCache(),ee(),d=!0,K(),void se();default:return void K()}var t}function ee(){te(e.getParsedCommandLineOfConfigFile(h,b,E))}function te(t){S=t.fileNames,k=t.options,u=t.configFileSpecs,l=e.getConfigFileParsingDiagnostics(t),D=!0}function re(t,r,n){ne(t,n,r),r===e.FileWatcherEventKind.Deleted&&_.get(n)&&B.invalidateResolutionOfFile(n),X(n),$()}function ne(e,t,r){T&&T.addOrDeleteFile(e,t,r)}function ie(e,t,n){return M(r,e,t,n)}function ae(t){return I(r,t,oe,e.PollingInterval.Medium,t)}function oe(t,r,n){ne(t,n,r),r===e.FileWatcherEventKind.Created&&a.has(n)&&(a.get(n).close(),a.delete(n),X(n),$())}function se(){u?e.updateWatchingWildcardDirectories(o||(o=e.createMap()),e.createMapFromTemplate(u.wildcardDirectories),ce):o&&e.clearMap(o,e.closeFileWatcherOf)}function ce(t,r){return ie(t,function(r){e.Debug.assert(!!h);var n=q(r);T&&T.addOrDeleteFileOrDirectory(r,n),X(n),n===t||!e.hasExtension(n)||e.isSupportedSourceFileName(r,k)?i!==e.ConfigFileProgramReloadLevel.Full&&(i=e.ConfigFileProgramReloadLevel.Partial,$()):w("Project: "+h+" Detected file add/remove of non supported extension: "+r)},r)}}}(o||(o={})),function(e){var t,r;function n(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function i(){if(t)return t;var r=e.createMap(),n=e.createMap();return e.forEach(e.optionDeclarations,function(e){r.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)}),t={optionNameMap:r,shortOptionNames:n}}function a(t){return o(t,e.createCompilerDiagnostic)}function o(t,r){var n=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return r(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,n)}function s(e,t,r){return I(e,M(t||""),r)}function c(t,r,n){if(void 0===r&&(r=""),r=M(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,function(e){return e||""});default:return e.filter(e.map(i,function(e){return s(t.element,e,n)}),function(e){return!!e})}}}function u(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=i(),n=r.optionNameMap,a=r.shortOptionNames;if(t){var o=a.get(e);void 0!==o&&(e=o)}return n.get(e)}function l(t,r){var n=e.parseJsonText(t,r);return{config:m(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function _(t,r){var n=d(t,r);return e.isString(n)?e.parseJsonText(t,n):{parseDiagnostics:[n]}}function d(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):n}function f(t){return e.arrayToMap(t,function(e){return e.name})}function m(e,t){return g(e,t,void 0,void 0)}function g(t,r,n,i){return t.jsonObject?a(t.jsonObject,n,void 0,void 0):{};function a(a,o,u,l){for(var _={},d=0,p=a.properties;d<p.length;d++){var f=p[d];if(269===f.kind){f.questionToken&&r.push(e.createDiagnosticForNodeInSourceFile(t,f.questionToken,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),c(f.name)||r.push(e.createDiagnosticForNodeInSourceFile(t,f.name,e.Diagnostics.String_literal_with_double_quotes_expected));var m=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(f.name)),g=o?o.get(m):void 0;u&&!g&&r.push(e.createDiagnosticForNodeInSourceFile(t,f.name,u,m));var y=s(f.initializer,g);if(void 0!==m&&(_[m]=y,i&&(l||o===n))){var v=h(g,y);l?v&&i.onSetValidOptionKeyValueInParent(l,g,y):o===n&&(v?i.onSetValidOptionKeyValueInRoot(m,f.name,y,f.initializer):g||i.onSetUnknownOptionKeyValueInRoot(m,f.name,y,f.initializer))}}else r.push(e.createDiagnosticForNodeInSourceFile(t,f,e.Diagnostics.Property_assignment_expected))}return _}function s(n,i){switch(n.kind){case 101:return m(i&&"boolean"!==i.type),!0;case 86:return m(i&&"boolean"!==i.type),!1;case 95:return m(i&&"extends"===i.name),null;case 9:c(n)||r.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.String_literal_with_double_quotes_expected)),m(i&&e.isString(i.type)&&"string"!==i.type);var u=n.text;if(i&&!e.isString(i.type)){var l=i;l.type.has(u.toLowerCase())||r.push(o(l,function(r,i,a){return e.createDiagnosticForNodeInSourceFile(t,n,r,i,a)}))}return u;case 8:return m(i&&"number"!==i.type),Number(n.text);case 197:if(38!==n.operator||8!==n.operand.kind)break;return m(i&&"number"!==i.type),-Number(n.operand.text);case 183:m(i&&"object"!==i.type);var _=n;if(i){var d=i;return a(_,d.elementOptions,d.extraKeyDiagnosticMessage,d.name)}return a(_,void 0,void 0,void 0);case 182:return m(i&&"list"!==i.type),p=n.elements,f=i&&i.element,p.map(function(e){return s(e,f)})}var p,f;return void(i?m(!0):r.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function m(a){a&&r.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,i.name,y(i)))}}function c(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function y(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function h(t,r){if(t){if(b(r))return!0;if("list"===t.type)return e.isArray(r);var n=e.isString(t.type)?t.type:"string";return p(r)===n}}function v(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function b(e){return void 0===e||null===e}function x(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function S(t,r,n,i,a,o,s,c){void 0===a&&(a={}),void 0===s&&(s=[]),void 0===c&&(c=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var u=[],l=T(t,r,n,i,o,s,u),_=l.raw,d=e.extend(a,l.options||{});d.configFilePath=o,v(d,r);var p=function(){var t,a,l;e.hasProperty(_,"files")&&!b(_.files)&&(e.isArray(_.files)?0===(t=_.files).length&&y(e.Diagnostics.The_files_list_in_config_file_0_is_empty,o||"tsconfig.json"):y(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array"));e.hasProperty(_,"include")&&!b(_.include)&&(e.isArray(_.include)?a=_.include:y(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));if(e.hasProperty(_,"exclude")&&!b(_.exclude))e.isArray(_.exclude)?l=_.exclude:y(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else{var p=_.compilerOptions&&_.compilerOptions.outDir;p&&(l=[p])}void 0===t&&void 0===a&&(a=["**/*"]);var f=function(t,r,n,i,a,o,s,c,u){var l,_;i=e.normalizePath(i),r&&(l=z(r,s,!1,u,"include"));n&&(_=z(n,s,!0,u,"exclude"));var d=function(t,r,n,i){var a=e.getRegularExpressionForWildcard(r,n,"exclude"),o=a&&new RegExp(a,i?"":"i"),s={};if(void 0!==t){for(var c=[],u=0,l=t;u<l.length;u++){var _=l[u],d=e.normalizePath(e.combinePaths(n,_));if(!o||!o.test(d)){var p=K(d,i);if(p){var f=p.key,m=p.flags,g=s[f];(void 0===g||g<m)&&(s[f]=m,1===m&&c.push(f))}}}for(var f in s)if(e.hasProperty(s,f))for(var y=0,h=c;y<h.length;y++){var v=h[y];f!==v&&e.containsPath(v,f,n,!i)&&delete s[f]}}return s}(l,_,i,o.useCaseSensitiveFileNames);return J({filesSpecs:t,includeSpecs:r,excludeSpecs:n,validatedIncludeSpecs:l,validatedExcludeSpecs:_,wildcardDirectories:d},i,a,o,c)}(t,a,l,o?x(o,i):i,d,n,u,c,r);0!==f.fileNames.length||e.hasProperty(_,"files")||0!==s.length||u.push(k(f.spec,o));return f}(),f=p.fileNames,m=p.wildcardDirectories,g=p.spec;return{options:d,fileNames:f,typeAcquisition:l.typeAcquisition||A(),raw:_,errors:u,wildcardDirectories:m,compileOnSave:!!_.compileOnSave,configFileSpecs:g};function y(t,n,i){r||u.push(e.createCompilerDiagnostic(t,n,i))}}function k(t,r){var n=t.includeSpecs,i=t.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(n||[]),JSON.stringify(i||[]))}function D(e){return!!e.options}function T(t,n,i,a,o,s,c){a=e.normalizeSlashes(a);var u=e.getNormalizedAbsolutePath(o||"",a);if(s.indexOf(u)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,s.concat([u]).join(" -> "))),{raw:t||m(n,c)};var l=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=N(t.compilerOptions,n,a,i),c=P(t.typeAcquisition||t.typingOptions,n,a,i);if(t.compileOnSave=function(t,r,n){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=F(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return!("boolean"!=typeof i||!i)&&i}}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?x(i,n):n;o=C(t.extends,r,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,typeAcquisition:c,extendedConfigPath:o}}(t,i,a,o,c):function(t,n,i,a,o){var s,c,u,l=E(a),_={onSetValidOptionKeyValueInParent:function(t,r,n){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t);var o="compilerOptions"===t?l:"typeAcquisition"===t?s||(s=A(a)):c||(c=A(a));o[r.name]=function t(r,n,i){if(b(i))return;if("list"===r.type){var a=r;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(i,function(e){return t(a.element,n,e)}),function(e){return!!e}):i}if(!e.isString(r.type))return r.type.get(e.isString(i)?i.toLowerCase():i);return O(r,n,i)}(r,i,n)},onSetValidOptionKeyValueInRoot:function(r,s,c,l){switch(r){case"extends":var _=a?x(a,i):i;return void(u=C(c,n,_,o,function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}));case"files":return void(0===c.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,l,e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,a){"excludes"===r&&o.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=g(t,o,(void 0===r&&(r=f([{name:"compilerOptions",type:"object",elementOptions:f(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:f(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:f(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])),r),_);s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:A(a));return{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}(n,i,a,o,c);if(l.extendedConfigPath){s=s.concat([u]);var d=function(t,r,n,i,a,o){var s=_(r,function(e){return n.readFile(e)});t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(s.fileName);if(s.parseDiagnostics.length)return void o.push.apply(o,s.parseDiagnostics);var c,u=e.getDirectoryPath(r),l=T(void 0,s,n,u,e.getBaseFileName(r),a,o);t&&(c=t.extendedSourceFiles).push.apply(c,s.extendedSourceFiles);if(D(l)){var d=e.convertToRelativePath(u,i,e.identity),p=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(d,t)},f=function(t){m[t]&&(m[t]=e.map(m[t],p))},m=l.raw;f("include"),f("exclude"),f("files")}return l}(n,l.extendedConfigPath,i,a,s,c);if(d&&D(d)){var p=d.raw,y=l.raw,h=function(e){var t=y[e]||p[e];t&&(y[e]=t)};h("include"),h("exclude"),h("files"),void 0===y.compileOnSave&&(y.compileOnSave=p.compileOnSave),l.options=e.assign({},d.options,l.options)}}return l}function C(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);if(r.fileExists(o)||e.endsWith(o,".json")||(o+=".json",r.fileExists(o)))return o;i.push(a(e.Diagnostics.File_0_does_not_exist,t))}else i.push(a(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t))}function E(t){return"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function N(t,r,n,i){var a=E(i);return w(e.optionDeclarations,t,r,a,e.Diagnostics.Unknown_compiler_option_0,n),a}function A(t){return{enable:"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function P(t,r,i,a){var o=A(a),s=n(t);return w(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function w(t,r,n,i,a,o){if(r){var s=f(t);for(var c in r){var u=s.get(c);u?i[u.name]=F(u,r[c],n,o):o.push(e.createCompilerDiagnostic(a,c))}}}function F(t,r,n,i){if(h(t,r)){var a=t.type;return"list"===a&&e.isArray(r)?function(t,r,n,i){return e.filter(e.map(r,function(e){return F(t.element,e,n,i)}),function(e){return!!e})}(t,r,n,i):e.isString(a)?O(t,n,r):I(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,y(t)))}function O(t,r,n){return t.isFilePath&&""===(n=e.normalizePath(e.combinePaths(r,n)))&&(n="."),n}function I(e,t,r){if(!b(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return i;r.push(a(e))}}function M(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"},e.optionDeclarations=[{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:"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:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{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:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,esnext:6}),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_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({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,esnext:e.ModuleKind.ESNext}),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_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.createMapFromTemplate({es5:"lib.es5.d.ts",es6:"lib.es2015.d.ts",es2015:"lib.es2015.d.ts",es7:"lib.es2016.d.ts",es2016:"lib.es2016.d.ts",es2017:"lib.es2017.d.ts",es2018:"lib.es2018.d.ts",esnext:"lib.esnext.d.ts",dom:"lib.dom.d.ts","dom.iterable":"lib.dom.iterable.d.ts",webworker:"lib.webworker.d.ts",scripthost:"lib.scripthost.d.ts","es2015.core":"lib.es2015.core.d.ts","es2015.collection":"lib.es2015.collection.d.ts","es2015.generator":"lib.es2015.generator.d.ts","es2015.iterable":"lib.es2015.iterable.d.ts","es2015.promise":"lib.es2015.promise.d.ts","es2015.proxy":"lib.es2015.proxy.d.ts","es2015.reflect":"lib.es2015.reflect.d.ts","es2015.symbol":"lib.es2015.symbol.d.ts","es2015.symbol.wellknown":"lib.es2015.symbol.wellknown.d.ts","es2016.array.include":"lib.es2016.array.include.d.ts","es2017.object":"lib.es2017.object.d.ts","es2017.sharedmemory":"lib.es2017.sharedmemory.d.ts","es2017.string":"lib.es2017.string.d.ts","es2017.intl":"lib.es2017.intl.d.ts","es2017.typedarrays":"lib.es2017.typedarrays.d.ts","es2018.promise":"lib.es2018.promise.d.ts","es2018.regexp":"lib.es2018.regexp.d.ts","esnext.array":"lib.esnext.array.d.ts","esnext.asynciterable":"lib.esnext.asynciterable.d.ts"})},showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",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:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file},{name:"declarationMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",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",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:"removeComments",type:"boolean",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},{name:"importHelpers",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",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},{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",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",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictPropertyInitialization",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",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",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",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",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",showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),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",isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",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},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!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},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!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"},showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",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",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:"sourceRoot",type:"string",isFilePath:!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",isFilePath:!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",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",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",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",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:"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:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_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:"out",type:"string",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},{name:"reactNamespace",type:"string",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",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{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},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),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",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",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",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}],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"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0},e.convertEnableAutoDiscoveryToEnable=n,e.createCompilerDiagnosticForInvalidCustomType=a,e.parseCustomTypeOption=s,e.parseListTypeOption=c,e.parseCommandLine=function(t,r){var n={},i=[],a=[];return o(t),{options:n,fileNames:i,errors:a};function o(t){for(var r=0;r<t.length;){var o=t[r];if(r++,64===o.charCodeAt(0))l(o.slice(1));else if(45===o.charCodeAt(0)){var _=u(o.slice(45===o.charCodeAt(1)?2:1),!0);if(_)if(_.isTSConfigOnly)a.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,_.name));else switch(t[r]||"boolean"===_.type||a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_expects_an_argument,_.name)),_.type){case"number":n[_.name]=parseInt(t[r]),r++;break;case"boolean":var d=t[r];n[_.name]="false"!==d,"false"!==d&&"true"!==d||r++;break;case"string":n[_.name]=t[r]||"",r++;break;case"list":var p=c(_,t[r],a);n[_.name]=p||[],p&&r++;break;default:n[_.name]=s(_,t[r],a),r++}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_compiler_option_0,o))}else i.push(o)}}function l(t){var n=r?r(t):e.sys.readFile(t);if(n){for(var i=[],s=0;;){for(;s<n.length&&n.charCodeAt(s)<=32;)s++;if(s>=n.length)break;var c=s;if(34===n.charCodeAt(c)){for(s++;s<n.length&&34!==n.charCodeAt(s);)s++;s<n.length?(i.push(n.substring(c+1,s)),s++):a.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;n.charCodeAt(s)>32;)s++;i.push(n.substring(c,s))}}o(i)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t))}},e.readConfigFile=function(t,r){var n=d(t,r);return e.isString(n)?l(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=l,e.readJsonConfigFile=_,e.convertToObject=m,e.generateTSConfig=function(t,r,n){var a=function(t){var r=e.createMap(),n=i().optionNameMap,a=function(i){if(e.hasProperty(t,i)){if(n.has(i)&&n.get(i).category===e.Diagnostics.Command_line_Options)return"continue";var a=t[i],s=n.get(i.toLowerCase());if(s){var c=function e(t){return"string"===t.type||"number"===t.type||"boolean"===t.type?void 0:"list"===t.type?e(t.element):t.type}(s);c?"list"===s.type?r.set(i,a.map(function(e){return o(e,c)})):r.set(i,o(a,c)):r.set(i,a)}}};for(var s in t)a(s);return r}(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),i=0,o=e.optionDeclarations;i<o.length;i++){var l=o[i],_=l.category;u(l)&&t.add(e.getLocaleSpecificMessage(_),l)}var d=0,p=0,f=[],m=[];t.forEach(function(t,r){0!==f.length&&(f.push(""),m.push("")),f.push("/* "+r+" */"),m.push("");for(var n=0,i=t;n<i.length;n++){var o=i[n],c=void 0;c=a.has(o.name)?'"'+o.name+'": '+JSON.stringify(a.get(o.name))+((p+=1)===a.size?"":","):'// "'+o.name+'": '+JSON.stringify(s(o))+",",f.push(c),m.push("/* "+(o.description&&e.getLocaleSpecificMessage(o.description)||o.name)+" */"),d=Math.max(c.length,d)}});var g=c(2),y=[];y.push("{"),y.push(g+'"compilerOptions": {');for(var h=0;h<f.length;h++){var v=f[h],b=m[h];y.push(v&&""+g+g+v+(b&&c(d-v.length+2)+b))}if(r.length){y.push(g+"},"),y.push(g+'"files": [');for(var h=0;h<r.length;h++)y.push(""+g+g+JSON.stringify(r[h])+(h===r.length-1?"":","));y.push(g+"]")}else y.push(g+"}");return y.push("}"),y.join(n)}();function o(t,r){return e.forEachEntry(r,function(e,r){if(e===t)return r})}function s(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.type.keys().next().value}}function c(e){return Array(e+1).join(" ")}function u(t){var r=t.category,n=t.name;return void 0!==r&&r!==e.Diagnostics.Command_line_Options&&(r!==e.Diagnostics.Advanced_Options||a.has(n))}},e.parseJsonConfigFileContent=function(e,t,r,n,i,a,o){return S(e,void 0,t,r,n,i,a,o)},e.parseJsonSourceFileConfigFileContent=function(e,t,r,n,i,a,o){return S(void 0,e,t,r,n,i,a,o)},e.setConfigFileInOptions=v,e.isErrorNoInputFiles=function(t){return t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code},e.getErrorForNoInputFiles=k,e.convertCompilerOptionsFromJson=function(e,t,r){var n=[];return{options:N(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:P(e,t,n,r),errors:n}};var L=/(^|\/)\*\*\/?$/,R=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,B=/\/[^/]*?[*?][^/]*\//,j=/^[^*?]*(?=\/[^/]*[*?])/;function J(t,r,n,i,a){void 0===a&&(a=[]),r=e.normalizePath(r);var o=i.useCaseSensitiveFileNames?e.identity:e.toLowerCase,s=e.createMap(),c=e.createMap(),u=t.filesSpecs,l=t.validatedIncludeSpecs,_=t.validatedExcludeSpecs,d=t.wildcardDirectories,p=e.getSupportedExtensions(n,a);if(u)for(var f=0,m=u;f<m.length;f++){var g=m[f],y=e.getNormalizedAbsolutePath(g,r);s.set(o(y),y)}if(l&&l.length>0)for(var h=0,v=i.readDirectory(r,p,_,l,void 0);h<v.length;h++){if(!U(y=v[h],s,c,p,o)){q(y,c,p,o);var b=o(y);s.has(b)||c.has(b)||c.set(b,y)}}var x=e.arrayFrom(s.values()),S=e.arrayFrom(c.values());return{fileNames:x.concat(S),wildcardDirectories:d,spec:t}}function z(t,r,n,i,a){return t.filter(function(t){var o=function(t,r){if(!r&&L.test(t))return e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(R.test(t))return e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}(t,n);return void 0!==o&&r.push(function(t,r){if(i&&i.jsonObject)for(var n=0,o=e.getPropertyAssignment(i.jsonObject,a);n<o.length;n++){var s=o[n];if(e.isArrayLiteralExpression(s.initializer))for(var c=0,u=s.initializer.elements;c<u.length;c++){var l=u[c];if(e.isStringLiteral(l)&&l.text===r)return e.createDiagnosticForNodeInSourceFile(i,l,t,r)}}return e.createCompilerDiagnostic(t,r)}(o,t)),void 0===o})}function K(t,r){var n=j.exec(t);return n?{key:r?n[0]:n[0].toLowerCase(),flags:B.test(t)?1:0}:e.isImplicitGlob(t)?{key:t,flags:1}:void 0}function U(t,r,n,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;c<s;c++){var u=i[c],l=a(e.changeExtension(t,u));if(r.has(l)||n.has(l))return!0}return!1}function q(t,r,n,i){for(var a=e.getExtensionPriority(t,n),o=e.getNextLowestExtensionPriority(a,n);o<n.length;o++){var s=n[o],c=i(e.changeExtension(t,s));r.delete(c)}}function V(t,r){switch(r.type){case"object":case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var n=r.element;return e.isArray(t)?t.map(function(e){return V(e,n)}):"";default:return e.forEachEntry(r.type,function(e,r){if(e===t)return r})}}e.getFileNamesFromConfigSpecs=J,e.convertCompilerOptionsForTelemetry=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=u(r);void 0!==n&&(t[r]=V(e[r],n))}return t}}(o||(o={})),function(e){!function(e){var t=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new t(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),e.defaultPreferences={};var t=function(){return function(){}}();e.TextChange=t,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"}(e.IndentStyle||(e.IndentStyle={})),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[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.StringLiteral=7]="StringLiteral",e[e.RegExpLiteral=8]="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.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.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",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.ClassificationType||(e.ClassificationType={}))}(o||(o={})),function(e){function t(t){switch(t.kind){case 148:case 231:case 181:case 151:case 150:case 269:case 270:case 153:case 152:case 154:case 155:case 156:case 233:case 191:case 192:case 268:case 261:return 1;case 147:case 235:case 236:case 165:return 2;case 292:return void 0===t.name?3:2;case 272:case 234:return 3;case 238:return e.isAmbientModule(t)?5:1===e.getModuleInstanceState(t)?5:4;case 237:case 246:case 247:case 242:case 243:case 248:case 249:return 7;case 273:return 5}return 7}function r(t){for(;145===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e,t){var r=i(e);return r&&r.parent&&r.parent.kind===t&&r.parent.expression===r}function i(e){return s(e)?e.parent:e}function a(t){return 71===t.kind&&e.isBreakOrContinueStatement(t.parent)&&t.parent.label===t}function o(t){return 71===t.kind&&e.isLabeledStatement(t.parent)&&t.parent.label===t}function s(e){return e&&e.parent&&184===e.parent.kind&&e.parent.name===e}e.scanner=e.createScanner(6,!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=t,e.getMeaningFromLocation=function(n){return 273===n.kind?1:248===n.parent.kind?7:r(n)?function(t){var r=145===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&242===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(n.parent):function(t){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 99:return!e.isExpressionNode(t);case 173:return!0}switch(t.parent.kind){case 161:return!0;case 206:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(145===t.parent.kind){for(;t.parent&&145===t.parent.kind;)t=t.parent;r=t.right===e}return 161===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(184===t.parent.kind){for(;t.parent&&184===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&206===t.parent.kind&&267===t.parent.parent.kind){var n=t.parent.parent.parent;return 234===n.kind&&108===t.parent.parent.token||235===n.kind&&85===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(n.parent)?(e.Debug.assert(e.isJSDocTemplateTag(n.parent.parent)),2):1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(e){return n(e,186)},e.isNewExpressionTarget=function(e){return n(e,187)},e.climbPastPropertyAccess=i,e.getTargetLabel=function(e,t){for(;e;){if(227===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.isJumpStatementTarget=a,e.isLabelOfLabeledStatement=o,e.isLabelName=function(e){return o(e)||a(e)},e.isRightSideOfQualifiedName=function(e){return 145===e.parent.kind&&e.parent.right===e},e.isRightSideOfPropertyAccess=s,e.isNameOfModuleDeclaration=function(e){return 238===e.parent.kind&&e.parent.name===e},e.isNameOfFunctionDeclaration=function(t){return 71===t.kind&&e.isFunctionLike(t.parent)&&t.parent.name===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 151:case 150:case 269:case 272:case 153:case 152:case 155:case 156:case 238:return e.getNameOfDeclaration(t.parent)===t;case 185:return t.parent.argumentExpression===t;case 146:return!0;case 177:return 175===t.parent.parent.kind}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(e){for(292===e.kind&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 273:case 153:case 152:case 233:case 191:case 155:case 156:case 234:case 235:case 237:case 238:return e}}},e.getNodeKind=function t(r){switch(r.kind){case 273:return e.isExternalModule(r)?"module":"script";case 238:return"module";case 234:case 204:return"class";case 235:return"interface";case 236:return"type";case 237:return"enum";case 231:return o(r);case 181:return o(e.getRootDeclaration(r));case 192:case 233:case 191:return"function";case 155:return"getter";case 156:return"setter";case 153:case 152:return"method";case 151:case 150:return"property";case 159:return"index";case 158:return"construct";case 157:return"call";case 154:return"constructor";case 147:return"type parameter";case 272:return"enum member";case 148:return e.hasModifier(r,92)?"property":"parameter";case 242:case 247:case 244:case 251:case 245:return"alias";case 292:return"type";case 199:var n=e.getSpecialPropertyAssignmentKind(r),i=r.right;switch(n){case 0:return"";case 1:case 2:var a=t(i);return""===a?"const":a;case 3:return e.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:return e.assertTypeIsNever(n),""}default:return""}function o(t){return e.isConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 99:return!0;case 71:return e.identifierIsThisKeyword(t)&&148===t.parent.kind;default:return!1}};var c=/^\/\/\/\s*</;function u(e,t){return l(e.pos,e.end,t)}function l(e,t,r){return e<=r.pos&&t>=r.end}function _(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function d(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.lastOrUndefined(i);if(a.kind===r)return!0;if(25===a.kind&&1!==i.length)return i[i.length-2].kind===r}return!1}function p(e,t,r){return!!f(e,t,r)}function f(t,r,n){return e.find(t.getChildren(n),function(e){return e.kind===r})}function m(t){var r=e.find(t.parent.getChildren(),function(r){return e.isSyntaxList(r)&&u(r,t)});return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function g(e,t,r,n){return h(e,t,!1,n,!1,r)}function y(e,t,r,n){return h(e,t,!0,void 0,n,r)}function h(t,r,n,i,a,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();c<u.length;c++){var l=u[c];if(o||!e.isJSDocNode(l)){if((n?l.getFullStart():l.getStart(t,o))>r)break;var _=l.getEnd();if(r<_||r===_&&(1===l.kind||a)){s=l;continue e}if(i&&_===r){var d=v(r,t,l);if(d&&i(d))return d}}}return s}}function v(t,r,n,i){var a=function a(o){if(b(o))return o;var s=o.getChildren(r);for(var c=0;c<s.length;c++){var u=s[c];if(t<u.end){var l=u.getStart(r,i),_=l>=t||!C(u)||k(u);if(_){var d=S(s,c);return d&&x(d,r)}return a(u)}}e.Debug.assert(void 0!==n||273===o.kind||e.isJSDocCommentContainingNode(o));if(s.length){var d=S(s,s.length);return d&&x(d,r)}}(n||r);return e.Debug.assert(!(a&&k(a))),a}function b(t){return e.isToken(t)&&!k(t)}function x(e,t){if(b(e))return e;var r=e.getChildren(t),n=S(r,r.length);return n&&x(n,t)}function S(t,r){for(var n=r-1;n>=0;n--){if(k(t[n]))e.Debug.assert(n>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(C(t[n]))return t[n]}}function k(t){return e.isJsxText(t)&&t.containsOnlyWhiteSpaces}function D(e,t,r){for(var n=e.kind,i=0;;){if(!(e=v(e.getFullStart(),r)))return;if(e.kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function T(t,r,n,i){return!!e.formatting.getRangeOfEnclosingComment(t,r,!1,void 0,n,i)}function C(e){return 0!==e.getWidth()}function E(e,t){return{span:e,newText:t}}function N(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=u,e.startEndContainsRange=l,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return _(e.pos,e.end,t,r)},e.startEndOverlapsWithStartEnd=_,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),r<t.end||!function t(r,n){if(e.nodeIsMissing(r))return!1;switch(r.kind){case 234:case 235:case 237:case 183:case 179:case 165:case 212:case 239:case 240:case 246:case 250:return d(r,18,n);case 268:return t(r.block,n);case 187:if(!r.arguments)return!0;case 186:case 190:case 172:return d(r,20,n);case 162:case 163:return t(r.type,n);case 154:case 155:case 156:case 233:case 191:case 153:case 152:case 158:case 157:case 192:return r.body?t(r.body,n):r.type?t(r.type,n):p(r,20,n);case 238:return r.body&&t(r.body,n);case 216:return r.elseStatement?t(r.elseStatement,n):t(r.thenStatement,n);case 215:return t(r.expression,n)||p(r,25,n);case 182:case 180:case 185:case 146:case 167:return d(r,22,n);case 159:return r.type?t(r.type,n):p(r,22,n);case 265:case 266:return!1;case 219:case 220:case 221:case 218:return t(r.statement,n);case 217:return p(r,106,n)?d(r,20,n):t(r.statement,n);case 164:return t(r.exprName,n);case 194:case 193:case 195:case 202:case 203:var i=r;return t(i.expression,n);case 188:return t(r.template,n);case 201:var a=e.lastOrUndefined(r.templateSpans);return t(a,n);case 210:return e.nodeIsPresent(r.literal);case 249:case 243:return e.nodeIsPresent(r.moduleSpecifier);case 197:return t(r.operand,n);case 199:return t(r.right,n);case 200:return t(r.whenFalse,n);default:return!0}}(t,n)},e.findListItemInfo=function(t){var r=m(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOfNode(n,t),list:r}}},e.hasChildOfKind=p,e.findChildOfKind=f,e.findContainingList=m,e.getTouchingPropertyName=function(t,r,n){return g(t,r,n,function(t){return e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)})},e.getTouchingToken=g,e.getTokenAtPosition=y,e.findTokenOnLeftOfPosition=function(t,r){var n=y(t,r,!1);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:v(r,t)},e.findNextToken=function(t,r){return function r(n){if(e.isToken(n)&&n.pos===t.end)return n;for(var i=n.getChildren(),a=0,o=i;a<o.length;a++){var s=o[a],c=s.pos<=t.pos&&s.end>t.end||s.pos===t.end;if(c&&C(s))return r(s)}}(r)},e.findPrecedingToken=v,e.isInString=function(t,r,n){if(void 0===n&&(n=v(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(),a=n.getEnd();if(i<r&&r<a)return!0;if(r===a)return!!n.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=function(e,t){var r=y(e,t,!1);return!!r&&(10===r.kind||27===r.kind&&10===r.parent.kind||27===r.kind&&264===r.parent.kind||!(!r||18!==r.kind||264!==r.parent.kind)||27===r.kind&&257===r.parent.kind)},e.isInTemplateString=function(t,r){var n=y(t,r,!1);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)},e.findPrecedingMatchingToken=D,e.isPossiblyTypeArgumentPosition=function(t,r){for(var n=0;t;){switch(t.kind){case 27:var i=(t=v(t.getFullStart(),r))&&e.isIdentifier(t);if(!n||!i)return i;n--;break;case 47:n=3;break;case 46:n=2;break;case 29:n++;break;case 18:if(!(t=D(t,17,r)))return!1;break;case 20:if(!(t=D(t,19,r)))return!1;break;case 22:if(!(t=D(t,21,r)))return!1;break;case 26:case 36:case 71:case 9:case 8:case 101:case 86:case 103:case 85:case 128:case 23:case 49:case 55:case 56:break;default:if(e.isTypeNode(t))break;return!1}t=v(t.getFullStart(),r)}return!1},e.isInComment=T,e.hasDocComment=function(t,r){var n=y(t,r,!1),i=e.getLeadingCommentRanges(t.text,n.pos);return e.forEach(i,function(e){var r=t.text;return r.length>=e.pos+3&&"/"===r[e.pos]&&"*"===r[e.pos+1]&&"*"===r[e.pos+2]})},e.getNodeModifiers=function(t){var r=e.getCombinedModifierFlags(t),n=[];return 8&r&&n.push("private"),16&r&&n.push("protected"),4&r&&n.push("public"),32&r&&n.push("static"),128&r&&n.push("abstract"),1&r&&n.push("export"),2097152&t.flags&&n.push("declare"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 161===t.kind||186===t.kind?t.typeArguments:e.isFunctionLike(t)||234===t.kind||235===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 17<=e&&e<=70},e.isInsideTemplateLiteral=function(t,r){return e.isTemplateLiteralKind(t.kind)&&t.getStart()<r&&r<t.getEnd()||!!t.isUnterminated&&r===t.getEnd()},e.isAccessibilityModifier=function(e){switch(e){case 114:case 112:case 113:return!0}return!1},e.cloneCompilerOptions=function(t){var r=e.clone(t);return e.setConfigFileInOptions(r,t&&t.configFile),r},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(182===t.kind||183===t.kind){if(199===t.parent.kind&&t.parent.left===t&&58===t.parent.operatorToken.kind)return!0;if(221===t.parent.kind&&t.parent.initializer===t)return!0;if(e(269===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.hasTrailingDirectorySeparator=function(e){var t=e.charAt(e.length-1);return"/"===t||"\\"===t},e.isInReferenceComment=function(e,t){return T(e,t,void 0,function(t){var r=e.text.substring(t.pos,t.end);return c.test(r)})},e.isInNonReferenceComment=function(e,t){return T(e,t,void 0,function(t){var r=e.text.substring(t.pos,t.end);return!c.test(r)})},e.createTextSpanFromNode=function(t,r){return e.createTextSpanFromBounds(t.getStart(r),t.getEnd())},e.createTextSpanFromRange=function(t){return e.createTextSpanFromBounds(t.pos,t.end)},e.createTextChangeFromStartLength=function(t,r,n){return E(e.createTextSpan(t,r),n)},e.createTextChange=E,e.typeKeywords=[119,122,128,131,95,134,135,137,138,105,140,141],e.isTypeKeyword=function(t){return e.contains(e.typeKeywords,t)},e.isExternalModuleSymbol=function(t){return e.Debug.assert(!!(1536&t.flags)),34===t.name.charCodeAt(0)},e.nodeSeenTracker=function(){var t=[];return function(r){var n=e.getNodeId(r);return!t[n]&&(t[n]=!0)}},e.getSnapshotText=function(e){return e.getText(0,e.getLength())},e.repeatString=function(e,t){for(var r="",n=0;n<t;n++)r+=e;return r},e.skipConstraint=function(e){return e.isTypeParameter()?e.getConstraint():e},e.getNameFromPropertyName=function(t){return 146===t.kind?e.isStringOrNumericLiteral(t.expression)?t.expression.text:void 0:e.getTextOfIdentifierOrLiteral(t)},e.hostUsesCaseSensitiveFileNames=N,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(N(t))}}(o||(o={})),function(e){function t(e){return e.declarations&&e.declarations.length>0&&148===e.declarations[0].kind}e.isFirstDeclarationOfSymbolParameter=t;var r=function(){var t,r,a;l();var o=function(t){return u(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){return t},writeKeyword:function(t){return u(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return u(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return u(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return u(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return u(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return u(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return u(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return u(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){s(),t.push(n(e,r))},writeLine:function(){t.push(c()),r=!0},write:o,writeTextOfNode:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return a},increaseIndent:function(){a++},decreaseIndent:function(){a--},clear:l,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(r){var n=e.getIndentString(a);n&&t.push(i(n,e.SymbolDisplayPartKind.space)),r=!1}}function u(e,r){s(),t.push(i(e,r))}function l(){t=[],r=!0,a=0}}();function n(r,n){return i(r,function(r){var n=r.flags;if(3&n)return t(r)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&n)return e.SymbolDisplayPartKind.propertyName;if(32768&n)return e.SymbolDisplayPartKind.propertyName;if(65536&n)return e.SymbolDisplayPartKind.propertyName;if(8&n)return e.SymbolDisplayPartKind.enumMemberName;if(16&n)return e.SymbolDisplayPartKind.functionName;if(32&n)return e.SymbolDisplayPartKind.className;if(64&n)return e.SymbolDisplayPartKind.interfaceName;if(384&n)return e.SymbolDisplayPartKind.enumName;if(1536&n)return e.SymbolDisplayPartKind.moduleName;if(8192&n)return e.SymbolDisplayPartKind.methodName;if(262144&n)return e.SymbolDisplayPartKind.typeParameterName;if(524288&n)return e.SymbolDisplayPartKind.aliasName;if(2097152&n)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(n))}function i(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function a(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return i(t,e.SymbolDisplayPartKind.text)}e.symbolPart=n,e.displayPart=i,e.spacePart=function(){return i(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=a,e.punctuationPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?o(t):a(r)},e.textPart=o;var s="\r\n";function c(){return i("\n",e.SymbolDisplayPartKind.lineBreak)}function u(e){try{return e(r),r.displayParts()}finally{r.clear()}}function l(t){return e.isSingleOrDoubleQuote(t.charCodeAt(0))}function _(t,r){return e.ensureScriptKind(t,r&&r.getScriptKind&&r.getScriptKind(t))}function d(t,r){void 0===r&&(r=!0);var n=t&&function(t){var r=e.visitEachChild(t,d,e.nullTransformationContext);if(r===t){var n=e.getSynthesizedClone(t);return e.isStringLiteral(n)?n.textSourceNode=t:e.isNumericLiteral(n)&&(n.numericLiteralFlags=t.numericLiteralFlags),e.setTextRange(n,t)}return r.parent=void 0,r}(t);return n&&!r&&p(n),n}function p(e){f(e),m(e)}function f(e){g(e,512,y)}function m(t){g(t,1024,e.getLastChild)}function g(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&g(i,r,n)}function y(e){return e.forEachChild(function(e){return e})}e.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||s},e.lineBreakPart=c,e.mapToDisplayParts=u,e.typeToDisplayParts=function(e,t,r,n){return u(function(i){e.writeType(t,r,1024|n,i)})},e.symbolToDisplayParts=function(e,t,r,n,i){return u(function(a){e.writeSymbol(t,r,n,8|i,a)})},e.signatureToDisplayParts=function(e,t,r,n){return n|=25632,u(function(i){e.writeSignature(t,r,n,void 0,i)})},e.isImportOrExportSpecifierName=function(e){return e.parent&&(247===e.parent.kind||251===e.parent.kind)&&e.parent.propertyName===e},e.stripQuotes=function(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&l(e)?e.substring(1,t-1):e},e.startsWithQuote=l,e.scriptKindIs=function(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=_(t,r);return e.forEach(n,function(e){return e===a})},e.getScriptKind=_,e.getUniqueSymbolId=function(t,r){return e.getSymbolId(e.skipAlias(t,r))},e.getFirstNonSpaceCharacterPosition=function(t,r){for(;e.isWhiteSpaceLike(t.charCodeAt(r));)r+=1;return r},e.getSynthesizedDeepClone=d,e.getSynthesizedDeepClones=function(t,r){return void 0===r&&(r=!0),t&&e.createNodeArray(t.map(function(e){return d(e,r)}),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=p,e.suppressLeadingTrivia=f,e.suppressTrailingTrivia=m,e.getUniqueName=function(t,r){for(var n=t,i=1;e.stringContains(r,n);i++)n=t+"_"+i;return n},e.getRenameLocation=function(t,r,n,i){for(var a=0,o=-1,s=0,c=t;s<c.length;s++){var u=c[s],l=u.fileName,_=u.textChanges;e.Debug.assert(l===r);for(var d=0,p=_;d<p.length;d++){var f=p[d],m=f.span,g=f.newText,y=g.indexOf(n);if(-1!==y&&(o=m.start+a+y,!i))return o;a+=g.length-m.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o}}(o||(o={})),function(e){e.createClassifier=function(){var o=e.createScanner(6,!1);function s(i,s,c){var u=0,l=0,_=[],d=function(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}}(s),p=d.prefix,f=d.pushTemplate;i=p+i;var m=p.length;f&&_.push(14),o.setText(i);var g=0,y=[],h=0;do{u=o.scan(),e.isTrivia(u)||(x(),l=u);var v=o.getTextPos();if(n(o.getTokenPos(),v,m,a(u),y),v>=i.length){var b=r(o,u,e.lastOrUndefined(_));void 0!==b&&(g=b)}}while(1!==u);function x(){switch(u){case 41:case 63:t[l]||12!==o.reScanSlashToken()||(u=12);break;case 27:71===l&&h++;break;case 29:h>0&&h--;break;case 119:case 137:case 134:case 122:case 138:h>0&&!c&&(u=71);break;case 14:_.push(u);break;case 17:_.length>0&&_.push(u);break;case 18:if(_.length>0){var r=e.lastOrUndefined(_);14===r?16===(u=o.reScanTemplateToken())?_.pop():e.Debug.assertEqual(u,15,"Should have been a template middle."):(e.Debug.assertEqual(r,17,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(u))break;23===l?u=71:e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 125:case 136:case 123:case 115:return!0;default:return!1}}(l,u)&&(u=71)}}return{endOfLineState:g,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],u=a[s+1],l=a[s+2];if(o>=0){var _=c-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:i(l)}),o=c+u}var d=r.length-o;return d>0&&n.push({length:d,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([71,9,8,12,99,43,44,20,22,18,101,86],function(e){return e},function(){return!0});function r(t,r,n){switch(r){case 9:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 16:return 5;case 13:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 14===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}(t)||function(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 238:case 234:case 235:case 233:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild(function c(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var l=t.getSymbolAtLocation(u),_=l&&function t(r,n,i){var a=r.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&n||1&n&&function(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}(r)?14:void 0:2097152&a?t(i.getAliasedSymbol(r),n,i):2&n?64&a?13:262144&a?15:void 0:void 0}(l,e.getMeaningFromLocation(u),t);_&&function(e,t,r){s.push(e),s.push(t-e),s.push(r)}(u.getStart(n),u.getEnd(),_)}u.forEachChild(c)}}),{spans:s,endOfLineState:0}}function c(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value"}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i<r.length;i+=3)n.push({textSpan:e.createTextSpan(r[i],r[i+1]),classificationType:c(r[i+2])});return n}function l(t,r,n){var i=n.start,a=n.length,s=e.createScanner(6,!1,r.languageVariant,r.text),c=e.createScanner(6,!1,r.languageVariant,r.text),u=[];return h(r),{spans:u,endOfLineState:0};function l(e,t,r){u.push(e),u.push(t),u.push(r)}function _(t,n,i,a){if(3===n){var o=e.parseIsolatedJSDocComment(r.text,i,a);if(o&&o.jsDoc)return o.jsDoc.parent=t,void function(e){var t=e.pos;if(e.tags)for(var r=0,n=e.tags;r<n.length;r++){var i=n[r];switch(i.pos!==t&&d(t,i.pos-t),l(i.atToken.pos,i.atToken.end-i.atToken.pos,10),l(i.tagName.pos,i.tagName.end-i.tagName.pos,18),t=i.tagName.end,i.kind){case 288:a(i);break;case 291:p(i);break;case 290:case 289:h(i.typeExpression)}t=i.end}t!==e.end&&d(t,e.end-t);return;function a(e){e.isNameFirst&&(d(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end),e.typeExpression&&(d(t,e.typeExpression.pos-t),h(e.typeExpression),t=e.typeExpression.end),e.isNameFirst||(d(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end)}}(o.jsDoc)}d(i,a)}function d(e,t){l(e,t,1)}function p(e){for(var t=0,r=e.getChildren();t<r.length;t++){h(r[t])}}function f(t,r,n){var i;for(i=r;i<n&&!e.isLineBreak(t.charCodeAt(i));i++);for(l(r,i-r,1),c.setTextPos(i);c.getTextPos()<n;)m()}function m(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos(),n=y(t);n&&l(e,r-e,n)}function g(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var n=function(e){switch(e.parent&&e.parent.kind){case 256:if(e.parent.tagName===e)return 19;break;case 257:if(e.parent.tagName===e)return 20;break;case 255:if(e.parent.tagName===e)return 21;break;case 261:if(e.parent.name===e)return 22}return}(t);if(!e.isToken(t)&&10!==t.kind&&void 0===n)return!1;var i=10===t.kind?t.pos:function(t){for(s.setTextPos(t.pos);;){var n=s.getTextPos();if(!e.couldStartTrivia(r.text,n))return n;var i=s.scan(),a=s.getTextPos(),o=a-n;if(!e.isTrivia(i))return n;switch(i){case 4:case 5:continue;case 2:case 3:_(t,i,n,o),s.setTextPos(a);continue;case 7:var c=r.text,u=c.charCodeAt(n);if(60===u||62===u){l(n,o,1);continue}e.Debug.assert(124===u||61===u),f(c,n,a);break;case 6:break;default:e.Debug.assertNever(i)}}}(t),a=t.end-i;if(e.Debug.assert(a>=0),a>0){var o=n||y(t.kind,t);o&&l(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((27===t||29===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){if(58===t&&(231===r.parent.kind||151===r.parent.kind||148===r.parent.kind||261===r.parent.kind))return 5;if(199===r.parent.kind||197===r.parent.kind||198===r.parent.kind||200===r.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 261===r.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(r)switch(r.parent.kind){case 234:return r.parent.name===r?11:void 0;case 147:return r.parent.name===r?15:void 0;case 235:return r.parent.name===r?13:void 0;case 237:return r.parent.name===r?12:void 0;case 238:return r.parent.name===r?14:void 0;case 148:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function h(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s<c.length;s++){var u=c[s];g(u)||h(u)}}}}e.getSemanticClassifications=function(e,t,r,n,i){return u(s(e,t,r,n,i))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,t,r){return u(l(e,t,r))},e.getEncodedSyntacticClassifications=l}(o||(o={})),function(e){!function(t){!function(t){function r(e,t){return{name:e,kind:t}}function n(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf("\\")),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),6)?void 0:e.createTextSpan(r+i,a)}(t,r);return n.map(function(e){return{name:e.name,kind:e.kind,span:i}})}function i(t,n,i,a,o,s,u){void 0===u&&(u=[]),void 0===t&&(t=""),t=e.normalizeSlashes(t),""===(t=e.getDirectoryPath(t))&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var l=c(e.isRootedDiskPath(t)?t:e.combinePaths(n,t)),f=e.getDirectoryPath(l),m=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames());if(p(o,f)){var g=d(o,f,i,void 0,["./*"]);if(g){for(var y=e.createMap(),h=0,v=g;h<v.length;h++){var b=v[h];if(b=e.normalizePath(b),!s||0!==e.comparePaths(b,s,n,m)){var x=a?e.getBaseFileName(b):e.removeFileExtension(e.getBaseFileName(b));y.has(x)||y.set(x,!0)}}e.forEachKey(y,function(e){u.push(r(e,"script"))})}var S=_(o,f);if(S)for(var k=0,D=S;k<D.length;k++){var T=D[k],C=e.getBaseFileName(e.normalizePath(T));"@types"!==C&&u.push(r(C,"directory"))}}return u}function a(t,r,n,i,a,o){if(!e.endsWith(t,"*"))return!e.stringContains(t,"*")&&e.startsWith(t,n)?[{name:t,kind:"directory"}]:e.emptyArray;var s=t.slice(0,t.length-1);if(!e.startsWith(n,s))return[{name:s,kind:"directory"}];var u=n.slice(s.length);return e.flatMap(r,function(t){return function(t,r,n,i,a){if(!a.readDirectory)return;var o=e.hasZeroOrOneAsteriskCharacter(n)?e.tryParsePattern(n):void 0;if(!o)return;var s=c(o.prefix),u=e.getDirectoryPath(s),l=e.getBaseFileName(s),p=m(t),f=p?e.combinePaths(u,l+e.getDirectoryPath(t)):u,g=e.normalizePath(o.suffix),y=e.normalizePath(e.combinePaths(r,f)),h=p?y:e.ensureTrailingDirectorySeparator(y)+l,v=d(a,y,i,void 0,[g?"**/*":"./*"]).map(function(e){return{name:e,kind:"script"}}),b=_(a,y).map(function(t){return e.combinePaths(y,t)}).map(function(e){return{name:e,kind:"directory"}});return e.mapDefined(e.concatenate(v,b),function(t){var r,n,i,a,o=t.name,s=t.kind,c=e.normalizePath(o),u=(r=c,n=h,i=g,e.startsWith(r,n)&&e.endsWith(r,i)?r.slice(n.length,r.length-i.length):void 0);return void 0!==u?{name:(a=e.removeFileExtension(u),a[0]===e.directorySeparator?a.slice(1):a),kind:s}:void 0})}(u,i,t,a,o)})}function o(t,n,i,a){void 0===a&&(a=[]);var o=e.createMap();if(n.types)for(var c=0,u=n.types;c<u.length;c++){var l=u[c];b(e.getUnmangledNameForScopedPackage(l))}else if(t.getDirectories){var d=void 0;try{d=e.getEffectiveTypeRoots(n,t)}catch(e){}if(d)for(var f=0,m=d;f<m.length;f++){v(m[f])}for(var g=0,y=s(i,t);g<y.length;g++){var h=y[g];v(e.combinePaths(e.getDirectoryPath(h),"node_modules/@types"))}}return a;function v(r){if(e.Debug.assert(!!t.getDirectories),p(t,r)){var n=_(t,r);if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i];o=e.normalizePath(o);var s=e.getBaseFileName(o);b(e.getUnmangledNameForScopedPackage(s))}}}function b(e){o.has(e)||(a.push(r(e,"external module name")),o.set(e,!0))}}function s(t,r){var n=[];return e.forEachAncestorDirectory(t,function(t){var i=e.findConfigFile(t,function(e){return function(e,t){return f(e,e.fileExists,t)}(r,e)},"package.json");if(!i)return!0;n.push(i)}),n}function c(t){if("./"===e.normalizeSlashes(t))return"";var r=e.normalizePath(t);return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(r):r}t.getStringLiteralCompletionsFromModuleNames=function(t,c,u,_,d){return n(c.text,c.getStart(t)+1,function(t,n,c,u){var _=e.normalizeSlashes(t.text),d=t.getSourceFile().path,f=e.getDirectoryPath(d);if(function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(_)||e.isRootedDiskPath(_)){var g=e.getSupportedExtensions(n);return n.rootDirs?function(t,r,n,a,o,s,c,u){for(var l=s.project||c.getCurrentDirectory(),_=!(c.useCaseSensitiveFileNames&&c.useCaseSensitiveFileNames()),d=[],p=0,f=function(t,r,n,i){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))});var a=e.firstDefined(t,function(t){return e.containsPath(t,n,r,i)?n.substr(t.length):void 0});return e.deduplicate(t.map(function(t){return e.combinePaths(t,a)}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,l,n,_);p<f.length;p++){var m=f[p];i(r,m,a,o,c,u,d)}return d}(n.rootDirs,_,f,g,!1,n,c,d):i(_,f,g,!1,c,d)}return function(t,n,c,u,_){var d=c.baseUrl,f=c.paths,g=[],y=e.getSupportedExtensions(c);if(d){var h=c.project||u.getCurrentDirectory(),v=e.isRootedDiskPath(d)?d:e.combinePaths(h,d);for(var b in i(t,e.normalizePath(v),y,!1,u,void 0,g),f){var x=f[b];if(f.hasOwnProperty(b)&&x)for(var S=function(e,t){g.some(function(t){return t.name===e})||g.push(r(e,t))},k=0,D=a(b,x,t,d,y,u);k<D.length;k++){var T=D[k],C=T.name,E=T.kind;S(C,E)}}}for(var N=m(t)?e.getDirectoryPath(t):void 0,A=0,P=function(t,r,n){var i=n.getAmbientModules().map(function(t){return e.stripQuotes(t.name)}).filter(function(r){return e.startsWith(r,t)});if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map(function(t){return e.removePrefix(t,a)})}return i}(t,N,_);A<P.length;A++){var w=P[A];g.push(r(w,"external module name"))}if(o(u,c,n,g),e.getEmitModuleResolutionKind(c)===e.ModuleResolutionKind.NodeJs){var F=!1;if(void 0===N)for(var O=function(e){g.some(function(t){return t.name===e})||(F=!0,g.push(r(e,"external module name")))},I=0,M=function(t,r){if(!t.readFile||!t.fileExists)return e.emptyArray;for(var n=[],i=0,a=s(r,t);i<a.length;i++)for(var o=a[i],c=e.readJson(o,t),u=0,_=l;u<_.length;u++){var d=_[u],p=c[d];if(p)for(var f in p)p.hasOwnProperty(f)&&!e.startsWith(f,"@types/")&&n.push(f)}return n}(u,n);I<M.length;I++){var L=M[I];O(L)}F||e.forEachAncestorDirectory(n,function(r){var n=e.combinePaths(r,"node_modules");p(u,n)&&i(t,n,y,!1,u,void 0,g)})}return g}(_,f,n,c,u)}(c,u,_,d))},t.getTripleSlashReferenceCompletion=function(t,r,a,s){var c=e.getTokenAtPosition(t,r,!1),l=e.getLeadingCommentRanges(t.text,c.pos),_=l&&e.find(l,function(e){return r>=e.pos&&r<=e.end});if(_){var d=t.text.slice(_.pos,r),p=u.exec(d);if(p){var f=p[1],m=p[2],g=p[3],y=e.getDirectoryPath(t.path),h="path"===m?i(g,y,e.getSupportedExtensions(a),!0,s,t.path):"types"===m?o(s,a,y):void 0;return h&&n(g,_.pos+f.length,h)}}};var u=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,l=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function _(e,t){return f(e,e.getDirectories,t)||[]}function d(t,r,n,i,a){return f(t,t.readDirectory,r,n,i,a)||e.emptyArray}function p(t,r){try{return e.directoryProbablyExists(r,t)}catch(e){}}function f(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];try{return t&&t.apply(e,r)}catch(e){}}function m(t){return e.stringContains(t,e.directorySeparator)}}(t.PathCompletions||(t.PathCompletions={}))}(e.Completions||(e.Completions={}))}(o||(o={})),function(e){!function(t){var r,n,i,a,o;function s(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(function(e){return{name:e.name,kind:e.kind,kindModifiers:"",sortText:"0",replacementSpan:e.span}})}}function c(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function u(t,r,n,i,a,o,s,c,u,p,f){var m=T(t,a,s,o);if(m){var g,y,h=m.name,v=m.needsConvertPropertyAccess;if(s&&"this-type"===s.type)g=v?"this["+l(h,f)+"]":"this."+h;else if((s&&"symbol-member"===s.type||v)&&u){g=v?"["+l(h,f)+"]":"["+h+"]";var b=e.findChildOfKind(u,23,n),x=e.startsWith(h,u.name.text)?u.name.end:b.end;y=e.createTextSpanFromBounds(b.getStart(n),x)}if(p&&(void 0===g&&(g=h),g="{"+g+"}","boolean"!=typeof p&&(y=e.createTextSpanFromNode(p,n))),void 0===g||f.includeCompletionsWithInsertText)return{name:h,kind:e.SymbolDisplay.getSymbolKind(i,t,r),kindModifiers:e.SymbolDisplay.getSymbolModifiers(t),sortText:"0",source:d(s),hasAction:_(!!s&&"export"===s.type),isRecommended:_(function(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}(t,c,i)),insertText:g,replacementSpan:y}}}function l(t,r){var n=JSON.stringify(t);switch(r.quotePreference){case void 0:case"double":return n;case"single":return"'"+e.stripQuotes(n).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(r.quotePreference)}}function _(e){return!!e||void 0}function d(t){return t&&"export"===t.type?e.stripQuotes(t.moduleSymbol.name):void 0}function p(t,r,n,i,a,o,s,c,l,_,d,p,f){for(var m=e.timestamp(),g=e.createMap(),y=0,h=t;y<h.length;y++){var v=h[y],b=f?f[e.getSymbolId(v)]:void 0,x=u(v,n,i,a,o,c,b,p,_,d,l);if(x){var S=x.name;g.has(S)||(b||void 0===v.parent&&!e.some(v.declarations,function(e){return e.getSourceFile()===n.getSourceFile()})||g.set(S,!0),r.push(x))}}return s("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-m)),g}function f(r,n,i,a,o,s){switch(n.parent.kind){case 177:switch(n.parent.parent.kind){case 161:return{kind:2,types:g(a.getTypeArgumentConstraint(n.parent),a),isNewIdentifier:!1};case 175:return m(a.getTypeFromTypeNode(n.parent.parent.objectType));case 178:return{kind:0,paths:t.PathCompletions.getStringLiteralCompletionsFromModuleNames(r,n,o,s,a)};default:return}case 269:return e.isObjectLiteralExpression(n.parent.parent)&&n.parent.name===n?m(a.getContextualType(n.parent.parent)):d();case 185:var c=n.parent,u=c.expression,l=c.argumentExpression;return n===l?m(a.getTypeAtLocation(u)):void 0;case 186:case 187:if(!e.isRequireCall(n.parent,!1)&&!e.isImportCall(n.parent)){var _=e.SignatureHelp.getImmediatelyContainingArgumentInfo(n,i,r);return _?function(t,r){var n=!1,i=e.createMap(),a=[];return r.getResolvedSignature(t.invocation,a,t.argumentCount),{kind:2,types:e.flatMap(a,function(e){if(e.hasRestParameter||!(t.argumentCount>e.parameters.length)){var a=r.getParameterType(e,t.argumentIndex);return n=n||!!(2&a.flags),g(a,r,i)}}),isNewIdentifier:n}}(_,a):d()}case 243:case 249:case 253:return{kind:0,paths:t.PathCompletions.getStringLiteralCompletionsFromModuleNames(r,n,o,s,a)};default:return d()}function d(){return{kind:2,types:g(S(n,a),a),isNewIdentifier:!1}}}function m(e){return e&&{kind:1,symbols:e.getApparentProperties(),hasIndexSignature:I(e)}}function g(t,r,n){return void 0===n&&(n=e.createMap()),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,function(e){return g(e,r,n)}):!t.isStringLiteral()||256&t.flags||!e.addToSeen(n,t.value)?e.emptyArray:[t]:e.emptyArray}function y(t,r,n,i,a){var o=a.name,s=a.source,c=D(t,r,n,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0});if(!c)return{type:"none"};if(0!==c.kind)return{type:"request",request:c};var u=c.symbols,l=c.location,_=c.completionKind,p=c.symbolToOriginInfoMap,f=c.previousToken,m=c.isJsxInitializer;return e.firstDefined(u,function(r){var n=p[e.getSymbolId(r)],i=T(r,t.getCompilerOptions().target,n,_);return i&&i.name===o&&d(n)===s?{type:"symbol",symbol:r,location:l,symbolToOriginInfoMap:p,previousToken:f,isJsxInitializer:m}:void 0})||{type:"none"}}function h(t,r,n){return r&&"export"===r.type&&r.isDefaultExport&&"default"===t.escapedName?e.firstDefined(t.declarations,function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(r.moduleSymbol,n):t.name}function v(t,r,n,i,a,o){var s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7),c=s.displayParts,u=s.documentation,l=s.symbolKind,_=s.tags;return b(t.name,e.SymbolDisplay.getSymbolModifiers(t),l,c,u,_,a,o)}function b(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s}}function x(t,r,n,i){var a=function(t,r,n,i){var a=t.parent;switch(t.kind){case 71:return S(t,i);case 58:switch(a.kind){case 231:return i.getContextualType(a.initializer);case 199:return i.getTypeAtLocation(a.left);case 261:return i.getContextualTypeForJsxAttribute(a);default:return}case 94:return i.getContextualType(a);case 73:return k(e.cast(a,e.isCaseClause),i);case 17:return e.isJsxExpression(a)&&254!==a.parent.kind?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:var o=e.SignatureHelp.getImmediatelyContainingArgumentInfo(t,r,n);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(26===t.kind?1:0)):w(t.kind)&&e.isBinaryExpression(a)&&w(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}(t,r,n,i),o=a&&a.symbol;return o&&(384&o.flags||32&o.flags&&!e.isAbstractConstructorSymbol(o))?function t(r,n,i){var a=i.getAccessibleSymbolChain(r,n,67108863,!1);if(a)return e.first(a);return r.parent&&(function(e){return e.declarations.some(function(e){return 273===e.kind})}(r.parent)?r:t(r.parent,n,i))}(o,t,i):void 0}function S(e,t){var r=e.parent;switch(r.kind){case 187:return t.getContextualType(r);case 199:var n=r,i=n.left,a=n.operatorToken,o=n.right;return w(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 265:return r.expression===e?k(r,t):void 0;default:return t.getContextualType(e)}}function k(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function D(t,r,n,i,a){var o=t.getTypeChecker(),s=e.timestamp(),c=e.getTokenAtPosition(n,i,!1);r("getCompletionData: Get current token: "+(e.timestamp()-s)),s=e.timestamp();var u=e.isInComment(n,i,c);r("getCompletionData: Is inside comment: "+(e.timestamp()-s));var l=!1,_=!1;if(u){if(e.hasDocComment(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};var d=e.getLineStartPositionForPosition(i,n);if(!n.text.substring(d,i).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var p=function(t,r){var n=function(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}(t).jsDoc;if(!n)return;for(var i=0,a=n;i<a.length;i++){var o=a[i],s=o.pos,c=o.end,u=o.tags;if(!(!u||r<s||r>c))for(var l=u.length-1;l>=0;l--){var _=u[l];if(r>=_.pos)return _}}}(c,i);if(p){if(p.tagName.pos<=i&&i<=p.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 288:case 293:case 289:case 290:case 292:return!0}}(p)&&p.typeExpression&&275===p.typeExpression.kind&&((c=e.getTokenAtPosition(n,i,!0))&&(e.isDeclarationName(c)||293===c.parent.kind&&c.parent.name===c)||(l=Y(p.typeExpression))),e.isJSDocParameterTag(p)&&(e.nodeIsMissing(p.name)||p.name.pos<=i&&i<=p.name.end))return{kind:3,tag:p}}if(!l)return void r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}s=e.timestamp();var f=e.findPrecedingToken(i,n,void 0,l);r("getCompletionData: Get previous token 1: "+(e.timestamp()-s));var m=f;if(m&&i<=m.end&&(e.isIdentifier(m)||e.isKeyword(m.kind))){var g=e.timestamp();m=e.findPrecedingToken(m.getFullStart(),n,void 0,l),r("getCompletionData: Get previous token 2: "+(e.timestamp()-g))}var y,v=c,b=!1,S=!1,k=!1,D=!1,T=e.getTouchingPropertyName(n,i,l);if(m){if(function(t){var n=e.timestamp(),a=function(t){if(9===t.kind||12===t.kind||e.isTemplateLiteralKind(t.kind)){var r=t.getStart(),n=t.getEnd();if(r<i&&i<n)return!0;if(i===n)return!!t.isUnterminated||12===t.kind}return!1}(t)||function(t){var r=t.parent.kind;switch(t.kind){case 26:return 231===r||232===r||213===r||237===r||Q(r)||235===r||180===r||236===r||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 180===r;case 56:return 181===r;case 21:return 180===r;case 19:return 268===r||Q(r);case 17:return 237===r;case 27:return 234===r||204===r||235===r||236===r||e.isFunctionLikeKind(r);case 115:return 151===r&&!e.isClassLike(t.parent.parent);case 24:return 148===r||t.parent&&t.parent.parent&&180===t.parent.parent.kind;case 114:case 112:case 113:return 148===r&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 247===r||251===r||245===r;case 125:case 136:if(O(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 139:return!0}if(A(P(t))&&O(t))return!1;if(X(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(P(t))||Y(t)))return!1;switch(P(t)){case 117:case 120:case 75:case 76:case 124:case 83:case 89:case 109:case 110:case 112:case 113:case 114:case 115:case 104:case 116:return!0}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==f||i>f.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(10===e.kind)return!0;if(29===e.kind&&e.parent){if(256===e.parent.kind)return!0;if(257===e.parent.kind||255===e.parent.kind)return e.parent.parent&&254===e.parent.parent.kind}return!1}(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-n)),a}(m))return void r("Returning an empty list because completion was requested in an invalid position.");var C=m.parent;if(23===m.kind)switch(b=!0,C.kind){case 184:v=(y=C).expression;break;case 145:v=C.left;break;case 178:v=C;break;default:return}else if(1===n.languageVariant){if(C&&184===C.kind&&(m=C,C=C.parent),c.parent===T)switch(c.kind){case 29:254!==c.parent.kind&&256!==c.parent.kind||(T=c);break;case 41:255===c.parent.kind&&(T=c)}switch(C.kind){case 257:41===m.kind&&(k=!0,T=m);break;case 199:if(!(32768&C.left.flags))break;case 255:case 254:case 256:27===m.kind&&(S=!0,T=m);break;case 261:switch(f.kind){case 58:D=!0;break;case 71:C===f.parent||C.initializer||(D=f)}}}}var E=e.timestamp(),w=5,M=!1,L=0,R=[],B=[];if(b)!function(){w=2;var t=e.isLiteralImportTypeNode(v),r=l||t&&!v.isTypeOf||e.isPartOfTypeNode(v.parent),i=e.isInRightSideOfInternalImportEqualsDeclaration(v)||!r&&e.isPossiblyTypeArgumentPosition(m,n);if(e.isEntityName(v)||t){var a=o.getSymbolAtLocation(v);if(a&&1920&(a=e.skipAlias(a,o)).flags){for(var s=e.Debug.assertEachDefined(o.getExportsOfModule(a),"getExportsOfModule() should all be defined"),c=function(e){return o.isValidPropertyAccess(t?v:v.parent,e.name)},u=function(e){return H(e)},_=i?function(e){return u(e)||c(e)}:r?u:c,d=0,p=s;d<p.length;d++){var f=p[d];_(f)&&R.push(f)}return void(!r&&a.declarations.some(function(e){return 273!==e.kind&&238!==e.kind&&237!==e.kind})&&U(o.getTypeOfSymbolAtLocation(a,v)))}}r||U(o.getTypeAtLocation(v))}();else if(S){var j=e.Debug.assertEachDefined(o.getJsxIntrinsicTagNamesAt(T),"getJsxIntrinsicTagNames() should all be defined");R=V()?j.concat(R.filter(function(e){return!!(69313471&e.flags)})):j,w=3}else if(k){var J=m.parent.parent.openingElement.tagName,z=o.getSymbolAtLocation(J);z&&(R=[z]),w=3}else if(!V())return;r("getCompletionData: Semantic work: "+(e.timestamp()-E));var K=f&&x(f,i,n,o);return{kind:0,symbols:R,completionKind:w,isInSnippetScope:_,propertyAccessToConvert:y,isNewIdentifierLocation:M,location:T,keywordFilters:L,symbolToOriginInfoMap:B,recommendedCompletion:K,previousToken:f,isJsxInitializer:D};function U(t){if(M=I(t),e.isSourceFileJavaScript(n))R.push.apply(R,F(t,o,!0));else for(var r=0,i=t.getApparentProperties();r<i.length;r++){var a=i[r];o.isValidPropertyAccessForCompletions(178===v.kind?v:v.parent,t,a)&&q(a)}}function q(t){var r=e.firstDefined(t.declarations,function(t){var r=e.getNameOfDeclaration(t),n=146===r.kind?function t(r){return e.isIdentifier(r)?r:e.isPropertyAccessExpression(r)?t(r.expression):void 0}(r.expression):void 0;return n&&o.getSymbolAtLocation(n)});r?(R.push(r),B[e.getSymbolId(r)]={type:"symbol-member"}):R.push(t)}function V(){var r,s;return 1===(function(){var t,r,n=function(t){if(t)switch(t.kind){case 17:case 26:var r=t.parent;if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r}return}(m);if(!n)return 0;if(w=0,183===n.kind){var i=o.getContextualType(n);if(!i)return 2;M=I(i),t=F(i,o,!1),r=n.properties}else{e.Debug.assert(179===n.kind),M=!1;var a=e.getRootDeclaration(n.parent);if(!e.isVariableLike(a))return e.Debug.fail("Root declaration is not variable-like.");var s=e.hasInitializer(a)||e.hasType(a)||221===a.parent.parent.kind;if(s||148!==a.kind||(e.isExpression(a.parent)?s=!!o.getContextualType(a.parent):153!==a.parent.kind&&156!==a.parent.kind||(s=e.isExpression(a.parent.parent)&&!!o.getContextualType(a.parent.parent))),s){var i=o.getTypeAtLocation(n);if(!i)return 2;t=o.getPropertiesOfType(i).filter(function(t){return!(24&e.getDeclarationModifierFlagsFromSymbol(t))}),r=n.elements}}t&&t.length>0&&(R=function(t,r){if(0===r.length)return t;for(var n=e.createUnderscoreEscapedMap(),i=0,a=r;i<a.length;i++){var o=a[i];if((269===o.kind||270===o.kind||181===o.kind||153===o.kind||155===o.kind||156===o.kind)&&!Y(o)){var s=void 0;if(181===o.kind&&o.propertyName)71===o.propertyName.kind&&(s=o.propertyName.escapedText);else{var c=e.getNameOfDeclaration(o);s=e.isPropertyNameLiteral(c)?e.getEscapedTextOfIdentifierOrLiteral(c):void 0}n.set(s,!0)}}return t.filter(function(e){return!n.get(e.escapedName)})}(t,e.Debug.assertDefined(r)));return 1}()||function(){var t=!m||17!==m.kind&&26!==m.kind?void 0:e.tryCast(m.parent,e.isNamedImportsOrExports);if(!t)return 0;var r=(246===t.kind?t.parent.parent:t.parent).moduleSpecifier,n=o.getSymbolAtLocation(r);if(!n)return 2;w=3,M=!1;var i=o.getExportsAndPropertiesOfModule(n),a=e.arrayToSet(t.elements,function(e){return Y(e)?void 0:(e.propertyName||e.name).escapedText});return R=i.filter(function(e){return"default"!==e.escapedName&&!a.get(e.escapedName)}),1}()||(function(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(X(t))return t.parent.parent}}(m)?(w=5,M=!0,L=3,1):0)||function(){var t=function(t,r,n){switch(n.kind){case 294:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var i=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(i&&!e.findChildOfKind(i,18,t))return i}if(!r)return;switch(r.kind){case 25:case 18:return O(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 17:case 26:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!O(r))return;var a=e.isClassLike(r.parent.parent)?A:N;return a(r.kind)||e.isIdentifier(r)&&a(e.stringToToken(r.text))?r.parent.parent:void 0}}(n,m,T);if(!t)return 0;if(w=3,M=!0,L=e.isClassLike(t)?1:2,!e.isClassLike(t))return 1;var r=m.parent,i=e.isClassElement(r)&&e.getModifierFlags(r);if(71===m.kind&&!Y(m))switch(m.getText()){case"private":i|=8;break;case"static":i|=32}if(!(8&i)){var a=e.flatMap(e.getAllSuperTypeNodes(t),function(e){var r=o.getTypeAtLocation(e);return o.getPropertiesOfType(32&i?o.getTypeOfSymbolAtLocation(r.symbol,t):r)});R=function(t,r,n){for(var i=e.createUnderscoreEscapedMap(),a=0,o=r;a<o.length;a++){var s=o[a];if((151===s.kind||153===s.kind||155===s.kind||156===s.kind)&&(!Y(s)&&!e.hasModifier(s,8)&&e.hasModifier(s,32)===!!(32&n))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.set(c,!0)}}return t.filter(function(t){return!(i.has(t.escapedName)||!t.declarations||8&e.getDeclarationModifierFlagsFromSymbol(t))})}(a,t.members,i)}return 1}()||(r=function(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 184:case 262:case 261:case 263:if(t&&(255===t.kind||256===t.kind))return t;if(261===t.kind)return t.parent.parent;break;case 9:if(t&&(261===t.kind||263===t.kind))return t.parent.parent;break;case 18:if(t&&264===t.kind&&t.parent&&261===t.parent.kind)return t.parent.parent.parent;if(t&&263===t.kind)return t.parent.parent}}return}(m),(s=r&&o.getAllAttributesTypeFromJsxOpeningLikeElement(r))?(R=function(t,r){for(var n=e.createUnderscoreEscapedMap(),i=0,a=r;i<a.length;i++){var o=a[i];Y(o)||261===o.kind&&n.set(o.name.escapedText,!0)}return t.filter(function(e){return!n.get(e.escapedName)})}(o.getPropertiesOfType(s),r.attributes.properties),w=3,M=!1,1):0)||(function(){(function(t){if(t){var r,n=e.findAncestor(t.parent,function(t){return e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||r!==t.body)||void(r=t)});return n&&n}})(m)&&(L=4);w=1,M=function(e){if(e){var t=e.parent.kind;switch(e.kind){case 26:return 186===t||154===t||187===t||182===t||199===t||162===t;case 19:return 186===t||154===t||187===t||190===t||172===t;case 21:return 182===t||159===t||146===t;case 129:case 130:return!0;case 23:return 238===t;case 17:return 234===t;case 58:return 231===t||199===t;case 14:return 201===t;case 15:return 210===t;case 114:case 112:case 113:return 151===t}switch(P(e)){case 114:case 113:case 112:return!0}}return!1}(m),f!==m&&e.Debug.assert(!!f,"Expected 'contextToken' to be defined when different from 'previousToken'.");var r=f!==m?f.getStart():i,s=function(t,r,n){var i=t;for(;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i}(m,r,n)||n;_=function(t){switch(t.kind){case 273:case 201:case 264:case 212:return!0;default:return e.isStatement(t)}}(s);if(R=e.Debug.assertEachDefined(o.getSymbolsInScope(s,70107135),"getSymbolsInScope() should all be defined"),a.includeCompletionsWithInsertText&&273!==s.kind){var c=o.tryGetThisTypeAt(s);if(c)for(var u=0,d=F(c,o,!0);u<d.length;u++){var p=d[u];B[e.getSymbolId(p)]={type:"this-type"},R.push(p)}}(function(){if(!a.includeCompletionsForModuleExports)return!1;if(n.externalModuleIndicator)return!0;if(n.commonJsModuleIndicator)return!1;if(t.getSourceFiles().some(function(e){return!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!!e.externalModuleIndicator}))return!0;if(e.isSourceFileJavaScript(n))return!1;var r=t.getCompilerOptions();return!!r.module||r.target>=2||!!r.noEmit})()&&function(r,i,a){var s=i.toLowerCase();e.codefix.forEachExternalModuleToImportFrom(o,n,t.getSourceFiles(),function(t){for(var n=0,i=o.getExportsOfModule(t);n<i.length;n++){var c=i[n];if(o.getMergedSymbol(c.parent)===o.resolveExternalModuleSymbol(t)&&!e.some(c.declarations,function(t){return e.isExportSpecifier(t)&&!!t.parent.parent.moduleSpecifier})){var u="default"===c.name;u&&(c=e.getLocalSymbolForExportDefault(c)||c);var l={type:"export",moduleSymbol:t,isDefaultExport:u};G(h(c,l,a).toLowerCase(),s)&&(r.push(c),B[e.getSymbolId(c)]=l)}}})}(R,f&&e.isIdentifier(f)?f.text:"",t.getCompilerOptions().target);!function(t){var r=l||!W(m)&&(e.isPartOfTypeNode(T)||function(t){if(t){var r=t.parent.kind;switch(t.kind){case 56:return 151===r||150===r||148===r||231===r||e.isFunctionLikeKind(r);case 58:return 236===r;case 118:return 207===r}}return!1}(m)),i=r||!W(m)&&e.isPossiblyTypeArgumentPosition(m,n);r&&(L=5);e.filterMutate(t,function(t){if(!e.isSourceFile(T)){if(e.isExportAssignment(T.parent))return!0;if(t=e.skipAlias(t,o),e.isInRightSideOfInternalImportEqualsDeclaration(T))return!!(1920&t.flags);if(i){var n=H(t);if(n||r)return n}}return!!(67216319&e.getCombinedLocalAndExportSymbolFlags(t))})}(R)}(),1))}function W(t){return t&&103===t.kind&&(164===t.parent.kind||e.isTypeOfExpression(t.parent))}function H(t){if(t=t.exportSymbol||t,67901928&(t=e.skipAlias(t,o)).flags)return!0;if(1536&t.flags){var r=o.getExportsOfModule(t);return e.forEach(r,H)}}function G(e,t){if(0===t.length)return!0;for(var r=0,n=0;n<e.length;n++)if(e.charCodeAt(n)===t.charCodeAt(r)&&++r===t.length)return!0;return!1}function X(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function Q(t){return e.isFunctionLikeKind(t)&&154!==t}function Y(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function T(t,r,n,i){var a=h(t,n,r);if(!(void 0===a||1536&t.flags&&e.startsWithQuote(a)||e.isKnownSymbol(t))){var o={name:a,needsConvertPropertyAccess:!1};if(e.isIdentifierText(a,r))return o;switch(i){case 3:return;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:!1};case 2:case 1:return 32===a.charCodeAt(0)?void 0:{name:a,needsConvertPropertyAccess:!0};case 5:case 4:return o;default:e.Debug.assertNever(i)}}}!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.InterfaceElementKeywords=2]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=3]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=4]="FunctionLikeBodyKeywords",e[e.TypeKeywords=5]="TypeKeywords"}(r||(r={})),function(e){e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(n||(n={})),t.getCompletionsAtPosition=function(r,n,i,a,o,u,l){var _=n.getTypeChecker(),d=n.getCompilerOptions();if(e.isInReferenceComment(a,o)){var m=t.PathCompletions.getTripleSlashReferenceCompletion(a,o,d,r);return m&&s(m)}var g=e.findPrecedingToken(o,a);if(!l||function(t,r,n,i){switch(r){case'"':case"'":case"`":return function(e){switch(e.kind){case 9:case 13:case 201:case 188:return!0;default:return!1}}(n)&&i===n.getStart(t)+1;case"<":return 27===n.kind&&199!==n.parent.kind;default:return e.Debug.fail(r)}}(a,l,g,o)){if(e.isInString(a,o,g))return g&&e.isStringLiteralLike(g)?function(t,r,n,i,a){if(void 0!==t)switch(t.kind){case 0:return s(t.paths);case 1:var o=[];return p(t.symbols,o,r,r,n,6,i,4,a),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:t.hasIndexSignature,entries:o};case 2:var o=t.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"type",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,entries:o};default:return e.Debug.assertNever(t)}}(f(a,g,o,_,d,r),a,_,i,u):void 0;if(g&&e.isBreakOrContinueStatement(g.parent)&&(72===g.kind||77===g.kind||71===g.kind))return function(t){var r=function(t){for(var r=[],n=e.createMap(),i=t;i&&!e.isFunctionLike(i);){if(e.isLabeledStatement(i)){var a=i.label.text;n.has(a)||(n.set(a,!0),r.push({name:a,kindModifiers:"",kind:"label",sortText:"0"}))}i=i.parent}return r}(t);if(r.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:r}}(g.parent);var y=D(n,i,a,o,u);if(y)switch(y.kind){case 0:return function(t,r,n,i,a,o){var s=a.symbols,c=a.completionKind,u=a.isInSnippetScope,l=a.isNewIdentifierLocation,_=a.location,d=a.propertyAccessToConvert,f=a.keywordFilters,m=a.symbolToOriginInfoMap,g=a.recommendedCompletion,y=a.isJsxInitializer;if(1===t.languageVariant&&_&&_.parent&&e.isJsxClosingElement(_.parent)){var h=_.parent.parent.openingElement.tagName;return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:h.getFullText(),kind:"class",kindModifiers:void 0,sortText:"0"}]}}var v=[];if(e.isSourceFileJavaScript(t)){var b=p(s,v,_,t,r,n.target,i,c,o,d,y,g,m);!function(t,r,n,i,a){e.getNameTable(t).forEach(function(t,o){if(t!==r){var s=e.unescapeLeadingUnderscores(o);e.addToSeen(n,s)&&e.isIdentifierText(s,i)&&!e.isStringANonContextualKeyword(s)&&a.push({name:s,kind:"warning",kindModifiers:"",sortText:"1"})}})}(t,_.pos,b,n.target,v)}else{if((!s||0===s.length)&&0===f)return;p(s,v,_,t,r,n.target,i,c,o,d,y,g,m)}var x,S=function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(c);return 0===f&&S||e.addRange(v,C[x=f]||(C[x]=E().filter(function(t){var r=e.stringToToken(t.name);switch(x){case 0:return 140!==r;case 1:return A(r);case 2:return N(r);case 3:return e.isParameterPropertyModifier(r);case 4:return!A(r);case 5:return e.isTypeKeyword(r);default:return e.Debug.assertNever(x)}}))),{isGlobalCompletion:u,isMemberCompletion:S,isNewIdentifierLocation:l,entries:v}}(a,_,d,i,y,u);case 1:return c(e.JsDoc.getJSDocTagNameCompletions());case 2:return c(e.JsDoc.getJSDocTagCompletions());case 3:return c(e.JsDoc.getJSDocParameterNameCompletions(y.tag));default:return e.Debug.assertNever(y)}}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(i||(i={})),t.getCompletionEntryDetails=function(t,r,n,i,a,o,s,c,u){var l=t.getTypeChecker(),_=t.getCompilerOptions(),d=a.name,p=e.findPrecedingToken(i,n);if(e.isInString(n,i,p)){var m=p&&e.isStringLiteralLike(p)?f(n,p,i,l,_,o):void 0;return m&&function(t,r,n,i,a){switch(n.kind){case 0:var o=e.find(n.paths,function(e){return e.name===t});return o&&b(t,"",o.kind,[e.textPart(t)]);case 1:var o=e.find(n.symbols,function(e){return e.name===t});return o&&v(o,a,i,r);case 2:return e.find(n.types,function(e){return e.value===t})?b(t,"","type",[e.textPart(t)]):void 0;default:return e.Debug.assertNever(n)}}(d,p,m,n,l)}var g=y(t,r,n,i,a);switch(g.type){case"request":var x=g.request;switch(x.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(d);case 2:return e.JsDoc.getJSDocTagCompletionDetails(d);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(d);default:return e.Debug.assertNever(x)}case"symbol":var S=g.symbol,k=g.location,D=function(t,r,n,i,a,o,s,c,u,l,_,d){var p=t[e.getSymbolId(r)];if(!p||"export"!==p.type)return{codeActions:void 0,sourceDisplay:void 0};var f=p.moduleSymbol,m=e.skipAlias(r.exportSymbol||r,i),g=e.codefix.getImportCompletionAction(m,f,s,h(r,p,o.target),a,n,i,o,_,u,l,c,d),y=g.moduleSpecifier,v=g.codeAction;return{sourceDisplay:[e.textPart(y)],codeActions:[v]}}(g.symbolToOriginInfoMap,S,t,l,o,_,n,g.previousToken,s,c,t.getSourceFiles(),u);return v(S,l,n,k,D.codeActions,D.sourceDisplay);case"none":return E().some(function(e){return e.name===d})?b(d,"","keyword",[e.displayPart(d,e.SymbolDisplayPartKind.keyword)]):void 0}},t.getCompletionEntrySymbol=function(e,t,r,n,i){var a=y(e,t,r,n,i);return"symbol"===a.type?a.symbol:void 0},function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName"}(a||(a={})),function(e){e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None"}(o||(o={}));var C=[],E=e.memoize(function(){for(var t=[],r=72;r<=144;r++)t.push({name:e.tokenToString(r),kind:"keyword",kindModifiers:"",sortText:"0"});return t});function N(e){return 132===e}function A(t){switch(t){case 117:case 123:case 125:case 136:case 120:return!0;default:return e.isClassMemberModifier(t)}}function P(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function w(e){switch(e){case 34:case 32:case 35:case 33:return!0;default:return!1}}function F(t,r,n){if(!t.isUnion())return e.Debug.assertEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined");var i=n?t.types:t.types.filter(function(t){return!(16382&t.flags||r.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,r))});return e.Debug.assertEachDefined(r.getAllPossiblePropertiesOfTypes(i),"getAllPossiblePropertiesOfTypes() should all be defined")}function O(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function I(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}}(e.Completions||(e.Completions={}))}(o||(o={})),function(e){!function(t){function r(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function n(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?n(t.catchClause):t.tryBlock&&n(t.tryBlock),n(t.finallyBlock)):e.isFunctionLike(t)?void 0:a(t,n)}function i(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:a(t,i)}function a(t,r){var n=[];return t.forEachChild(function(t){var i=r(t);void 0!==i&&n.push.apply(n,e.toArray(i))}),n}function o(e,t){var r=s(t);return r&&r===e}function s(t){return e.findAncestor(t,function(r){switch(r.kind){case 226:if(222===t.kind)return!1;case 219:case 220:case 221:case 218:case 217:return!t.label||function(t,r){return!!e.findAncestor(t.parent,function(t){return e.isLabeledStatement(t)?t.label.escapedText===r:"quit"})}(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}})}function c(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return!(!r||!e.contains(n,r.kind))&&(t.push(r),!0)}function u(t){var r=[];if(c(r,t.getFirstToken(),88,106,81)&&217===t.kind)for(var n=t.getChildren(),a=n.length-1;a>=0&&!c(r,n[a],106);a--);return e.forEach(i(t.statement),function(e){o(t,e)&&c(r,e.getFirstToken(),72,77)}),r}function l(e){var t=s(e);if(t)switch(t.kind){case 219:case 220:case 221:case 217:case 218:return u(t);case 226:return _(t)}}function _(t){var r=[];return c(r,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(n){c(r,n.getFirstToken(),73,79),e.forEach(i(n),function(e){o(t,e)&&c(r,e.getFirstToken(),72)})}),r}function d(t,r){var n=[];(c(n,t.getFirstToken(),102),t.catchClause&&c(n,t.catchClause.getFirstToken(),74),t.finallyBlock)&&c(n,e.findChildOfKind(t,87,r),87);return n}function p(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||273===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),function(t){a.push(e.findChildOfKind(t,100,r))}),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,function(t){a.push(e.findChildOfKind(t,96,r))}),a}}function f(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),function(t){a.push(e.findChildOfKind(t,96,r))}),e.forEach(n(i.body),function(t){a.push(e.findChildOfKind(t,100,r))}),a}}t.getDocumentHighlights=function(t,n,i,a,o){var s=e.getTouchingPropertyName(i,a,!0);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var m=s.parent.parent,g=[m.openingElement,m.closingElement].map(function(e){return r(e.tagName,i)});return[{fileName:i.fileName,highlightSpans:g}]}return function(t,r,n,i,a){var o=e.arrayToSet(a,function(e){return e.fileName}),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(c.entries(),function(t){var r=t[0],i=t[1];if(!o.has(r)){e.Debug.assert(n.redirectTargetsSet.has(r));var s=n.getSourceFile(r),c=e.find(a,function(e){return e.redirectInfo&&e.redirectInfo.redirectTarget===s});r=c.fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}})}}(a,s,t,n,o)||function(t,n){var i=function(t,n){switch(t.kind){case 90:case 82:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);c(n,i[0],90);for(var a=i.length-1;a>=0&&!c(n,i[a],82);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o<i.length;o++){if(82===i[o].kind&&o<i.length-1){for(var s=i[o],u=i[o+1],l=!0,_=u.getStart(n)-1;_>=s.end;_--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(_))){l=!1;break}if(l){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),u.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 96:return g(t.parent,e.isReturnStatement,f);case 100:return g(t.parent,e.isThrowStatement,p);case 102:case 74:case 87:var i=74===t.kind?t.parent.parent:t.parent;return g(i,e.isTryStatement,d);case 98:return g(t.parent,e.isSwitchStatement,_);case 73:case 79:return g(t.parent.parent.parent,e.isSwitchStatement,_);case 72:case 77:return g(t.parent,e.isBreakOrContinueStatement,l);case 88:case 106:case 81:return g(t.parent,function(t){return e.isIterationStatement(t,!0)},u);case 123:return m(e.isConstructorDeclaration,[123]);case 125:case 136:return m(e.isAccessor,[125,136]);default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?y((a=t.kind,o=t.parent,s=e.modifierToFlag(a),e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 239:case 273:case 212:case 265:case 266:return 128&r&&e.isClassDeclaration(t)?t.members.concat([t]):n.statements;case 154:case 153:case 233:return n.parameters.concat(e.isClassLike(n.parent)?n.parent.members:[]);case 234:case 204:var i=n.members;if(28&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return i.concat(a.parameters)}else if(128&r)return i.concat([n]);return i;default:e.Debug.assertNever(n,"Invalid container kind.")}}(o,s),function(t){if(e.getModifierFlags(t)&s){var r=e.find(t.modifiers,function(e){return e.kind===a});return e.Debug.assert(!!r),r}}))):void 0}var a,o,s;function m(r,i){return g(t.parent,r,function(t){return e.mapDefined(t.symbol.declarations,function(t){return r(t)?e.find(t.getChildren(n),function(t){return e.contains(i,t.kind)}):void 0})})}function g(e,t,r){return t(e)?y(r(e,n)):void 0}function y(e){return e&&e.map(function(e){return r(e,n)})}}(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]}(s,i)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(o||(o={})),function(e){e.createDocumentRegistry=function(t,r){void 0===r&&(r="");var n=e.createMap(),i=e.createGetCanonicalFileName(!!t);function a(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function o(t,r){var i=n.get(t);return!i&&r&&n.set(t,i=e.createMap()),i}function s(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!0,o)}function c(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!1,o)}function u(t,r,n,i,a,s,c,u){var l=o(i,!0),_=l.get(r);return _?(_.sourceFile.version!==s&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,a,s,a.getChangeRange(_.sourceFile.scriptSnapshot))),c&&_.languageServiceRefCount++):(_={sourceFile:e.createLanguageServiceSourceFile(t,a,n.target,s,!1,u),languageServiceRefCount:1,owners:[]},l.set(r,_)),_.sourceFile}function l(t,r){var n=o(r,!1);e.Debug.assert(void 0!==n);var i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n.delete(t)}return{acquireDocument:function(t,n,o,c,u){return s(t,e.toPath(t,r,i),n,a(n),o,c,u)},acquireDocumentWithKey:s,updateDocument:function(t,n,o,s,u){return c(t,e.toPath(t,r,i),n,a(n),o,s,u)},updateDocumentWithKey:c,releaseDocument:function(t,n){return l(e.toPath(t,r,i),a(n))},releaseDocumentWithKey:l,reportStats:function(){var t=e.arrayFrom(n.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return n.get(e).forEach(function(e,r){t.push({name:r,refCount:e.languageServiceRefCount,references:e.owners.slice(0)})}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:a}}}(o||(o={})),function(e){!function(t){function r(t,r){return e.forEach(273===t.kind?t.statements:t.body.statements,function(t){return r(t)||u(t)&&e.forEach(t.body&&t.body.statements,r)})}function i(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i<a.length;i++){var o=a[i];n(e.importFromModuleSpecifier(o),o)}else r(t,function(t){switch(t.kind){case 249:case 243:(r=t).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&n(r,r.moduleSpecifier);break;case 242:var r;l(r=t)&&n(r,r.moduleReference.expression)}})}function a(t,r,n){var i=t.parent;if(i){var a=n.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:void 0}}function o(t){return"default"!==t.escapedName?t.escapedName:e.forEach(t.declarations,function(t){var r=e.getNameOfDeclaration(t);return r&&71===r.kind&&r.escapedText})}function s(e,t){return t.getMergedSymbol(c(e).symbol)}function c(t){if(186===t.kind)return t.getSourceFile();var r=t.parent;return 273===r.kind?r:(e.Debug.assert(239===r.kind),e.cast(r.parent,u))}function u(e){return 238===e.kind&&9===e.name.kind}function l(e){return 253===e.moduleReference.kind&&9===e.moduleReference.expression.kind}t.createImportTracker=function(t,a,u,_){var d=function(t,r,n){for(var a=e.createMap(),o=0,s=t;o<s.length;o++){var c=s[o];n.throwIfCancellationRequested(),i(c,function(t,n){var i=r.getSymbolAtLocation(n);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}})}return a}(t,u,_);return function(i,p,f){var m=function(t,n,i,a,o,u){var l=a.exportingModuleSymbol,_=a.exportKind,d=e.nodeSeenTracker(),p=e.nodeSeenTracker(),f=[],m=!!l.globalExports,g=m?void 0:[];return function t(r){var n=v(r);if(n)for(var i=0,a=n;i<a.length;i++){var l=a[i];if(d(l))switch(u.throwIfCancellationRequested(),l.kind){case 186:if(!m){var p=l.parent;if(2===_&&231===p.kind){var g=p.name;if(71===g.kind){f.push(g);break}}h(l.getSourceFile())}break;case 242:y(l,l.name,e.hasModifier(l,1));break;case 243:var b=l.importClause&&l.importClause.namedBindings;if(b&&245===b.kind)y(l,b.name);else if(e.isDefaultImport(l)){var x=c(l);m||h(x),f.push(l)}else f.push(l);break;case 249:l.exportClause?f.push(l):t(s(l,o))}}}(l),{directImports:f,indirectUsers:function(){if(m)return t;for(var r=0,i=l.declarations;r<i.length;r++){var a=i[r];e.isExternalModuleAugmentation(a)&&n.has(a.getSourceFile().fileName)&&h(a)}return g.map(e.getSourceFileOfNode)}()};function y(t,n,i){if(2===_)f.push(t);else if(!m){var a=c(t);e.Debug.assert(273===a.kind||238===a.kind),i||function(e,t,n){var i=n.getSymbolAtLocation(t);return r(e,function(e){if(249===e.kind){var t=e,r=t.exportClause,a=t.moduleSpecifier;if(!a&&r)for(var o=0,s=r.elements;o<s.length;o++){var c=s[o];if(n.getExportSpecifierLocalTargetSymbol(c)===i)return!0}}})}(a,n,o)?function t(r){if(h(r)){var n=o.getMergedSymbol(r.symbol);e.Debug.assert(!!(1536&n.flags));var i=v(n);if(i)for(var a=0,s=i;a<s.length;a++){var u=s[a];t(c(u))}}}(a):h(a)}}function h(t){e.Debug.assert(!m);var r=p(t);return r&&g.push(t),r}function v(t){return i.get(e.getSymbolId(t).toString())}}(t,a,d,p,u,_),g=m.directImports,y=m.indirectUsers;return n({indirectUsers:y},function(e,t,r,n,i){var a=[],s=[];function c(e,t){a.push([e,t])}if(e)for(var u=0,_=e;u<_.length;u++){var d=_[u];p(d)}return{importSearches:a,singleReferences:s};function p(e){if(242!==e.kind)if(71!==e.kind){if(178!==e.kind&&9===e.moduleSpecifier.kind)if(249!==e.kind){var a=e.importClause;if(a){var s=a.namedBindings;if(s&&245===s.kind)f(s.name);else if(0===r)m(s);else{var u=a.name;if(u&&(!i||u.escapedText===o(t))){var _=n.getSymbolAtLocation(u);c(u,_)}1===r&&m(s)}}}else m(e.exportClause)}else f(e);else l(e)&&f(e.name)}function f(e){2!==r||i&&!g(e.escapedText)||c(e,n.getSymbolAtLocation(e))}function m(e){if(e)for(var r=0,a=e.elements;r<a.length;r++){var o=a[r],u=o.name,l=o.propertyName;if(g((l||u).escapedText))if(l)s.push(l),i&&u.escapedText!==t.escapedName||c(u,n.getSymbolAtLocation(u));else{var _=251===o.kind&&o.propertyName?n.getExportSpecifierLocalTargetSymbol(o):n.getSymbolAtLocation(u);c(u,_)}}}function g(e){return e===t.escapedName||0!==r&&"default"===e}}(g,i,p.exportKind,u,f))}},function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals"}(t.ExportKind||(t.ExportKind={})),function(e){e[e.Import=0]="Import",e[e.Export=1]="Export"}(t.ImportExport||(t.ImportExport={})),t.findModuleReferences=function(e,t,r){for(var n=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],u=r.valueDeclaration;if(273===u.kind){for(var l=0,_=c.referencedFiles;l<_.length;l++){var d=_[l];e.getSourceFileFromReference(c,d)===u&&n.push({kind:"reference",referencingFile:c,ref:d})}for(var p=0,f=c.typeReferenceDirectives;p<f.length;p++){d=f[p];var m=e.getResolvedTypeReferenceDirectives().get(d.fileName);void 0!==m&&m.resolvedFileName===u.fileName&&n.push({kind:"reference",referencingFile:c,ref:d})}}i(c,function(e,t){a.getSymbolAtLocation(t)===r&&n.push({kind:"import",literal:t})})}return n},t.getImportOrExportSymbol=function(t,r,i,s){return s?c():c()||function(){var a=function(t){var r=t.parent;switch(r.kind){case 242:return r.name===t&&l(r)?{isNamedImport:!1}:void 0;case 247:return r.propertyName?void 0:{isNamedImport:!0};case 244:case 245:return e.Debug.assert(r.name===t),{isNamedImport:!1};default:return}}(t);if(a){var s=i.getImmediateAliasedSymbol(r);if(s){"export="===(s=function(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(a)}return t}(s,i)).escapedName&&(s=function(t,r){if(2097152&t.flags)return e.Debug.assertDefined(r.getImmediateAliasedSymbol(t));var n=t.valueDeclaration;return e.isExportAssignment(n)?e.Debug.assertDefined(n.expression.symbol):e.isBinaryExpression(n)?e.Debug.assertDefined(n.right.symbol):e.Debug.fail()}(s,i));var c=o(s);return void 0===c||"default"===c||c===r.escapedName?n({kind:0,symbol:s},a):void 0}}}();function c(){var n=t.parent;if(r.exportSymbol)return 184===n.kind?r.declarations.some(function(e){return e===n})&&e.isBinaryExpression(n.parent)?c(n.parent,!1):void 0:u(r.exportSymbol,_(n));var a=function(e,t){if(231===e.kind){var r=e;return r.name!==t?void 0:268===r.parent.kind?void 0:213===r.parent.parent.kind?r.parent.parent:void 0}return e}(n,t);if(a&&e.hasModifier(a,1)){if(e.isImportEqualsDeclaration(a)&&a.moduleReference===t){if(s)return;return{kind:0,symbol:i.getSymbolAtLocation(a.name),isNamedImport:!1}}return u(r,_(a))}if(e.isExportAssignment(n))return o(n);if(e.isExportAssignment(n.parent))return o(n.parent);if(e.isBinaryExpression(n))return c(n,!0);if(e.isBinaryExpression(n.parent))return c(n.parent,!0);function o(t){var n=e.Debug.assertDefined(t.symbol.parent,"Expected export symbol to have a parent"),i=t.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:n,exportKind:i}}}function c(t,n){var a;switch(e.getSpecialPropertyAssignmentKind(t)){case 1:a=0;break;case 2:a=2;break;default:return}var o=n?i.getSymbolAtLocation(e.cast(t.left,e.isPropertyAccessExpression).name):r;return!o||1536&i.getMergedSymbol(o.parent).flags||e.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+e.Debug.showSymbol(o)+", parent is "+e.Debug.showSymbol(o.parent)),o&&u(o,a)}}function u(e,t){var r=a(e,t,i);return r&&{kind:1,symbol:e,exportInfo:r}}function _(t){return e.hasModifier(t,512)?1:0}},t.getExportInfo=a}(e.FindAllReferences||(e.FindAllReferences={}))}(o||(o={})),function(e){!function(t){function r(e,t){return{type:"node",node:e,isInString:t}}function i(r,n,i,o,s,c,u){return void 0===c&&(c={}),void 0===u&&(u=e.arrayToSet(o,function(e){return e.fileName})),a(t.Core.getReferencedSymbolsForNode(r,n,i,o,s,c,u))}function a(t){return t&&e.flatMap(t,function(e){return e.references})}function o(r,n,i){var a=t.Core.getIntersectingMeaningFromDeclarations(i,r),o=e.firstOrUndefined(r.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,r,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function s(t){if("span"===t.type)return{textSpan:t.textSpan,fileName:t.fileName,isWriteAccess:!1,isDefinition:!1};var r=t.node,n=t.isInString,i=r.getSourceFile();return{fileName:i.fileName,textSpan:c(r,i),isWriteAccess:u(r),isDefinition:79===r.kind||e.isAnyDeclarationName(r)||e.isLiteralComputedPropertyDeclarationName(r),isInString:n}}function c(t,r){var n=t.getStart(r),i=t.getEnd();return 9===t.kind&&(n+=1,i-=1),e.createTextSpanFromBounds(n,i)}function u(t){return 79===t.kind||e.isAnyDeclarationName(t)||e.isWriteAccess(t)}t.nodeEntry=r,t.findReferencedSymbols=function(r,n,i,a,u){var l=e.getTouchingPropertyName(a,u,!0),_=t.Core.getReferencedSymbolsForNode(u,l,r,i,n),d=r.getTypeChecker();return _&&_.length?e.mapDefined(_,function(t){var r=t.definition,n=t.references;return r&&{definition:function(t,r,n){var i=function(){switch(t.type){case"symbol":var i=t.symbol,a=o(i,r,n),s=a.displayParts,c=a.kind,u=s.map(function(e){return e.text}).join("");return{node:i.declarations?e.getNameOfDeclaration(e.first(i.declarations))||e.first(i.declarations):n,name:u,kind:c,displayParts:s};case"label":var l=t.node;return{node:l,name:l.text,kind:"label",displayParts:[e.displayPart(l.text,e.SymbolDisplayPartKind.text)]};case"keyword":var _=t.node,d=e.tokenToString(_.kind);return{node:_,name:d,kind:"keyword",displayParts:[{text:d,kind:"keyword"}]};case"this":var p=t.node,i=r.getSymbolAtLocation(p),f=i&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,i,p.getSourceFile(),e.getContainerNode(p),p).displayParts;return{node:p,name:"this",kind:"var",displayParts:f};case"string":var m=t.node;return{node:m,name:m.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(m),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),a=i.node,s=i.name,u=i.kind,l=i.displayParts,_=a.getSourceFile();return{containerKind:"",containerName:"",fileName:_.fileName,kind:u,name:s,textSpan:c(e.isComputedPropertyName(a)?a.expression:a,_),displayParts:l}}(r,d,l),references:n.map(s)}}):void 0},t.getImplementationsAtPosition=function(a,s,u,l,_){var d=function(n,a,o,s,c){if(273!==s.kind){var u=n.getTypeChecker();if(270===s.parent.kind){var l=[];return t.Core.getReferenceEntriesForShorthandPropertyAssignment(s,u,function(e){return l.push(r(e))}),l}if(97===s.kind||e.isSuperProperty(s.parent)){var _=u.getSymbolAtLocation(s);return _.valueDeclaration&&[r(_.valueDeclaration)]}return i(c,s,n,o,a,{implementations:!0})}}(a,s,u,e.getTouchingPropertyName(l,_,!1),_),p=a.getTypeChecker();return e.map(d,function(t){return function(t,r){if("node"===t.type){var i=t.node,a=i.getSourceFile();return n({textSpan:c(i,a),fileName:a.fileName},function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?o(n,r,t):183===t.kind?{kind:"interface",displayParts:[e.punctuationPart(19),e.textPart("object literal"),e.punctuationPart(20)]}:204===t.kind?{kind:"local class",displayParts:[e.punctuationPart(19),e.textPart("anonymous local class"),e.punctuationPart(20)]}:{kind:e.getNodeKind(t),displayParts:[]}}(i,r))}var s=t.textSpan,u=t.fileName;return{textSpan:s,fileName:u,kind:"",displayParts:[]}}(t,p)})},t.findReferencedEntries=function(r,n,i,o,c,u){var l=e.getTouchingPropertyName(o,c,!0);return e.map(a(t.Core.getReferencedSymbolsForNode(c,l,r,i,n,u)),s)},t.getReferenceEntriesForNode=i,t.toHighlightSpan=function(e){if("span"===e.type)return{fileName:e.fileName,span:{textSpan:e.textSpan,kind:"reference"}};var t=e.node,r=e.isInString,n=t.getSourceFile(),i=u(t),a={textSpan:c(t,n),kind:i?"writtenReference":"reference",isInString:r};return{fileName:n.fileName,span:a}}}(e.FindAllReferences||(e.FindAllReferences={}))}(o||(o={})),function(e){!function(t){!function(r){function n(r,n,i,a){e.Debug.assert(!!n.valueDeclaration);for(var o=t.findModuleReferences(r,i,n).map(function(t){return"import"===t.kind?{type:"node",node:t.literal}:{type:"span",fileName:t.referencingFile.fileName,textSpan:e.createTextSpanFromRange(t.ref)}}),s=0,c=n.declarations;s<c.length;s++){var u=c[s];switch(u.kind){case 273:break;case 238:a.has(u.getSourceFile().fileName)&&o.push({type:"node",node:u.name});break;default:e.Debug.fail("Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}return[{definition:{type:"symbol",symbol:n},references:o}]}var i;r.getReferencedSymbolsForNode=function(r,i,s,_,p,m,b){if(void 0===m&&(m={}),void 0===b&&(b=e.arrayToSet(_,function(e){return e.fileName})),e.isSourceFile(i)){var x=e.GoToDefinition.getReferenceAtPosition(i,r,s);return x&&n(s,s.getTypeChecker().getMergedSymbol(x.file.symbol),_,b)}if(!m.implementations){var S=function(r,n,i){if(e.isTypeKeyword(r.kind))return function(r,n,i){var a=e.flatMap(r,function(r){return i.throwIfCancellationRequested(),e.mapDefined(l(r,e.tokenToString(n),r),function(e){return e.kind===n?t.nodeEntry(e):void 0})});return a.length?[{definition:{type:"keyword",node:a[0].node},references:a}]:void 0}(n,r.kind,i);if(e.isJumpStatementTarget(r)){var a=e.getTargetLabel(r.parent,r.text);return a&&d(a.parent,a)}return e.isLabelOfLabeledStatement(r)?d(r.parent,r):e.isThis(r)?function(r,n,i){var a=e.getThisContainer(r,!1),o=32;switch(a.kind){case 153:case 152:if(e.isObjectLiteralMethod(a))break;case 151:case 150:case 154:case 155:case 156:o&=e.getModifierFlags(a),a=a.parent;break;case 273:if(e.isExternalModule(a))return;case 233:case 191:break;default:return}var s=e.flatMap(273===a.kind?n:[a.getSourceFile()],function(t){return i.throwIfCancellationRequested(),l(t,"this",e.isSourceFile(a)?t:a).filter(function(t){if(!e.isThis(t))return!1;var r=e.getThisContainer(t,!1);switch(a.kind){case 191:case 233:return a.symbol===r.symbol;case 153:case 152:return e.isObjectLiteralMethod(a)&&a.symbol===r.symbol;case 204:case 234:return r.parent&&a.symbol===r.parent.symbol&&(32&e.getModifierFlags(r))===o;case 273:return 273===r.kind&&!e.isExternalModule(r)}})}).map(function(e){return t.nodeEntry(e)});return[{definition:{type:"this",node:r},references:s}]}(r,n,i):97===r.kind?function(r){var n=e.getSuperContainer(r,!1);if(n){var i=32;switch(n.kind){case 151:case 150:case 153:case 152:case 154:case 155:case 156:i&=e.getModifierFlags(n),n=n.parent;break;default:return}var a=n.getSourceFile(),o=e.mapDefined(l(a,"super",n),function(r){if(97===r.kind){var a=e.getSuperContainer(r,!1);return a&&(32&e.getModifierFlags(a))===i&&a.parent.symbol===n.symbol?t.nodeEntry(r):void 0}});return[{definition:{type:"symbol",symbol:n.symbol},references:o}]}}(r):void 0}(i,_,p);if(S)return S}var k=s.getTypeChecker(),D=k.getSymbolAtLocation(i);return D?1536&D.flags&&function(t){if(!e.isStringLiteralLike(t))return!1;switch(t.parent.kind){case 238:case 253:case 243:case 249:return!0;case 186:return e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent);default:return!1}}(i)?n(s,D,_,b):function(t,r,n,i,s,l,_){t=function(t,r,n){var i=r.parent;return e.isExportSpecifier(i)?g(r,t,i,n):e.isImportSpecifier(i)&&i.propertyName===r?n.getImmediateAliasedSymbol(t):e.firstDefined(t.declarations,function(i){return i.parent||(e.Debug.assert(273===i.kind),e.Debug.fail("Unexpected symbol at "+e.Debug.showSyntaxKind(r)+": "+e.Debug.showSymbol(t))),e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(i.parent.parent),t.name):void 0})}(t,r,s)||t;var d=v(r,t),p=[],m=new a(n,i,function(t){switch(t.kind){case 123:return 1;case 71:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}}(r),s,l,d,_,p);if(79===r.kind)y(r,t,m),o(r,t,{exportingModuleSymbol:e.Debug.assertDefined(t.parent,"Expected export symbol to have a parent"),exportKind:1},m);else{var b=m.createSearch(r,t,void 0,{allSearchSymbols:function(e,t,r,n){var i=[];return h(e,t,r,function(e,t,r){i.push(r||t||e)},function(){return!n}),i}(t,r,s,_.implementations)}),x=function(t){var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(191===a.kind||204===a.kind))return a;if(r){if(8196&n){var o=e.find(r,function(t){return e.hasModifier(t,8)});return o?e.getAncestor(o,234):void 0}if(!u(t)){var s,c=i&&!(262144&t.flags);if(!c||1536&i.flags&&e.isExternalModuleSymbol(i)&&!i.globalExports){for(var l=0,_=r;l<_.length;l++){var d=_[l],p=e.getContainerNode(d);if(s&&s!==p)return;if(!p||273===p.kind&&!e.isExternalOrCommonJsModule(p))return;s=p}return c?s.getSourceFile():s}}}}(t);if(x)f(x,x.getSourceFile(),b,m,!(e.isSourceFile(x)&&!e.contains(n,x)));else for(var S=0,k=m.sourceFiles;S<k.length;S++){var D=k[S];m.cancellationToken.throwIfCancellationRequested(),c(D,b,m)}}return p}(D,i,_,b,k,p,m):!m.implementations&&e.isStringLiteral(i)?function(r,n,i){var a=e.flatMap(n,function(n){return i.throwIfCancellationRequested(),e.mapDefined(l(n,r.text),function(n){return e.isStringLiteral(n)&&n.text===r.text?t.nodeEntry(n,!0):void 0})});return[{definition:{type:"string",node:r},references:a}]}(i,_,p):void 0},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(i||(i={}));var a=function(){function r(t,r,n,i,a,o,s,c){this.sourceFiles=t,this.sourceFilesSet=r,this.specialSearchKind=n,this.checker=i,this.cancellationToken=a,this.searchMeaning=o,this.options=s,this.result=c,this.inheritsFromCache=e.createMap(),this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,r){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,r,this.options.isForRename)},r.prototype.createSearch=function(t,r,n,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.unescapeLeadingUnderscores((e.getLocalSymbolForExportDefault(r)||r).escapedName)):a,s=i.allSearchSymbols,c=void 0===s?[r]:s;return{symbol:r,comingFrom:n,text:o,escapedText:e.escapeLeadingUnderscores(o),parents:this.options.implementations&&function(t,r,n){var i=e.isRightSideOfPropertyAccess(t)?t.parent:void 0,a=i&&n.getTypeAtLocation(i.expression),o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===r.parent?void 0:[a]),function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0});return 0===o.length?void 0:o}(t,r,this.checker),allSearchSymbols:c,includes:function(t){return e.contains(c,t)}}},r.prototype.referenceAdder=function(r){var n=e.getSymbolId(r),i=this.symbolIdToReferences[n];return i||(i=this.symbolIdToReferences[n]=[],this.result.push({definition:{type:"symbol",symbol:r},references:i})),function(e){return i.push(t.nodeEntry(e))}},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{type:"span",fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbols=function(t,r){for(var n=e.getNodeId(t),i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=e.createMap()),a=!1,o=0,s=r;o<s.length;o++){var c=s[o];a=e.addToSeen(i,e.getSymbolId(c))||a}return a},r}();function o(t,r,n,i){var a=i.getImportSearches(r,n),o=a.importSearches,s=a.singleReferences,u=a.indirectUsers;if(s.length)for(var l=i.referenceAdder(r),_=0,d=s;_<d.length;_++){var f=d[_];i.options.isForRename&&(e.isExportSpecifier(f.parent)||e.isImportSpecifier(f.parent))&&"default"===f.escapedText||l(f)}for(var m=0,g=o;m<g.length;m++){var y=g[m],h=y[0],v=y[1];p(h.getSourceFile(),i.createSearch(h,v,1),i)}if(u.length){var b=void 0;switch(n.exportKind){case 0:b=i.createSearch(t,r,1);break;case 1:b=i.options.isForRename?void 0:i.createSearch(t,r,1,{text:"default"})}if(b)for(var x=0,S=u;x<S.length;x++){c(S[x],b,i)}}}function s(e,t){for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();p(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function c(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&p(t,r,n)}function u(t){var r=e.getDeclarationOfKind(t,181);if(r&&179===r.parent.kind&&!r.propertyName)return r}function l(t,r,n){return void 0===n&&(n=t),_(t,r,n).map(function(r){return e.getTouchingPropertyName(t,r,!0)})}function _(t,r,n){void 0===n&&(n=t);var i=[];if(!r||!r.length)return i;for(var a=t.text,o=a.length,s=r.length,c=a.indexOf(r,n.pos);c>=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),6)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),6)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function d(r,n){var i=r.getSourceFile(),a=n.text,o=e.mapDefined(l(i,a,r),function(r){return r===n||e.isJumpStatementTarget(r)&&e.getTargetLabel(r,a)===n?t.nodeEntry(r):void 0});return[{definition:{type:"label",node:n},references:o}]}function p(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),f(e,e,t,r,n)}function f(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=_(t,r.text,e);a<o.length;a++){m(t,o[a],r,n,i)}}function m(r,n,i,a,c){var u=e.getTouchingPropertyName(r,n,!0);if(function(t,r){switch(t.kind){case 71:return t.text.length===r.length;case 9:var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t))&&n.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 79:return"default".length===r.length;default:return!1}}(u,i.text)){if(e.getMeaningFromLocation(u)&a.searchMeaning){var l=a.checker.getSymbolAtLocation(u);if(l){var _=u.parent;if(!e.isImportSpecifier(_)||_.propertyName!==u){if(e.isExportSpecifier(_))return e.Debug.assert(71===u.kind),void function(r,n,i,a,c,u){var l=i.parent,_=i.propertyName,d=i.name,p=l.parent,f=g(r,n,i,c.checker);if(!a.includes(f))return;_?r===_?(p.moduleSpecifier||b(),u&&!c.options.isForRename&&c.markSeenReExportRHS(d)&&y(d,n,c)):c.markSeenReExportRHS(r)&&b():c.options.isForRename&&"default"===d.escapedText||b();if(r!==_||!c.options.isForRename){var m=79===r.originalKeywordKind?1:0,h=t.getExportInfo(n,m,c.checker);e.Debug.assert(!!h),o(r,n,h,c)}if(1!==a.comingFrom&&p.moduleSpecifier&&!_){var v=c.checker.getExportSpecifierLocalTargetSymbol(i);v&&s(v,c)}function b(){u&&y(r,f,c)}}(u,l,_,i,a,c);var d=function(t,r,n,i){var a=i.checker;return h(r,n,a,function(r,n,i){return t.includes(i||n||r)?!n||6&e.getCheckFlags(r)?r:n:void 0},function(r){return!(t.parents&&!t.parents.some(function(t){return function t(r,n,i,a){if(r===n)return!0;var o=e.getSymbolId(r)+","+e.getSymbolId(n);var s=i.get(o);if(void 0!==s)return s;i.set(o,!1);var c=r.declarations.some(function(r){return e.getAllSuperTypeNodes(r).some(function(e){var r=a.getTypeAtLocation(e);return!!r&&!!r.symbol&&t(r.symbol,n,i,a)})});i.set(o,c);return c}(r.parent,t,i.inheritsFromCache,a)}))})}(i,l,u,a);if(d){switch(a.specialSearchKind){case 0:c&&y(u,d,a);break;case 1:!function(t,r,n,i){e.isNewExpressionTarget(t)&&y(t,n.symbol,i);var a=function(){return i.referenceAdder(n.symbol)};if(e.isClassLike(t.parent))e.Debug.assert(79===t.kind||t.parent.name===t),function(t,r,n){for(var i=0,a=t.members.get("__constructor").declarations;i<a.length;i++){var o=a[i],s=e.findChildOfKind(o,123,r);e.Debug.assert(154===o.kind&&!!s),n(s)}t.exports.forEach(function(t){var r=t.valueDeclaration;if(r&&153===r.kind){var i=r.body;i&&x(i,99,function(t){e.isNewExpressionTarget(t)&&n(t)})}})}(n.symbol,r,a());else{var o=(s=t,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(s).parent));o&&function(t,r){var n=t.symbol.members.get("__constructor");if(!n)return;for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(154===o.kind);var s=o.body;s&&x(s,97,function(t){e.isCallExpressionTarget(t)&&r(t)})}}(o,a())}var s}(u,r,i,a);break;case 2:!function(t,r,n){y(t,r.symbol,n);var i=t.parent;if(n.options.isForRename||!e.isClassLike(i))return;e.Debug.assert(i.name===t);for(var a=n.referenceAdder(r.symbol),o=0,s=i.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.hasModifier(c,32)&&c.body.forEachChild(function t(r){99===r.kind?a(r):e.isFunctionLike(r)||r.forEachChild(t)})}}(u,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}!function(e,r,n,i){var a=t.getImportOrExportSymbol(e,r,i.checker,1===n.comingFrom);if(!a)return;var c=a.symbol;0===a.kind?i.options.isForRename&&!a.isNamedImport||s(c,i):o(e,c,a.exportInfo,i)}(u,l,i,a)}else!function(t,r,n){var i=t.flags,a=t.valueDeclaration,o=n.checker.getShorthandAssignmentValueSymbol(a);33554432&i||!r.includes(o)||y(e.getNameOfDeclaration(a),o,n)}(l,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(r,n)||a.options.findInComments&&e.isInNonReferenceComment(r,n))&&a.addStringOrCommentReference(r.fileName,e.createTextSpan(n,i.text.length))}function g(t,r,n,i){return function(t,r){var n=r.parent,i=r.propertyName,a=r.name;return e.Debug.assert(i===t||a===t),i?i===t:!n.parent.moduleSpecifier}(t,n)&&i.getExportSpecifierLocalTargetSymbol(n)||r}function y(t,r,n){var i=n.referenceAdder(r);n.options.implementations?function(t,r,n){if(e.isDeclarationName(t)&&(i=t.parent,2097152&i.flags||(e.isVariableLike(i)?e.hasInitializer(i):e.isFunctionLikeDeclaration(i)?i.body:e.isClassLike(i)||e.isModuleOrEnumDeclaration(i))))return void r(t.parent);var i;if(71!==t.kind)return;270===t.parent.kind&&b(t,n.checker,r);var a=function t(r){return e.isIdentifier(r)||e.isPropertyAccessExpression(r)?t(r.parent):e.isExpressionWithTypeArguments(r)?e.tryCast(r.parent.parent,e.isClassLike):void 0}(t);if(a)return void r(a);var o=e.findAncestor(t,function(t){return!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)}),s=o.parent;if(e.hasType(s)&&s.type===o&&n.markSeenContainingTypeReference(s))if(e.hasInitializer(s))u(s.initializer);else if(e.isFunctionLike(s)&&s.body){var c=s.body;212===c.kind?e.forEachReturnStatement(c,function(e){e.expression&&u(e.expression)}):u(c)}else e.isAssertionExpression(s)&&u(s.expression);function u(e){(function e(t){switch(t.kind){case 190:return e(t.expression);case 192:case 191:case 183:case 204:case 182:return!0;default:return!1}})(e)&&r(e)}}(t,i,n):i(t)}function h(t,r,n,i,a){var o=e.getContainingObjectLiteralElement(r);if(o){var s=e.firstDefined(function(t,r){var n=r.getContextualType(t.parent),i=e.getNameFromPropertyName(t.name),a=n&&i&&n.getProperty(i);return a?[a]:n&&n.isUnion()?e.mapDefined(n.types,function(e){return e.getProperty(i)}):e.emptyArray}(o,n),g);if(s)return s;var c=function(t,r){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)&&r.getPropertySymbolOfDestructuringAssignment(t)}(r,n),l=c&&i(c);if(l)return l;var _=n.getShorthandAssignmentValueSymbol(r.parent),d=_&&i(_);if(d)return d}var p=g(t);if(p)return p;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration)){var f=n.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);return e.Debug.assert(2===f.length&&!!(1&f[0].flags)&&!!(4&f[1].flags)),g(1&t.flags?f[1]:f[0])}var m=function(t,r){var n=u(t);if(n){var i=r.getTypeAtLocation(n.parent),a=i&&r.getPropertyOfType(i,n.name.text);return a&&98304&a.flags?(e.Debug.assert(!!(33554432&a.flags)),a.target):a}}(t,n);return m&&g(m);function g(t){return e.firstDefined(n.getRootSymbols(t),function(r){return i(t,r)||(r.parent&&96&r.parent.flags&&a(r)?function(t,r,n,i){var a=e.createMap();return function t(o){if(!(96&o.flags&&e.addToSeen(a,e.getSymbolId(o))))return;return e.firstDefined(o.declarations,function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),function(a){var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))})})}(t)}(r.parent,r.name,n,function(e){return i(t,r,e)}):void 0)})}}function v(t,r){var n=e.getMeaningFromLocation(t),i=r.declarations;if(i){var a=void 0;do{a=n;for(var o=0,s=i;o<s.length;o++){var c=s[o],u=e.getMeaningFromDeclaration(c);u&n&&(n|=u)}}while(n!==a)}return n}function b(t,r,n){var i=r.getSymbolAtLocation(t),a=r.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a)for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&n(c)}}function x(t,r,n){e.forEachChild(t,function(e){e.kind===r&&n(e),x(e,r,n)})}r.isSymbolReferencedInFile=function(t,r,n){var i=r.getSymbolAtLocation(t);return!i||l(n,i.name).some(function(n){if(!e.isIdentifier(n)||n===t||n.escapedText!==t.escapedText)return!1;var a=r.getSymbolAtLocation(n);return a===i||r.getShorthandAssignmentValueSymbol(n.parent)===i||e.isExportSpecifier(n.parent)&&g(n,a,n.parent,r)===i})},r.getIntersectingMeaningFromDeclarations=v,r.getReferenceEntriesForShorthandPropertyAssignment=b}(t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(o||(o={})),function(e){!function(t){function r(t,r,c){var u,l,_=n(r,c,t);if(_)return[(u=_.fileName,l=_.file.fileName,{fileName:l,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:u,containerName:void 0,containerKind:void 0})];var d=e.getTouchingPropertyName(r,c,!0);if(d!==r){if(e.isJumpStatementTarget(d)){var p=e.getTargetLabel(d.parent,d.text);return p?[o(p,"label",d.text,void 0)]:void 0}var f=t.getTypeChecker(),m=function(t,r){var n=function(t){var r=function t(r){return e.isRightSideOfPropertyAccess(r)?t(r.parent):r}(t),n=r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r&&n}(r),i=n&&t.getResolvedSignature(n);return e.tryCast(i&&i.declaration,function(t){return e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)})}(f,d);if(m)return[s(f,m)];var g=f.getSymbolAtLocation(d);if(!g)return function(t,r){if(!e.isPropertyAccessExpression(t.parent)||t.parent.name!==t)return;var n=r.getTypeAtLocation(t.parent.expression);return e.mapDefined(n.isUnionOrIntersection()?n.types:[n],function(e){var t=r.getIndexInfoOfType(e,0);return t&&t.declaration&&s(r,t.declaration)})}(d,f);if(2097152&g.flags&&function(e,t){if(71!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 244:case 242:return!0;case 247:return 246===t.parent.kind;default:return!1}}(d,g.declarations[0])){var y=f.getAliasedSymbol(g);y.declarations&&(g=y)}if(270===d.parent.kind){var h=f.getShorthandAssignmentValueSymbol(g.valueDeclaration);return h?h.declarations.map(function(e){return a(e,f,h,d)}):[]}if(e.isPropertyName(d)&&e.isBindingElement(d.parent)&&e.isObjectBindingPattern(d.parent.parent)&&d===(d.parent.propertyName||d.parent.name)){var v=f.getTypeAtLocation(d.parent.parent);if(v){var b=e.getPropertySymbolsFromType(v,d);if(b)return e.flatMap(b,function(e){return i(f,e,d)})}}var x=e.getContainingObjectLiteralElement(d);return x&&f.getContextualType(x.parent)?e.flatMap(e.getPropertySymbolsFromContextualType(f,x),function(e){return i(f,e,d)}):i(f,g,d)}}function n(t,r,n){var i=c(t.referencedFiles,r);if(i)return(o=e.tryResolveScriptReference(n,t,i))&&{fileName:i.fileName,file:o};var a=c(t.typeReferenceDirectives,r);if(a){var o,s=n.getResolvedTypeReferenceDirectives().get(a.fileName);return(o=s&&n.getSourceFile(s.resolvedFileName))&&{fileName:a.fileName,file:o}}}function i(t,r,n){return function(){if(32&r.flags&&(e.isNewExpressionTarget(n)||123===n.kind)){var t=e.find(r.declarations,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return i(t.members,!0)}}()||(e.isCallExpressionTarget(n)||e.isNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?i(r.declarations,!1):void 0)||e.map(r.declarations,function(e){return a(e,t,r,n)});function i(i,o){if(i){var s=i.filter(o?e.isConstructorDeclaration:e.isFunctionLike);return s.length?[a(e.find(s,function(e){return!!e.body})||e.last(s),t,r,n)]:void 0}}}function a(t,r,n,i){var a=r.symbolToString(n);return o(t,e.SymbolDisplay.getSymbolKind(r,n,i),a,n.parent?r.symbolToString(n.parent,i):"")}function o(t,r,n,i){var a=e.getNameOfDeclaration(t)||t,o=a.getSourceFile();return{fileName:o.fileName,textSpan:e.createTextSpanFromNode(a,o),kind:r,name:n,containerKind:void 0,containerName:i}}function s(e,t){return a(t,e,t.symbol,t)}function c(t,r){return e.find(t,function(e){return e.pos<=r&&r<=e.end})}t.getDefinitionAtPosition=r,t.getReferenceAtPosition=n,t.getTypeDefinitionAtPosition=function(t,r,n){var a=e.getTouchingPropertyName(r,n,!0);if(a!==r){var o=t.getSymbolAtLocation(a),s=o&&t.getTypeOfSymbolAtLocation(o,a);if(s)return!s.isUnion()||16&s.flags?s.symbol&&i(t,s.symbol,a):e.flatMap(s.types,function(e){return e.symbol&&i(t,e.symbol,a)})}},t.getDefinitionAndBoundSpan=function(t,n,i){var a=r(t,n,i);if(a&&0!==a.length){var o=c(n.referencedFiles,i)||c(n.typeReferenceDirectives,i);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(n,i,!0);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},t.findReferenceInPosition=c}(e.GoToDefinition||(e.GoToDefinition={}))}(o||(o={})),function(e){!function(t){var r,n,i=["augments","author","argument","borrows","class","constant","constructor","constructs","default","deprecated","description","event","example","extends","field","fileOverview","function","ignore","inheritDoc","inner","lends","link","memberOf","method","name","namespace","param","private","prop","property","public","requires","returns","see","since","static","template","throws","type","typedef","version"];function a(e){var t=e.comment;switch(e.kind){case 286:return n(e.class);case 291:return i(e.typeParameters.map(function(e){return e.getText()}).join(", "));case 290:return n(e.typeExpression);case 292:case 293:case 288:var r=e.name;return r?n(r):t;default:return t}function n(e){return i(e.getText())}function i(e){return void 0===t?e:e+" "+t}}function o(e,t){if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}}function s(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:e.emptyArray,codeActions:void 0}}function c(t){for(;190===t.kind;)t=t.expression;switch(t.kind){case 191:case 192:return t.parameters;case 204:var r=e.find(t.members,e.isConstructorDeclaration);return r&&r.parameters}return e.emptyArray}t.getJsDocCommentsFromDeclarations=function(t){var r=[];return o(t,function(t){for(var n=0,i=function(t){switch(t.kind){case 293:return[t];case 292:return[t.parent];default:return e.getJSDocCommentsAndTags(t)}}(t);n<i.length;n++){var a=i[n].comment;void 0!==a&&(r.length&&r.push(e.lineBreakPart()),r.push(e.textPart(a)))}}),r},t.getJsDocTagsFromDeclarations=function(t){var r=[];return o(t,function(t){for(var n=0,i=e.getJSDocTags(t);n<i.length;n++){var o=i[n];r.push({name:o.tagName.text,text:a(o)})}}),r},t.getJSDocTagNameCompletions=function(){return r||(r=e.map(i,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},t.getJSDocTagNameCompletionDetails=s,t.getJSDocTagCompletions=function(){return n||(n=e.map(i,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},t.getJSDocTagCompletionDetails=s,t.getJSDocParameterNameCompletions=function(t){if(!e.isIdentifier(t.name))return e.emptyArray;var r=t.name.text,n=t.parent,i=n.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,function(i){if(e.isIdentifier(i.name)){var a=i.name.text;if(!n.tags.some(function(r){return r!==t&&e.isJSDocParameterTag(r)&&e.isIdentifier(r.name)&&r.name.escapedText===a})&&(void 0===r||e.startsWith(a,r)))return{name:a,kind:"parameter",kindModifiers:"",sortText:"0"}}}):[]},t.getJSDocParameterNameCompletionDetails=function(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:e.emptyArray,codeActions:void 0}},t.getDocCommentTemplateAtPosition=function(t,r,n){if(!(e.isInString(r,n)||e.isInComment(r,n)||e.hasDocComment(r,n))){var i=e.getTokenAtPosition(r,n,!1),a=i.getStart();if(i&&!(a<n)){var o=function(t){for(var r=t;r;r=r.parent)switch(r.kind){case 233:case 153:case 154:case 152:var n=r.parameters;return{commentOwner:r,parameters:n};case 234:case 235:case 150:case 237:case 272:case 236:return{commentOwner:r};case 213:var i=r,a=i.declarationList.declarations,o=1===a.length&&a[0].initializer?c(a[0].initializer):void 0;return{commentOwner:r,parameters:o};case 273:return;case 238:return 238===r.parent.kind?void 0:{commentOwner:r};case 199:var s=r;if(0===e.getSpecialPropertyAssignmentKind(s))return;var u=e.isFunctionLike(s.right)?s.right.parameters:e.emptyArray;return{commentOwner:r,parameters:u}}}(i);if(o){var s=o.commentOwner,u=o.parameters;if(!(s.getStart()<n)){if(!u||0===u.length)return{newText:"/** */",caretOffset:3};for(var l=r.getLineAndCharacterOfPosition(n),_=r.getLineStarts()[l.line],d=r.text.substr(_,l.character).replace(/\S/i,function(){return" "}),p=e.hasJavaScriptFileExtension(r.fileName),f="",m=0;m<u.length;m++){var g=u[m].name,y=71===g.kind?g.escapedText:"param"+m;f+=p?d+" * @param {any} "+y+t:d+" * @param "+y+t}var h="/**"+t+d+" * ";return{newText:h+t+f+d+" */"+(a===n?t+d:""),caretOffset:h.length}}}}}}}(e.JsDoc||(e.JsDoc={}))}(o||(o={})),function(e){function t(e){var t=parseInt(e,10);if(isNaN(t))throw new Error("Error in parseInt("+JSON.stringify(e)+")");return t}var r=/^(.*)-next.\d+/,n=/^(\d+)\.(\d+)\.0-next.(\d+)$/,i=/^(\d+)\.(\d+)\.(\d+)$/,a=function(){function e(e,t,r,n){this.major=e,this.minor=t,this.patch=r,this.isPrerelease=n}return e.parse=function(t){var n=r.test(t),i=e.tryParse(t,n);if(!i)throw new Error("Unexpected semver: "+t+" (isPrerelease: "+n+")");return i},e.fromRaw=function(t){return new e(t.major,t.minor,t.patch,t.isPrerelease)},e.tryParse=function(r,a){var o=(a?n:i).exec(r);return o?new e(t(o[1]),t(o[2]),t(o[3]),a):void 0},Object.defineProperty(e.prototype,"versionString",{get:function(){return this.isPrerelease?this.major+"."+this.minor+".0-next."+this.patch:this.major+"."+this.minor+"."+this.patch},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return this.major===e.major&&this.minor===e.minor&&this.patch===e.patch&&this.isPrerelease===e.isPrerelease},e.prototype.greaterThan=function(e){return this.major>e.major||this.major===e.major&&(this.minor>e.minor||this.minor===e.minor&&(!this.isPrerelease&&e.isPrerelease||this.isPrerelease===e.isPrerelease&&this.patch>e.patch))},e}();e.Semver=a}(o||(o={})),function(e){!function(t){function r(t,r){return!e.Semver.parse(e.getProperty(r,"ts"+e.versionMajorMinor)||e.getProperty(r,"latest")).greaterThan(t.version)}t.isTypingUpToDate=r,t.nodeCoreModuleList=["buffer","querystring","events","http","cluster","zlib","os","https","punycode","repl","readline","vm","child_process","url","dns","net","dgram","fs","path","string_decoder","tls","crypto","stream","util","assert","tty","domain","constants","process","v8","timers","console"];var n=e.arrayToSet(t.nodeCoreModuleList);t.loadSafeList=function(t,r){var n=e.readConfigFile(r,function(e){return t.readFile(e)});return e.createMapFromTemplate(n.config)},t.loadTypesMap=function(t,r){var n=e.readConfigFile(r,function(e){return t.readFile(e)});if(n.config)return e.createMapFromTemplate(n.config.simpleMap)},t.discoverTypings=function(t,i,a,o,s,c,u,l,_){if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var d=e.createMap();a=e.mapDefined(a,function(t){var r=e.normalizePath(t);if(e.hasJavaScriptFileExtension(r))return r});var p=[];u.include&&k(u.include,"Explicitly included types");var f=u.exclude||[],m=e.arrayToSet(a,e.getDirectoryPath);m.set(o,!0),m.forEach(function(t,r){D(e.combinePaths(r,"package.json"),p),D(e.combinePaths(r,"bower.json"),p),T(e.combinePaths(r,"bower_components"),p),T(e.combinePaths(r,"node_modules"),p)}),function(t){var r=e.mapDefined(t,function(t){if(e.hasJavaScriptFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}});r.length&&k(r,"Inferred typings from file names"),e.some(t,function(t){return e.fileExtensionIs(t,".jsx")})&&(i&&i("Inferred 'react' typings due to presence of '.jsx' extension"),S("react"))}(a),l&&k(e.deduplicate(l.map(function(e){return n.has(e)?"node":e}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach(function(e,t){d.has(t)&&void 0===d.get(t)&&r(e,_.get(t))&&d.set(t,e.typingLocation)});for(var g=0,y=f;g<y.length;g++){var h=y[g];d.delete(h)&&i&&i("Typing for "+h+" is in exclude list, will be ignored.")}var v=[],b=[];d.forEach(function(e,t){void 0!==e?b.push(e):v.push(t)});var x={cachedTypingPaths:b,newTypingNames:v,filesToWatch:p};return i&&i("Result: "+JSON.stringify(x)),x;function S(e){d.has(e)||d.set(e,void 0)}function k(t,r){i&&i(r+": "+JSON.stringify(t)),e.forEach(t,S)}function D(r,n){if(t.fileExists(r)){n.push(r);var i=e.readConfigFile(r,function(e){return t.readFile(e)}).config;k(e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys),"Typing names in '"+r+"' dependencies")}}function T(r,n){if(n.push(r),t.directoryExists(r)){var a=t.readDirectory(r,[".json"],void 0,void 0,2);i&&i("Searching for typing names in "+r+"; all files: "+JSON.stringify(a));for(var o=[],s=0,c=a;s<c.length;s++){var u=c[s],l=e.normalizePath(u),_=e.getBaseFileName(l);if("package.json"===_||"bower.json"===_){var p=e.readConfigFile(l,function(e){return t.readFile(e)}).config;if(("package.json"!==_||!p._requiredBy||0!==e.filter(p._requiredBy,function(e){return"#"===e[0]||"/"===e}).length)&&p.name){var f=p.types||p.typings;if(f){var m=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(l));i&&i(" Package '"+p.name+"' provides its own types."),d.set(p.name,m)}else o.push(p.name)}}}k(o," Found package names")}}},function(e){e[e.Ok=0]="Ok",e[e.ScopedPackagesNotSupported=1]="ScopedPackagesNotSupported",e[e.EmptyName=2]="EmptyName",e[e.NameTooLong=3]="NameTooLong",e[e.NameStartsWithDot=4]="NameStartsWithDot",e[e.NameStartsWithUnderscore=5]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=6]="NameContainsNonURISafeCharacters"}(t.PackageNameValidationResult||(t.PackageNameValidationResult={}));var i=214;t.validatePackageName=function(e){return e?e.length>i?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},t.renderPackageNameValidationFailure=function(t,r){switch(t){case 2:return"Package name '"+r+"' cannot be empty";case 3:return"Package name '"+r+"' should be less than "+i+" characters";case 4:return"Package name '"+r+"' cannot start with '.'";case 5:return"Package name '"+r+"' cannot start with '_'";case 1:return"Package '"+r+"' is scoped and currently is not supported";case 6:return"Package name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:e.Debug.assertNever(t)}}}(e.JsTyping||(e.JsTyping={}))}(o||(o={})),function(e){!function(t){function r(e,t){switch(e.kind){case 244:case 247:case 242:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}function n(t,r){var n=e.getNameOfDeclaration(t);return n&&e.isPropertyNameLiteral(n)?(r.unshift(e.getTextOfIdentifierOrLiteral(n)),!0):!(!n||146!==n.kind)&&i(n.expression,r,!0)}function i(t,r,n){if(e.isPropertyNameLiteral(t)){var a=e.getTextOfIdentifierOrLiteral(t);return n&&r.unshift(a),!0}return!!e.isPropertyAccessExpression(t)&&(n&&r.unshift(t.name.text),i(t.expression,r,!0))}function a(t){var r=[],a=e.getNameOfDeclaration(t);if(146!==a.kind||i(a.expression,r,!1)){for(t=e.getContainerNode(t);t;){if(!n(t,r))return;t=e.getContainerNode(t)}return r}}function o(t,r){return e.compareValues(t.matchKind,r.matchKind)||e.compareStringsCaseSensitiveUI(t.name,r.name)}function s(t){var r=t.declaration,n=e.getContainerNode(r),i=n&&e.getNameOfDeclaration(n);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(r),containerName:i?i.text:"",containerKind:i?e.getNodeKind(n):""}}t.getNavigateToItems=function(t,n,i,c,u,l){var _=e.createPatternMatcher(c);if(!_)return e.emptyArray;for(var d=[],p=function(t){if(i.throwIfCancellationRequested(),l&&e.fileExtensionIs(t.fileName,".d.ts"))return"continue";t.getNamedDeclarations().forEach(function(e,i){!function(e,t,n,i,o,s){var c=e.getMatchForLastSegmentOfPattern(t);if(c)for(var u=0,l=n;u<l.length;u++){var _=l[u];if(r(_,i))if(e.patternContainsDots){var d=e.getFullMatch(a(_),t);d&&s.push({name:t,fileName:o,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:_})}else s.push({name:t,fileName:o,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:_})}}(_,i,e,n,t.fileName,d)})},f=0,m=t;f<m.length;f++)p(m[f]);return d.sort(o),void 0!==u&&(d=d.slice(0,u)),d.map(s)}}(e.NavigateTo||(e.NavigateTo={}))}(o||(o={})),function(e){!function(t){var r,n,i,a=/\s+/g,o=[],s=[];function c(){n=void 0,r=void 0,o=[],i=void 0,s=[]}function u(e){return e.getText(n)}function l(e){return e.node.kind}function _(e,t){e.children?e.children.push(t):e.children=[t]}function d(t){e.Debug.assert(!o.length);var r={node:t,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};i=r;for(var n=0,a=t.statements;n<a.length;n++){h(a[n])}return g(),e.Debug.assert(!i&&!o.length),r}function p(e){_(i,f(e))}function f(e){return{node:e,additionalNodes:void 0,parent:i,children:void 0,indent:i.indent+1}}function m(e){var t=f(e);_(i,t),o.push(i),i=t}function g(){i.children&&(v(i.children),x(i.children)),i=o.pop()}function y(e,t){m(e),h(t),g()}function h(t){if(r.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 154:var n=t;y(n,n.body);for(var i=0,a=n.parameters;i<a.length;i++){var o=a[i];e.isParameterPropertyDeclaration(o)&&p(o)}break;case 153:case 155:case 156:case 152:e.hasDynamicName(t)||y(t,t.body);break;case 151:case 150:e.hasDynamicName(t)||p(t);break;case 244:var s=t;s.name&&p(s);var c=s.namedBindings;if(c)if(245===c.kind)p(c);else for(var u=0,l=c.elements;u<l.length;u++){p(l[u])}break;case 181:case 231:var _=t,d=_.name,f=_.initializer;e.isBindingPattern(d)?h(d):f&&function(e){switch(e.kind){case 192:case 191:case 204:return!0;default:return!1}}(f)?f.name?h(f):(m(t),e.forEachChild(f,h),g()):y(t,f);break;case 192:case 233:case 191:y(t,t.body);break;case 237:m(t);for(var v=0,b=t.members;v<b.length;v++){P(k=b[v])||p(k)}g();break;case 234:case 204:case 235:m(t);for(var x=0,S=t.members;x<S.length;x++){var k;h(k=S[x])}g();break;case 238:y(t,function e(t){return 238===t.body.kind?e(t.body):t}(t).body);break;case 251:case 242:case 159:case 157:case 158:case 236:p(t);break;case 199:var D=e.getSpecialPropertyAssignmentKind(t);switch(D){case 1:case 2:case 3:case 6:y(t,t.right);break;case 4:case 5:case 0:break;default:e.Debug.assertNever(D)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,function(t){e.forEach(t.tags,function(e){292===e.kind&&p(e)})}),e.forEachChild(t,h)}}function v(t){var r=e.createMap();e.filterMutate(t,function(t){var n=e.getNameOfDeclaration(t.node),i=n&&u(n);if(!i)return!0;var a=r.get(i);if(!a)return r.set(i,t),!0;if(a instanceof Array){for(var o=0,s=a;o<s.length;o++){var c;if(b(c=s[o],t))return!1}return a.push(t),!0}return!b(c=a,t)&&(r.set(i,[c,t]),!0)})}function b(t,r){return!!function(t,r){if(t.kind!==r.kind)return!1;switch(t.kind){case 151:case 153:case 155:case 156:return e.hasModifier(t,32)===e.hasModifier(r,32);case 238:return function e(t,r){return t.body.kind===r.body.kind&&(238!==t.body.kind||e(t.body,r.body))}(t,r);default:return!0}}(t.node,r.node)&&(function(t,r){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&(n=t.additionalNodes).push.apply(n,r.additionalNodes);t.children=e.concatenate(t.children,r.children),t.children&&(v(t.children),x(t.children));var n}(t,r),!0)}function x(e){e.sort(S)}function S(t,r){return e.compareStringsCaseSensitiveUI(k(t.node),k(r.node))||e.compareValues(l(t),l(r))}function k(t){if(238===t.kind)return A(t);var r=e.getNameOfDeclaration(t);if(r)return e.unescapeLeadingUnderscores(e.getPropertyNameForPropertyNameNode(r));switch(t.kind){case 191:case 192:case 204:return O(t);case 292:return T(t);default:return}}function D(t){if(238===t.kind)return A(t);var r=e.getNameOfDeclaration(t);if(r){var n=u(r);if(n.length>0)return n}switch(t.kind){case 273:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 192:case 233:case 191:case 234:case 204:return 512&e.getModifierFlags(t)?"default":O(t);case 154:return"constructor";case 158:return"new()";case 157:return"()";case 159:return"[]";case 292:return T(t);default:return"<unknown>"}}function T(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&213===t.kind&&t.declarationList.declarations.length>0){var r=t.declarationList.declarations[0].name;if(71===r.kind)return r.text}return"<typedef>"}function C(t){return{text:D(t.node),kind:e.getNodeKind(t.node),kindModifiers:F(t.node),spans:N(t),childItems:e.map(t.children,C)}}function E(t){return{text:D(t.node),kind:e.getNodeKind(t.node),kindModifiers:F(t.node),spans:N(t),childItems:e.map(t.children,function(t){return{text:D(t.node),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:N(t),childItems:s,indent:0,bolded:!1,grayed:!1}})||s,indent:t.indent,bolded:!1,grayed:!1}}function N(e){var t=[w(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(w(i))}return t}function A(t){if(e.isAmbientModule(t))return e.getTextOfNode(t.name);var r=[];for(r.push(e.getTextOfIdentifierOrLiteral(t.name));t.body&&238===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function P(e){return!e.name||146===e.name.kind}function w(t){return 273===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,n)}function F(t){return t.parent&&231===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function O(t){return t.name&&e.getFullWidth(t.name)>0?e.declarationNameToString(t.name):231===t.parent.kind?e.declarationNameToString(t.parent.name):199===t.parent.kind&&58===t.parent.operatorToken.kind?u(t.parent.left).replace(a,""):269===t.parent.kind&&t.parent.name?u(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"<class>":"<function>"}t.getNavigationBarItems=function(t,i){r=i,n=t;try{return e.map((a=d(t),o=[],function t(r){if(function(t){switch(l(t)){case 234:case 204:case 237:case 235:case 238:case 273:case 236:case 292:return!0;case 154:case 153:case 155:case 156:case 231:return r(t);case 192:case 233:case 191:return function(e){if(!e.node.body)return!1;switch(l(e.parent)){case 239:case 273:case 153:case 154:return!0;default:return r(e)}}(t);default:return!1}function r(t){return e.forEach(t.children,function(e){var t=l(e);return 231!==t&&181!==t})}}(r)&&(o.push(r),r.children))for(var n=0,i=r.children;n<i.length;n++){var a=i[n];t(a)}}(a),o),E)}finally{c()}var a,o},t.getNavigationTree=function(e,t){r=t,n=e;try{return C(d(e))}finally{c()}}}(e.NavigationBar||(e.NavigationBar={}))}(o||(o={})),function(e){!function(t){function r(t){var n=t.body;return n&&!e.isIdentifier(n)&&(e.isModuleBlock(n)?n:r(n))}function n(t){return e.isStringLiteralLike(t)?t.text:void 0}function i(t){if(0===t.length)return t;var r=function(t){for(var r,n=[],i=[],a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(void 0!==c.importClause){var u=c.importClause,l=u.name,_=u.namedBindings;l&&n.push(c),_&&(e.isNamespaceImport(_)?i.push(c):a.push(c))}else r=r||c}return{importWithoutClause:r,defaultImports:n,namespaceImports:i,namedImports:a}}(t),n=r.importWithoutClause,i=r.defaultImports,o=r.namespaceImports,s=r.namedImports,c=[];if(n&&c.push(n),1===i.length&&1===o.length&&0===s.length){var u=i[0];return c.push(a(u,u.importClause.name,o[0].importClause.namedBindings)),c}for(var l,_=0,d=e.stableSort(o,function(e,t){return b(e.importClause.namedBindings.name,t.importClause.namedBindings.name)});_<d.length;_++){var p=d[_];c.push(a(p,void 0,p.importClause.namedBindings))}if(0===i.length&&0===s.length)return c;var f=[];if(1===i.length)l=i[0].importClause.name;else for(var m=0,g=i;m<g.length;m++){u=g[m];f.push(e.createImportSpecifier(e.createIdentifier("default"),u.importClause.name))}f.push.apply(f,e.flatMap(s,function(e){return e.importClause.namedBindings.elements}));var y=e.stableSort(f,function(e,t){return b(e.propertyName||e.name,t.propertyName||t.name)||b(e.name,t.name)}),h=i.length>0?i[0]:s[0],v=0===y.length?void 0:0===s.length?e.createNamedImports(y):e.updateNamedImports(s[0].importClause.namedBindings,y);return c.push(a(h,l,v)),c;function b(t,r){return e.compareStringsCaseSensitive(t.text,r.text)}}function a(t,r,n){return e.updateImportDeclaration(t,t.decorators,t.modifiers,e.updateImportClause(t.importClause,r,n),t.moduleSpecifier)}function o(t,r){var i=n(t),a=n(r);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseSensitive(i,a)}t.organizeImports=function(t,s,c,u,l){var _=e.textChanges.ChangeTracker.fromContext({host:c,formatContext:s});f(t.statements.filter(e.isImportDeclaration));for(var d=0,p=t.statements.filter(e.isAmbientModule);d<p.length;d++)f(r(p[d]).statements.filter(e.isImportDeclaration));return _.getChanges();function f(r){if(0!==e.length(r)){e.suppressLeadingTrivia(r[0]);var l=e.group(r,function(e){return n(e.moduleSpecifier)}),d=e.stableSort(l,function(e,t){return o(e[0].moduleSpecifier,t[0].moduleSpecifier)}),p=e.flatMap(d,function(r){return n(r[0].moduleSpecifier)?i(function(t,r,n){for(var i=n.getTypeChecker(),o=i.getJsxNamespace(),s=1===r.languageVariant&&n.getCompilerOptions().jsx,c=[],u=0,l=t;u<l.length;u++){var _=l[u],d=_.importClause;if(d){var p=d.name,f=d.namedBindings;if(p&&!g(p)&&(p=void 0),f)if(e.isNamespaceImport(f))g(f.name)||(f=void 0);else{var m=f.elements.filter(function(e){return g(e.name)});m.length<f.elements.length&&(f=m.length?e.updateNamedImports(f,m):void 0)}(p||f)&&c.push(a(_,p,f))}else c.push(_)}return c;function g(t){return s&&t.text===o||e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,r)}}(r,t,u)):r});0===p.length?_.deleteNode(t,r[0],{useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!1}):_.replaceNodeWithNodes(t,r[0],p,{useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!1,suffix:e.getNewLineOrDefaultFromHost(c,s.options)});for(var f=1;f<r.length;f++)_.deleteNode(t,r[f])}}},t.coalesceImports=i,t.compareModuleSpecifiers=o}(e.OrganizeImports||(e.OrganizeImports={}))}(o||(o={})),function(e){function t(e){return"fileName"in e}e.getEditsForFileRename=function(r,n,i,a,o){var s=function(t,r,n){var i=e.getRelativePath(r,e.getDirectoryPath(t),e.createGetCanonicalFileName(e.hostUsesCaseSensitiveFileNames(n)));return function(t){if(e.pathIsRelative(t))return e.ensurePathIsRelative(e.normalizePath(e.combinePaths(e.getDirectoryPath(t),i)))}}(n,i,a);return e.textChanges.ChangeTracker.with({host:a,formatContext:o},function(i){for(var a=0,o=function(t,r){for(var n=t.getTypeChecker(),i=[],a=0,o=t.getSourceFiles();a<o.length;a++){for(var s=o[a],c=0,u=s.referencedFiles;c<u.length;c++){var l=u[c];t.getSourceFileFromReference(s,l)||e.resolveTripleslashReference(l.fileName,s.fileName)!==r||i.push({sourceFile:s,toUpdate:l})}for(var _=0,d=s.imports;_<d.length;_++){var p=d[_];if(!n.getSymbolAtLocation(p)){var f=t.getResolvedModuleWithFailedLookupLocationsFromCache(p.text,s.fileName);e.contains(f.failedLookupLocations,r)&&i.push({sourceFile:s,toUpdate:p})}}}return i}(r,n);a<o.length;a++){var c=o[a],u=c.sourceFile,l=c.toUpdate,_=s(t(l)?l.fileName:l.text);if(void 0!==_){var d=t(l)?l:e.createTextRange(l.getStart(u)+1,l.end-1);i.replaceRangeWithText(u,d,t(l)?_:e.removeFileExtension(_))}}})}}(o||(o={})),function(e){!function(t){function r(t,r){return n(e.createTextSpanFromBounds(t,r))}function n(e,t,r,n){return void 0===t&&(t=e),void 0===r&&(r=!1),void 0===n&&(n="..."),{textSpan:e,hintSpan:t,bannerText:n,autoCollapse:r}}t.collectElements=function(t,i){var a=[];return function(t,i,a){var o=40;t.forEachChild(function s(c){if(0!==o){i.throwIfCancellationRequested(),e.isDeclaration(c)&&function(t,n,i,a){var o=e.getLeadingCommentRangesOfNode(t,n);if(o){for(var s=-1,c=-1,u=0,l=0,_=o;l<_.length;l++){var d=_[l],p=d.kind,f=d.pos,m=d.end;switch(i.throwIfCancellationRequested(),p){case 2:0===u&&(s=f),c=m,u++;break;case 3:g(),a.push(r(f,m)),u=0;break;default:e.Debug.assertNever(p)}}g()}function g(){u>1&&a.push(r(s,c))}}(c,t,i,a);var u=function(t,r){switch(t.kind){case 212:if(e.isFunctionBlock(t))return o(t.parent,192!==t.parent.kind);switch(t.parent.kind){case 217:case 220:case 221:case 219:case 216:case 218:case 225:case 268:return o(t.parent);case 229:var i=t.parent;if(i.tryBlock===t)return o(t.parent);if(i.finallyBlock===t)return o(e.findChildOfKind(i,87,r));default:return n(e.createTextSpanFromNode(t,r))}case 239:return o(t.parent);case 234:case 235:case 237:case 240:return o(t);case 183:return a(t);case 182:return a(t,21)}function a(t,r){return void 0===r&&(r=17),o(t,!1,!e.isArrayLiteralExpression(t.parent),r)}function o(i,a,o,s){void 0===a&&(a=!1),void 0===o&&(o=!0),void 0===s&&(s=17);var c=e.findChildOfKind(t,s,r),u=17===s?18:22,l=e.findChildOfKind(t,u,r);if(c&&l){var _=e.createTextSpanFromBounds(o?c.getFullStart():c.getStart(r),l.getEnd());return n(_,e.createTextSpanFromNode(i,r),a)}}}(c,t);u&&a.push(u),o--,e.isIfStatement(c)&&c.elseStatement&&e.isIfStatement(c.elseStatement)?(s(c.expression),s(c.thenStatement),o++,s(c.elseStatement),o--):c.forEachChild(s),o++}})}(t,i,a),function(t,r){for(var i=[],a=t.getLineStarts(),o=0;o<a.length;o++){var s=a[o],c=o+1===a.length?t.getEnd():a[o+1]-1,u=t.text.substring(s,c),l=u.match(/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/);if(l&&!e.isInComment(t,s))if(l[1]){var _=i.pop();_&&(_.textSpan.length=c-_.textSpan.start,_.hintSpan.length=c-_.textSpan.start,r.push(_))}else{var d=e.createTextSpanFromBounds(t.text.indexOf("//",s),c);i.push(n(d,d,!1,l[2]||"#region"))}}}(t,a),a.sort(function(e,t){return e.textSpan.start-t.textSpan.start})}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(o||(o={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=h(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(T(t,function(t,n){return d(e.charCodeAt(n+r))===t}))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"===p(a))return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var _=0,f=n(i,o);_<f.length;_++){var m=f[_];if(c(i,m,a.text,!0))return r(t.substring,c(i,m,a.text,!1))}if(a.text.length<i.length&&l(i.charCodeAt(s)))return r(t.substring,!1)}else{if(i.indexOf(a.text)>0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),y=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==y)return r(t.camelCase,y)}}}function a(e,t,r){if(T(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s<c.length;s++){a=o(a,i(e,c[s],r))}return a}function o(t,r){return e.min(t,r,s)}function s(t,r){return void 0===t?1:void 0===r?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function c(e,t,r,n,i){return void 0===i&&(i={start:0,length:r.length}),i.length<=t.length&&D(0,i.length,function(a){return function(e,t,r){return r?d(e)===d(t):e===t}(r.charCodeAt(i.start+a),e.charCodeAt(t.start+a),n)})}function u(t,r,n,i){for(var a,o,s=n.characterSpans,u=0,_=0;;){if(_===s.length)return!0;if(u===r.length)return!1;for(var d=r[u],p=!1;_<s.length;_++){var f=s[_];if(p&&(!l(n.text.charCodeAt(s[_-1].start))||!l(n.text.charCodeAt(s[_].start))))break;if(!c(t,d,n.text,i,f))break;p=!0,a=void 0===a?u:a,o=void 0===o||o,d=e.createTextSpan(d.start+f.length,d.length-f.length)}p||void 0===o||(o=!1),u++}}function l(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function _(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function d(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 l(e)||_(e)||f(e)||95===e||36===e}function g(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:y(e)}}function y(e){return v(e,!1)}function h(e){return v(e,!0)}function v(t,r){for(var n=[],i=0,a=1;a<t.length;a++){var o=f(t.charCodeAt(a-1)),s=f(t.charCodeAt(a)),c=k(t,r,a),u=r&&S(t,a,i);(b(t.charCodeAt(a-1))||b(t.charCodeAt(a))||o!==s||c||u)&&(x(t,i,a)||n.push(e.createTextSpan(i,a-i)),i=a)}return x(t,i,t.length)||n.push(e.createTextSpan(i,t.length-i)),n}function b(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function x(e,t,r){return T(e,function(e){return b(e)&&95!==e},t,r)}function S(e,t,r){return t!==r&&t+1<e.length&&l(e.charCodeAt(t))&&_(e.charCodeAt(t+1))&&T(e,l,r,t)}function k(e,t,r){var n=l(e.charCodeAt(r-1));return l(e.charCodeAt(r))&&(!t||!n)}function D(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function T(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),D(r,n,function(r){return t(e.charCodeAt(r),r)})}!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(t=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=function(t){var r=e.createMap(),n=t.trim().split(".").map(function(e){return{totalTextChunk:g(t=e.trim()),subWordTextChunks:function(e){for(var t=[],r=0,n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);m(a)?(0===n&&(r=i),n++):n>0&&(t.push(g(e.substr(r,n))),n=0)}return n>0&&t.push(g(e.substr(r,n))),t}(t)};var t});if(!n.some(function(e){return!e.subWordTextChunks.length}))return{getFullMatch:function(t,i){return function(t,r,n,i){var s;if(a(r,e.lastOrUndefined(n),i)&&(t=t||[],!(n.length-1>t.length))){for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=h}(o||(o={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],u=0,l=!1;function _(){return a=o,17===(o=e.scanner.scan())?u++:18===o&&u--,o}function d(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function p(){c.push(d()),f()}function f(){0===u&&(l=!0)}function m(){var t=e.scanner.getToken();return 124===t&&(129===(t=_())&&9===(t=_())&&(i||(i=[]),i.push({ref:d(),depth:u})),!0)}function g(){if(23===a)return!1;var t=e.scanner.getToken();if(91===t){if(19===(t=_())){if(9===(t=_()))return p(),!0}else{if(9===t)return p(),!0;if(71===t||e.isKeyword(t))if(142===(t=_())){if(9===(t=_()))return p(),!0}else if(58===t){if(h(!0))return!0}else{if(26!==t)return!0;t=_()}if(17===t){for(t=_();18!==t&&1!==t;)t=_();18===t&&142===(t=_())&&9===(t=_())&&p()}else 39===t&&118===(t=_())&&(71===(t=_())||e.isKeyword(t))&&142===(t=_())&&9===(t=_())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(84===t){if(f(),17===(t=_())){for(t=_();18!==t&&1!==t;)t=_();18===t&&142===(t=_())&&9===(t=_())&&p()}else if(39===t)142===(t=_())&&9===(t=_())&&p();else if(91===t&&(71===(t=_())||e.isKeyword(t))&&58===(t=_())&&h(!0))return!0;return!0}return!1}function h(t){var r=t?_():e.scanner.getToken();return 133===r&&(19===(r=_())&&9===(r=_())&&p(),!0)}function v(){var t=e.scanner.getToken();if(71===t&&"define"===e.scanner.getTokenValue()){if(19!==(t=_()))return!0;if(9===(t=_())){if(26!==(t=_()))return!0;t=_()}if(21!==t)return!0;for(t=_();22!==t&&1!==t;)9===t&&p(),t=_();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),_();1!==e.scanner.getToken();)m()||g()||y()||n&&(h(!1)||v())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var b=0,x=i;b<x.length;b++){var S=x[b];c.push(S.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,importedFiles:c,isLibFile:s.hasNoDefaultLib,ambientExternalModules:void 0}}var k=void 0;if(i)for(var D=0,T=i;D<T.length;D++)0===(S=T[D]).depth?(k||(k=[]),k.push(S.ref.fileName)):c.push(S.ref);return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,importedFiles:c,isLibFile:s.hasNoDefaultLib,ambientExternalModules:k}}}(o||(o={})),function(e){!function(t){function r(t,r,n,i,a,o){return{canRename:!0,kind:n,displayName:t,localizedErrorMessage:void 0,fullDisplayName:r,kindModifiers:i,triggerSpan:function(t,r){var n=t.getStart(r),i=t.getWidth(r);9===t.kind&&(n+=1,i-=2);return e.createTextSpan(n,i)}(a,o)}}function n(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}t.getRenameInfo=function(t,i,a,o,s){var c=e.memoize(function(){return a(e.normalizePath(i))}),u=e.getTouchingPropertyName(o,s,!0);return(u&&function(t){switch(t.kind){case 71:case 9:case 99:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}(u)?function(t,i,a,o){var s=i.getSymbolAtLocation(t);if(s){var c=s.declarations;if(c&&c.length>0){if(c.some(o))return n(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(t)&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.SymbolDisplay.getSymbolKind(i,s,t),l=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteral(t)&&146===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0,_=l||i.symbolToString(s),d=l||i.getFullyQualifiedName(s);return r(_,d,u,e.SymbolDisplay.getSymbolModifiers(s),t,a)}}else if(e.isStringLiteral(t))return o(t)?n(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):r(t.text,t.text,"var","",t,a)}(u,t,o,function(t){if(!i)return!1;var r=t.getSourceFile();return a(e.normalizePath(r.fileName))===c()}):void 0)||n(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(o||(o={})),function(e){!function(t){function r(t,r,i){if(e.isCallOrNewExpression(t.parent)){var a=t.parent,o=void 0,s=void 0;if(27===t.kind||19===t.kind)o=function(t,r,n){var i=t.getChildren(n),a=i.indexOf(r);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}(a,t,i),e.Debug.assert(void 0!==o),s=0;else{if(!(o=e.findContainingList(t)))return;s=function(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;26!==a.kind&&r++}return r}(o,t)}var c=a.typeArguments&&a.typeArguments.pos===o.pos?0:1,u=function(t){var r=t.getChildren(),n=e.countWhere(r,function(e){return 26!==e.kind});r.length>0&&26===e.lastOrUndefined(r).kind&&n++;return n}(o);return 0!==s&&e.Debug.assertLessThan(s,u),{kind:c,invocation:a,argumentsSpan:function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(o,i),argumentIndex:s,argumentCount:u}}if(13===t.kind&&188===t.parent.kind){if(e.isInsideTemplateLiteral(t,r))return n(t.parent,0,i)}else{if(14===t.kind&&188===t.parent.parent.kind){var l=(_=t.parent).parent;return e.Debug.assert(201===_.kind),n(l,s=e.isInsideTemplateLiteral(t,r)?0:1,i)}if(210===t.parent.kind&&188===t.parent.parent.parent.kind){var _,d=t.parent;l=(_=d.parent).parent;if(e.Debug.assert(201===_.kind),16===t.kind&&!e.isInsideTemplateLiteral(t,r))return;return n(l,s=function(t,r,n){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(r.kind))return e.isInsideTemplateLiteral(r,n)?0:t+2;return t+1}(_.templateSpans.indexOf(d),t,r),i)}if(t.parent&&e.isJsxOpeningLikeElement(t.parent)){var p=t.parent.attributes.getFullStart(),f=e.skipTrivia(i.text,t.parent.attributes.getEnd(),!1);return{kind:3,invocation:t.parent,argumentsSpan:e.createTextSpan(p,f-p),argumentIndex:0,argumentCount:1}}}}function n(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{kind:2,invocation:t,argumentsSpan:function(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();if(201===n.kind){var o=e.lastOrUndefined(n.templateSpans);0===o.literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1))}return e.createTextSpan(i,a-i)}(t,n),argumentIndex:r,argumentCount:i}}function i(t,n,i){for(var a=t;273!==a.kind;a=a.parent){if(e.isFunctionBlock(a))return;(a.pos<a.parent.pos||a.end>a.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=r(a,n,i);if(o)return o}}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments"}(t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=function(t,r,n,a){var s=t.getTypeChecker(),c=e.findTokenOnLeftOfPosition(r,n);if(c){var u=i(c,n,r);if(u){a.throwIfCancellationRequested();var l=u.invocation,_=[],d=s.getResolvedSignature(l,_,u.argumentCount);return a.throwIfCancellationRequested(),_.length?o(_,d,u,s):e.isSourceFileJavaScript(r)?function(t,r){if(186===t.invocation.kind){var n=t.invocation.expression,i=e.isIdentifier(n)?n:e.isPropertyAccessExpression(n)?n.name:void 0;if(i&&i.escapedText)for(var a=r.getTypeChecker(),s=0,c=r.getSourceFiles();s<c.length;s++){var u=c[s],l=u.getNamedDeclarations(),_=l.get(i.text);if(_)for(var d=0,p=_;d<p.length;d++){var f=p[d],m=f.symbol;if(m){var g=a.getTypeOfSymbolAtLocation(m,f);if(g){var y=g.getCallSignatures();if(y&&y.length)return o(y,y[0],t,a)}}}}}}(u,t):void 0}}},t.getImmediatelyContainingArgumentInfo=r,t.getContainingArgumentInfo=i;var a=3121152;function o(t,r,n,i){var o=n.argumentCount,s=n.argumentsSpan,c=n.invocation,u=n.argumentIndex,l=0===n.kind,_=e.getInvokedExpression(c),d=i.getSymbolAtLocation(_),p=d&&e.symbolToDisplayParts(i,d,void 0,void 0),f=e.createPrinter({removeComments:!0}),m=e.map(t,function(t){var r,n,o=[],s=[];if(p&&e.addRange(o,p),l){n=!1,o.push(e.punctuationPart(27));var u=(t.target||t).typeParameters;r=u&&u.length>0?e.map(u,h):e.emptyArray,s.push(e.punctuationPart(29));var _=e.mapToDisplayParts(function(r){var n=t.thisParameter?[i.symbolToParameterDeclaration(t.thisParameter,c,a)]:[],o=e.createNodeArray(n.concat(e.map(t.parameters,function(e){return i.symbolToParameterDeclaration(e,c,a)})));f.writeList(1296,o,e.getSourceFileOfNode(e.getParseTreeNode(c)),r)});e.addRange(s,_)}else{n=t.hasRestParameter;var d=e.mapToDisplayParts(function(r){if(t.typeParameters&&t.typeParameters.length){var n=e.createNodeArray(e.map(t.typeParameters,function(e){return i.typeParameterToDeclaration(e,c)}));f.writeList(26896,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),r)}});e.addRange(o,d),o.push(e.punctuationPart(19)),r=e.map(t.parameters,y),s.push(e.punctuationPart(20))}var m=e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var r=i.getTypePredicateOfSignature(t);r?i.writeTypePredicate(r,c,void 0,e):i.writeType(i.getReturnTypeOfSignature(t),c,void 0,e)});return e.addRange(s,m),{isVariadic:n,prefixDisplayParts:o,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:r,documentation:t.getDocumentationComment(i),tags:t.getJsDocTags()}});0!==u&&e.Debug.assertLessThan(u,o);var g=t.indexOf(r);return e.Debug.assert(-1!==g),{items:m,applicableSpan:s,selectedItemIndex:g,argumentIndex:u,argumentCount:o};function y(t){var r=e.mapToDisplayParts(function(r){var n=i.symbolToParameterDeclaration(t,c,a);f.writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),r)});return{name:t.name,documentation:t.getDocumentationComment(i),displayParts:r,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function h(t){var r=e.mapToDisplayParts(function(r){var n=i.typeParameterToDeclaration(t,c);f.writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),r)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:r,isOptional:!1}}}}(e.SignatureHelp||(e.SignatureHelp={}))}(o||(o={})),function(e){function t(t){switch(t.kind){case 243:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&245===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 242:return t.name;default:return}}e.computeSuggestionDiagnostics=function(r,n){n.getSemanticDiagnostics(r);var i,a=n.getDiagnosticsProducingTypeChecker(),o=[];r.commonJsModuleIndicator&&o.push(e.createDiagnosticForNode((i=r.commonJsModuleIndicator,e.isBinaryExpression(i)?i.left:i),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var s=e.isSourceFileJavaScript(r);if(function t(r){switch(r.kind){case 233:case 191:if(s){var n=r.symbol;n.members&&n.members.size>0&&o.push(e.createDiagnosticForNode(e.isVariableDeclaration(r.parent)?r.parent.name:r,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}}!s&&e.codefix.parameterShouldGetTypeFromJSDoc(r)&&o.push(e.createDiagnosticForNode(r.name||r,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types)),r.forEachChild(t)}(r),e.getAllowSyntheticDefaultImports(n.getCompilerOptions()))for(var c=0,u=r.imports;c<u.length;c++){var l=u[c],_=t(e.importFromModuleSpecifier(l));if(_){var d=e.getResolvedModule(r,l.text),p=d&&n.getSourceFile(d.resolvedFileName);p&&p.externalModuleIndicator&&e.isExportAssignment(p.externalModuleIndicator)&&p.externalModuleIndicator.isExportEquals&&o.push(e.createDiagnosticForNode(_,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return o.concat(a.getSuggestionDiagnostics(r))}}(o||(o={})),function(e){!function(t){function r(t,r,i){var a=n(t,r,i);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(r);return 32&o?e.getDeclarationOfKind(r,204)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function n(t,r,n){var a=t.getRootSymbols(r);if(1===a.length&&8192&e.first(a).flags&&0!==t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(99===n.kind&&e.isExpression(n))return"parameter";var o=e.getCombinedLocalAndExportSymbolFlags(r);if(3&o)return e.isFirstDeclarationOfSymbolParameter(r)?"parameter":r.valueDeclaration&&e.isConst(r.valueDeclaration)?"const":e.forEach(r.declarations,e.isLet)?"let":i(r)?"local var":"var";if(16&o)return i(r)?"local function":"function";if(32768&o)return"getter";if(65536&o)return"setter";if(8192&o)return"method";if(16384&o)return"constructor";if(4&o){if(33554432&o&&6&r.checkFlags){var s=e.forEach(t.getRootSymbols(r),function(t){var r=t.getFlags();if(98311&r)return"property";e.Debug.assert(!!(8208&r))});return s||(t.getTypeOfSymbolAtLocation(r,n).getCallSignatures().length?"method":"property")}switch(n.parent&&n.parent.kind){case 256:case 254:case 255:return 71===n.kind?"property":"JSX attribute";case 261:return"JSX attribute";default:return"property"}}return""}function i(t){return!t.parent&&e.forEach(t.declarations,function(t){if(191===t.kind)return!0;if(231!==t.kind&&233!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(273===r.kind||239===r.kind)return!1;return!0})}t.getSymbolKind=r,t.getSymbolModifiers=function(t){var r=t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):"",n=t&&16777216&t.flags?"optional":"";return r&&n?r+","+n:r||n},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var _,d,p,f,m,g,y,h=[],v=e.getCombinedLocalAndExportSymbolFlags(a),b=n(i,a,c),x=99===c.kind&&e.isExpression(c);if(""!==b||32&v||2097152&v){"getter"!==b&&"setter"!==b||(b="property");var S=void 0;if(f=x?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&184===c.parent.kind){var k=c.parent.name;(k===c||k&&0===k.getFullWidth())&&(c=c.parent)}var D=void 0;if(e.isCallOrNewExpression(c)?D=c:e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)?D=c.parent:c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(a.valueDeclaration)&&(D=c.parent),D){S=i.getResolvedSignature(D,[]);var T=187===D.kind||e.isCallExpression(D)&&97===D.expression.kind,C=T?f.getConstructSignatures():f.getCallSignatures();if(e.contains(C,S.target)||e.contains(C,S)||(S=C.length?C[0]:void 0),S){switch(T&&32&v?(b="constructor",H(f.symbol,b)):2097152&v?(G(b="alias"),h.push(e.spacePart()),T&&(h.push(e.keywordPart(94)),h.push(e.spacePart())),W(a)):H(a,b),b){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(e.punctuationPart(56)),h.push(e.spacePart()),16&e.getObjectFlags(f)||!f.symbol||(e.addRange(h,e.symbolToDisplayParts(i,f.symbol,s,void 0,5)),h.push(e.lineBreakPart())),T&&(h.push(e.keywordPart(94)),h.push(e.spacePart())),X(S,C,262144);break;default:X(S,C)}p=!0}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&v)||123===c.kind&&154===c.parent.kind){var E=c.parent;e.find(a.declarations,function(e){return e===(123===c.kind?E.parent:E)})&&(C=154===E.kind?f.getNonNullableType().getConstructSignatures():f.getNonNullableType().getCallSignatures(),S=i.isImplementationOfOverload(E)?C[0]:i.getSignatureFromDeclaration(E),154===E.kind?(b="constructor",H(f.symbol,b)):H(157!==E.kind||2048&f.symbol.flags||4096&f.symbol.flags?a:f.symbol,b),X(S,C),p=!0)}}if(32&v&&!p&&!x&&(q(),e.getDeclarationOfKind(a,204)?G("local class"):h.push(e.keywordPart(75)),h.push(e.spacePart()),W(a),Q(a,o)),64&v&&2&u&&(U(),h.push(e.keywordPart(109)),h.push(e.spacePart()),W(a),Q(a,o)),524288&v&&(U(),h.push(e.keywordPart(139)),h.push(e.spacePart()),W(a),Q(a,o),h.push(e.spacePart()),h.push(e.operatorPart(58)),h.push(e.spacePart()),e.addRange(h,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&v&&(U(),e.forEach(a.declarations,e.isConstEnumDeclaration)&&(h.push(e.keywordPart(76)),h.push(e.spacePart())),h.push(e.keywordPart(83)),h.push(e.spacePart()),W(a)),1536&v){U();var N=(J=e.getDeclarationOfKind(a,238))&&J.name&&71===J.name.kind;h.push(e.keywordPart(N?130:129)),h.push(e.spacePart()),W(a)}if(262144&v&&2&u)if(U(),h.push(e.punctuationPart(19)),h.push(e.textPart("type parameter")),h.push(e.punctuationPart(20)),h.push(e.spacePart()),W(a),a.parent)V(),W(a.parent,s),Q(a.parent,s);else{var A=e.getDeclarationOfKind(a,147);e.Debug.assert(void 0!==A),(J=A.parent)&&(e.isFunctionLikeKind(J.kind)?(V(),S=i.getSignatureFromDeclaration(J),158===J.kind?(h.push(e.keywordPart(94)),h.push(e.spacePart())):157!==J.kind&&J.name&&W(J.symbol),e.addRange(h,e.signatureToDisplayParts(i,S,o,32))):236===J.kind&&(V(),h.push(e.keywordPart(139)),h.push(e.spacePart()),W(J.symbol),Q(J.symbol,o)))}if(8&v&&(b="enum member",H(a,"enum member"),272===(J=a.declarations[0]).kind)){var P=i.getConstantValue(J);void 0!==P&&(h.push(e.spacePart()),h.push(e.operatorPart(58)),h.push(e.spacePart()),h.push(e.displayPart(e.getTextOfConstantValue(P),"number"==typeof P?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&v){if(U(),!p){var w=i.getAliasedSymbol(a);if(w!==a&&w.declarations&&w.declarations.length>0){var F=w.declarations[0],O=e.getNameOfDeclaration(F);if(O){var I=e.isModuleWithStringLiteralName(F)&&e.hasModifier(F,2),M="default"!==a.name&&!I,L=t(i,w,e.getSourceFileOfNode(F),F,O,u,M?a:w);h.push.apply(h,L.displayParts),h.push(e.lineBreakPart()),g=L.documentation,y=L.tags}}}switch(a.declarations[0].kind){case 241:h.push(e.keywordPart(84)),h.push(e.spacePart()),h.push(e.keywordPart(130));break;case 248:h.push(e.keywordPart(84)),h.push(e.spacePart()),h.push(e.keywordPart(a.declarations[0].isExportEquals?58:79));break;default:h.push(e.keywordPart(91))}h.push(e.spacePart()),W(a),e.forEach(a.declarations,function(t){if(242===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))h.push(e.spacePart()),h.push(e.operatorPart(58)),h.push(e.spacePart()),h.push(e.keywordPart(133)),h.push(e.punctuationPart(19)),h.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),h.push(e.punctuationPart(20));else{var n=i.getSymbolAtLocation(r.moduleReference);n&&(h.push(e.spacePart()),h.push(e.operatorPart(58)),h.push(e.spacePart()),W(n,s))}return!0}})}if(!p)if(""!==b){if(f)if(x?(U(),h.push(e.keywordPart(99))):H(a,b),"property"===b||"JSX attribute"===b||3&v||"local var"===b||x)if(h.push(e.punctuationPart(56)),h.push(e.spacePart()),f.symbol&&262144&f.symbol.flags){var R=e.mapToDisplayParts(function(t){var r=i.typeParameterToDeclaration(f,s);K().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)});e.addRange(h,R)}else e.addRange(h,e.typeToDisplayParts(i,f,s));else(16&v||8192&v||16384&v||131072&v||98304&v||"method"===b)&&(C=f.getNonNullableType().getCallSignatures()).length&&X(C[0],C)}else b=r(i,a,c);if(!_&&(_=a.getDocumentationComment(i),d=a.getJsDocTags(),0===_.length&&4&v&&a.parent&&e.forEach(a.parent.declarations,function(e){return 273===e.kind})))for(var B=0,j=a.declarations;B<j.length;B++){var J;if((J=j[B]).parent&&199===J.parent.kind){var z=i.getSymbolAtLocation(J.parent.right);if(z&&(_=z.getDocumentationComment(i),d=z.getJsDocTags(),_.length>0))break}}return 0===_.length&&g&&(_=g),0===d.length&&y&&(d=y),{displayParts:h,documentation:_,symbolKind:b,tags:d};function K(){return m||(m=e.createPrinter({removeComments:!0})),m}function U(){h.length&&h.push(e.lineBreakPart()),q()}function q(){l&&(G("alias"),h.push(e.spacePart()))}function V(){h.push(e.spacePart()),h.push(e.keywordPart(92)),h.push(e.spacePart())}function W(t,r){l&&t===a&&(t=l);var n=e.symbolToDisplayParts(i,t,r||o,void 0,7);e.addRange(h,n),16777216&a.flags&&h.push(e.punctuationPart(55))}function H(t,r){U(),r&&(G(r),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(h.push(e.spacePart()),W(t)))}function G(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void h.push(e.textOrKeywordPart(t));default:return h.push(e.punctuationPart(19)),h.push(e.textOrKeywordPart(t)),void h.push(e.punctuationPart(20))}}function X(t,r,n){e.addRange(h,e.signatureToDisplayParts(i,t,s,32|n)),r.length>1&&(h.push(e.spacePart()),h.push(e.punctuationPart(19)),h.push(e.operatorPart(37)),h.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),h.push(e.spacePart()),h.push(e.textPart(2===r.length?"overload":"overloads")),h.push(e.punctuationPart(20))),_=t.getDocumentationComment(i),d=t.getJsDocTags()}function Q(t,r){var n=e.mapToDisplayParts(function(n){var a=i.symbolToTypeParameterDeclarations(t,r);K().writeList(26896,a,e.getSourceFileOfNode(e.getParseTreeNode(r)),n)});e.addRange(h,n)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(o||(o={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=r.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);r.moduleName&&(s.moduleName=r.moduleName),r.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(r.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=r):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],a,_);return r.reportDiagnostics&&(e.addRange(i,d.getSyntacticDiagnostics(s)),e.addRange(i,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,r.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}var r;function n(t,n){r=r||e.filter(e.optionDeclarations,function(t){return"object"===p(t.type)&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var i=function(r){if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,function(e){return e===i})||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a<o.length;a++){i(o[a])}return t}e.transpileModule=t,e.transpile=function(r,n,i,a,o){var s=t(r,{compilerOptions:n,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=n}(o||(o={})),function(e){!function(t){!function(e){e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"}(t.FormattingRequestKind||(t.FormattingRequestKind={}));var r=function(){function t(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}return t.prototype.updateContext=function(t,r,n,i,a){e.Debug.assert(void 0!==t,"currentTokenSpan is null"),e.Debug.assert(void 0!==r,"currentTokenParent is null"),e.Debug.assert(void 0!==n,"nextTokenSpan is null"),e.Debug.assert(void 0!==i,"nextTokenParent is null"),e.Debug.assert(void 0!==a,"commonParent is null"),this.currentTokenSpan=t,this.currentTokenParent=r,this.nextTokenSpan=n,this.nextTokenParent=i,this.contextNode=a,this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},t.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},t.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},t.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},t.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},t.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},t.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},t.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,17,this.sourceFile),n=e.findChildOfKind(t,18,this.sourceFile);return!(!r||!n)&&this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line},t}();t.FormattingContext=r}(e.formatting||(e.formatting={}))}(o||(o={})),function(e){!function(t){var r,n=e.createScanner(6,!1,0),i=e.createScanner(6,!1,1);!function(e){e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText"}(r||(r={})),t.getFormattingScanner=function(t,r,a,o,s){var c=1===r?i:n;c.setText(t),c.setTextPos(a);var u,l,_,d,p,f=!0,m=s({advance:function(){p=void 0,c.getStartPos()!==a?f=l&&4===e.lastOrUndefined(l).kind:c.scan(),u=void 0,l=void 0;for(var t=c.getStartPos();t<o;){var r=c.getToken();if(!e.isTrivia(r))break;c.scan();var n={pos:t,end:c.getStartPos(),kind:r};t=c.getStartPos(),u=e.append(u,n)}_=c.getStartPos()},readTokenInfo:function(t){e.Debug.assert(g());var r=function(e){switch(e.kind){case 31:case 66:case 67:case 47:case 46:return!0}return!1}(t)?1:12===t.kind?2:function(e){return 15===e.kind||16===e.kind}(t)?3:function(t){if(t.parent)switch(t.parent.kind){case 261:case 256:case 257:case 255:return e.isKeyword(t.kind)||71===t.kind}return!1}(t)?4:10===t.kind?5:0;if(p&&r===d)return y(p,t);c.getStartPos()!==_&&(e.Debug.assert(void 0!==p),c.setTextPos(_),c.scan());var n=function(t,r){var n,i=c.getToken();switch(d=0,r){case 1:if(29===i){d=1;var a=c.reScanGreaterToken();return e.Debug.assert(t.kind===a),a}break;case 2:if(41===(n=i)||63===n){d=2;var a=c.reScanSlashToken();return e.Debug.assert(t.kind===a),a}break;case 3:if(18===i)return d=3,c.reScanTemplateToken();break;case 4:return d=4,c.scanJsxIdentifier();case 5:return d=5,c.reScanJsxToken();case 0:break;default:e.Debug.assertNever(r)}return i}(t,r),i={pos:c.getStartPos(),end:c.getTextPos(),kind:n};for(l&&(l=void 0);c.getStartPos()<o&&(n=c.scan(),e.isTrivia(n));){var a={pos:c.getStartPos(),end:c.getTextPos(),kind:n};if(l||(l=[]),l.push(a),4===n){c.scan();break}}return y(p={leadingTrivia:u,trailingTrivia:l,token:i},t)},isOnToken:g,getCurrentLeadingTrivia:function(){return u},lastTrailingTriviaWasNewLine:function(){return f},skipToEndOf:function(e){c.setTextPos(e.end),_=c.getStartPos(),d=void 0,p=void 0,f=!1,u=void 0,l=void 0}});return p=void 0,c.setText(void 0),m;function g(){var t=p?p.token.kind:c.getToken();return(p?p.token.pos:c.getStartPos())<o&&1!==t&&!e.isTrivia(t)}function y(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}}}(e.formatting||(e.formatting={}))}(o||(o={})),function(e){!function(t){t.anyContext=e.emptyArray,function(e){e[e.Ignore=1]="Ignore",e[e.Space=2]="Space",e[e.NewLine=4]="NewLine",e[e.Delete=8]="Delete"}(t.RuleAction||(t.RuleAction={})),function(e){e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines"}(t.RuleFlags||(t.RuleFlags={}))}(e.formatting||(e.formatting={}))}(o||(o={})),function(e){!function(t){function r(e,t,r,n,a,o){return void 0===o&&(o=0),{leftTokenRange:i(t),rightTokenRange:i(r),rule:{debugName:e,context:n,action:a,flags:o}}}function n(e){return{tokens:e,isSpecific:!0}}function i(t){return"number"==typeof t?n([t]):e.isArray(t)?n(t):t}function a(t,r,i){void 0===i&&(i=[]);for(var a=[],o=t;o<=r;o++)e.contains(i,o)||a.push(o);return n(a)}function o(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}}function s(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}}function c(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}}function u(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}}function l(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}}function _(e){return 219===e.contextNode.kind}function d(e){return!_(e)}function p(e){switch(e.contextNode.kind){case 199:case 200:case 170:case 207:case 251:case 247:case 160:case 168:case 169:return!0;case 181:case 236:case 242:case 231:case 148:case 272:case 151:case 150:return 58===e.currentTokenSpan.kind||58===e.nextTokenSpan.kind;case 220:case 147:return 92===e.currentTokenSpan.kind||92===e.nextTokenSpan.kind;case 221:return 144===e.currentTokenSpan.kind||144===e.nextTokenSpan.kind}return!1}function f(e){return!p(e)}function m(e){return!g(e)}function g(t){var r=t.contextNode.kind;return 151===r||150===r||148===r||231===r||e.isFunctionLikeKind(r)}function y(e){return 200===e.contextNode.kind||170===e.contextNode.kind}function h(e){return e.TokensAreOnSameLine()||k(e)}function v(e){return 179===e.contextNode.kind||176===e.contextNode.kind||function(e){return S(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function b(e){return k(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function x(e){return S(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function S(e){return D(e.contextNode)}function k(e){return D(e.nextTokenParent)}function D(e){if(A(e))return!0;switch(e.kind){case 212:case 240:case 183:case 239:return!0}return!1}function T(e){switch(e.contextNode.kind){case 233:case 153:case 152:case 155:case 156:case 157:case 191:case 154:case 192:case 235:return!0}return!1}function C(e){return!T(e)}function E(e){return 233===e.contextNode.kind||191===e.contextNode.kind}function N(e){return A(e.contextNode)}function A(e){switch(e.kind){case 234:case 204:case 235:case 237:case 165:case 238:case 249:case 250:case 243:case 246:return!0}return!1}function P(e){switch(e.currentTokenParent.kind){case 234:case 238:case 237:case 268:case 239:case 226:return!0;case 212:var t=e.currentTokenParent.parent;if(!t||192!==t.kind&&191!==t.kind)return!0}return!1}function w(e){switch(e.contextNode.kind){case 216:case 226:case 219:case 220:case 221:case 218:case 229:case 217:case 225:case 268:return!0;default:return!1}}function F(e){return 183===e.contextNode.kind}function O(e){return function(e){return 186===e.contextNode.kind}(e)||function(e){return 187===e.contextNode.kind}(e)}function I(e){return 26!==e.currentTokenSpan.kind}function M(e){return 22!==e.nextTokenSpan.kind}function L(e){return 192===e.contextNode.kind}function R(e){return e.TokensAreOnSameLine()&&10!==e.contextNode.kind}function B(e){return 254!==e.contextNode.kind&&258!==e.contextNode.kind}function j(e){return 264===e.contextNode.kind||263===e.contextNode.kind}function J(e){return 261===e.nextTokenParent.kind}function z(e){return 261===e.contextNode.kind}function K(e){return 255===e.contextNode.kind}function U(e){return!T(e)&&!k(e)}function q(e){return e.TokensAreOnSameLine()&&e.contextNode.decorators&&V(e.currentTokenParent)&&!V(e.nextTokenParent)}function V(t){for(;e.isExpressionNode(t);)t=t.parent;return 149===t.kind}function W(e){return 232===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function H(e){return 2!==e.formattingRequestKind}function G(e){return 238===e.contextNode.kind}function X(e){return 165===e.contextNode.kind}function Q(e){return 158===e.contextNode.kind}function Y(e,t){if(27!==e.kind&&29!==e.kind)return!1;switch(t.kind){case 161:case 189:case 236:case 234:case 204:case 235:case 233:case 191:case 192:case 153:case 152:case 157:case 158:case 186:case 187:case 206:return!0;default:return!1}}function $(e){return Y(e.currentTokenSpan,e.currentTokenParent)||Y(e.nextTokenSpan,e.nextTokenParent)}function Z(e){return 189===e.contextNode.kind}function ee(e){return 105===e.currentTokenSpan.kind&&195===e.currentTokenParent.kind}function te(e){return 202===e.contextNode.kind&&void 0!==e.contextNode.expression}function re(e){return 208===e.contextNode.kind}t.getAllRules=function(){for(var i=[],S=0;S<=144;S++)i.push(S);function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:i.filter(function(t){return!e.some(function(e){return e===t})}),isSpecific:!1}}var A={tokens:i,isSpecific:!1},V=n(i.concat([3])),Y=a(72,144),ne=a(27,70),ie=[92,93,144,118,127],ae=[71].concat(e.typeKeywords),oe=V,se=n([71,3,75,84,91]),ce=n([20,3,81,102,87,82]),ue=[r("IgnoreBeforeComment",A,[2,3],t.anyContext,1),r("IgnoreAfterLineComment",2,A,t.anyContext,1),r("NotSpaceBeforeColon",A,56,[R,f,m],8),r("SpaceAfterColon",56,A,[R,f],2),r("NoSpaceBeforeQuestionMark",A,55,[R,f],8),r("SpaceAfterQuestionMarkInConditionalOperator",55,A,[R,y],2),r("NoSpaceAfterQuestionMark",55,A,[R],8),r("NoSpaceBeforeDot",A,23,[R],8),r("NoSpaceAfterDot",23,A,[R],8),r("NoSpaceAfterUnaryPrefixOperator",[43,44,52,51],[8,71,19,21,17,99,94],[R,f],8),r("NoSpaceAfterUnaryPreincrementOperator",43,[71,19,99,94],[R],8),r("NoSpaceAfterUnaryPredecrementOperator",44,[71,19,99,94],[R],8),r("NoSpaceBeforeUnaryPostincrementOperator",[71,20,22,94],43,[R],8),r("NoSpaceBeforeUnaryPostdecrementOperator",[71,20,22,94],44,[R],8),r("SpaceAfterPostincrementWhenFollowedByAdd",43,37,[R,p],2),r("SpaceAfterAddWhenFollowedByUnaryPlus",37,37,[R,p],2),r("SpaceAfterAddWhenFollowedByPreincrement",37,43,[R,p],2),r("SpaceAfterPostdecrementWhenFollowedBySubtract",44,38,[R,p],2),r("SpaceAfterSubtractWhenFollowedByUnaryMinus",38,38,[R,p],2),r("SpaceAfterSubtractWhenFollowedByPredecrement",38,44,[R,p],2),r("NoSpaceAfterCloseBrace",18,[26,25],[R],8),r("NewLineBeforeCloseBraceInBlockContext",V,18,[x],4),r("SpaceAfterCloseBrace",18,D(20),[R,P],2),r("SpaceBetweenCloseBraceAndElse",18,82,[R],2),r("SpaceBetweenCloseBraceAndWhile",18,106,[R],2),r("NoSpaceBetweenEmptyBraceBrackets",17,18,[R,F],8),r("SpaceAfterConditionalClosingParen",20,21,[w],2),r("NoSpaceBetweenFunctionKeywordAndStar",89,39,[E],8),r("SpaceAfterStarInGeneratorDeclaration",39,[71,19],[E],2),r("SpaceAfterFunctionInFuncDecl",89,A,[T],2),r("NewLineAfterOpenBraceInBlockContext",17,A,[x],4),r("SpaceAfterGetSetInMember",[125,136],71,[T],2),r("NoSpaceBetweenYieldKeywordAndStar",116,39,[R,te],8),r("SpaceBetweenYieldOrYieldStarAndOperand",[116,39],A,[R,te],2),r("NoSpaceBetweenReturnAndSemicolon",96,25,[R],8),r("SpaceAfterCertainKeywords",[104,100,94,80,96,103,121],A,[R],2),r("SpaceAfterLetConstInVariableDeclaration",[110,76],A,[R,W],2),r("NoSpaceBeforeOpenParenInFuncCall",A,19,[R,O,I],8),r("SpaceBeforeBinaryKeywordOperator",A,ie,[R,p],2),r("SpaceAfterBinaryKeywordOperator",ie,A,[R,p],2),r("SpaceAfterVoidOperator",105,A,[R,ee],2),r("SpaceBetweenAsyncAndOpenParen",120,19,[L,R],2),r("SpaceBetweenAsyncAndFunctionKeyword",120,89,[R],2),r("NoSpaceBetweenTagAndTemplateString",71,[13,14],[R],8),r("SpaceBeforeJsxAttribute",A,71,[J,R],2),r("SpaceBeforeSlashInJsxOpeningElement",A,41,[K,R],2),r("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",41,29,[K,R],8),r("NoSpaceBeforeEqualInJsxAttribute",A,58,[z,R],8),r("NoSpaceAfterEqualInJsxAttribute",58,A,[z,R],8),r("NoSpaceAfterModuleImport",[129,133],19,[R],8),r("SpaceAfterCertainTypeScriptKeywords",[117,75,124,79,83,84,85,125,108,91,109,129,130,112,114,113,132,136,115,139,142,128,126],A,[R],2),r("SpaceBeforeCertainTypeScriptKeywords",A,[85,108,142],[R],2),r("SpaceAfterModuleName",9,17,[G],2),r("SpaceBeforeArrow",A,36,[R],2),r("SpaceAfterArrow",36,A,[R],2),r("NoSpaceAfterEllipsis",24,71,[R],8),r("NoSpaceAfterOptionalParameters",55,[20,26],[R,f],8),r("NoSpaceBetweenEmptyInterfaceBraceBrackets",17,18,[R,X],8),r("NoSpaceBeforeOpenAngularBracket",ae,27,[R,$],8),r("NoSpaceBetweenCloseParenAndAngularBracket",20,27,[R,$],8),r("NoSpaceAfterOpenAngularBracket",27,A,[R,$],8),r("NoSpaceBeforeCloseAngularBracket",A,29,[R,$],8),r("NoSpaceAfterCloseAngularBracket",29,[19,21,29,26],[R,$,C],8),r("SpaceBeforeAt",[20,71],57,[R],2),r("NoSpaceAfterAt",57,A,[R],8),r("SpaceAfterDecorator",A,[117,71,84,79,75,115,114,112,113,125,136,21,39],[q],2),r("NoSpaceBeforeNonNullAssertionOperator",A,51,[R,re],8),r("NoSpaceAfterNewKeywordOnConstructorSignature",94,19,[R,Q],8)],le=[r("SpaceAfterConstructor",123,19,[o("insertSpaceAfterConstructor"),R],2),r("NoSpaceAfterConstructor",123,19,[c("insertSpaceAfterConstructor"),R],8),r("SpaceAfterComma",26,A,[o("insertSpaceAfterCommaDelimiter"),R,B,M],2),r("NoSpaceAfterComma",26,A,[c("insertSpaceAfterCommaDelimiter"),R,B],8),r("SpaceAfterAnonymousFunctionKeyword",89,19,[o("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),T],2),r("NoSpaceAfterAnonymousFunctionKeyword",89,19,[c("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),T],8),r("SpaceAfterKeywordInControl",Y,19,[o("insertSpaceAfterKeywordsInControlFlowStatements"),w],2),r("NoSpaceAfterKeywordInControl",Y,19,[c("insertSpaceAfterKeywordsInControlFlowStatements"),w],8),r("SpaceAfterOpenParen",19,A,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),R],2),r("SpaceBeforeCloseParen",A,20,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),R],2),r("SpaceBetweenOpenParens",19,19,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),R],2),r("NoSpaceBetweenParens",19,20,[R],8),r("NoSpaceAfterOpenParen",19,A,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),R],8),r("NoSpaceBeforeCloseParen",A,20,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),R],8),r("SpaceAfterOpenBracket",21,A,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),R],2),r("SpaceBeforeCloseBracket",A,22,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),R],2),r("NoSpaceBetweenBrackets",21,22,[R],8),r("NoSpaceAfterOpenBracket",21,A,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),R],8),r("NoSpaceBeforeCloseBracket",A,22,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),R],8),r("SpaceAfterOpenBrace",17,A,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v],2),r("SpaceBeforeCloseBrace",A,18,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v],2),r("NoSpaceBetweenEmptyBraceBrackets",17,18,[R,F],8),r("NoSpaceAfterOpenBrace",17,A,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),R],8),r("NoSpaceBeforeCloseBrace",A,18,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),R],8),r("SpaceAfterTemplateHeadAndMiddle",[14,15],A,[o("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),R],2),r("SpaceBeforeTemplateMiddleAndTail",A,[15,16],[o("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),R],2),r("NoSpaceAfterTemplateHeadAndMiddle",[14,15],A,[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),R],8),r("NoSpaceBeforeTemplateMiddleAndTail",A,[15,16],[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),R],8),r("SpaceAfterOpenBraceInJsxExpression",17,A,[o("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),R,j],2),r("SpaceBeforeCloseBraceInJsxExpression",A,18,[o("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),R,j],2),r("NoSpaceAfterOpenBraceInJsxExpression",17,A,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),R,j],8),r("NoSpaceBeforeCloseBraceInJsxExpression",A,18,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),R,j],8),r("SpaceAfterSemicolonInFor",25,A,[o("insertSpaceAfterSemicolonInForStatements"),R,_],2),r("NoSpaceAfterSemicolonInFor",25,A,[c("insertSpaceAfterSemicolonInForStatements"),R,_],8),r("SpaceBeforeBinaryOperator",A,ne,[o("insertSpaceBeforeAndAfterBinaryOperators"),R,p],2),r("SpaceAfterBinaryOperator",ne,A,[o("insertSpaceBeforeAndAfterBinaryOperators"),R,p],2),r("NoSpaceBeforeBinaryOperator",A,ne,[c("insertSpaceBeforeAndAfterBinaryOperators"),R,p],8),r("NoSpaceAfterBinaryOperator",ne,A,[c("insertSpaceBeforeAndAfterBinaryOperators"),R,p],8),r("SpaceBeforeOpenParenInFuncDecl",A,19,[o("insertSpaceBeforeFunctionParenthesis"),R,T],2),r("NoSpaceBeforeOpenParenInFuncDecl",A,19,[c("insertSpaceBeforeFunctionParenthesis"),R,T],8),r("NewLineBeforeOpenBraceInControl",ce,17,[o("placeOpenBraceOnNewLineForControlBlocks"),w,b],4,1),r("NewLineBeforeOpenBraceInFunction",oe,17,[o("placeOpenBraceOnNewLineForFunctions"),T,b],4,1),r("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",se,17,[o("placeOpenBraceOnNewLineForFunctions"),N,b],4,1),r("SpaceAfterTypeAssertion",29,A,[o("insertSpaceAfterTypeAssertion"),R,Z],2),r("NoSpaceAfterTypeAssertion",29,A,[c("insertSpaceAfterTypeAssertion"),R,Z],8),r("SpaceBeforeTypeAnnotation",A,56,[o("insertSpaceBeforeTypeAnnotation"),R,g],2),r("NoSpaceBeforeTypeAnnotation",A,56,[c("insertSpaceBeforeTypeAnnotation"),R,g],8)],_e=[r("NoSpaceBeforeSemicolon",A,25,[R],8),r("SpaceBeforeOpenBraceInControl",ce,17,[u("placeOpenBraceOnNewLineForControlBlocks"),w,H,h],2,1),r("SpaceBeforeOpenBraceInFunction",oe,17,[u("placeOpenBraceOnNewLineForFunctions"),T,k,H,h],2,1),r("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",se,17,[u("placeOpenBraceOnNewLineForFunctions"),N,H,h],2,1),r("NoSpaceBeforeComma",A,26,[R],8),r("NoSpaceBeforeOpenBracket",D(120,73),21,[R],8),r("NoSpaceAfterCloseBracket",22,A,[R,U],8),r("SpaceAfterSemicolon",25,A,[R],2),r("SpaceBetweenForAndAwaitKeyword",88,121,[R],2),r("SpaceBetweenStatements",[20,81,82,73],A,[R,B,d],2),r("SpaceAfterTryFinally",[102,87],17,[R],2)];return ue.concat(le,_e)}}(e.formatting||(e.formatting={}))}(o||(o={})),function(e){!function(t){var r;function n(t,r){return e.Debug.assert(t<=144&&r<=144,"Must compute formatting context from tokens"),t*s+r}t.getFormatContext=function(i){return{options:i,getRule:(void 0===r&&(a=t.getAllRules(),o=function(e){for(var t=new Array(s*s),r=new Array(t.length),i=0,a=e;i<a.length;i++)for(var o=a[i],u=o.leftTokenRange.isSpecific&&o.rightTokenRange.isSpecific,l=0,_=o.leftTokenRange.tokens;l<_.length;l++)for(var d=_[l],p=0,f=o.rightTokenRange.tokens;p<f.length;p++){var m=f[p],g=n(d,m),y=t[g];void 0===y&&(y=t[g]=[]),c(y,o.rule,u,r,g)}return t}(a),r=function(t){var r=o[n(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];return r&&e.find(r,function(r){return e.every(r.context,function(e){return e(t)})})}),r)};var a,o};var i,a=5,o=31,s=145;function c(r,n,s,c,u){var l,_,d,p=1===n.action?s?i.IgnoreRulesSpecific:i.IgnoreRulesAny:n.context!==t.anyContext?s?i.ContextRulesSpecific:i.ContextRulesAny:s?i.NoContextRulesSpecific:i.NoContextRulesAny,f=c[u]||0;r.splice(function(e,t){for(var r=0,n=0;n<=t;n+=a)r+=e&o,e>>=a;return r}(f,p),0,n),c[u]=(d=1+((l=f)>>(_=p)&o),e.Debug.assert((d&o)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),l&~(o<<_)|d<<_)}!function(e){e[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*a]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*a]="ContextRulesSpecific",e[e.ContextRulesAny=3*a]="ContextRulesAny",e[e.NoContextRulesSpecific=4*a]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*a]="NoContextRulesAny"}(i||(i={}))}(e.formatting||(e.formatting={}))}(o||(o={})),function(e){!function(t){var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!u(t.parent,t);)t=t.parent;return t}function u(t,r){switch(t.kind){case 234:case 235:return e.rangeContainsRange(t.members,r);case 238:var n=t.body;return n&&239===n.kind&&e.rangeContainsRange(n.statements,r);case 273:case 212:case 239:return e.rangeContainsRange(t.statements,r);case 268:return e.rangeContainsRange(t.block.statements,r)}return!1}function l(t,r,n,i){return t?_({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function _(r,n,i,a){var o=function(t,r){return function n(i){var a=e.forEachChild(i,function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n});if(a){var o=n(a);if(o)return o}return i}(r)}(r,n);return t.getFormattingScanner(n.text,n.languageVariant,function(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,function(s){return d(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter(function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)})}function d(r,n,i,a,o,s,c,u,l){var _,d,f,m,g,y=s.options,h=s.getRule,v=new t.FormattingContext(l,c,y),b=[];if(o.advance(),o.isOnToken()){var x=l.getLineAndCharacterOfPosition(n.getStart(l)).line,S=x;n.decorators&&(S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,d,p){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd()))return;var f=T(i,s,d,p);var h=a;e.forEachChild(i,function(e){b(e,-1,i,f,s,c,!1)},function(t){!function(t,r,n,a){e.Debug.assert(e.isNodeArray(t));var s=function(e,t){switch(e.kind){case 154:case 233:case 191:case 153:case 152:case 192:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 186:case 187:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 161:if(e.typeArguments===t)return 27}return 0}(r,t),c=function(e){switch(e){case 19:return 20;case 27:return 29}return 0}(s),u=a,_=n;if(0!==s)for(;o.isOnToken();){var d=o.readTokenInfo(r);if(d.token.end>t.pos)break;if(d.token.kind===s){_=l.getLineAndCharacterOfPosition(d.token.pos).line;var p=D(d.token,_,-1,r,a,n);u=T(r,n,p.indentation,p.delta),x(d,r,u,r)}else x(d,r,a,r)}for(var f=-1,m=0;m<t.length;m++){var g=t[m];f=b(g,f,i,u,_,_,!0,0===m)}if(0!==c&&o.isOnToken()){var d=o.readTokenInfo(r);d.token.kind===c&&e.rangeContainsRange(r,d.token)&&x(d,r,u,r)}}(t,i,s,f)});for(;o.isOnToken();){var v=o.readTokenInfo(i);if(v.token.end>i.end)break;x(v,i,f,i)}function b(a,s,c,u,_,d,p,f){var m=a.getStart(l),g=l.getLineAndCharacterOfPosition(m).line,v=g;a.decorators&&(v=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var b=-1;if(p&&e.rangeContainsRange(r,c)&&-1!==(b=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,y);if(s!==i||r===u){var _=t.SmartIndenter.getBaseIndentation(y);return _>u?_:u}}return-1}(m,a.end,_,r,s))&&(s=b),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.end<r.pos&&o.skipToEndOf(a),s;if(0===a.getFullWidth())return s;for(;o.isOnToken();){var S=o.readTokenInfo(i);if(S.token.end>m)break;x(S,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)&&10!==a.kind){var S=o.readTokenInfo(a);return e.Debug.assert(S.token.end===a.end,"Token end is child end"),x(S,i,u,a),s}var k=149===a.kind?g:d,T=D(a,g,b,i,u,k);if(n(a,h,g,v,T.indentation,T.delta),10===a.kind){var C={pos:a.getStart(),end:a.getEnd()};A(C,T.indentation,!0,!1)}return h=i,f&&182===c.kind&&-1===s&&(s=T.indentation),s}function x(t,n,i,a){e.Debug.assert(e.rangeContainsRange(n,t.token));var s=o.lastTrailingTriviaWasNewLine(),c=!1;t.leadingTrivia&&C(t.leadingTrivia,n,h,i);var d=0,p=e.rangeContainsRange(r,t.token),f=l.getLineAndCharacterOfPosition(t.token.pos);if(p){var y=u(t.token),v=_;if(d=E(t.token,f,n,h,i),!y)if(0===d){var b=v&&l.getLineAndCharacterOfPosition(v.end).line;c=s&&f.line!==b}else c=1===d}if(t.trailingTrivia&&C(t.trailingTrivia,n,h,i),c){var x=p&&!u(t.token)?i.getIndentationForToken(f.line,t.token.kind,a):-1,S=!0;if(t.leadingTrivia)for(var k=i.getIndentationForComment(t.token.kind,x,a),D=0,T=t.leadingTrivia;D<T.length;D++){var P=T[D],w=e.rangeContainsRange(r,P);switch(P.kind){case 3:w&&A(P,k,!S),S=!1;break;case 2:S&&w&&N(P.pos,k,!1),S=!1;break;case 4:S=!0}}-1!==x&&S&&(N(t.token.pos,x,1===d),m=f.line,g=x)}o.advance(),h=n}}(n,n,x,S,i,a)}if(!o.isOnToken()){var k=o.getCurrentLeadingTrivia();k&&(C(k,n,n,void 0),function(){var e=_?_.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;P(t,n+1,_)}())}return b;function D(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(y,e)?y.indentSize:0;return o===r?{indentation:r===m?g:a.getIndentation(),delta:Math.min(y.indentSize,a.getDelta(e)+s)}:-1===n?19===e.kind&&r===m?{indentation:g,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}function T(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 18:case 22:case 20:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s){return function(t,i,a){switch(i){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return!1;case 41:case 29:switch(a.kind){case 256:case 257:case 255:return!1}break;case 21:case 22:if(176!==a.kind)return!1}return n!==t&&!(r.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 234:return 75;case 235:return 109;case 233:return 89;case 237:return 237;case 155:return 125;case 156:return 136;case 153:if(t.asteriskToken)return 39;case 151:case 148:return e.getNameOfDeclaration(t).kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e){r.parent&&t.SmartIndenter.shouldIndentChildNode(y,r.parent,r,l)&&(i+=e?y.indentSize:-y.indentSize,a=t.SmartIndenter.shouldIndentChildNode(y,r)?y.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(y,r,e,l,!0)?a:0}}function C(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];if(e.isComment(c.kind)&&e.rangeContainsRange(r,c))E(c,l.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function E(t,n,i,a,o){var s=0;u(t)||(_?s=function(t,r,n,i,a,o,s,c){v.updateContext(i,o,t,n,s);var u,_=h(v),d=0;if(_){switch(d=function(e,t,r,n,i){var a=i!==r;switch(e.action){case 1:return 0;case 8:if(t.end!==n.pos)return F(t.end,n.pos-t.end),a?2:0;break;case 4:if(1!==e.flags&&r!==i)return 0;var o=i-r;if(1!==o)return O(t.end,n.pos-t.end,y.newLineCharacter),a?0:1;break;case 2:if(1!==e.flags&&r!==i)return 0;var s=n.pos-t.end;if(1!==s||32!==l.text.charCodeAt(t.end))return O(t.end,n.pos-t.end," "),a?2:0}return 0}(_,i,a,t,r)){case 2:n.getStart(l)===t.pos&&c.recomputeIndentation(!1);break;case 1:n.getStart(l)===t.pos&&c.recomputeIndentation(!0);break;default:e.Debug.assert(0===d)}u=!(8&_.action)&&1!==_.flags}else u=!0;r!==a&&u&&P(a,r,i);return d}(t,n.line,i,_,f,d,a,o):P(l.getLineAndCharacterOfPosition(r.pos).line,n.line));return _=t,d=i,f=n.line,s}function N(t,r,n){var i=p(r,y);if(n)O(t,0,i);else{var a=l.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(a.line,l);(r!==function(e,t){for(var r=0,n=0;n<t;n++)9===l.text.charCodeAt(e+n)?r+=y.tabSize-r%y.tabSize:r++;return r}(o,a.character)||function(e,t){return e!==l.text.substr(t,e.length)}(i,o))&&O(o,a.character,i)}}function A(r,n,i,a){void 0===a&&(a=!0);var o,s=l.getLineAndCharacterOfPosition(r.pos).line,c=l.getLineAndCharacterOfPosition(r.end).line;if(s!==c){o=[];for(var u=r.pos,_=s;_<c;_++){var d=e.getEndLinePosition(_,l);o.push({pos:u,end:d}),u=e.getStartPositionOfLine(_+1,l)}a&&o.push({pos:u,end:r.end});var f=e.getStartPositionOfLine(s,l),m=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,o[0].pos,l,y);if(n!==m.column){var g=0;i&&(g=1,s++);for(var h=n-m.column,v=g;v<o.length;v++,s++){var b=e.getStartPositionOfLine(s,l),x=0===v?m:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(o[v].pos,o[v].end,l,y),S=x.column+h;if(S>0){var k=p(S,y);O(b,x.character,k)}else F(b,x.character)}}}else i||N(r.pos,n,!1)}function P(t,r,n){for(var i=t;i<r;i++){var a=e.getStartPositionOfLine(i,l),o=e.getEndLinePosition(i,l);if(!(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o)){var s=w(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),F(s,o+1-s))}}}function w(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function F(t,r){r&&b.push(e.createTextChangeFromStartLength(t,r,""))}function O(t,r,n){(r||n)&&b.push(e.createTextChangeFromStartLength(t,r,n))}}function p(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,_=void 0;return a||(a=[]),void 0===a[u]?a[u]=_=e.repeatString("\t",u):_=a[u],l?_+e.repeatString(" ",l):_}!function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return l(c(s(e,25,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,17,r);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return l(c(s(e,18,t)),t,r,5)},t.formatDocument=function(e,t){return _({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return _({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,function(t){return d(s,e,i,a,t,o,1,function(e){return!1},r)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i,a,o){if(void 0===a&&(a=e.getTokenAtPosition(t,r,!1)),!(a.getStart(t)<=r&&r<a.getEnd())){void 0===i&&(i=e.findPrecedingToken(r,t));var s=i&&e.getTrailingCommentRanges(t.text,i.end),c=e.getLeadingCommentRangesOfNode(a,t),u=s&&c?s.concat(c):s||c;if(u)for(var l=0,_=u;l<_.length;l++){var d=_[l];if(d.pos<r&&r<d.end||r===d.end&&(2===d.kind||r===t.getFullWidth()))return 3!==d.kind&&n||o&&!o(d)?void 0:d}}},t.getIndentationString=p}(e.formatting||(e.formatting={}))}(o||(o={})),function(e){!function(t){!function(r){var n,i;function a(e){return e.baseIndentSize||0}function o(e,t,r,n,i,o,u){for(var l=e.parent;l;){var p=!0;if(r){var f=e.getStart(i);p=f<r.pos||f>r.end}if(p)if(-1!==(v=m(e,i,u)))return v+n;var y=s(l,e,i),h=y.line===t.line||d(l,e,t.line,i);if(p){var v;if(-1!==(v=c(e,l,t,h,i,u)))return v+n;if(-1!==(v=g(e,i,u)))return v+n}S(u,l,e,i,o)&&!h&&(n+=u.indentSize);var b=_(l,e,t.line,i);l=(e=l).parent,t=b?i.getLineAndCharacterOfPosition(e.getStart(i)):y}return n+a(u)}function s(e,t,r){var n=f(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(273===r.kind||!i)?h(n,a,o):-1}function u(t,r,n,i){var a=e.findNextToken(t,r);return a?17===a.kind?1:18===a.kind&&n===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function d(t,r,n,i){if(216===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,82,i);return e.Debug.assert(void 0!==a),l(a,i).line===n}return!1}function p(t,r,n){return t&&e.rangeContainsStartEnd(t,r,n)?t:void 0}function f(e,t){if(e.parent)switch(e.parent.kind){case 161:return p(e.parent.typeArguments,e.getStart(t),e.getEnd());case 183:return e.parent.properties;case 182:return e.parent.elements;case 233:case 191:case 192:case 153:case 152:case 157:case 154:case 163:case 158:var r=e.getStart(t);return p(e.parent.typeParameters,r,e.getEnd())||p(e.parent.parameters,r,e.getEnd());case 234:return p(e.parent.typeParameters,e.getStart(t),e.getEnd());case 187:case 186:r=e.getStart(t);return p(e.parent.typeArguments,r,e.getEnd())||p(e.parent.arguments,r,e.getEnd());case 232:return p(e.parent.declarations,e.getStart(t),e.getEnd());case 246:case 250:return p(e.parent.elements,e.getStart(t),e.getEnd())}}function m(e,t,r){var n=f(e,t);if(n){var i=n.indexOf(e);if(-1!==i)return y(n,i,t,r)}return-1}function g(t,r,n){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,a=function(e){for(;;)switch(e.kind){case 186:case 187:case 184:case 185:e=e.expression;break;default:return e}}(i);if(i===a)return-1;var o=r.getLineAndCharacterOfPosition(i.end),s=r.getLineAndCharacterOfPosition(a.end);return o.line===s.line?-1:h(o,r,n)}return-1}function y(t,r,n,i){e.Debug.assert(r>=0&&r<t.length);for(var a=l(t[r],n),o=r-1;o>=0;o--)if(26!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return h(a,n,i);a=l(t[o],n)}return-1}function h(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;s<r;s++){var c=n.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=i.tabSize+o%i.tabSize:o++,a++}return{column:o,character:a}}function b(e,t,r,n){return v(e,t,r,n).column}function x(t,r,n,i,a){var o=n?n.kind:0;switch(r.kind){case 231:case 269:case 183:if(!t.indentMultiLineObjectLiteralBeginningOnBlankLine&&i&&183===o)return function(t,r){var n=e.skipTrivia(t.text,r.pos),i=t.getLineAndCharacterOfPosition(n).line,a=t.getLineAndCharacterOfPosition(r.end).line;return i===a}(i,n);break;case 217:case 218:case 220:case 221:case 219:case 216:case 233:case 191:case 153:case 192:case 154:case 155:case 156:return 212!==o;case 249:return 250!==o;case 243:return 244!==o||!!n.namedBindings&&246!==n.namedBindings.kind;case 254:return 257!==o;case 258:return 260!==o}return a}function S(e,t,r,n,i){return void 0===i&&(i=!1),(function(e){switch(e){case 215:case 234:case 204:case 235:case 237:case 236:case 182:case 212:case 239:case 183:case 165:case 176:case 167:case 240:case 266:case 265:case 190:case 184:case 186:case 187:case 213:case 231:case 248:case 224:case 200:case 180:case 179:case 256:case 259:case 255:case 264:case 152:case 157:case 158:case 148:case 162:case 163:case 172:case 188:case 196:case 250:case 246:case 251:case 247:case 269:case 151:return!0}return!1}(t.kind)||x(e,t,r,n,!1))&&!(i&&r&&function(e,t){switch(e){case 224:case 228:if(212!==t.kind)return!0;var r=t.parent;return!(r&&191===r.kind||233===r.kind);case 222:case 223:return!0;default:return!1}}(r.kind,t))}!function(e){e[e.Unknown=-1]="Unknown"}(n||(n={})),r.getIndentation=function(r,n,i,s){if(void 0===s&&(s=!1),r>n.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n),_=t.getRangeOfEnclosingComment(n,r,!0,c||null);if(_)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),u=c.column,l=c.character;return 0===u?u:42===t.text.charCodeAt(s+l)?u-1:u}(n,r,i,_);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r<c.end)return 0;var d=n.getLineAndCharacterOfPosition(r).line;if(i.indentStyle===e.IndentStyle.Block)return function(t,r,n){for(var i=r;i>0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(26===c.kind&&199!==c.parent.kind){var p=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==p)return p}return function(t,r,n,i,s,c){for(var _,d=n;d;){if(e.positionBelongsToNode(d,r,t)&&S(c,d,_,t,!0)){var p=l(d,t),f=u(n,d,i,t),y=0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0;return o(d,p,void 0,y,t,!0,c)}var h=m(d,t,c);if(-1!==h)return h;if(-1!==(h=g(d,t,c)))return h+c.indentSize;_=d,d=d.parent}return a(c)}(n,r,c,d,s,i)},r.getIndentationForNode=function(e,t,r,n){return o(e,r.getLineAndCharacterOfPosition(e.getStart(r)),t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,r.childStartsOnTheSameLineWithElseInIfStatement=d,r.getContainingList=f,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=S}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(o||(o={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function i(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function a(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var o,s;function c(t,r){return e.skipTrivia(t,r,!1,!0)}function u(e,t,r,n){return{pos:l(e,t,n,o.Start),end:_(e,r,n)}}function l(t,r,n,i){if(n.useNonAdjustedStartPosition)return r.getStart(t);var a=r.getFullStart(),s=r.getStart(t);if(a===s)return s;var u=e.getLineStartPositionForPosition(a,t);if(e.getLineStartPositionForPosition(s,t)===u)return i===o.Start?s:a;var l=a>0?1:0,_=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,u)+l,t);return _=c(t.text,_),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_),t)}function _(t,r,n){if(n.useNonAdjustedEndPosition||e.isExpression(r))return r.getEnd();var i=r.getEnd(),a=e.skipTrivia(t.text,i,!0);return a!==i&&e.isLineBreak(t.text.charCodeAt(a-1))?a:i}function d(e,t){return t&&e.parent&&(26===t.kind||25===t.kind&&183===e.parent.kind)}!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start"}(o=t.Position||(t.Position={})),t.useNonAdjustedPositions={useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!0},function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(s||(s={}));var p,f=function(){function r(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.deletedNodesInLists=[],this.nodesInsertedAtClassStarts=e.createMap()}return r.fromContext=function(t){return new r(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},r.with=function(e,t){var n=r.fromContext(e);return t(n),n.getChanges()},r.prototype.deleteRange=function(e,t){return this.changes.push({kind:s.Remove,sourceFile:e,range:t}),this},r.prototype.deleteNode=function(e,t,r){void 0===r&&(r={});var n=l(e,t,r,o.FullStart),i=_(e,t,r);return this.deleteRange(e,{pos:n,end:i}),this},r.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={});var i=l(e,t,n,o.FullStart),a=_(e,r,n);return this.deleteRange(e,{pos:i,end:a}),this},r.prototype.deleteNodeInList=function(t,r){var n=e.formatting.SmartIndenter.getContainingList(r,t);if(!n)return e.Debug.fail("node is not a list element"),this;var i=e.indexOfNode(n,r);if(i<0)return this;if(1===n.length)return this.deleteNode(t,r),this;var a=e.getNodeId(r);if(e.Debug.assert(!this.deletedNodesInLists[a],"Deleting a node twice"),this.deletedNodesInLists[a]=!0,i!==n.length-1){var s=e.getTokenAtPosition(t,r.end,!1);if(s&&d(r,s)){var c=e.skipTrivia(t.text,l(t,r,{},o.FullStart),!1,!0),u=n[i+1],p=e.skipTrivia(t.text,l(t,u,{},o.FullStart),!1,!0);this.deleteRange(t,{pos:c,end:p})}}else{var f=n[i-1];if(this.deletedNodesInLists[e.getNodeId(f)]){var m=e.skipTrivia(t.text,l(t,r,{},o.FullStart),!1,!0),g=_(t,r,{});this.deleteRange(t,{pos:m,end:g})}else{var y=e.getTokenAtPosition(t,n[i-1].end,!1);y&&d(r,y)&&this.deleteNodeRange(t,y,r)}}return this},r.prototype.replaceRange=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r}),this},r.prototype.replaceNode=function(e,r,n,i){return void 0===i&&(i=t.useNonAdjustedPositions),this.replaceRange(e,u(e,r,r,i),n,i)},r.prototype.replaceNodeRange=function(e,r,n,i,a){void 0===a&&(a=t.useNonAdjustedPositions),this.replaceRange(e,u(e,r,n,a),i,a)},r.prototype.replaceRangeWithNodes=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({kind:s.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r}),this},r.prototype.replaceNodeWithNodes=function(e,r,n,i){return void 0===i&&(i=t.useNonAdjustedPositions),this.replaceRangeWithNodes(e,u(e,r,r,i),n,i)},r.prototype.replaceNodeRangeWithNodes=function(e,r,n,i,a){return void 0===a&&(a=t.useNonAdjustedPositions),this.replaceRangeWithNodes(e,u(e,r,n,a),i,a)},r.prototype.replacePropertyAssignment=function(e,t,r){return this.replaceNode(e,t,r,{suffix:","+this.newLineCharacter})},r.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createTextRange(r),n,i)},r.prototype.insertNodesAt=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:s.ReplaceWithMultipleNodes,sourceFile:e,options:n,nodes:r,range:{pos:t,end:t}})},r.prototype.insertNodeAtTopOfFile=function(t,r,n){var i=function(t){var r=t.text,n=e.getShebang(r),i=0;void 0!==n&&(i=n.length,u());var a=e.getLeadingCommentRanges(r,i);if(!a)return i;a.length&&3===a[0].kind&&e.isPinnedComment(r,a[0].pos)&&(i=a[0].end,u(),a=a.slice(1));for(var o=0,s=a;o<s.length;o++){var c=s[o];if(2!==c.kind||!e.isRecognizedTripleSlashComment(r,c.pos,c.end))break;i=c.end,u()}return i;function u(){if(i<r.length){var t=r.charCodeAt(i);e.isLineBreak(t)&&++i<r.length&&13===t&&10===r.charCodeAt(i)&&i++}}}(t);this.insertNodeAt(t,i,r,{prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")})},r.prototype.insertNodeBefore=function(e,t,r,n){void 0===n&&(n=!1);var i=l(e,t,{},o.Start);return this.replaceRange(e,{pos:i,end:i},r,this.getOptionsForInsertNodeBefore(t,n))},r.prototype.insertModifierBefore=function(t,r,n){var i=n.getStart(t);this.replaceRange(t,{pos:i,end:i},e.createToken(r),{suffix:" "})},r.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=v(t,o),c=e.getTouchingToken(t,s?o:n,!1),u=""+(s?"":this.newLineCharacter)+t.text.slice(a,o)+"//"+i+this.newLineCharacter;this.insertText(t,c.getStart(t),u)},r.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:s.Text,sourceFile:e,range:t,text:r})},r.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createTextRange(r),n)},r.prototype.tryInsertTypeAnnotation=function(t,r,n){var i;if(e.isFunctionLike(r)){if(!(i=e.findChildOfKind(r,20,t))){if(!e.isArrowFunction(r))return;i=e.first(r.parameters)}}else i=231!==r.kind&&r.questionToken?r.questionToken:r.name;this.insertNodeAt(t,i.end,n,{prefix:": "})},r.prototype.insertTypeParameters=function(t,r,n){var i=(e.findChildOfKind(r,19,t)||e.first(r.parameters)).getStart(t);this.insertNodesAt(t,i,n,{prefix:"<",suffix:">"})},r.prototype.getOptionsForInsertNodeBefore=function(t,r){return e.isStatement(t)||e.isClassElement(t)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?{}:e.Debug.failBadSyntaxKind(t)},r.prototype.insertNodeAtConstructorStart=function(t,r,n){var i=e.firstOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeBefore(t,i,n):this.replaceConstructorBody(t,r,[n].concat(r.body.statements))},r.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,r.body.statements.concat([n]))},r.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.createBlock(n,!0))},r.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=l(t,r.getLastToken(),{},o.Start);this.replaceRange(t,{pos:i,end:i},n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},r.prototype.insertNodeAtClassStart=function(t,r,n){var i=e.firstOrUndefined(r.members);if(i)this.insertNodeBefore(t,i,n);else{var a=e.getNodeId(r).toString(),o=this.nodesInsertedAtClassStarts.get(a);o?(e.Debug.assert(o.sourceFile===t&&o.cls===r),o.members.push(n)):this.nodesInsertedAtClassStarts.set(a,{sourceFile:t,cls:r,members:[n]})}},r.prototype.insertNodeAfter=function(t,r,n){var i,a;i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&146===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createTextRange(r.end),e.createToken(25));var o=_(t,r,{});return this.replaceRange(t,e.createTextRange(o),n,this.getInsertNodeAfterOptions(r))},r.prototype.getInsertNodeAfterOptions=function(t){return e.isClassDeclaration(t)||e.isModuleDeclaration(t)?{prefix:this.newLineCharacter,suffix:this.newLineCharacter}:e.isStatement(t)||e.isClassOrTypeElement(t)?{suffix:this.newLineCharacter}:e.isVariableDeclaration(t)?{prefix:", "}:e.isPropertyAssignment(t)?{suffix:","+this.newLineCharacter}:e.isParameter(t)?{}:e.Debug.failBadSyntaxKind(t)},r.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),192===r.kind){var i=e.findChildOfKind(r,36,t),a=e.findChildOfKind(r,19,t);a?(this.insertNodesAt(t,a.getStart(t),[e.createToken(89),e.createIdentifier(n)],{joiner:" "}),this.deleteNode(t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"("),this.replaceRange(t,i,e.createToken(20))),212!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.createToken(17),e.createToken(96)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.createToken(25),e.createToken(18)],{joiner:" "}))}else{var o=e.findChildOfKind(r,191===r.kind?89:75,t).end;this.insertNodeAt(t,o,e.createIdentifier(n),{prefix:" "})}},r.prototype.insertNodeInListAfter=function(t,r,n){var i=e.formatting.SmartIndenter.getContainingList(r,t);if(!i)return e.Debug.fail("node is not a list element"),this;var a=e.indexOfNode(i,r);if(a<0)return this;var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end,!1);if(s&&d(r,s)){var u=e.getLineAndCharacterOfPosition(t,c(t.text,i[a+1].getFullStart())),l=e.getLineAndCharacterOfPosition(t,s.end),_=void 0,p=void 0;l.line===u.line?(p=s.end,_=function(e){for(var t="",r=0;r<e;r++)t+=" ";return t}(u.character-l.character)):p=e.getStartPositionOfLine(u.line,t);var f=""+e.tokenToString(s.kind)+t.text.substring(s.end,i[a+1].getStart(t));this.replaceRange(t,e.createTextRange(p,i[a+1].getStart(t)),n,{prefix:_,suffix:f})}}else{var m=r.getStart(t),g=e.getLineStartPositionForPosition(m,t),y=void 0,h=!1;if(1===i.length)y=26;else{var v=e.findPrecedingToken(r.pos,t);y=d(r,v)?v.kind:26,h=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==g}if(function(t,r){for(var n=r;n<t.length;){var i=t.charCodeAt(n);if(!e.isWhiteSpaceSingleLine(i))return 47===i;n++}return!1}(t.text,r.end)&&(h=!0),h){this.replaceRange(t,e.createTextRange(o),e.createToken(y));var b=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(g,m,t,this.formatContext.options),x=e.skipTrivia(t.text,o,!0,!1);x!==o&&e.isLineBreak(t.text.charCodeAt(x-1))&&x--,this.replaceRange(t,e.createTextRange(x),n,{indentation:b,prefix:this.newLineCharacter})}else this.replaceRange(t,e.createTextRange(o),n,{prefix:e.tokenToString(y)+" "})}return this},r.prototype.finishInsertNodeAtClassStart=function(){var t=this;this.nodesInsertedAtClassStarts.forEach(function(r){var n=r.sourceFile,i=r.cls,a=r.members,o=234===i.kind?e.updateClassDeclaration(i,i.decorators,i.modifiers,i.name,i.typeParameters,i.heritageClauses,a):e.updateClassExpression(i,i.modifiers,i.name,i.typeParameters,i.heritageClauses,a);t.replaceNode(n,i,o)})},r.prototype.getChanges=function(e){return this.finishInsertNodeAtClassStart(),p.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e)},r}();function m(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span))}return t}function g(t){var n=e.visitEachChild(t,g,e.nullTransformationContext,y,g),a=e.nodeIsSynthesized(n)?n:Object.create(n);return a.pos=r(t),a.end=i(t),a}function y(t,n,a,o,s){var c=e.visitNodes(t,n,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=r(t),u.end=i(t),u}t.ChangeTracker=f,function(t){t.getTextChangesFromChanges=function(t,r,n,i){return e.group(t,function(e){return e.sourceFile.path}).map(function(t){for(var a=t[0].sourceFile,o=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos}),c=function(t){e.Debug.assert(o[t].range.end<=o[t+1].range.pos,"Changes overlap",function(){return JSON.stringify(o[t].range)+" and "+JSON.stringify(o[t+1].range)})},u=0;u<o.length-1;u++)c(u);var l=o.map(function(t){return e.createTextChange(e.createTextSpanFromRange(t.range),function(t,r,n,i,a){if(t.kind===s.Remove)return"";if(t.kind===s.Text)return t.text;var o=t.options,c=void 0===o?{}:o,u=t.range.pos,l=function(t){return function(t,r,n,i,a,o,s){var c=i.indentation,u=i.prefix,l=i.delta,_=function(t,r,n){var i=new h(n),a="\n"===n?1:0;return e.createPrinter({newLine:a},i).writeNode(4,t,r,i),{text:i.getText(),node:g(t)}}(t,r,a),d=_.node,p=_.text;s&&s(d,p);var f=o.options,y=void 0!==c?c:e.formatting.SmartIndenter.getIndentation(n,r,f,u===a||e.getLineStartPositionForPosition(n,r)===n);void 0===l&&(l=e.formatting.SmartIndenter.shouldIndentChildNode(o.options,t)&&f.indentSize||0);var v={text:p,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},b=e.formatting.formatNodeGivenIndentation(d,v,r.languageVariant,y,l,o);return m(p,b)}(t,r,u,c,n,i,a)},_=t.kind===s.ReplaceWithMultipleNodes?t.nodes.map(function(t){return e.removeSuffix(l(t),n)}).join(t.options.joiner||n):l(t.node),d=c.preserveLeadingWhitespace||void 0!==c.indentation||e.getLineStartPositionForPosition(u,r)===u?_:_.replace(/^\s+/,"");return(c.prefix||"")+d+(c.suffix||"")}(t,a,r,n,i))});return{fileName:a.fileName,textChanges:l}})}}(p||(p={})),t.applyChanges=m;var h=function(){function t(t){var r=this;this.lastNonTriviaPosition=0,this.writer=e.createTextWriter(t),this.onEmitNode=function(e,t,i){t&&n(t,r.lastNonTriviaPosition),i(e,t),t&&a(t,r.lastNonTriviaPosition)},this.onBeforeEmitNodeArray=function(e){e&&n(e,r.lastNonTriviaPosition)},this.onAfterEmitNodeArray=function(e){e&&a(e,r.lastNonTriviaPosition)},this.onBeforeEmitToken=function(e){e&&n(e,r.lastNonTriviaPosition)},this.onAfterEmitToken=function(e){e&&a(e,r.lastNonTriviaPosition)}}return t.prototype.setLastNonTriviaPosition=function(t,r){if(r||!function(t){return e.skipTrivia(t,0)===t.length}(t)){this.lastNonTriviaPosition=this.writer.getTextPos();for(var n=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-n-1));)n++;this.lastNonTriviaPosition-=n}},t.prototype.write=function(e){this.writer.write(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeKeyword=function(e){this.writer.writeKeyword(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeOperator=function(e){this.writer.writeOperator(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writePunctuation=function(e){this.writer.writePunctuation(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeParameter=function(e){this.writer.writeParameter(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeProperty=function(e){this.writer.writeProperty(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeSpace=function(e){this.writer.writeSpace(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeStringLiteral=function(e){this.writer.writeStringLiteral(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeSymbol=function(e,t){this.writer.writeSymbol(e,t),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeTextOfNode=function(e,t){this.writer.writeTextOfNode(e,t)},t.prototype.writeLine=function(){this.writer.writeLine()},t.prototype.increaseIndent=function(){this.writer.increaseIndent()},t.prototype.decreaseIndent=function(){this.writer.decreaseIndent()},t.prototype.getText=function(){return this.writer.getText()},t.prototype.rawWrite=function(e){this.writer.rawWrite(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeLiteral=function(e){this.writer.writeLiteral(e),this.setLastNonTriviaPosition(e,!0)},t.prototype.getTextPos=function(){return this.writer.getTextPos()},t.prototype.getLine=function(){return this.writer.getLine()},t.prototype.getColumn=function(){return this.writer.getColumn()},t.prototype.getIndent=function(){return this.writer.getIndent()},t.prototype.isAtStartOfLine=function(){return this.writer.isAtStartOfLine()},t.prototype.clear=function(){this.writer.clear(),this.lastNonTriviaPosition=0},t}();function v(t,r){return!e.isInComment(t,r)&&!e.isInString(t,r)&&!e.isInTemplateString(t,r)}t.isValidLocationToAddComment=v}(e.textChanges||(e.textChanges={}))}(o||(o={})),function(e){!function(t){var r=e.createMultiMap(),n=e.createMap();function i(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)}function a(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}t.createCodeFixActionNoFixId=function(e,t,r){return a(e,i(r),t,void 0,void 0)},t.createCodeFixAction=function(e,t,r,n,o,s){return a(e,i(r),t,n,i(o),s)},t.registerCodeFix=function(t){for(var i=0,a=t.errorCodes;i<a.length;i++){var o=a[i];r.add(String(o),t)}if(t.fixIds)for(var s=0,c=t.fixIds;s<c.length;s++){var u=c[s];e.Debug.assert(!n.has(u)),n.set(u,t)}},t.getSupportedErrorCodes=function(){return e.arrayFrom(r.keys())},t.getFixes=function(t){return e.flatMap(r.get(String(t.errorCode))||e.emptyArray,function(e){return e.getCodeActions(t)})},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return function(e,t){return{changes:e,commands:t}}(e.textChanges.ChangeTracker.with(t,function(a){return function(t,r,n){for(var i=t.program,a=t.sourceFile,o=0,s=i.getSemanticDiagnostics(a).concat(e.computeSuggestionDiagnostics(a,i));o<s.length;o++){var c=s[o];e.contains(r,c.code)&&n(c)}}(t,r,function(e){return n(a,e,i)})}),0===i.length?void 0:i)}}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r=e.createMap();t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(t){return e.arrayFrom(e.flatMapIterator(r.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(t)}))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(e.refactor||(e.refactor={})),e.getRefactorContextLength=function(e){return void 0===e.endPosition?0:e.endPosition-e.startPosition}}(o||(o={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n,!1),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.createCall(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r,!1);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||231===t.kind||150===t.kind||151===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some(function(t){return!!e.getJSDocType(t)}))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,19,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.createToken(19));for(var o=0,s=n.parameters;o<s.length;o++){var u=s[o];if(!u.type){var l=e.getJSDocType(u);l&&t.tryInsertTypeAnnotation(r,u,c(l))}}if(a&&t.insertNodeAfter(r,e.last(n.parameters),e.createToken(20)),!n.type){var _=e.getJSDocReturnType(n);_&&t.tryInsertTypeAnnotation(r,n,c(_))}}else{var d=e.Debug.assertDefined(e.getJSDocType(n));e.Debug.assert(!n.type),t.tryInsertTypeAnnotation(r,n,c(d))}}function c(t){switch(t.kind){case 276:case 277:return e.createTypeReferenceNode("any",e.emptyArray);case 280:return function(t){return e.createUnionTypeNode([e.visitNode(t.type,c),e.createTypeReferenceNode("undefined",e.emptyArray)])}(t);case 279:return c(t.type);case 278:return function(t){return e.createUnionTypeNode([e.visitNode(t.type,c),e.createTypeReferenceNode("null",e.emptyArray)])}(t);case 282:return function(t){return e.createArrayTypeNode(e.visitNode(t.type,c))}(t);case 281:return function(t){return e.createFunctionTypeNode(e.emptyArray,t.parameters.map(u),t.type)}(t);case 161:return function(t){var r=t.typeName,n=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t))return function(t){var r=e.createParameter(void 0,void 0,void 0,134===t.typeArguments[0].kind?"n":"s",void 0,e.createTypeReferenceNode(134===t.typeArguments[0].kind?"number":"string",[]),void 0),n=e.createTypeLiteralNode([e.createIndexSignature(void 0,void 0,[r],t.typeArguments[1])]);return e.setEmitFlags(n,1),n}(t);var i=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}r=e.createIdentifier(i),n="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.createNodeArray([e.createTypeReferenceNode("any",e.emptyArray)])}return e.createTypeReferenceNode(r,n)}(t);default:var r=e.visitEachChild(t,c,void 0);return e.setEmitFlags(r,1),r}}function u(t){var r=t.parent.parameters.indexOf(t),n=282===t.type.kind&&r===t.parent.parameters.length-1,i=t.name||(n?"rest":"arg"+r),a=n?e.createToken(24):t.dotDotDotToken;return e.createParameter(t.decorators,t.modifiers,a,i,t.questionToken,e.visitNode(t.type,c),t.initializer)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=i(n.sourceFile,n.span.start);if(a){var o=e.textChanges.ChangeTracker.with(n,function(e){return s(e,n.sourceFile,a)});return[t.createCodeFixAction(r,o,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=i(t.file,t.start);r&&s(e,t.file,r)})}}),t.parameterShouldGetTypeFromJSDoc=a}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="convertFunctionToEs6Class",n=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(t,r,n,i){var s=[],c=i.getSymbolAtLocation(e.getTokenAtPosition(r,n,!1));if(c&&19&c.flags){var u,l,_=c.valueDeclaration;switch(_.kind){case 233:u=_,g(_),l=function(t){var r=y(c);t.body&&r.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body));var n=o(t,84);return e.createClassDeclaration(void 0,n,t.name,void 0,void 0,r)}(_);break;case 231:u=_.parent.parent,l=function(t){var r=t.initializer;if(!r||191!==r.kind)return;if(71!==t.name.kind)return;var n=y(r.symbol);r.body&&n.unshift(e.createConstructor(void 0,void 0,r.parameters,r.body));var i=o(u,84);return e.createClassDeclaration(void 0,i,t.name,void 0,void 0,n)}(_),1===_.parent.declarations.length?(a(u,l,r),g(u)):g(_,!0)}if(l){a(_,l,r),t.insertNodeAfter(r,u,l);for(var d=0,p=s;d<p.length;d++){var f=p[d],m=f.node;f.inList?t.deleteNodeInList(r,m):t.deleteNode(r,m)}}}function g(t,r){void 0===r&&(r=!1),s.some(function(r){return e.isNodeDescendantOf(t,r.node)})||s.push({node:t,inList:r})}function y(t){var n=[];return t.members&&t.members.forEach(function(e){var t=i(e,void 0);t&&n.push(t)}),t.exports&&t.exports.forEach(function(t){var r=i(t,[e.createToken(115)]);r&&n.push(r)}),n;function i(t,n){if(8192&t.flags){var i=t.valueDeclaration,s=i.parent;if(c=s.right,e.isFunctionLike(c)){var c;if(g(s.parent&&215===s.parent.kind?s.parent:s),!s.right)return e.createProperty([],n,t.name,void 0,void 0,void 0);switch(s.right.kind){case 191:var u=s.right,l=e.concatenate(n,o(u,120));return a(s,f=e.createMethod(void 0,l,void 0,i.name,void 0,void 0,u.parameters,void 0,u.body),r),f;case 192:var _=s.right,d=_.body,p=void 0;p=212===d.kind?d:e.createBlock([e.createReturn(d)]);var f;l=e.concatenate(n,o(_,120));return a(s,f=e.createMethod(void 0,l,void 0,i.name,void 0,void 0,_.parameters,void 0,p),r),f;default:if(e.isSourceFileJavaScript(r))return;var m=e.createProperty(void 0,n,i.name,void 0,void 0,s.right);return a(s.parent,m,r),m}}}}}}function a(t,r,n){e.forEachLeadingCommentRange(n.text,t.pos,function(t,i,a,o){3===a?(t+=2,i-=2):t+=2,e.addSyntheticLeadingComment(r,a,n.text.slice(t,i),o)})}function o(t,r){return e.filter(t.modifiers,function(e){return e.kind===r})}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker())});return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker())})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){function r(t,r,n){for(var i=0,a=t.imports;i<a.length;i++){var o=a[i],s=e.getResolvedModule(t,o.text);if(s&&s.resolvedFileName===r.fileName){var c=e.importFromModuleSpecifier(o);switch(c.kind){case 242:n.replaceNode(t,c,_(c.name,void 0,o));break;case 186:e.isRequireCall(c,!1)&&n.replaceNode(t,c,e.createPropertyAccess(e.getSynthesizedDeepClone(c),"default"))}}}}function n(t,r){t.forEachChild(function n(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i.expression)){var a=i.parent;r(i,e.isBinaryExpression(a)&&a.left===i&&58===a.operatorToken.kind)}i.forEachChild(n)})}function i(r,n,i,d,g,y,h){switch(n.kind){case 213:return function(r,n,i,a,o,c){var u=n.declarationList,d=!1,m=e.flatMap(u.declarations,function(n){var m=n.name,g=n.initializer;if(g){if(e.isExportsOrModuleExportsOrAlias(r,g))return d=!0,[];if(e.isRequireCall(g,!0))return d=!0,function(r,n,i,a,o,c,u){switch(n.kind){case 179:var l=e.mapAllOrFail(n.elements,function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:p(t.propertyName&&t.propertyName.text,t.name.text)});if(l)return[_(void 0,l,i)];case 180:var d=s(t.moduleSpecifierToValidIdentifier(i.text,u),c);return[_(e.createIdentifier(d),void 0,i),f(void 0,e.getSynthesizedDeepClone(n),e.createIdentifier(d))];case 71:return function(t,r,n,i,a,o){for(var c=a.getSymbolAtLocation(r),u=e.createMap(),l=!1,d=0,p=o.original.get(r.text);d<p.length;d++){var f=p[d];if(a.getSymbolAtLocation(f)===c&&f!==r){var m=f.parent;if(e.isPropertyAccessExpression(m)){var g=m.expression,y=m.name.text;e.Debug.assert(g===f);var h=u.get(y);void 0===h&&(h=s(y,o),u.set(y,h)),i.replaceNode(t,m,e.createIdentifier(h))}else l=!0}}var v=0===u.size?void 0:e.arrayFrom(e.mapIterator(u.entries(),function(t){var r=t[0],n=t[1];return e.createImportSpecifier(r===n?void 0:e.createIdentifier(r),e.createIdentifier(n))}));v||(l=!0);return[_(l?e.getSynthesizedDeepClone(r):void 0,v,n)]}(r,n,i,a,o,c);default:e.Debug.assertNever(n)}}(r,m,g.arguments[0],i,a,o,c);if(e.isPropertyAccessExpression(g)&&e.isRequireCall(g.expression,!0))return d=!0,function(t,r,n,i){switch(t.kind){case 179:case 180:var a=s(r,i);return[l(a,r,n),f(void 0,t,e.createIdentifier(a))];case 71:return[l(t.text,r,n)];default:e.Debug.assertNever(t)}}(m,g.name.text,g.expression.arguments[0],o)}return e.createVariableStatement(void 0,e.createVariableDeclarationList([n],u.flags))});d&&i.replaceNodeWithNodes(r,n,m)}(r,n,d,i,g,y),!1;case 215:var v=n.expression;switch(v.kind){case 186:return e.isRequireCall(v,!0)&&d.replaceNode(r,n,_(void 0,void 0,v.arguments[0])),!1;case 199:return 58===v.operatorToken.kind&&function(t,r,n,i,s){var l,_=n.left,d=n.right;if(!e.isPropertyAccessExpression(_))return!1;if(e.isExportsOrModuleExportsOrAlias(t,_)){if(!e.isExportsOrModuleExportsOrAlias(t,d)){var p=e.isObjectLiteralExpression(d)?(y=d,e.mapAllOrFail(y.properties,function(t){switch(t.kind){case 155:case 156:case 270:case 271:return;case 269:return e.isIdentifier(t.name)?function(t,r){var n=[e.createToken(84)];switch(r.kind){case 191:var i=r.name;if(i&&i.text!==t)return a();case 192:return c(t,n,r);case 204:return u(t,n,r);default:return a()}function a(){return f(n,e.createIdentifier(t),r)}}(t.name.text,t.initializer):void 0;case 153:return e.isIdentifier(t.name)?c(t.name.text,[e.createToken(84)],t):void 0;default:e.Debug.assertNever(t)}})):void 0,g=!1;return p||(l=function(t,r){var n=[e.createToken(84),e.createToken(79)];switch(t.kind){case 191:case 192:var i=t;return[[c(i.name&&i.name.text,n,i)],!0];case 204:var s=t;return[[u(s.name&&s.name.text,n,s)],!0];case 186:if(e.isRequireCall(t,!0))return function(t,r){var n=t.text,i=r.getSymbolAtLocation(t),s=i?i.exports:e.emptyUnderscoreEscapedMap;return s.has("export=")?[[o(n)],!0]:s.has("default")?s.size>1?[[a(n),o(n)],!0]:[[o(n)],!0]:[[a(n)],!1]}(t.arguments[0],r);default:return[[e.createExportAssignment(void 0,void 0,!1,t)],!0]}}(d,r),p=l[0],g=l[1]),i.replaceNodeWithNodes(t,n.parent,p),g}i.deleteNode(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,_.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[f(void 0,o,r.right),m([e.createExportSpecifier(o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,23,r),[e.createToken(84),e.createToken(76)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.createToken(84),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,25,r);c&&n.deleteNode(r,c,{useNonAdjustedEndPosition:!0})}}(r,t,n)}(t,n,i,s);var y;return!1}(r,i,v,d,h)}default:return!1}}function a(e){return m(void 0,e)}function o(t){return m([e.createExportSpecifier(void 0,"default")],t)}function s(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function c(t,r,n){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(n.body)))}function u(t,r,n){return e.createClassDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),e.getSynthesizedDeepClones(n.members))}function l(t,r,n){return"default"===r?_(e.createIdentifier(t),void 0,n):_(void 0,[p(r,t)],n)}function _(e,t,r){return d(e,t,r)}function d(t,r,n){var i=(t||r)&&e.createImportClause(t,r&&e.createNamedImports(r));return e.createImportDeclaration(void 0,void 0,i,n)}function p(t,r){return e.createImportSpecifier(void 0!==t&&t!==r?e.createIdentifier(t):void 0,e.createIdentifier(r))}function f(t,r,n){return e.createVariableStatement(t,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,n)],2))}function m(t,r){return e.createExportDeclaration(void 0,void 0,t&&e.createNamedExports(t),void 0===r?void 0:e.createLiteral(r))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(a){var o=a.sourceFile,c=a.program,u=e.textChanges.ChangeTracker.with(a,function(t){if(function(t,r,a,o){var c={original:(l=t,_=e.createMultiMap(),l.forEachChild(function t(r){e.isIdentifier(r)&&function(e){var t=e.parent;switch(t.kind){case 184:return t.name!==e;case 181:return t.propertyName!==e;default:return!0}}(r)&&_.add(r.text,r),r.forEachChild(t)}),_),additional:e.createMap()},u=function(t,r,i){var a=e.createMap();return n(t,function(t){var n=t.name,o=n.text,c=n.originalKeywordKind;!a.has(o)&&(void 0!==c&&e.isNonContextualKeyword(c)||r.resolveName(t.name.text,t,67216319,!0))&&a.set(o,s("_"+o,i))}),a}(t,r,c);var l,_;!function(t,r,i){n(t,function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.createIdentifier(r.get(o)||o))}})}(t,u,a);for(var d=!1,p=0,f=t.statements;p<f.length;p++){var m=f[p],g=i(t,m,r,a,c,o,u);d=d||g}return d}(o,c.getTypeChecker(),t,c.getCompilerOptions().target))for(var a=0,u=c.getSourceFiles();a<u.length;a++){r(u[a],o,t)}});return[t.createCodeFixActionNoFixId("convertToEs6Module",u,e.Diagnostics.Convert_to_ES6_module)]}}),t.makeImportDeclaration=d}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="correctQualifiedNameToIndexedAccessType",n=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function i(t,r){var n=e.findAncestor(e.getTokenAtPosition(t,r,!0),e.isQualifiedName);return e.Debug.assert(!!n,"Expected position to be owned by a qualified name."),e.isIdentifier(n.left)?n:void 0}function a(t,r,n){var i=n.right.text,a=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(n.left,void 0),e.createLiteralTypeNode(e.createLiteral(i)));t.replaceNode(r,n,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=i(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,o)}),c=o.left.text+'["'+o.right.text+'"]';return[t.createCodeFixAction(r,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,c],r,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],n="fixClassIncorrectlyImplementsInterface";function i(t,r){return e.Debug.assertDefined(e.getContainingClass(e.getTokenAtPosition(t,r,!1)))}function a(r,n,i,a,o,s){var c=r.getTypeAtLocation(n),u=r.getPropertiesOfType(c).filter(function(t){return!(8&e.getModifierFlags(t.valueDeclaration))}),l=r.getTypeAtLocation(a);function _(e,t){var n=r.getIndexInfoOfType(e,t);n&&o.insertNodeAtClassStart(i,a,r.indexInfoToIndexSignatureDeclaration(n,t,a))}l.getNumberIndexType()||_(c,1),l.getStringIndexType()||_(c,0),t.createMissingMemberNodes(a,u,r,s,function(e){return o.insertNodeAtClassStart(i,a,e)})}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.program,s=r.sourceFile,c=r.span,u=i(s,c.start),l=o.getTypeChecker();return e.mapDefined(e.getClassImplementsHeritageClauseElements(u),function(i){var o=e.textChanges.ChangeTracker.with(r,function(e){return a(l,i,s,u,e,r.preferences)});return 0===o.length?void 0:t.createCodeFixAction(n,o,[e.Diagnostics.Implement_interface_0,i.getText(s)],n,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[n],getAllCodeActions:function(n){var o=e.createMap();return t.codeFixAll(n,r,function(t,r){var s=i(r.file,r.start);if(e.addToSeen(o,e.getNodeId(s)))for(var c=0,u=e.getClassImplementsHeritageClauseElements(s);c<u.length;c++){var l=u[c];a(n.program.getTypeChecker(),l,r.file,s,t,n.preferences)}})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r,n=e.textChanges.ChangeTracker;function i(e,r,n){return t.createCodeFixActionNoFixId("import",n,[e].concat(r))}function a(t,r,n){var i=t.program,a=i.getTypeChecker();return{host:t.host,formatContext:t.formatContext,sourceFile:t.sourceFile,program:i,checker:a,compilerOptions:i.getCompilerOptions(),cachedImportDeclarations:[],getCanonicalFileName:e.createGetCanonicalFileName(e.hostUsesCaseSensitiveFileNames(t.host)),symbolName:n,symbolToken:r,preferences:t.preferences}}function o(t,r){var a=e.flatMap(t,function(t){return function(t,r,n,i){var a=t.moduleSymbol,o=t.importKind,s=n.imports;void 0===i&&(i=[]);var c=e.getUniqueSymbolId(a,r),u=i[c];u||(u=i[c]=e.mapDefined(s,function(t){var n=e.importFromModuleSpecifier(t);return 243!==n.kind&&242!==n.kind||r.getSymbolAtLocation(t)!==a?void 0:{declaration:n,importKind:o}}));return u}(t,r.checker,r.sourceFile,r.cachedImportDeclarations)});return(r.symbolToken&&e.isIdentifier(r.symbolToken)?e.mapDefined(a,function(t){var a=function(t){if(243===t.kind){var r=t.importClause&&e.isImportClause(t.importClause)&&t.importClause.namedBindings;return r&&245===r.kind?r.name:void 0}return t.name}(t.declaration);if(a){var o=r.checker.getAliasedSymbol(r.checker.getSymbolAtLocation(a));if(o&&o.exports.has(e.escapeLeadingUnderscores(r.symbolName)))return function(t,r,a){var o=r.symbolName,s=r.sourceFile,c=n.with(r,function(r){return r.replaceNode(s,a,e.createPropertyAccess(e.createIdentifier(t),a))});return i(e.Diagnostics.Change_0_to_1,[o,t+"."+o],c)}(a.text,r,r.symbolToken)}}):e.emptyArray).concat(function(t,r,a){var o=e.firstDefined(a,function(t){var a=t.declaration,o=t.importKind;if(243===a.kind&&a.importClause){var s=function(t,r,i){var a=t.symbolName,o=t.sourceFile,s=r.name,c=(242!==r.kind&&r).namedBindings;switch(i){case 1:return s?void 0:n.with(t,function(t){return t.replaceNode(o,r,e.createImportClause(e.createIdentifier(a),c))});case 0:var u=e.createImportSpecifier(void 0,e.createIdentifier(a));return c&&246===c.kind&&0!==c.elements.length?n.with(t,function(e){return e.insertNodeInListAfter(o,c.elements[c.elements.length-1],u)}):!c||246===c.kind&&0===c.elements.length?n.with(t,function(t){return t.replaceNode(o,r,e.createImportClause(s,e.createNamedImports([u])))}):void 0;case 2:return c?void 0:n.with(t,function(t){return t.replaceNode(o,r,e.createImportClause(s,e.createNamespaceImport(e.createIdentifier(a))))});case 3:return;default:e.Debug.assertNever(i)}}(r,e.isImportClause(a.importClause)&&a.importClause||void 0,o);if(s){var c=e.stripQuotes(a.moduleSpecifier.getText());return i(e.Diagnostics.Add_0_to_existing_import_declaration_from_1,[r.symbolName,c],s)}}});if(o)return[o];var c=e.firstDefined(a,p);return(c?[c]:s(r.program,r.sourceFile,t,r.compilerOptions,r.getCanonicalFileName,r.host,r.preferences)).map(function(t){return a=r,s=(o=t).moduleSpecifier,c=o.importKind,u=a.sourceFile,l=a.symbolName,_=a.preferences,d=e.findLast(u.statements,e.isAnyImportSyntax),p=e.stripQuotes(s),f=e.createLiteral(p,function(t,r){if(r.quotePreference)return"single"===r.quotePreference;var n=e.firstOrUndefined(t.imports);return!!n&&!e.isStringDoubleQuoted(n,t)}(u,_)),m=3!==c?e.createImportDeclaration(void 0,void 0,function(t,r){var n=e.createIdentifier(r);switch(t){case 1:return e.createImportClause(n,void 0);case 2:return e.createImportClause(void 0,e.createNamespaceImport(n));case 0:return e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,n)]));default:e.Debug.assertNever(t)}}(c,l),f):e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(l),e.createExternalModuleReference(f)),g=n.with(a,function(e){d?e.insertNodeAfter(u,d,m):e.insertNodeAtTopOfFile(u,m,!0)}),i(e.Diagnostics.Import_0_from_module_1,[l,p],g);var a,o,s,c,u,l,_,d,p,f,m,g})}(t,r,a))}function s(t,r,n,i,a,o,s){var p=i.baseUrl,f=i.paths,m=i.rootDirs,g=e.getEmitModuleResolutionKind(i),y=function(t){return e.firstDefined(t.imports,function(t){var r=t.text;return e.pathIsRelative(r)?e.fileExtensionIs(r,".js"):void 0})||!1}(r),h=e.flatMap(n,function(n){var h=n.moduleSymbol,v=n.importKind;return function(t,r){var n=r.fileName,i=e.mapDefined(t.getSourceFiles(),function(t){return t.resolvedModules&&e.firstDefinedIterator(t.resolvedModules.values(),function(e){return e&&e.resolvedFileName===n?e.originalPath:void 0})});return 0===i.length?[n]:i}(t,h.valueDeclaration.getSourceFile()).map(function(t){var n=e.getDirectoryPath(r.fileName),v=function(t){var r=t.valueDeclaration;if(e.isModuleDeclaration(r)&&e.isStringLiteral(r.name))return r.name.text}(h)||function(t,r,n,i,a){var o=e.getEffectiveTypeRoots(t,r);return e.firstDefined(o,function(t){var r=e.toPath(t,void 0,n);if(e.startsWith(i,r))return l(i.substring(r.length+1),e.ModuleResolutionKind.NodeJs,a)})}(i,o,a,t,y)||function(t,r,n,i,a){if(e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs)return;var o=function(e){var t,r=0,n=0,i=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 a=0,o=0,s=0;for(;o>=0;)switch(a=o,o=e.indexOf("/",a+1),s){case 0:e.indexOf("/node_modules/",a)===a&&(r=a,n=o,s=1);break;case 1:case 2:1===s&&"@"===e.charAt(a+1)?s=2:(i=o,s=3);break;case 3:s=e.indexOf("/node_modules/",a)===a?1:3}return s>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:a}:void 0}(r);if(!o)return;var s=function(t){var r=t.substring(0,o.packageRootIndex),a=e.combinePaths(r,"package.json");if(n.fileExists(a)){var s=JSON.parse(n.readFile(a));if(s){var c=s.typings||s.types||s.main;if(c){var u=e.toPath(c,r,i);if(u===i(t))return r}}}var l=e.removeFileExtension(t);if("/index"===i(l.substring(o.fileNameIndex)))return l.substring(0,o.fileNameIndex);return l}(r);return c=s,u=c.substring(0,o.topLevelNodeModulesIndex),s=0===a.indexOf(u)?c.substring(o.topLevelPackageNameIndex+1):e.getRelativePath(c,a,i),e.getPackageNameFromAtTypesDirectory(s);var c,u}(i,t,o,a,n)||m&&function(t,r,n,i){var a=u(r,t,i);if(void 0===a)return;var o=u(n,t,i),s=void 0!==o?e.getRelativePath(a,o,i):a;return e.removeFileExtension(s)}(m,t,n,a);if(v)return[v];var b=l(e.getRelativePath(t,n,a),g,y);if(!p||"relative"===s.importModuleSpecifierPreference)return[b];var x=_(t,p,a);if(!x)return[b];var S=l(x,g,y);if(f){var k=function(t,r,n){for(var i in n)for(var a=0,o=n[i];a<o.length;a++){var s=o[a],c=e.removeFileExtension(e.normalizePath(s)),u=c.indexOf("*");if(0!==u||1!==c.length)if(-1!==u){var l=c.substr(0,u),_=c.substr(u+1);if(r.length>=l.length+_.length&&e.startsWith(r,l)&&e.endsWith(r,_)){var d=r.substr(l.length,r.length-_.length);return i.replace("*",d)}}else if(c===r||c===t)return i}}(e.removeFileExtension(x),S,f);if(k)return[k]}if("non-relative"===s.importModuleSpecifierPreference)return[S];if(void 0!==s.importModuleSpecifierPreference&&e.Debug.assertNever(s.importModuleSpecifierPreference),d(x))return[b];var D=e.getRelativePath(p,n,a);return c(b)<c(D)?[b,S]:[S,b]}).map(function(e){return e.map(function(e){return{moduleSpecifier:e,importKind:v}})})});return e.flatten(h.sort(function(t,r){return e.first(t).moduleSpecifier.length-e.first(r).moduleSpecifier.length}))}function c(e){for(var t=0,r=0;r+3<=e.length&&"../"===e.slice(r,r+3);r+=3)t++;return t}function u(t,r,n){return e.firstDefined(r,function(e){var r=_(t,e,n);return d(r)?void 0:r})}function l(t,r,n){var i=e.removeFileExtension(t);return n?i+".js":r===e.ModuleResolutionKind.NodeJs?e.removeSuffix(i,"/index"):i}function _(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function d(t){return e.startsWith(t,"..")}function p(t){var r=t.declaration,n=t.importKind,i=243===r.kind?r.moduleSpecifier:253===r.moduleReference.kind?r.moduleReference.expression:void 0;return i&&e.isStringLiteral(i)?{moduleSpecifier:i.text,importKind:n}:void 0}function f(t,r){var n=t.declarations;return e.some(n,function(t){return!!(e.getMeaningFromDeclaration(t)&r)})}function m(t,r,n,i){g(t,n,function(t,n){var a,o,s;(void 0===n||n!==r&&(a=r.fileName,o=n.fileName,void 0===(s=e.forEachAncestorDirectory(o,function(t){return"node_modules"===e.getBaseFileName(t)?t:void 0}))||e.startsWith(a,e.getDirectoryPath(s))))&&i(t)})}function g(t,r,n){for(var i=0,a=t.getAmbientModules();i<a.length;i++){n(a[i],void 0)}for(var o=0,s=r;o<s.length;o++){var c=s[o];e.isExternalOrCommonJsModule(c)&&n(c.symbol,c)}}function y(t,r){return h(e.removeFileExtension(e.stripQuotes(t.name)),r)}function h(t,r){var n=e.getBaseFileName(e.removeSuffix(t,"/index")),i="",a=!0,o=n.charCodeAt(0);e.isIdentifierStart(o,r)?i+=String.fromCharCode(o):a=!1;for(var s=1;s<n.length;s++){var c=n.charCodeAt(s),u=e.isIdentifierPart(c,r);if(u){var l=String.fromCharCode(c);a||(l=l.toUpperCase()),i+=l}a=u}return e.isStringANonContextualKeyword(i)?"_"+i:i||"_"}t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code],getCodeActions:function(t){return t.errorCode===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(t){var r,n=e.getTokenAtPosition(t.sourceFile,t.span.start,!1),i=t.program.getTypeChecker();e.isIdentifier(n)&&(r=i.getSymbolAtLocation(n));if(!e.isUMDExportSymbol(r)){var s=n.parent,c=e.isJsxOpeningLikeElement(s);(e.isJsxOpeningLikeElement&&s.tagName===n||259===s.kind)&&(r=i.resolveName(i.getJsxNamespace(s),c?s.tagName:s,67216319,!1))}if(e.isUMDExportSymbol(r)){var u=i.getAliasedSymbol(r);if(u)return o([{moduleSymbol:u,importKind:function(t){if(e.getAllowSyntheticDefaultImports(t))return 1;var r=e.getEmitModuleKind(t);switch(r){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return 3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(r)}}(t.program.getCompilerOptions())}],a(t,n,r.name))}return}(t):function(t){var r=t.sourceFile,n=t.span,i=t.program,s=t.cancellationToken,c=i.getTypeChecker(),u=e.getTokenAtPosition(r,n.start,!1),l=e.isJsxOpeningLikeElement(u.parent)&&u.parent.tagName===u&&(!e.isIdentifier(u)||e.isIntrinsicJsxName(u.text)||c.resolveName(u.text,u,67108863,!1))?c.getJsxNamespace():e.isIdentifier(u)?u.text:void 0;if(!l)return;e.Debug.assert("default"!==l);var _=e.getMeaningFromLocation(u),d=e.createMultiMap();function p(t,r,n){d.add(e.getUniqueSymbolId(r,c).toString(),{moduleSymbol:t,importKind:n})}return m(c,r,i.getSourceFiles(),function(t){s.throwIfCancellationRequested();var r,n=c.tryGetMemberInModuleExports("default",t);if(n){var a=e.getLocalSymbolForExportDefault(n);(a&&a.escapedName===l||(r=n,e.firstDefined(r.declarations,function(t){if(e.isExportAssignment(t)){if(e.isIdentifier(t.expression))return t.expression.escapedText}else if(e.isExportSpecifier(t)&&(e.Debug.assert("default"===t.name.escapedText),t.propertyName))return t.propertyName.escapedText})===l)||y(t,i.getCompilerOptions().target)===l)&&f(a||n,_)&&p(t,a||n,1)}var o=c.tryGetMemberInModuleExportsAndProperties(l,t);o&&f(o,_)&&p(t,o,0)}),e.arrayFrom(e.flatMapIterator(d.values(),function(e){return o(e,a(t,u,l))}))}(t)},fixIds:[],getAllCodeActions:e.notImplemented}),function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.Equals=3]="Equals"}(r||(r={})),t.getImportCompletionAction=function(t,r,n,i,a,c,u,l,_,d,p,f,m){var y=function(t,r,n,i){var a=[];return g(n,i,function(i){for(var o=0,s=n.getExportsOfModule(i);o<s.length;o++){var c=s[o];if("default"===c.escapedName||c.name===r&&e.skipAlias(c,n)===t){var u=n.tryGetMemberInModuleExports("default",i)===c;a.push({moduleSymbol:i,importKind:u?1:0})}}}),a}(t,i,u,_);e.Debug.assert(y.some(function(e){return e.moduleSymbol===r}));var h={host:a,program:c,checker:u,compilerOptions:l,sourceFile:n,formatContext:d,symbolName:i,getCanonicalFileName:p,symbolToken:f,preferences:m};return{moduleSpecifier:e.first(s(c,n,y,l,p,a,m)).moduleSpecifier,codeAction:e.first(o(y,h))}},t.forEachExternalModuleToImportFrom=m,t.moduleSymbolToValidIdentifier=y,t.moduleSpecifierToValidIdentifier=h}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var 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.Module_0_has_no_exported_member_1_Did_you_mean_2.code];function n(t,r,n){var i,a=e.getTokenAtPosition(t,r,!1),o=n.program.getTypeChecker();if(e.isPropertyAccessExpression(a.parent)&&a.parent.name===a){e.Debug.assert(71===a.kind);var s=o.getTypeAtLocation(a.parent.expression);i=o.getSuggestionForNonexistentProperty(a,s)}else if(e.isImportSpecifier(a.parent)&&a.parent.name===a){e.Debug.assert(71===a.kind);var c=function(t,r,n){if(!n||!e.isStringLiteralLike(n.moduleSpecifier))return;var i=e.getResolvedModule(t,n.moduleSpecifier.text);return i?r.program.getSourceFile(i.resolvedFileName):void 0}(t,n,e.findAncestor(a,e.isImportDeclaration));c&&c.symbol&&(i=o.getSuggestionForNonexistentModule(a,c.symbol))}else{var u=e.getMeaningFromLocation(a),l=e.getTextOfNode(a);e.Debug.assert(void 0!==l,"name should be defined"),i=o.getSuggestionForNonexistentSymbol(a,l,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=67901928);1&e&&(t|=67216319);return t}(u))}return void 0===i?void 0:{node:a,suggestion:i}}function i(t,r,n,i,a){!e.isIdentifierText(i,a)&&e.isPropertyAccessExpression(n.parent)?t.replaceNode(r,n.parent,e.createElementAccess(n.parent.expression,e.createLiteral(i))):t.replaceNode(r,n,e.createIdentifier(i))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,o=n(a,r.span.start,r);if(o){var s=o.node,c=o.suggestion,u=r.host.getCompilationSettings().target,l=e.textChanges.ChangeTracker.with(r,function(e){return i(e,a,s,c,u)});return[t.createCodeFixAction("spelling",l,[e.Diagnostics.Change_spelling_to_0,c],"fixSpelling",e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:["fixSpelling"],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,r){var a=n(r.file,r.start,e),o=e.host.getCompilationSettings().target;a&&i(t,e.sourceFile,a.node,a.suggestion,o)})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="addMissingMember",n=[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],i="addMissingMember";function a(t,r,n){var i=e.getTokenAtPosition(t,r,!1);if(e.isIdentifier(i)){var a=i.parent;if(e.isPropertyAccessExpression(a)){var o=e.skipConstraint(n.getTypeAtLocation(a.expression)),s=o.symbol,c=s&&s.declarations&&e.find(s.declarations,e.isClassLike);if(c){var u=o.target!==n.getDeclaredTypeOfSymbol(s),l=c.getSourceFile();return{token:i,classDeclaration:c,makeStatic:u,classDeclarationSourceFile:l,inJs:e.isSourceFileJavaScript(l),call:e.tryCast(a.parent,e.isCallExpression)}}}}}function o(t,r,n,i,a){if(a){if(204===n.kind)return;var o=n.name.getText(),c=s(e.createIdentifier(o),i);t.insertNodeAfter(r,n,c)}else{var u=e.getFirstConstructorWithBody(n);if(!u)return;var l=s(e.createThis(),i);t.insertNodeAtConstructorEnd(r,u,l)}}function s(t,r){return e.createStatement(e.createAssignment(e.createPropertyAccess(t,r),e.createIdentifier("undefined")))}function c(t,r,n){var i;if(199===n.parent.parent.kind){var a=n.parent.parent,o=n.parent===a.left?a.right:a.left,s=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(o)));i=t.typeToTypeNode(s,r)}return i||e.createKeywordTypeNode(119)}function u(t,r,n,i,a,o){var s=e.createProperty(void 0,o?[e.createToken(115)]:void 0,i,void 0,a,void 0);t.insertNodeAtClassStart(r,n,s)}function l(e,r,n,i,a,o,s,c){var u=t.createMethodFromCallExpression(a,i.text,s,o,c);e.insertNodeAtClassStart(r,n,u)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var s=a(n.sourceFile,n.span.start,n.program.getTypeChecker());if(s){var _=s.classDeclaration,d=s.classDeclarationSourceFile,p=s.inJs,f=s.makeStatic,m=s.token,g=s.call,y=g&&function(n,a,o,s,c,u,_,d){var p=e.textChanges.ChangeTracker.with(n,function(e){return l(e,a,o,s,c,u,_,d)});return t.createCodeFixAction(r,p,[u?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,s.text],i,e.Diagnostics.Add_all_missing_members)}(n,d,_,m,g,f,p,n.preferences),h=p?e.singleElementArray(function(n,a,s,c,u){var l=e.textChanges.ChangeTracker.with(n,function(e){return o(e,a,s,c,u)});return 0===l.length?void 0:t.createCodeFixAction(r,l,[u?e.Diagnostics.Initialize_static_property_0:e.Diagnostics.Initialize_property_0_in_the_constructor,c],i,e.Diagnostics.Add_all_missing_members)}(n,d,_,m.text,f)):function(n,a,o,s,l){var _=c(n.program.getTypeChecker(),o,s),d=function(n,a,o,s,c,l){var _=e.textChanges.ChangeTracker.with(n,function(e){return u(e,a,o,c,l,s)});return t.createCodeFixAction(r,_,[s?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,c],i,e.Diagnostics.Add_all_missing_members)}(n,a,o,l,s.text,_);return l?[d]:[d,function(n,i,a,o,s){var c=e.createKeywordTypeNode(137),u=e.createParameter(void 0,void 0,void 0,"x",void 0,c,void 0),l=e.createIndexSignature(void 0,void 0,[u],s),_=e.textChanges.ChangeTracker.with(n,function(e){return e.insertNodeAtClassStart(i,a,l)});return t.createCodeFixActionNoFixId(r,_,[e.Diagnostics.Add_index_signature_for_property_0,o])}(n,a,o,s.text,_)]}(n,d,_,m,f);return e.concatenate(e.singleElementArray(y),h)}},fixIds:[i],getAllCodeActions:function(r){var i=e.createMap();return t.codeFixAll(r,n,function(t,n){var s=r.program,_=r.preferences,d=a(n.file,n.start,s.getTypeChecker());if(d){var p=d.classDeclaration,f=d.classDeclarationSourceFile,m=d.inJs,g=d.makeStatic,y=d.token,h=d.call;if(e.addToSeen(i,y.text))if(h)l(t,f,p,y,h,g,m,_);else if(m)o(t,f,p,y.text,g);else{var v=c(s.getTypeChecker(),p,y);u(t,f,p,y.text,v,g)}}})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="fixCannotFindModule",n=[e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function i(e,t){return{type:"install package",file:e,packageName:t}}function a(t,r,n){var i=e.cast(e.getTokenAtPosition(r,n,!1),e.isStringLiteral).text,a=e.getPackageName(i).packageName;return t.isKnownTypesPackageName(a)?e.getTypesPackageName(a):void 0}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.host,s=n.sourceFile,c=a(o,s,n.span.start);return void 0===c?[]:[t.createCodeFixAction(r,[],[e.Diagnostics.Install_0,c],r,e.Diagnostics.Install_all_missing_types_packages,i(s.fileName,c))]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r,n){var o=a(e.host,r.file,r.start);o&&n.push(i(r.file.fileName,o))})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],n="fixClassDoesntImplementInheritedAbstractMember";function i(t,r){var n=e.getTokenAtPosition(t,r,!1);return e.cast(n.parent,e.isClassLike)}function a(r,n,i,a,s){var c=e.getClassExtendsHeritageClauseElement(r),u=i.getTypeAtLocation(c),l=i.getPropertiesOfType(u).filter(o);t.createMissingMemberNodes(r,l,i,s,function(e){return a.insertNodeAtClassStart(n,r,e)})}function o(t){var r=e.getModifierFlags(e.first(t.getDeclarations()));return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.program,s=r.sourceFile,c=r.span,u=e.textChanges.ChangeTracker.with(r,function(e){return a(i(s,c.start),s,o.getTypeChecker(),e,r.preferences)});return 0===u.length?void 0:[t.createCodeFixAction(n,u,e.Diagnostics.Implement_inherited_abstract_class,n,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[n],getAllCodeActions:function(n){var o=e.createMap();return t.codeFixAll(n,r,function(t,r){var s=i(r.file,r.start);e.addToSeen(o,e.getNodeId(s))&&a(s,n.sourceFile,n.program.getTypeChecker(),t,n.preferences)})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="classSuperMustPrecedeThisAccess",n=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.deleteNode(t,n)}function a(t,r){var n=e.getTokenAtPosition(t,r,!1);if(99===n.kind){var i=e.getContainingFunction(n),a=o(i.body);return a&&!a.expression.arguments.some(function(t){return e.isPropertyAccessExpression(t)&&t.expression===n})?{constructor:i,superCall:a}:void 0}}function o(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=a(o,s.start);if(c){var u=c.constructor,l=c.superCall,_=e.textChanges.ChangeTracker.with(n,function(e){return i(e,o,u,l)});return[t.createCodeFixAction(r,_,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,r,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[r],getAllCodeActions:function(r){var o=r.sourceFile,s=e.createMap();return t.codeFixAll(r,n,function(t,r){var n=a(r.file,r.start);if(n){var c=n.constructor,u=n.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(t,o,c,u)}})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="constructorForDerivedNeedSuperCall",n=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(t,r){var n=e.getTokenAtPosition(t,r,!1);return e.Debug.assert(123===n.kind),n.parent}function a(t,r,n){var i=e.createStatement(e.createCall(e.createSuper(),void 0,e.emptyArray));t.insertNodeAtConstructorStart(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),u=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,c)});return[t.createCodeFixAction(r,u,e.Diagnostics.Add_missing_super_call,r,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return a(t,e.sourceFile,i(r.file,r.start))})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r,!1),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 85===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.createToken(108)),2===i.length&&85===i[0].token&&108===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.createToken(26));for(var s=r.text,c=a.end;c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;t.deleteRange(r,{pos:a.getStart(),end:c})}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=s.extendsToken,u=s.heritageClauses,l=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,c,u)});return[t.createCodeFixAction(r,l,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r.extendsToken,r.heritageClauses)})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="forgottenThisPropertyAccess",n=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,i=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,n];function a(t,r,i){var a=e.getTokenAtPosition(t,r,!1);if(e.isIdentifier(a))return{node:a,className:i===n?e.getContainingClass(a).name.text:void 0}}function o(t,r,n){var i=n.node,a=n.className;e.suppressLeadingAndTrailingTrivia(i),t.replaceNode(r,i,e.createPropertyAccess(a?e.createIdentifier(a):e.createThis(),i))}t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.sourceFile,s=a(i,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,function(e){return o(e,i,s)});return[t.createCodeFixAction(r,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],r,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,i,function(t,r){o(t,e.sourceFile,a(r.file,r.start,r.code))})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code];function o(t,r){var n=e.getTokenAtPosition(t,r,!1);return 91===n.kind?e.tryCast(n.parent,e.isImportDeclaration):void 0}function s(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&e.isIdentifier(i)&&c(i)&&t.replaceNode(n,i,e.createIdentifier("_"+i.text))}function c(e){switch(e.parent.kind){case 148:return!0;case 231:switch(e.parent.parent.parent.kind){case 221:case 220:return!0}}return!1}function u(t,r,n){switch(n.kind){case 71:!function(t,r,n){var i=n.parent;switch(i.kind){case 231:!function(t,r,n){switch(n.parent.parent.kind){case 219:var i=n.parent.parent,a=i.initializer;1===a.declarations.length?t.deleteNode(r,a):t.deleteNodeInList(r,n);break;case 221:var o=n.parent.parent;e.Debug.assert(232===o.initializer.kind);var s=o.initializer;t.replaceNode(r,s.declarations[0],e.createObjectLiteral());break;case 220:case 229:break;default:var c=n.parent.parent;1===c.declarationList.declarations.length?t.deleteNode(r,c):t.deleteNodeInList(r,n)}}(t,r,i);break;case 147:var a=i.parent.typeParameters;if(1===a.length){var o=e.getTokenAtPosition(r,a.pos-1,!1),s=e.getTokenAtPosition(r,a.end,!1);e.Debug.assert(27===o.kind),e.Debug.assert(29===s.kind),t.deleteNodeRange(r,o,s)}else t.deleteNodeInList(r,i);break;case 148:var c=i.parent;if(e.isSetAccessor(c))break;if(e.isArrowFunction(c)&&1===c.parameters.length){var u=e.updateArrowFunction(c,c.modifiers,c.typeParameters,void 0,c.type,c.equalsGreaterThanToken,c.body);e.suppressLeadingAndTrailingTrivia(u),t.replaceNode(r,c,u)}else t.deleteNodeInList(r,i);break;case 242:var d=e.getAncestor(n,242);t.deleteNode(r,d);break;case 247:var p=i.parent;1===p.elements.length?_(t,r,p):t.deleteNodeInList(r,i);break;case 244:var f=i;if(f.namedBindings){var m=f.name.getStart(r),s=e.getTokenAtPosition(r,f.name.end,!1);if(s&&26===s.kind){var g=e.skipTrivia(r.text,s.end,!1,!0);t.deleteRange(r,{pos:m,end:g})}else t.deleteNode(r,f.name)}else t.deleteNode(r,e.getAncestor(f,243));break;case 245:_(t,r,i);break;default:l(t,r,n)}}(t,r,n);break;case 151:case 245:t.deleteNode(r,n.parent);break;default:l(t,r,n)}}function l(t,r,n){e.isDeclarationName(n)?t.deleteNode(r,n.parent):e.isLiteralComputedPropertyDeclarationName(n)&&t.deleteNode(r,n.parent.parent)}function _(t,r,n){if(n.parent.name){var i=e.getTokenAtPosition(r,n.pos-1,!1);i&&26===i.kind&&t.deleteRange(r,{pos:i.getStart(),end:n.end})}else{var a=e.getAncestor(n,243);t.deleteNode(r,a)}}t.registerCodeFix({errorCodes:a,getCodeActions:function(a){var c=a.errorCode,l=a.sourceFile,_=o(l,a.span.start);if(_){var d=e.textChanges.ChangeTracker.with(a,function(e){return e.deleteNode(l,_)});return[t.createCodeFixAction(r,d,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(_)],i,e.Diagnostics.Delete_all_unused_declarations)]}var p=function(t,r){var n=e.findPrecedingToken(r,t);return 22===n.kind?e.findPrecedingToken(r-1,t):n}(l,e.textSpanEnd(a.span)),f=[],m=e.textChanges.ChangeTracker.with(a,function(e){return u(e,l,p)});m.length&&f.push(t.createCodeFixAction(r,m,[e.Diagnostics.Remove_declaration_for_Colon_0,p.getText(l)],i,e.Diagnostics.Delete_all_unused_declarations));var g=e.textChanges.ChangeTracker.with(a,function(e){return s(e,c,l,p)});return g.length&&f.push(t.createCodeFixAction(r,g,[e.Diagnostics.Prefix_0_with_an_underscore,p.getText(l)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),f},fixIds:[n,i],getAllCodeActions:function(r){return t.codeFixAll(r,a,function(t,a){var l=r.sourceFile,_=e.findPrecedingToken(e.textSpanEnd(a),a.file);switch(r.fixId){case n:e.isIdentifier(_)&&c(_)&&s(t,a.code,l,_);break;case i:var d=o(a.file,a.start);d?t.deleteNode(l,d):u(t,l,_);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function n(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r))}function i(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r,!1),a),o=i&&i.type;return o&&{typeNode:o,type:n.getTypeFromTypeNode(o)}}function a(e){switch(e.kind){case 207:case 157:case 158:case 233:case 155:case 159:case 176:case 153:case 152:case 148:case 151:case 150:case 156:case 236:case 189:case 231:return!0;default:return!1}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,o=r.program.getTypeChecker(),s=i(a,r.span.start,o);if(s){var c=s.typeNode,u=s.type,l=c.getText(a),_=[d(u,"fixJSDocTypes_plain",e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 278===c.kind&&_.push(d(o.getNullableType(u,4096),"fixJSDocTypes_nullable",e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),_}function d(i,s,u){var _=e.textChanges.ChangeTracker.with(r,function(e){return n(e,a,c,i,o)});return t.createCodeFixAction("jdocTypes",_,[e.Diagnostics.Change_0_to_1,l,o.typeToString(i)],s,u)}},fixIds:["fixJSDocTypes_plain","fixJSDocTypes_nullable"],getAllCodeActions:function(e){var a=e.fixId,o=e.program,s=e.sourceFile,c=o.getTypeChecker();return t.codeFixAll(e,r,function(e,t){var r=i(t.file,t.start,c);if(r){var o=r.typeNode,u=r.type,l=278===o.kind&&"fixJSDocTypes_nullable"===a?c.getNullableType(u,4096):u;n(e,s,o,l,c)}})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="fixAwaitInSyncFunction",n=[e.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];function i(t,r){var n=e.getTokenAtPosition(t,r,!1),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 153:a=i.name;break;case 233:case 191:a=e.findChildOfKind(i,89,t);break;case 192:a=e.findChildOfKind(i,19,t)||e.first(i.parameters);break;default:return}return{insertBefore:a,returnType:(o=i,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function a(t,r,n){var i=n.insertBefore,a=n.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&71===o.kind&&"Promise"===o.text||t.replaceNode(r,a,e.createTypeReferenceNode("Promise",e.createNodeArray([a])))}t.insertModifierBefore(r,120,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var u=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,c)});return[t.createCodeFixAction(r,u,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){var n=i(r.file,r.start);n&&a(t,e.sourceFile,n)})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="disableJsDiagnostics",n=e.mapDefined(Object.keys(e.Diagnostics),function(t){var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:void 0});function i(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;i&&!e.addToSeen(i,a)||t.insertCommentBeforeLine(r,a,n," @ts-ignore")}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.sourceFile,o=n.program,s=n.span,c=n.host,u=n.formatContext;if(e.isInJavaScriptFile(a)&&e.isCheckJsEnabledForFile(a,o.getCompilerOptions())){var l=[t.createCodeFixActionNoFixId("disableJsDiagnostics",[t.createFileTextChanges(a.fileName,[e.createTextChange(a.checkJsDirective?e.createTextSpanFromBounds(a.checkJsDirective.pos,a.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+e.getNewLineOrDefaultFromHost(c,u.options))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(a,s.start)&&l.unshift(t.createCodeFixAction("disableJsDiagnostics",e.textChanges.ChangeTracker.with(n,function(e){return i(e,a,s.start)}),e.Diagnostics.Ignore_this_error_message,r,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),l}},fixIds:[r],getAllCodeActions:function(r){var a=e.createMap();return t.codeFixAll(r,n,function(t,r){e.textChanges.isValidLocationToAddComment(r.file,r.start)&&i(t,r.file,r.start,a)})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){function r(t,r,a,o,s){var c=t.getDeclarations();if(c&&c.length){var u=c[0],l=e.getSynthesizedDeepClone(e.getNameOfDeclaration(u),!1),_=function(t){if(4&t)return e.createToken(114);if(16&t)return e.createToken(113);return}(e.getModifierFlags(u)),d=_?e.createNodeArray([_]):void 0,p=a.getWidenedType(a.getTypeOfSymbolAtLocation(t,r)),f=!!(16777216&t.flags);switch(u.kind){case 155:case 156:case 150:case 151:var m=a.typeToTypeNode(p,r);s(e.createProperty(void 0,d,l,f?e.createToken(55):void 0,m,void 0));break;case 152:case 153:var g=a.getSignaturesOfType(p,0);if(!e.some(g))break;if(1===c.length){e.Debug.assert(1===g.length),v(g[0],d,l,i(o));break}for(var y=0,h=g;y<h.length;y++){v(h[y],e.getSynthesizedDeepClones(d,!1),e.getSynthesizedDeepClone(l,!1))}if(c.length>g.length)v(a.getSignatureFromDeclaration(c[c.length-1]),d,l,i(o));else e.Debug.assert(c.length===g.length),s(function(t,r,a,o,s){for(var c=t[0],u=t[0].minArgumentCount,l=!1,_=0,d=t;_<d.length;_++){var p=d[_];u=Math.min(p.minArgumentCount,u),p.hasRestParameter&&(l=!0),p.parameters.length>=c.parameters.length&&(!p.hasRestParameter||c.hasRestParameter)&&(c=p)}var f=c.parameters.length-(c.hasRestParameter?1:0),m=c.parameters.map(function(e){return e.name}),g=n(f,m,u,!1);if(l){var y=e.createArrayTypeNode(e.createKeywordTypeNode(119)),h=e.createParameter(void 0,void 0,e.createToken(24),m[f]||"rest",f>=u?e.createToken(55):void 0,y,void 0);g.push(h)}return function(t,r,n,a,o,s,c){return e.createMethod(void 0,t,void 0,r,n?e.createToken(55):void 0,a,o,s,i(c))}(o,r,a,void 0,g,void 0,s)}(g,l,f,d,o))}}function v(t,n,i,o){var c=function(t,r,n,i,a,o,s){var c=t.signatureToSignatureDeclaration(r,153,n,256);if(!c)return;return c.decorators=void 0,c.modifiers=i,c.name=a,c.questionToken=o?e.createToken(55):void 0,c.body=s,c}(a,t,r,n,i,f,o);c&&s(c)}}function n(t,r,n,i){for(var a=[],o=0;o<t;o++){var s=e.createParameter(void 0,void 0,void 0,r&&r[o]||"arg"+o,void 0!==n&&o>=n?e.createToken(55):void 0,i?void 0:e.createKeywordTypeNode(119),void 0);a.push(s)}return a}function i(t){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.","single"===t.quotePreference)]))],!0)}t.createMissingMemberNodes=function(e,t,n,i,a){for(var o=e.symbol.members,s=0,c=t;s<c.length;s++){var u=c[s];o.has(u.escapedName)||r(u,e,n,i,a)}},t.createMethodFromCallExpression=function(t,r,a,o,s){var c=t.typeArguments,u=t.arguments;return e.createMethod(void 0,o?[e.createToken(115)]:void 0,void 0,r,void 0,a?void 0:e.map(c,function(t,r){return e.createTypeParameterDeclaration(84+c.length-1<=90?String.fromCharCode(84+r):"T"+r)}),n(u.length,void 0,void 0,a),a?void 0:e.createKeywordTypeNode(119),i(s))}}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r,n="inferFromUsage",i=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code];function a(t,n,i,a,_,d,p){if(e.isParameterPropertyModifier(i.kind)||71===i.kind||24===i.kind){var f=i.parent;switch(a){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:return e.isVariableDeclaration(f)||e.isPropertyDeclaration(f)||e.isPropertySignature(f)?(o(t,n,f,_,d),f):void 0;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var m=_.getTypeChecker().getSymbolAtLocation(i);if(m&&m.valueDeclaration&&e.isVariableDeclaration(m.valueDeclaration))return o(t,n,m.valueDeclaration,_,d),m.valueDeclaration}var g=e.getContainingFunction(i);if(void 0!==g)switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessor(g))return s(t,n,g,_,d),g;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(!p||e.addToSeen(p,e.getNodeId(g))){var y=e.cast(f,e.isParameter);return function(t,n,i,a,o,s){if(!e.isIdentifier(n.name)||!function(e){switch(e.kind){case 233:case 153:case 154:return!0;case 191:return!!e.name}return!1}(i))return;var _=function(t,n,i,a){switch(t.kind){case 154:case 191:case 233:case 153:var o=154===t.kind,s=o?e.findChildOfKind(t,123,n):t.name;if(s)return r.inferTypeForParametersFromReferences(u(s,i,a),t,i.getTypeChecker(),a)}}(i,a,o,s)||i.parameters.map(function(t){return e.isIdentifier(t.name)?l(t.name,o,s):void 0});if(!_||i.parameters.length!==_.length)return;e.zipWith(i.parameters,_,function(e,r){e.type||e.initializer||c(t,a,e,r,o)})}(t,y,g,n,_,d),y}return;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:return e.isGetAccessor(g)&&e.isIdentifier(g.name)?(c(t,n,g,l(g.name,_,d),_),g):void 0;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return e.isSetAccessor(g)?(s(t,n,g,_,d),g):void 0;default:return e.Debug.fail(String(a))}}}function o(t,r,n,i,a){e.isIdentifier(n.name)&&c(t,r,n,l(n.name,i,a),i)}function s(t,r,n,i,a){var o=e.firstOrUndefined(n.parameters);o&&e.isIdentifier(n.name)&&e.isIdentifier(o.name)&&c(t,r,o,l(n.name,i,a)||l(o.name,i,a),i)}function c(e,t,r,n,i){var a=n&&function(e,t,r){var n=!0,i=function(){n=!1},a=r.typeToTypeNode(e,t,void 0,{trackSymbol:function(e,t,i){n=n&&0===r.isSymbolAccessible(e,t,i,!1).accessibility},reportInaccessibleThisError:i,reportPrivateInBaseOfClassExpression:i,reportInaccessibleUniqueSymbolError:i});return n?a:void 0}(n,r,i.getTypeChecker());a&&e.tryInsertTypeAnnotation(t,r,a)}function u(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),function(t){return"node"===t.type?e.tryCast(t.node,e.isIdentifier):void 0})}function l(e,t,n){return r.inferTypeFromReferences(u(e,t,n),t.getTypeChecker(),n)}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=r.sourceFile,o=r.program,s=r.span.start,c=r.errorCode,u=r.cancellationToken;if(!e.isSourceFileJavaScript(i)){var l,_=e.getTokenAtPosition(i,s,!1),d=e.textChanges.ChangeTracker.with(r,function(e){l=a(e,i,_,c,o,u)});return 0===d.length?void 0:[t.createCodeFixAction(n,d,[function(t,r){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:return e.isSetAccessor(e.getContainingFunction(r))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:return e.Diagnostics.Infer_parameter_types_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}(c,_),e.getNameOfDeclaration(l).getText(i)],n,e.Diagnostics.Infer_all_types_from_usage)]}},fixIds:[n],getAllCodeActions:function(r){var n=r.sourceFile,o=r.program,s=r.cancellationToken,c=e.createMap();return t.codeFixAll(r,i,function(t,r){a(t,n,e.getTokenAtPosition(r.file,r.start,!1),r.code,o,s,c)})}}),function(t){function r(t,i,a){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 198:a.isNumber=!0;break;case 197:!function(e,t){switch(e.operator){case 43:case 44:case 38:case 52:t.isNumber=!0;break;case 37:t.isNumberOrString=!0}}(t.parent,a);break;case 199:!function(t,r,n,i){switch(r.operatorToken.kind){case 40:case 39:case 41:case 42:case 45:case 46:case 47:case 48:case 49:case 50:case 60:case 62:case 61:case 63:case 64:case 68:case 69:case 70:case 65:case 67:case 66:case 38:case 27:case 30:case 29:case 31:var a=n.getTypeAtLocation(r.left===t?r.right:r.left);272&a.flags?s(i,a):i.isNumber=!0;break;case 59:case 37:var o=n.getTypeAtLocation(r.left===t?r.right:r.left);272&o.flags?s(i,o):84&o.flags?i.isNumber=!0:524322&o.flags?i.isString=!0:i.isNumberOrString=!0;break;case 58:case 32:case 34:case 35:case 33:s(i,n.getTypeAtLocation(r.left===t?r.right:r.left));break;case 92:t===r.left&&(i.isString=!0);break;case 54:t!==r.left||231!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||s(i,n.getTypeAtLocation(r.right))}}(t,t.parent,i,a);break;case 265:case 266:!function(e,t,r){s(r,t.getTypeAtLocation(e.parent.parent.expression))}(t.parent,i,a);break;case 186:case 187:t.parent.expression===t?function(e,t,n){var i={argumentTypes:[],returnType:{}};if(e.arguments)for(var a=0,o=e.arguments;a<o.length;a++){var s=o[a];i.argumentTypes.push(t.getTypeAtLocation(s))}r(e,t,i.returnType),186===e.kind?(n.callContexts||(n.callContexts=[])).push(i):(n.constructContexts||(n.constructContexts=[])).push(i)}(t.parent,i,a):n(t,i,a);break;case 184:!function(t,n,i){var a=e.escapeLeadingUnderscores(t.name.text);i.properties||(i.properties=e.createUnderscoreEscapedMap());var o=i.properties.get(a)||{};r(t,n,o),i.properties.set(a,o)}(t.parent,i,a);break;case 185:!function(e,t,n,i){if(t===e.argumentExpression)return void(i.isNumberOrString=!0);var a=n.getTypeAtLocation(e),o={};r(e,n,o),84&a.flags?i.numberIndexContext=o:i.stringIndexContext=o}(t.parent,t,i,a);break;default:return n(t,i,a)}}function n(t,r,n){e.isExpressionNode(t)&&s(n,r.getContextualType(t))}function i(t,r){if(t.isNumberOrString&&!t.isNumber&&!t.isString)return r.getUnionType([r.getNumberType(),r.getStringType()]);if(t.isNumber)return r.getNumberType();if(t.isString)return r.getStringType();if(t.candidateTypes)return r.getWidenedType(r.getUnionType(e.map(t.candidateTypes,function(e){return r.getBaseTypeOfLiteralType(e)}),2));if(t.properties&&c(t.properties.get("then"))){var n=a(0,t.properties.get("then").callContexts,!1,r).getCallSignatures().map(function(e){return e.getReturnType()});return r.createPromiseType(n.length?r.getUnionType(n,2):r.getAnyType())}if(t.properties&&c(t.properties.get("push")))return r.createArrayType(a(0,t.properties.get("push").callContexts,!1,r));if(t.properties||t.callContexts||t.constructContexts||t.numberIndexContext||t.stringIndexContext){var s=e.createUnderscoreEscapedMap(),u=[],l=[],_=void 0,d=void 0;if(t.properties&&t.properties.forEach(function(e,t){var n=r.createSymbol(4,t);n.type=i(e,r)||r.getAnyType(),s.set(t,n)}),t.callContexts)for(var p=0,f=t.callContexts;p<f.length;p++){var m=f[p];u.push(o(m,r))}if(t.constructContexts)for(var g=0,y=t.constructContexts;g<y.length;g++){var h=y[g];l.push(o(h,r))}return t.numberIndexContext&&(d=r.createIndexInfo(i(t.numberIndexContext,r),!1)),t.stringIndexContext&&(_=r.createIndexInfo(i(t.stringIndexContext,r),!1)),r.createAnonymousType(void 0,s,u,l,_,d)}}function a(t,r,n,i){var a=[];if(r)for(var o=0,s=r;o<s.length;o++){var c=s[o];c.argumentTypes.length>t&&(n?a=e.concatenate(a,e.map(c.argumentTypes.slice(t),function(e){return i.getBaseTypeOfLiteralType(e)})):a.push(i.getBaseTypeOfLiteralType(c.argumentTypes[t])))}if(a.length){var u=i.getWidenedType(i.getUnionType(a,2));return n?i.createArrayType(u):u}}function o(t,r){for(var n=[],a=0;a<t.argumentTypes.length;a++){var o=r.createSymbol(1,e.escapeLeadingUnderscores("arg"+a));o.type=r.getWidenedType(r.getBaseTypeOfLiteralType(t.argumentTypes[a])),n.push(o)}var s=i(t.returnType,r)||r.getVoidType();return r.createSignature(void 0,void 0,void 0,n,s,void 0,t.argumentTypes.length,!1,!1)}function s(e,t){!t||1&t.flags||16384&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function c(e){return e&&e.callContexts}t.inferTypeFromReferences=function(e,t,n){for(var a={},o=0,s=e;o<s.length;o++){var c=s[o];n.throwIfCancellationRequested(),r(c,t,a)}return i(a,t)},t.inferTypeForParametersFromReferences=function(t,n,i,a){if(0!==t.length&&n.parameters){for(var o={},s=0,c=t;s<c.length;s++){var u=c[s];a.throwIfCancellationRequested(),r(u,i,o)}var l=154===n.kind?o.constructContexts:o.callContexts;return l&&n.parameters.map(function(t,r){for(var n=[],a=e.isRestParameter(t),o=0,s=l;o<s.length;o++){var c=s[o];if(!(c.argumentTypes.length<=r))if(a)for(var u=r;u<c.argumentTypes.length;u++)n.push(i.getBaseTypeOfLiteralType(c.argumentTypes[u]));else n.push(i.getBaseTypeOfLiteralType(c.argumentTypes[r]))}if(n.length){var _=i.getWidenedType(i.getUnionType(n,2));return a?i.createArrayType(_):_}})}}}(r||(r={}))}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="invalidImportSyntax";function n(r,n){var a=e.getSourceFileOfNode(n),o=e.getNamespaceDeclarationNode(n),s=r.program.getCompilerOptions(),c=[];return c.push(i(r,a,n,t.makeImportDeclaration(o.name,void 0,n.moduleSpecifier))),e.getEmitModuleKind(s)===e.ModuleKind.CommonJS&&c.push(i(r,a,n,e.createImportEqualsDeclaration(void 0,void 0,o.name,e.createExternalModuleReference(n.moduleSpecifier)))),c}function i(r,n,i,a){var o=e.textChanges.ChangeTracker.with(r,function(e){return e.replaceNode(n,i,a)});return t.createCodeFixActionNoFixId("invalidImportSyntax",o,[e.Diagnostics.Replace_import_with_0,o[0].textChanges[0].newText])}t.registerCodeFix({errorCodes:[e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime.code],getCodeActions:function(t){var r=t.sourceFile,i=e.getTokenAtPosition(r,t.span.start,!1).parent;if(!e.isImportDeclaration(i))return[];return n(t,i)}}),t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature.code],getCodeActions:function(i){var a=i.sourceFile,o=e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code===i.errorCode?186:187,s=e.findAncestor(e.getTokenAtPosition(a,i.span.start,!1),function(e){return e.kind===o&&e.getStart()===i.span.start&&e.getEnd()===i.span.start+i.span.length});if(!s)return[];var c=s.expression,u=i.program.getTypeChecker().getTypeAtLocation(c);if(!u.symbol||!u.symbol.originatingImport)return[];var l=[],_=u.symbol.originatingImport;e.isImportCall(_)||e.addRange(l,n(i,_));var d=e.textChanges.ChangeTracker.with(i,function(t){return t.replaceNode(a,c,e.createPropertyAccess(c,"default"),{})});return l.push(t.createCodeFixActionNoFixId(r,d,e.Diagnostics.Use_synthetic_default_member)),l}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="strictClassInitialization",n="addMissingPropertyDefiniteAssignmentAssertions",i="addMissingPropertyUndefinedType",a="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(t,r){var n=e.getTokenAtPosition(t,r,!1);return e.isIdentifier(n)?e.cast(n.parent,e.isPropertyDeclaration):void 0}function c(t,r,n){var i=e.updateProperty(n,n.decorators,n.modifiers,n.name,e.createToken(51),n.type,n.initializer);t.replaceNode(r,n,i)}function u(t,r,n){var i=e.createKeywordTypeNode(140),a=e.isUnionTypeNode(n.type)?n.type.types.concat(i):[n.type,i];t.replaceNode(r,n.type,e.createUnionTypeNode(a))}function l(t,r,n,i){var a=e.updateProperty(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function _(t,r){return function t(r,n){if(2&n.flags)return e.createLiteral("");if(4&n.flags)return e.createNumericLiteral("0");if(8&n.flags)return e.createFalse();if(n.isLiteral())return e.createLiteral(n.value);if(n.isUnion())return e.firstDefined(n.types,function(e){return t(r,e)});if(n.isClass()){var i=e.getClassLikeDeclarationOfSymbol(n.symbol);if(!i||e.hasModifier(i,128))return;var a=e.getFirstConstructorWithBody(i);if(a&&a.parameters.length)return;return e.createNew(e.createIdentifier(n.symbol.name),void 0,void 0)}return}(t,t.getTypeFromTypeNode(r.type))}t.registerCodeFix({errorCodes:o,getCodeActions:function(o){var d=s(o.sourceFile,o.span.start);if(d){var p=[function(n,a){var o=e.textChanges.ChangeTracker.with(n,function(e){return u(e,n.sourceFile,a)});return t.createCodeFixAction(r,o,[e.Diagnostics.Add_undefined_type_to_property_0,a.name.getText()],i,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}(o,d),function(i,a){var o=e.textChanges.ChangeTracker.with(i,function(e){return c(e,i.sourceFile,a)});return t.createCodeFixAction(r,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,a.getText()],n,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(o,d)];return e.append(p,function(n,i){var o=_(n.program.getTypeChecker(),i);if(!o)return;var s=e.textChanges.ChangeTracker.with(n,function(e){return l(e,n.sourceFile,i,o)});return t.createCodeFixAction(r,s,[e.Diagnostics.Add_initializer_to_property_0,i.name.getText()],a,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(o,d)),p}},fixIds:[n,i,a],getAllCodeActions:function(r){return t.codeFixAll(r,o,function(t,o){var d=s(o.file,o.start);if(d)switch(r.fixId){case n:c(t,o.file,d);break;case i:u(t,o.file,d);break;case a:var p=_(r.program.getTypeChecker(),d);if(!p)return;l(t,o.file,d,p);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){var r="useDefaultImport",n=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(t,r){var n=e.getTokenAtPosition(t,r,!1);if(e.isIdentifier(n)){var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}}function a(e,r,n){e.replaceNode(r,n.importNode,t.makeImportDeclaration(n.name,void 0,n.moduleSpecifier))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span.start,c=i(o,s);if(c){var u=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,c)});return[t.createCodeFixAction(r,u,e.Diagnostics.Convert_to_default_import,r,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)})}})}(e.codefix||(e.codefix={}))}(o||(o={})),function(e){!function(t){!function(r){var n,i,a,o,s="Extract Symbol";function c(t){var r=l(t.file,{start:t.startPosition,length:e.getRefactorContextLength(t)}).targetRange;if(void 0!==r){var n=function(t,r){var n=d(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope;return i.map(function(t,r){var n,i,a=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),u=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 154:return"constructor";case 191:case 233:return t.name?"function '"+t.name.text+"'":"anonymous function";case 192:return"arrow function";case 153:return"method '"+t.name.getText();case 155:return"'get "+t.name.getText()+"'";case 156:return"'set "+t.name.getText()+"'";default:e.Debug.assertNever(t)}}(t):e.isClassLike(t)?function(e){return 234===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(t):function(e){return 239===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(t);return 1===u?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===u?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,u]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,u])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}})}(r,t);if(void 0!==n){for(var i=[],a=e.createMap(),o=[],c=e.createMap(),u=0,_=0,p=n;_<p.length;_++){var f=p[_],m=f.functionExtraction,g=f.constantExtraction;if(0===m.errors.length){var y=m.description;a.has(y)||(a.set(y,!0),i.push({description:y,name:"function_scope_"+u}))}if(0===g.errors.length){y=g.description;c.has(y)||(c.set(y,!0),o.push({description:y,name:"constant_scope_"+u}))}u++}var h=[];return i.length&&h.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:i}),o.length&&h.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:o}),h.length?h:void 0}}}function u(t,r){var n=l(t.file,{start:t.startPosition,length:e.getRefactorContextLength(t)}).targetRange,a=/^function_scope_(\d+)$/.exec(r);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(t,r,n){var a=d(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.functionErrorsPerScope,_=s.exposedVariableDeclarations;return e.Debug.assert(!l[n].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o,s){var c,u,l=n.usages,_=n.typeParameterUsages,d=n.substitutions,g=s.program.getTypeChecker(),y=r.getSourceFile(),h=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",y.text),v=e.isInJavaScriptFile(r),b=e.createIdentifier(h),x=[],S=[];l.forEach(function(t,n){var i;if(!v){var a=g.getTypeOfSymbolAtLocation(t.symbol,t.node);a=g.getBaseTypeOfLiteralType(a),i=g.typeToTypeNode(a,r,1)}var o=e.createParameter(void 0,void 0,void 0,n,void 0,i);x.push(o),2===t.usage&&(u||(u=[])).push(t),S.push(e.createIdentifier(n))});var k=e.arrayFrom(_.values()).map(function(e){return{type:e,declaration:function(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];(void 0===t||a.pos<t.pos)&&(t=a)}return t}(e)}}).sort(p),D=0===k.length?void 0:k.map(function(e){return e.declaration}),T=void 0!==D?D.map(function(t){return e.createTypeReferenceNode(t.name,void 0)}):void 0;if(e.isExpression(t)&&!v){var C=g.getContextualType(t);c=g.typeToTypeNode(C,r,1)}var E,N=function(t,r,n,i,a){var o,s=void 0!==n||r.length>0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(s||i.size){var l=e.visitNodes(u,function t(a){if(!c&&224===a.kind&&s){var u=f(r,n);return a.expression&&(o||(o="__return"),u.unshift(e.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===u.length?e.createReturn(u[0].name):e.createReturn(e.createObjectLiteral(u))}var l=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=l,d}).slice();if(s&&!a&&e.isStatement(t)){var _=f(r,n);1===_.length?l.push(e.createReturn(_[0].name)):l.push(e.createReturn(e.createObjectLiteral(_)))}return{body:e.createBlock(l,!0),returnValueProperty:o}}return{body:e.createBlock(u,!0),returnValueProperty:void 0}}(t,a,u,d,!!(o.facts&i.HasReturn)),A=N.body,P=N.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(A),e.isClassLike(r)){var w=v?[]:[e.createToken(112)];o.facts&i.InStaticRegion&&w.push(e.createToken(115)),o.facts&i.IsAsyncFunction&&w.push(e.createToken(120)),E=e.createMethod(void 0,w.length?w:void 0,o.facts&i.IsGenerator?e.createToken(39):void 0,b,void 0,D,x,c,A)}else E=e.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.createToken(120)]:void 0,o.facts&i.IsGenerator?e.createToken(39):void 0,b,D,x,c,A);var F=e.textChanges.ChangeTracker.fromContext(s),O=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertTypeIsNever(t)}return e.emptyArray}(r),function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)})}((m(o.range)?e.last(o.range):o.range).end,r);O?F.insertNodeBefore(s.file,O,E,!0):F.insertNodeAtEndOfScope(s.file,r,E);var I=[],M=function(t,r,n){var a=e.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.createIdentifier(t.name.text):e.createThis();return e.createPropertyAccess(o,a)}return a}(r,o,h),L=e.createCall(M,T,S);if(o.facts&i.IsGenerator&&(L=e.createYield(e.createToken(39),L)),o.facts&i.IsAsyncFunction&&(L=e.createAwait(L)),a.length&&!u)if(e.Debug.assert(!P),e.Debug.assert(!(o.facts&i.HasReturn)),1===a.length){var R=a[0];I.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(R.name),e.getSynthesizedDeepClone(R.type),L)],R.parent.flags)))}else{for(var B=[],j=[],J=a[0].parent.flags,z=!1,K=0,U=a;K<U.length;K++){var R=U[K];B.push(e.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(R.name)));var q=g.typeToTypeNode(g.getBaseTypeOfLiteralType(g.getTypeAtLocation(R)),r,1);j.push(e.createPropertySignature(void 0,R.symbol.name,void 0,q,void 0)),z=z||void 0!==R.type,J&=R.parent.flags}var V=z?e.createTypeLiteralNode(j):void 0;V&&e.setEmitFlags(V,1),I.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createObjectBindingPattern(B),V,L)],J)))}else if(a.length||u){if(a.length)for(var W=0,H=a;W<H.length;W++){var R=H[W],G=R.parent.flags;2&G&&(G=-3&G|1),I.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(R.symbol.name,Z(R.type))],G)))}P&&I.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(P,Z(c))],1)));var X=f(a,u);P&&X.unshift(e.createShorthandPropertyAssignment(P)),1===X.length?(e.Debug.assert(!P),I.push(e.createStatement(e.createAssignment(X[0].name,L))),o.facts&i.HasReturn&&I.push(e.createReturn())):(I.push(e.createStatement(e.createAssignment(e.createObjectLiteral(X),L))),P&&I.push(e.createReturn(e.createIdentifier(P))))}else o.facts&i.HasReturn?I.push(e.createReturn(L)):m(o.range)?I.push(e.createStatement(L)):I.push(L);m(o.range)?F.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),I):F.replaceNodeWithNodes(s.file,o.range,I);var Q=F.getChanges(),Y=(m(o.range)?e.first(o.range):o.range).getSourceFile().fileName,$=e.getRenameLocation(Q,Y,h,!1);return{renameFilename:Y,renameLocation:$,edits:Q};function Z(t){if(void 0!==t){for(var r=e.getSynthesizedDeepClone(t),n=r;e.isParenthesizedTypeNode(n);)n=n.type;return e.isUnionTypeNode(n)&&e.find(n.types,function(e){return 140===e.kind})?r:e.createUnionTypeNode([r,e.createKeywordTypeNode(140)])}}}(c,o[n],u[n],_,t,r)}(n,t,o)}var s=/^constant_scope_(\d+)$/.exec(r);if(s){o=+s[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(t,r,n){var a=d(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.constantErrorsPerScope,p=s.exposedVariableDeclarations;return e.Debug.assert(!l[n].length,"The extraction went missing? How?"),e.Debug.assert(0===p.length,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o){var s=n.substitutions,c=o.program.getTypeChecker(),u=r.getSourceFile(),l=e.getUniqueName(e.isClassLike(r)?"newProperty":"newLocal",u.text),d=e.isInJavaScriptFile(r),p=d||!c.isContextSensitive(t)?void 0:c.typeToTypeNode(c.getContextualType(t),r,1),f=function(t,r){return r.size?function t(n){var i=r.get(e.getNodeId(n).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(n,t,e.nullTransformationContext)}(t):t}(t,s);e.suppressLeadingAndTrailingTrivia(f);var m=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!d);var g=[];g.push(e.createToken(112)),a&i.InStaticRegion&&g.push(e.createToken(115)),g.push(e.createToken(132));var y=e.createProperty(void 0,g,l,void 0,p,f),v=e.createPropertyAccess(a&i.InStaticRegion?e.createIdentifier(r.name.getText()):e.createThis(),e.createIdentifier(l)),b=t.pos,x=function(t,r){var n,i=r.members;e.Debug.assert(i.length>0);for(var a=!0,o=0,s=i;o<s.length;o++){var c=s[o];if(c.pos>t)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return e.Debug.assert(void 0!==n),n}(b,r);m.insertNodeBefore(o.file,x,y,!0),m.replaceNode(o.file,t,v)}else{var S=e.createVariableDeclaration(l,p,f),k=function(t,r){for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(k){m.insertNodeBefore(o.file,k,S);var v=e.createIdentifier(l);m.replaceNode(o.file,t,v)}else if(215===t.parent.kind&&r===e.findAncestor(t,_)){var D=e.createVariableStatement(void 0,e.createVariableDeclarationList([S],2));m.replaceNode(o.file,t.parent,D)}else{var D=e.createVariableStatement(void 0,e.createVariableDeclarationList([S],2)),x=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)_(i)&&(n=i);for(var i=(n||t).parent;;i=i.parent){if(h(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent)),i.parent.parent):(e.Debug.assert(void 0!==a),a)}if(i===r){e.Debug.fail("Didn't encounter a block-like before encountering scope");break}}}(t,r);if(0===x.pos?m.insertNodeAtTopOfFile(o.file,D,!1):m.insertNodeBefore(o.file,x,D,!1),215===t.parent.kind)m.deleteNode(o.file,t.parent,e.textChanges.useNonAdjustedPositions);else{var v=e.createIdentifier(l);m.replaceNode(o.file,t,v)}}}var T=m.getChanges(),C=t.getSourceFile().fileName,E=e.getRenameLocation(T,C,l,!0);return{renameFilename:C,renameLocation:E,edits:T}}(e.isExpression(c)?c:c.statements[0].expression,o[n],u[n],t.facts,r)}(n,t,o)}e.Debug.fail("Unrecognized action name")}function l(t,r){var a=r.length;if(0===a)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractEmpty)]};var o=g(e.getTokenAtPosition(t,r.start,!1),t,r),s=g(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),t,r),c=[],u=i.None;if(!o||!s)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o!==s){if(!h(o.parent))return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};for(var l=[],_=0,d=o.parent.statements;_<d.length;_++){var p=d[_];if(p===o||l.length){var f=v(p);if(f)return{errors:f};l.push(p)}if(p===s)break}return l.length?{targetRange:{range:l,facts:u,declarations:c}}:{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]}}if(e.isReturnStatement(o)&&!o.expression)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};var m=function(t){if(e.isReturnStatement(t)){if(t.expression)return t.expression}else if(e.isVariableStatement(t)){for(var r=0,n=void 0,i=0,a=t.declarationList.declarations;i<a.length;i++){var o=a[i];o.initializer&&(r++,n=o.initializer)}if(1===r)return n}else if(e.isVariableDeclaration(t)&&t.initializer)return t.initializer;return t}(o),y=function(t){if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,n.cannotExtractIdentifier)];return}(m)||v(m);return y?{errors:y}:{targetRange:{range:function(t){if(e.isStatement(t))return[t];if(e.isExpressionNode(t))return e.isExpressionStatement(t.parent)?[t.parent]:t;return}(m),facts:u,declarations:c}};function v(t){var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"}(a||(a={})),e.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),!(e.isStatement(t)||e.isExpressionNode(t)&&function(e){switch(e.parent.kind){case 272:return!1}switch(e.kind){case 9:return 243!==e.parent.kind&&247!==e.parent.kind;case 203:case 179:case 181:return!1;case 71:return 181!==e.parent.kind&&247!==e.parent.kind&&251!==e.parent.kind}return!0}(t)))return[e.createDiagnosticForNode(t,n.statementOrExpressionExpected)];if(2097152&t.flags)return[e.createDiagnosticForNode(t,n.cannotExtractAmbientBlock)];var o,s=e.getContainingClass(t);s&&function(t,r){for(var n=t;n!==r;){if(151===n.kind){e.hasModifier(n,32)&&(u|=i.InStaticRegion);break}if(148===n.kind){154===e.getContainingFunction(n).kind&&(u|=i.InStaticRegion);break}153===n.kind&&e.hasModifier(n,32)&&(u|=i.InStaticRegion),n=n.parent}}(t,s);var l,_=4;return function t(a){if(o)return!0;if(e.isDeclaration(a)){var s=231===a.kind?a.parent.parent:a;if(e.hasModifier(s,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;c.push(a.symbol)}switch(a.kind){case 243:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 97:if(186===a.parent.kind){var d=e.getContainingClass(a);if(d.pos<r.start||d.end>=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else u|=i.UsesThis}if(!a||e.isFunctionLikeDeclaration(a)||e.isClassLike(a)){switch(a.kind){case 233:case 234:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope))}return!1}var p=_;switch(a.kind){case 216:case 229:_=0;break;case 212:a.parent&&229===a.parent.kind&&a.parent.finallyBlock===a&&(_=4);break;case 265:_|=1;break;default:e.isIterationStatement(a,!1)&&(_|=3)}switch(a.kind){case 173:case 99:u|=i.UsesThis;break;case 227:var f=a.label;(l||(l=[])).push(f.escapedText),e.forEachChild(a,t),l.pop();break;case 223:case 222:var f=a.label;f?e.contains(l,f.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_&(223===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 196:u|=i.IsAsyncFunction;break;case 202:u|=i.IsGenerator;break;case 224:4&_?u|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}_=p}(t),o}}function _(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function d(t,r){var a=r.file,o=function(t){var r=m(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(148===(r=r.parent).kind&&(r=e.findAncestor(r,function(t){return e.isFunctionLikeDeclaration(t)}).parent),_(r)&&(o.push(r),273===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,a,o,s,c){var u,l,_=e.createMap(),d=[],p=[],f=[],g=[],y=[],h=e.createMap(),v=[],b=m(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var x=t.range,S=e.first(x).getStart(),k=e.last(x).end;l=e.createFileDiagnostic(o,S,k-S,n.expressionExpected)}else 18432&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,n.uselessConstantType));for(var D=0,T=r;D<T.length;D++){var C=T[D];d.push({usages:e.createMap(),typeParameterUsages:e.createMap(),substitutions:e.createMap()}),p.push(e.createMap()),f.push(e.isFunctionLikeDeclaration(C)&&233!==C.kind?[e.createDiagnosticForNode(C,n.cannotExtractToOtherFunctionLike)]:[]);var E=[];l&&E.push(l),e.isClassLike(C)&&e.isInJavaScriptFile(C)&&E.push(e.createDiagnosticForNode(C,n.cannotExtractToJSClass)),e.isArrowFunction(C)&&!e.isBlock(C.body)&&E.push(e.createDiagnosticForNode(C,n.cannotExtractToExpressionArrowFunction)),g.push(E)}var N=e.createMap(),A=m(t.range)?e.createBlock(t.range):t.range,P=m(t.range)?e.first(t.range):t.range,w=function(e){for(;e;e=e.parent)if(U(e))return!0;return!1}(P);if(function c(u,l){if(void 0===l&&(l=1),w){var _=s.getTypeAtLocation(u);q(_)}if(e.isDeclaration(u)&&u.symbol&&y.push(u),e.isAssignmentExpression(u))c(u.left,2),c(u.right);else if(e.isUnaryExpressionWithWrite(u))c(u.operand,2);else if(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u))e.forEachChild(u,c);else if(e.isIdentifier(u)){if(!u.parent)return;if(e.isQualifiedName(u.parent)&&u!==u.parent.left)return;if(e.isPropertyAccessExpression(u.parent)&&u!==u.parent.expression)return;!function(c,u,l){var _=function(c,u,l){var _=V(c);if(_){var m=e.getSymbolId(_).toString(),y=N.get(m);if(y&&y>=u)return m;if(N.set(m,u),y){for(var h=0,v=d;h<v.length;h++){var b=v[h],x=b.usages.get(c.text);x&&b.usages.set(c.text,{usage:u,symbol:_,node:c})}return m}var S=_.getDeclarations(),k=S&&e.find(S,function(e){return e.getSourceFile()===o});if(k&&!e.rangeContainsStartEnd(a,k.getStart(),k.end)){if(t.facts&i.IsGenerator&&2===u){for(var D=e.createDiagnosticForNode(c,n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),T=0,C=f;T<C.length;T++){var E=C[T];E.push(D)}for(var A=0,P=g;A<P.length;A++){var E=P[A];E.push(D)}}for(var w=0;w<r.length;w++){var F=r[w],O=s.resolveName(_.name,F,_.flags,!1);if(O!==_&&!p[w].has(m)){var I=W(_.exportSymbol||_,F,l);if(I)p[w].set(m,I);else if(l){if(!(262144&_.flags)){var D=e.createDiagnosticForNode(c,n.typeWillNotBeVisibleInTheNewScope);f[w].push(D),g[w].push(D)}}else d[w].usages.set(c.text,{usage:u,symbol:_,node:c})}}return m}}}(c,u,l);if(_)for(var m=0;m<r.length;m++){var y=p[m].get(_);y&&d[m].substitutions.set(e.getNodeId(c).toString(),y)}}(u,l,e.isPartOfTypeNode(u))}else e.forEachChild(u,c)}(A),w&&!m(t.range)){var F=s.getContextualType(t.range);q(F)}if(_.size>0){for(var O=e.createMap(),I=0,M=P;void 0!==M&&I<r.length;M=M.parent)if(M===r[I]&&(O.forEach(function(e,t){d[I].typeParameterUsages.set(t,e)}),I++),e.isDeclarationWithTypeParameters(M)&&M.typeParameters)for(var L=0,R=M.typeParameters;L<R.length;L++){var B=R[L],j=s.getTypeAtLocation(B);_.has(j.id.toString())&&O.set(j.id.toString(),j)}e.Debug.assert(I===r.length)}if(y.length){var J=e.isBlockScope(r[0],r[0].parent)?r[0]:e.getEnclosingBlockScopeContainer(r[0]);e.forEachChild(J,function r(n){if(n===t.range||m(t.range)&&t.range.indexOf(n)>=0)return;var i=e.isIdentifier(n)?V(n):s.getSymbolAtLocation(n);if(i){var a=e.find(y,function(e){return e.symbol===i});if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();h.has(o)||(v.push(a),h.set(o,!0))}else u=u||a}e.forEachChild(n,r)})}for(var z=function(r){var i=d[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=m(t.range)?t.range[0]:t.range;g[r].push(e.createDiagnosticForNode(a,n.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(d[r].usages.forEach(function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(m(t.range)||0===v.length),s&&!m(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else if(o&&r>0){var c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[r].push(c),g[r].push(c)}else if(u){var c=e.createDiagnosticForNode(u,n.cannotExtractExportedEntity);f[r].push(c),g[r].push(c)}},K=0;K<r.length;K++)z(K);return{target:A,usagesPerScope:d,functionErrorsPerScope:f,constantErrorsPerScope:g,exposedVariableDeclarations:v};function U(t){return e.isDeclarationWithTypeParameters(t)&&void 0!==t.typeParameters&&t.typeParameters.length>0}function q(e){for(var t=s.getSymbolWalker(function(){return c.throwIfCancellationRequested(),!0}),r=t.walkType(e).visitedTypes,n=0,i=r;n<i.length;n++){var a=i[n];a.isTypeParameter()&&_.set(a.id.toString(),a)}}function V(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function W(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some(function(e){return e.parent===r}))return e.createIdentifier(t.name);var a=W(t.parent,r,n);if(void 0!==a)return n?e.createQualifiedName(a,e.createIdentifier(t.name)):e.createPropertyAccess(a,t.name)}}}(t,o,function(t,r){return m(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,a),a,r.program.getTypeChecker(),r.cancellationToken)}}function p(t,r){var n=t.type,i=t.declaration,a=r.type,o=r.declaration;return e.compareProperties(i,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(n.symbol?n.symbol.getName():"",a.symbol?a.symbol.getName():"")||e.compareValues(n.id,a.id)}function f(t,r){var n=e.map(t,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)}),i=e.map(r,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)});return void 0===n?i:void 0===i?n:n.concat(i)}function m(t){return e.isArray(t)}function g(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!y(n,t.parent,r))return t;t=t.parent}}function y(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function h(e){switch(e.kind){case 212:case 273:case 239:case 265:return!0;default:return!1}}t.registerRefactor(s,{getAvailableActions:c,getEditsForAction:u}),r.getAvailableActions=c,r.getEditsForAction=u,function(t){function r(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToOtherFunctionLike=r("Cannot extract method to a function-like scope that is not a function"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block")}(n=r.Messages||(r.Messages={})),function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion"}(i||(i={})),r.getRangeToExtract=l,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(a||(a={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(o||(o={}))}(t.extractSymbol||(t.extractSymbol={}))}(e.refactor||(e.refactor={}))}(o||(o={})),function(e){!function(t){!function(r){var n="Generate 'get' and 'set' accessors",i=e.Diagnostics.Generate_get_and_set_accessors.message;function a(t){return e.isParameterPropertyDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function o(t,r){return e.isIdentifier(r)?e.createIdentifier(t):e.createLiteral(t)}function s(t,r,n){var i=r?n.name:e.createThis();return e.isIdentifier(t)?e.createPropertyAccess(i,t):e.createElementAccess(i,e.createLiteral(t))}function c(t,r,n){var i=e.append(t?void 0:[e.createToken(n)],r?e.createToken(115):void 0);return i&&e.createNodeArray(i)}function u(t,r){var n=e.getTokenAtPosition(t,r,!1),i=e.findAncestor(n.parent,a);if(i&&(s=i.name,e.isIdentifier(s)||e.isStringLiteral(s))&&60==(60|e.getModifierFlags(i))){var s,c=o(e.getUniqueName("_"+i.name.text,t.text),i.name),u=o(i.name.text,i.name);return e.suppressLeadingAndTrailingTrivia(c),e.suppressLeadingAndTrailingTrivia(i),{isStatic:e.hasStaticModifier(i),type:e.getTypeAnnotationNode(i),container:148===i.kind?i.parent.parent:i.parent,declaration:i,fieldName:c,accessorName:u}}}function l(t,r,n,i,a){e.isParameterPropertyDeclaration(i)?t.insertNodeAtClassStart(r,a,n):t.insertNodeAfter(r,i,n)}t.registerRefactor(n,{getEditsForAction:function(t,r){var n=t.file,i=t.startPosition,a=u(n,i);if(!a)return;var o=e.isSourceFileJavaScript(n),_=e.textChanges.ChangeTracker.fromContext(t),d=a.isStatic,p=a.fieldName,f=a.accessorName,m=a.type,g=a.container,y=a.declaration,h=e.isClassLike(g),v=h?!y.modifiers||8&e.getModifierFlags(y)?c(o,d,114):y.modifiers:void 0,b=h?c(o,d,112):void 0;!function(t,r,n,i,a,o){e.isPropertyDeclaration(n)?function(t,r,n,i,a){var o=e.updateProperty(n,n.decorators,a,i,n.questionToken||n.exclamationToken,n.type,n.initializer);t.replaceNode(r,n,o)}(t,r,n,i,a):e.isPropertyAssignment(n)?function(t,r,n,i){var a=e.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)}(t,r,n,i):function(t,r,n,i,a,o){var s=e.createProperty(n.decorators,a,i,n.questionToken,n.type,n.initializer);t.insertNodeAtClassStart(r,o,s),t.deleteNodeInList(r,n)}(t,r,n,i,a,o)}(_,n,y,p,b,g);var x=function(t,r,n,i,a,o){return e.createGetAccessor(void 0,i,r,void 0,n,e.createBlock([e.createReturn(s(t,a,o))],!0))}(p,f,m,v,d,g),S=function(t,r,n,i,a,o){return e.createSetAccessor(void 0,i,r,[e.createParameter(void 0,void 0,void 0,e.createIdentifier("value"),void 0,n)],e.createBlock([e.createStatement(e.createAssignment(s(t,a,o),e.createIdentifier("value")))],!0))}(p,f,m,v,d,g);l(_,n,x,y,g),l(_,n,S,y,g);var k=_.getChanges(),D=n.fileName,T=(e.isIdentifier(p)?0:-1)+e.getRenameLocation(k,D,p.text,!1);return{renameFilename:D,renameLocation:T,edits:k}},getAvailableActions:function(e){var t=e.file,r=e.startPosition;return u(t,r)?[{name:n,description:i,actions:[{name:n,description:i}]}]:void 0}})}(t.generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}))}(e.refactor||(e.refactor={}))}(o||(o={})),function(e){!function(t){function r(e){return e.decodingIndex===e.encodedText.length}function n(e){for(;e.decodingIndex<e.encodedText.length;){var t=e.encodedText.charCodeAt(e.decodingIndex);if(59!==t){if(44!==t){if(e.currentEmittedColumn+=n(),r(e.currentEmittedColumn<0,"Invalid emittedColumn found"))return;if(r(i(e.encodedText,e.decodingIndex),"Unsupported Error Format: No entries after emitted column"))return;if(e.currentSourceIndex+=n(),r(e.currentSourceIndex<0,"Invalid sourceIndex found"))return;if(r(i(e.encodedText,e.decodingIndex),"Unsupported Error Format: No entries after sourceIndex"))return;if(e.currentSourceLine+=n(),r(e.currentSourceLine<0,"Invalid sourceLine found"))return;if(r(i(e.encodedText,e.decodingIndex),"Unsupported Error Format: No entries after emitted Line"))return;if(e.currentSourceColumn+=n(),r(e.currentSourceColumn<0,"Invalid sourceLine found"))return;if(i(e.encodedText,e.decodingIndex)||(void 0===e.currentNameIndex&&(e.currentNameIndex=0),e.currentNameIndex+=n()),r(!i(e.encodedText,e.decodingIndex),"Unsupported Error Format: There are more entries after "+(void 0===e.currentNameIndex?"sourceColumn":"nameIndex")))return;return void e.positions.push(e.processPosition({emittedColumn:e.currentEmittedColumn,emittedLine:e.currentEmittedLine,sourceColumn:e.currentSourceColumn,sourceIndex:e.currentSourceIndex,sourceLine:e.currentSourceLine,nameIndex:e.currentNameIndex}))}e.decodingIndex++}else e.currentEmittedLine++,e.currentEmittedColumn=0,e.decodingIndex++}return void r(!0,"No encoded entry found");function r(t,r){return!!e.error||(t&&(e.error=r),t)}function n(){for(var t,n=!0,i=0,a=0;n;e.decodingIndex++){if(r(e.decodingIndex>=e.encodedText.length,"Error in decoding base64VLQFormatDecode, past the mapping string"))return;var o=(t=e.encodedText.charAt(e.decodingIndex),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t));n=0!=(32&o),a|=(31&o)<<i,i+=5}return 0==(1&a)?a>>=1:a=-(a>>=1),a}}function i(e,t){return t===e.length||44===e.charCodeAt(t)||59===e.charCodeAt(t)}t.identitySourceMapper={getOriginalPosition:e.identity,getGeneratedPosition:e.identity},t.decode=function(t,i,a,o,s){void 0===s&&(s=e.createSourceFileLikeCache(t));var c,u,l,_=e.getDirectoryPath(i),d=a.sourceRoot||_;return{getOriginalPosition:function(r){var n=l||(l=f().slice().sort(m));if(!e.length(n))return r;var i=e.binarySearch(n,{emittedPosition:r.position},e.identity,g);return i<0&&n.length>0&&(i=~i),{fileName:e.toPath(n[i].sourcePath,d,t.getCanonicalFileName),position:n[i].sourcePosition}},getGeneratedPosition:function(r){var n=u||(u=f().slice().sort(g));if(!e.length(n))return r;var i=e.binarySearch(n,{sourcePath:r.fileName,sourcePosition:r.position},e.identity,m);return i<0&&n.length>0&&(i=~i),n[i]&&0===e.comparePaths(r.fileName,n[i].sourcePath,d)?{fileName:e.toPath(a.file,d,t.getCanonicalFileName),position:n[i].emittedPosition}:r}};function p(r,n,i,a){var c=function(r,n){var i=o&&o.getSourceFile(r);if(!i){var a=e.toPath(r,n,t.getCanonicalFileName);return s.get(a)}return i}(r,n);return c?e.getPositionOfLineAndCharacter(c,i,a):-1}function f(){return c||(c=function(){for(var e={encodedText:a.mappings,currentNameIndex:void 0,sourceMapNamesLength:a.names?a.names.length:void 0,currentEmittedColumn:0,currentEmittedLine:0,currentSourceColumn:0,currentSourceLine:0,currentSourceIndex:0,positions:[],decodingIndex:0,processPosition:y};!r(e);)if(n(e),e.error)return t.log("Encountered error while decoding sourcemap found at "+i+": "+e.error),[];return e.positions}())}function m(t,r){return e.comparePaths(t.sourcePath,r.sourcePath,d)||e.compareValues(t.sourcePosition,r.sourcePosition)}function g(t,r){return e.compareValues(t.emittedPosition,r.emittedPosition)}function y(e){var t=a.sources[e.sourceIndex];return{emittedPosition:p(a.file,_,e.emittedLine,e.emittedColumn),sourcePosition:p(t,d,e.sourceLine,e.sourceColumn),sourcePath:t}}}}(e.sourcemaps||(e.sourcemaps={}))}(o||(o={})),function(e){function t(t,n,i,a){var o=e.isNodeKind(t)?new r(t,n,i):71===t?new u(71,n,i):new c(t,n,i);return o.parent=a,o.flags=6387712&a.flags,o}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.transformFlags=void 0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(r,n){if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild(function(e){a.push(e)}),a;e.scanner.setText((n||r.getSourceFile()).text);var o=r.pos,s=function(e){i(a,o,e.pos,r),a.push(e),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,function(e){i(a,o,e.pos,r),a.push(function(e,r){var n=t(294,e.pos,e.end,r);n._children=[];for(var a=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];i(n._children,a,c.pos,r),n._children.push(c),a=c.end}return i(n._children,a,e.end,r),n}(e,r)),o=e.end}),i(a,o,r.end,r),e.scanner.setText(void 0),a}(this,r))},r.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(r.length){var n=e.find(r,function(e){return e.kind<275||e.kind>293});return n.kind<145?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<145?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function i(r,n,i,a){for(e.scanner.setTextPos(n);n<i;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=i&&(71===o&&e.Debug.fail("Did not expect "+e.Debug.showSyntaxKind(a)+" to have an Identifier in its trivia"),r.push(t(o,n,s,a))),n=s,1===o)break}}var o=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),s=function(){function t(e,t){this.flags=e,this.escapedName=t}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!0,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(t){return this.documentationComment||(this.documentationComment=e.emptyArray,this.documentationComment=p(this.declarations,t)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),c=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return a(t,e),t}(o),u=function(t){function r(e,r,n){return t.call(this,r,n)||this}return a(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),r}(o);u.prototype.kind=71;var l=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getSymbol=function(){return this.symbol},t.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},t.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},t.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},t.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},t.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},t.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},t.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},t.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},t.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},t.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},t.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},t.prototype.isUnion=function(){return!!(131072&this.flags)},t.prototype.isIntersection=function(){return!!(262144&this.flags)},t.prototype.isUnionOrIntersection=function(){return!!(393216&this.flags)},t.prototype.isLiteral=function(){return!!(224&this.flags)},t.prototype.isStringLiteral=function(){return!!(32&this.flags)},t.prototype.isNumberLiteral=function(){return!!(64&this.flags)},t.prototype.isTypeParameter=function(){return!!(32768&this.flags)},t.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},t.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},t}(),_=function(){function t(e){this.checker=e}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=p(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}();function d(t){return e.getJSDocTags(t).some(function(e){return"inheritDoc"===e.tagName.text})}function p(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t);if(0===n.length||t.some(d))for(var i=0,a=t;i<a.length;i++){var o=a[i],s=f(o,o.symbol.name,r);s&&(n=0===n.length?s.slice():s.concat(e.lineBreakPart(),n))}return n}function f(t,r,n){return e.firstDefined(t.parent?e.getAllSuperTypeNodes(t.parent):e.emptyArray,function(e){var t=n.getTypeAtLocation(e),i=t&&n.getPropertyOfType(t,r),a=i&&i.getDocumentationComment(n);return a&&a.length?a:void 0})}var g=function(t){function r(e,r,n){return t.call(this,e,r,n)||this}return a(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r){return e.getPositionOfLineAndCharacter(this,t,r)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return e.forEachChild(this,function i(a){switch(a.kind){case 233:case 191:case 153:case 152:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);r||t.set(e,r=[]);return r}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 234:case 204:case 235:case 236:case 237:case 238:case 242:case 251:case 247:case 244:case 245:case 155:case 156:case 165:r(a),e.forEachChild(a,i);break;case 148:if(!e.hasModifier(a,92))break;case 231:case 181:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 272:case 151:case 150:r(a);break;case 249:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 243:var _=a.importClause;_&&(_.name&&r(_),_.namedBindings&&(245===_.namedBindings.kind?r(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 199:0!==e.getSpecialPropertyAssignmentKind(a)&&r(a);default:e.forEachChild(a,i)}}),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),y=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function h(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!v(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[v(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function v(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function b(){return{target:1,jsx:1}}e.toEditorSettings=h,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=b,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var x=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var n=0,i=t.getScriptFileNames();n<i.length;n++){var a=i[n];this.createEntry(a,e.toPath(a,this.currentDirectory,r))}this._compilationSettings=t.getCompilationSettings()||{target:1,jsx:1}}return t.prototype.compilationSettings=function(){return this._compilationSettings},t.prototype.createEntry=function(t,r){var n,i=this.host.getScriptSnapshot(t);return n=i?{hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:i,scriptKind:e.getScriptKind(t,this.host)}:t,this.fileNameToEntry.set(r,n),n},t.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},t.prototype.getHostFileInformation=function(t){var r=this.fileNameToEntry.get(t);return e.isString(r)?void 0:r},t.prototype.getOrCreateEntryByPath=function(t,r){var n=this.getEntryByPath(r)||this.createEntry(t,r);return e.isString(n)?void 0:n},t.prototype.getRootFileNames=function(){return e.arrayFrom(this.fileNameToEntry.values(),function(t){return e.isString(t)?t:t.hostFileName})},t.prototype.getVersion=function(e){var t=this.getHostFileInformation(e);return t&&t.version},t.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},t}(),S=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r=this.host.getScriptSnapshot(t);if(!r)throw new Error("Could not find file: '"+t+"'.");var n,i=e.getScriptKind(t,this.host),a=this.host.getScriptVersion(t);if(this.currentFileName!==t)n=D(t,r,6,a,!0,i);else if(this.currentFileVersion!==a){var o=r.getChangeRange(this.currentFileScriptSnapshot);n=T(this.currentSourceFile,r,a,o)}return n&&(this.currentFileVersion=a,this.currentFileName=t,this.currentFileScriptSnapshot=r,this.currentSourceFile=n),this.currentSourceFile},t}();function k(e,t,r){e.version=r,e.scriptSnapshot=t}function D(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return k(s,r,i),s}function T(t,r,n,i,a){if(i&&n!==t.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var u=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+u+c:s?s+u:u+c}var l=e.updateSourceFile(t,o,i,a);return k(l,r,n),l.nameTable=void 0,t!==l&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),l}return D(t.fileName,r,t.languageVersion,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=D,e.disableIncrementalParsing=!1,e.updateLanguageServiceSourceFile=T;var C=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken&&this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}(),E=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();function N(t){var r=e.createMap();return{get:function(n){if(r.has(n))return r.get(n);if(t.fileExists&&t.readFile&&t.fileExists(n)){var i={text:t.readFile(n),lineMap:void 0,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}};return r.set(n,i),i}}}}function A(t,r){var n=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(r));if(n&&t){var i=[],a=t.getProperty(n);if(131072&t.flags)return e.forEach(t.types,function(e){var t=e.getProperty(n);t&&i.push(t)}),i;if(a)return i.push(a),i}}e.ThrottledCancellationToken=E,e.createSourceFileLikeCache=N,e.createLanguageService=function(t,r,i){void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),void 0===i&&(i=!1);var a,o,s,c=new S(t),u=0,l=new C(t.getCancellationToken&&t.getCancellationToken()),_=t.getCurrentDirectory();function d(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var p=e.hostUsesCaseSensitiveFileNames(t),f=e.createGetCanonicalFileName(p);function m(e){var t=a.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function g(){if(e.Debug.assert(!i),t.getProjectVersion){var n=t.getProjectVersion();if(n){if(o===n&&!t.hasChangedAutomaticTypeDirectiveNames)return;o=n}}var c=t.getTypeRootsVersion?t.getTypeRootsVersion():0;u!==c&&(d("TypeRoots version has changed; provide new program"),a=void 0,u=c);var m=new x(t,f),g=m.getRootFileNames(),y=t.hasInvalidatedResolution||e.returnFalse;if(!e.isProgramUptoDate(a,g,m.compilationSettings(),function(e){return m.getVersion(e)},S,y,t.hasChangedAutomaticTypeDirectiveNames)){var h=m.compilationSettings(),v={getSourceFile:function(t,r,n,i){return k(t,e.toPath(t,_,f),0,0,i)},getSourceFileByPath:k,getCancellationToken:function(){return l},getCanonicalFileName:f,useCaseSensitiveFileNames:function(){return p},getNewLine:function(){return e.getNewLineCharacter(h,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return _},fileExists:S,readFile:function(r){var n=e.toPath(r,_,f),i=m.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)},realpath:t.realpath&&function(e){return t.realpath(e)},directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},onReleaseOldSourceFile:function(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.path,n)},hasInvalidatedResolution:y,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};t.trace&&(v.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(v.resolveModuleNames=function(e,r,n){return t.resolveModuleNames(e,r,n)}),t.resolveTypeReferenceDirectives&&(v.resolveTypeReferenceDirectives=function(e,r){return t.resolveTypeReferenceDirectives(e,r)});var b=r.getKeyForCompilationSettings(h);return a=e.createProgram(g,h,v,a),m=void 0,s=N(t),void a.getTypeChecker()}function S(r){var n=e.toPath(r,_,f),i=m.getEntryByPath(n);return i?!e.isString(i):t.fileExists&&t.fileExists(r)}function k(t,n,i,o,s){e.Debug.assert(void 0!==m);var c=m.getOrCreateEntryByPath(t,n);if(c){if(!s){var u=a&&a.getSourceFileByPath(n);if(u)return e.Debug.assertEqual(c.scriptKind,u.scriptKind,"Registered script kind should match new script kind.",n),r.updateDocumentWithKey(t,n,h,b,c.scriptSnapshot,c.version,c.scriptKind)}return r.acquireDocumentWithKey(t,n,h,b,c.scriptSnapshot,c.version,c.scriptKind)}}}function y(){if(!i)return g(),a;e.Debug.assert(void 0===a)}var v=/^\/\/[@#] source[M]appingURL=(.+)$/gm,b=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function k(r,n,i){var o;try{o=JSON.parse(n)}catch(e){}return o&&o.sources&&o.file&&o.mappings?r.sourceMapper=e.sourcemaps.decode({readFile:function(e){return t.readFile(e)},fileExists:function(e){return t.fileExists(e)},getCanonicalFileName:f,log:d},i,o,a,s):r.sourceMapper=e.sourcemaps.identitySourceMapper}function D(r,n){if(!t.readFile||!t.fileExists)return n.sourceMapper=e.sourcemaps.identitySourceMapper;if(n.sourceMapper)return n.sourceMapper;var i=function(t){var r=s.get(e.toPath(t,_,f));if(r)for(var n=e.getLineStarts(r),i=n.length-1;i>=0;i--){v.lastIndex=n[i];var a=v.exec(r.text);if(a)return a[1]}}(r);if(i){var a=b.exec(i);if(a){if(a[1]){var o=a[1];return k(n,e.base64decode(e.sys,o),r)}i=void 0}}var c=[];i&&c.push(i),c.push(r+".map");for(var u=0,l=c;u<l.length;u++){var d=l[u],p=e.toPath(d,e.getDirectoryPath(r),f);if(t.fileExists(p))return k(n,t.readFile(p),p)}return n.sourceMapper=e.sourcemaps.identitySourceMapper}function T(t,r){return function n(i){var o=t(i);if(e.endsWith(o.fileName,".d.ts")){var c=a.getSourceFile(o.fileName);if(!c){var u=e.toPath(o.fileName,_,f);c=s.get(u)}if(!c)return i;var l=D(o.fileName,c),d=l.getOriginalPosition(o);return d===o?i:n(r(d,i))}return i}}var E=T(function(e){return{fileName:e.fileName,position:e.textSpan.start}},function(e,t){return{containerKind:t.containerKind,containerName:t.containerName,fileName:e.fileName,kind:t.kind,name:t.name,textSpan:{start:e.position,length:t.textSpan.length}}});function A(t){return e.map(t,E)}var P=T(function(e){return{fileName:e.fileName,position:e.textSpan.start}},function(e,t){return{fileName:e.fileName,kind:t.kind,displayParts:t.displayParts,textSpan:{start:e.position,length:t.textSpan.length}}});function w(t,r,n){e.Debug.assert(n.some(function(r){return e.normalizePath(r)===t})),g();var i=e.map(n,function(t){return e.Debug.assertDefined(a.getSourceFile(t))}),o=m(t);return e.DocumentHighlights.getDocumentHighlights(a,l,o,r,i)}function F(t,r,n){g();var i=[];if(n&&n.isForRename)for(var o=0,s=a.getSourceFiles();o<s.length;o++){var c=s[o];a.isSourceFileDefaultLibrary(c)||i.push(c)}else i=a.getSourceFiles().slice();return e.FindAllReferences.findReferencedEntries(a,l,i,m(t),r,n)}function O(e){return c.getCurrentSourceFile(e)}function I(r){var n=e.getScriptKind(r,t);return 3===n||4===n}var M,L=e.createMapFromTemplate(((M={})[17]=18,M[19]=20,M[21]=22,M[29]=27,M));function R(r){switch(r.type){case"install package":return t.installPackage?t.installPackage({fileName:e.toPath(r.file,_,f),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`");default:e.Debug.fail()}}function B(r,n,i,a){var o="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:o[0],endPosition:o[1],program:y(),host:t,formatContext:e.formatting.getFormatContext(a),cancellationToken:l,preferences:i}}return L.forEach(function(e,t){return L.set(e.toString(),Number(t))}),{dispose:function(){a&&(e.forEach(a.getSourceFiles(),function(e){return r.releaseDocument(e.fileName,a.getCompilerOptions())}),a=void 0),t=void 0},cleanupSemanticCache:function(){a=void 0},getSyntacticDiagnostics:function(e){return g(),a.getSyntacticDiagnostics(m(e),l).slice()},getSemanticDiagnostics:function(e){g();var t=m(e),r=a.getSemanticDiagnostics(t,l);if(!a.getCompilerOptions().declaration)return r.slice();var n=a.getDeclarationDiagnostics(t,l);return r.concat(n)},getSuggestionDiagnostics:function(t){return g(),e.computeSuggestionDiagnostics(m(t),a)},getCompilerOptionsDiagnostics:function(){return g(),a.getOptionsDiagnostics(l).concat(a.getGlobalDiagnostics(l))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r){return I(t)?(g(),e.getSemanticClassifications(a.getTypeChecker(),l,m(t),a.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r){return I(t)?(g(),e.getEncodedSemanticClassifications(a.getTypeChecker(),l,m(t),a.getClassifiableNames(),r)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(r,i,o){void 0===o&&(o=e.defaultPreferences);var s=n({},e.identity(o),{includeCompletionsForModuleExports:o.includeCompletionsForModuleExports||o.includeExternalModuleExports,includeCompletionsWithInsertText:o.includeCompletionsWithInsertText||o.includeInsertTextCompletions});return g(),e.Completions.getCompletionsAtPosition(t,a,d,m(r),i,s,o.triggerCharacter)},getCompletionEntryDetails:function(r,n,i,o,s,c){return void 0===c&&(c=e.defaultPreferences),g(),e.Completions.getCompletionEntryDetails(a,d,m(r),n,{name:i,source:s},t,o&&e.formatting.getFormatContext(o),f,c)},getCompletionEntrySymbol:function(t,r,n,i){return g(),e.Completions.getCompletionEntrySymbol(a,d,m(t),r,{name:n,source:i})},getSignatureHelpItems:function(t,r){g();var n=m(t);return e.SignatureHelp.getSignatureHelpItems(a,n,r,l)},getQuickInfoAtPosition:function(t,r){g();var n=m(t),i=e.getTouchingPropertyName(n,r,!0);if(i!==n){var o=a.getTypeChecker(),s=function(t,r){if((e.isIdentifier(t)||e.isStringLiteral(t))&&e.isPropertyAssignment(t.parent)&&t.parent.name===t){var n=r.getContextualType(t.parent.parent),i=n&&r.getPropertyOfType(n,e.getTextOfIdentifierOrLiteral(t));if(i)return i}return r.getSymbolAtLocation(t)}(i,o);if(s&&!o.isUnknownSymbol(s)){var c=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(o,s,n,e.getContainerNode(i),i),u=c.symbolKind,l=c.displayParts,_=c.documentation,d=c.tags;return{kind:u,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(i,n),displayParts:l,documentation:_,tags:d}}switch(i.kind){case 71:if(e.isLabelName(i))return;case 184:case 145:case 99:case 173:case 97:var p=o.getTypeAtLocation(i);return p&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(i,n),displayParts:e.typeToDisplayParts(o,p,e.getContainerNode(i)),documentation:p.symbol?p.symbol.getDocumentationComment(o):void 0,tags:p.symbol?p.symbol.getJsDocTags():void 0}}}},getDefinitionAtPosition:function(t,r){return g(),A(e.GoToDefinition.getDefinitionAtPosition(a,m(t),r))},getDefinitionAndBoundSpan:function(t,r){g();var n=e.GoToDefinition.getDefinitionAndBoundSpan(a,m(t),r);if(!n)return n;var i=A(n.definitions);return i===n.definitions?n:{definitions:i,textSpan:n.textSpan}},getImplementationAtPosition:function(t,r){return g(),n=e.FindAllReferences.getImplementationsAtPosition(a,l,a.getSourceFiles(),m(t),r),e.map(n,P);var n},getTypeDefinitionAtPosition:function(t,r){return g(),A(e.GoToDefinition.getTypeDefinitionAtPosition(a.getTypeChecker(),m(t),r))},getReferencesAtPosition:function(e,t){return F(e,t)},findReferences:function(t,r){return g(),e.FindAllReferences.findReferencedSymbols(a,l,a.getSourceFiles(),m(t),r)},getOccurrencesAtPosition:function(t,r){return e.flatMap(w(t,r,[t]),function(e){return e.highlightSpans.map(function(t){return{fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1,isInString:t.isInString}})})},getDocumentHighlights:w,getNameOrDottedNameSpan:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r,!1);if(a!==i){switch(a.kind){case 184:case 145:case 9:case 86:case 101:case 95:case 97:case 99:case 173:case 71:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(238!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=c.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){g();var o=n?[m(n)]:a.getSourceFiles();return e.NavigateTo.getNavigateToItems(o,a.getTypeChecker(),l,t,r,i)},getRenameInfo:function(r,n){g();var i=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(a.getTypeChecker(),i,f,m(r),n)},findRenameLocations:function(e,t,r,n){return F(e,t,{findInStrings:r,findInComments:n,isForRename:!0})},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(t),l)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(t),l)},getOutliningSpans:function(t){var r=c.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,l)},getTodoComments:function(t,r){g();var n=m(t);l.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),u=void 0;u=c.exec(o);){l.throwIfCancellationRequested(),e.Debug.assert(u.length===r.length+3);var _=u[1],d=u.index+_.length;if(e.isInComment(n,d)){for(var p=void 0,f=0;f<r.length;f++)u[f+3]&&(p=r[f]);if(e.Debug.assert(void 0!==p),!((i=o.charCodeAt(d+p.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var y=u[2];s.push({descriptor:p,message:y,position:d})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.getTouchingToken(n,r,!1),a=i.getStart(n)===r?L.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=h(n),o=c.getCurrentSourceFile(t);d("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return d("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(t,r,n,i){var a=c.getCurrentSourceFile(t);return e.formatting.formatSelection(r,n,a,e.formatting.getFormatContext(h(i)))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(c.getCurrentSourceFile(t),e.formatting.getFormatContext(h(r)))},getFormattingEditsAfterKeystroke:function(t,r,n,i){var a=c.getCurrentSourceFile(t),o=e.formatting.getFormatContext(h(i));if(!e.isInComment(a,r))switch(n){case"{":return e.formatting.formatOnOpeningCurly(r,a,o);case"}":return e.formatting.formatOnClosingCurly(r,a,o);case";":return e.formatting.formatOnSemicolon(r,a,o);case"\n":return e.formatting.formatOnEnter(r,a,o)}return[]},getDocCommentTemplateAtPosition:function(r,n){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),c.getCurrentSourceFile(r),n)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=c.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getSpanOfEnclosingComment:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r,n);return a&&e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,o,s,c){void 0===c&&(c=e.defaultPreferences),g();var u=m(r),_=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(s);return e.flatMap(e.deduplicate(o,e.equateValues,e.compareValues),function(r){return l.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:u,span:_,program:a,host:t,cancellationToken:l,formatContext:d,preferences:c})})},getCombinedCodeFix:function(r,n,i,o){void 0===o&&(o=e.defaultPreferences),g(),e.Debug.assert("file"===r.type);var s=m(r.fileName),c=e.formatting.getFormatContext(i);return e.codefix.getAllFixes({fixId:n,sourceFile:s,program:a,host:t,cancellationToken:l,formatContext:c,preferences:o})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map(R)):R(n)},organizeImports:function(r,n,i){void 0===i&&(i=e.defaultPreferences),g(),e.Debug.assert("file"===r.type);var o=m(r.fileName),s=e.formatting.getFormatContext(n);return e.OrganizeImports.organizeImports(o,s,t,a,i)},getEditsForFileRename:function(r,n,i){return e.getEditsForFileRename(y(),r,n,t,e.formatting.getFormatContext(i))},getEmitOutput:function(r,n){g();var i=m(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(a,i,n,l,o)},getNonBoundSourceFile:O,getSourceFile:function(e){return O(e)},getProgram:y,getApplicableRefactors:function(t,r,n){void 0===n&&(n=e.defaultPreferences),g();var i=m(t);return e.refactor.getApplicableRefactors(B(i,r,n))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.defaultPreferences),g();var s=m(t);return e.refactor.getEditsForRefactor(B(s,n,o,r),i,a)}}},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(n){if(e.isIdentifier(n)&&n.escapedText||e.isStringOrNumericLiteral(n)&&function(t){return e.isDeclarationName(t)||253===t.parent.kind||function(e){return e&&e.parent&&185===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];e.forEachChild(s,t)}})}(t),t.nameTable},e.getContainingObjectLiteralElement=function(t){switch(t.kind){case 9:case 8:if(146===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 71:return!e.isObjectLiteralElement(t.parent)||183!==t.parent.parent.kind&&262!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}},e.getPropertySymbolsFromContextualType=function(e,t){var r=t.parent;return A(e.getContextualType(r),t.name)},e.getPropertySymbolsFromType=A,e.getDefaultLibFilePath=function(t){if(void 0!==m)return m+e.directorySeparator+e.getDefaultLibFileName(t);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")},e.objectAllocator={getNodeConstructor:function(){return r},getTokenConstructor:function(){return c},getIdentifierConstructor:function(){return u},getSourceFileConstructor:function(){return g},getSymbolConstructor:function(){return s},getTypeConstructor:function(){return l},getSignatureConstructor:function(){return _},getSourceMapSourceConstructor:function(){return y}}}(o||(o={})),function(e){!function(t){t.spanInSourceFileAtLocation=function(t,r){if(!t.isDeclarationFile){var n=e.getTokenAtPosition(t,r,!1),i=t.getLineAndCharacterOfPosition(r).line;if((!(t.getLineAndCharacterOfPosition(n.getStart(t)).line>i)||(n=e.findPrecedingToken(n.pos,t))&&t.getLineAndCharacterOfPosition(n.getEnd()).line===i)&&!(2097152&n.flags))return l(n)}function a(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function o(t,r){return a(t,e.findNextToken(r,r.parent))}function s(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?l(e):l(r)}function c(r){return l(e.findPrecedingToken(r.pos,t))}function u(t){return l(e.findNextToken(t,t.parent))}function l(r){if(r)switch(r.kind){case 213:return b(r.declarationList.declarations[0]);case 231:case 151:case 150:return b(r);case 148:return function t(r){if(e.isBindingPattern(r.name))return D(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}(r))return a(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):l(n.body)}(r);case 233:case 153:case 152:case 155:case 156:case 154:case 191:case 192:return function(e){if(e.body)return x(e)?a(e):l(e.body)}(r);case 212:if(e.isFunctionBlock(r))return y=(g=r).statements.length?g.statements[0]:g.getLastToken(),x(g.parent)?s(g.parent,y):l(y);case 239:return S(r);case 268:return S(r.block);case 215:return a(r.expression);case 224:return a(r.getChildAt(0),r.expression);case 218:return o(r,r.expression);case 217:return l(r.statement);case 230:return a(r.getChildAt(0));case 216:return o(r,r.expression);case 227:return l(r.statement);case 223:case 222:return a(r.getChildAt(0),r.label);case 219:return(m=r).initializer?k(m):m.condition?a(m.condition):m.incrementor?a(m.incrementor):void 0;case 220:return o(r,r.expression);case 221:return k(r);case 226:return o(r,r.expression);case 265:case 266:return l(r.statements[0]);case 229:return S(r.tryBlock);case 228:case 248:return a(r,r.expression);case 242:return a(r,r.moduleReference);case 243:case 249:return a(r,r.moduleSpecifier);case 238:if(1!==e.getModuleInstanceState(r))return;case 234:case 237:case 272:case 181:return a(r);case 225:return l(r.statement);case 149:return h=r.parent.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,h.pos),h.end);case 179:case 180:return D(r);case 235:case 236:return;case 25:case 1:return s(e.findPrecedingToken(r.pos,t));case 26:return c(r);case 17:return function(r){switch(r.parent.kind){case 237:var n=r.parent;return s(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 234:var i=r.parent;return s(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 240:return s(r.parent.parent,r.parent.clauses[0])}return l(r.parent)}(r);case 18:return function(t){switch(t.parent.kind){case 239:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 237:case 234:return a(t);case 212:if(e.isFunctionBlock(t.parent))return a(t);case 268:return l(e.lastOrUndefined(t.parent.statements));case 240:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?l(e.lastOrUndefined(n.statements)):void 0;case 179:var i=t.parent;return l(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return a(e.lastOrUndefined(o.properties)||o)}return l(t.parent)}}(r);case 22:return function(t){switch(t.parent.kind){case 180:var r=t.parent;return a(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return a(e.lastOrUndefined(n.elements)||n)}return l(t.parent)}}(r);case 19:return function(e){return 217===e.parent.kind||186===e.parent.kind||187===e.parent.kind?c(e):190===e.parent.kind?u(e):l(e.parent)}(r);case 20:return function(e){switch(e.parent.kind){case 191:case 233:case 192:case 153:case 152:case 155:case 156:case 154:case 218:case 217:case 219:case 221:case 186:case 187:case 190:return c(e);default:return l(e.parent)}}(r);case 56:return function(t){return e.isFunctionLike(t.parent)||269===t.parent.kind||148===t.parent.kind?c(t):l(t.parent)}(r);case 29:case 27:return function(e){return 189===e.parent.kind?u(e):l(e.parent)}(r);case 106:return function(e){return 217===e.parent.kind?o(e,e.parent.expression):l(e.parent)}(r);case 82:case 74:case 87:return u(r);case 144:return function(e){return 221===e.parent.kind?u(e):l(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return T(r);if((71===r.kind||203===r.kind||269===r.kind||270===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return a(r);if(199===r.kind){var n=r,i=n.left,_=n.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(i))return T(i);if(58===_.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return a(r);if(26===_.kind)return l(i)}if(e.isExpressionNode(r))switch(r.parent.kind){case 217:return c(r);case 149:return l(r.parent);case 219:case 221:return a(r);case 199:if(26===r.parent.operatorToken.kind)return a(r);break;case 192:if(r.parent.body===r)return a(r)}switch(r.parent.kind){case 269:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return l(r.parent.initializer);break;case 189:if(r.parent.type===r)return u(r.parent.type);break;case 231:case 148:var d=r.parent,p=d.initializer,f=d.type;if(p===r||f===r||e.isAssignmentOperator(r.kind))return c(r);break;case 199:if(i=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(i)&&r!==i)return c(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return c(r)}return l(r.parent)}var m,g,y,h;function v(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?a(e.findPrecedingToken(r.pos,t,r.parent),r):a(r)}function b(r){return 220===r.parent.parent.kind?l(r.parent.parent):e.isBindingPattern(r.name)?D(r.name):r.initializer||e.hasModifier(r,1)||221===r.parent.parent.kind?v(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?l(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function x(t){return e.hasModifier(t,1)||234===t.parent.kind&&154!==t.kind}function S(r){switch(r.parent.kind){case 238:if(1!==e.getModuleInstanceState(r.parent))return;case 218:case 216:case 220:return s(r.parent,r.statements[0]);case 219:case 221:return s(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return l(r.statements[0])}function k(e){if(232!==e.initializer.kind)return l(e.initializer);var t=e.initializer;return t.declarations.length>0?l(t.declarations[0]):void 0}function D(t){var r=e.forEach(t.elements,function(e){return 205!==e.kind?e:void 0});return r?l(r):181===t.parent.kind?a(t.parent):v(t.parent)}function T(t){e.Debug.assert(180!==t.kind&&179!==t.kind);var r=182===t.kind?t.elements:t.properties,n=e.forEach(r,function(e){return 205!==e.kind?e:void 0});return n?l(n):a(199===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(o||(o={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(o||(o={}));var o,s,c=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var n=function(){function e(e){this.scriptSnapshotShim=e}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var r=e,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e}(),i=function(){function e(e){var r=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return t.map(e,function(e){var r=t.getProperty(i,e);return r?{resolvedFileName:r,extension:t.extensionFromPath(r),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return t.map(e,function(e){return t.getProperty(i,e)})})}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},e.prototype.error=function(e){this.shimHost.error(e)},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new n(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.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}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=i;var o=function(){function e(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)})}return e.prototype.readDirectory=function(e,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();function s(e,t,r,n){return u(e,t,!0,r,n)}function u(e,n,i,a,o){try{var s=function(e,r,n,i){var a;i&&(e.log(r),a=t.timestamp());var o=n();if(i){var s=t.timestamp();if(e.log(r+" completed in "+(s-a)+" msec"),t.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(e,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,i),i.description=n,JSON.stringify({error:i}))}}t.CoreServicesShimHostAdapter=o;var l=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function _(e,r){return e.map(function(e){return function(e,r){return{message:t.flattenDiagnosticMessageText(e.messageText,r),start:e.start,length:e.length,category:t.diagnosticCategoryName(e),code:e.code}}(e,r)})}t.realizeDiagnostics=_;var d=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return a(r,e),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,c&&c.CollectGarbage&&(c.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},r.prototype.realizeDiagnostics=function(e){return _(e,t.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(r,n))})},r.prototype.getSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(r,n))})},r.prototype.getEncodedSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return p(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(r,n)))})},r.prototype.getEncodedSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return p(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(r,n)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return r.languageService.getSignatureHelpItems(e,t)})},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return r.languageService.getRenameInfo(e,t)})},r.prototype.findRenameLocations=function(e,t,r,n){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+")",function(){return i.languageService.findRenameLocations(e,t,r,n)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(e,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+r+")",function(){var a=i.languageService.getDocumentHighlights(e,r,JSON.parse(n)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",function(){var s=void 0===n?void 0:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,s,i,a)})},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return u(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(l);function p(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var f=function(e){function r(r,n){var i=e.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return a(r,e),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return s(this.logger,"getEncodedLexicalClassifications",function(){return p(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+=n.finalLexState},r}(l),m=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.logger=r,i.host=n,i.logPerformance=!1,i}return a(r,e),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.prototype.resolveModuleName=function(e,r,n){var i=this;return this.forwardJSONCall("resolveModuleName('"+e+"')",function(){var a=JSON.parse(n),o=t.resolveModuleName(r,t.normalizeSlashes(e),a,i.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}})},r.prototype.resolveTypeReferenceDirective=function(e,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+e+")",function(){var a=JSON.parse(n),o=t.resolveTypeReferenceDirective(r,t.normalizeSlashes(e),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}})},r.prototype.getPreProcessedFileInfo=function(e,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+e+"')",function(){var e=t.preProcessFile(t.getSnapshotText(r),!0,!0);return{referencedFiles:n.convertFileReferences(e.referencedFiles),importedFiles:n.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:n.convertFileReferences(e.typeReferenceDirectives)}})},r.prototype.getAutomaticTypeDirectiveNames=function(e){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+e+"')",function(){var n=JSON.parse(e);return t.getAutomaticTypeDirectiveNames(n,r.host)})},r.prototype.convertFileReferences=function(e){if(e){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];r.push({path:t.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return r}},r.prototype.getTSConfigFileInfo=function(e,r){var n=this;return this.forwardJSONCall("getTSConfigFileInfo('"+e+"')",function(){var i=t.parseJsonText(e,t.getSnapshotText(r)),a=t.normalizeSlashes(e),o=t.parseJsonSourceFileConfigFileContent(i,n.host,t.getDirectoryPath(a),{},a);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:_(i.parseDiagnostics.concat(o.errors),"\r\n")}})},r.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return t.getDefaultCompilerOptions()})},r.prototype.discoverTypings=function(e){var r=this,n=t.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var i=JSON.parse(e);return void 0===r.safeList&&(r.safeList=t.JsTyping.loadSafeList(r.host,t.toPath(i.safeListPath,i.safeListPath,n))),t.JsTyping.discoverTypings(r.host,function(e){return r.logger.log(e)},i.fileNames,t.toPath(i.projectRootPath,i.projectRootPath,n),r.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)})},r}(l),g=function(){function e(){this._shims=[]}return e.prototype.getServicesVersion=function(){return t.servicesVersion},e.prototype.createLanguageServiceShim=function(e){try{void 0===this.documentRegistry&&(this.documentRegistry=t.createDocumentRegistry(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));var n=new i(e),a=t.createLanguageService(n,this.documentRegistry,!1);return new d(this,e,a)}catch(t){throw r(e,t),t}},e.prototype.createClassifierShim=function(e){try{return new f(this,e)}catch(t){throw r(e,t),t}},e.prototype.createCoreServicesShim=function(e){try{var t=new o(e);return new m(this,e,t)}catch(t){throw r(e,t),t}},e.prototype.close=function(){t.clear(this._shims),this.documentRegistry=void 0},e.prototype.registerShim=function(e){this._shims.push(e)},e.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},e}();t.TypeScriptServicesFactory=g,e.exports&&(e.exports=t)}(o||(o={})),function(e){!function(e){e.TypeScriptServicesFactory=o.TypeScriptServicesFactory}(e.Services||(e.Services={}))}(s||(s={}));o.versionMajorMinor}));n(It);var Mt=1/0,Lt="[object Symbol]",Rt=/&(?:amp|lt|gt|quot|#39|#96);/g,Bt=RegExp(Rt.source),jt="object"==p(r)&&r&&r.Object===Object&&r,Jt="object"==("undefined"==typeof self?"undefined":p(self))&&self&&self.Object===Object&&self,zt=jt||Jt||Function("return this")();var Kt,Ut=(Kt={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},function(e){return null==Kt?void 0:Kt[e]}),qt=Object.prototype.toString,Vt=zt.Symbol,Wt=Vt?Vt.prototype:void 0,Ht=Wt?Wt.toString:void 0;function Gt(e){if("string"==typeof e)return e;if(function(e){return"symbol"==p(e)||function(e){return!!e&&"object"==p(e)}(e)&&qt.call(e)==Lt}(e))return Ht?Ht.call(e):"";var t=e+"";return"0"==t&&1/e==-Mt?"-0":t}var Xt=function(e){var t;return(e=null==(t=e)?"":Gt(t))&&Bt.test(e)?e.replace(Rt,Ut):e},Qt=It.SyntaxKind,Yt=[Qt.EqualsToken,Qt.PlusEqualsToken,Qt.MinusEqualsToken,Qt.AsteriskEqualsToken,Qt.SlashEqualsToken,Qt.PercentEqualsToken,Qt.LessThanLessThanEqualsToken,Qt.GreaterThanGreaterThanEqualsToken,Qt.GreaterThanGreaterThanGreaterThanEqualsToken,Qt.AmpersandEqualsToken,Qt.BarEqualsToken,Qt.CaretEqualsToken],$t=[Qt.BarBarToken,Qt.AmpersandAmpersandToken],Zt={};Zt[Qt.OpenBraceToken]="{",Zt[Qt.CloseBraceToken]="}",Zt[Qt.OpenParenToken]="(",Zt[Qt.CloseParenToken]=")",Zt[Qt.OpenBracketToken]="[",Zt[Qt.CloseBracketToken]="]",Zt[Qt.DotToken]=".",Zt[Qt.DotDotDotToken]="...",Zt[Qt.SemicolonToken]=";",Zt[Qt.CommaToken]=",",Zt[Qt.LessThanToken]="<",Zt[Qt.GreaterThanToken]=">",Zt[Qt.LessThanEqualsToken]="<=",Zt[Qt.GreaterThanEqualsToken]=">=",Zt[Qt.EqualsEqualsToken]="==",Zt[Qt.ExclamationEqualsToken]="!=",Zt[Qt.EqualsEqualsEqualsToken]="===",Zt[Qt.InstanceOfKeyword]="instanceof",Zt[Qt.ExclamationEqualsEqualsToken]="!==",Zt[Qt.EqualsGreaterThanToken]="=>",Zt[Qt.PlusToken]="+",Zt[Qt.MinusToken]="-",Zt[Qt.AsteriskToken]="*",Zt[Qt.AsteriskAsteriskToken]="**",Zt[Qt.SlashToken]="/",Zt[Qt.PercentToken]="%",Zt[Qt.PlusPlusToken]="++",Zt[Qt.MinusMinusToken]="--",Zt[Qt.LessThanLessThanToken]="<<",Zt[Qt.LessThanSlashToken]="</",Zt[Qt.GreaterThanGreaterThanToken]=">>",Zt[Qt.GreaterThanGreaterThanGreaterThanToken]=">>>",Zt[Qt.AmpersandToken]="&",Zt[Qt.BarToken]="|",Zt[Qt.CaretToken]="^",Zt[Qt.ExclamationToken]="!",Zt[Qt.TildeToken]="~",Zt[Qt.AmpersandAmpersandToken]="&&",Zt[Qt.BarBarToken]="||",Zt[Qt.QuestionToken]="?",Zt[Qt.ColonToken]=":",Zt[Qt.EqualsToken]="=",Zt[Qt.PlusEqualsToken]="+=",Zt[Qt.MinusEqualsToken]="-=",Zt[Qt.AsteriskEqualsToken]="*=",Zt[Qt.AsteriskAsteriskEqualsToken]="**=",Zt[Qt.SlashEqualsToken]="/=",Zt[Qt.PercentEqualsToken]="%=",Zt[Qt.LessThanLessThanEqualsToken]="<<=",Zt[Qt.GreaterThanGreaterThanEqualsToken]=">>=",Zt[Qt.GreaterThanGreaterThanGreaterThanEqualsToken]=">>>=",Zt[Qt.AmpersandEqualsToken]="&=",Zt[Qt.BarEqualsToken]="|=",Zt[Qt.CaretEqualsToken]="^=",Zt[Qt.AtToken]="@",Zt[Qt.InKeyword]="in",Zt[Qt.UniqueKeyword]="unique",Zt[Qt.KeyOfKeyword]="keyof";var er={SyntaxKind:Qt,isAssignmentOperator:tr,isLogicalOperator:rr,getTextForTokenKind:function(e){return Zt[e]},isESTreeClassMember:function(e){return e.kind!==Qt.SemicolonClassElement},hasModifier:function(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(function(t){return t.kind===e})},isComma:function(e){return e.kind===Qt.CommaToken},getBinaryExpressionType:function(e){if(tr(e))return"AssignmentExpression";if(rr(e))return"LogicalExpression";return"BinaryExpression"},getLocFor:ar,getLoc:function(e,t){return ar(e.getStart(),e.end,t)},isToken:or,isJSXToken:sr,getDeclarationKind:function(e){var t;switch(e.kind){case Qt.TypeAliasDeclaration:t="type";break;case Qt.VariableDeclarationList:t=function(e){return It.isLet(e)}(e)?"let":function(e){return It.isConst(e)}(e)?"const":"var";break;default:throw"Unable to determine declaration kind."}return t},getTSNodeAccessibility:function(e){var t=e.modifiers;if(!t)return null;for(var r=0;r<t.length;r++){var n=t[r];switch(n.kind){case Qt.PublicKeyword:return"public";case Qt.ProtectedKeyword:return"protected";case Qt.PrivateKeyword:return"private";default:continue}}return null},hasStaticModifierFlag:function(e){return Boolean(It.getModifierFlags(e)&It.ModifierFlags.Static)},findNextToken:cr,findFirstMatchingToken:function(e,t,r){for(;e;){if(r(e))return e;e=cr(e,t)}return},findChildOfKind:function(e,t,r){return function e(t,r,n){for(var i=t.getChildren(r),a=0;a<i.length;a++){var o=i[a];if(o&&n(o))return o;var s=e(o,r,n);if(s)return s}}(e,r,function(e){return e.kind===t})},findFirstMatchingAncestor:ur,findAncestorOfKind:function(e,t){return ur(e,function(e){return e.kind===t})},hasJSXAncestor:lr,unescapeIdentifier:function(e){return It.unescapeIdentifier(e)},unescapeStringLiteralText:function(e){return Xt(e)},isComputedProperty:function(e){return e.kind===Qt.ComputedPropertyName},isOptional:function(e){return!!e.questionToken&&e.questionToken.kind===Qt.QuestionToken},fixExports:function(e,t,r){if(e.modifiers&&e.modifiers[0].kind===Qt.ExportKeyword){var n=e.modifiers[0],i=e.modifiers[1],a=e.modifiers[e.modifiers.length-1],o=i&&i.kind===Qt.DefaultKeyword,s=cr(a,r);t.range[0]=s.getStart(),t.loc=ar(t.range[0],t.range[1],r);var c=o?"ExportDefaultDeclaration":"ExportNamedDeclaration",u={type:c,declaration:t,range:[n.getStart(),t.range[1]],loc:ar(n.getStart(),t.range[1],r)};return o||(u.specifiers=[],u.source=null),u}return t},getTokenType:_r,convertToken:dr,convertTokens:function(e){var t=[];return function r(n){if(!nr(n)&&!ir(n))if(or(n)&&n.kind!==Qt.EndOfFileToken){var i=dr(n,e);i&&t.push(i)}else n.getChildren().forEach(r)}(e),t},getNodeContainer:function(e,t,r){var n=null;return function e(i){var a=i.pos,o=i.end;t>=a&&r<=o&&(or(i)?n=i:i.getChildren().forEach(e))}(e),n},isWithinTypeAnnotation:function(e){return e.parent.type===e||e.parent.types&&e.parent.types.indexOf(e)>-1},isTypeKeyword:function(e){switch(e){case Qt.AnyKeyword:case Qt.BooleanKeyword:case Qt.NeverKeyword:case Qt.NumberKeyword:case Qt.ObjectKeyword:case Qt.StringKeyword:case Qt.SymbolKeyword:case Qt.VoidKeyword:return!0;default:return!1}},isComment:nr,isJSDocComment:ir};function tr(e){return Yt.indexOf(e.kind)>-1}function rr(e){return $t.indexOf(e.kind)>-1}function nr(e){return e.kind===Qt.SingleLineCommentTrivia||e.kind===Qt.MultiLineCommentTrivia}function ir(e){return e.kind===Qt.JSDocComment}function ar(e,t,r){var n=r.getLineAndCharacterOfPosition(e),i=r.getLineAndCharacterOfPosition(t);return{start:{line:n.line+1,column:n.character},end:{line:i.line+1,column:i.character}}}function or(e){return e.kind>=Qt.FirstToken&&e.kind<=Qt.LastToken}function sr(e){return e.kind>=Qt.JsxElement&&e.kind<=Qt.JsxAttribute}function cr(e,t){return It.findNextToken(e,t)}function ur(e,t){for(;e;){if(t(e))return e;e=e.parent}}function lr(e){return!!ur(e,sr)}function _r(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case Qt.NullKeyword:return"Null";case Qt.GetKeyword:case Qt.SetKeyword:case Qt.TypeKeyword:case Qt.ModuleKeyword:return"Identifier";default:return"Keyword"}if(e.kind>=Qt.FirstKeyword&&e.kind<=Qt.LastFutureReservedWord)return e.kind===Qt.FalseKeyword||e.kind===Qt.TrueKeyword?"Boolean":"Keyword";if(e.kind>=Qt.FirstPunctuation&&e.kind<=Qt.LastBinaryOperator)return"Punctuator";if(e.kind>=Qt.NoSubstitutionTemplateLiteral&&e.kind<=Qt.TemplateTail)return"Template";switch(e.kind){case Qt.NumericLiteral:return"Numeric";case Qt.JsxText:return"JSXText";case Qt.StringLiteral:return!e.parent||e.parent.kind!==Qt.JsxAttribute&&e.parent.kind!==Qt.JsxElement?"String":"JSXText";case Qt.RegularExpressionLiteral:return"RegularExpression";case Qt.Identifier:case Qt.ConstructorKeyword:case Qt.GetKeyword:case Qt.SetKeyword:}if(e.parent){if(e.kind===Qt.Identifier&&e.parent.kind===Qt.PropertyAccessExpression&&lr(e))return"JSXIdentifier";if(sr(e.parent)){if(e.kind===Qt.PropertyAccessExpression)return"JSXMemberExpression";if(e.kind===Qt.Identifier)return"JSXIdentifier"}}return"Identifier"}function dr(e,t){var r=e.kind===Qt.JsxText?e.getFullStart():e.getStart(),n=e.getEnd(),i=t.text.slice(r,n),a={type:_r(e),value:i,range:[r,n],loc:ar(r,n,t)};return"RegularExpression"===a.type&&(a.regex={pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}),a}var pr=er.SyntaxKind;function fr(e,t,r){var n=e.getToken()===It.SyntaxKind.MultiLineCommentTrivia,i={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},a=r.substring(i.pos,i.end),o=n?a.replace(/^\/\*/,"").replace(/\*\/$/,""):a.replace(/^\/\//,""),s=er.getLocFor(i.pos,i.end,t);return function(e,t,r,n,i,a){var o={type:e?"Block":"Line",value:t};return"number"==typeof r&&(o.range=[r,n]),"object"===p(i)&&(o.loc={start:i,end:a}),o}(n,o,i.pos,i.end,s.start,s.end)}var mr=function(e,t){var r=[],n=It.createScanner(e.languageVersion,!1,0,t),i=n.scan();for(;i!==It.SyntaxKind.EndOfFileToken;){var a=n.getTokenPos(),o=n.getTextPos(),s=null;switch(i){case It.SyntaxKind.SingleLineCommentTrivia:case It.SyntaxKind.MultiLineCommentTrivia:var c=fr(n,e,t);r.push(c);break;case It.SyntaxKind.CloseBraceToken:if((s=er.getNodeContainer(e,a,o)).kind===It.SyntaxKind.TemplateMiddle||s.kind===It.SyntaxKind.TemplateTail){i=n.reScanTemplateToken();continue}break;case It.SyntaxKind.SlashToken:case It.SyntaxKind.SlashEqualsToken:if((s=er.getNodeContainer(e,a,o)).kind===It.SyntaxKind.RegularExpressionLiteral){i=n.reScanSlashToken();continue}}i=n.scan()}return r};var gr,yr=i(function(e){var t=mr;e.exports=function(e,r){if(e.parseDiagnostics.length)throw n=e.parseDiagnostics[0],i=n.file.getLineAndCharacterOfPosition(n.start),{index:n.start,lineNumber:i.line+1,column:i.character,message:n.message||n.messageText};var n,i,a=function e(t){var r=t.node,n=t.parent,i=t.ast,a=t.additionalOptions||{};if(!r)return null;var o={type:"",range:[r.getStart(),r.end],loc:er.getLoc(r,i)};function s(e){t.additionalOptions.parseForESLint&&!e.body&&(e.type="TSEmptyBody".concat(e.type))}function c(t){return e({node:t,parent:r,ast:i,additionalOptions:a})}function u(e){var t=c(e),r=e.getFullStart()-1,n=er.getLocFor(r,e.end,i);return{type:f.TSTypeAnnotation,loc:n,range:[r,e.end],typeAnnotation:t}}function l(e){var t=e.pos-1,r=e.end+1;if(e&&e.length){var n=e[0].parent;if(n&&(n.kind===pr.CallExpression||n.kind===pr.TypeReference)){var a=e[e.length-1];r=er.findNextToken(a,i).end}}return{type:f.TSTypeParameterInstantiation,range:[t,r],loc:er.getLocFor(t,r,i),params:e.map(function(e){return er.isTypeKeyword(e.kind)?{type:f["TS".concat(pr[e.kind])],range:[e.getStart(),e.getEnd()],loc:er.getLoc(e,i)}:{type:f.TSTypeReference,range:[e.getStart(),e.getEnd()],loc:er.getLoc(e,i),typeName:c(e.typeName||e),typeParameters:e.typeArguments?l(e.typeArguments):void 0}})}}function _(t){var r=t[0],n=t[t.length-1],o=er.findNextToken(n,i);return{type:f.TSTypeParameterDeclaration,range:[r.pos-1,o.end],loc:er.getLocFor(r.pos-1,o.end,i),params:t.map(function(t){var r=er.unescapeIdentifier(t.name.text),n=t.constraint?e({node:t.constraint,parent:t,ast:i,additionalOptions:a}):void 0,o=t.default?e({node:t.default,parent:t,ast:i,additionalOptions:a}):t.default;return{type:f.TSTypeParameter,range:[t.getStart(),t.getEnd()],loc:er.getLoc(t,i),name:r,constraint:n,default:o}})}}function d(e){return e&&e.length?e.map(function(e){var t=c(e.expression);return{type:f.Decorator,range:[e.getStart(),e.end],loc:er.getLoc(e,i),expression:t}}):[]}function m(e){return e&&e.length?e.map(function(e){var t=c(e);return e.decorators&&e.decorators.length?Object.assign(t,{decorators:d(e.decorators)}):t}):[]}function g(e){var t=er.convertToken(e,i);if(t.type===f.JSXMemberExpression){var n=r.tagName.expression.kind===pr.PropertyAccessExpression;t.object=c(r.tagName.expression),t.property=c(r.tagName.name),t.object.type=n?f.JSXMemberExpression:f.JSXIdentifier,t.property.type=f.JSXIdentifier,e.expression.kind===pr.ThisKeyword&&(t.object.name="this")}else t.type=f.JSXIdentifier,t.name=t.value;return delete t.value,t}function y(e){if(e&&e.length){for(var t={},r=0;r<e.length;r++)switch(e[r].kind){case pr.ExportKeyword:case pr.DefaultKeyword:t[r]=!0;break;case pr.ConstKeyword:o.const=!0,t[r]=!0;break;case pr.DeclareKeyword:o.declare=!0,t[r]=!0}var n=e.filter(function(e,r){return!t[r]});n&&n.length&&(o.modifiers=n.map(c))}}function h(e){var t=r.type.getEnd();e.range[1]=t;var n=er.getLocFor(e.range[0],e.range[1],i);e.loc=n}switch(r.kind){case pr.SourceFile:Object.assign(o,{type:f.Program,body:[],sourceType:r.externalModuleIndicator?"module":"script"}),r.statements.forEach(function(e){var t=c(e);t&&o.body.push(t)}),o.range[1]=r.endOfFileToken.end,o.loc=er.getLocFor(r.getStart(),o.range[1],i);break;case pr.Block:Object.assign(o,{type:f.BlockStatement,body:r.statements.map(c)});break;case pr.Identifier:Object.assign(o,{type:f.Identifier,name:er.unescapeIdentifier(r.text)});break;case pr.WithStatement:Object.assign(o,{type:f.WithStatement,object:c(r.expression),body:c(r.statement)});break;case pr.ReturnStatement:Object.assign(o,{type:f.ReturnStatement,argument:c(r.expression)});break;case pr.LabeledStatement:Object.assign(o,{type:f.LabeledStatement,label:c(r.label),body:c(r.statement)});break;case pr.BreakStatement:case pr.ContinueStatement:Object.assign(o,{type:pr[r.kind],label:c(r.label)});break;case pr.IfStatement:Object.assign(o,{type:f.IfStatement,test:c(r.expression),consequent:c(r.thenStatement),alternate:c(r.elseStatement)});break;case pr.SwitchStatement:Object.assign(o,{type:f.SwitchStatement,discriminant:c(r.expression),cases:r.caseBlock.clauses.map(c)});break;case pr.CaseClause:case pr.DefaultClause:Object.assign(o,{type:f.SwitchCase,test:c(r.expression),consequent:r.statements.map(c)});break;case pr.ThrowStatement:Object.assign(o,{type:f.ThrowStatement,argument:c(r.expression)});break;case pr.TryStatement:Object.assign(o,{type:f.TryStatement,block:e({node:r.tryBlock,parent:null,ast:i,additionalOptions:a}),handler:c(r.catchClause),finalizer:c(r.finallyBlock)});break;case pr.CatchClause:Object.assign(o,{type:f.CatchClause,param:r.variableDeclaration?c(r.variableDeclaration.name):null,body:c(r.block)});break;case pr.WhileStatement:Object.assign(o,{type:f.WhileStatement,test:c(r.expression),body:c(r.statement)});break;case pr.DoStatement:Object.assign(o,{type:f.DoWhileStatement,test:c(r.expression),body:c(r.statement)});break;case pr.ForStatement:Object.assign(o,{type:f.ForStatement,init:c(r.initializer),test:c(r.condition),update:c(r.incrementor),body:c(r.statement)});break;case pr.ForInStatement:case pr.ForOfStatement:var v=!(!r.awaitModifier||r.awaitModifier.kind!==pr.AwaitKeyword);Object.assign(o,{type:pr[r.kind],left:c(r.initializer),right:c(r.expression),body:c(r.statement),await:v});break;case pr.FunctionDeclaration:var b=f.FunctionDeclaration;r.modifiers&&r.modifiers.length&&er.hasModifier(pr.DeclareKeyword,r)&&(b=f.DeclareFunction),Object.assign(o,{type:b,id:c(r.name),generator:!!r.asteriskToken,expression:!1,async:er.hasModifier(pr.AsyncKeyword,r),params:m(r.parameters),body:c(r.body)}),r.type&&(o.returnType=u(r.type)),r.typeParameters&&r.typeParameters.length&&(o.typeParameters=_(r.typeParameters)),s(o),o=er.fixExports(r,o,i);break;case pr.VariableDeclaration:Object.assign(o,{type:f.VariableDeclarator,id:c(r.name),init:c(r.initializer)}),r.exclamationToken&&(o.definite=!0),r.type&&(o.id.typeAnnotation=u(r.type),h(o.id));break;case pr.VariableStatement:Object.assign(o,{type:f.VariableDeclaration,declarations:r.declarationList.declarations.map(c),kind:er.getDeclarationKind(r.declarationList)}),o=er.fixExports(r,o,i);break;case pr.VariableDeclarationList:Object.assign(o,{type:f.VariableDeclaration,declarations:r.declarations.map(c),kind:er.getDeclarationKind(r)});break;case pr.ExpressionStatement:Object.assign(o,{type:f.ExpressionStatement,expression:c(r.expression)});break;case pr.ThisKeyword:Object.assign(o,{type:f.ThisExpression});break;case pr.ArrayLiteralExpression:var x,S=er.findAncestorOfKind(r,pr.BinaryExpression),k=r.parent&&r.parent.kind===pr.ForOfStatement,D=r.parent&&r.parent.kind===pr.ForInStatement;S&&(x=S.left===r||er.findChildOfKind(S.left,pr.ArrayLiteralExpression,i)===r),x||k||D?Object.assign(o,{type:f.ArrayPattern,elements:r.elements.map(c)}):Object.assign(o,{type:f.ArrayExpression,elements:r.elements.map(c)});break;case pr.ObjectLiteralExpression:var T=er.findFirstMatchingAncestor(r,function(e){return e.kind===pr.BinaryExpression||e.kind===pr.ArrowFunction}),C=T&&T.kind===pr.BinaryExpression&&T.operatorToken.kind===pr.FirstAssignment?T:null,E=!1;C&&(E=C.left===r||er.findChildOfKind(C.left,pr.ObjectLiteralExpression,i)===r),E?Object.assign(o,{type:f.ObjectPattern,properties:r.properties.map(c)}):Object.assign(o,{type:f.ObjectExpression,properties:r.properties.map(c)});break;case pr.PropertyAssignment:Object.assign(o,{type:f.Property,key:c(r.name),value:c(r.initializer),computed:er.isComputedProperty(r.name),method:!1,shorthand:!1,kind:"init"});break;case pr.ShorthandPropertyAssignment:r.objectAssignmentInitializer?Object.assign(o,{type:f.Property,key:c(r.name),value:{type:f.AssignmentPattern,left:c(r.name),right:c(r.objectAssignmentInitializer),loc:o.loc,range:o.range},computed:!1,method:!1,shorthand:!0,kind:"init"}):Object.assign(o,{type:f.Property,key:c(r.name),value:c(r.initializer||r.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case pr.ComputedPropertyName:if(n.kind!==pr.ObjectLiteralExpression)return c(r.expression);Object.assign(o,{type:f.Property,key:c(r.name),value:c(r.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case pr.PropertyDeclaration:var N=er.hasModifier(pr.AbstractKeyword,r);Object.assign(o,{type:N?f.TSAbstractClassProperty:f.ClassProperty,key:c(r.name),value:c(r.initializer),computed:er.isComputedProperty(r.name),static:er.hasStaticModifierFlag(r),readonly:er.hasModifier(pr.ReadonlyKeyword,r)||void 0}),r.type&&(o.typeAnnotation=u(r.type)),r.decorators&&(o.decorators=d(r.decorators));var A=er.getTSNodeAccessibility(r);A&&(o.accessibility=A),r.name.kind===pr.Identifier&&r.questionToken&&(o.key.optional=!0),r.exclamationToken&&(o.definite=!0),o.key.type===f.Literal&&r.questionToken&&(o.optional=!0);break;case pr.GetAccessor:case pr.SetAccessor:case pr.MethodDeclaration:var P=er.findFirstMatchingToken(r.name,i,function(e){return!(!e||!e.kind)&&"("===er.getTextForTokenKind(e.kind)}),w=i.getLineAndCharacterOfPosition(P.getStart()),F=r.kind===pr.MethodDeclaration,O={type:f.FunctionExpression,id:null,generator:!!r.asteriskToken,expression:!1,async:er.hasModifier(pr.AsyncKeyword,r),body:c(r.body),range:[r.parameters.pos-1,o.range[1]],loc:{start:{line:w.line+1,column:w.character},end:o.loc.end}};if(r.type&&(O.returnType=u(r.type)),n.kind===pr.ObjectLiteralExpression)O.params=r.parameters.map(c),Object.assign(o,{type:f.Property,key:c(r.name),value:O,computed:er.isComputedProperty(r.name),method:F,shorthand:!1,kind:"init"});else{O.params=m(r.parameters);var I=er.hasModifier(pr.AbstractKeyword,r)?f.TSAbstractMethodDefinition:f.MethodDefinition;Object.assign(o,{type:I,key:c(r.name),value:O,computed:er.isComputedProperty(r.name),static:er.hasStaticModifierFlag(r),kind:"method"}),r.decorators&&(o.decorators=d(r.decorators));var M=er.getTSNodeAccessibility(r);M&&(o.accessibility=M)}o.key.type===f.Identifier&&r.questionToken&&(o.key.optional=!0),r.kind===pr.GetAccessor?o.kind="get":r.kind===pr.SetAccessor?o.kind="set":o.static||r.name.kind!==pr.StringLiteral||"constructor"!==r.name.text||(o.kind="constructor"),r.typeParameters&&r.typeParameters.length&&(O.typeParameters=_(r.typeParameters)),s(o.value);break;case pr.Constructor:var L,R=er.hasStaticModifierFlag(r),B=er.hasModifier(pr.AbstractKeyword,r),j=R?er.findNextToken(r.getFirstToken(),i):r.getFirstToken(),J=i.getLineAndCharacterOfPosition(r.parameters.pos-1),z={type:f.FunctionExpression,id:null,params:m(r.parameters),generator:!1,expression:!1,async:!1,body:c(r.body),range:[r.parameters.pos-1,o.range[1]],loc:{start:{line:J.line+1,column:J.character},end:o.loc.end}},K=i.getLineAndCharacterOfPosition(j.getStart()),U=i.getLineAndCharacterOfPosition(j.getEnd()),q=!!r.name&&er.isComputedProperty(r.name);L=q?{type:f.Literal,value:"constructor",raw:r.name.getText(),range:[j.getStart(),j.end],loc:{start:{line:K.line+1,column:K.character},end:{line:U.line+1,column:U.character}}}:{type:f.Identifier,name:"constructor",range:[j.getStart(),j.end],loc:{start:{line:K.line+1,column:K.character},end:{line:U.line+1,column:U.character}}},Object.assign(o,{type:B?f.TSAbstractMethodDefinition:f.MethodDefinition,key:L,value:z,computed:q,static:R,kind:R||q?"method":"constructor"});var V=er.getTSNodeAccessibility(r);V&&(o.accessibility=V),s(o.value);break;case pr.FunctionExpression:Object.assign(o,{type:f.FunctionExpression,id:c(r.name),generator:!!r.asteriskToken,params:m(r.parameters),body:c(r.body),async:er.hasModifier(pr.AsyncKeyword,r),expression:!1}),r.type&&(o.returnType=u(r.type)),r.typeParameters&&r.typeParameters.length&&(o.typeParameters=_(r.typeParameters));break;case pr.SuperKeyword:Object.assign(o,{type:f.Super});break;case pr.ArrayBindingPattern:Object.assign(o,{type:f.ArrayPattern,elements:r.elements.map(c)});break;case pr.OmittedExpression:return null;case pr.ObjectBindingPattern:Object.assign(o,{type:f.ObjectPattern,properties:r.elements.map(c)});break;case pr.BindingElement:if(n.kind===pr.ArrayBindingPattern){var W=e({node:r.name,parent:n,ast:i,additionalOptions:a});if(r.initializer)Object.assign(o,{type:f.AssignmentPattern,left:W,right:c(r.initializer)});else{if(!r.dotDotDotToken)return W;Object.assign(o,{type:f.RestElement,argument:W})}}else n.kind===pr.ObjectBindingPattern&&(r.dotDotDotToken?Object.assign(o,{type:f.ExperimentalRestProperty,argument:c(r.propertyName||r.name),computed:Boolean(r.propertyName&&r.propertyName.kind===pr.ComputedPropertyName),shorthand:!r.propertyName}):Object.assign(o,{type:f.Property,key:c(r.propertyName||r.name),value:c(r.name),computed:Boolean(r.propertyName&&r.propertyName.kind===pr.ComputedPropertyName),method:!1,shorthand:!r.propertyName,kind:"init"}),r.initializer&&(o.value={type:f.AssignmentPattern,left:c(r.name),right:c(r.initializer),range:[r.name.getStart(),r.initializer.end],loc:er.getLocFor(r.name.getStart(),r.initializer.end,i)}));break;case pr.ArrowFunction:Object.assign(o,{type:f.ArrowFunctionExpression,generator:!1,id:null,params:m(r.parameters),body:c(r.body),async:er.hasModifier(pr.AsyncKeyword,r),expression:r.body.kind!==pr.Block}),r.type&&(o.returnType=u(r.type)),r.typeParameters&&r.typeParameters.length&&(o.typeParameters=_(r.typeParameters));break;case pr.YieldExpression:Object.assign(o,{type:f.YieldExpression,delegate:!!r.asteriskToken,argument:c(r.expression)});break;case pr.AwaitExpression:Object.assign(o,{type:f.AwaitExpression,argument:c(r.expression)});break;case pr.NoSubstitutionTemplateLiteral:Object.assign(o,{type:f.TemplateLiteral,quasis:[{type:f.TemplateElement,value:{raw:i.text.slice(r.getStart()+1,r.end-1),cooked:r.text},tail:!0,range:o.range,loc:o.loc}],expressions:[]});break;case pr.TemplateExpression:Object.assign(o,{type:f.TemplateLiteral,quasis:[c(r.head)],expressions:[]}),r.templateSpans.forEach(function(e){o.expressions.push(c(e.expression)),o.quasis.push(c(e.literal))});break;case pr.TaggedTemplateExpression:Object.assign(o,{type:f.TaggedTemplateExpression,typeParameters:r.typeArguments?l(r.typeArguments):void 0,tag:c(r.tag),quasi:c(r.template)});break;case pr.TemplateHead:case pr.TemplateMiddle:case pr.TemplateTail:var H=r.kind===pr.TemplateTail;Object.assign(o,{type:f.TemplateElement,value:{raw:i.text.slice(r.getStart()+1,r.end-(H?1:2)),cooked:r.text},tail:H});break;case pr.SpreadElement:var G=f.SpreadElement;r.parent&&r.parent.parent&&r.parent.parent.kind===pr.BinaryExpression&&(r.parent.parent.left===r.parent?G=f.RestElement:r.parent.parent.right===r.parent&&(G=f.SpreadElement)),Object.assign(o,{type:G,argument:c(r.expression)});break;case pr.SpreadAssignment:var X=f.ExperimentalSpreadProperty;r.parent&&r.parent.parent&&r.parent.parent.kind===pr.BinaryExpression&&(r.parent.parent.right===r.parent?X=f.ExperimentalSpreadProperty:r.parent.parent.left===r.parent&&(X=f.ExperimentalRestProperty)),Object.assign(o,{type:X,argument:c(r.expression)});break;case pr.Parameter:var Q;if(r.dotDotDotToken?(Q=c(r.name),Object.assign(o,{type:f.RestElement,argument:Q})):r.initializer?(Q=c(r.name),Object.assign(o,{type:f.AssignmentPattern,left:Q,right:c(r.initializer)})):(Q=e({node:r.name,parent:n,ast:i,additionalOptions:a}),o=Q),r.type&&(Q.typeAnnotation=u(r.type),h(Q)),r.questionToken&&(Q.optional=!0),r.modifiers)return{type:f.TSParameterProperty,range:[r.getStart(),r.end],loc:er.getLoc(r,i),accessibility:er.getTSNodeAccessibility(r)||void 0,readonly:er.hasModifier(pr.ReadonlyKeyword,r)||void 0,static:er.hasModifier(pr.StaticKeyword,r)||void 0,export:er.hasModifier(pr.ExportKeyword,r)||void 0,parameter:o};break;case pr.ClassDeclaration:case pr.ClassExpression:var Y=r.heritageClauses||[],$=pr[r.kind],Z=Y.length?Y[Y.length-1]:r.name;if(r.typeParameters&&r.typeParameters.length){var ee=r.typeParameters[r.typeParameters.length-1];(!Z||ee.pos>Z.pos)&&(Z=er.findNextToken(ee,i)),o.typeParameters=_(r.typeParameters)}if(r.modifiers&&r.modifiers.length){r.kind===pr.ClassDeclaration&&er.hasModifier(pr.AbstractKeyword,r)&&($="TSAbstract".concat($));var te=r.modifiers[r.modifiers.length-1];(!Z||te.pos>Z.pos)&&(Z=er.findNextToken(te,i))}else Z||(Z=r.getFirstToken());var re=er.findNextToken(Z,i),ne=Y.find(function(e){return e.token===pr.ExtendsKeyword});ne&&ne.types[0]&&ne.types[0].typeArguments&&(o.superTypeParameters=l(ne.types[0].typeArguments));var ie=Y.find(function(e){return e.token===pr.ImplementsKeyword});Object.assign(o,{type:$,id:c(r.name),body:{type:f.ClassBody,body:[],range:[re.getStart(),o.range[1]],loc:er.getLocFor(re.getStart(),r.end,i)},superClass:ne&&ne.types[0]?c(ne.types[0].expression):null}),ie&&(o.implements=ie.types.map(function(e){var t=c(e.expression),r={type:f.ClassImplements,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=l(e.typeArguments)),r})),r.decorators&&(o.decorators=d(r.decorators));var ae=r.members.filter(er.isESTreeClassMember);ae.length&&(o.body.body=ae.map(c)),o=er.fixExports(r,o,i);break;case pr.ModuleBlock:Object.assign(o,{type:f.TSModuleBlock,body:r.statements.map(c)});break;case pr.ImportDeclaration:Object.assign(o,{type:f.ImportDeclaration,source:c(r.moduleSpecifier),specifiers:[]}),r.importClause&&(r.importClause.name&&o.specifiers.push(c(r.importClause)),r.importClause.namedBindings&&(r.importClause.namedBindings.kind===pr.NamespaceImport?o.specifiers.push(c(r.importClause.namedBindings)):o.specifiers=o.specifiers.concat(r.importClause.namedBindings.elements.map(c))));break;case pr.NamespaceImport:Object.assign(o,{type:f.ImportNamespaceSpecifier,local:c(r.name)});break;case pr.ImportSpecifier:Object.assign(o,{type:f.ImportSpecifier,local:c(r.name),imported:c(r.propertyName||r.name)});break;case pr.ImportClause:Object.assign(o,{type:f.ImportDefaultSpecifier,local:c(r.name)}),o.range[1]=r.name.end,o.loc=er.getLocFor(o.range[0],o.range[1],i);break;case pr.NamedImports:Object.assign(o,{type:f.ImportDefaultSpecifier,local:c(r.name)});break;case pr.ExportDeclaration:r.exportClause?Object.assign(o,{type:f.ExportNamedDeclaration,source:c(r.moduleSpecifier),specifiers:r.exportClause.elements.map(c),declaration:null}):Object.assign(o,{type:f.ExportAllDeclaration,source:c(r.moduleSpecifier)});break;case pr.ExportSpecifier:Object.assign(o,{type:f.ExportSpecifier,local:c(r.propertyName||r.name),exported:c(r.name)});break;case pr.ExportAssignment:r.isExportEquals?Object.assign(o,{type:f.TSExportAssignment,expression:c(r.expression)}):Object.assign(o,{type:f.ExportDefaultDeclaration,declaration:c(r.expression)});break;case pr.PrefixUnaryExpression:case pr.PostfixUnaryExpression:var oe=er.getTextForTokenKind(r.operator);Object.assign(o,{type:/^(?:\+\+|--)$/.test(oe)?f.UpdateExpression:f.UnaryExpression,operator:oe,prefix:r.kind===pr.PrefixUnaryExpression,argument:c(r.operand)});break;case pr.DeleteExpression:Object.assign(o,{type:f.UnaryExpression,operator:"delete",prefix:!0,argument:c(r.expression)});break;case pr.VoidExpression:Object.assign(o,{type:f.UnaryExpression,operator:"void",prefix:!0,argument:c(r.expression)});break;case pr.TypeOfExpression:Object.assign(o,{type:f.UnaryExpression,operator:"typeof",prefix:!0,argument:c(r.expression)});break;case pr.TypeOperator:Object.assign(o,{type:f.TSTypeOperator,operator:er.getTextForTokenKind(r.operator),typeAnnotation:c(r.type)});break;case pr.BinaryExpression:if(er.isComma(r.operatorToken)){Object.assign(o,{type:f.SequenceExpression,expressions:[]});var se=c(r.left),ce=c(r.right);se.type===f.SequenceExpression?o.expressions=o.expressions.concat(se.expressions):o.expressions.push(se),ce.type===f.SequenceExpression?o.expressions=o.expressions.concat(ce.expressions):o.expressions.push(ce)}else if(r.operatorToken&&r.operatorToken.kind===pr.AsteriskAsteriskEqualsToken)Object.assign(o,{type:f.AssignmentExpression,operator:er.getTextForTokenKind(r.operatorToken.kind),left:c(r.left),right:c(r.right)});else if(Object.assign(o,{type:er.getBinaryExpressionType(r.operatorToken),operator:er.getTextForTokenKind(r.operatorToken.kind),left:c(r.left),right:c(r.right)}),o.type===f.AssignmentExpression){var ue,le=er.findAncestorOfKind(r,pr.ArrayLiteralExpression),_e=le&&er.findAncestorOfKind(le,pr.BinaryExpression);_e&&(ue=_e.left===le||er.findChildOfKind(_e.left,pr.ArrayLiteralExpression,i)===le),ue&&(delete o.operator,o.type=f.AssignmentPattern)}break;case pr.PropertyAccessExpression:if(er.isJSXToken(n)){var de={type:f.MemberExpression,object:c(r.expression),property:c(r.name)},pe=r.expression.kind===pr.PropertyAccessExpression;r.expression.kind===pr.ThisKeyword&&(de.object.name="this"),de.object.type=pe?f.MemberExpression:f.JSXIdentifier,de.property.type=f.JSXIdentifier,Object.assign(o,de)}else Object.assign(o,{type:f.MemberExpression,object:c(r.expression),property:c(r.name),computed:!1});break;case pr.ElementAccessExpression:Object.assign(o,{type:f.MemberExpression,object:c(r.expression),property:c(r.argumentExpression),computed:!0});break;case pr.ConditionalExpression:Object.assign(o,{type:f.ConditionalExpression,test:c(r.condition),consequent:c(r.whenTrue),alternate:c(r.whenFalse)});break;case pr.CallExpression:Object.assign(o,{type:f.CallExpression,callee:c(r.expression),arguments:r.arguments.map(c)}),r.typeArguments&&r.typeArguments.length&&(o.typeParameters=l(r.typeArguments));break;case pr.NewExpression:Object.assign(o,{type:f.NewExpression,callee:c(r.expression),arguments:r.arguments?r.arguments.map(c):[]}),r.typeArguments&&r.typeArguments.length&&(o.typeParameters=l(r.typeArguments));break;case pr.MetaProperty:var fe=er.convertToken(r.getFirstToken(),i);Object.assign(o,{type:f.MetaProperty,meta:{type:f.Identifier,range:fe.range,loc:fe.loc,name:"new"},property:c(r.name)});break;case pr.StringLiteral:Object.assign(o,{type:f.Literal,raw:i.text.slice(o.range[0],o.range[1])}),n.name&&n.name===r?o.value=er.unescapeIdentifier(r.text):o.value=er.unescapeStringLiteralText(r.text);break;case pr.NumericLiteral:Object.assign(o,{type:f.Literal,value:Number(r.text),raw:i.text.slice(o.range[0],o.range[1])});break;case pr.RegularExpressionLiteral:var me=r.text.slice(1,r.text.lastIndexOf("/")),ge=r.text.slice(r.text.lastIndexOf("/")+1),ye=null;try{ye=new RegExp(me,ge)}catch(e){ye=null}Object.assign(o,{type:f.Literal,value:ye,raw:r.text,regex:{pattern:me,flags:ge}});break;case pr.TrueKeyword:Object.assign(o,{type:f.Literal,value:!0,raw:"true"});break;case pr.FalseKeyword:Object.assign(o,{type:f.Literal,value:!1,raw:"false"});break;case pr.NullKeyword:er.isWithinTypeAnnotation(r)?Object.assign(o,{type:f.TSNullKeyword}):Object.assign(o,{type:f.Literal,value:null,raw:"null"});break;case pr.ImportKeyword:Object.assign(o,{type:f.Import});break;case pr.EmptyStatement:case pr.DebuggerStatement:Object.assign(o,{type:pr[r.kind]});break;case pr.JsxElement:Object.assign(o,{type:f.JSXElement,openingElement:c(r.openingElement),closingElement:c(r.closingElement),children:r.children.map(c)});break;case pr.JsxSelfClosingElement:r.kind=pr.JsxOpeningElement;var he=c(r);he.selfClosing=!0,Object.assign(o,{type:f.JSXElement,openingElement:he,closingElement:null,children:[]});break;case pr.JsxOpeningElement:Object.assign(o,{type:f.JSXOpeningElement,typeParameters:r.typeArguments?l(r.typeArguments):void 0,selfClosing:!1,name:g(r.tagName),attributes:r.attributes.properties.map(c)});break;case pr.JsxClosingElement:Object.assign(o,{type:f.JSXClosingElement,name:g(r.tagName)});break;case pr.JsxExpression:var ve=i.getLineAndCharacterOfPosition(o.range[0]+1),be=r.expression?c(r.expression):{type:f.JSXEmptyExpression,loc:{start:{line:ve.line+1,column:ve.character},end:{line:o.loc.end.line,column:o.loc.end.column-1}},range:[o.range[0]+1,o.range[1]-1]};Object.assign(o,{type:f.JSXExpressionContainer,expression:be});break;case pr.JsxAttribute:var xe=er.convertToken(r.name,i);xe.type=f.JSXIdentifier,xe.name=xe.value,delete xe.value,Object.assign(o,{type:f.JSXAttribute,name:xe,value:c(r.initializer)});break;case pr.JsxText:var Se=r.getFullStart(),ke=r.getEnd(),De=a.useJSXTextNode?f.JSXText:f.Literal;Object.assign(o,{type:De,value:i.text.slice(Se,ke),raw:i.text.slice(Se,ke)}),o.loc=er.getLocFor(Se,ke,i),o.range=[Se,ke];break;case pr.JsxSpreadAttribute:Object.assign(o,{type:f.JSXSpreadAttribute,argument:c(r.expression)});break;case pr.FirstNode:Object.assign(o,{type:f.TSQualifiedName,left:c(r.left),right:c(r.right)});break;case pr.ParenthesizedExpression:return e({node:r.expression,parent:n,ast:i,additionalOptions:a});case pr.TypeAliasDeclaration:var Te={type:f.VariableDeclarator,id:c(r.name),init:c(r.type),range:[r.name.getStart(),r.end]};Te.loc=er.getLocFor(Te.range[0],Te.range[1],i),r.typeParameters&&r.typeParameters.length&&(Te.typeParameters=_(r.typeParameters)),Object.assign(o,{type:f.VariableDeclaration,kind:er.getDeclarationKind(r),declarations:[Te]}),o=er.fixExports(r,o,i);break;case pr.MethodSignature:Object.assign(o,{type:f.TSMethodSignature,optional:er.isOptional(r),computed:er.isComputedProperty(r.name),key:c(r.name),params:m(r.parameters),typeAnnotation:r.type?u(r.type):null,readonly:er.hasModifier(pr.ReadonlyKeyword,r)||void 0,static:er.hasModifier(pr.StaticKeyword,r),export:er.hasModifier(pr.ExportKeyword,r)||void 0});var Ce=er.getTSNodeAccessibility(r);Ce&&(o.accessibility=Ce),r.typeParameters&&(o.typeParameters=_(r.typeParameters));break;case pr.PropertySignature:Object.assign(o,{type:f.TSPropertySignature,optional:er.isOptional(r)||void 0,computed:er.isComputedProperty(r.name),key:c(r.name),typeAnnotation:r.type?u(r.type):void 0,initializer:c(r.initializer)||void 0,readonly:er.hasModifier(pr.ReadonlyKeyword,r)||void 0,static:er.hasModifier(pr.StaticKeyword,r)||void 0,export:er.hasModifier(pr.ExportKeyword,r)||void 0});var Ee=er.getTSNodeAccessibility(r);Ee&&(o.accessibility=Ee);break;case pr.IndexSignature:Object.assign(o,{type:f.TSIndexSignature,index:c(r.parameters[0]),typeAnnotation:r.type?u(r.type):null,readonly:er.hasModifier(pr.ReadonlyKeyword,r)||void 0,static:er.hasModifier(pr.StaticKeyword,r),export:er.hasModifier(pr.ExportKeyword,r)||void 0});var Ne=er.getTSNodeAccessibility(r);Ne&&(o.accessibility=Ne);break;case pr.ConstructSignature:Object.assign(o,{type:f.TSConstructSignature,params:m(r.parameters),typeAnnotation:r.type?u(r.type):null}),r.typeParameters&&(o.typeParameters=_(r.typeParameters));break;case pr.InterfaceDeclaration:var Ae=r.heritageClauses||[],Pe=Ae.length?Ae[Ae.length-1]:r.name;if(r.typeParameters&&r.typeParameters.length){var we=r.typeParameters[r.typeParameters.length-1];(!Pe||we.pos>Pe.pos)&&(Pe=er.findNextToken(we,i)),o.typeParameters=_(r.typeParameters)}var Fe=Ae.length>0,Oe=er.hasModifier(pr.AbstractKeyword,r),Ie=er.findNextToken(Pe,i),Me={type:f.TSInterfaceBody,body:r.members.map(function(e){return c(e)}),range:[Ie.getStart(),o.range[1]],loc:er.getLocFor(Ie.getStart(),r.end,i)};Object.assign(o,{abstract:Oe,type:f.TSInterfaceDeclaration,body:Me,id:c(r.name),heritage:Fe?Ae[0].types.map(function(e){var t=c(e.expression),r={type:f.TSInterfaceHeritage,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=l(e.typeArguments)),r}):[]}),r.decorators&&(o.decorators=d(r.decorators)),o=er.fixExports(r,o,i);break;case pr.FirstTypeNode:Object.assign(o,{type:f.TSTypePredicate,parameterName:c(r.parameterName),typeAnnotation:u(r.type)}),o.typeAnnotation.loc=o.typeAnnotation.typeAnnotation.loc,o.typeAnnotation.range=o.typeAnnotation.typeAnnotation.range;break;case pr.EnumDeclaration:Object.assign(o,{type:f.TSEnumDeclaration,id:c(r.name),members:r.members.map(c)}),y(r.modifiers),o=er.fixExports(r,o,i),r.decorators&&(o.decorators=d(r.decorators));break;case pr.EnumMember:Object.assign(o,{type:f.TSEnumMember,id:c(r.name)}),r.initializer&&(o.initializer=c(r.initializer));break;case pr.AbstractKeyword:Object.assign(o,{type:f.TSAbstractKeyword});break;case pr.ModuleDeclaration:Object.assign(o,{type:f.TSModuleDeclaration,id:c(r.name)}),r.body&&(o.body=c(r.body)),y(r.modifiers),o=er.fixExports(r,o,i);break;default:!function(){var e="TS".concat(pr[r.kind]);if(a.errorOnUnknownASTType&&!f[e])throw new Error('Unknown AST_NODE_TYPE: "'.concat(e,'"'));o.type=e,Object.keys(r).filter(function(e){return!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)}).forEach(function(e){if("type"===e)o.typeAnnotation=r.type?u(r.type):null;else if("typeArguments"===e)o.typeParameters=r.typeArguments?l(r.typeArguments):null;else if("typeParameters"===e)o.typeParameters=r.typeParameters?_(r.typeParameters):null;else if("decorators"===e){var t=d(r.decorators);t&&t.length&&(o.decorators=t)}else Array.isArray(r[e])?o[e]=r[e].map(c):r[e]&&"object"===p(r[e])?o[e]=c(r[e]):o[e]=r[e]})}()}return o}({node:e,parent:null,ast:e,additionalOptions:{errorOnUnknownASTType:r.errorOnUnknownASTType||!1,useJSXTextNode:r.useJSXTextNode||!1,parseForESLint:r.parseForESLint}});return r.tokens&&(a.tokens=er.convertTokens(e)),r.comment&&(a.comments=t(e,r.code)),a}}),hr=i(function(e,t){var r;t=e.exports=X,r="object"===p(z)&&z.env&&z.env.NODE_DEBUG&&/\bsemver\b/i.test(z.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],o=t.src=[],s=0,c=s++;o[c]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var l=s++;o[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var _=s++;o[_]="("+o[c]+")\\.("+o[c]+")\\.("+o[c]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[c]+"|"+o[l]+")";var m=s++;o[m]="(?:"+o[u]+"|"+o[l]+")";var g=s++;o[g]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[m]+"(?:\\."+o[m]+")*))";var h=s++;o[h]="[0-9A-Za-z-]+";var v=s++;o[v]="(?:\\+("+o[h]+"(?:\\."+o[h]+")*))";var b=s++,x="v?"+o[_]+o[g]+"?"+o[v]+"?";o[b]="^"+x+"$";var S="[v=\\s]*"+o[d]+o[y]+"?"+o[v]+"?",k=s++;o[k]="^"+S+"$";var D=s++;o[D]="((?:<|>)?=?)";var T=s++;o[T]=o[u]+"|x|X|\\*";var C=s++;o[C]=o[c]+"|x|X|\\*";var E=s++;o[E]="[v=\\s]*("+o[C]+")(?:\\.("+o[C]+")(?:\\.("+o[C]+")(?:"+o[g]+")?"+o[v]+"?)?)?";var N=s++;o[N]="[v=\\s]*("+o[T]+")(?:\\.("+o[T]+")(?:\\.("+o[T]+")(?:"+o[y]+")?"+o[v]+"?)?)?";var A=s++;o[A]="^"+o[D]+"\\s*"+o[E]+"$";var P=s++;o[P]="^"+o[D]+"\\s*"+o[N]+"$";var w=s++;o[w]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var F=s++;o[F]="(?:~>?)";var O=s++;o[O]="(\\s*)"+o[F]+"\\s+",a[O]=new RegExp(o[O],"g");var I=s++;o[I]="^"+o[F]+o[E]+"$";var M=s++;o[M]="^"+o[F]+o[N]+"$";var L=s++;o[L]="(?:\\^)";var R=s++;o[R]="(\\s*)"+o[L]+"\\s+",a[R]=new RegExp(o[R],"g");var B=s++;o[B]="^"+o[L]+o[E]+"$";var j=s++;o[j]="^"+o[L]+o[N]+"$";var J=s++;o[J]="^"+o[D]+"\\s*("+S+")$|^$";var K=s++;o[K]="^"+o[D]+"\\s*("+x+")$|^$";var U=s++;o[U]="(\\s*)"+o[D]+"\\s*("+S+"|"+o[E]+")",a[U]=new RegExp(o[U],"g");var q=s++;o[q]="^\\s*("+o[E]+")\\s+-\\s+("+o[E]+")\\s*$";var V=s++;o[V]="^\\s*("+o[N]+")\\s+-\\s+("+o[N]+")\\s*$";var W=s++;o[W]="(<|>)?=?\\s*\\*";for(var H=0;H<s;H++)r(H,o[H]),a[H]||(a[H]=new RegExp(o[H]));function G(e,t){if(e instanceof X)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t?a[k]:a[b]).test(e))return null;try{return new X(e,t)}catch(e){return null}}function X(e,t){if(e instanceof X){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof X))return new X(e,t);r("SemVer",e,t),this.loose=t;var o=e.trim().match(t?a[k]:a[b]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}t.parse=G,t.valid=function(e,t){var r=G(e,t);return r?r.version:null},t.clean=function(e,t){var r=G(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=X,X.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},X.prototype.toString=function(){return this.version},X.prototype.compare=function(e){return r("SemVer.compare",this.version,this.loose,e),e instanceof X||(e=new X(e,this.loose)),this.compareMain(e)||this.comparePre(e)},X.prototype.compareMain=function(e){return e instanceof X||(e=new X(e,this.loose)),Y(this.major,e.major)||Y(this.minor,e.minor)||Y(this.patch,e.patch)},X.prototype.comparePre=function(e){if(e instanceof X||(e=new X(e,this.loose)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return Y(n,i)}while(++t)},X.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new X(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(te(e,t))return null;var r=G(e),n=G(t);if(r.prerelease.length||n.prerelease.length){for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return"pre"+i;return"prerelease"}for(var i in r)if(("major"===i||"minor"===i||"patch"===i)&&r[i]!==n[i])return i},t.compareIdentifiers=Y;var Q=/^[0-9]+$/;function Y(e,t){var r=Q.test(e),n=Q.test(t);return r&&n&&(e=+e,t=+t),r&&!n?-1:n&&!r?1:e<t?-1:e>t?1:0}function $(e,t,r){return new X(e,r).compare(new X(t,r))}function Z(e,t,r){return $(e,t,r)>0}function ee(e,t,r){return $(e,t,r)<0}function te(e,t,r){return 0===$(e,t,r)}function re(e,t,r){return 0!==$(e,t,r)}function ne(e,t,r){return $(e,t,r)>=0}function ie(e,t,r){return $(e,t,r)<=0}function ae(e,t,r,n){var i;switch(t){case"===":"object"===p(e)&&(e=e.version),"object"===p(r)&&(r=r.version),i=e===r;break;case"!==":"object"===p(e)&&(e=e.version),"object"===p(r)&&(r=r.version),i=e!==r;break;case"":case"=":case"==":i=te(e,r,n);break;case"!=":i=re(e,r,n);break;case">":i=Z(e,r,n);break;case">=":i=ne(e,r,n);break;case"<":i=ee(e,r,n);break;case"<=":i=ie(e,r,n);break;default:throw new TypeError("Invalid operator: "+t)}return i}function oe(e,t){if(e instanceof oe){if(e.loose===t)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.loose=t,this.parse(e),this.semver===se?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new X(e,t).major},t.minor=function(e,t){return new X(e,t).minor},t.patch=function(e,t){return new X(e,t).patch},t.compare=$,t.compareLoose=function(e,t){return $(e,t,!0)},t.rcompare=function(e,t,r){return $(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})},t.gt=Z,t.lt=ee,t.eq=te,t.neq=re,t.gte=ne,t.lte=ie,t.cmp=ae,t.Comparator=oe;var se={};function ce(e,t){if(e instanceof ce)return e.loose===t?e:new ce(e.raw,t);if(e instanceof oe)return new ce(e.value,t);if(!(this instanceof ce))return new ce(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ue(e){return!e||"x"===e.toLowerCase()||"*"===e}function le(e,t,r,n,i,a,o,s,c,u,l,_,d){return((t=ue(r)?"":ue(n)?">="+r+".0.0":ue(i)?">="+r+"."+n+".0":">="+t)+" "+(s=ue(c)?"":ue(u)?"<"+(+c+1)+".0.0":ue(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s)).trim()}function _e(e,t){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length){for(n=0;n<e.length;n++)if(r(e[n].semver),e[n].semver!==se&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function de(e,t,r){try{t=new ce(t,r)}catch(e){return!1}return t.test(e)}function pe(e,t,r,n){var i,a,o,s,c;switch(e=new X(e,n),t=new ce(t,n),r){case">":i=Z,a=ie,o=ee,s=">",c=">=";break;case"<":i=ee,a=ne,o=Z,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(de(e,t,n))return!1;for(var u=0;u<t.set.length;++u){var l=null,_=null;if(t.set[u].forEach(function(e){e.semver===se&&(e=new oe(">=0.0.0")),l=l||e,_=_||e,i(e.semver,l.semver,n)?l=e:o(e.semver,_.semver,n)&&(_=e)}),l.operator===s||l.operator===c)return!1;if((!_.operator||_.operator===s)&&a(e,_.semver))return!1;if(_.operator===c&&o(e,_.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.loose?a[J]:a[K],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new X(r[2],this.loose):this.semver=se},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return r("Comparator.test",e,this.loose),this.semver===se||("string"==typeof e&&(e=new X(e,this.loose)),ae(e,this.operator,this.semver,this.loose))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var r;if(""===this.operator)return r=new ce(e.value,t),de(this.value,r,t);if(""===e.operator)return r=new ce(this.value,t),de(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ae(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ae(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||a&&o||s||c},t.Range=ce,ce.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},ce.prototype.toString=function(){return this.range},ce.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),r("range",e,t);var n=t?a[V]:a[q];e=e.replace(n,le),r("hyphen replace",e),e=e.replace(a[U],"$1$2$3"),r("comparator trim",e,a[U]),e=(e=(e=e.replace(a[O],"$1~")).replace(a[R],"$1^")).split(/\s+/).join(" ");var i=t?a[J]:a[K],o=e.split(" ").map(function(e){return function(e,t){return r("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){r("caret",e,t);var n=t?a[j]:a[B];return e.replace(n,function(t,n,i,a,o){var s;return r("caret",e,t,n,i,a,o),ue(n)?s="":ue(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ue(a)?s="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":o?(r("replaceCaret pr",o),"-"!==o.charAt(0)&&(o="-"+o),s="0"===n?"0"===i?">="+n+"."+i+"."+a+o+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+o+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===i?">="+n+"."+i+"."+a+" <"+n+"."+i+"."+(+a+1):">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+a+" <"+(+n+1)+".0.0"),r("caret return",s),s})}(e,t)}).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var n=t?a[M]:a[I];return e.replace(n,function(t,n,i,a,o){var s;return r("tilde",e,t,n,i,a,o),ue(n)?s="":ue(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ue(a)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":o?(r("replaceTilde pr",o),"-"!==o.charAt(0)&&(o="-"+o),s=">="+n+"."+i+"."+a+o+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s})}(e,t)}).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var n=t?a[P]:a[A];return e.replace(n,function(t,n,i,a,o,s){r("xRange",e,t,n,i,a,o,s);var c=ue(i),u=c||ue(a),l=u||ue(o),_=l;return"="===n&&_&&(n=""),c?t=">"===n||"<"===n?"<0.0.0":"*":n&&_?(u&&(a=0),l&&(o=0),">"===n?(n=">=",u?(i=+i+1,a=0,o=0):l&&(a=+a+1,o=0)):"<="===n&&(n="<",u?i=+i+1:a=+a+1),t=n+i+"."+a+"."+o):u?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+a+".0 <"+i+"."+(+a+1)+".0"),r("xRange return",t),t})}(e,t)}).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[W],"")}(e,t),r("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(o=o.filter(function(e){return!!e.match(i)})),o=o.map(function(e){return new oe(e,t)})},ce.prototype.intersects=function(e,t){if(!(e instanceof ce))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new ce(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},ce.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new X(e,this.loose));for(var t=0;t<this.set.length;t++)if(_e(this.set[t],e))return!0;return!1},t.satisfies=de,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var a=new ce(t,r)}catch(e){return null}return e.forEach(function(e){a.test(e)&&(n&&-1!==i.compare(e)||(i=new X(n=e,r)))}),n},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var a=new ce(t,r)}catch(e){return null}return e.forEach(function(e){a.test(e)&&(n&&1!==i.compare(e)||(i=new X(n=e,r)))}),n},t.validRange=function(e,t){try{return new ce(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return pe(e,t,"<",r)},t.gtr=function(e,t,r){return pe(e,t,">",r)},t.outside=pe,t.prerelease=function(e,t){var r=G(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new ce(e,r),t=new ce(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof X)return e;if("string"!=typeof e)return null;var t=e.match(a[w]);return null==t?null:G((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}}),vr="typescript-eslint-parser",br="An Esprima-style parser for TypeScript",xr="Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",Sr="https://github.com/eslint/typescript-eslint-parser",kr=["lib","parser.js"],Dr={node:"^6.14.0 || ^8.10.0 || >=9.10.0"},Tr="eslint/typescript-eslint-parser",Cr={url:"https://github.com/eslint/typescript-eslint-parser/issues"},Er={"babel-code-frame":"6.26.0",babylon:"7.0.0-beta.39",dedent:"0.7.0",eslint:"4.19.1","eslint-config-eslint":"4.0.0","eslint-plugin-node":"6.0.1","eslint-release":"0.11.1",glob:"7.1.2",jest:"23.1.0","lodash.isplainobject":"4.0.6","npm-license":"0.3.3",shelljs:"0.8.2","shelljs-nodecli":"0.1.1",typescript:"~2.9.1"},Nr=["ast","ecmascript","javascript","typescript","parser","syntax","eslint"],Ar={test:"node Makefile.js test && npm run integration-tests && npm run ast-alignment-tests",jest:"jest","ast-alignment-tests":"jest --config=./tests/ast-alignment/jest.config.js","integration-tests":"jest --config=./tests/integration/jest.config.js",lint:"node Makefile.js lint",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta"},Pr={"lodash.unescape":"4.0.1",semver:"5.5.0"},wr={typescript:"*"},Fr={testRegex:"tests/lib/.+\\.js$",testPathIgnorePatterns:[],collectCoverage:!0,coverageReporters:["text-summary"]},Or={name:vr,description:br,author:xr,homepage:Sr,main:"parser.js",version:"16.0.0",files:kr,engines:Dr,repository:Tr,bugs:Cr,license:"BSD-2-Clause",devDependencies:Er,keywords:Nr,scripts:Ar,dependencies:Pr,peerDependencies:wr,jest:Fr},Ir=Object.freeze({name:vr,description:br,author:xr,homepage:Sr,main:"parser.js",version:"16.0.0",files:kr,engines:Dr,repository:Tr,bugs:Cr,license:"BSD-2-Clause",devDependencies:Er,keywords:Nr,scripts:Ar,dependencies:Pr,peerDependencies:wr,jest:Fr,default:Or}),Mr=Ir&&Or||Ir,Lr=Mr.devDependencies.typescript,Rr=It.version,Br=hr.satisfies(Rr,Lr),jr=!1;function Jr(e,t,r){r=r||{};var n=String;if("string"==typeof e||e instanceof String||(e=n(e)),gr={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},useJSXTextNode:!1,log:console.log},void 0!==t&&(gr.range="boolean"==typeof t.range&&t.range,gr.loc="boolean"==typeof t.loc&&t.loc,gr.loc&&null!==t.source&&void 0!==t.source&&(gr.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(gr.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(gr.comment=!0,gr.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(gr.errors=[]),t.ecmaFeatures&&"object"===p(t.ecmaFeatures)&&(gr.ecmaFeatures.jsx=t.ecmaFeatures.jsx),t.errorOnUnknownASTType&&(gr.errorOnUnknownASTType=!0),"boolean"==typeof t.useJSXTextNode&&t.useJSXTextNode&&(gr.useJSXTextNode=!0),"function"==typeof t.loggerFn?gr.log=t.loggerFn:!1===t.loggerFn&&(gr.log=Function.prototype),r.isParseForESLint&&(gr.parseForESLint=!0)),!Br&&!jr){var i=["=============","WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.","You may find that it works just fine, or you may not.","SUPPORTED TYPESCRIPT VERSIONS: ".concat(Lr),"YOUR TYPESCRIPT VERSION: ".concat(Rr),"Please only submit bug reports when using the officially supported version.","============="];gr.log(i.join("\n\n")),jr=!0}var a=gr.ecmaFeatures.jsx?"eslint.tsx":"eslint.ts",o={fileExists:function(){return!0},getCanonicalFileName:function(){return a},getCurrentDirectory:function(){return""},getDefaultLibFileName:function(){return"lib.d.ts"},getNewLine:function(){return"\n"},getSourceFile:function(t){return It.createSourceFile(t,e,It.ScriptTarget.Latest,!0)},readFile:function(){return null},useCaseSensitiveFileNames:function(){return!0},writeFile:function(){return null}},s=It.createProgram([a],{noResolve:!0,target:It.ScriptTarget.Latest,jsx:gr.ecmaFeatures.jsx?"preserve":void 0},o).getSourceFile(a);return gr.code=e,yr(s,gr)}var zr={version:Mr.version,parse:function(e,t){return Jr(e,t,{isParseForESLint:!1})},parseForESLint:function(e,t){return{ast:Jr(e,t,{isParseForESLint:!0})}},Syntax:function(){var e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),f)f.hasOwnProperty(e)&&(t[e]=f[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()},Kr=l;function Ur(e,t){return zr.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,ecmaFeatures:{jsx:t},loggerFn:function(){}})}var qr=Object.assign({parse:function(r){var n,i=function(e){return new RegExp(["(^[^\"'`]*</)","|","(^[^/]{2}.*/>)"].join(""),"m").test(e)}(r);try{try{n=Ur(r,i)}catch(e){n=Ur(r,!i)}}catch(t){if(void 0===t.lineNumber)throw t;throw e(t.message,{start:{line:t.lineNumber,column:t.column+1}})}return delete n.tokens,t(r,n),n},astFormat:"estree",hasPragma:Kr},d);return{parsers:{typescript:qr,"typescript-eslint":qr}}});
|