Lines Matching defs:function

2 (()=>{var __webpack_modules__={"./node_modules/buffer-from/index.js":e=>{var t=Object.prototype.toString,r="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;e.exports=function(e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return a=e,"ArrayBuffer"===t.call(a).slice(8,-1)?function(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}(e,n,i):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return r?Buffer.from(e,t):new Buffer(e,t)}(e,n):r?Buffer.from(e):new Buffer(e);var a}},"./node_modules/source-map-support/node_modules/source-map/lib/array-set.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function o(){this._array=[],this._set=a?new Map:Object.create(null)}o.fromArray=function(e,t){for(var r=new o,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},o.prototype.size=function(){return a?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(e,t){var r=a?e:n.toSetString(e),o=a?this.has(e):i.call(this._set,r),s=this._array.length;o&&!t||this._array.push(e),o||(a?this._set.set(e,s):this._set[r]=s)},o.prototype.has=function(e){if(a)return this._set.has(e);var t=n.toSetString(e);return i.call(this._set,t)},o.prototype.indexOf=function(e){if(a){var t=this._set.get(e);if(t>=0)return t}else{var r=n.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},o.prototype.toArray=function(){return this._array.slice()},t.ArraySet=o},"./node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/base64.js");t.encode=function(e){var t,r="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var i,a,o,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&a),l+=(a&=31)<<u,u+=5}while(i);r.value=(s=(o=l)>>1,1==(1&o)?-s:s),r.rest=t}},"./node_modules/source-map-support/node_modules/source-map/lib/base64.js":(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},"./node_modules/source-map-support/node_modules/source-map/lib/binary-search.js":(e,t)=>{function r(e,n,i,a,o,s){var c=Math.floor((n-e)/2)+e,l=o(i,a[c],!0);return 0===l?c:l>0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:c:c-e>1?r(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,a){if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}},"./node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js");function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,a,o,s;r=e,i=(t=this._last).generatedLine,a=r.generatedLine,o=t.generatedColumn,s=r.generatedColumn,a>i||a==i&&s>=o||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},"./node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js":(e,t)=>{function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,i,a){if(i<a){var o=i-1;r(e,(u=i,_=a,Math.round(u+Math.random()*(_-u))),a);for(var s=e[a],c=i;c<a;c++)t(e[c],s)<=0&&r(e,o+=1,c);r(e,o+1,c);var l=o+1;n(e,t,i,l-1),n(e,t,l+1,a)}var u,_}t.quickSort=function(e,t){n(e,t,0,e.length-1)}},"./node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),i=r("./node_modules/source-map-support/node_modules/source-map/lib/binary-search.js"),a=r("./node_modules/source-map-support/node_modules/source-map/lib/array-set.js").ArraySet,o=r("./node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js"),s=r("./node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js").quickSort;function c(e,t){var r=e;return"string"==typeof e&&(r=n.parseSourceMapInput(e)),null!=r.sections?new _(r,t):new l(r,t)}function l(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sources"),s=n.getArg(r,"names",[]),c=n.getArg(r,"sourceRoot",null),l=n.getArg(r,"sourcesContent",null),u=n.getArg(r,"mappings"),_=n.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);c&&(c=n.normalize(c)),o=o.map(String).map(n.normalize).map((function(e){return c&&n.isAbsolute(c)&&n.isAbsolute(e)?n.relative(c,e):e})),this._names=a.fromArray(s.map(String),!0),this._sources=a.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map((function(e){return n.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=t,this.file=_}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function _(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new a,this._names=new a;var s={line:-1,column:0};this._sections=o.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=n.getArg(e,"offset"),i=n.getArg(r,"line"),a=n.getArg(r,"column");if(i<s.line||i===s.line&&a<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new c(n.getArg(e,"map"),t)}}))}c.fromSourceMap=function(e,t){return l.fromSourceMap(e,t)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},c.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,r){var i,a=t||null;switch(r||c.GENERATED_ORDER){case c.GENERATED_ORDER:i=this._generatedMappings;break;case c.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;i.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=n.computeSourceURL(o,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,a)},c.prototype.allGeneratedPositionsFor=function(e){var t=n.getArg(e,"line"),r={source:n.getArg(e,"source"),originalLine:t,originalColumn:n.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var a=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return a},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=n.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},l.fromSourceMap=function(e,t){var r=Object.create(l.prototype),i=r._names=a.fromArray(e._names.toArray(),!0),o=r._sources=a.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map((function(e){return n.computeSourceURL(r.sourceRoot,e,t)}));for(var c=e._mappings.toArray().slice(),_=r.__generatedMappings=[],d=r.__originalMappings=[],p=0,f=c.length;p<f;p++){var g=c[p],m=new u;m.generatedLine=g.generatedLine,m.generatedColumn=g.generatedColumn,g.source&&(m.source=o.indexOf(g.source),m.originalLine=g.originalLine,m.originalColumn=g.originalColumn,g.name&&(m.name=i.indexOf(g.name)),d.push(m)),_.push(m)}return s(r.__originalMappings,n.compareByOriginalPositions),r},l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),l.prototype._parseMappings=function(e,t){for(var r,i,a,c,l,_=1,d=0,p=0,f=0,g=0,m=0,y=e.length,h=0,v={},b={},x=[],D=[];h<y;)if(";"===e.charAt(h))_++,h++,d=0;else if(","===e.charAt(h))h++;else{for((r=new u).generatedLine=_,c=h;c<y&&!this._charIsMappingSeparator(e,c);c++);if(a=v[i=e.slice(h,c)])h+=i.length;else{for(a=[];h<c;)o.decode(e,h,b),l=b.value,h=b.rest,a.push(l);if(2===a.length)throw new Error("Found a source, but no line and column");if(3===a.length)throw new Error("Found a source and line, but no column");v[i]=a}r.generatedColumn=d+a[0],d=r.generatedColumn,a.length>1&&(r.source=g+a[1],g+=a[1],r.originalLine=p+a[2],p=r.originalLine,r.originalLine+=1,r.originalColumn=f+a[3],f=r.originalColumn,a.length>4&&(r.name=m+a[4],m+=a[4])),D.push(r),"number"==typeof r.originalLine&&x.push(r)}s(D,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=D,s(x,n.compareByOriginalPositions),this.__originalMappings=x},l.prototype._findMapping=function(e,t,r,n,a,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,a,o)},l.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},l.prototype.originalPositionFor=function(e){var t={generatedLine:n.getArg(e,"line"),generatedColumn:n.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",n.compareByGeneratedPositionsDeflated,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var a=n.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),a=n.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var o=n.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:a,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i,a=e;if(null!=this.sourceRoot&&(a=n.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(i=n.urlParse(this.sourceRoot))){var o=a.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!i.path||"/"==i.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=l,_.prototype=Object.create(c.prototype),_.prototype.constructor=c,_.prototype._version=3,Object.defineProperty(_.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}}),_.prototype.originalPositionFor=function(e){var t={generatedLine:n.getArg(e,"line"),generatedColumn:n.getArg(e,"column")},r=i.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),a=this._sections[r];return a?a.consumer.originalPositionFor({line:t.generatedLine-(a.generatedOffset.generatedLine-1),column:t.generatedColumn-(a.generatedOffset.generatedLine===t.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},_.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},_.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.')},_.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer._findSourceIndex(n.getArg(e,"source"))){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},_.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],a=i.consumer._generatedMappings,o=0;o<a.length;o++){var c=a[o],l=i.consumer._sources.at(c.source);l=n.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var _={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(_),"number"==typeof _.originalLine&&this.__originalMappings.push(_)}s(this.__generatedMappings,n.compareByGeneratedPositionsDeflated),s(this.__originalMappings,n.compareByOriginalPositions)},t.IndexedSourceMapConsumer=_},"./node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js"),i=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),a=r("./node_modules/source-map-support/node_modules/source-map/lib/array-set.js").ArraySet,o=r("./node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js").MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,r=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var a=n;null!==t&&(a=i.relative(t,n)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(n);null!=o&&r.setSourceContent(n,o)})),r},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),r=i.getArg(e,"original",null),n=i.getArg(e,"source",null),a=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:a})},s.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var o=this._sourceRoot;null!=o&&(n=i.relative(o,n));var s=new a,c=new a;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=i.join(r,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||s.has(l)||s.add(l);var u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=s,this._names=c,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,n))}),this)},s.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},s.prototype._serializeMappings=function(){for(var e,t,r,a,o=0,s=1,c=0,l=0,u=0,_=0,d="",p=this._mappings.toArray(),f=0,g=p.length;f<g;f++){if(e="",(t=p[f]).generatedLine!==s)for(o=0;t.generatedLine!==s;)e+=";",s++;else if(f>0){if(!i.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=n.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=n.encode(a-_),_=a,e+=n.encode(t.originalLine-1-l),l=t.originalLine-1,e+=n.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-u),u=r)),d+=e}return d},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},"./node_modules/source-map-support/node_modules/source-map/lib/source-node.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,i=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),a=/(\r?\n)/,o="$$$isSourceNode$$$";function s(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[o]=!0,null!=n&&this.add(n)}s.fromStringWithSourceMap=function(e,t,r){var n=new s,o=e.split(a),c=0,l=function(){return e()+(e()||"");function e(){return c<o.length?o[c++]:void 0}},u=1,_=0,d=null;return t.eachMapping((function(e){if(null!==d){if(!(u<e.generatedLine)){var t=(r=o[c]||"").substr(0,e.generatedColumn-_);return o[c]=r.substr(e.generatedColumn-_),_=e.generatedColumn,p(d,t),void(d=e)}p(d,l()),u++,_=0}for(;u<e.generatedLine;)n.add(l()),u++;if(_<e.generatedColumn){var r=o[c]||"";n.add(r.substr(0,e.generatedColumn)),o[c]=r.substr(e.generatedColumn),_=e.generatedColumn}d=e}),this),c<o.length&&(d&&p(d,l()),n.add(o.splice(c).join(""))),t.sources.forEach((function(e){var a=t.sourceContentFor(e);null!=a&&(null!=r&&(e=i.join(r,e)),n.setSourceContent(e,a))})),n;function p(e,t){if(null===e||void 0===e.source)n.add(t);else{var a=r?i.join(r,e.source):e.source;n.add(new s(e.originalLine,e.originalColumn,a,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[o]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(i.fromSetString(n[t]),this.sourceContents[n[t]])},s.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new n(e),i=!1,a=null,o=null,s=null,c=null;return this.walk((function(e,n){t.code+=e,null!==n.source&&null!==n.line&&null!==n.column?(a===n.source&&o===n.line&&s===n.column&&c===n.name||r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name}),a=n.source,o=n.line,s=n.column,c=n.name,i=!0):i&&(r.addMapping({generated:{line:t.line,column:t.column}}),a=null,i=!1);for(var l=0,u=e.length;l<u;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===u?(a=null,i=!1):i&&r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}},t.SourceNode=s},"./node_modules/source-map-support/node_modules/source-map/lib/util.js":(e,t)=>{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(o=c[u])?c.splice(u,1):".."===o?l++:l>0&&(""===o?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function _(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:function(e){return u(e)?"$"+e:e},t.fromSetString=c?l:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=_(e.source,t.source);return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:_(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=_(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||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||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=_(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:_(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}},"./node_modules/source-map-support/node_modules/source-map/source-map.js":(e,t,r)=>{t.SourceMapGenerator=r("./node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,t.SourceMapConsumer=r("./node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer,t.SourceNode=r("./node_modules/source-map-support/node_modules/source-map/lib/source-node.js").SourceNode},"./node_modules/source-map-support/source-map-support.js":(e,t,r)=>{e=r.nmd(e);var n,i=r("./node_modules/source-map-support/node_modules/source-map/source-map.js").SourceMapConsumer,a=r("path");try{(n=r("fs")).existsSync&&n.readFileSync||(n=null)}catch(e){}var o=r("./node_modules/buffer-from/index.js");function s(e,t){return e.require(t)}var c=!1,l=!1,u=!1,_="auto",d={},p={},f=/^data:application\/json[^,]+base64,/,g=[],m=[];function y(){return"browser"===_||"node"!==_&&"undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function h(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var v=h(g);function b(e,t){if(!e)return t;var r=a.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",o=r.slice(i.length);return i&&/^\/\w\:/.test(o)?(i+="/")+a.resolve(r.slice(i.length),t).replace(/\\/g,"/"):i+a.resolve(r.slice(i.length),t)}g.push((function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,(function(e,t){return t?"":"/"}))),e in d)return d[e];var t="";try{if(n)n.existsSync(e)&&(t=n.readFileSync(e,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),4===r.readyState&&200===r.status&&(t=r.responseText)}}catch(e){}return d[e]=t}));var x=h(m);function D(e){var t=p[e.source];if(!t){var r=x(e.source);r?(t=p[e.source]={url:r.url,map:new i(r.map)}).map.sourcesContent&&t.map.sources.forEach((function(e,r){var n=t.map.sourcesContent[r];if(n){var i=b(t.url,e);d[i]=n}})):t=p[e.source]={url:null,map:null}}if(t&&t.map&&"function"==typeof t.map.originalPositionFor){var n=t.map.originalPositionFor(e);if(null!==n.source)return n.source=b(t.url,n.source),n}return e}function S(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=D({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return(t=/^eval at ([^(]+) \((.+)\)$/.exec(e))?"eval at "+t[1]+" ("+S(t[2])+")":e}function E(){var e,t="";if(this.isNative())t="native";else{!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),t+=e||"<anonymous>";var r=this.getLineNumber();if(null!=r){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(this.isToplevel()||s)s?i+="new "+(a||"<anonymous>"):a?i+=a:(i+=t,o=!1);else{var c=this.getTypeName();"[object Object]"===c&&(c="null");var l=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,l&&a.indexOf("."+l)!=a.length-l.length-1&&(i+=" [as "+l+"]")):i+=c+"."+(l||"<anonymous>")}return o&&(i+=" ("+t+")"),i}function T(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]})),t.toString=E,t}function C(e,t){if(void 0===t&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,a=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test("object"==typeof process&&null!==process?process.version:"")?0:62;1===n&&i>a&&!y()&&!e.isEval()&&(i-=a);var o=D({source:r,line:n,column:i});t.curPosition=o;var s=(e=T(e)).getFunctionName;return e.getFunctionName=function(){return null==t.nextPosition?s():t.nextPosition.name||s()},e.getFileName=function(){return o.source},e.getLineNumber=function(){return o.line},e.getColumnNumber=function(){return o.column+1},e.getScriptNameOrSourceURL=function(){return o.source},e}var c=e.isEval()&&e.getEvalOrigin();return c?(c=S(c),(e=T(e)).getEvalOrigin=function(){return c},e):e}function k(e,t){u&&(d={},p={});for(var r=(e.name||"Error")+": "+(e.message||""),n={nextPosition:null,curPosition:null},i=[],a=t.length-1;a>=0;a--)i.push("\n    at "+C(t[a],n)),n.nextPosition=n.curPosition;return n.curPosition=n.nextPosition=null,r+i.reverse().join("")}function A(e){var t=/\n    at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],a=+t[3],o=d[r];if(!o&&n&&n.existsSync(r))try{o=n.readFileSync(r,"utf8")}catch(e){o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[i-1];if(s)return r+":"+i+"\n"+s+"\n"+new Array(a).join(" ")+"^"}}return null}function N(e){var t=A(e),r=function(){if("object"==typeof process&&null!==process)return process.stderr}();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),"object"==typeof process&&null!==process&&"function"==typeof process.exit&&process.exit(1)}m.push((function(e){var t,r=function(e){var t;if(y())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=4===r.readyState?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch(e){}t=v(e);for(var i,a,o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!r)return null;if(f.test(r)){var n=r.slice(r.indexOf(",")+1);t=o(n,"base64").toString(),r=e}else r=b(e,r),t=v(r);return t?{url:r,map:t}:null}));var F=g.slice(0),w=m.slice(0);t.wrapCallSite=C,t.getErrorSource=A,t.mapSourcePosition=D,t.retrieveSourceMap=x,t.install=function(t){if((t=t||{}).environment&&(_=t.environment,-1===["node","browser","auto"].indexOf(_)))throw new Error("environment "+_+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(g.length=0),g.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(m.length=0),m.unshift(t.retrieveSourceMap)),t.hookRequire&&!y()){var r=s(e,"module"),n=r.prototype._compile;n.__sourceMapSupport||(r.prototype._compile=function(e,t){return d[t]=e,p[t]=void 0,n.call(this,e,t)},r.prototype._compile.__sourceMapSupport=!0)}if(u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),c||(c=!0,Error.prepareStackTrace=k),!l){var i=!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions;try{!1===s(e,"worker_threads").isMainThread&&(i=!1)}catch(e){}i&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(l=!0,a=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,r=this.listeners(e).length>0;if(t&&!r)return N(arguments[1])}return a.apply(this,arguments)})}var a},t.resetRetrieveHandlers=function(){g.length=0,m.length=0,g=F.slice(0),m=w.slice(0),x=h(m),v=h(g)}},"./src/addVariable2Scope.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.addVariableToScope=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/util.ts"),c=r("./src/cmdOptions.ts"),l=a(r("./src/jshelpers.js")),u=r("./src/scope.ts"),_=r("./src/syntaxCheckHelper.ts"),d=r("./src/typeRecorder.ts"),p=r("./src/variable.ts");function f(e,t,r){r?function(e,t){if(t){let r=d.TypeRecorder.getInstance().tryGetTypeIndex(o.getOriginalNode(e));t.setTypeIndex(r)}}(e,t):function(e,t){if(t){let r=d.TypeRecorder.getInstance().tryGetVariable2Type(o.getOriginalNode(e));t.setTypeIndex(r)}}(e,t)}function g(e,t){let r="";e.elements.forEach((e=>{o.isOmittedExpression(e)||(o.isIdentifier(e.name)?(r=l.getTextOfIdentifierOrLiteral(e.name),t.add(r,p.VarDeclarationKind.VAR)):(0,s.isBindingPattern)(e.name)&&g(e.name,t))}))}t.addVariableToScope=function(e,t){let r=e.getScopeMap(),n=e.getHoistMap();r.forEach(((r,i)=>{let a=[];r instanceof u.VariableScope&&(function(e,t,r){if(t.addParameter("4funcObj",p.VarDeclarationKind.CONST,-1),e.kind==o.SyntaxKind.ArrowFunction?(t.addParameter("0newTarget",p.VarDeclarationKind.CONST,-1),t.addParameter("0this",p.VarDeclarationKind.CONST,0)):(t.addParameter("4newTarget",p.VarDeclarationKind.CONST,-1),t.addParameter("this",p.VarDeclarationKind.CONST,0)),e.kind!=o.SyntaxKind.SourceFile&&function(e,t,r){let n=new Array;for(let i=0;i<e.parameters.length;++i){let a=e.parameters[i],c="";(0,s.isBindingPattern)(a.name)?(n.push(a.name),c=i.toString()+"pattern"):o.isIdentifier(a.name)&&(c=l.getTextOfIdentifierOrLiteral(a.name));let u=t.addParameter(c,p.VarDeclarationKind.VAR,i+1);r&&f(a.name,u,!1)}for(let e=0;e<n.length;e++)g(n[e],t)}(e,t,r),t.getUseArgs()||c.CmdOptions.isDebugMode())if(o.isArrowFunction(e)){let e=t.getParentVariableScope();e.add("arguments",p.VarDeclarationKind.CONST,u.InitStatus.INITIALIZED),e.setUseArgs(!0),t.setUseArgs(!1)}else t.getUseArgs()&&(t.findLocal("arguments")||t.add("arguments",p.VarDeclarationKind.CONST,u.InitStatus.INITIALIZED))}(i,r,t),a=n.get(r),a&&a.forEach((e=>{let n;if(e instanceof u.VarDecl)n=r.add(e.name,p.VarDeclarationKind.VAR);else{if(!(e instanceof u.FuncDecl))throw new Error("Wrong type of declaration to be hoisted");n=r.add(e.name,p.VarDeclarationKind.FUNCTION)}t&&f(e.node,n,e instanceof u.FuncDecl)})));let d=r.getDecls(),m=r.getNearestVariableScope();a=n.get(m);for(let n=0;n<d.length;n++){let i,s=d[n];if(!a||!a.includes(s)){if(s instanceof u.LetDecl)i=r.add(s.name,p.VarDeclarationKind.LET,u.InitStatus.UNINITIALIZED);else if(s instanceof u.ConstDecl)i=r.add(s.name,p.VarDeclarationKind.CONST,u.InitStatus.UNINITIALIZED);else if(s instanceof u.FuncDecl){let t=s.node;o.isFunctionDeclaration(t)?i=r.add(s.name,p.VarDeclarationKind.FUNCTION):o.isFunctionExpression(t)&&(i=e.getScopeOfNode(t).add(s.name,p.VarDeclarationKind.FUNCTION))}else if(s instanceof u.CatchParameter)i=r.add(s.name,p.VarDeclarationKind.LET);else if(s instanceof u.ClassDecl){let t=s.node;i=o.isClassDeclaration(t)?r.add(s.name,p.VarDeclarationKind.CLASS,u.InitStatus.UNINITIALIZED):e.getScopeOfNode(t).add(s.name,p.VarDeclarationKind.CLASS,u.InitStatus.UNINITIALIZED)}else(0,_.isGlobalIdentifier)(d[n].name)&&(i=r.add(d[n].name,p.VarDeclarationKind.VAR));t&&f(s.node,i,s instanceof u.ClassDecl||s instanceof u.FuncDecl)}}}))}},"./src/assemblyDumper.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssemblyDumper=t.IntrinsicInfo=void 0;const n=r("./src/irnodes.ts"),i=r("./src/statement/tryStatement.ts"),a=r("./src/base/util.ts");t.IntrinsicInfo=class{constructor(e,t,r){this.intrinsicName=e,this.argsNum=t,this.returnType=r}};class o{constructor(e){this.labelPrefix="LABEL_",this.pg=e,this.labels=new Map,this.labelId=0,this.output=""}static writeLanguageTag(e){e.str+=".language ECMAScript\n",e.str+="\n"}writeFunctionHeader(){let e=this.pg.getParametersCount();this.output+=".function any "+this.pg.internalName+"(";for(let t=0;t<e;++t)this.output+="any a"+t.toString(),t!==e-1&&(this.output+=", ");this.output+=") {\n"}writeFunctionBody(){let e=this.pg.getInsns(),t=this.pg.getParametersCount();for(let r=0;r<t;++r){let t=e[r];this.output+="\t",this.output+=t.getMnemonic()+" v"+t.operands[0].num+", a"+t.operands[0].num+"\n"}for(let i=t;i<e.length;++i){let t=e[i];if(t.kind===n.IRNodeKind.VREG||t.kind===n.IRNodeKind.IMM)continue;if(t.kind===n.IRNodeKind.LABEL){this.writeLabel(t);continue}this.output+="\t",this.output+=t.getMnemonic()+" ";let o=t.operands,s=t.getFormats();var r=(0,a.getRangeExplicitVregNums)(t);for(let e=0;e<o.length&&0!=r;++e){let i=s[0][e][0],c=o[e];if(i==n.OperandKind.Imm){let e=c;this.output+=e.value.toString()}else if(i==n.OperandKind.Id)this.output+=c;else if(i==n.OperandKind.StringId){let e=c.toString().replace(/\\/g,"\\\\").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\"/g,'\\"');this.output+='"'+e+'"'}else if(i==n.OperandKind.DstVReg||i==n.OperandKind.SrcDstVReg||i==n.OperandKind.SrcVReg){let e=c;if(e.num<0)throw Error("invalid register, please check your insn!\n");if(this.output+="v"+e.num.toString(),(0,a.isRangeInst)(t)){r--;continue}}else{if(i!=n.OperandKind.Label)throw new Error("Unexpected OperandKind");this.output+=this.getLabelName(c)}e<o.length-1&&(this.output+=", ")}this.output+="\n"}}writeFunctionTail(){this.output+="}\n"}writeFunctionCatchTable(){let e=(0,i.generateCatchTables)(this.pg.getCatchMap());0!=e.length&&(this.output+="\n",e.forEach((e=>{let t=e.getCatchBeginLabel();e.getLabelPairs().forEach((e=>{this.output+=".catchall "+this.getLabelName(e.getBeginLabel())+", "+this.getLabelName(e.getEndLabel())+", "+this.getLabelName(t)+"\n"}))})))}getLabelName(e){let t;return this.labels.has(e.id)?t=this.labels.get(e.id):(t=this.labelPrefix+this.labelId++,this.labels.set(e.id,t)),t}writeLabel(e){let t=this.getLabelName(e);this.output+=t+":\n"}dump(){this.writeFunctionHeader(),this.writeFunctionBody(),this.writeFunctionCatchTable(),this.writeFunctionTail(),console.log(this.output)}static dumpHeader(){let e={str:""};o.writeLanguageTag(e),console.log(e.str)}}t.AssemblyDumper=o,o.intrinsicRec=new Map},"./src/astutils.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getVarDeclarationKind=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/variable.ts");t.getVarDeclarationKind=function(e){if(e.parent.kind==o.SyntaxKind.VariableDeclarationList){let t=e.parent;return 0!=(t.flags&o.NodeFlags.Let)?s.VarDeclarationKind.LET:0!=(t.flags&o.NodeFlags.Const)?s.VarDeclarationKind.CONST:s.VarDeclarationKind.VAR}if(e.parent.kind==o.SyntaxKind.CatchClause)return s.VarDeclarationKind.LET;throw new Error("VariableDeclaration inside "+o.SyntaxKind[e.parent]+" is not implemented")}},"./src/base/bcGenUtil.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwObjectNonCoercible=t.createObjectWithExcludedKeys=t.defineClassWithBuffer=t.storeArraySpread=t.createArrayWithBuffer=t.createEmptyArray=t.defineGetterSetterByValue=t.copyDataProperties=t.setObjectWithProto=t.createObjectWithBuffer=t.createObjectHavingMethod=t.createEmptyObject=t.returnUndefined=t.getNextPropName=t.getPropIterator=t.newObject=t.call=t.throwIfSuperNotCorrectCall=t.storeOwnByValue=t.storeOwnByIndex=t.storeOwnByName=t.storeObjByValue=t.loadObjByValue=t.storeObjByIndex=t.loadObjByIndex=t.storeObjByName=t.loadObjByName=t.storeGlobalVar=t.loadGlobalVar=t.tryStoreGlobalByName=t.tryLoadGlobalByName=t.storeLexicalVar=t.loadLexicalVar=t.popLexicalEnv=t.loadLexicalEnv=t.newLexicalEnv=t.throwDeleteSuperProperty=t.throwThrowNotExists=t.throwUndefinedIfHole=t.throwConstAssignment=t.throwException=t.creatDebugger=t.jumpTarget=t.moveVreg=t.deleteObjProperty=t.storeAccumulator=t.loadAccumulator=t.loadAccumulatorString=t.loadAccumulatorFloat=t.loadAccumulatorInt=void 0,t.loadAccumulatorBigInt=t.stClassToGlobalRecord=t.stConstToGlobalRecord=t.stLetToGlobalRecord=t.createRegExpWithLiteral=t.isFalse=t.isTrue=t.defineMethod=t.defineNCFunc=t.defineGeneratorFunc=t.defineAsyncFunc=t.defineFunc=t.loadHomeObject=t.copyModuleIntoCurrentModule=t.storeModuleVariable=t.loadModuleVarByName=t.importModule=t.ldSuperByValue=t.stSuperByValue=t.stSuperByName=t.ldSuperByName=t.superCallSpread=t.superCall=t.closeIterator=t.getIteratorNext=t.getIterator=t.throwIfNotObject=void 0;const n=r("./src/irnodes.ts");t.loadAccumulatorInt=function(e){return new n.LdaiDyn(new n.Imm(e))},t.loadAccumulatorFloat=function(e){return new n.FldaiDyn(new n.Imm(e))},t.loadAccumulatorString=function(e){return new n.LdaStr(e)},t.loadAccumulator=function(e){return new n.LdaDyn(e)},t.storeAccumulator=function(e){return new n.StaDyn(e)},t.deleteObjProperty=function(e,t){return new n.EcmaDelobjprop(e,t)},t.moveVreg=function(e,t){return new n.MovDyn(e,t)},t.jumpTarget=function(e){return new n.Jmp(e)},t.creatDebugger=function(){return new n.EcmaDebugger},t.throwException=function(){return new n.EcmaThrowdyn},t.throwConstAssignment=function(e){return new n.EcmaThrowconstassignment(e)},t.throwUndefinedIfHole=function(e,t){return new n.EcmaThrowundefinedifhole(e,t)},t.throwThrowNotExists=function(){return new n.EcmaThrowthrownotexists},t.throwDeleteSuperProperty=function(){return new n.EcmaThrowdeletesuperproperty},t.newLexicalEnv=function(e,t){return null==t?new n.EcmaNewlexenvdyn(new n.Imm(e)):new n.EcmaNewlexenvwithnamedyn(new n.Imm(e),new n.Imm(t))},t.loadLexicalEnv=function(){return new n.EcmaLdlexenvdyn},t.popLexicalEnv=function(){return new n.EcmaPoplexenvdyn},t.loadLexicalVar=function(e,t){return new n.EcmaLdlexvardyn(new n.Imm(e),new n.Imm(t))},t.storeLexicalVar=function(e,t,r){return new n.EcmaStlexvardyn(new n.Imm(e),new n.Imm(t),r)},t.tryLoadGlobalByName=function(e){return new n.EcmaTryldglobalbyname(e)},t.tryStoreGlobalByName=function(e){return new n.EcmaTrystglobalbyname(e)},t.loadGlobalVar=function(e){return new n.EcmaLdglobalvar(e)},t.storeGlobalVar=function(e){return new n.EcmaStglobalvar(e)},t.loadObjByName=function(e,t){return new n.EcmaLdobjbyname(t,e)},t.storeObjByName=function(e,t){return new n.EcmaStobjbyname(t,e)},t.loadObjByIndex=function(e,t){return new n.EcmaLdobjbyindex(e,new n.Imm(t))},t.storeObjByIndex=function(e,t){return new n.EcmaStobjbyindex(e,new n.Imm(t))},t.loadObjByValue=function(e,t){return new n.EcmaLdobjbyvalue(e,t)},t.storeObjByValue=function(e,t){return new n.EcmaStobjbyvalue(e,t)},t.storeOwnByName=function(e,t,r){return r?new n.EcmaStownbynamewithnameset(t,e):new n.EcmaStownbyname(t,e)},t.storeOwnByIndex=function(e,t){return new n.EcmaStownbyindex(e,new n.Imm(t))},t.storeOwnByValue=function(e,t,r){return r?new n.EcmaStownbyvaluewithnameset(e,t):new n.EcmaStownbyvalue(e,t)},t.throwIfSuperNotCorrectCall=function(e){return new n.EcmaThrowifsupernotcorrectcall(new n.Imm(e))},t.call=function(e,t){let r,i=e.length;if(t)r=new n.EcmaCallithisrangedyn(new n.Imm(i-1),e);else switch(i){case 1:r=new n.EcmaCallarg0dyn(e[0]);break;case 2:r=new n.EcmaCallarg1dyn(e[0],e[1]);break;case 3:r=new n.EcmaCallargs2dyn(e[0],e[1],e[2]);break;case 4:r=new n.EcmaCallargs3dyn(e[0],e[1],e[2],e[3]);break;default:r=new n.EcmaCallirangedyn(new n.Imm(i-1),e)}return r},t.newObject=function(e){return new n.EcmaNewobjdynrange(new n.Imm(e.length),e)},t.getPropIterator=function(){return new n.EcmaGetpropiterator},t.getNextPropName=function(e){return new n.EcmaGetnextpropname(e)},t.returnUndefined=function(){return new n.EcmaReturnundefined},t.createEmptyObject=function(){return new n.EcmaCreateemptyobject},t.createObjectHavingMethod=function(e){return new n.EcmaCreateobjecthavingmethod(new n.Imm(e))},t.createObjectWithBuffer=function(e){return new n.EcmaCreateobjectwithbuffer(new n.Imm(e))},t.setObjectWithProto=function(e,t){return new n.EcmaSetobjectwithproto(e,t)},t.copyDataProperties=function(e,t){return new n.EcmaCopydataproperties(e,t)},t.defineGetterSetterByValue=function(e,t,r,i){return new n.EcmaDefinegettersetterbyvalue(e,t,r,i)},t.createEmptyArray=function(){return new n.EcmaCreateemptyarray},t.createArrayWithBuffer=function(e){return new n.EcmaCreatearraywithbuffer(new n.Imm(e))},t.storeArraySpread=function(e,t){return new n.EcmaStarrayspread(e,t)},t.defineClassWithBuffer=function(e,t,r,i,a){return new n.EcmaDefineclasswithbuffer(e,new n.Imm(t),new n.Imm(r),i,a)},t.createObjectWithExcludedKeys=function(e,t){return new n.EcmaCreateobjectwithexcludedkeys(new n.Imm(t.length-1),e,t)},t.throwObjectNonCoercible=function(){return new n.EcmaThrowpatternnoncoercible},t.throwIfNotObject=function(e){return new n.EcmaThrowifnotobject(e)},t.getIterator=function(){return new n.EcmaGetiterator},t.getIteratorNext=function(e,t){return new n.EcmaGetiteratornext(e,t)},t.closeIterator=function(e){return new n.EcmaCloseiterator(e)},t.superCall=function(e,t){return new n.EcmaSupercall(new n.Imm(e),t)},t.superCallSpread=function(e){return new n.EcmaSupercallspread(e)},t.ldSuperByName=function(e,t){return new n.EcmaLdsuperbyname(t,e)},t.stSuperByName=function(e,t){return new n.EcmaStsuperbyname(t,e)},t.stSuperByValue=function(e,t){return new n.EcmaStsuperbyvalue(e,t)},t.ldSuperByValue=function(e,t){return new n.EcmaLdsuperbyvalue(e,t)},t.importModule=function(e){return new n.EcmaImportmodule(e)},t.loadModuleVarByName=function(e,t){return new n.EcmaLdmodvarbyname(e,t)},t.storeModuleVariable=function(e){return new n.EcmaStmodulevar(e)},t.copyModuleIntoCurrentModule=function(e){return new n.EcmaCopymodule(e)},t.loadHomeObject=function(){return new n.EcmaLdhomeobject},t.defineFunc=function(e,t,r){return new n.EcmaDefinefuncdyn(e,new n.Imm(r),t)},t.defineAsyncFunc=function(e,t,r){return new n.EcmaDefineasyncfunc(e,new n.Imm(r),t)},t.defineGeneratorFunc=function(e,t,r){return new n.EcmaDefinegeneratorfunc(e,new n.Imm(r),t)},t.defineNCFunc=function(e,t,r){return new n.EcmaDefinencfuncdyn(e,new n.Imm(r),t)},t.defineMethod=function(e,t,r){return new n.EcmaDefinemethod(e,new n.Imm(r),t)},t.isTrue=function(){return new n.EcmaIstrue},t.isFalse=function(){return new n.EcmaIsfalse},t.createRegExpWithLiteral=function(e,t){return new n.EcmaCreateregexpwithliteral(e,new n.Imm(t))},t.stLetToGlobalRecord=function(e){return new n.EcmaStlettoglobalrecord(e)},t.stConstToGlobalRecord=function(e){return new n.EcmaStconsttoglobalrecord(e)},t.stClassToGlobalRecord=function(e){return new n.EcmaStclasstoglobalrecord(e)},t.loadAccumulatorBigInt=function(e){return new n.EcmaLdbigint(e)}},"./src/base/builtIn.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandFunc=t.expandFalse=t.expandTrue=t.expandNull=t.expandSymbol=t.expandUndefined=t.expandGlobal=t.expandInfinity=t.expandNaN=t.expandHole=void 0;const n=r("./src/irnodes.ts"),i=r("./src/base/vregisterCache.ts");t.expandHole=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.HOLE);return[new n.EcmaLdhole,new n.StaDyn(t)]},t.expandNaN=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.NaN);return[new n.EcmaLdnan,new n.StaDyn(t)]},t.expandInfinity=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Infinity);return[new n.EcmaLdinfinity,new n.StaDyn(t)]},t.expandGlobal=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Global);return[new n.EcmaLdglobal,new n.StaDyn(t)]},t.expandUndefined=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.undefined);return[new n.EcmaLdundefined,new n.StaDyn(t)]},t.expandSymbol=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Symbol);return[new n.EcmaLdsymbol,new n.StaDyn(t)]},t.expandNull=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Null);return[new n.EcmaLdnull,new n.StaDyn(t)]},t.expandTrue=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.True);return[new n.EcmaLdtrue,new n.StaDyn(t)]},t.expandFalse=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.False);return[new n.EcmaLdfalse,new n.StaDyn(t)]},t.expandFunc=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.FUNC);return[new n.EcmaLdfunction,new n.StaDyn(t)]}},"./src/base/iterator.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Iterator=void 0,t.Iterator=class{constructor(e,t,r,n,i){this.iterRecord=e,this.iterDone=t,this.iterValue=r,this.pandaGen=n,this.node=i}getIterator(){let e=this.pandaGen,t=this.iterRecord.iterator;e.getIterator(this.node),e.storeAccumulator(this.node,t),e.loadObjProperty(this.node,t,"next"),e.storeAccumulator(this.node,this.iterRecord.nextMethod)}callNext(e){this.pandaGen.getIteratorNext(this.node,this.iterRecord.iterator,this.iterRecord.nextMethod),this.pandaGen.storeAccumulator(this.node,e)}iteratorComplete(e){this.pandaGen.loadObjProperty(this.node,e,"done"),this.pandaGen.storeAccumulator(this.node,this.iterDone)}iteratorValue(e){this.pandaGen.loadObjProperty(this.node,e,"value"),this.pandaGen.storeAccumulator(this.node,this.iterValue)}close(){this.pandaGen.closeIterator(this.node,this.iterRecord.iterator)}getCurrentValue(){return this.iterValue}getCurrrentDone(){return this.iterDone}}},"./src/base/lexEnv.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandLexEnv=void 0;const n=r("./src/cmdOptions.ts"),i=r("./src/base/bcGenUtil.ts"),a=r("./src/base/vregisterCache.ts");t.expandLexEnv=function(e){let t,r=e.getScope().getNearestVariableScope();if(!r)throw new Error("pandagen must have one variable scope");return t=r.need2CreateLexEnv()?function(e,t){let r,o=t.getNumLexEnv(),s=[],c=t.getLexVarInfo();return n.CmdOptions.isDebugMode()&&(r=e.appendScopeInfo(c)),s.push((0,i.newLexicalEnv)(o,r),(0,i.storeAccumulator)((0,a.getVregisterCache)(e,a.CacheList.LexEnv))),s}(e,r):function(e){let t=[];return t.push((0,i.loadLexicalEnv)(),(0,i.storeAccumulator)((0,a.getVregisterCache)(e,a.CacheList.LexEnv))),t}(e),t}},"./src/base/literal.ts":(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralBuffer=t.Literal=t.LiteralTag=void 0,(r=t.LiteralTag||(t.LiteralTag={}))[r.BOOLEAN=1]="BOOLEAN",r[r.INTEGER=2]="INTEGER",r[r.DOUBLE=4]="DOUBLE",r[r.STRING=5]="STRING",r[r.METHOD=6]="METHOD",r[r.GENERATOR=7]="GENERATOR",r[r.ACCESSOR=8]="ACCESSOR",r[r.METHODAFFILIATE=9]="METHODAFFILIATE",r[r.NULLVALUE=255]="NULLVALUE",t.Literal=class{constructor(e,t){this.t=e,this.v=t}getTag(){return this.t}getValue(){return this.v}},t.LiteralBuffer=class{constructor(){this.lb=[]}addLiterals(...e){this.lb.push(...e)}getLiterals(){return this.lb}isEmpty(){return 0==this.lb.length}getLiteral(e){if(!(e>=this.lb.length||this.lb.length<=0))return this.lb[e]}}},"./src/base/lreference.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LReference=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/compilerUtils.ts"),c=r("./src/diagnostic.ts"),l=r("./src/expression/memberAccessExpression.ts"),u=r("./src/expression/parenthesizedExpression.ts"),_=r("./src/irnodes.ts"),d=a(r("./src/jshelpers.js")),p=r("./src/variable.ts"),f=r("./src/base/util.ts");var g;!function(e){e[e.MemberAccess=0]="MemberAccess",e[e.LocalOrGlobal=1]="LocalOrGlobal",e[e.Destructuring=2]="Destructuring"}(g||(g={}));class m{constructor(e,t,r,n,i){this.obj=void 0,this.prop=void 0,this.propLiteral=void 0,this.node=e,this.compiler=t,this.isDeclaration=r,this.refKind=n,n==g.Destructuring?this.destructuringTarget=e:n==g.LocalOrGlobal?this.variable=i:n==g.MemberAccess&&(this.obj=t.getPandaGen().getTemp(),this.prop=t.getPandaGen().getTemp())}getValue(){let e=this.compiler.getPandaGen();switch(this.refKind){case g.MemberAccess:let t;return t=void 0===this.propLiteral?this.prop:this.propLiteral,void e.loadObjProperty(this.node,this.obj,t);case g.LocalOrGlobal:return void this.compiler.loadTarget(this.node,this.variable);case g.Destructuring:throw new Error("Destructuring target can't be loaded");default:throw new Error("Invalid LReference kind to GetValue")}}setValue(){let e=this.compiler.getPandaGen();switch(this.refKind){case g.MemberAccess:{let t;if(t=void 0===this.propLiteral?this.prop:this.propLiteral,d.isSuperProperty(this.node)){let r=e.getTemp();this.compiler.getThis(this.node,r),e.storeSuperProperty(this.node,r,t),e.freeTemps(r)}else e.storeObjProperty(this.node,this.obj,t);return void e.freeTemps(this.obj,this.prop)}case g.LocalOrGlobal:return void this.compiler.storeTarget(this.node,this.variable,this.isDeclaration);case g.Destructuring:return void(0,s.compileDestructuring)(this.destructuringTarget,e,this.compiler);default:throw new Error("Invalid LReference kind to SetValue")}}setObjectAndProperty(e,t,r){d.isSuperProperty(this.node)||e.moveVreg(this.node,this.obj,t),r instanceof _.VReg?e.moveVreg(this.node,this.prop,r):this.propLiteral=r}static generateLReference(e,t,r){let n=e.getPandaGen(),i=t;if(o.isParenthesizedExpression(t)&&(i=(0,u.findInnerExprOfParenthesis)(t)),o.isIdentifier(i)){let t=d.getTextOfIdentifierOrLiteral(i),n=e.getCurrentScope().find(t);return n.v||(n.v=e.getCurrentScope().add(t,p.VarDeclarationKind.NONE)),new m(i,e,r,g.LocalOrGlobal,n)}if(o.isPropertyAccessExpression(i)||o.isElementAccessExpression(i)){let t=new m(i,e,!1,g.MemberAccess,void 0),r=n.getTemp(),a=n.getTemp(),{obj:o,prop:s}=(0,l.getObjAndProp)(i,r,a,e);return t.setObjectAndProperty(n,o,s),n.freeTemps(r,a),t}if(o.isVariableDeclarationList(i)){let t=i.declarations;if(1!=t.length)throw new Error("Malformed variable declaration");return m.generateLReference(e,t[0].name,!0)}if((0,f.isBindingOrAssignmentPattern)(i))return new m(i,e,r,g.Destructuring,void 0);throw new c.DiagnosticError(t,c.DiagnosticCode.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)}}t.LReference=m},"./src/base/properties.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getPropName=t.propertyKeyAsString=t.isConstantExpr=t.generatePropertyFromExpr=t.Property=t.PropertyKind=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/expression/memberAccessExpression.ts"),c=a(r("./src/jshelpers.js"));var l;!function(e){e[e.Variable=0]="Variable",e[e.Constant=1]="Constant",e[e.Computed=2]="Computed",e[e.Prototype=3]="Prototype",e[e.Accessor=4]="Accessor",e[e.Spread=5]="Spread"}(l=t.PropertyKind||(t.PropertyKind={}));class u{constructor(e,t){this.compiled=!1,this.redeclared=!1,this.propKind=e,void 0!==t&&(this.name=t)}setCompiled(){this.compiled=!0}setRedeclared(){this.redeclared=!0}isCompiled(){return this.compiled}isRedeclared(){return this.redeclared}getName(){if(void 0===this.name)throw new Error("this property doesn't have a name");return this.name}getKind(){return this.propKind}getValue(){if(this.propKind==l.Accessor)throw new Error("Accessor doesn't have valueNode");return this.valueNode}getGetter(){return this.getterNode}getSetter(){return this.setterNode}setValue(e){this.valueNode=e,this.getterNode=void 0,this.setterNode=void 0}setGetter(e){this.propKind!=l.Accessor&&(this.valueNode=void 0,this.setterNode=void 0,this.propKind=l.Accessor),this.getterNode=e}setSetter(e){this.propKind!=l.Accessor&&(this.valueNode=void 0,this.getterNode=void 0,this.propKind=l.Accessor),this.setterNode=e}setKind(e){this.propKind=e}}function _(e,t,r,n,i){if(r==l.Computed||r==l.Spread){let i=new u(r,e);i.setValue(t),n.push(i)}else{let a=new u(r,e),s=p(e);if(i.has(s)){let e=n[i.get(s)];if(!(e.getKind()!=l.Accessor&&e.getKind()!=l.Constant||r!=l.Accessor&&r!=l.Constant))return void(r==l.Accessor?o.isGetAccessorDeclaration(t)?e.setGetter(t):o.isSetAccessorDeclaration(t)&&e.setSetter(t):(e.setValue(t),e.setKind(l.Constant)));a.setRedeclared()}i.set(s,n.length),r==l.Accessor?o.isGetAccessorDeclaration(t)?a.setGetter(t):o.isSetAccessorDeclaration(t)&&a.setSetter(t):a.setValue(t),n.push(a)}}function d(e){switch(e.kind){case o.SyntaxKind.StringLiteral:case o.SyntaxKind.NumericLiteral:case o.SyntaxKind.NullKeyword:case o.SyntaxKind.TrueKeyword:case o.SyntaxKind.FalseKeyword:return!0;default:return!1}}function p(e){return"number"==typeof e?e.toString():e}function f(e){if(o.isComputedPropertyName(e))return e;let t=c.getTextOfIdentifierOrLiteral(e);if(e.kind==o.SyntaxKind.NumericLiteral)t=Number.parseFloat(t),(0,s.isValidIndex)(t)||(t=t.toString());else if(e.kind==o.SyntaxKind.StringLiteral){let e=Number(t);isNaN(Number.parseFloat(t))||isNaN(e)||!(0,s.isValidIndex)(e)||String(e)!=t||(t=e)}return t}t.Property=u,t.generatePropertyFromExpr=function(e){let t=!1,r=[],n=new Map;return e.properties.forEach((e=>{switch(e.kind){case o.SyntaxKind.PropertyAssignment:{if(e.name.kind==o.SyntaxKind.ComputedPropertyName){_(e.name,e,l.Computed,r,n);break}let i=f(e.name);if("__proto__"==i){if(t)throw new Error("__proto__ was set multiple times in the object definition.");_(i,e.initializer,l.Prototype,r,n),t=!0;break}d(e.initializer)?_(i,e.initializer,l.Constant,r,n):_(i,e.initializer,l.Variable,r,n);break}case o.SyntaxKind.ShorthandPropertyAssignment:_(c.getTextOfIdentifierOrLiteral(e.name),e.name,l.Variable,r,n);break;case o.SyntaxKind.SpreadAssignment:_(void 0,e.expression,l.Spread,r,n);break;case o.SyntaxKind.MethodDeclaration:{let t=f(e.name);_(t,e,"string"==typeof t||"number"==typeof t?l.Variable:l.Computed,r,n);break}case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:{let t=f(e.name);_(t,e,"string"==typeof t||"number"==typeof t?l.Accessor:l.Computed,r,n);break}default:throw new Error("Unreachable Kind")}})),r},t.isConstantExpr=d,t.propertyKeyAsString=p,t.getPropName=f},"./src/base/typeSystem.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InterfaceType=t.ObjectType=t.ArrayType=t.UnionType=t.ExternalType=t.FunctionType=t.ClassInstType=t.ClassType=t.TypeSummary=t.PlaceHolderType=t.BaseType=t.AccessFlag=t.ModifierReadonly=t.ModifierStatic=t.ModifierAbstract=t.L2Type=t.PrimitiveType=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/pandagen.ts"),l=r("./src/typeChecker.ts"),u=r("./src/typeRecorder.ts"),_=r("./src/base/literal.ts");var d,p,f,g,m,y;!function(e){e[e.ANY=0]="ANY",e[e.NUMBER=1]="NUMBER",e[e.BOOLEAN=2]="BOOLEAN",e[e.VOID=3]="VOID",e[e.STRING=4]="STRING",e[e.SYMBOL=5]="SYMBOL",e[e.NULL=6]="NULL",e[e.UNDEFINED=7]="UNDEFINED",e[e.INT=8]="INT",e[e._LENGTH=50]="_LENGTH"}(d=t.PrimitiveType||(t.PrimitiveType={})),function(e){e[e._COUNTER=0]="_COUNTER",e[e.CLASS=1]="CLASS",e[e.CLASSINST=2]="CLASSINST",e[e.FUNCTION=3]="FUNCTION",e[e.UNION=4]="UNION",e[e.ARRAY=5]="ARRAY",e[e.OBJECT=6]="OBJECT",e[e.EXTERNAL=7]="EXTERNAL",e[e.INTERFACE=8]="INTERFACE"}(p=t.L2Type||(t.L2Type={})),function(e){e[e.NONABSTRACT=0]="NONABSTRACT",e[e.ABSTRACT=1]="ABSTRACT"}(f=t.ModifierAbstract||(t.ModifierAbstract={})),function(e){e[e.NONSTATIC=0]="NONSTATIC",e[e.STATIC=1]="STATIC"}(g=t.ModifierStatic||(t.ModifierStatic={})),function(e){e[e.NONREADONLY=0]="NONREADONLY",e[e.READONLY=1]="READONLY"}(m=t.ModifierReadonly||(t.ModifierReadonly={})),function(e){e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE",e[e.PROTECTED=2]="PROTECTED"}(y=t.AccessFlag||(t.AccessFlag={}));class h{constructor(){this.typeChecker=l.TypeChecker.getInstance(),this.typeRecorder=u.TypeRecorder.getInstance()}addCurrentType(e,t){this.typeRecorder.addType2Index(e,t)}setVariable2Type(e,t){this.typeRecorder.setVariable2Type(e,t)}tryGetTypeIndex(e){return this.typeRecorder.tryGetTypeIndex(e)}getOrCreateRecordForDeclNode(e,t){return this.typeChecker.getOrCreateRecordForDeclNode(e,t)}getOrCreateRecordForTypeNode(e,t){return this.typeChecker.getOrCreateRecordForTypeNode(e,t)}getIndexFromTypeArrayBuffer(e){return c.PandaGen.appendTypeArrayBuffer(e)}setTypeArrayBuffer(e,t){c.PandaGen.setTypeArrayBuffer(e,t)}}t.BaseType=h;class v extends h{transfer2LiteralBuffer(){return new _.LiteralBuffer}}t.PlaceHolderType=v,t.TypeSummary=class extends h{constructor(){super(),this.preservedIndex=0,this.userDefinedClassNum=0,this.anonymousRedirect=new Array,this.preservedIndex=this.getIndexFromTypeArrayBuffer(new v)}setInfo(e,t){this.userDefinedClassNum=e,this.anonymousRedirect=t,this.setTypeArrayBuffer(this,this.preservedIndex)}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;t.push(new _.Literal(_.LiteralTag.INTEGER,p._COUNTER)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.userDefinedClassNum)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.anonymousRedirect.length));for(let e of this.anonymousRedirect)t.push(new _.Literal(_.LiteralTag.STRING,e));return e.addLiterals(...t),e}},t.ClassType=class extends h{constructor(e){super(),this.modifier=f.NONABSTRACT,this.extendsHeritage=d.ANY,this.implementsHeritages=new Array,this.staticFields=new Map,this.staticMethods=new Map,this.fields=new Map,this.methods=new Map,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.addCurrentType(e,this.shiftedTypeIndex),this.fillInModifiers(e),this.fillInHeritages(e),this.fillInFieldsAndMethods(e),this.setTypeArrayBuffer(this,this.typeIndex)}fillInModifiers(e){if(e.modifiers)for(let t of e.modifiers)t.kind===o.SyntaxKind.AbstractKeyword&&(this.modifier=f.ABSTRACT)}fillInHeritages(e){if(e.heritageClauses)for(let t of e.heritageClauses){let e=t.getText();for(let r of t.types){let t=r.expression,n=this.getOrCreateRecordForDeclNode(t,t);e.startsWith("extends ")?this.extendsHeritage=n:e.startsWith("implements ")&&this.implementsHeritages.push(n)}}}fillInFields(e){let t=s.getTextOfIdentifierOrLiteral(e.name),r=Array(d.ANY,y.PUBLIC,m.NONREADONLY),n=!1;if(e.modifiers)for(let t of e.modifiers)switch(t.kind){case o.SyntaxKind.StaticKeyword:n=!0;break;case o.SyntaxKind.PrivateKeyword:r[1]=y.PRIVATE;break;case o.SyntaxKind.ProtectedKeyword:r[1]=y.PROTECTED;break;case o.SyntaxKind.ReadonlyKeyword:r[2]=m.READONLY}let i=e.type,a=e.name;r[0]=this.getOrCreateRecordForTypeNode(i,a),n?this.staticFields.set(t,r):this.fields.set(t,r)}fillInMethods(e){let t=e.name?e.name:void 0,r=new b(e);t&&this.setVariable2Type(t,r.shiftedTypeIndex);let n=this.tryGetTypeIndex(e);r.getModifier()?this.staticMethods.set(r.getFunctionName(),n):this.methods.set(r.getFunctionName(),n)}fillInFieldsAndMethods(e){if(e.members)for(let t of e.members)switch(t.kind){case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.Constructor:case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:this.fillInMethods(t);break;case o.SyntaxKind.PropertyDeclaration:this.fillInFields(t)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.CLASS)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.modifier)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.extendsHeritage)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.implementsHeritages.length)),this.implementsHeritages.forEach((e=>{t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),this.transferFields2Literal(t,!1),this.transferMethods2Literal(t,!1),this.transferFields2Literal(t,!0),this.transferMethods2Literal(t,!0),e.addLiterals(...t),e}transferFields2Literal(e,t){let r=t?this.staticFields:this.fields;e.push(new _.Literal(_.LiteralTag.INTEGER,r.size)),r.forEach(((t,r)=>{e.push(new _.Literal(_.LiteralTag.STRING,r)),e.push(new _.Literal(_.LiteralTag.INTEGER,t[0])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[1])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[2]))}))}transferMethods2Literal(e,t){let r=t?this.staticMethods:this.methods;e.push(new _.Literal(_.LiteralTag.INTEGER,r.size)),r.forEach(((t,r)=>{e.push(new _.Literal(_.LiteralTag.STRING,r)),e.push(new _.Literal(_.LiteralTag.INTEGER,t))}))}},t.ClassInstType=class extends h{constructor(e){super(),this.shiftedReferredClassIndex=e,this.typeIndex=this.getIndexFromTypeArrayBuffer(this),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.typeRecorder.setClass2InstanceMap(this.shiftedReferredClassIndex,this.shiftedTypeIndex)}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.CLASSINST)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.shiftedReferredClassIndex)),e.addLiterals(...t),e}};class b extends h{constructor(e){super(),this.name="",this.accessFlag=y.PUBLIC,this.modifierStatic=g.NONSTATIC,this.parameters=new Array,this.returnType=d.ANY,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.addCurrentType(e,this.shiftedTypeIndex),e.name?this.name=s.getTextOfIdentifierOrLiteral(e.name):this.name="constructor",this.fillInModifiers(e),this.fillInParameters(e),this.fillInReturn(e),this.setTypeArrayBuffer(this,this.typeIndex)}getFunctionName(){return this.name}fillInModifiers(e){if(e.modifiers)for(let t of e.modifiers)switch(t.kind){case o.SyntaxKind.PrivateKeyword:this.accessFlag=y.PRIVATE;break;case o.SyntaxKind.ProtectedKeyword:this.accessFlag=y.PROTECTED;break;case o.SyntaxKind.StaticKeyword:this.modifierStatic=g.STATIC}}fillInParameters(e){if(e.parameters)for(let t of e.parameters){let e=t.type,r=t.name,n=this.getOrCreateRecordForTypeNode(e,r);this.parameters.push(n)}}fillInReturn(e){let t=e.type,r=this.getOrCreateRecordForTypeNode(t,t);this.returnType=r}getModifier(){return this.modifierStatic}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.FUNCTION)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.accessFlag)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.modifierStatic)),t.push(new _.Literal(_.LiteralTag.STRING,this.name)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.parameters.length)),this.parameters.forEach((e=>{t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),t.push(new _.Literal(_.LiteralTag.INTEGER,this.returnType)),e.addLiterals(...t),e}}t.FunctionType=b,t.ExternalType=class extends h{constructor(e,t){super(),this.fullRedirectNath=`#${e}#${t}`,this.typeIndex=this.getIndexFromTypeArrayBuffer(this),this.shiftedTypeIndex=this.typeIndex+d._LENGTH}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.EXTERNAL)),t.push(new _.Literal(_.LiteralTag.STRING,this.fullRedirectNath)),e.addLiterals(...t),e}},t.UnionType=class extends h{constructor(e){super(),this.unionedTypeArray=[],this.typeIndex=d.ANY,this.shiftedTypeIndex=d.ANY,this.setOrReadFromArrayRecord(e)}setOrReadFromArrayRecord(e){let t=e.getText();this.hasUnionTypeMapping(t)?this.shiftedTypeIndex=this.getFromUnionTypeMap(t):(this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.fillInUnionArray(e,this.unionedTypeArray),this.setUnionTypeMap(t,this.shiftedTypeIndex),this.setTypeArrayBuffer(this,this.typeIndex))}hasUnionTypeMapping(e){return this.typeRecorder.hasUnionTypeMapping(e)}getFromUnionTypeMap(e){return this.typeRecorder.getFromUnionTypeMap(e)}setUnionTypeMap(e,t){return this.typeRecorder.setUnionTypeMap(e,t)}fillInUnionArray(e,t){for(let r of e.types){let e=r,n=this.getOrCreateRecordForTypeNode(e,e);t.push(n)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;t.push(new _.Literal(_.LiteralTag.INTEGER,p.UNION)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.unionedTypeArray.length));for(let e of this.unionedTypeArray)t.push(new _.Literal(_.LiteralTag.INTEGER,e));return e.addLiterals(...t),e}},t.ArrayType=class extends h{constructor(e){super(),this.referedTypeIndex=d.ANY,this.typeIndex=d.ANY,this.shiftedTypeIndex=d.ANY;let t=e.elementType;this.referedTypeIndex=this.getOrCreateRecordForTypeNode(t,t),this.setOrReadFromArrayRecord()}setOrReadFromArrayRecord(){this.hasArrayTypeMapping(this.referedTypeIndex)?this.shiftedTypeIndex=this.getFromArrayTypeMap(this.referedTypeIndex):(this.typeIndex=this.getIndexFromTypeArrayBuffer(this),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.setTypeArrayBuffer(this,this.typeIndex),this.setArrayTypeMap(this.referedTypeIndex,this.shiftedTypeIndex))}hasArrayTypeMapping(e){return this.typeRecorder.hasArrayTypeMapping(e)}getFromArrayTypeMap(e){return this.typeRecorder.getFromArrayTypeMap(e)}setArrayTypeMap(e,t){return this.typeRecorder.setArrayTypeMap(e,t)}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.ARRAY)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.referedTypeIndex)),e.addLiterals(...t),e}},t.ObjectType=class extends h{constructor(e){super(),this.properties=new Map,this.typeIndex=d.ANY,this.shiftedTypeIndex=d.ANY,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.fillInMembers(e),this.setTypeArrayBuffer(this,this.typeIndex)}fillInMembers(e){for(let t of e.members){let e=t,r=t.name?t.name.getText():"#undefined",n=this.getOrCreateRecordForTypeNode(e.type,t.name);this.properties.set(r,n)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.OBJECT)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.properties.size)),this.properties.forEach(((e,r)=>{t.push(new _.Literal(_.LiteralTag.STRING,r)),t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),e.addLiterals(...t),e}},t.InterfaceType=class extends h{constructor(e){super(),this.heritages=new Array,this.fields=new Map,this.methods=new Array,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.addCurrentType(e,this.shiftedTypeIndex),this.fillInHeritages(e),this.fillInFieldsAndMethods(e),this.setTypeArrayBuffer(this,this.typeIndex)}fillInHeritages(e){if(e.heritageClauses)for(let t of e.heritageClauses)for(let e of t.types){let t=e.expression,r=this.getOrCreateRecordForDeclNode(t,t);this.heritages.push(r)}}fillInFields(e){let t=s.getTextOfIdentifierOrLiteral(e.name),r=Array(d.ANY,y.PUBLIC,m.NONREADONLY);if(e.modifiers)for(let t of e.modifiers)switch(t.kind){case o.SyntaxKind.PrivateKeyword:r[1]=y.PRIVATE;break;case o.SyntaxKind.ProtectedKeyword:r[1]=y.PROTECTED;break;case o.SyntaxKind.ReadonlyKeyword:r[2]=m.READONLY}let n=e.type,i=e.name;r[0]=this.getOrCreateRecordForTypeNode(n,i),this.fields.set(t,r)}fillInMethods(e){let t=e.name?e.name:void 0,r=new b(e);t&&this.setVariable2Type(t,r.shiftedTypeIndex);let n=this.tryGetTypeIndex(e);this.methods.push(n)}fillInFieldsAndMethods(e){if(e.members)for(let t of e.members)switch(t.kind){case o.SyntaxKind.MethodSignature:this.fillInMethods(t);break;case o.SyntaxKind.PropertySignature:this.fillInFields(t)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.INTERFACE)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.heritages.length)),this.heritages.forEach((e=>{t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),this.transferFields2Literal(t),this.transferMethods2Literal(t),e.addLiterals(...t),e}transferFields2Literal(e){let t=this.fields;e.push(new _.Literal(_.LiteralTag.INTEGER,t.size)),t.forEach(((t,r)=>{e.push(new _.Literal(_.LiteralTag.STRING,r)),e.push(new _.Literal(_.LiteralTag.INTEGER,t[0])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[1])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[2]))}))}transferMethods2Literal(e){let t=this.methods;e.push(new _.Literal(_.LiteralTag.INTEGER,t.length)),t.forEach((t=>{e.push(new _.Literal(_.LiteralTag.INTEGER,t))}))}}},"./src/base/util.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getDtsFiles=t.isBase64Str=t.setPos=t.getRangeStartVregPos=t.getParameterLength4Ctor=t.getParamLengthOfFunc=t.isRestParameter=t.getRangeExplicitVregNums=t.isRangeInst=t.listenErrorEvent=t.listenChildExit=t.terminateWritePipe=t.initiateTs2abc=t.escapeUnicode=t.isAnonymousFunctionDefinition=t.isUndefinedIdentifier=t.isMemberExpression=t.isBindingOrAssignmentPattern=t.isArrayBindingOrAssignmentPattern=t.isObjectBindingOrAssignmentPattern=t.isBindingPattern=t.addUnicodeEscape=t.execute=t.setVariableExported=t.hasDefaultKeywordModifier=t.hasExportKeywordModifier=t.containSpreadElement=void 0;const o=a(r("fs")),s=a(r("path")),c=a(r("./node_modules/typescript/lib/typescript.js")),l=r("./src/statement/classStatement.ts"),u=r("./src/irnodes.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/log.ts"),p=r("./src/scope.ts"),f=r("./src/syntaxCheckHelper.ts");function g(e){let t=0,r=0,n=e.length,i="";for(;r!=n;)"\\"==e[r]&&r+1!=n&&"u"==e[r+1]?(0!=r&&"\\"==e[r-1]?i+=e.substr(t,r-t)+"\\\\\\u":i+=e.substr(t,r-t)+"\\\\u",r+=2,t=r):r++;return r==n&&t!=r&&(i+=e.substr(t)),i}function m(e){return c.isObjectLiteralExpression(e)||c.isObjectBindingPattern(e)}function y(e){return c.isArrayLiteralExpression(e)||c.isArrayBindingPattern(e)}function h(e){return e instanceof u.EcmaCallithisrangedyn||e instanceof u.EcmaCallirangedyn||e instanceof u.EcmaNewobjdynrange||e instanceof u.EcmaCreateobjectwithexcludedkeys}function v(e){return!!e.dotDotDotToken}function b(e){let t=0,r=!0,n=e.parameters;return n&&n.forEach((e=>{(e.initializer||v(e))&&(r=!1),r&&t++})),t}t.containSpreadElement=function(e){if(!e)return!1;for(let t=0;t<e.length;t++)if(e[t].kind===c.SyntaxKind.SpreadElement)return!0;return!1},t.hasExportKeywordModifier=function(e){let t=!1;return e.modifiers&&e.modifiers.forEach((e=>{e.kind==c.SyntaxKind.ExportKeyword&&(t=!0)})),t},t.hasDefaultKeywordModifier=function(e){let t=!1;return e.modifiers&&e.modifiers.forEach((e=>{e.kind==c.SyntaxKind.DefaultKeyword&&(t=!0)})),t},t.setVariableExported=function(e,t){if(!(t instanceof p.ModuleScope))throw new Error("variable can't be exported out of module scope");let r=t.find(e);r.v.setExport(),r.v.setExportedName(e)},t.execute=function(e,t){return(0,r("child_process").spawn)(e,[...t],{stdio:["pipe","inherit","inherit"]}).on("exit",(t=>1===t?((0,d.LOGD)("fail to execute cmd: ",e),0):((0,d.LOGD)("execute cmd successfully: ",e),1))),1},t.addUnicodeEscape=g,t.isBindingPattern=function(e){return c.isArrayBindingPattern(e)||c.isObjectBindingPattern(e)},t.isObjectBindingOrAssignmentPattern=m,t.isArrayBindingOrAssignmentPattern=y,t.isBindingOrAssignmentPattern=function(e){return y(e)||m(e)},t.isMemberExpression=function(e){return!(!c.isPropertyAccessExpression(e)&&!c.isElementAccessExpression(e))},t.isUndefinedIdentifier=function(e){return!!c.isIdentifier(e)&&"undefined"==_.getTextOfIdentifierOrLiteral(e)},t.isAnonymousFunctionDefinition=function(e){return!!(0,f.isFunctionLikeDeclaration)(e)&&!e.name},t.escapeUnicode=function(e){let t=0,r=0,n="";for(;-1!==(r=e.indexOf("\n",t));){let i=e.substring(t,r);-1!=i.indexOf("\\u")&&(i=g(i)),n=n.concat(i,"\n"),t=r+1}return n=n.concat("}\n"),n},t.initiateTs2abc=function(e){let t=s.join(s.resolve(__dirname,"../bin"),"js2abc");return e.unshift("--compile-by-pipe"),(0,r("child_process").spawn)(t,[...e],{stdio:["pipe","inherit","inherit","pipe"]})},t.terminateWritePipe=function(e){e||(0,d.LOGD)("ts2abc is not a valid object"),e.stdio[3].end()},t.listenChildExit=function(e){e||(0,d.LOGD)("child is not a valid object"),e.on("exit",(e=>{1===e&&(0,d.LOGD)("fail to generate panda binary file"),(0,d.LOGD)("success to generate panda binary file")}))},t.listenErrorEvent=function(e){e||(0,d.LOGD)("child is not a valid object"),e.on("error",(e=>{(0,d.LOGD)(e.toString())}))},t.isRangeInst=h,t.getRangeExplicitVregNums=function(e){return h(e)?e instanceof u.EcmaCreateobjectwithexcludedkeys?2:1:-1},t.isRestParameter=v,t.getParamLengthOfFunc=b,t.getParameterLength4Ctor=function(e){if(!(0,l.extractCtorOfClass)(e))return 0;let t,r=e.members;for(let e=0;e<r.length;e++){let n=r[e];c.isConstructorDeclaration(n)&&(t=n)}return b(t)},t.getRangeStartVregPos=function(e){return h(e)?e instanceof u.EcmaCreateobjectwithexcludedkeys?2:1:-1},t.setPos=function e(t){return c.setTextRange(t,{pos:-1,end:-1}),t.forEachChild((t=>{e(t)})),t},t.isBase64Str=function(e){return""!=e&&""!=e.trim()&&Buffer.from(Buffer.from(e,"base64").toString()).toString("base64")==e},t.getDtsFiles=function(e){let t=[];return function e(r){o.readdirSync(r).forEach((function(n,i){let a=s.join(r,n),c=o.statSync(a);!0===c.isDirectory()&&e(a),!0===c.isFile()&&!0===n.endsWith(".d.ts")&&t.push(a)}))}(e),t}},"./src/base/vregisterCache.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVregisterCache=t.VregisterCache=t.CacheList=void 0;const n=r("./src/irnodes.ts"),i=r("./src/base/builtIn.ts"),a=r("./src/base/lexEnv.ts");var o;!function(e){e[e.MIN=0]="MIN",e[e.NaN=0]="NaN",e[e.HOLE=1]="HOLE",e[e.FUNC=2]="FUNC",e[e[1/0]=3]="Infinity",e[e[void 0]=4]="undefined",e[e.Symbol=5]="Symbol",e[e.Null=6]="Null",e[e.Global=7]="Global",e[e.LexEnv=8]="LexEnv",e[e.True=9]="True",e[e.False=10]="False",e[e.MAX=11]="MAX"}(o=t.CacheList||(t.CacheList={}));let s=new Map([[o.HOLE,i.expandHole],[o.NaN,i.expandNaN],[o.Infinity,i.expandInfinity],[o.undefined,i.expandUndefined],[o.Symbol,i.expandSymbol],[o.Null,i.expandNull],[o.Global,i.expandGlobal],[o.LexEnv,a.expandLexEnv],[o.True,i.expandTrue],[o.False,i.expandFalse],[o.FUNC,i.expandFunc]]);class c{constructor(e){this.flag=!1,this.vreg=void 0,this.expander=e}isNeeded(){return this.flag}getCache(){return this.flag&&this.vreg||(this.flag=!0,this.vreg=new n.VReg),this.vreg}getExpander(){return this.expander}}t.VregisterCache=class{constructor(){this.cache=[];for(let e=o.MIN;e<o.MAX;++e){let t=s.get(e);if(!t)throw new Error("invalid expand handler");this.cache[e]=new c(t)}}getCache(e){if(e<o.MIN||e>o.MAX)throw new Error("invalid builtin index");return this.cache[e]}},t.getVregisterCache=function(e,t){return e.getVregisterCache().getCache(t).getCache()}},"./src/cmdOptions.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CmdOptions=void 0;const o=r("./node_modules/commander/index.js"),s=a(r("path")),c=a(r("./node_modules/typescript/lib/typescript.js")),l=r("./src/log.ts"),u=r("./src/base/util.ts");class _{static initOptions(){this.cmd.option("-m, --modules","compile as module.",!1).option("-l, --debug-log","show info debug log and generate the json file.",!1).option("-a, --dump-assembly","dump assembly to file.",!1).option("-d, --debug","compile with debug info.",!1).option("-w, --debug-add-watch <args...>","watch expression and abc file path in debug mode.",[]).option("-k, --keep-persistent-watch <watchArgs...>","keep persistent watch on js file with watched expression.",[]).option("-s, --show-statistics <items...>","show compile statistics(ast, histogram, hoisting, all).",[""]).option("-o, --output <outputFile>","set output file.","").option("-t, --timeout <time>","js to abc timeout threshold(unit: seconds).","0").option("--opt-log-level <level>","specifie optimizer log level.                   Possible values: [debug, info, error, fatal]","error").option("--opt-level <level>","Optimization level. Possible values: [0, 1, 2]. Default: 0\n                    0: no optimizations\n                    1: basic bytecode optimizations, including valueNumber, lowering, constantResolver, regAccAllocator\n                  2: other bytecode optimizations, unimplemented yet","1").option("-h, --help","Show usage guide.",!1).option("-v, --bc-version","Print ark bytecode version",!1).option("--bc-min-version","Print ark bytecode minimum supported version",!1).option("-i, --included-files <files...>","The list of dependent files.",[]).option("-p, --record-type","Record type info. Default: true",!1).option("-q, --dts-type-record","Record type info for .d.ts files. Default: false",!1).option("-g, --debug-type","Print type-related log. Default: false",!1).option("--output-type","set output type.",!1).option("--source-file <file>","specify the file path info recorded in generated abc","").option("--generate-tmp-file","whether to generate intermediate temporary files",!1)}static parseUserCmd(e){this.initOptions();let t=this.cmd.parseOptions(process.argv);if(this.options=this.cmd.opts(),this.options.help)return void this.showHelp();if(this.isBcVersion()||this.isBcMinVersion())return void this.getVersion(this.isBcVersion());if(t.operands=t.operands.slice(2),0===t.operands.length&&0===this.getDeamonModeArgs().length&&!this.isWatchEvaluateExpressionMode())return(0,l.LOGE)("options at least one file is needed"),void this.showHelp();let r=(0,u.getDtsFiles)(s.join(__dirname,"../node_modules/typescript/lib"));return this.unknownOpts=c.parseCommandLine(t.operands),this.unknownOpts.fileNames.push(...r),this.unknownOpts}static showHelp(){this.cmd.outputHelp()}static isBcVersion(){return!!this.options&&this.options.bcVersion}static isBcMinVersion(){return!!this.options&&this.options.bcMinVersion}static getVersion(e=!0){let t=s.join(s.resolve(__dirname,"../bin"),"js2abc"),r=e?"--bc-version":"--bc-min-version";(0,u.execute)(`${t}`,[r])}static setWatchEvaluateExpressionArgs(e){this.options.debugAddWatch=e}static getDeamonModeArgs(){return this.options?this.options.keepPersistentWatch:[]}static isWatchEvaluateDeamonMode(){return"start"==_.getDeamonModeArgs()[0]}static isStopEvaluateDeamonMode(){return"stop"==_.getDeamonModeArgs()[0]}static getEvaluateDeamonPath(){return _.getDeamonModeArgs()[1]}static isWatchEvaluateExpressionMode(){return!!this.options&&0!=this.options.debugAddWatch.length}static getEvaluateExpression(){return this.options.debugAddWatch[0]}static getWatchJsPath(){return this.options.debugAddWatch[1]}static getWatchTimeOutValue(){return 2==this.options.debugAddWatch.length?0:this.options.debugAddWatch[2]}static getIncludedFiles(){return this.options?this.options.includedFiles:[]}static getInputFileName(){let e=this.unknownOpts.fileNames[0];return e.substring(0,e.lastIndexOf("."))}static getOutputBinName(){let e=this.options.output;return""==e&&(e=_.getInputFileName()+".abc"),e}static needRecordType(){return!!this.options&&!this.options.recordType}static needRecordDtsType(){return!!this.options&&this.options.dtsTypeRecord}static isAssemblyMode(){return!!this.options&&this.options.dumpAssembly}static isEnableDebugLog(){return!!this.options&&this.options.debugLog}static isDebugMode(){return!!this.options&&this.options.debug}static isModules(){return!!this.options&&this.options.modules}static getOptLevel(){return this.options?Number.parseFloat(this.options.optLevel):0}static getOptLogLevel(){return this.options?this.options.optLogLevel:""}static showASTStatistics(){return!!this.options&&(this.options.showStatistics.includes("ast")||this.options.showStatistics.includes("all"))}static showHistogramStatistics(){return!!this.options&&(this.options.showStatistics.includes("histogram")||this.options.showStatistics.includes("all"))}static showHoistingStatistics(){return!!this.options&&(this.options.showStatistics.includes("hoisting")||this.options.showStatistics.includes("all"))}static getTimeOut(){return this.options?Number.parseFloat(this.options.timeout):0}static isOutputType(){return!!this.options&&this.options.outputType}static enableTypeLog(){return!!this.options&&this.options.debugType}static getSourceFile(){return this.options?this.options.sourceFile:""}static needGenerateTmpFile(){return!!this.options&&this.options.generateTmpFile}}t.CmdOptions=_,_.cmd=new o.Command,_.options=void 0},"./src/compiler.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Compiler=t.ControlFlowChange=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/astutils.ts")),c=r("./src/base/lreference.ts"),l=r("./src/base/util.ts"),u=r("./src/base/vregisterCache.ts"),_=r("./src/cmdOptions.ts"),d=r("./src/debuginfo.ts"),p=r("./src/diagnostic.ts"),f=r("./src/expression/arrayLiteralExpression.ts"),g=r("./src/expression/bigIntLiteral.ts"),m=r("./src/expression/callExpression.ts"),y=r("./src/expression/memberAccessExpression.ts"),h=r("./src/expression/metaProperty.ts"),v=r("./src/expression/newExpression.ts"),b=r("./src/expression/numericLiteral.ts"),x=r("./src/expression/objectLiteralExpression.ts"),D=r("./src/expression/parenthesizedExpression.ts"),S=r("./src/expression/regularExpression.ts"),E=r("./src/expression/stringLiteral.ts"),T=r("./src/expression/templateExpression.ts"),C=r("./src/expression/yieldExpression.ts"),k=r("./src/function/asyncFunctionBuilder.ts"),A=r("./src/function/functionBuilder.ts"),N=r("./src/function/generatorFunctionBuilder.ts"),F=r("./src/hoisting.ts"),w=r("./src/irnodes.ts"),P=a(r("./src/jshelpers.js")),I=r("./src/log.ts"),O=r("./src/scope.ts"),L=r("./src/statement/classStatement.ts"),M=r("./src/statement/forOfStatement.ts"),R=r("./src/statement/labelTarget.ts"),B=r("./src/statement/loopStatement.ts"),j=r("./src/statement/returnStatement.ts"),J=r("./src/statement/switchStatement.ts"),V=r("./src/statement/tryStatement.ts"),U=r("./src/strictMode.ts"),K=r("./src/syntaxCheckHelper.ts"),z=r("./src/variable.ts"),G=r("./src/expression/compileCommaListExpression.ts");var W;!function(e){e[e.Continue=0]="Continue",e[e.Break=1]="Break"}(W=t.ControlFlowChange||(t.ControlFlowChange={})),t.Compiler=class{constructor(e,t,r,n){this.debugTag="compiler",this.envUnion=new Array,this.rootNode=e,this.pandaGen=t,this.compilerDriver=r,this.recorder=n,this.funcBuilder=new A.FunctionBuilder,this.scope=this.pandaGen.getScope();let i=this.scope.getParameters();for(let e=0;e<i.length;++e)this.pandaGen.getVregForVariable(i[e]);(0,u.getVregisterCache)(this.pandaGen,u.CacheList.LexEnv),this.envUnion.push((0,u.getVregisterCache)(this.pandaGen,u.CacheList.LexEnv)),this.pandaGen.loadAccFromArgs(this.rootNode)}compile(){this.storeFuncObj2LexEnvIfNeeded(),this.compileLexicalBindingForArrowFunction(),this.rootNode.kind==o.SyntaxKind.SourceFile?this.compileSourceFileOrBlock(this.rootNode):(this.compileFunctionLikeDeclaration(this.rootNode),this.callOpt())}pushEnv(e){this.envUnion.push(e)}popEnv(){this.envUnion.pop()}getCurrentEnv(){return this.envUnion[this.envUnion.length-1]}callOpt(){var e,t;if(_.CmdOptions.isDebugMode())return;let r=new Map([["this",1],["4newTarget",2],["0newTarget",2],["argumentsOrRestargs",4],["4funcObj",8]]),n=0,i=this.pandaGen.getScope();if(i instanceof O.FunctionScope){let a=[],o=new Set,s=0;for(let t=0;t<3;t++)i.getCallOpt().has(i.getParameters()[t].getName())?(a.push(this.pandaGen.getLocals()[t]),n+=null!==(e=r.get(i.getParameters()[t].getName()))&&void 0!==e?e:0):(o.add(i.getParameters()[t].getName()),s++);for(let e=3;e<this.pandaGen.getLocals().length;e++)a.push(this.pandaGen.getLocals()[e]);let c=i.getName2variable();c.forEach(((e,t)=>{o.has(t)&&c.delete(t)})),this.pandaGen.setLocals(a),this.pandaGen.setParametersCount(this.pandaGen.getParametersCount()-s),i.getArgumentsOrRestargs()&&(n+=null!==(t=r.get("argumentsOrRestargs"))&&void 0!==t?t:0),this.pandaGen.setCallType(n)}}storeFuncObj2LexEnvIfNeeded(){let e=this.rootNode;if(!o.isFunctionExpression(e)&&!o.isMethodDeclaration(e))return;let t=this.recorder.getScopeOfNode(e);if(e.name){let r=P.getTextOfIdentifierOrLiteral(e.name),n=t.find(r);n.scope==t&&(this.pandaGen.loadAccumulator(d.NodeKind.FirstNodeOfFunction,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.FUNC)),this.pandaGen.storeAccToLexEnv(d.NodeKind.FirstNodeOfFunction,n.scope,n.level,n.v,!0))}}compileLexicalBindingForArrowFunction(){let e=this.rootNode;if(!o.isArrowFunction(e)){let t=this.scope.getChildVariableScope(),r=!1;if(t.forEach((e=>{let t=e.getBindingNode();o.isArrowFunction(t)&&(r=!0)})),r){if(this.storeSpecialArg2LexEnv("4newTarget"),this.storeSpecialArg2LexEnv("arguments"),o.isConstructorDeclaration(e)&&e.parent.heritageClauses)return void this.storeSpecialArg2LexEnv("4funcObj");this.storeSpecialArg2LexEnv("this")}}}storeSpecialArg2LexEnv(e){let t=this.scope.find(e),r=t.v,n=this.pandaGen;if(_.CmdOptions.isDebugMode())t.scope.setLexVar(r,this.scope),n.storeLexicalVar(this.rootNode,t.level,t.v.idxLex,n.getVregForVariable(t.v));else if(r&&r.isLexVar){("this"===e||"4newTarget"===e)&&t.scope instanceof O.FunctionScope&&t.scope.setCallOpt(e),"arguments"===e&&t.scope instanceof O.FunctionScope&&t.scope.setArgumentsOrRestargs();let i="4funcObj"===e?(0,u.getVregisterCache)(n,u.CacheList.FUNC):n.getVregForVariable(t.v);n.storeLexicalVar(this.rootNode,t.level,r.idxLex,i)}}compileSourceFileOrBlock(e){let t=this.pandaGen,r=e.statements,n=!1;e.parent&&o.isConstructorDeclaration(e.parent)&&(0,L.compileDefaultInitClassMembers)(this,e.parent),r.forEach((e=>{this.compileStatement(e),e.kind==o.SyntaxKind.ReturnStatement&&(n=!0)})),e.parent&&o.isConstructorDeclaration(e.parent)?(0,L.compileReturnThis4Ctor)(this,e.parent,n):n||(this.funcBuilder instanceof k.AsyncFunctionBuilder?(this.funcBuilder.resolve(d.NodeKind.Invalid,(0,u.getVregisterCache)(t,u.CacheList.undefined)),t.return(d.NodeKind.Invalid)):_.CmdOptions.isWatchEvaluateExpressionMode()?t.return(d.NodeKind.Invalid):t.returnUndefined(d.NodeKind.Invalid))}compileFunctionBody(e,t){let r=this.pandaGen;if(t.kind==o.SyntaxKind.Block)this.pushScope(t),this.compileSourceFileOrBlock(t),this.popScope();else{if(e!=o.SyntaxKind.ArrowFunction)throw new Error("Node "+this.getNodeName(t)+" is unimplemented as a function body");{this.compileExpression(t);let e=r.getTemp();r.storeAccumulator(t,e),this.funcBuilder instanceof k.AsyncFunctionBuilder?(this.funcBuilder.resolve(t,e),r.return(d.NodeKind.Invalid)):r.loadAccumulator(t,e),r.freeTemps(e),r.return(d.NodeKind.Invalid)}}}compileFunctionParameterDeclaration(e){let t=this.pandaGen;for(let r=0;r<e.parameters.length;++r){let n,i=e.parameters[r],a=i.name,s=c.LReference.generateLReference(this,a,!0);if(o.isIdentifier(a))n=s.variable.v;else if((0,l.isBindingPattern)(a)){let e=r.toString()+"pattern";n=this.scope.find(e).v}let _=t.getVregForVariable(n);if(i.dotDotDotToken){let e=this.pandaGen.getScope();e instanceof O.FunctionScope&&e.setArgumentsOrRestargs(),t.copyRestArgs(i,r),t.storeAccumulator(i,_)}if(i.initializer){let r=new w.Label;t.loadAccumulator(e,_),t.condition(e,o.SyntaxKind.EqualsEqualsEqualsToken,(0,u.getVregisterCache)(t,u.CacheList.undefined),r),this.compileExpression(i.initializer),t.storeAccumulator(i,_),t.label(e,r)}((0,l.isBindingPattern)(a)||o.isIdentifier(a)&&n.isLexVar)&&(t.loadAccumulator(i,_),s.setValue())}}createFuncBuilder(e){let t=this.pandaGen;if(e.modifiers)for(let r=0;r<e.modifiers.length;r++)if(e.modifiers[r].kind==o.SyntaxKind.AsyncKeyword){if(e.asteriskToken)throw new Error("Async generator is not supported");return new k.AsyncFunctionBuilder(t)}return e.asteriskToken?new N.GeneratorFunctionBuilder(t,this):new A.FunctionBuilder}compileFunctionLikeDeclaration(e){let t=this.pandaGen;if(this.compileFunctionParameterDeclaration(e),o.isConstructorDeclaration(e)){let t=e.parent;if(P.getClassExtendsHeritageElement(t)&&!(0,L.extractCtorOfClass)(t))return void(0,L.compileDefaultConstructor)(this,e)}if(e.kind==o.SyntaxKind.FunctionExpression&&e.name){let r=P.getTextOfIdentifierOrLiteral(e.name);t.getScope().addFuncName(r)}this.funcBuilder=this.createFuncBuilder(e),this.funcBuilder.prepare(e,this.recorder),e.body&&this.compileFunctionBody(e.kind,e.body),this.funcBuilder.cleanUp(e)}compileStatement(e){switch(this.pandaGen.setFirstStmt(e),(0,I.LOGD)(this.debugTag,"compile statement: "+this.getNodeName(e)),e.kind){case o.SyntaxKind.Block:this.compileBlock(e);break;case o.SyntaxKind.EmptyStatement:break;case o.SyntaxKind.VariableStatement:this.compileVariableStatement(e);break;case o.SyntaxKind.ExpressionStatement:this.compileExpression(e.expression);break;case o.SyntaxKind.IfStatement:this.compileIfStatement(e);break;case o.SyntaxKind.DoStatement:(0,B.compileDoStatement)(e,this);break;case o.SyntaxKind.WhileStatement:(0,B.compileWhileStatement)(e,this);break;case o.SyntaxKind.ForStatement:(0,B.compileForStatement)(e,this);break;case o.SyntaxKind.ForInStatement:(0,B.compileForInStatement)(e,this);break;case o.SyntaxKind.ForOfStatement:(0,M.compileForOfStatement)(e,this);break;case o.SyntaxKind.ContinueStatement:this.compileContinueStatement(e);break;case o.SyntaxKind.BreakStatement:this.compileBreakStatement(e);break;case o.SyntaxKind.ReturnStatement:(0,j.compileReturnStatement)(e,this);break;case o.SyntaxKind.SwitchStatement:(0,J.compileSwitchStatement)(e,this);break;case o.SyntaxKind.LabeledStatement:this.compileLabeledStatement(e);break;case o.SyntaxKind.ThrowStatement:this.compileThrowStatement(e);break;case o.SyntaxKind.TryStatement:this.compileTryStatement(e);break;case o.SyntaxKind.DebuggerStatement:this.pandaGen.debugger(e);break;case o.SyntaxKind.FunctionDeclaration:this.compileFunctionDeclaration(e);break;case o.SyntaxKind.ClassDeclaration:(0,L.compileClassDeclaration)(this,e);case o.SyntaxKind.ImportDeclaration:break;case o.SyntaxKind.ExportAssignment:this.compileExportAssignment(e);break;case o.SyntaxKind.ExportDeclaration:case o.SyntaxKind.NotEmittedStatement:case o.SyntaxKind.InterfaceDeclaration:break;default:throw new Error("Statement "+this.getNodeName(e)+" is unimplemented")}}compileBlock(e){this.pushScope(e),(0,F.hoistFunctionInBlock)(this.scope,this.pandaGen,(0,U.isStrictMode)(e),this),e.statements.forEach((e=>this.compileStatement(e))),this.popScope()}compileVariableStatement(e){let t=e.declarationList,r=(0,l.hasExportKeywordModifier)(e);t.declarations.forEach((e=>{this.compileVariableDeclaration(e,r)}))}compileVariableDeclaration(e,t=!1){if(t){let t=P.getTextOfIdentifierOrLiteral(e.name);(0,l.setVariableExported)(t,this.getCurrentScope())}let r=c.LReference.generateLReference(this,e.name,!0);if(e.initializer)this.compileExpression(e.initializer);else{if(s.getVarDeclarationKind(e)==z.VarDeclarationKind.VAR)return;s.getVarDeclarationKind(e)==z.VarDeclarationKind.LET&&e.parent.kind!=o.SyntaxKind.CatchClause&&this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.undefined))}r.setValue()}compileIfStatement(e){this.pushScope(e);let t=new w.Label,r=new w.Label;this.compileCondition(e.expression,e.elseStatement?t:r),this.compileStatement(e.thenStatement),e.elseStatement&&(this.pandaGen.branch(d.DebugInfo.getLastNode(),r),this.pandaGen.label(e,t),this.compileStatement(e.elseStatement)),this.pandaGen.label(e,r),this.popScope()}popLoopEnv(e,t){for(;t--;)this.pandaGen.popLexicalEnv(e)}popLoopEnvWhenContinueOrBreak(e,t){let r=e.getCorrespondingNode(),n=e.getLoopEnvLevel();switch(r.kind){case o.SyntaxKind.DoStatement:case o.SyntaxKind.ForStatement:this.popLoopEnv(r,n-1);break;case o.SyntaxKind.WhileStatement:case o.SyntaxKind.ForInStatement:case o.SyntaxKind.ForOfStatement:{let e=t?n:n-1;this.popLoopEnv(r,e);break}default:this.popLoopEnv(r,n)}}compileContinueStatement(e){let t=R.LabelTarget.getLabelTarget(e);this.compileFinallyBeforeCFC(t.getTryStatement(),W.Continue,t.getContinueTargetLabel()),t.getLoopEnvLevel()&&this.popLoopEnvWhenContinueOrBreak(t,!0),this.pandaGen.branch(e,t.getContinueTargetLabel())}compileBreakStatement(e){let t=R.LabelTarget.getLabelTarget(e);this.compileFinallyBeforeCFC(t.getTryStatement(),W.Break,void 0),t.getLoopEnvLevel()&&this.popLoopEnvWhenContinueOrBreak(t,!1),this.pandaGen.branch(e,t.getBreakTargetLabel())}compileLabeledStatement(e){this.pushScope(e);let t,r=P.getTextOfIdentifierOrLiteral(e.label);if(e.statement.kind==o.SyntaxKind.Block||e.statement.kind==o.SyntaxKind.IfStatement){t=new w.Label;let r=new R.LabelTarget(e,t,void 0);R.LabelTarget.updateName2LabelTarget(e,r)}this.compileStatement(e.statement),t&&this.pandaGen.label(e,t),R.LabelTarget.deleteName2LabelTarget(r),this.popScope()}compileThrowStatement(e){let t=this.pandaGen;if(!e.expression)throw new p.DiagnosticError(e,p.DiagnosticCode.Line_break_not_permitted_here);this.compileExpression(e.expression);let r=V.TryStatement.getCurrentTryStatement()?V.TryStatement.getCurrentTryStatement().getLoopEnvLevel():0;this.popLoopEnv(e,r),t.throw(e)}compileFinallyBeforeCFC(e,t,r){let n=V.TryStatement.getCurrentTryStatement(),i=n,a=this.scope;for(;n!=e;n=null==n?void 0:n.getOuterTryStatement())if(n&&n.trybuilder){let e=new w.Label,a=new w.Label,o=new V.LabelPair(e,a),s=V.TryStatement.getCurrentTryStatement();V.TryStatement.setCurrentTryStatement(n.getOuterTryStatement()),this.pandaGen.label(n.getStatement(),e),n.trybuilder.compileFinalizer(t,r),this.pandaGen.label(n.getStatement(),a),V.TryStatement.setCurrentTryStatement(s),(0,V.updateCatchTables)(i,n,o)}this.scope=a}constructTry(e,t,r){let n=this.pandaGen,i=new w.Label,a=new w.Label,s=new w.Label,c=r||new w.Label,l=new V.CatchTable(n,s,new V.LabelPair(i,a));n.label(e,i),t.compileTryBlock(l),n.label(e,a),t.compileFinallyBlockIfExisted(),o.isForOfStatement(e)&&this.getRecorder().getScopeOfNode(e).need2CreateLexEnv()&&n.popLexicalEnv(e),n.branch(e,c),n.label(e,s),t.compileExceptionHandler(),r||n.label(e,c)}compileTryStatement(e){this.pushScope(e),e.catchClause&&e.finallyBlock&&(e=(0,V.transformTryCatchFinally)(e,this.recorder));let t=new V.TryBuilder(this,this.pandaGen,e);this.constructTry(e,t),this.popScope()}compileFunctionDeclaration(e){if(!e.name){let t=(0,l.hasExportKeywordModifier)(e),r=(0,l.hasDefaultKeywordModifier)(e);if(!t||!r)throw new Error("Function declaration without name is unimplemented");if(!(this.scope instanceof O.ModuleScope))throw new Error("SyntaxError: export function declaration cannot in other scope except ModuleScope");{let t=this.compilerDriver.getFuncInternalName(e,this.recorder),r=this.getCurrentEnv();this.pandaGen.defineFunction(d.NodeKind.FirstNodeOfFunction,e,t,r),this.pandaGen.storeModuleVar(e,"default")}}}compileExportAssignment(e){this.compileExpression(e.expression),this.pandaGen.storeModuleVar(e,"default")}compileCondition(e,t){let r=this.pandaGen;if(e.kind==o.SyntaxKind.BinaryExpression){let n=e;switch(n.operatorToken.kind){case o.SyntaxKind.LessThanToken:case o.SyntaxKind.GreaterThanToken:case o.SyntaxKind.LessThanEqualsToken:case o.SyntaxKind.GreaterThanEqualsToken:case o.SyntaxKind.EqualsEqualsToken:case o.SyntaxKind.ExclamationEqualsToken:case o.SyntaxKind.EqualsEqualsEqualsToken:case o.SyntaxKind.ExclamationEqualsEqualsToken:{let e=r.getTemp();return this.compileExpression(n.left),r.storeAccumulator(n,e),this.compileExpression(n.right),r.condition(n,n.operatorToken.kind,e,t),void r.freeTemps(e)}case o.SyntaxKind.AmpersandAmpersandToken:return this.compileExpression(n.left),r.jumpIfFalse(n,t),this.compileExpression(n.right),void r.jumpIfFalse(n,t);case o.SyntaxKind.BarBarToken:{let e=new w.Label;return this.compileExpression(n.left),r.jumpIfTrue(n,e),this.compileExpression(n.right),r.jumpIfFalse(n,t),void r.label(n,e)}}}this.compileExpression(e),r.jumpIfFalse(e,t)}compileExpression(e){switch((0,I.LOGD)(this.debugTag,"compile expr:"+e.kind),e.kind){case o.SyntaxKind.NumericLiteral:(0,b.compileNumericLiteral)(this.pandaGen,e);break;case o.SyntaxKind.BigIntLiteral:(0,g.compileBigIntLiteral)(this.pandaGen,e);break;case o.SyntaxKind.StringLiteral:(0,E.compileStringLiteral)(this.pandaGen,e);break;case o.SyntaxKind.RegularExpressionLiteral:(0,S.compileRegularExpressionLiteral)(this,e);break;case o.SyntaxKind.Identifier:this.compileIdentifier(e);break;case o.SyntaxKind.TrueKeyword:case o.SyntaxKind.FalseKeyword:this.compileBooleanLiteral(e);break;case o.SyntaxKind.CallExpression:(0,m.compileCallExpression)(e,this);break;case o.SyntaxKind.NullKeyword:this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Null));break;case o.SyntaxKind.ThisKeyword:this.compileThisKeyword(e);break;case o.SyntaxKind.MetaProperty:(0,h.compileMetaProperty)(e,this);break;case o.SyntaxKind.ArrayLiteralExpression:(0,f.compileArrayLiteralExpression)(this,e);break;case o.SyntaxKind.ObjectLiteralExpression:(0,x.compileObjectLiteralExpression)(this,e);break;case o.SyntaxKind.PropertyAccessExpression:case o.SyntaxKind.ElementAccessExpression:(0,y.compileMemberAccessExpression)(e,this);break;case o.SyntaxKind.NewExpression:(0,v.compileNewExpression)(e,this);break;case o.SyntaxKind.ParenthesizedExpression:this.compileExpression((0,D.findInnerExprOfParenthesis)(e));break;case o.SyntaxKind.FunctionExpression:this.compileFunctionExpression(e);break;case o.SyntaxKind.DeleteExpression:this.compileDeleteExpression(e);break;case o.SyntaxKind.TypeOfExpression:this.compileTypeOfExpression(e);break;case o.SyntaxKind.VoidExpression:this.compileVoidExpression(e);break;case o.SyntaxKind.AwaitExpression:this.compileAwaitExpression(e);break;case o.SyntaxKind.PrefixUnaryExpression:this.compilePrefixUnaryExpression(e);break;case o.SyntaxKind.PostfixUnaryExpression:this.compilePostfixUnaryExpression(e);break;case o.SyntaxKind.BinaryExpression:this.compileBinaryExpression(e);break;case o.SyntaxKind.ConditionalExpression:this.compileConditionalExpression(e);break;case o.SyntaxKind.YieldExpression:(0,C.compileYieldExpression)(this,e);break;case o.SyntaxKind.ArrowFunction:this.compileArrowFunction(e);break;case o.SyntaxKind.TemplateExpression:this.compileTemplateExpression(e);break;case o.SyntaxKind.NoSubstitutionTemplateLiteral:case o.SyntaxKind.FirstTemplateToken:case o.SyntaxKind.LastLiteralToken:this.compileNoSubstitutionTemplateLiteral(e);break;case o.SyntaxKind.TaggedTemplateExpression:this.compileTaggedTemplateExpression(e);break;case o.SyntaxKind.Constructor:case o.SyntaxKind.PropertyDeclaration:break;case o.SyntaxKind.ClassExpression:(0,L.compileClassDeclaration)(this,e);break;case o.SyntaxKind.PartiallyEmittedExpression:break;case o.SyntaxKind.CommaListExpression:(0,G.compileCommaListExpression)(this,e);break;default:throw new Error("Expression of type "+this.getNodeName(e)+" is unimplemented")}}compileIdentifier(e){let t=P.getTextOfIdentifierOrLiteral(e),{scope:r,level:n,v:i}=this.scope.find(t);i?this.loadTarget(e,{scope:r,level:n,v:i}):this.compileUnscopedIdentifier(e)}compileUnscopedIdentifier(e){let t=P.getTextOfIdentifierOrLiteral(e),r=this.pandaGen;switch(t){case"NaN":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.NaN));case"Infinity":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Infinity));case"globalThis":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Global));case"undefined":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.undefined));default:(0,D.findOuterNodeOfParenthesis)(e).kind==o.SyntaxKind.TypeOfExpression?_.CmdOptions.isWatchEvaluateExpressionMode()?r.loadByNameViaDebugger(e,t,u.CacheList.False):r.loadObjProperty(e,(0,u.getVregisterCache)(r,u.CacheList.Global),t):r.tryLoadGlobalByName(e,t)}}compileBooleanLiteral(e){e.kind==o.SyntaxKind.TrueKeyword?this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.True)):this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.False))}compileFunctionReturnThis(e){if(e.expression.kind==o.SyntaxKind.Identifier){let t=e.expression,r=e.arguments;if("Function"==t.escapedText&&r&&r.length>0)return!!o.isStringLiteral(r[r.length-1])&&(null!=r[r.length-1].text.match(/ *return +this[;]? *$/)&&(this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Global)),!0))}return!1}compileThisKeyword(e){let t=this.pandaGen;(0,L.checkValidUseSuperBeforeSuper)(this,e);let{scope:r,level:n,v:i}=this.scope.find("this");if(this.setCallOpt(r,"this"),!i)throw new Error('"this" not found');if(!(i instanceof z.LocalVariable))throw new Error('"this" must be a local variable');if(r&&n>=0){let e=this.scope,t=!1;for(;e!=r;){if(e instanceof O.VariableScope){t=!0;break}e=e.getParent()}t&&r.setLexVar(i,this.scope)}_.CmdOptions.isWatchEvaluateExpressionMode()?t.loadByNameViaDebugger(e,"this",u.CacheList.True):t.loadAccFromLexEnv(e,r,n,i)}compileFunctionExpression(e){let t=this.compilerDriver.getFuncInternalName(e,this.recorder),r=this.getCurrentEnv();this.pandaGen.defineFunction(e,e,t,r)}compileDeleteExpression(e){let t,r,n=this.pandaGen,i=e.expression;switch(i.kind){case o.SyntaxKind.Identifier:{let r=P.getTextOfIdentifierOrLiteral(i),{scope:a,v:o}=this.scope.find(r);if(!o||a instanceof O.GlobalScope&&o instanceof z.GlobalVariable){let a=n.getTemp();t=(0,u.getVregisterCache)(n,u.CacheList.Global),n.loadAccumulatorString(i,r),n.storeAccumulator(i,a),n.deleteObjProperty(e,t,a),n.freeTemps(a)}else n.loadAccumulator(i,(0,u.getVregisterCache)(n,u.CacheList.False));break}case o.SyntaxKind.PropertyAccessExpression:case o.SyntaxKind.ElementAccessExpression:{if(t=n.getTemp(),r=n.getTemp(),P.isSuperProperty(i))return n.throwDeleteSuperProperty(i),void n.freeTemps(t,r);let{prop:a}=(0,y.getObjAndProp)(i,t,r,this);switch(typeof a){case"string":n.loadAccumulatorString(e,a),n.storeAccumulator(e,r);break;case"number":n.loadAccumulatorInt(e,a),n.storeAccumulator(e,r)}n.deleteObjProperty(e,t,r),n.freeTemps(t,r);break}default:this.compileExpression(i),n.loadAccumulator(e,(0,u.getVregisterCache)(n,u.CacheList.True))}}compileTypeOfExpression(e){this.compileExpression(e.expression),this.pandaGen.typeOf(e)}compileVoidExpression(e){let t=this.pandaGen;this.compileExpression(e.expression),t.loadAccumulator(e,(0,u.getVregisterCache)(t,u.CacheList.undefined))}compileAwaitExpression(e){let t=this.pandaGen;if(!(this.funcBuilder instanceof k.AsyncFunctionBuilder))throw new p.DiagnosticError(e.parent,p.DiagnosticCode.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(e.expression){let r=t.getTemp();this.compileExpression(e.expression),t.storeAccumulator(e,r),this.funcBuilder.await(e,r),t.freeTemps(r)}else this.funcBuilder.await(e,(0,u.getVregisterCache)(t,u.CacheList.undefined))}compilePrefixUnaryExpression(e){let t=this.pandaGen,r=t.getTemp();switch(e.operator){case o.SyntaxKind.PlusPlusToken:case o.SyntaxKind.MinusMinusToken:{let n=c.LReference.generateLReference(this,e.operand,!1);n.getValue(),t.storeAccumulator(e,r),t.unary(e,e.operator,r),n.setValue();break}case o.SyntaxKind.PlusToken:case o.SyntaxKind.MinusToken:case o.SyntaxKind.ExclamationToken:case o.SyntaxKind.TildeToken:this.compileExpression(e.operand),t.storeAccumulator(e,r),t.unary(e,e.operator,r)}t.freeTemps(r)}compilePostfixUnaryExpression(e){let t=this.pandaGen,r=t.getTemp(),n=c.LReference.generateLReference(this,e.operand,!1);switch(n.getValue(),t.storeAccumulator(e,r),e.operator){case o.SyntaxKind.PlusPlusToken:case o.SyntaxKind.MinusMinusToken:t.unary(e,e.operator,r)}n.setValue(),t.toNumber(e,r),t.freeTemps(r)}compileLogicalExpression(e){let t=this.pandaGen,r=t.getTemp();switch(e.operatorToken.kind){case o.SyntaxKind.AmpersandAmpersandToken:{let n=new w.Label,i=new w.Label;this.compileExpression(e.left),t.storeAccumulator(e,r),t.jumpIfFalse(e,n),this.compileExpression(e.right),t.branch(e,i),t.label(e,n),t.loadAccumulator(e,r),t.label(e,i);break}case o.SyntaxKind.BarBarToken:{let n=new w.Label,i=new w.Label;this.compileExpression(e.left),t.storeAccumulator(e,r),t.jumpIfTrue(e,n),this.compileExpression(e.right),t.branch(e,i),t.label(e,n),t.loadAccumulator(e,r),t.label(e,i);break}case o.SyntaxKind.QuestionQuestionToken:{let n=new w.Label,i=new w.Label;this.compileExpression(e.left),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,u.getVregisterCache)(t,u.CacheList.Null),n),t.loadAccumulator(e.left,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,u.getVregisterCache)(t,u.CacheList.undefined),n),t.loadAccumulator(e,r),t.branch(e,i),t.label(e,n),this.compileExpression(e.right),t.label(e,i);break}default:throw new Error("BinaryExpression with operatorToken "+this.getNodeName(e.operatorToken)+" is not Logical Operator")}t.freeTemps(r)}compileBinaryExpression(e){if((0,K.isAssignmentOperator)(e.operatorToken.kind))return void this.compileAssignmentExpression(e.left,e.right,e.operatorToken.kind);if(e.operatorToken.kind==o.SyntaxKind.AmpersandAmpersandToken||e.operatorToken.kind==o.SyntaxKind.BarBarToken||e.operatorToken.kind==o.SyntaxKind.QuestionQuestionToken)return void this.compileLogicalExpression(e);let t=this.pandaGen,r=t.getTemp();this.compileExpression(e.left),t.storeAccumulator(e,r),this.compileExpression(e.right),e.operatorToken.kind!=o.SyntaxKind.CommaToken&&t.binary(e,e.operatorToken.kind,r),t.freeTemps(r)}compileConditionalExpression(e){let t=new w.Label,r=new w.Label;this.compileCondition(e.condition,t),this.compileExpression(e.whenTrue),this.pandaGen.branch(e,r),this.pandaGen.label(e,t),this.compileExpression(e.whenFalse),this.pandaGen.label(e,r)}compileArrowFunction(e){let t=this.compilerDriver.getFuncInternalName(e,this.recorder),r=this.getCurrentEnv();this.pandaGen.defineFunction(e,e,t,r)}compileTemplateSpan(e){let t=e.expression;this.compileExpression(t);let r=e.literal,n=this.pandaGen.getTemp(),i=r.text;0!=i.length&&(this.pandaGen.storeAccumulator(e,n),this.pandaGen.loadAccumulatorString(e,i),this.pandaGen.binary(e,o.SyntaxKind.PlusToken,n)),this.pandaGen.freeTemps(n)}compileTemplateExpression(e){let t=this.pandaGen,r=e.head,n=e.templateSpans,i=t.getTemp();t.loadAccumulatorString(e,r.text),n&&n.length>0&&n.forEach((r=>{t.storeAccumulator(e,i),this.compileTemplateSpan(r),t.binary(e,o.SyntaxKind.PlusToken,i)})),t.freeTemps(i)}compileNoSubstitutionTemplateLiteral(e){let t=e.text;this.pandaGen.loadAccumulatorString(e,t)}compileTaggedTemplateExpression(e){let t,r=this.pandaGen;o.isTemplateExpression(e.template)&&(t=e.template.templateSpans);let{arguments:n,passThis:i}=(0,m.getHiddenParameters)(e.tag,this);(0,T.getTemplateObject)(r,e);let a=r.getTemp();r.storeAccumulator(e,a),n.push(a),t&&t.length&&t.forEach((e=>{let t=r.getTemp();this.compileExpression(e.expression),r.storeAccumulator(e,t),n.push(t)})),r.call(e,n,i),r.freeTemps(...n)}compileAssignmentExpression(e,t,r){let n=c.LReference.generateLReference(this,e,!1);if(r!=o.SyntaxKind.EqualsToken){let i=this.pandaGen.getTemp();n.getValue(),this.pandaGen.storeAccumulator(e,i),this.compileExpression(t),this.pandaGen.binary(e.parent,r,i),this.pandaGen.freeTemps(i)}else this.compileExpression(t);n.setValue()}pushScope(e){let t=this.recorder.getScopeOfNode(e);this.scope=t,d.DebugInfo.addDebugIns(t,this.pandaGen,!0)}popScope(){d.DebugInfo.addDebugIns(this.scope,this.pandaGen,!1),this.scope=this.scope.getParent()}getNodeName(e){return o.SyntaxKind[e.kind]}getThis(e,t){let r=this.pandaGen,n=this.getCurrentScope(),i=this.getCurrentScope().find("this"),a=i.scope,o=i.level,s=i.v;if(this.setCallOpt(a,"this"),a&&o>=0){let e=!1;for(;n!=a;){if(n instanceof O.VariableScope){e=!0;break}n=n.getParent()}e&&a.setLexVar(s,n)}if(s.isLexVar){let n=s.idxLex;r.loadLexicalVar(e,o,n),r.storeAccumulator(e,t)}else r.moveVreg(e,t,r.getVregForVariable(s))}setThis(e){let t=this.pandaGen,r=this.getCurrentScope().find("this");if(this.setCallOpt(r.scope,"this"),r.v.isLexVar){let n=r.v.idxLex,i=t.getTemp();t.storeAccumulator(e,i),t.storeLexicalVar(e,r.level,n,i),t.freeTemps(i)}else t.storeAccumulator(e,t.getVregForVariable(r.v))}setCallOpt(e,t){e instanceof O.FunctionScope&&e.setCallOpt(t)}getPandaGen(){return this.pandaGen}getCurrentScope(){return this.scope}getCompilerDriver(){return this.compilerDriver}getRecorder(){return this.recorder}getFuncBuilder(){return this.funcBuilder}storeTarget(e,t,r){if(t.v instanceof z.LocalVariable){if(r&&t.v.isLetOrConst()&&(t.v.initialize(),t.scope instanceof O.GlobalScope))return void(t.v.isLet()?this.pandaGen.stLetToGlobalRecord(e,t.v.getName()):this.pandaGen.stConstToGlobalRecord(e,t.v.getName()));if(t.v.isLetOrConst()&&t.scope instanceof O.GlobalScope)return void this.pandaGen.tryStoreGlobalByName(e,t.v.getName());if(t.scope&&t.level>=0){let e=this.scope,r=!1;for(;e!=t.scope;){if(e instanceof O.VariableScope){r=!0;break}e=e.getParent()}r&&t.scope.setLexVar(t.v,this.scope)}this.pandaGen.storeAccToLexEnv(e,t.scope,t.level,t.v,r)}else{if(!(t.v instanceof z.GlobalVariable))throw new Error("invalid lhsRef to store");t.v.isNone()&&(0,U.isStrictMode)(e)?this.pandaGen.tryStoreGlobalByName(e,t.v.getName()):this.pandaGen.storeGlobalVar(e,t.v.getName())}}loadTarget(e,t){if(t.v instanceof z.LocalVariable){if((t.v.isLetOrConst()||t.v.isClass())&&t.scope instanceof O.GlobalScope)return void this.pandaGen.tryLoadGlobalByName(e,t.v.getName());if(t.scope&&t.level>=0){let e=this.scope,r=!1;for(;e!=t.scope;){if(e instanceof O.VariableScope){r=!0;break}e=e.getParent()}r&&t.scope.setLexVar(t.v,this.scope)}this.pandaGen.loadAccFromLexEnv(e,t.scope,t.level,t.v)}else{if(!(t.v instanceof z.GlobalVariable))throw new Error("Only local and global variables are implemented");t.v.isNone()?(0,D.findOuterNodeOfParenthesis)(e).kind==o.SyntaxKind.TypeOfExpression?_.CmdOptions.isWatchEvaluateExpressionMode()?this.pandaGen.loadByNameViaDebugger(e,t.v.getName(),u.CacheList.False):this.pandaGen.loadObjProperty(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Global),t.v.getName()):this.pandaGen.tryLoadGlobalByName(e,t.v.getName()):this.pandaGen.loadGlobalVar(e,t.v.getName())}}}},"./src/compilerDriver.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CompilerDriver=t.PendingCompilationUnit=void 0;const o=r("fs"),s=a(r("./node_modules/typescript/lib/typescript.js")),c=r("./src/addVariable2Scope.ts"),l=r("./src/assemblyDumper.ts"),u=r("./src/base/util.ts"),_=r("./src/cmdOptions.ts"),d=r("./src/compiler.ts"),p=r("./src/compilerStatistics.ts"),f=r("./src/debuginfo.ts"),g=r("./src/hoisting.ts"),m=r("./src/log.ts"),y=r("./src/modules.ts"),h=r("./src/pandagen.ts"),v=r("./src/pass/cacheExpander.ts"),b=r("./src/recorder.ts"),x=r("./src/regAllocator.ts"),D=r("./src/scope.ts"),S=r("./src/statement/classStatement.ts"),E=r("./src/syntaxChecker.ts"),T=r("./src/ts2panda.ts"),C=r("./src/typeRecorder.ts");class k{constructor(e,t,r){this.decl=e,this.scope=t,this.internalName=r}}t.PendingCompilationUnit=k;class A{constructor(e){this.passes=[],this.functionId=1,this.funcIdMap=new Map,this.needDumpHeader=!0,this.ts2abcProcess=void 0,this.fileName=e,this.passes=[new v.CacheExpander,new x.RegAlloc],this.compilationUnits=[],this.pendingCompilationUnits=[],(_.CmdOptions.showHistogramStatistics()||_.CmdOptions.showHoistingStatistics())&&(this.statistics=new p.CompilerStatistics)}initiateTs2abcChildProcess(){this.ts2abcProcess=(0,u.initiateTs2abc)([this.fileName])}getTs2abcProcess(){if(void 0===this.ts2abcProcess)throw new Error("ts2abc hasn't been initiated");return this.ts2abcProcess}getStatistics(){return this.statistics}setCustomPasses(e){this.passes=e}addCompilationUnit(e,t,r){let n=this.getFuncInternalName(e,r);return this.pendingCompilationUnits.push(new k(e,t,n)),n}getCompilationUnits(){return this.compilationUnits}kind2String(e){return s.SyntaxKind[e]}getASTStatistics(e,t){e.forEachChild((e=>{t[e.kind]=t[e.kind]+1,this.getASTStatistics(e,t)}))}postOrderAnalysis(e){let t=[],r=[];for(r.push(e);r.length>0;){let e=r.pop();if(null==e)break;t.push(e);for(let t of e.getChildVariableScope())r.push(t)}return t.reverse()}compileForSyntaxCheck(e){let t=this.compilePrologue(e,!1,!0);(0,E.checkDuplicateDeclaration)(t),(0,E.checkExportEntries)(t)}compile(e){if(A.isTsFile=A.isTypeScriptSourceFile(e),_.CmdOptions.showASTStatistics()){let t=new Array(s.SyntaxKind.Count).fill(0);this.getASTStatistics(e,t),t.forEach(((e,t)=>{e>0&&(0,m.LOGD)(this.kind2String(t)+" = "+e)}))}let t=this.compilePrologue(e,!0,!1);if(_.CmdOptions.isAssemblyMode())for(let e=0;e<this.pendingCompilationUnits.length;e++){let r=this.pendingCompilationUnits[e];this.compileImpl(r.decl,r.scope,r.internalName,t)}else{this.initiateTs2abcChildProcess();let e=this.getTs2abcProcess();(0,u.listenChildExit)(e),(0,u.listenErrorEvent)(e);try{T.Ts2Panda.dumpCmdOptions(e);for(let e=0;e<this.pendingCompilationUnits.length;e++){let r=this.pendingCompilationUnits[e];this.compileImpl(r.decl,r.scope,r.internalName,t)}if(T.Ts2Panda.dumpStringsArray(e),T.Ts2Panda.dumpConstantPool(e),(0,u.terminateWritePipe)(e),_.CmdOptions.isEnableDebugLog()){let e=this.fileName.substring(0,this.fileName.lastIndexOf(".")).concat(".json");(0,o.writeFileSync)(e,T.Ts2Panda.jsonString),(0,m.LOGD)("Successfully generate ",`${e}`)}if(_.CmdOptions.isOutputType()){let e=this.fileName.substring(0,this.fileName.lastIndexOf(".")).concat(".txt");(0,o.writeFileSync)(e,T.Ts2Panda.dumpTypeLiteralArrayBuffer())}T.Ts2Panda.clearDumpData()}catch(t){throw(0,u.terminateWritePipe)(e),t}}h.PandaGen.clearLiteralArrayBuffer()}compileImpl(e,t,r,n){let i=new h.PandaGen(r,this.getParametersCount(e),t);f.DebugInfo.addDebugIns(t,i,!0);let a=new d.Compiler(e,i,this,n);_.CmdOptions.isModules()&&s.isSourceFile(e)&&t instanceof D.ModuleScope&&((0,y.setImport)(n.getImportStmts(),t,i),(0,y.setExportBinding)(n.getExportStmts(),t,i)),(0,g.hoisting)(e,i,n,a),a.compile(),this.passes.forEach((e=>e.run(i))),f.DebugInfo.addDebugIns(t,i,!1),f.DebugInfo.setDebugInfo(i),f.DebugInfo.setSourceFileDebugInfo(i,e),_.CmdOptions.isAssemblyMode()?this.writeBinaryFile(i):T.Ts2Panda.dumpPandaGen(i,this.getTs2abcProcess(),n.recordType),_.CmdOptions.showHistogramStatistics()&&this.statistics.getInsHistogramStatistics(i)}compileUnitTest(e,t){A.isTsFile=A.isTypeScriptSourceFile(e);let r=this.compilePrologue(e,!0,!0);for(let e=0;e<this.pendingCompilationUnits.length;e++){let t=this.pendingCompilationUnits[e];this.compileUnitTestImpl(t.decl,t.scope,t.internalName,r)}t&&h.PandaGen.getLiteralArrayBuffer().forEach((e=>t.push(e))),h.PandaGen.clearLiteralArrayBuffer()}compileUnitTestImpl(e,t,r,n){let i=new h.PandaGen(r,this.getParametersCount(e),t),a=new d.Compiler(e,i,this,n);_.CmdOptions.isModules()&&s.isSourceFile(e)&&t instanceof D.ModuleScope&&((0,y.setImport)(n.getImportStmts(),t,i),(0,y.setExportBinding)(n.getExportStmts(),t,i)),(0,g.hoisting)(e,i,n,a),a.compile(),this.passes.forEach((e=>e.run(i))),this.compilationUnits.push(i)}static isTypeScriptSourceFile(e){let t=e.fileName;return!(!t||!t.endsWith(".ts"))}compilePrologue(e,t,r){let n;n=_.CmdOptions.isModules()?new D.ModuleScope(e):new D.GlobalScope(e);let i=t&&_.CmdOptions.needRecordType()&&A.isTsFile;i&&C.TypeRecorder.createInstance();let a=new b.Recorder(e,n,this,i,A.isTsFile,r);a.record(),(0,c.addVariableToScope)(a,i);let o=this.postOrderAnalysis(n);for(let e of o)this.addCompilationUnit(e.getBindingNode(),e,a);return a}showStatistics(){_.CmdOptions.showHistogramStatistics()&&this.statistics.printHistogram(!1),_.CmdOptions.showHoistingStatistics()&&this.statistics.printHoistStatistics()}getFuncId(e){if(this.funcIdMap.has(e))return this.funcIdMap.get(e);if(s.isSourceFile(e))return this.funcIdMap.set(e,0),0;let t=this.functionId++;return this.funcIdMap.set(e,t),t}getFuncInternalName(e,t){let r;if(s.isSourceFile(e))r="func_main_0";else if(s.isConstructorDeclaration(e)){let t=e.parent;r=this.getInternalNameForCtor(t,e)}else{let n=e;if(r=t.getScopeOfNode(n).getFuncName(),""==r)return`#${this.getFuncId(n)}#`;if("func_main_0"==r)return`#${this.getFuncId(n)}#${r}`;let i=t.getFuncNameMap();if(!i.has(r))throw new Error("the function name is missing from the name map");i.get(r)>1&&(r=`#${this.getFuncId(n)}#${r}`),-1==r.lastIndexOf(".")&&-1==r.lastIndexOf("\\")||(r=`#${this.getFuncId(n)}#`)}return r}getInternalNameForCtor(e,t){let r=(0,S.getClassNameForConstructor)(e);return r=`#${this.getFuncId(t)}#${r}`,-1!=r.lastIndexOf(".")&&(r=`#${this.getFuncId(t)}#`),r}writeBinaryFile(e){this.needDumpHeader&&(l.AssemblyDumper.dumpHeader(),this.needDumpHeader=!1),new l.AssemblyDumper(e).dump()}getParametersCount(e){let t=3;return e.kind==s.SyntaxKind.SourceFile||(t+=e.parameters.length),t}}t.CompilerDriver=A,A.isTsFile=!1},"./src/compilerStatistics.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompilerStatistics=t.HoistingType=void 0;const n=r("./src/irnodes.ts"),i=r("./src/log.ts");var a;(a=t.HoistingType||(t.HoistingType={}))[a.GLOBAL_VAR=0]="GLOBAL_VAR",a[a.LOCAL_VAR=1]="LOCAL_VAR",a[a.GLOBAL_FUNCTION=2]="GLOBAL_FUNCTION",a[a.LOCAL_FUNCTION=3]="LOCAL_FUNCTION";class o{constructor(e,t){this.count=1,this.relatedInsns=[],this.nodeMap=new Map,this.instSize=e,t&&this.relatedInsns.push(t)}add(e){this.count+=e,this.relatedInsns.forEach((t=>{t.num+=e}))}set(e){this.count=e,this.relatedInsns.forEach((t=>{t.num=e}))}getCount(){return this.count}getInstSize(){return this.instSize}getTotalSize(){return this.count*this.instSize}getRelatedInsns(){return this.relatedInsns}getNodeMap(){return this.nodeMap}updateNodeMap(e){if(this.nodeMap.has(e)){let t=this.nodeMap.get(e);this.nodeMap.set(e,t+1)}else this.nodeMap.set(e,1)}unionNodeMap(e){e.forEach(((e,t)=>{if(this.nodeMap.has(t)){let r=this.nodeMap.get(t);r+=e,this.nodeMap.set(t,r)}else this.nodeMap.set(t,e)}))}getSavedSizeIfRemoved(e){let t=this.getTotalSize();return this.relatedInsns.forEach((r=>{let n=e.getStatistics().get(r.name);n&&(t+=r.num*n.getInstSize())})),t}static createItemValue(e,t){let r;return"lda.str"==e&&(r={name:"sta.dyn",num:1}),new o(t,r)}}class s{constructor(e){this.insHistogram=new Map,this.funcName=e}getInsName(e){return e.kind==n.IRNodeKind.LABEL?"Label":e.kind==n.IRNodeKind.CALL||e.kind==n.IRNodeKind.CALL_SHORT||e.kind==n.IRNodeKind.CALL_RANGE?e.operands[0].split(".")[2]:e.getMnemonic()}unionStatistics(e){e.getStatistics().forEach(((e,t)=>{if(this.insHistogram.has(t)){let r=this.insHistogram.get(t);r.add(e.getCount()),r.unionNodeMap(e.getNodeMap()),this.insHistogram.set(t,r)}else this.insHistogram.set(t,e)}))}catchStatistics(e){e.getInsns().forEach((e=>{let t=this.getInsName(e),r=(0,n.getInstructionSize)(e.kind),a=e.getNodeName();if(t.length<=1&&(0,i.LOGD)("this IRNode had no key: "+e.toString()),this.insHistogram.has(t)){let e=this.insHistogram.get(t);e.updateNodeMap(a),e.add(1),this.insHistogram.set(t,e)}else{let e=o.createItemValue(t,r);e.updateNodeMap(a),this.insHistogram.set(t,e)}}))}getStatistics(){return this.insHistogram}getTotal(){let e=0,t=0;return this.insHistogram.forEach(((r,n)=>{e+=r.getCount(),t+=r.getTotalSize()})),[e,t]}print(){let e=this.getTotal()[0],t=this.getTotal()[1];(0,i.LOGD)("\n"),(0,i.LOGD)("Histogram:","====== ("+this.funcName+") ======"),(0,i.LOGD)("op code\t\t\tinsns number\tins size\ttotal size\tsize percentage"),this.insHistogram.forEach(((e,r)=>{r.length<8?(0,i.LOGD)(r+"\t\t\t"+e.getCount()+"\t\t"+e.getInstSize()+"\t\t"+e.getTotalSize()+"\t\t"+e.getSavedSizeIfRemoved(this)+"\t"+Math.round(e.getSavedSizeIfRemoved(this)/t*100)+"%"):r.length<16?(0,i.LOGD)(r+"\t\t"+e.getCount()+"\t\t"+e.getInstSize()+"\t\t"+e.getTotalSize()+"\t\t"+e.getSavedSizeIfRemoved(this)+"\t"+Math.round(e.getSavedSizeIfRemoved(this)/t*100)+"%"):(0,i.LOGD)(r+"\t"+e.getCount()+"\t\t"+e.getInstSize()+"\t\t"+e.getTotalSize()+"\t\t"+e.getSavedSizeIfRemoved(this)+"\t"+Math.round(e.getSavedSizeIfRemoved(this)/t*100)+"%")})),(0,i.LOGD)("total insns number : \t"+e+"\t\ttotal Size : \t"+t),(0,i.LOGD)("\n"),this.insHistogram.forEach(((e,t)=>{e.getNodeMap().size>1&&((0,i.LOGD)("op code: "+t),e.getNodeMap().forEach(((t,r)=>{r.length<8?(0,i.LOGD)("Node: \t"+r+"\t\t\t\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%"):r.length<16?(0,i.LOGD)("Node: \t"+r+"\t\t\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%"):r.length<24?(0,i.LOGD)("Node: \t"+r+"\t\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%"):(0,i.LOGD)("Node: \t"+r+"\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%")})),(0,i.LOGD)("\n"))}))}}t.CompilerStatistics=class{constructor(){this.histogramMap=new Map,this.numOfHoistingCases=[0,0,0,0],this.hoistingRelatedInsnNum=0}addHoistingRelatedInsnNum(e){this.hoistingRelatedInsnNum+=e}addNumOfHoistCases(e){this.numOfHoistingCases[e]++}getInsHistogramStatistics(e){let t=new s(e.internalName);t.catchStatistics(e),this.histogramMap.set(e.internalName,t)}printHistogram(e){let t=new s("Total");this.histogramMap.forEach(((r,n)=>{t.unionStatistics(r),e&&r.print()})),t.print()}printHoistStatistics(){(0,i.LOGD)("\n"),(0,i.LOGD)("HoistingRelated Histogram:","======whole file======="),(0,i.LOGD)("global var\tlocal var\tglobal function\tlocal function"),(0,i.LOGD)(this.numOfHoistingCases[0]+"\t\t"+this.numOfHoistingCases[1]+"\t\t"+this.numOfHoistingCases[2]+"\t\t"+this.numOfHoistingCases[3]),(0,i.LOGD)("\n"),(0,i.LOGD)("Approximately hoisting related insns nums"),(0,i.LOGD)(this.hoistingRelatedInsnNum)}}},"./src/compilerUtils.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileDestructuring=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/lreference.ts"),c=r("./src/base/util.ts"),l=r("./src/base/vregisterCache.ts"),u=r("./src/irnodes.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/statement/tryStatement.ts"),p=r("./src/base/iterator.ts");function f(e,t,r,n,i,a){let c=n.getTemp(),_=n.getTemp(),d=new u.Label,p=new u.Label,f=e,g=s.LReference.generateLReference(i,f,a);n.createEmptyArray(e),n.storeAccumulator(e,c),n.loadAccumulatorInt(e,0),n.storeAccumulator(e,_),n.label(e,d),t.iteratorComplete(r),n.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(n,l.CacheList.True),p),t.iteratorValue(r),n.storeObjProperty(e,c,_),n.loadAccumulatorInt(e,1),n.binary(e,o.SyntaxKind.PlusToken,_),n.storeAccumulator(e,_),t.callNext(r),n.branch(e,d),n.label(e,p),n.loadAccumulator(e,c),g.setValue(),n.freeTemps(c,_)}function g(e,t,r,n,i){let a=o.isBindingElement(e)?e.name:e.expression,c=s.LReference.generateLReference(i,a,!0),u=n.getTemp();0==t.length&&(n.loadAccumulator(e,(0,l.getVregisterCache)(n,l.CacheList.undefined)),n.storeAccumulator(e,u),t.push(u)),n.createObjectWithExcludedKeys(e,r,t),c.setValue(),n.freeTemps(u)}function m(e){return!!e.dotDotDotToken}t.compileDestructuring=function(e,t,r){let n=t.getTemp();t.storeAccumulator(e,n),(0,c.isArrayBindingOrAssignmentPattern)(e)&&function(e,t,r){let n=t.getTemp(),i=t.getTemp(),a=t.getTemp(),c=t.getTemp(),_=t.getTemp(),g=t.getTemp(),m=!!o.isArrayBindingPattern(e),y=new p.Iterator({iterator:n,nextMethod:i},a,c,t,e);y.getIterator();let h=new u.Label,v=new u.Label,b=new u.Label,x=new u.Label,D=new u.Label,S=new u.Label;new d.CatchTable(t,b,new d.LabelPair(h,v)),t.label(e,h);for(let n=0;n<e.elements.length;n++){let i=e.elements[n];if(y.callNext(_),o.isOmittedExpression(i))continue;if(!m&&o.isSpreadElement(i)||m&&i.dotDotDotToken){f(m?i.name:i.expression,y,_,t,r,m),t.branch(i,S);break}let a,c=!1,d=m?i.name:i;if(!m&&o.isBinaryExpression(i)){if(i.operatorToken.kind!=o.SyntaxKind.EqualsToken)throw new Error("Invalid destructuring assignment target");d=i.left,a=i.right,c=!0}else m&&i.initializer&&(a=i.initializer,c=!0);let p=s.LReference.generateLReference(r,d,!!m),g=new u.Label,h=new u.Label,v=new u.Label;y.iteratorComplete(_),t.condition(i,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.True),c?g:h),y.iteratorValue(_),c?(t.condition(i,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.undefined),g),t.loadAccumulator(i,y.getCurrentValue()),t.branch(i,v),t.label(i,g),r.compileExpression(a),t.branch(i,v)):t.branch(i,v),t.label(i,h),t.loadAccumulator(i,(0,l.getVregisterCache)(t,l.CacheList.undefined)),t.label(i,v),p.setValue()}t.label(e,v),t.loadAccumulator(e,y.getCurrrentDone()),t.condition(e,o.SyntaxKind.EqualsEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.True),D),t.branch(e,S),t.label(e,b),t.storeAccumulator(e,g),y.close(),t.loadAccumulator(e,g),t.throw(e),t.label(e,x),t.label(e,D),y.close(),t.label(e,S),t.freeTemps(n,i,a,c,_,g)}(e,t,r),(0,c.isObjectBindingOrAssignmentPattern)(e)&&function(e,t,r){let n=t.getTemp();t.storeAccumulator(e,n);let i=!o.isObjectLiteralExpression(e),a=i?e.elements:e.properties,c=a.length;if(0==c||i&&m(a[0])||!i&&o.isSpreadAssignment(a[0])){let r=new u.Label,i=new u.Label;t.loadAccumulator(e,n),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.Null),i),t.loadAccumulator(e,n),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.undefined),i),t.branch(e,r),t.label(e,i),t.throwObjectNonCoercible(e),t.label(e,r)}let d=new Array,p=new Array;for(let e=0;e<c;e++){let e=t.getTemp();d.push(e)}for(let e=0;e<c;e++){let c=a[e];if(i&&m(c)||!i&&o.isSpreadAssignment(c)){g(c,p,n,t,r);break}p.push(d[e]);let f,y,h=t.getTemp(),v=c,b=!1;if(i){let e=c;v=e.name,f=e.propertyName?e.propertyName:e.name,e.initializer&&(b=!0,y=e.initializer)}else if(o.isPropertyAssignment(c)){f=c.name;let e=c.initializer;if(o.isBinaryExpression(e)){if(e.operatorToken.kind!=o.SyntaxKind.EqualsToken)throw new Error("Invalid destructuring target");v=e.left,y=e.right}else v=e}else{if(!o.isShorthandPropertyAssignment(c))throw new Error("Invalid destructuring target");f=c.name,v=c.name,y=c.objectAssignmentInitializer?c.objectAssignmentInitializer:void 0}if(o.isComputedPropertyName(f))r.compileExpression(f.expression);else if(o.isIdentifier(f)){let e=_.getTextOfIdentifierOrLiteral(f);t.loadAccumulatorString(f,e)}else r.compileExpression(f);t.storeAccumulator(f,d[e]);let x=s.LReference.generateLReference(r,v,i);t.loadObjProperty(c,n,d[e]),t.storeAccumulator(c,h);let D=new u.Label,S=new u.Label;b&&(t.condition(c,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.undefined),D),t.loadAccumulator(c,h),t.branch(c,S),t.label(c,D),r.compileExpression(y),t.label(c,S)),x.setValue(),t.freeTemps(h)}t.freeTemps(n,...d)}(e,t,r),t.loadAccumulator(e,n),t.freeTemps(n)}},"./src/debuginfo.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugInfo=t.NodeKind=t.VariableDebugInfo=t.DebugPosInfo=void 0;const o=r("./src/cmdOptions.ts"),s=r("./src/irnodes.ts"),c=a(r("./src/jshelpers.js"));t.DebugPosInfo=class{constructor(){this.l=-1,this.c=-1,this.nodeKind=u.FirstNodeOfFunction}setDebugPosInfoNodeState(e){_.isNode(e)?this.nodeKind=u.Normal:this.nodeKind=e}getDebugPosInfoNodeState(){return this.nodeKind}setBoundLeft(e){this.bl=e}getBoundLeft(){return this.bl}setBoundRight(e){this.br=e}getBoundRight(){return this.br}setSourecLineNum(e){this.l=e}getSourceLineNum(){return this.l}setSourecColumnNum(e){this.c=e}getSourceColumnNum(){return this.c}ClearNodeKind(){this.nodeKind=void 0}};class l{constructor(e,t,r,n,i=0,a=0){this.n="",this.s="",this.st="",this.r=-1,this.start=-1,this.len=-1,this.n=e,this.s=t,this.st=r,this.r=n,this.start=i,this.len=a}setStart(e){this.start=e}getStart(){return this.start}setLength(e){this.len=e}}var u;t.VariableDebugInfo=l,function(e){e[e.Normal=0]="Normal",e[e.Invalid=1]="Invalid",e[e.FirstNodeOfFunction=2]="FirstNodeOfFunction"}(u=t.NodeKind||(t.NodeKind={}));class _{constructor(){}static isNode(e){return e!=u.Invalid&&e!=u.FirstNodeOfFunction&&e!=u.Normal}static updateLastNode(e){_.isNode(e)&&(_.lastNode=e)}static getLastNode(){return _.lastNode}static searchForPos(e){let t=c.getSourceFileOfNode(e);if(!t)return;let r=0;return-1===e.pos||-1===e.end?{loc:{line:-1,character:-1}}:(r=e.getStart(),{loc:t.getLineAndCharacterOfPosition(r)})}static setPosInfoForUninitializeIns(e,t){let r=t.getFirstStmt();if(r){let t=this.searchForPos(r);if(!t)return;e.setSourecLineNum(t.loc.line),e.setSourecColumnNum(t.loc.character)}}static setInvalidPosInfoForUninitializeIns(e,t){e.setSourecLineNum(-1),e.setSourecColumnNum(-1)}static addScope(e){_.scopeArray.push(e)}static getScopeArray(){return _.scopeArray}static clearScopeArray(){_.scopeArray=[]}static setDebuginfoForIns(e,...t){_.updateLastNode(e);let r=-1,n=-1;if(_.isNode(e)){let t=e,i=this.searchForPos(t);if(!i)return;r=i.loc.line,n=i.loc.character}t.forEach((t=>{t.debugPosInfo.setSourecLineNum(r),t.debugPosInfo.setSourecColumnNum(n),t.debugPosInfo.setDebugPosInfoNodeState(e)}))}static matchFormat(e){let t=0,r=e.getFormats();for(let n=0;n<r[0].length;n++)if(e.operands[n]instanceof s.VReg)for(let i=0;i<r.length;i++)e.operands[n].num<1<<r[i][n][1]&&(t=i>t?i:t);return t}static getIRNodeWholeLength(e){if(e instanceof s.Label||e instanceof s.DebugInsStartPlaceHolder||e instanceof s.DebugInsEndPlaceHolder)return 0;let t=1;if(!e.getFormats()[0])return 0;let r=this.matchFormat(e),n=e.getFormats()[r];for(let r=0;r<n.length;r++){if(e instanceof s.CalliDynRange||e instanceof s.CallRange){t+=n[0][1]/8,t+=n[1][1]/8;break}t+=n[r][1]/8}return t}static setPosDebugInfo(e){let t=e.getInsns(),r=0;for(let n=0;n<t.length;n++){t[n].debugPosInfo.getDebugPosInfoNodeState()==u.FirstNodeOfFunction&&_.setInvalidPosInfoForUninitializeIns(t[n].debugPosInfo,e);let i=_.getIRNodeWholeLength(t[n]),a=t[n].debugPosInfo;a&&o.CmdOptions.isDebugMode()&&(a.setBoundLeft(r),a.setBoundRight(r+i)),r+=i,n>0&&t[n-1]instanceof s.Label&&(t[n-1].debugPosInfo=t[n].debugPosInfo)}}static setVariablesDebugInfo(e){let t=e.getInsns();for(let e=0;e<t.length;e++)t[e]instanceof s.DebugInsStartPlaceHolder&&(t[e].getScope().setScopeStartInsIdx(e),t.splice(e,1),e--),t[e]instanceof s.DebugInsEndPlaceHolder&&(t[e].getScope().setScopeEndInsIdx(e),t.splice(e,1),e--);_.getScopeArray().forEach((t=>{t.getName2variable().forEach(((r,n)=>{if(!r.hasAlreadyBinded())return;if("0this"==r.getName()||"0newTarget"==r.getName())return;let i=new l(n,"any","any",r.getVreg().num);i.setStart(t.getScopeStartInsIdx()),i.setLength(t.getScopeEndInsIdx()-t.getScopeStartInsIdx()),e.addDebugVariableInfo(i)}))}))}static setDebugInfo(e){if(_.setPosDebugInfo(e),o.CmdOptions.isDebugMode())return _.setVariablesDebugInfo(e),void _.clearScopeArray()}static setSourceFileDebugInfo(e,t){let r=c.getSourceFileOfNode(t);o.CmdOptions.getSourceFile().length>0?e.setSourceFileDebugInfo(o.CmdOptions.getSourceFile()):e.setSourceFileDebugInfo(r.fileName)}static copyDebugInfo(e,t){t.forEach((t=>t.debugPosInfo=e.debugPosInfo))}static addDebugIns(e,t,r){if(!o.CmdOptions.isDebugMode())return;let n,i=t.getInsns();r?(n=new s.DebugInsStartPlaceHolder(e),_.addScope(e)):n=new s.DebugInsEndPlaceHolder(e),i.push(n)}}t.DebugInfo=_,_.scopeArray=[]},"./src/diagnostic.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getDiagnostic=t.DiagnosticCode=t.createDiagnostic=t.createFileDiagnostic=t.createDiagnosticOnFirstToken=t.printDiagnostic=t.DiagnosticError=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/log.ts");function l(e,t,r,...n){let i=s.getSpanOfTokenAtPosition(e,t.pos);return s.createFileDiagnostic(e,i.start,i.length,r,...n)}function u(e,t,r,...n){let i,a=s.getErrorSpanForNode(e,t);switch(t.kind){case o.SyntaxKind.Identifier:case o.SyntaxKind.PrivateIdentifier:i=s.createFileDiagnostic(e,a.start,a.length,r,o.idText(t));break;case o.SyntaxKind.ReturnStatement:i=l(e,t,r,...n);break;default:i=s.createFileDiagnostic(e,a.start,a.length,r,...n)}return i}function _(e,t,r,n,i,a){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i}}var d;t.DiagnosticError=class{constructor(e,t,r,n){this.code=t,this.irnode=e,this.file=r||void 0,this.args=n||[]}},t.printDiagnostic=function(e){let t=o.flattenDiagnosticMessageText(e.messageText,"\n");if(e.file&&null!=e.start){let{line:r,character:n}=e.file.getLineAndCharacterOfPosition(e.start);(0,c.LOGE)(`${e.file.fileName} (${r+1},${n+1})`,`${t}`)}else(0,c.LOGE)("Error",t)},t.createDiagnosticOnFirstToken=l,t.createFileDiagnostic=u,t.createDiagnostic=function(e,t,r,...n){return t?e?u(e,t,r,...n):s.createDiagnosticForNode(t,r,...n):s.createCompilerDiagnostic(r,...n)},(d=t.DiagnosticCode||(t.DiagnosticCode={}))[d.Identifier_expected=1003]="Identifier_expected",d[d.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",d[d.A_rest_parameter_must_be_last_in_a_parameter_list=1014]="A_rest_parameter_must_be_last_in_a_parameter_list",d[d.Parameter_cannot_have_question_mark_and_initializer=1015]="Parameter_cannot_have_question_mark_and_initializer",d[d.A_required_parameter_cannot_follow_an_optional_parameter=1016]="A_required_parameter_cannot_follow_an_optional_parameter",d[d.The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature=1024]="The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature",d[d.Accessibility_modifier_already_seen=1028]="Accessibility_modifier_already_seen",d[d._0_modifier_must_precede_1_modifier=1029]="_0_modifier_must_precede_1_modifier",d[d._0_modifier_already_seen=1030]="_0_modifier_already_seen",d[d._0_modifier_cannot_appear_on_class_elements_of_this_kind=1031]="_0_modifier_cannot_appear_on_class_elements_of_this_kind",d[d.A_declare_modifier_cannot_be_used_in_an_already_ambient_context=1038]="A_declare_modifier_cannot_be_used_in_an_already_ambient_context",d[d._0_modifier_cannot_be_used_in_an_ambient_context=1040]="_0_modifier_cannot_be_used_in_an_ambient_context",d[d._0_modifier_cannot_be_used_here=1042]="_0_modifier_cannot_be_used_here",d[d._0_modifier_cannot_appear_on_a_module_or_namespace_element=1044]="_0_modifier_cannot_appear_on_a_module_or_namespace_element",d[d.A_rest_parameter_cannot_be_optional=1047]="A_rest_parameter_cannot_be_optional",d[d.A_rest_parameter_cannot_have_an_initializer=1048]="A_rest_parameter_cannot_have_an_initializer",d[d._0_modifier_cannot_appear_on_a_type_member=1070]="_0_modifier_cannot_appear_on_a_type_member",d[d._0_modifier_cannot_appear_on_an_index_signature=1071]="_0_modifier_cannot_appear_on_an_index_signature",d[d.A_0_modifier_cannot_be_used_with_an_import_declaration=1079]="A_0_modifier_cannot_be_used_with_an_import_declaration",d[d._0_modifier_cannot_appear_on_a_constructor_declaration=1089]="_0_modifier_cannot_appear_on_a_constructor_declaration",d[d._0_modifier_cannot_appear_on_a_parameter=1090]="_0_modifier_cannot_appear_on_a_parameter",d[d.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",d[d.Invalid_use_of_0_in_strict_mode=1100]="Invalid_use_of_0_in_strict_mode",d[d.A_with_statements_are_not_allowed_in_strict_mode=1101]="A_with_statements_are_not_allowed_in_strict_mode",d[d.A_delete_cannot_be_called_on_an_identifier_in_strict_mode=1102]="A_delete_cannot_be_called_on_an_identifier_in_strict_mode",d[d.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",d[d.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",d[d.Jump_target_cannot_cross_function_boundary=1107]="Jump_target_cannot_cross_function_boundary",d[d.A_return_statement_can_only_be_used_within_a_function_body=1108]="A_return_statement_can_only_be_used_within_a_function_body",d[d.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",d[d.Duplicate_label_0=1114]="Duplicate_label_0",d[d.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",d[d.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",d[d.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",d[d.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name=1118]="An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name",d[d.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",d[d.Octal_literals_are_not_allowed_in_strict_mode=1121]="Octal_literals_are_not_allowed_in_strict_mode",d[d.Octal_escape_sequences_are_not_allowed_in_strict_mode=1122]="Octal_escape_sequences_are_not_allowed_in_strict_mode",d[d.Variable_declaration_list_cannot_be_empty=1123]="Variable_declaration_list_cannot_be_empty",d[d.Line_break_not_permitted_here=1142]="Line_break_not_permitted_here",d[d.The_const_declarations_can_only_be_declared_inside_a_block=1156]="The_const_declarations_can_only_be_declared_inside_a_block",d[d.The_const_declarations_must_be_initialized=1155]="The_const_declarations_must_be_initialized",d[d.The_let_declarations_can_only_be_declared_inside_a_block=1157]="The_let_declarations_can_only_be_declared_inside_a_block",d[d.Unterminated_regular_expression_literal=1161]="Unterminated_regular_expression_literal",d[d.An_object_member_cannot_be_declared_optional=1162]="An_object_member_cannot_be_declared_optional",d[d.A_yield_expression_is_only_allowed_in_a_generator_body=1163]="A_yield_expression_is_only_allowed_in_a_generator_body",d[d.A_comma_expression_is_not_allowed_in_a_computed_property_name=1171]="A_comma_expression_is_not_allowed_in_a_computed_property_name",d[d.The_extends_clause_already_seen=1172]="The_extends_clause_already_seen",d[d.Classes_can_only_extend_a_single_class=1174]="Classes_can_only_extend_a_single_class",d[d.The_implements_clause_already_seen=1175]="The_implements_clause_already_seen",d[d.Property_destructuring_pattern_expected=1180]="Property_destructuring_pattern_expected",d[d.A_destructuring_declaration_must_have_an_initializer=1182]="A_destructuring_declaration_must_have_an_initializer",d[d.A_rest_element_cannot_have_an_initializer=1186]="A_rest_element_cannot_have_an_initializer",d[d.A_parameter_property_may_not_be_declared_using_a_binding_pattern=1187]="A_parameter_property_may_not_be_declared_using_a_binding_pattern",d[d.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",d[d.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",d[d.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",d[d.Line_terminator_not_permitted_before_arrow=1200]="Line_terminator_not_permitted_before_arrow",d[d.Decorators_are_not_valid_here=1206]="Decorators_are_not_valid_here",d[d.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name=1207]="Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name",d[d.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode=1210]="Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode",d[d.Identifier_expected_0_is_a_reserved_word_in_strict_mode=1212]="Identifier_expected_0_is_a_reserved_word_in_strict_mode",d[d.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode=1213]="Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode",d[d.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",d[d.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",d[d.An_export_declaration_can_only_be_used_in_a_module=1233]="An_export_declaration_can_only_be_used_in_a_module",d[d.The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration=1242]="The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration",d[d._0_modifier_cannot_be_used_with_1_modifier=1243]="_0_modifier_cannot_be_used_with_1_modifier",d[d.Abstract_methods_can_only_appear_within_an_abstract_class=1244]="Abstract_methods_can_only_appear_within_an_abstract_class",d[d.A_class_member_cannot_have_the_0_keyword=1248]="A_class_member_cannot_have_the_0_keyword",d[d.A_decorator_can_only_decorate_a_method_implementation_not_an_overload=1249]="A_decorator_can_only_decorate_a_method_implementation_not_an_overload",d[d.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",d[d.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode=1251]="Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode",d[d.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode=1252]="Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode",d[d.A_definite_assignment_assertion_is_not_permitted_in_this_context=1255]="A_definite_assignment_assertion_is_not_permitted_in_this_context",d[d.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module=1262]="Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module",d[d.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions=1263]="Declarations_with_initializers_cannot_also_have_definite_assignment_assertions",d[d.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations=1264]="Declarations_with_definite_assignment_assertions_must_also_have_type_annotations",d[d.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules=1308]="await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules",d[d.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern=1312]="Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern",d[d.A_parameter_property_cannot_be_declared_using_a_rest_parameter=1317]="A_parameter_property_cannot_be_declared_using_a_rest_parameter",d[d.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",d[d.use_strict_directive_cannot_be_used_with_non_simple_parameter_list=1347]="use_strict_directive_cannot_be_used_with_non_simple_parameter_list",d[d.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here=1359]="Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here",d[d.Duplicate_identifier_0=2300]="Duplicate_identifier_0",d[d.The_super_can_only_be_referenced_in_a_derived_class=2335]="The_super_can_only_be_referenced_in_a_derived_class",d[d.The_super_cannot_be_referenced_in_constructor_arguments=2336]="The_super_cannot_be_referenced_in_constructor_arguments",d[d.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",d[d.The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class=2338]="The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class",d[d.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter=2358]="The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter",d[d.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type=2359]="The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type",d[d.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",d[d.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",d[d.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type=2362]="The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type",d[d.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type=2363]="The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type",d[d.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",d[d.Multiple_constructor_implementations_are_not_allowed=2392]="Multiple_constructor_implementations_are_not_allowed",d[d.Declaration_name_conflicts_with_built_in_global_identifier_0=2397]="Declaration_name_conflicts_with_built_in_global_identifier_0",d[d.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",d[d.The_super_cannot_be_referenced_in_a_computed_property_name=2466]="The_super_cannot_be_referenced_in_a_computed_property_name",d[d.A_rest_element_must_be_last_in_a_destructuring_pattern=2462]="A_rest_element_must_be_last_in_a_destructuring_pattern",d[d.The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations=2480]="The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations",d[d.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",d[d.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",d[d.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",d[d.A_rest_element_cannot_contain_a_binding_pattern=2501]="A_rest_element_cannot_contain_a_binding_pattern",d[d.The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions=2660]="The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions",d[d.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",d[d.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",d[d.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",d[d.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access=2778]="The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access",d[d.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access=2779]="The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access",d[d.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access=2781]="The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access",d[d._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",d[d.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor=17013]="Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor",d[d.An_accessibility_modifier_cannot_be_used_with_a_private_identifier=18010]="An_accessibility_modifier_cannot_be_used_with_a_private_identifier",d[d.Private_identifiers_are_not_allowed_outside_class_bodies=18016]="Private_identifiers_are_not_allowed_outside_class_bodies",d[d._0_modifier_cannot_be_used_with_a_private_identifier=18019]="_0_modifier_cannot_be_used_with_a_private_identifier",d[d.In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block=19e3]="In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block",d[d.Class_Declaration_can_only_be_declared_at_top_level_or_inside_a_block=19001]="Class_Declaration_can_only_be_declared_at_top_level_or_inside_a_block",d[d.Incorrect_regular_expression=19002]="Incorrect_regular_expression",d[d.Invalid_regular_expression_Colon_0_Colon_Invalid_escape=19003]="Invalid_regular_expression_Colon_0_Colon_Invalid_escape",d[d._8_and_9_are_not_allowed_in_strict_mode=19004]="_8_and_9_are_not_allowed_in_strict_mode",d[d.const_and_let_declarations_not_allowed_in_statement_positions=19005]="const_and_let_declarations_not_allowed_in_statement_positions",d[d.Getter_must_not_have_any_formal_parameters=19006]="Getter_must_not_have_any_formal_parameters",d[d.Class_declaration_not_allowed_in_statement_position=19007]="Class_declaration_not_allowed_in_statement_position",d[d.Lexical_declaration_let_not_allowed_in_statement_position=19008]="Lexical_declaration_let_not_allowed_in_statement_position",d[d.Lexical_declaration_const_not_allowed_in_statement_position=19009]="Lexical_declaration_const_not_allowed_in_statement_position",d[d.Invalid_regular_expression_flag_0=19010]="Invalid_regular_expression_flag_0",t.getDiagnostic=function(e){switch(e){case 1003:return _(1003,o.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected.");case 1013:return _(1013,o.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.");case 1014:return _(1014,o.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list.");case 1015:return _(1015,o.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer.");case 1016:return _(1016,o.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter.");case 1024:return _(1024,o.DiagnosticCategory.Error,"The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","The 'readonly' modifier can only appear on a property declaration or index signature.");case 1028:return _(1028,o.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen.");case 1029:return _(1029,o.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier.");case 1030:return _(1030,o.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen.");case 1031:return _(1031,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind.");case 1038:return _(1038,o.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.");case 1040:return _(1040,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context.");case 1042:return _(1042,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here.");case 1044:return _(1044,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element.");case 1047:return _(1047,o.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional.");case 1048:return _(1048,o.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer.");case 1070:return _(1070,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member.");case 1071:return _(1071,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature.");case 1079:return _(1079,o.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration.");case 1089:return _(1089,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration.");case 1090:return _(1090,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter.");case 1091:return _(1091,o.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.");case 1100:return _(1100,o.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode.");case 1101:return _(1101,o.DiagnosticCategory.Error,"A_with_statements_are_not_allowed_in_strict_mode_1101","A 'with' statements are not allowed in strict mode.");case 1102:return _(1102,o.DiagnosticCategory.Error,"A_delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","A 'delete' cannot be called on an identifier in strict mode.");case 1104:return _(1104,o.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.");case 1105:return _(1105,o.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.");case 1107:return _(1107,o.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary.");case 1108:return _(1108,o.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.");case 1113:return _(1113,o.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.");case 1114:return _(1114,o.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'.");case 1115:return _(1115,o.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.");case 1116:return _(1116,o.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.");case 1117:return _(1117,o.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.");case 1118:return _(1118,o.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.");case 1119:return _(1119,o.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.");case 1121:return _(1121,o.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode.");case 1122:return _(1122,o.DiagnosticCategory.Error,"Octal_escape_sequences_are_not_allowed_in_strict_mode_1122","Octal escape sequences are not allowed in strict mode.");case 1123:return _(1123,o.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty.");case 1142:return _(1142,o.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here.");case 1156:return _(1156,o.DiagnosticCategory.Error,"The_const_declarations_can_only_be_declared_inside_a_block_1156","The 'const' declarations can only be declared inside a block.");case 1155:return _(1155,o.DiagnosticCategory.Error,"The_const_declarations_must_be_initialized_1155","The 'const' declarations must be initialized.");case 1157:return _(1157,o.DiagnosticCategory.Error,"The_let_declarations_can_only_be_declared_inside_a_block_1157","The 'let' declarations can only be declared inside a block.");case 1161:return _(1161,o.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal.");case 1162:return _(1162,o.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional.");case 1163:return _(1163,o.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body.");case 1171:return _(1171,o.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.");case 1172:return _(1172,o.DiagnosticCategory.Error,"The_extends_clause_already_seen_1172","The 'extends' clause already seen.");case 1174:return _(1174,o.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class.");case 1175:return _(1175,o.DiagnosticCategory.Error,"The_implements_clause_already_seen_1175","The 'implements' clause already seen.");case 1180:return _(1180,o.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected.");case 1182:return _(1182,o.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer.");case 1186:return _(1186,o.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A_rest_element_cannot_have_an_initializer.");case 1187:return _(1187,o.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.");case 1188:return _(1188,o.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.");case 1189:return _(1189,o.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.");case 1190:return _(1190,o.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.");case 1200:return _(1200,o.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow.");case 1206:return _(1206,o.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here.");case 1207:return _(1207,o.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.");case 1210:return _(1210,o.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.");case 1212:return _(1212,o.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode.");case 1213:return _(1213,o.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.");case 1214:return _(1214,o.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.");case 1232:return _(1232,o.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.");case 1233:return _(1233,o.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module.");case 1242:return _(1242,o.DiagnosticCategory.Error,"The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","The 'abstract' modifier can only appear on a class, method, or property declaration.");case 1243:return _(1243,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier.");case 1244:return _(1244,o.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class.");case 1248:return _(1248,o.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword.");case 1249:return _(1249,o.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.");case 1250:return _(1250,o.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'.");case 1251:return _(1251,o.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.");case 1252:return _(1252,o.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.");case 1255:return _(1255,o.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context.");case 1262:return _(1262,o.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module.");case 1263:return _(1263,o.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions.");case 1264:return _(1264,o.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations.");case 1308:return _(1308,o.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","await expressions are only allowed within async functions and at the top levels of modules.");case 1312:return _(1312,o.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern.");case 1317:return _(1317,o.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter.");case 1319:return _(1319,o.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.");case 1347:return _(1347,o.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","use strict directive cannot be used with non-simple parameter list.");case 1359:return _(1359,o.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here.");case 2300:return _(2300,o.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'.");case 2335:return _(2335,o.DiagnosticCategory.Error,"The_super_can_only_be_referenced_in_a_derived_class_2335","The 'super' can only be referenced in a derived class.");case 2336:return _(2336,o.DiagnosticCategory.Error,"The_super_cannot_be_referenced_in_constructor_arguments_2336","The 'super' cannot be referenced in constructor arguments.");case 2337:return _(2337,o.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.");case 2338:return _(2338,o.DiagnosticCategory.Error,"The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_2338","The 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class.");case 2358:return _(2358,o.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.");case 2359:return _(2359,o.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.");case 2360:return _(2360,o.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'.");case 2361:return _(2361,o.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.");case 2362:return _(2362,o.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.");case 2363:return _(2363,o.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.");case 2364:return _(2364,o.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.");case 2392:return _(2392,o.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed.");case 2397:return _(2397,o.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'.");case 2404:return _(2404,o.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.");case 2466:return _(2466,o.DiagnosticCategory.Error,"The_super_cannot_be_referenced_in_a_computed_property_name_2466","The 'super' cannot be referenced in a computed property name.");case 2462:return _(2462,o.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern.");case 2480:return _(2480,o.DiagnosticCategory.Error,"The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","The 'let' is not allowed to be used as a name in 'let' or 'const' declarations.");case 2483:return _(2483,o.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.");case 2487:return _(2487,o.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.");case 2491:return _(2491,o.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.");case 2501:return _(2501,o.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern.");case 2660:return _(2660,o.DiagnosticCategory.Error,"The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","The 'super' can only be referenced in members of derived classes or object literal expressions.");case 2661:return _(2661,o.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.");case 2695:return _(2695,o.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0);case 2701:return _(2701,o.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.");case 2778:return _(2778,o.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access.");case 2779:return _(2779,o.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access.");case 2781:return _(2781,o.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access.");case 17012:return _(17012,o.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}'?");case 17013:return _(17013,o.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.");case 18010:return _(18010,o.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier.");case 18016:return _(18016,o.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies.");case 18019:return _(18019,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier.");case 19e3:return _(19e3,o.DiagnosticCategory.Error,"In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block_19000","In strict mode code, functions can only be declared at top level or inside a block.");case 19001:return _(19001,o.DiagnosticCategory.Error,"Class_Declaration_can_only_be_declared_at_top_level_or_inside_a_block_19001","Class Declaration can only be declared at top level or inside a block.");case 19002:return _(19002,o.DiagnosticCategory.Error,"Incorrect_regular_expression_19002","Incorrect regular expression");case 19003:return _(19003,o.DiagnosticCategory.Error,"Invalid_regular_expression_Colon_0_Colon_Invalid_escape_19003","Invalid regular expression: '{0}': Invalid escape");case 19004:return _(19004,o.DiagnosticCategory.Error,"_8_and_9_are_not_allowed_in_strict_mode_19004","\\8 and \\9 are not allowed in strict mode");case 19005:return _(19005,o.DiagnosticCategory.Error,"const_and_let_declarations_not_allowed_in_statement_positions_19005","const and let declarations not allowed in statement positions");case 19006:return _(19006,o.DiagnosticCategory.Error,"Getter_must_not_have_any_formal_parameters_19006","Getter must not have any formal parameters");case 19007:return _(19007,o.DiagnosticCategory.Error,"Class_declaration_not_allowed_in_statement_position_19007","Class declaration not allowed in statement position");case 19008:return _(19008,o.DiagnosticCategory.Error,"Lexical_declaration_let_not_allowed_in_statement_position_19008","Lexical declaration 'let' not allowed in statement position");case 19009:return _(19009,o.DiagnosticCategory.Error,"Lexical_declaration_const_not_allowed_in_statement_position_19009","Lexical declaration 'const' not allowed in statement position");case 19010:return _(19010,o.DiagnosticCategory.Error,"Invalid_regular_expression_flag_0_19010","Invalid regular expression flag '{0}'");default:return void console.log("The syntax error code is not supported.")}}},"./src/expression/arrayLiteralExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createArrayFromElements=t.compileArrayLiteralExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/base/literal.ts"),l=r("./src/base/properties.ts"),u=r("./src/pandagen.ts"),_=r("./src/expression/numericLiteral.ts");function d(e,t,r,n){let i=t.getPandaGen();if(0==r.length)return i.createEmptyArray(e),void i.storeAccumulator(e,n);let a=new c.LiteralBuffer,s=i.getTemp(),u=!1,_=!1;for(let e=0;e<r.length;e++){let c=r[e];if((0,l.isConstantExpr)(c)){let o=p(c);if(!u){a.addLiterals(o),e==r.length-1&&(f(i,a,c),i.storeAccumulator(c,n),u=!0);continue}t.compileExpression(c),_?g(i,c,n,s):i.storeOwnProperty(c,n,e)}else o.isSpreadElement(c)?(u||(f(i,a,c),i.storeAccumulator(c,n),u=!0),_||(_=!0,i.loadAccumulatorInt(c,e),i.storeAccumulator(c,s)),m(t,i,c,n,s)):o.isOmittedExpression(c)?(u||(f(i,a,c),i.storeAccumulator(c,n),u=!0),e==r.length-1&&(_?(i.loadAccumulator(c,s),i.storeObjProperty(c,n,"length")):(i.loadAccumulatorInt(c,r.length),i.storeObjProperty(c,n,"length")))):(u||(f(i,a,c),i.storeAccumulator(c,n),u=!0),t.compileExpression(c),_?g(i,c,n,s):i.storeOwnProperty(c,n,e))}i.loadAccumulator(e,n),i.freeTemps(s)}function p(e){let t;switch(e.kind){case o.SyntaxKind.FalseKeyword:t=new c.Literal(c.LiteralTag.BOOLEAN,!1);break;case o.SyntaxKind.TrueKeyword:t=new c.Literal(c.LiteralTag.BOOLEAN,!0);break;case o.SyntaxKind.StringLiteral:t=new c.Literal(c.LiteralTag.STRING,s.getTextOfIdentifierOrLiteral(e));break;case o.SyntaxKind.NumericLiteral:{let r=Number.parseFloat(s.getTextOfIdentifierOrLiteral(e));t=(0,_.isInteger)(r)?new c.Literal(c.LiteralTag.INTEGER,r):new c.Literal(c.LiteralTag.DOUBLE,r);break}case o.SyntaxKind.NullKeyword:t=new c.Literal(c.LiteralTag.NULLVALUE,null);break;default:throw new Error("invalid constant expression")}return t}function f(e,t,r){if(t.isEmpty())e.createEmptyArray(r);else{let n=u.PandaGen.getLiteralArrayBuffer(),i=n.length;n.push(t),e.createArrayWithBuffer(r,i)}}function g(e,t,r,n){e.storeOwnProperty(t,r,n),e.unary(t,o.SyntaxKind.PlusPlusToken,n),e.storeAccumulator(t,n)}function m(e,t,r,n,i){e.compileExpression(r.expression),t.storeArraySpreadElement(r,n,i),t.storeAccumulator(r,i)}t.compileArrayLiteralExpression=function(e,t){let r=e.getPandaGen(),n=r.getTemp();d(t,e,t.elements,n),r.freeTemps(n)},t.createArrayFromElements=d},"./src/expression/bigIntLiteral.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileBigIntLiteral=void 0;const o=a(r("./src/jshelpers.js"));t.compileBigIntLiteral=function(e,t){let r=o.getTextOfIdentifierOrLiteral(t);r=r.substring(0,r.length-1),e.loadAccumulatorBigInt(t,r)}},"./src/expression/callExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.emitCall=t.getHiddenParameters=t.compileCallExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/util.ts"),c=r("./src/base/vregisterCache.ts"),l=r("./src/statement/classStatement.ts"),u=r("./src/expression/arrayLiteralExpression.ts"),_=r("./src/expression/memberAccessExpression.ts");function d(e,t){let r=t.getPandaGen(),n=!1,i=[],a=r.getTemp();if((0,s.isMemberExpression)(e)){n=!0;let s=r.getTemp(),c=r.getTemp(),{obj:u,prop:d}=(0,_.getObjAndProp)(e,s,c,t);e.expression.kind==o.SyntaxKind.SuperKeyword?(0,l.compileSuperProperty)(t,e,s,d):r.loadObjProperty(o.isPropertyAccessExpression(e)?e.name:e.argumentExpression,s,d),r.storeAccumulator(e,a),i.push(a,s),r.freeTemps(c)}else t.compileExpression(e),r.storeAccumulator(e,a),i.push(a);return{arguments:i,passThis:n}}function p(e,t,r){let n=e.getPandaGen(),i=!1;for(let e=0;e<t.arguments.length;e++){let r=t.arguments[e];if(i=!!o.isSpreadElement(r),i)break}return i||t.arguments.forEach((t=>{let i=n.getTemp();e.compileExpression(t),n.storeAccumulator(t,i),r.push(i)})),i}function f(e,t,r,n){let i,a=n.getPandaGen(),s=p(n,e,t),l=e.expression;switch(l.kind){case o.SyntaxKind.ElementAccessExpression:i=l.argumentExpression;break;case o.SyntaxKind.PropertyAccessExpression:i=l.name;break;default:i=e}if(!s)return void a.call(i,[...t],r);let _=t[0],d=r?t[1]:(0,c.getVregisterCache)(a,c.CacheList.undefined),f=a.getTemp();(0,u.createArrayFromElements)(e,n,e.arguments,f),a.callSpread(i,_,d,f),a.freeTemps(f)}t.compileCallExpression=function(e,t,r){let n=t.getPandaGen();if((e.expression.kind==o.SyntaxKind.CallExpression||e.expression.kind==o.SyntaxKind.NewExpression)&&t.compileFunctionReturnThis(e.expression))return;if(e.expression.kind==o.SyntaxKind.SuperKeyword){let r=[],i=p(t,e,r);return(0,l.compileSuperCall)(t,e,r,i),void n.freeTemps(...r)}let{arguments:i,passThis:a}=d(e.expression,t);f(e,i,a,t),n.freeTemps(...i)},t.getHiddenParameters=d,t.emitCall=f},"./src/expression/compileCommaListExpression.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileCommaListExpression=void 0,t.compileCommaListExpression=function(e,t){t.elements.forEach((t=>{e.compileExpression(t)}))}},"./src/expression/memberAccessExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidIndex=t.getObjAndProp=t.compileMemberAccessExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/statement/classStatement.ts"),l=Math.pow(2,32)-1;function u(e,t,r,n){let i=n.getPandaGen(),a=t,c=r;if(s.isSuperProperty(e)||(n.compileExpression(e.expression),i.storeAccumulator(e.expression,t)),o.isPropertyAccessExpression(e)){if(e.name.kind!=o.SyntaxKind.Identifier)throw new Error("Property name of type private Identifier is unimplemented");c=s.getTextOfIdentifierOrLiteral(e.name)}else if(o.isStringLiteral(e.argumentExpression)){c=s.getTextOfIdentifierOrLiteral(e.argumentExpression);let t=Number(c);isNaN(Number.parseFloat(c))||isNaN(t)||!_(t)||String(t)!=c||(c=t)}else if(o.isNumericLiteral(e.argumentExpression))c=parseFloat(s.getTextOfIdentifierOrLiteral(e.argumentExpression)),_(c)||(c=c.toString());else if(o.isPrefixUnaryExpression(e.argumentExpression)&&o.isNumericLiteral(e.argumentExpression.operand)&&(e.argumentExpression.operator==o.SyntaxKind.MinusToken||e.argumentExpression.operator==o.SyntaxKind.PlusToken)){let t=e.argumentExpression,r=parseFloat(s.getTextOfIdentifierOrLiteral(t.operand));c=t.operator==o.SyntaxKind.MinusToken?0===r?r:"-"+r.toString():_(r)?r:"+"+r.toString()}else n.compileExpression(e.argumentExpression),i.storeAccumulator(e.argumentExpression,r),c=r;return{obj:a,prop:c}}function _(e){return!!(e>=0&&e<l&&Number.isInteger(e))}t.compileMemberAccessExpression=function(e,t){let r=t.getPandaGen(),n=r.getTemp(),i=r.getTemp(),{obj:a,prop:l}=u(e,n,i,t);if(s.isSuperProperty(e)){let n=r.getTemp();(0,c.compileSuperProperty)(t,e,n,l),r.freeTemps(n)}else r.loadObjProperty(o.isPropertyAccessExpression(e)?e.name:e.argumentExpression,a,l);r.freeTemps(n,i)},t.getObjAndProp=u,t.isValidIndex=_},"./src/expression/metaProperty.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileMetaProperty=void 0;const o=a(r("./src/jshelpers.js"));t.compileMetaProperty=function(e,t){let r=t.getCurrentScope();if("target"!=o.getTextOfIdentifierOrLiteral(e.name));else{let{scope:n,level:i,v:a}=r.find("4newTarget");if(t.setCallOpt(n,"4newTarget"),!a)throw new Error("fail to access new.target");t.loadTarget(e,{scope:n,level:i,v:a})}}},"./src/expression/newExpression.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileNewExpression=void 0;const n=r("./src/base/util.ts"),i=r("./src/expression/arrayLiteralExpression.ts");t.compileNewExpression=function(e,t){let r=t.getPandaGen(),a=r.getTemp(),o=r.getTemp();if(t.compileExpression(e.expression),r.storeAccumulator(e,a),r.moveVreg(e,o,a),(0,n.containSpreadElement)(e.arguments)){let n=r.getTemp();return(0,i.createArrayFromElements)(e,t,e.arguments,n),r.newObjSpread(e,a,o),void r.freeTemps(a,o,n)}let s=2;e.arguments&&(s+=e.arguments.length);let c=new Array(s);c[0]=a,c[1]=o;let l=2;e.arguments&&e.arguments.forEach((n=>{let i=r.getTemp();t.compileExpression(n),r.storeAccumulator(e,i),c[l++]=i})),r.newObject(e,c),r.freeTemps(...c)}},"./src/expression/numericLiteral.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileNumericLiteral=t.isInteger=void 0;const o=r("./src/base/vregisterCache.ts"),s=a(r("./src/jshelpers.js")),c=Math.pow(2,31)-1;function l(e){return!(!Number.isSafeInteger(e)||e>c)}t.isInteger=l,t.compileNumericLiteral=function(e,t){let r=s.getTextOfIdentifierOrLiteral(t),n=Number.parseFloat(r);Number.isNaN(n)?e.loadAccumulator(t,(0,o.getVregisterCache)(e,o.CacheList.NaN)):Number.isFinite(n)?l(n)?e.loadAccumulatorInt(t,n):e.loadAccumulatorFloat(t,n):e.loadAccumulator(t,(0,o.getVregisterCache)(e,o.CacheList.Infinity))}},"./src/expression/objectLiteralExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createMethodOrAccessor=t.compileObjectLiteralExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/base/util.ts"),l=r("./src/base/vregisterCache.ts"),u=r("./src/expression/numericLiteral.ts"),_=r("./src/expression/parenthesizedExpression.ts"),d=r("./src/pandagen.ts"),p=r("./src/base/properties.ts"),f=r("./src/base/literal.ts");function g(e){let t;if(e.getValue().kind==o.SyntaxKind.StringLiteral)t=new f.Literal(f.LiteralTag.STRING,s.getTextOfIdentifierOrLiteral(e.getValue()));else if(e.getValue().kind==o.SyntaxKind.NumericLiteral){let r=Number.parseFloat(s.getTextOfIdentifierOrLiteral(e.getValue()));t=(0,u.isInteger)(r)?new f.Literal(f.LiteralTag.INTEGER,r):new f.Literal(f.LiteralTag.DOUBLE,r)}else if(e.getValue().kind==o.SyntaxKind.TrueKeyword||e.getValue().kind==o.SyntaxKind.FalseKeyword)t=e.getValue().kind==o.SyntaxKind.TrueKeyword?new f.Literal(f.LiteralTag.BOOLEAN,!0):new f.Literal(f.LiteralTag.BOOLEAN,!1);else{if(e.getValue().kind!=o.SyntaxKind.NullKeyword)throw new Error("Unreachable Kind of Literal");t=new f.Literal(f.LiteralTag.NULLVALUE,null)}return t}function m(e,t,r,n){let i,a=e.getTemp(),s=e.getTemp(),c=e.getTemp(),u=String(n.getName());if(void 0!==n.getGetter()){let o=n.getGetter();b(e,t,r,o),e.storeAccumulator(o,a),i=o}if(void 0!==n.getSetter()){let a=n.getSetter();b(e,t,r,a),e.storeAccumulator(a,s),i=a}e.loadAccumulatorString(i,u),e.storeAccumulator(i,c),void 0!==n.getGetter()&&void 0!==n.getSetter()?e.defineGetterSetterByValue(i,r,c,a,s,!1):o.isGetAccessorDeclaration(i)?e.defineGetterSetterByValue(i,r,c,a,(0,l.getVregisterCache)(e,l.CacheList.undefined),!1):e.defineGetterSetterByValue(i,r,c,(0,l.getVregisterCache)(e,l.CacheList.undefined),s,!1),e.freeTemps(a,s,c)}function y(e,t,r){let n=e.getPandaGen(),i=n.getTemp();e.compileExpression(t.getValue()),n.storeAccumulator(t.getValue(),i),n.copyDataProperties(t.getValue().parent,r,i),n.freeTemps(i)}function h(e,t,r){let n=e.getPandaGen(),i=n.getTemp();switch(e.compileExpression(t.getName().expression),n.storeAccumulator(t.getValue(),i),t.getValue().kind){case o.SyntaxKind.PropertyAssignment:{e.compileExpression(t.getValue().initializer);let a=x(t.getValue().initializer);n.storeOwnProperty(t.getValue(),r,i,a);break}case o.SyntaxKind.MethodDeclaration:b(n,e,r,t.getValue()),n.storeOwnProperty(t.getValue(),r,i,!0);break;case o.SyntaxKind.GetAccessor:{let a=n.getTemp(),o=t.getValue();b(n,e,r,o),n.storeAccumulator(o,a),n.defineGetterSetterByValue(o,r,i,a,(0,l.getVregisterCache)(n,l.CacheList.undefined),!0),n.freeTemps(a);break}case o.SyntaxKind.SetAccessor:{let a=n.getTemp(),o=t.getValue();b(n,e,r,o),n.storeAccumulator(o,a),n.defineGetterSetterByValue(o,r,i,(0,l.getVregisterCache)(n,l.CacheList.undefined),a,!0),n.freeTemps(a);break}}n.freeTemps(i)}function v(e,t,r){let n=e.getPandaGen(),i=n.getTemp();e.compileExpression(t.getValue()),n.storeAccumulator(t.getValue().parent,i),n.setObjectWithProto(t.getValue().parent,i,r),n.freeTemps(i)}function b(e,t,r,n){let i=t.getCompilerDriver().getFuncInternalName(n,t.getRecorder()),a=t.getCurrentEnv();o.isMethodDeclaration(n)&&n.asteriskToken?e.defineFunction(n,n,i,a):e.defineMethod(n,i,r,a)}function x(e){let t=e;return o.isParenthesizedExpression(e)&&(t=(0,_.findInnerExprOfParenthesis)(e)),!(!o.isFunctionLike(t)&&!o.isClassLike(t)||t.name)}t.compileObjectLiteralExpression=function(e,t){let r=e.getPandaGen(),n=(0,p.generatePropertyFromExpr)(t),i=r.getTemp(),a=!1;if(0==n.length)return r.createEmptyObject(t),r.storeAccumulator(t,i),void r.freeTemps(i);let s=new f.LiteralBuffer;a=function(e,t,r){let n=!1;for(let i of t){if(i.getKind()==p.PropertyKind.Spread||i.getKind()==p.PropertyKind.Computed)break;if(i.getKind()==p.PropertyKind.Prototype||i.isRedeclared())continue;let t=new f.Literal(f.LiteralTag.STRING,String(i.getName()));if(i.getKind()==p.PropertyKind.Constant){let e=g(i);r.addLiterals(t,e),i.setCompiled()}if(i.getKind()==p.PropertyKind.Variable){let a,s=e.getCompilerDriver(),l=i.getValue();if(o.isMethodDeclaration(l)){a=l.asteriskToken?new f.Literal(f.LiteralTag.GENERATOR,s.getFuncInternalName(l,e.getRecorder())):new f.Literal(f.LiteralTag.METHOD,s.getFuncInternalName(l,e.getRecorder()));let o=new f.Literal(f.LiteralTag.METHODAFFILIATE,(0,c.getParamLengthOfFunc)(l));r.addLiterals(t,a,o),i.setCompiled(),n=!0}else a=new f.Literal(f.LiteralTag.NULLVALUE,null),r.addLiterals(t,a)}if(i.getKind()==p.PropertyKind.Accessor){let e=new f.Literal(f.LiteralTag.ACCESSOR,null);r.addLiterals(t,e)}}return n}(e,n,s),function(e,t,r,n,i,a){if(n.isEmpty())t.createEmptyObject(e);else{let r=d.PandaGen.getLiteralArrayBuffer(),o=r.length;if(r.push(n),i){let r=a.getCurrentEnv();t.createObjectHavingMethod(e,o,r)}else t.createObjectWithBuffer(e,o)}t.storeAccumulator(e,r)}(t,r,i,s,a,e),function(e,t,r,n){for(let i of r)if(!i.isCompiled())switch(i.getKind()){case p.PropertyKind.Accessor:m(t,e,n,i);break;case p.PropertyKind.Spread:y(e,i,n);break;case p.PropertyKind.Computed:h(e,i,n);break;case p.PropertyKind.Constant:case p.PropertyKind.Variable:{let r=!1;o.isMethodDeclaration(i.getValue())?b(t,e,n,i.getValue()):(e.compileExpression(i.getValue()),r=x(i.getValue())&&-1!=i.getName().toString().lastIndexOf(".")),t.storeOwnProperty(i.getValue().parent,n,i.getName(),r);break}case p.PropertyKind.Prototype:v(e,i,n);break;default:throw new Error("Unreachable PropertyKind for NullValue setting")}}(e,r,n,i),r.loadAccumulator(t,i),r.freeTemps(i)},t.createMethodOrAccessor=b},"./src/expression/parenthesizedExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.findOuterNodeOfParenthesis=t.findInnerExprOfParenthesis=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js"));t.findInnerExprOfParenthesis=function(e){for(;e.expression.kind==o.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e.expression},t.findOuterNodeOfParenthesis=function(e){let t=e.parent;for(;t.kind==o.SyntaxKind.ParenthesizedExpression;)t=t.parent;return t}},"./src/expression/regularExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileRegularExpressionLiteral=t.RegExpFlags=void 0;const o=a(r("./src/jshelpers.js")),s=r("./src/diagnostic.ts");var c;!function(e){e[e.FLAG_GLOBAL=1]="FLAG_GLOBAL",e[e.FLAG_IGNORECASE=2]="FLAG_IGNORECASE",e[e.FLAG_MULTILINE=4]="FLAG_MULTILINE",e[e.FLAG_DOTALL=8]="FLAG_DOTALL",e[e.FLAG_UTF16=16]="FLAG_UTF16",e[e.FLAG_STICKY=32]="FLAG_STICKY"}(c=t.RegExpFlags||(t.RegExpFlags={})),t.compileRegularExpressionLiteral=function(e,t){let r=e.getPandaGen(),n=t.text,i=n,a="",l=n.indexOf("/"),u=n.lastIndexOf("/");if(-1==l||-1==u||l==u)throw new s.DiagnosticError(t,s.DiagnosticCode.Incorrect_regular_expression);i=n.substring(l+1,u),a=n.substring(u+1);let _=function(e,t){let r=0,n=0;for(let i=0;i<e.length;i++){switch(e[i]){case"g":n=c.FLAG_GLOBAL;break;case"i":n=c.FLAG_IGNORECASE;break;case"m":n=c.FLAG_MULTILINE;break;case"s":n=c.FLAG_DOTALL;break;case"u":n=c.FLAG_UTF16;break;case"y":n=c.FLAG_STICKY;break;default:let r=o.getSourceFileOfNode(t);throw new s.DiagnosticError(t,s.DiagnosticCode.Invalid_regular_expression_flag_0,r,[e[i]])}if(0!=(r&n)){let r=o.getSourceFileOfNode(t);throw new s.DiagnosticError(t,s.DiagnosticCode.Invalid_regular_expression_flag_0,r,[e[i]])}r|=n}return r}(a,t);r.createRegExpWithLiteral(t,i,_)}},"./src/expression/stringLiteral.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileStringLiteral=void 0;const o=a(r("./src/jshelpers.js"));t.compileStringLiteral=function(e,t){let r=o.getTextOfIdentifierOrLiteral(t);e.loadAccumulatorString(t,r)}},"./src/expression/templateExpression.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding(t,e,r);return __setModuleDefault(t,e),t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getTemplateObject=void 0;const ts=__importStar(__webpack_require__("./node_modules/typescript/lib/typescript.js"));function genRawString(e,t){let r="";r=ts.isTemplateExpression(t)?t.head.rawText:t.rawText,r=r.replace(/(\r?\n|\r)/gm,"\n"),e.loadAccumulatorString(t,r)}function genCookedString(pandaGen,expr){let text="";text=ts.isTemplateExpression(expr)?expr.head.text:expr.text,-1!=text.indexOf("\\u{")&&(text=eval("'"+text+"'"),text=unescape(text.replace(/\u/g,"%u"))),pandaGen.loadAccumulatorString(expr,text)}function genTemplateArrayArg(e,t,r,n){let i;ts.isTemplateExpression(t)&&(i=t.templateSpans);let a=0,o=e.getTemp(),s=e.getTemp(),c=e.getTemp();e.createEmptyArray(t),e.storeAccumulator(t,s),e.createEmptyArray(t),e.storeAccumulator(t,c),e.loadAccumulatorInt(t,a),e.storeAccumulator(t,o),genRawString(e,t),e.storeObjProperty(t,s,o),genCookedString(e,t),e.storeObjProperty(t,c,o),++a,i&&i.length&&i.forEach((t=>{e.loadAccumulatorInt(t,a),e.storeAccumulator(t,o),e.loadAccumulatorString(t,void 0===t.literal.rawText?t.literal.text:t.literal.rawText),e.storeObjProperty(t,s,o),e.loadAccumulatorString(t,t.literal.text),e.storeObjProperty(t,c,o),++a})),e.moveVreg(t,r,s),e.moveVreg(t,n,c),e.freeTemps(o,s,c)}function getTemplateObject(e,t){let r=e.getTemp(),n=e.getTemp(),i=e.getTemp(),a=e.getTemp();genTemplateArrayArg(e,t.template,i,a),e.createEmptyArray(t),e.storeAccumulator(t,r);let o=0;e.loadAccumulatorInt(t,o),e.storeAccumulator(t,n),e.loadAccumulator(t,i),e.storeObjProperty(t,r,n),++o,e.loadAccumulatorInt(t,o),e.storeAccumulator(t,n),e.loadAccumulator(t,a),e.storeObjProperty(t,r,n),e.getTemplateObject(t,r),e.freeTemps(r,n,i,a)}exports.getTemplateObject=getTemplateObject},"./src/expression/yieldExpression.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileYieldExpression=void 0;const n=r("./src/function/generatorFunctionBuilder.ts"),i=r("./src/diagnostic.ts"),a=r("./src/base/vregisterCache.ts");t.compileYieldExpression=function(e,t){if(!(e.getFuncBuilder()instanceof n.GeneratorFunctionBuilder))throw new i.DiagnosticError(t.parent,i.DiagnosticCode.A_yield_expression_is_only_allowed_in_a_generator_body);t.asteriskToken?function(e,t){let r=e.getFuncBuilder();if(!t.expression)throw new Error("yield* must have an expression!");e.compileExpression(t.expression),r.yieldStar(t)}(e,t):function(e,t){let r=e.getPandaGen(),n=e.getFuncBuilder();if(t.expression){let i=r.getTemp();e.compileExpression(t.expression),r.storeAccumulator(t,i),n.yield(t,i),r.freeTemps(i)}else n.yield(t,(0,a.getVregisterCache)(r,a.CacheList.undefined))}(e,t)}},"./src/function/asyncFunctionBuilder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncFunctionBuilder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/vregisterCache.ts"),c=r("./src/debuginfo.ts"),l=r("./src/irnodes.ts"),u=r("./src/statement/tryStatement.ts");var _;!function(e){e[e.Return=0]="Return",e[e.Throw=1]="Throw",e[e.Next=2]="Next"}(_||(_={})),t.AsyncFunctionBuilder=class{constructor(e){this.pandaGen=e,this.beginLabel=new l.Label,this.endLabel=new l.Label,this.asyncObj=e.getTemp(),this.retVal=e.getTemp()}prepare(e){let t=this.pandaGen;t.asyncFunctionEnter(c.NodeKind.Invalid),t.storeAccumulator(c.NodeKind.Invalid,this.asyncObj),t.label(e,this.beginLabel)}await(e,t){let r=this.pandaGen,n=this.pandaGen.getTemp();r.asyncFunctionAwaitUncaught(e,this.asyncObj,t),r.storeAccumulator(e,n),r.suspendGenerator(e,this.asyncObj,n),r.freeTemps(n),r.resumeGenerator(e,this.asyncObj),r.storeAccumulator(e,this.retVal),this.handleMode(e)}handleMode(e){let t=this.pandaGen,r=t.getTemp();t.getResumeMode(e,this.asyncObj),t.storeAccumulator(e,r),t.loadAccumulatorInt(e,_.Throw);let n=new l.Label;t.condition(e,o.SyntaxKind.EqualsEqualsToken,r,n),t.loadAccumulator(e,this.retVal),t.throw(e),t.freeTemps(r),t.label(e,n),t.loadAccumulator(e,this.retVal)}resolve(e,t){let r=this.pandaGen;r.asyncFunctionResolve(e,this.asyncObj,(0,s.getVregisterCache)(r,s.CacheList.True),t)}cleanUp(e){let t=this.pandaGen;t.label(e,this.endLabel);let r=t.getTemp();t.storeAccumulator(c.NodeKind.Invalid,r),t.asyncFunctionReject(c.NodeKind.Invalid,this.asyncObj,(0,s.getVregisterCache)(t,s.CacheList.True),r),t.return(c.NodeKind.Invalid),t.freeTemps(r),t.freeTemps(this.asyncObj,this.retVal),new u.CatchTable(t,this.endLabel,new u.LabelPair(this.beginLabel,this.endLabel))}}},"./src/function/functionBuilder.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionBuilder=void 0,t.FunctionBuilder=class{prepare(e){}cleanUp(e){}}},"./src/function/generatorFunctionBuilder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GeneratorFunctionBuilder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/vregisterCache.ts"),c=r("./src/compiler.ts"),l=r("./src/irnodes.ts"),u=r("./src/statement/forOfStatement.ts");var _;!function(e){e[e.Return=0]="Return",e[e.Throw=1]="Throw",e[e.Next=2]="Next"}(_||(_={})),t.GeneratorFunctionBuilder=class{constructor(e,t){this.pandaGen=e,this.compiler=t,this.genObj=e.getTemp(),this.retVal=e.getTemp()}prepare(e,t){let r=this.pandaGen;t.getScopeOfNode(e),r.createGeneratorObj(e,(0,s.getVregisterCache)(r,s.CacheList.FUNC)),r.storeAccumulator(e,this.genObj),r.suspendGenerator(e,this.genObj,(0,s.getVregisterCache)(r,s.CacheList.undefined)),r.resumeGenerator(e,this.genObj),r.storeAccumulator(e,this.retVal),this.handleMode(e)}yield(e,t){let r=this.pandaGen,n=r.getTemp();r.EcmaCreateiterresultobj(e,t,(0,s.getVregisterCache)(r,s.CacheList.False)),r.storeAccumulator(e,n),r.suspendGenerator(e,this.genObj,n),r.freeTemps(n),r.resumeGenerator(e,this.genObj),r.storeAccumulator(e,this.retVal),this.handleMode(e)}yieldStar(e){let t=this.pandaGen,r=t.getTemp(),n=t.getTemp(),i=t.getTemp(),a=t.getTemp(),d=new l.Label,p=new l.Label,f=new l.Label,g=new l.Label,m=new l.Label,y=new l.Label,h=new l.Label,v=new l.Label,b=u.IteratorType.Normal,x=(0,u.getIteratorRecord)(t,e,r,n,b);t.moveVreg(e,i,(0,s.getVregisterCache)(t,s.CacheList.undefined)),t.loadAccumulatorInt(e,_.Next),t.storeAccumulator(e,a),t.label(e,d),t.loadAccumulatorInt(e,_.Next),t.condition(e,o.SyntaxKind.EqualsEqualsToken,a,p),t.call(e,[x.getNextMethod(),x.getObject(),i],!0),t.branch(e,g),t.label(e,p),t.loadAccumulatorInt(e,_.Return),t.condition(e,o.SyntaxKind.EqualsEqualsToken,a,f),t.loadObjProperty(e,x.getObject(),"return"),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(t,s.CacheList.undefined),m),t.call(e,[r,x.getObject(),i],!0),t.branch(e,g),t.label(e,m),this.compiler.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),t.loadAccumulator(e,i),t.return(e),t.label(e,f),t.loadObjProperty(e,x.getObject(),"throw"),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(t,s.CacheList.undefined),y),t.call(e,[r,x.getObject(),i],!0),t.branch(e,g),t.label(e,y),t.loadObjProperty(e,x.getObject(),"return"),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(t,s.CacheList.undefined),v),t.call(e,[r,x.getObject()],!0);let D=t.getTemp();t.storeAccumulator(e,D),t.throwIfNotObject(e,D),t.freeTemps(D),t.label(e,v),t.throwThrowNotExist(e),t.label(e,g),t.storeAccumulator(e,this.retVal),t.throwIfNotObject(e,this.retVal),t.loadObjProperty(e,this.retVal,"done"),t.jumpIfTrue(e,h),t.suspendGenerator(e,this.genObj,this.retVal),t.resumeGenerator(e,this.genObj),t.storeAccumulator(e,i),t.getResumeMode(e,this.genObj),t.storeAccumulator(e,a),t.branch(e,d);let S=new l.Label;t.label(e,h),t.loadObjProperty(e,this.retVal,"value");let E=t.getTemp();t.storeAccumulator(e,E),t.loadAccumulatorInt(e,_.Return),t.condition(e,o.SyntaxKind.EqualsEqualsToken,a,S),this.compiler.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),t.loadAccumulator(e,E),t.return(e),t.label(e,S),t.loadAccumulator(e,E),t.freeTemps(r,n,i,a,E)}handleMode(e){let t=this.pandaGen,r=t.getTemp();t.getResumeMode(e,this.genObj),t.storeAccumulator(e,r),t.loadAccumulatorInt(e,_.Return);let n=new l.Label;t.condition(e,o.SyntaxKind.EqualsEqualsToken,r,n),this.compiler.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),t.loadAccumulator(e,this.retVal),t.return(e),t.label(e,n),t.loadAccumulatorInt(e,_.Throw);let i=new l.Label;t.condition(e,o.SyntaxKind.EqualsEqualsToken,r,i),t.loadAccumulator(e,this.retVal),t.throw(e),t.freeTemps(r),t.label(e,i),t.loadAccumulator(e,this.retVal)}cleanUp(){this.pandaGen.freeTemps(this.genObj,this.retVal)}}},"./src/hoisting.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hoistFunctionInBlock=t.hoistFunction=t.hoistVar=t.hoisting=void 0;const n=r("./src/base/util.ts"),i=r("./src/base/vregisterCache.ts"),a=r("./src/debuginfo.ts"),o=r("./src/scope.ts");function s(e,t,r){let n=e.name;if(t instanceof o.GlobalScope)r.loadAccumulator(e.node,(0,i.getVregisterCache)(r,i.CacheList.undefined)),r.storeGlobalVar(e.node,n);else{if(!(t instanceof o.FunctionScope||t instanceof o.ModuleScope))throw new Error("Wrong scope to hoist");{let e=t.findLocal(n);r.loadAccumulator(a.NodeKind.FirstNodeOfFunction,(0,i.getVregisterCache)(r,i.CacheList.undefined)),r.storeAccToLexEnv(a.NodeKind.FirstNodeOfFunction,t,0,e,!0)}}}function c(e,t,r,i,s){let c=e.name,l=s.getFuncInternalName(e.node,i.getRecorder()),u=i.getCurrentEnv();if(t instanceof o.GlobalScope)r.defineFunction(a.NodeKind.FirstNodeOfFunction,e.node,l,u),r.storeGlobalVar(a.NodeKind.FirstNodeOfFunction,c);else{if(!(t instanceof o.FunctionScope||t instanceof o.LocalScope||t instanceof o.ModuleScope))throw new Error("Wrong scope to hoist");{let i=(0,n.hasExportKeywordModifier)(e.node),s=(0,n.hasDefaultKeywordModifier)(e.node),_=t.findLocal(c);i&&t instanceof o.ModuleScope&&(_.setExport(),s?_.setExportedName("default"):_.setExportedName(_.getName())),r.defineFunction(a.NodeKind.FirstNodeOfFunction,e.node,l,u),r.storeAccToLexEnv(a.NodeKind.FirstNodeOfFunction,t,0,_,!0)}}}t.hoisting=function(e,t,r,n){let i=r.getScopeOfNode(e),a=r.getHoistDeclsOfScope(i);null==a||a.forEach((e=>{if(e instanceof o.VarDecl)s(e,i,t);else{if(!(e instanceof o.FuncDecl))throw new Error("Wrong declaration type to be hoisted");{let r=n.getCompilerDriver();c(e,i,t,n,r)}}}))},t.hoistVar=s,t.hoistFunction=c,t.hoistFunctionInBlock=function(e,t,r,n){let i=e.getDecls(),a=new Array;for(let e=0;e<i.length;e++)i[e]instanceof o.FuncDecl&&a.push(i[e]);r&&a.forEach((r=>{let i=n.getCompilerDriver();c(r,e,t,n,i)}))}},"./src/index.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const o=a(r("path")),s=a(r("./node_modules/typescript/lib/typescript.js")),c=a(r("fs")),l=r("./src/cmdOptions.ts"),u=r("./src/compilerDriver.ts"),_=a(r("./src/diagnostic.ts")),d=a(r("./src/jshelpers.js")),p=r("./src/log.ts"),f=r("./src/strictMode.ts"),g=r("./src/typeChecker.ts"),m=r("./src/base/util.ts");function y(e){for(let t of e.statements)if(t.modifiers){for(let e of t.modifiers)if(e.kind===s.SyntaxKind.ExportKeyword)return!1}else{if(t.kind===s.SyntaxKind.ExportAssignment)return!1;if(t.kind===s.SyntaxKind.ImportKeyword||t.kind===s.SyntaxKind.ImportDeclaration)return!1}return!0}function h(e,t){let r=v(e),n=new u.CompilerDriver(r);(0,f.setGlobalStrict)(d.isEffectiveStrictModeSourceFile(e,t)),n.compile(e),n.showStatistics()}function v(e){let t=l.CmdOptions.getOutputBinName(),n=e.fileName.substring(0,e.fileName.lastIndexOf(".")),i=l.CmdOptions.getInputFileName();if(/^win/.test(r("os").platform())){var a=i.split(o.sep);i=o.posix.join(...a)}return n!=i&&(t=n+".abc"),t}const b="####",x="watch_expressions";function D(e,t,r,n){l.CmdOptions.setWatchEvaluateExpressionArgs(["",""]);let i=x+".js",a=!1,p=s.createSourceFile(i,c.readFileSync(e).toString(),s.ScriptTarget.ES2017);n.getSyntacticDiagnostics(p).forEach((e=>{a||(c.writeFileSync(t,"There are syntax errors in input expression.\n"),a=!0),_.printDiagnostic(e)})),a||n.emit(void 0,void 0,void 0,void 0,{before:[e=>e=>{o.basename(e.fileName)==i&&(e=p);let t=v(e);return new u.CompilerDriver(t).compileForSyntaxCheck(e),e}],after:[e=>e=>{var t;if(s.getEmitHelpers(e)){let n=[];null===(t=s.getEmitHelpers(e))||void 0===t||t.forEach((t=>{s.createSourceFile(e.fileName,t.text,r.target,!0,s.ScriptKind.JS).statements.forEach((e=>{let t=(0,m.setPos)(e);n.push(t)}))})),n.push(...e.statements),e=s.factory.updateSourceFile(e,n)}let n=v(e),i=new u.CompilerDriver(n);return(0,f.setGlobalStrict)(d.isEffectiveStrictModeSourceFile(e,r)),i.compile(e),e}]})}var S;!function(e){let t;!function(e){e.Default={outDir:"../tmp/build",allowJs:!0,noEmitOnError:!0,noImplicitAny:!0,target:s.ScriptTarget.ES2017,module:s.ModuleKind.ES2015,strictNullChecks:!0,skipLibCheck:!0,alwaysStrict:!0}}(t=e.Options||(e.Options={}))}(S||(S={})),function(e,t){let r=l.CmdOptions.parseUserCmd(e);if(r){t&&(r.options.project||r.options.build||(r.options=t));try{if(l.CmdOptions.isWatchEvaluateDeamonMode())return void function(e){let t=l.CmdOptions.getEvaluateDeamonPath()+o.sep+x,r=t+".js",n=t+".abc",i=t+".err";if(c.existsSync(r))return void console.log("watchFileServer has been initialized supportTimeout");let a=e.fileNames;c.writeFileSync(r,"initJsFile\n"),c.writeFileSync(i,"initErrMsgFile\n"),a.unshift(r);let u=s.createProgram(a,e.options);D(r,i,e.options,u),c.watchFile(r,{persistent:!0,interval:50},((t,n)=>{if(+t.mtime<=+n.mtime)throw new Error("watched js file has not been initialized");if(c.readFileSync(r).toString()==b)return c.unwatchFile(r),void console.log("stopWatchingSuccess");D(r,i,e.options,u)})),console.log("startWatchingSuccess supportTimeout"),process.on("exit",(()=>{c.unlinkSync(r),c.unlinkSync(n),c.unlinkSync(i)}))}(r);if(l.CmdOptions.isStopEvaluateDeamonMode())return void c.writeFileSync(l.CmdOptions.getEvaluateDeamonPath()+o.sep+x+".js",b);if(l.CmdOptions.isWatchEvaluateExpressionMode())return void function(){let e=l.CmdOptions.getEvaluateExpression();if(!(0,m.isBase64Str)(e))throw new Error("Passed expression string for evaluating is not base64 style.");let t=10;0!=l.CmdOptions.getWatchTimeOutValue()&&(t=l.CmdOptions.getWatchTimeOutValue());let r=l.CmdOptions.getWatchJsPath()+o.sep+x,n=Buffer.from(e,"base64").toString(),i=r+".js",a=r+".abc",s=r+".err";c.watchFile(s,{persistent:!0,interval:50},((e,t)=>{if(+e.mtime<=+t.mtime)throw c.unwatchFile(i),c.unwatchFile(a),new Error("watched errMsg file has not been initialized");console.log("error in genarate abc file for this expression."),c.unwatchFile(a),c.unwatchFile(s),process.exit()})),c.watchFile(a,{persistent:!0,interval:50},((e,t)=>{if(+e.mtime<=+t.mtime)throw c.unwatchFile(i),c.unwatchFile(s),new Error("watched abc file has not been initialized");let r=c.readFileSync(a),n=Buffer.from(r).toString("base64");console.log(n),c.unwatchFile(a),c.unwatchFile(s),process.exit()})),c.writeFileSync(i,n),setTimeout((()=>{throw c.unwatchFile(i),c.unwatchFile(a),c.unwatchFile(s),c.unlinkSync(i),c.unlinkSync(a),c.unlinkSync(s),new Error("watchFileServer has not been initialized")}),1e3*t)}();!function(e,t){const r=s.createCompilerHost(t);l.CmdOptions.needGenerateTmpFile()||(r.writeFile=()=>{});let n=s.createProgram(e,t,r);if(g.TypeChecker.getInstance().setTypeChecker(n.getTypeChecker()),l.CmdOptions.needRecordDtsType())for(let e of n.getSourceFiles())e.isDeclarationFile&&!n.isSourceFileDefaultLibrary(e)&&((0,f.setGlobalDeclare)(y(e)),h(e,t));let i=n.emit(void 0,void 0,void 0,void 0,{before:[e=>e=>{let t=v(e);return new u.CompilerDriver(t).compileForSyntaxCheck(e),e}],after:[e=>e=>{var r;if(s.getEmitHelpers(e)){let n=[];null===(r=s.getEmitHelpers(e))||void 0===r||r.forEach((r=>{s.createSourceFile(e.fileName,r.text,t.target,!0,s.ScriptKind.JS).statements.forEach((e=>{let t=(0,m.setPos)(e);n.push(t)}))})),n.push(...e.statements),e=s.factory.updateSourceFile(e,n)}let n=v(e),i=new u.CompilerDriver(n);return(0,f.setGlobalStrict)(d.isEffectiveStrictModeSourceFile(e,t)),i.compile(e),i.showStatistics(),e}]});s.getPreEmitDiagnostics(n).concat(i.diagnostics).forEach((e=>{_.printDiagnostic(e)}))}(r.fileNames.concat(l.CmdOptions.getIncludedFiles()),r.options)}catch(e){if(e instanceof _.DiagnosticError){let t=_.getDiagnostic(e.code);if(null!=t){let r=_.createDiagnostic(e.file,e.irnode,t,...e.args);_.printDiagnostic(r)}}else{if(!(e instanceof SyntaxError))throw e;(0,p.LOGE)(e.name,e.message)}}}}(process.argv.slice(2),S.Options.Default),global.gc()},"./src/irnodes.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Jgez=t.Jlez=t.Jgtz=t.Jltz=t.Jnez=t.Jeqz=t.JnezObj=t.JeqzObj=t.JneObj=t.JeqObj=t.Jmp=t.FcmpgWide=t.FcmplWide=t.CmpWide=t.StaObj=t.StaWide=t.Sta=t.LdaNull=t.LdaType=t.LdaConst=t.LdaStr=t.FldaiWide=t.LdaiWide=t.Ldai=t.LdaObj=t.LdaWide=t.Lda=t.MovNull=t.FmoviWide=t.MoviWide=t.Movi=t.MovObj=t.MovWide=t.Mov=t.Nop=t.DebugInsEndPlaceHolder=t.DebugInsStartPlaceHolder=t.Label=t.Imm=t.VReg=t.Intrinsic=t.IRNode=t.getInsnFormats=t.getInsnMnemonic=t.OperandKind=t.BuiltIns=t.ResultDst=t.ResultType=t.getInstructionSize=t.IRNodeKind=void 0,t.Starr8=t.LdarrObj=t.FldarrWide=t.Fldarr32=t.LdarrWide=t.Ldarr=t.Ldarru16=t.Ldarr16=t.Ldarru8=t.Ldarr8=t.Inci=t.Mod=t.Div=t.Mul=t.Sub=t.Add=t.Modi=t.Divi=t.Ashri=t.Shri=t.Shli=t.Ori=t.Andi=t.Muli=t.Subi=t.Addi=t.Mod2Wide=t.Mod2=t.Div2Wide=t.Div2=t.Fmod2Wide=t.Fdiv2Wide=t.Fmul2Wide=t.Fsub2Wide=t.Fadd2Wide=t.Mul2Wide=t.Mul2=t.Sub2Wide=t.Sub2=t.Add2Wide=t.Add2=t.NegWide=t.Neg=t.FnegWide=t.Jge=t.Jle=t.Jgt=t.Jlt=t.Jne=t.Jeq=void 0,t.StaDyn=t.LdaDyn=t.MovDyn=t.CallVirtAcc=t.CallVirtAccShort=t.CallVirtRange=t.CallVirt=t.CallVirtShort=t.CallAcc=t.CallAccShort=t.CallRange=t.Call=t.CallShort=t.Isinstance=t.Checkcast=t.Throw=t.ReturnVoid=t.ReturnObj=t.ReturnWide=t.Return=t.StstaticObj=t.StstaticWide=t.Ststatic=t.LdstaticObj=t.LdstaticWide=t.Ldstatic=t.StobjVObj=t.StobjVWide=t.StobjV=t.LdobjVObj=t.LdobjVWide=t.LdobjV=t.StobjObj=t.StobjWide=t.Stobj=t.LdobjObj=t.LdobjWide=t.Ldobj=t.InitobjRange=t.Initobj=t.InitobjShort=t.Newobj=t.Newarr=t.Lenarr=t.StarrObj=t.FstarrWide=t.Fstarr32=t.StarrWide=t.Starr=t.Starr16=void 0,t.I64tou1=t.Fmod2=t.EcmaLdfalse=t.Shl2=t.I32tou1=t.Fdiv2=t.EcmaLdtrue=t.Xor2Wide=t.F64tou64=t.Fmul2=t.EcmaLdglobal=t.Xor2=t.F64tou32=t.Fsub2=t.EcmaLdsymbol=t.Or2Wide=t.Modu2Wide=t.F64toi64=t.Fadd2=t.EcmaLdnull=t.Or2=t.Modu2=t.F64toi32=t.Fneg=t.EcmaLdundefined=t.And2Wide=t.Divu2Wide=t.U64tof64=t.Fcmpg=t.EcmaLdglobalthis=t.And2=t.Divu2=t.I64tof64=t.Fcmpl=t.EcmaLdinfinity=t.NotWide=t.UcmpWide=t.U32tof64=t.Fldai=t.EcmaLdnan=t.Not=t.Ucmp=t.I32tof64=t.Fmovi=t.CalliDynRange=t.CalliDyn=t.CalliDynShort=t.ReturnDyn=t.FldaiDyn=t.LdaiDyn=void 0,t.U64toi32=t.EcmaThrowpatternnoncoercible=t.U32tou8=t.EcmaThrowthrownotexists=t.U32toi8=t.EcmaGetiterator=t.Ashr=t.U32tou16=t.EcmaCreateemptyarray=t.Shr=t.U32toi16=t.F64tof32=t.EcmaCreateemptyobject=t.Shl=t.U32toi64=t.F32tou64=t.EcmaReturnundefined=t.Xor=t.I64toi32=t.F32tou32=t.EcmaLdhole=t.Or=t.I32tou8=t.F32toi64=t.EcmaAsyncfunctionenter=t.And=t.I32toi8=t.F32toi32=t.EcmaGetpropiterator=t.Xori=t.I32tou16=t.F32tof64=t.EcmaGetunmappedargs=t.Ashr2Wide=t.I32toi16=t.U64tof32=t.EcmaPoplexenvdyn=t.Ashr2=t.I32toi64=t.I64tof32=t.EcmaLdlexenvdyn=t.Shr2Wide=t.U64tou1=t.U32tof32=t.EcmaTypeofdyn=t.Shr2=t.U32tou1=t.I32tof32=t.EcmaThrowdyn=t.Shl2Wide=void 0,t.EcmaCallarg1dyn=t.EcmaThrowundefinedifhole=t.EcmaAsyncfunctionawaituncaught=t.EcmaSuspendgenerator=t.EcmaCreateiterresultobj=t.EcmaNewobjspreaddyn=t.EcmaDelobjprop=t.EcmaSupercallspread=t.EcmaCopymodule=t.EcmaCloseiterator=t.EcmaIternext=t.EcmaThrowifnotobject=t.EcmaCallarg0dyn=t.EcmaGetnextpropname=t.EcmaGettemplateobject=t.EcmaThrowconstassignment=t.EcmaCreategeneratorobj=t.EcmaGetresumemode=t.EcmaResumegenerator=t.EcmaStricteqdyn=t.EcmaStrictnoteqdyn=t.EcmaInstanceofdyn=t.EcmaIsindyn=t.EcmaExpdyn=t.EcmaDecdyn=t.EcmaIncdyn=t.EcmaNotdyn=t.EcmaNegdyn=t.EcmaTonumber=t.EcmaXor2dyn=t.EcmaOr2dyn=t.EcmaAnd2dyn=t.EcmaAshr2dyn=t.EcmaShr2dyn=t.EcmaShl2dyn=t.EcmaGreatereqdyn=t.EcmaGreaterdyn=t.EcmaLesseqdyn=t.EcmaLessdyn=t.EcmaNoteqdyn=t.EcmaEqdyn=t.EcmaMod2dyn=t.EcmaDiv2dyn=t.EcmaMul2dyn=t.EcmaSub2dyn=t.EcmaAdd2dyn=t.EcmaDebugger=t.EcmaThrowdeletesuperproperty=t.U64tou32=t.EcmaLdhomeobject=void 0,t.EcmaCreateregexpwithliteral=t.EcmaLdmodvarbyname=t.EcmaStsuperbyname=t.EcmaLdsuperbyname=t.EcmaStownbyname=t.EcmaStobjbyname=t.EcmaLdobjbyname=t.EcmaStglobalvar=t.EcmaLdglobalvar=t.EcmaTrystglobalbyname=t.EcmaTryldglobalbyname=t.EcmaStmodulevar=t.EcmaImportmodule=t.EcmaDefineclasswithbuffer=t.EcmaStlexvardyn=t.EcmaLdlexvardyn=t.EcmaCreateobjectwithbuffer=t.EcmaThrowifsupernotcorrectcall=t.EcmaCreateobjecthavingmethod=t.EcmaCreatearraywithbuffer=t.EcmaCopyrestargs=t.EcmaNewlexenvdyn=t.EcmaDefinemethod=t.EcmaDefineasyncfunc=t.EcmaDefinegeneratorfunc=t.EcmaDefinencfuncdyn=t.EcmaDefinefuncdyn=t.EcmaCreateobjectwithexcludedkeys=t.EcmaSupercall=t.EcmaCallithisrangedyn=t.EcmaCallirangedyn=t.EcmaNewobjdynrange=t.EcmaDefinegettersetterbyvalue=t.EcmaCallargs3dyn=t.EcmaCallargs2dyn=t.EcmaAsyncfunctionreject=t.EcmaAsyncfunctionresolve=t.EcmaCallspreaddyn=t.EcmaStownbyindex=t.EcmaStobjbyindex=t.EcmaLdobjbyindex=t.EcmaStsuperbyvalue=t.EcmaLdsuperbyvalue=t.EcmaStownbyvalue=t.EcmaStobjbyvalue=t.EcmaLdobjbyvalue=t.EcmaSetobjectwithproto=t.EcmaGetiteratornext=t.EcmaStarrayspread=t.EcmaCopydataproperties=void 0,t.EcmaLdbigint=t.EcmaNewlexenvwithnamedyn=t.EcmaLdfunction=t.EcmaStownbynamewithnameset=t.EcmaStownbyvaluewithnameset=t.EcmaStclasstoglobalrecord=t.EcmaStlettoglobalrecord=t.EcmaStconsttoglobalrecord=t.EcmaIsfalse=t.EcmaIstrue=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/debuginfo.ts");var c,l,u,_,d;function p(e){switch(e){case c.NOP:return"nop";case c.MOV:return"mov";case c.MOV_64:return"mov.64";case c.MOV_OBJ:return"mov.obj";case c.MOVI:return"movi";case c.MOVI_64:return"movi.64";case c.FMOVI_64:return"fmovi.64";case c.MOV_NULL:return"mov.null";case c.LDA:return"lda";case c.LDA_64:return"lda.64";case c.LDA_OBJ:return"lda.obj";case c.LDAI:return"ldai";case c.LDAI_64:return"ldai.64";case c.FLDAI_64:return"fldai.64";case c.LDA_STR:return"lda.str";case c.LDA_CONST:return"lda.const";case c.LDA_TYPE:return"lda.type";case c.LDA_NULL:return"lda.null";case c.STA:return"sta";case c.STA_64:return"sta.64";case c.STA_OBJ:return"sta.obj";case c.CMP_64:return"cmp.64";case c.FCMPL_64:return"fcmpl.64";case c.FCMPG_64:return"fcmpg.64";case c.JMP:return"jmp";case c.JEQ_OBJ:return"jeq.obj";case c.JNE_OBJ:return"jne.obj";case c.JEQZ_OBJ:return"jeqz.obj";case c.JNEZ_OBJ:return"jnez.obj";case c.JEQZ:return"jeqz";case c.JNEZ:return"jnez";case c.JLTZ:return"jltz";case c.JGTZ:return"jgtz";case c.JLEZ:return"jlez";case c.JGEZ:return"jgez";case c.JEQ:return"jeq";case c.JNE:return"jne";case c.JLT:return"jlt";case c.JGT:return"jgt";case c.JLE:return"jle";case c.JGE:return"jge";case c.FNEG_64:return"fneg.64";case c.NEG:return"neg";case c.NEG_64:return"neg.64";case c.ADD2:return"add2";case c.ADD2_64:return"add2.64";case c.SUB2:return"sub2";case c.SUB2_64:return"sub2.64";case c.MUL2:return"mul2";case c.MUL2_64:return"mul2.64";case c.FADD2_64:return"fadd2.64";case c.FSUB2_64:return"fsub2.64";case c.FMUL2_64:return"fmul2.64";case c.FDIV2_64:return"fdiv2.64";case c.FMOD2_64:return"fmod2.64";case c.DIV2:return"div2";case c.DIV2_64:return"div2.64";case c.MOD2:return"mod2";case c.MOD2_64:return"mod2.64";case c.ADDI:return"addi";case c.SUBI:return"subi";case c.MULI:return"muli";case c.ANDI:return"andi";case c.ORI:return"ori";case c.SHLI:return"shli";case c.SHRI:return"shri";case c.ASHRI:return"ashri";case c.DIVI:return"divi";case c.MODI:return"modi";case c.ADD:return"add";case c.SUB:return"sub";case c.MUL:return"mul";case c.DIV:return"div";case c.MOD:return"mod";case c.INCI:return"inci";case c.LDARR_8:return"ldarr.8";case c.LDARRU_8:return"ldarru.8";case c.LDARR_16:return"ldarr.16";case c.LDARRU_16:return"ldarru.16";case c.LDARR:return"ldarr";case c.LDARR_64:return"ldarr.64";case c.FLDARR_32:return"fldarr.32";case c.FLDARR_64:return"fldarr.64";case c.LDARR_OBJ:return"ldarr.obj";case c.STARR_8:return"starr.8";case c.STARR_16:return"starr.16";case c.STARR:return"starr";case c.STARR_64:return"starr.64";case c.FSTARR_32:return"fstarr.32";case c.FSTARR_64:return"fstarr.64";case c.STARR_OBJ:return"starr.obj";case c.LENARR:return"lenarr";case c.NEWARR:return"newarr";case c.NEWOBJ:return"newobj";case c.INITOBJ_SHORT:return"initobj.short";case c.INITOBJ:return"initobj";case c.INITOBJ_RANGE:return"initobj.range";case c.LDOBJ:return"ldobj";case c.LDOBJ_64:return"ldobj.64";case c.LDOBJ_OBJ:return"ldobj.obj";case c.STOBJ:return"stobj";case c.STOBJ_64:return"stobj.64";case c.STOBJ_OBJ:return"stobj.obj";case c.LDOBJ_V:return"ldobj.v";case c.LDOBJ_V_64:return"ldobj.v.64";case c.LDOBJ_V_OBJ:return"ldobj.v.obj";case c.STOBJ_V:return"stobj.v";case c.STOBJ_V_64:return"stobj.v.64";case c.STOBJ_V_OBJ:return"stobj.v.obj";case c.LDSTATIC:return"ldstatic";case c.LDSTATIC_64:return"ldstatic.64";case c.LDSTATIC_OBJ:return"ldstatic.obj";case c.STSTATIC:return"ststatic";case c.STSTATIC_64:return"ststatic.64";case c.STSTATIC_OBJ:return"ststatic.obj";case c.RETURN:return"return";case c.RETURN_64:return"return.64";case c.RETURN_OBJ:return"return.obj";case c.RETURN_VOID:return"return.void";case c.THROW:return"throw";case c.CHECKCAST:return"checkcast";case c.ISINSTANCE:return"isinstance";case c.CALL_SHORT:return"call.short";case c.CALL:return"call";case c.CALL_RANGE:return"call.range";case c.CALL_ACC_SHORT:return"call.acc.short";case c.CALL_ACC:return"call.acc";case c.CALL_VIRT_SHORT:return"call.virt.short";case c.CALL_VIRT:return"call.virt";case c.CALL_VIRT_RANGE:return"call.virt.range";case c.CALL_VIRT_ACC_SHORT:return"call.virt.acc.short";case c.CALL_VIRT_ACC:return"call.virt.acc";case c.MOV_DYN:return"mov.dyn";case c.LDA_DYN:return"lda.dyn";case c.STA_DYN:return"sta.dyn";case c.LDAI_DYN:return"ldai.dyn";case c.FLDAI_DYN:return"fldai.dyn";case c.RETURN_DYN:return"return.dyn";case c.CALLI_DYN_SHORT:return"calli.dyn.short";case c.CALLI_DYN:return"calli.dyn";case c.CALLI_DYN_RANGE:return"calli.dyn.range";case c.FMOVI:return"fmovi";case c.I32TOF64:return"i32tof64";case c.UCMP:return"ucmp";case c.NOT:return"not";case c.ECMA_LDNAN:return"ecma.ldnan";case c.FLDAI:return"fldai";case c.U32TOF64:return"u32tof64";case c.UCMP_64:return"ucmp.64";case c.NOT_64:return"not.64";case c.ECMA_LDINFINITY:return"ecma.ldinfinity";case c.FCMPL:return"fcmpl";case c.I64TOF64:return"i64tof64";case c.DIVU2:return"divu2";case c.AND2:return"and2";case c.ECMA_LDGLOBALTHIS:return"ecma.ldglobalthis";case c.FCMPG:return"fcmpg";case c.U64TOF64:return"u64tof64";case c.DIVU2_64:return"divu2.64";case c.AND2_64:return"and2.64";case c.ECMA_LDUNDEFINED:return"ecma.ldundefined";case c.FNEG:return"fneg";case c.F64TOI32:return"f64toi32";case c.MODU2:return"modu2";case c.OR2:return"or2";case c.ECMA_LDNULL:return"ecma.ldnull";case c.FADD2:return"fadd2";case c.F64TOI64:return"f64toi64";case c.MODU2_64:return"modu2.64";case c.OR2_64:return"or2.64";case c.ECMA_LDSYMBOL:return"ecma.ldsymbol";case c.FSUB2:return"fsub2";case c.F64TOU32:return"f64tou32";case c.XOR2:return"xor2";case c.ECMA_LDGLOBAL:return"ecma.ldglobal";case c.FMUL2:return"fmul2";case c.F64TOU64:return"f64tou64";case c.XOR2_64:return"xor2.64";case c.ECMA_LDTRUE:return"ecma.ldtrue";case c.FDIV2:return"fdiv2";case c.I32TOU1:return"i32tou1";case c.SHL2:return"shl2";case c.ECMA_LDFALSE:return"ecma.ldfalse";case c.FMOD2:return"fmod2";case c.I64TOU1:return"i64tou1";case c.SHL2_64:return"shl2.64";case c.ECMA_THROWDYN:return"ecma.throwdyn";case c.I32TOF32:return"i32tof32";case c.U32TOU1:return"u32tou1";case c.SHR2:return"shr2";case c.ECMA_TYPEOFDYN:return"ecma.typeofdyn";case c.U32TOF32:return"u32tof32";case c.U64TOU1:return"u64tou1";case c.SHR2_64:return"shr2.64";case c.ECMA_LDLEXENVDYN:return"ecma.ldlexenvdyn";case c.I64TOF32:return"i64tof32";case c.I32TOI64:return"i32toi64";case c.ASHR2:return"ashr2";case c.ECMA_POPLEXENVDYN:return"ecma.poplexenvdyn";case c.U64TOF32:return"u64tof32";case c.I32TOI16:return"i32toi16";case c.ASHR2_64:return"ashr2.64";case c.ECMA_GETUNMAPPEDARGS:return"ecma.getunmappedargs";case c.F32TOF64:return"f32tof64";case c.I32TOU16:return"i32tou16";case c.XORI:return"xori";case c.ECMA_GETPROPITERATOR:return"ecma.getpropiterator";case c.F32TOI32:return"f32toi32";case c.I32TOI8:return"i32toi8";case c.AND:return"and";case c.ECMA_ASYNCFUNCTIONENTER:return"ecma.asyncfunctionenter";case c.F32TOI64:return"f32toi64";case c.I32TOU8:return"i32tou8";case c.OR:return"or";case c.ECMA_LDHOLE:return"ecma.ldhole";case c.F32TOU32:return"f32tou32";case c.I64TOI32:return"i64toi32";case c.XOR:return"xor";case c.ECMA_RETURNUNDEFINED:return"ecma.returnundefined";case c.F32TOU64:return"f32tou64";case c.U32TOI64:return"u32toi64";case c.SHL:return"shl";case c.ECMA_CREATEEMPTYOBJECT:return"ecma.createemptyobject";case c.F64TOF32:return"f64tof32";case c.U32TOI16:return"u32toi16";case c.SHR:return"shr";case c.ECMA_CREATEEMPTYARRAY:return"ecma.createemptyarray";case c.U32TOU16:return"u32tou16";case c.ASHR:return"ashr";case c.ECMA_GETITERATOR:return"ecma.getiterator";case c.U32TOI8:return"u32toi8";case c.ECMA_THROWTHROWNOTEXISTS:return"ecma.throwthrownotexists";case c.U32TOU8:return"u32tou8";case c.ECMA_THROWPATTERNNONCOERCIBLE:return"ecma.throwpatternnoncoercible";case c.U64TOI32:return"u64toi32";case c.ECMA_LDHOMEOBJECT:return"ecma.ldhomeobject";case c.U64TOU32:return"u64tou32";case c.ECMA_THROWDELETESUPERPROPERTY:return"ecma.throwdeletesuperproperty";case c.ECMA_DEBUGGER:return"ecma.debugger";case c.ECMA_ADD2DYN:return"ecma.add2dyn";case c.ECMA_SUB2DYN:return"ecma.sub2dyn";case c.ECMA_MUL2DYN:return"ecma.mul2dyn";case c.ECMA_DIV2DYN:return"ecma.div2dyn";case c.ECMA_MOD2DYN:return"ecma.mod2dyn";case c.ECMA_EQDYN:return"ecma.eqdyn";case c.ECMA_NOTEQDYN:return"ecma.noteqdyn";case c.ECMA_LESSDYN:return"ecma.lessdyn";case c.ECMA_LESSEQDYN:return"ecma.lesseqdyn";case c.ECMA_GREATERDYN:return"ecma.greaterdyn";case c.ECMA_GREATEREQDYN:return"ecma.greatereqdyn";case c.ECMA_SHL2DYN:return"ecma.shl2dyn";case c.ECMA_SHR2DYN:return"ecma.shr2dyn";case c.ECMA_ASHR2DYN:return"ecma.ashr2dyn";case c.ECMA_AND2DYN:return"ecma.and2dyn";case c.ECMA_OR2DYN:return"ecma.or2dyn";case c.ECMA_XOR2DYN:return"ecma.xor2dyn";case c.ECMA_TONUMBER:return"ecma.tonumber";case c.ECMA_NEGDYN:return"ecma.negdyn";case c.ECMA_NOTDYN:return"ecma.notdyn";case c.ECMA_INCDYN:return"ecma.incdyn";case c.ECMA_DECDYN:return"ecma.decdyn";case c.ECMA_EXPDYN:return"ecma.expdyn";case c.ECMA_ISINDYN:return"ecma.isindyn";case c.ECMA_INSTANCEOFDYN:return"ecma.instanceofdyn";case c.ECMA_STRICTNOTEQDYN:return"ecma.strictnoteqdyn";case c.ECMA_STRICTEQDYN:return"ecma.stricteqdyn";case c.ECMA_RESUMEGENERATOR:return"ecma.resumegenerator";case c.ECMA_GETRESUMEMODE:return"ecma.getresumemode";case c.ECMA_CREATEGENERATOROBJ:return"ecma.creategeneratorobj";case c.ECMA_THROWCONSTASSIGNMENT:return"ecma.throwconstassignment";case c.ECMA_GETTEMPLATEOBJECT:return"ecma.gettemplateobject";case c.ECMA_GETNEXTPROPNAME:return"ecma.getnextpropname";case c.ECMA_CALLARG0DYN:return"ecma.callarg0dyn";case c.ECMA_THROWIFNOTOBJECT:return"ecma.throwifnotobject";case c.ECMA_ITERNEXT:return"ecma.iternext";case c.ECMA_CLOSEITERATOR:return"ecma.closeiterator";case c.ECMA_COPYMODULE:return"ecma.copymodule";case c.ECMA_SUPERCALLSPREAD:return"ecma.supercallspread";case c.ECMA_DELOBJPROP:return"ecma.delobjprop";case c.ECMA_NEWOBJSPREADDYN:return"ecma.newobjspreaddyn";case c.ECMA_CREATEITERRESULTOBJ:return"ecma.createiterresultobj";case c.ECMA_SUSPENDGENERATOR:return"ecma.suspendgenerator";case c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT:return"ecma.asyncfunctionawaituncaught";case c.ECMA_THROWUNDEFINEDIFHOLE:return"ecma.throwundefinedifhole";case c.ECMA_CALLARG1DYN:return"ecma.callarg1dyn";case c.ECMA_COPYDATAPROPERTIES:return"ecma.copydataproperties";case c.ECMA_STARRAYSPREAD:return"ecma.starrayspread";case c.ECMA_GETITERATORNEXT:return"ecma.getiteratornext";case c.ECMA_SETOBJECTWITHPROTO:return"ecma.setobjectwithproto";case c.ECMA_LDOBJBYVALUE:return"ecma.ldobjbyvalue";case c.ECMA_STOBJBYVALUE:return"ecma.stobjbyvalue";case c.ECMA_STOWNBYVALUE:return"ecma.stownbyvalue";case c.ECMA_LDSUPERBYVALUE:return"ecma.ldsuperbyvalue";case c.ECMA_STSUPERBYVALUE:return"ecma.stsuperbyvalue";case c.ECMA_LDOBJBYINDEX:return"ecma.ldobjbyindex";case c.ECMA_STOBJBYINDEX:return"ecma.stobjbyindex";case c.ECMA_STOWNBYINDEX:return"ecma.stownbyindex";case c.ECMA_CALLSPREADDYN:return"ecma.callspreaddyn";case c.ECMA_ASYNCFUNCTIONRESOLVE:return"ecma.asyncfunctionresolve";case c.ECMA_ASYNCFUNCTIONREJECT:return"ecma.asyncfunctionreject";case c.ECMA_CALLARGS2DYN:return"ecma.callargs2dyn";case c.ECMA_CALLARGS3DYN:return"ecma.callargs3dyn";case c.ECMA_DEFINEGETTERSETTERBYVALUE:return"ecma.definegettersetterbyvalue";case c.ECMA_NEWOBJDYNRANGE:return"ecma.newobjdynrange";case c.ECMA_CALLIRANGEDYN:return"ecma.callirangedyn";case c.ECMA_CALLITHISRANGEDYN:return"ecma.callithisrangedyn";case c.ECMA_SUPERCALL:return"ecma.supercall";case c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS:return"ecma.createobjectwithexcludedkeys";case c.ECMA_DEFINEFUNCDYN:return"ecma.definefuncdyn";case c.ECMA_DEFINENCFUNCDYN:return"ecma.definencfuncdyn";case c.ECMA_DEFINEGENERATORFUNC:return"ecma.definegeneratorfunc";case c.ECMA_DEFINEASYNCFUNC:return"ecma.defineasyncfunc";case c.ECMA_DEFINEMETHOD:return"ecma.definemethod";case c.ECMA_NEWLEXENVDYN:return"ecma.newlexenvdyn";case c.ECMA_COPYRESTARGS:return"ecma.copyrestargs";case c.ECMA_CREATEARRAYWITHBUFFER:return"ecma.createarraywithbuffer";case c.ECMA_CREATEOBJECTHAVINGMETHOD:return"ecma.createobjecthavingmethod";case c.ECMA_THROWIFSUPERNOTCORRECTCALL:return"ecma.throwifsupernotcorrectcall";case c.ECMA_CREATEOBJECTWITHBUFFER:return"ecma.createobjectwithbuffer";case c.ECMA_LDLEXVARDYN:return"ecma.ldlexvardyn";case c.ECMA_STLEXVARDYN:return"ecma.stlexvardyn";case c.ECMA_DEFINECLASSWITHBUFFER:return"ecma.defineclasswithbuffer";case c.ECMA_IMPORTMODULE:return"ecma.importmodule";case c.ECMA_STMODULEVAR:return"ecma.stmodulevar";case c.ECMA_TRYLDGLOBALBYNAME:return"ecma.tryldglobalbyname";case c.ECMA_TRYSTGLOBALBYNAME:return"ecma.trystglobalbyname";case c.ECMA_LDGLOBALVAR:return"ecma.ldglobalvar";case c.ECMA_STGLOBALVAR:return"ecma.stglobalvar";case c.ECMA_LDOBJBYNAME:return"ecma.ldobjbyname";case c.ECMA_STOBJBYNAME:return"ecma.stobjbyname";case c.ECMA_STOWNBYNAME:return"ecma.stownbyname";case c.ECMA_LDSUPERBYNAME:return"ecma.ldsuperbyname";case c.ECMA_STSUPERBYNAME:return"ecma.stsuperbyname";case c.ECMA_LDMODVARBYNAME:return"ecma.ldmodvarbyname";case c.ECMA_CREATEREGEXPWITHLITERAL:return"ecma.createregexpwithliteral";case c.ECMA_ISTRUE:return"ecma.istrue";case c.ECMA_ISFALSE:return"ecma.isfalse";case c.ECMA_STCONSTTOGLOBALRECORD:return"ecma.stconsttoglobalrecord";case c.ECMA_STLETTOGLOBALRECORD:return"ecma.stlettoglobalrecord";case c.ECMA_STCLASSTOGLOBALRECORD:return"ecma.stclasstoglobalrecord";case c.ECMA_STOWNBYVALUEWITHNAMESET:return"ecma.stownbyvaluewithnameset";case c.ECMA_STOWNBYNAMEWITHNAMESET:return"ecma.stownbynamewithnameset";case c.ECMA_LDFUNCTION:return"ecma.ldfunction";case c.ECMA_NEWLEXENVWITHNAMEDYN:return"ecma.newlexenvwithnamedyn";case c.ECMA_LDBIGINT:return"ecma.ldbigint";default:return""}}function f(e){switch(e){case c.NOP:return[[]];case c.MOV:return[[[1,4],[0,4]],[[1,8],[0,8]],[[1,16],[0,16]]];case c.MOV_64:return[[[1,4],[0,4]],[[1,16],[0,16]]];case c.MOV_OBJ:return[[[1,4],[0,4]],[[1,8],[0,8]],[[1,16],[0,16]]];case c.MOVI:return[[[1,4],[3,4]],[[1,8],[3,8]],[[1,8],[3,16]],[[1,8],[3,32]]];case c.MOVI_64:case c.FMOVI_64:return[[[1,8],[3,64]]];case c.MOV_NULL:return[[[1,8]]];case c.LDA:case c.LDA_64:case c.LDA_OBJ:return[[[0,8]]];case c.LDAI:return[[[3,8]],[[3,16]],[[3,32]]];case c.LDAI_64:case c.FLDAI_64:return[[[3,64]]];case c.LDA_STR:return[[[5,32]]];case c.LDA_CONST:return[[[1,8],[4,32]]];case c.LDA_TYPE:return[[[4,16]]];case c.LDA_NULL:return[[]];case c.STA:case c.STA_64:case c.STA_OBJ:return[[[1,8]]];case c.CMP_64:case c.FCMPL_64:case c.FCMPG_64:return[[[0,8]]];case c.JMP:return[[[6,8]],[[6,16]],[[6,32]]];case c.JEQ_OBJ:case c.JNE_OBJ:return[[[0,8],[6,8]],[[0,8],[6,16]]];case c.JEQZ_OBJ:case c.JNEZ_OBJ:case c.JEQZ:case c.JNEZ:case c.JLTZ:case c.JGTZ:case c.JLEZ:case c.JGEZ:return[[[6,8]],[[6,16]]];case c.JEQ:case c.JNE:case c.JLT:case c.JGT:case c.JLE:case c.JGE:return[[[0,8],[6,8]],[[0,8],[6,16]]];case c.FNEG_64:case c.NEG:case c.NEG_64:return[[]];case c.ADD2:case c.ADD2_64:case c.SUB2:case c.SUB2_64:case c.MUL2:case c.MUL2_64:case c.FADD2_64:case c.FSUB2_64:case c.FMUL2_64:case c.FDIV2_64:case c.FMOD2_64:case c.DIV2:case c.DIV2_64:case c.MOD2:case c.MOD2_64:return[[[0,8]]];case c.ADDI:case c.SUBI:case c.MULI:return[[[3,8]]];case c.ANDI:case c.ORI:return[[[3,32]]];case c.SHLI:case c.SHRI:case c.ASHRI:case c.DIVI:case c.MODI:return[[[3,8]]];case c.ADD:case c.SUB:case c.MUL:case c.DIV:case c.MOD:return[[[0,4],[0,4]]];case c.INCI:return[[[2,4],[3,4]]];case c.LDARR_8:case c.LDARRU_8:case c.LDARR_16:case c.LDARRU_16:case c.LDARR:case c.LDARR_64:case c.FLDARR_32:case c.FLDARR_64:case c.LDARR_OBJ:return[[[0,8]]];case c.STARR_8:case c.STARR_16:case c.STARR:case c.STARR_64:case c.FSTARR_32:case c.FSTARR_64:case c.STARR_OBJ:return[[[0,4],[0,4]]];case c.LENARR:return[[[0,8]]];case c.NEWARR:return[[[1,4],[0,4],[4,16]]];case c.NEWOBJ:return[[[1,8],[4,16]]];case c.INITOBJ_SHORT:return[[[4,16],[0,4],[0,4]]];case c.INITOBJ:return[[[4,16],[0,4],[0,4],[0,4],[0,4]]];case c.INITOBJ_RANGE:return[[[4,16],[0,8]]];case c.LDOBJ:case c.LDOBJ_64:case c.LDOBJ_OBJ:case c.STOBJ:case c.STOBJ_64:case c.STOBJ_OBJ:return[[[0,8],[4,16]]];case c.LDOBJ_V:case c.LDOBJ_V_64:case c.LDOBJ_V_OBJ:return[[[1,4],[0,4],[4,16]]];case c.STOBJ_V:case c.STOBJ_V_64:case c.STOBJ_V_OBJ:return[[[0,4],[0,4],[4,16]]];case c.LDSTATIC:case c.LDSTATIC_64:case c.LDSTATIC_OBJ:case c.STSTATIC:case c.STSTATIC_64:case c.STSTATIC_OBJ:return[[[4,16]]];case c.RETURN:case c.RETURN_64:case c.RETURN_OBJ:case c.RETURN_VOID:return[[]];case c.THROW:return[[[0,8]]];case c.CHECKCAST:case c.ISINSTANCE:return[[[4,16]]];case c.CALL_SHORT:return[[[4,16],[0,4],[0,4]]];case c.CALL:return[[[4,16],[0,4],[0,4],[0,4],[0,4]]];case c.CALL_RANGE:return[[[4,16],[0,8]]];case c.CALL_ACC_SHORT:return[[[4,16],[0,4],[3,4]]];case c.CALL_ACC:return[[[4,16],[0,4],[0,4],[0,4],[3,4]]];case c.CALL_VIRT_SHORT:return[[[4,16],[0,4],[0,4]]];case c.CALL_VIRT:return[[[4,16],[0,4],[0,4],[0,4],[0,4]]];case c.CALL_VIRT_RANGE:return[[[4,16],[0,8]]];case c.CALL_VIRT_ACC_SHORT:return[[[4,16],[0,4],[3,4]]];case c.CALL_VIRT_ACC:return[[[4,16],[0,4],[0,4],[0,4],[3,4]]];case c.MOV_DYN:return[[[1,8],[0,8]],[[1,16],[0,16]]];case c.LDA_DYN:return[[[0,8]]];case c.STA_DYN:return[[[1,8]]];case c.LDAI_DYN:return[[[3,32]]];case c.FLDAI_DYN:return[[[3,64]]];case c.RETURN_DYN:return[[]];case c.CALLI_DYN_SHORT:return[[[3,4],[0,4],[0,4],[0,4]]];case c.CALLI_DYN:return[[[3,4],[0,4],[0,4],[0,4],[0,4],[0,4]]];case c.CALLI_DYN_RANGE:return[[[3,16],[0,16]]];case c.FMOVI:return[[[1,8],[3,32]]];case c.I32TOF64:return[[]];case c.UCMP:return[[[0,8]]];case c.NOT:case c.ECMA_LDNAN:return[[]];case c.FLDAI:return[[[3,32]]];case c.U32TOF64:return[[]];case c.UCMP_64:return[[[0,8]]];case c.NOT_64:case c.ECMA_LDINFINITY:return[[]];case c.FCMPL:return[[[0,8]]];case c.I64TOF64:return[[]];case c.DIVU2:case c.AND2:return[[[0,8]]];case c.ECMA_LDGLOBALTHIS:return[[]];case c.FCMPG:return[[[0,8]]];case c.U64TOF64:return[[]];case c.DIVU2_64:case c.AND2_64:return[[[0,8]]];case c.ECMA_LDUNDEFINED:case c.FNEG:case c.F64TOI32:return[[]];case c.MODU2:case c.OR2:return[[[0,8]]];case c.ECMA_LDNULL:return[[]];case c.FADD2:return[[[0,8]]];case c.F64TOI64:return[[]];case c.MODU2_64:case c.OR2_64:return[[[0,8]]];case c.ECMA_LDSYMBOL:return[[]];case c.FSUB2:return[[[0,8]]];case c.F64TOU32:return[[]];case c.XOR2:return[[[0,8]]];case c.ECMA_LDGLOBAL:return[[]];case c.FMUL2:return[[[0,8]]];case c.F64TOU64:return[[]];case c.XOR2_64:return[[[0,8]]];case c.ECMA_LDTRUE:return[[]];case c.FDIV2:return[[[0,8]]];case c.I32TOU1:return[[]];case c.SHL2:return[[[0,8]]];case c.ECMA_LDFALSE:return[[]];case c.FMOD2:return[[[0,8]]];case c.I64TOU1:return[[]];case c.SHL2_64:return[[[0,8]]];case c.ECMA_THROWDYN:case c.I32TOF32:case c.U32TOU1:return[[]];case c.SHR2:return[[[0,8]]];case c.ECMA_TYPEOFDYN:case c.U32TOF32:case c.U64TOU1:return[[]];case c.SHR2_64:return[[[0,8]]];case c.ECMA_LDLEXENVDYN:case c.I64TOF32:case c.I32TOI64:return[[]];case c.ASHR2:return[[[0,8]]];case c.ECMA_POPLEXENVDYN:case c.U64TOF32:case c.I32TOI16:return[[]];case c.ASHR2_64:return[[[0,8]]];case c.ECMA_GETUNMAPPEDARGS:case c.F32TOF64:case c.I32TOU16:return[[]];case c.XORI:return[[[3,32]]];case c.ECMA_GETPROPITERATOR:case c.F32TOI32:case c.I32TOI8:return[[]];case c.AND:return[[[0,4],[0,4]]];case c.ECMA_ASYNCFUNCTIONENTER:case c.F32TOI64:case c.I32TOU8:return[[]];case c.OR:return[[[0,4],[0,4]]];case c.ECMA_LDHOLE:case c.F32TOU32:case c.I64TOI32:return[[]];case c.XOR:return[[[0,4],[0,4]]];case c.ECMA_RETURNUNDEFINED:case c.F32TOU64:case c.U32TOI64:return[[]];case c.SHL:return[[[0,4],[0,4]]];case c.ECMA_CREATEEMPTYOBJECT:case c.F64TOF32:case c.U32TOI16:return[[]];case c.SHR:return[[[0,4],[0,4]]];case c.ECMA_CREATEEMPTYARRAY:case c.U32TOU16:return[[]];case c.ASHR:return[[[0,4],[0,4]]];case c.ECMA_GETITERATOR:case c.U32TOI8:case c.ECMA_THROWTHROWNOTEXISTS:case c.U32TOU8:case c.ECMA_THROWPATTERNNONCOERCIBLE:case c.U64TOI32:case c.ECMA_LDHOMEOBJECT:case c.U64TOU32:case c.ECMA_THROWDELETESUPERPROPERTY:case c.ECMA_DEBUGGER:return[[]];case c.ECMA_ADD2DYN:case c.ECMA_SUB2DYN:case c.ECMA_MUL2DYN:case c.ECMA_DIV2DYN:case c.ECMA_MOD2DYN:case c.ECMA_EQDYN:case c.ECMA_NOTEQDYN:case c.ECMA_LESSDYN:case c.ECMA_LESSEQDYN:case c.ECMA_GREATERDYN:case c.ECMA_GREATEREQDYN:case c.ECMA_SHL2DYN:case c.ECMA_SHR2DYN:case c.ECMA_ASHR2DYN:case c.ECMA_AND2DYN:case c.ECMA_OR2DYN:case c.ECMA_XOR2DYN:case c.ECMA_TONUMBER:case c.ECMA_NEGDYN:case c.ECMA_NOTDYN:case c.ECMA_INCDYN:case c.ECMA_DECDYN:case c.ECMA_EXPDYN:case c.ECMA_ISINDYN:case c.ECMA_INSTANCEOFDYN:case c.ECMA_STRICTNOTEQDYN:case c.ECMA_STRICTEQDYN:case c.ECMA_RESUMEGENERATOR:case c.ECMA_GETRESUMEMODE:case c.ECMA_CREATEGENERATOROBJ:case c.ECMA_THROWCONSTASSIGNMENT:case c.ECMA_GETTEMPLATEOBJECT:case c.ECMA_GETNEXTPROPNAME:case c.ECMA_CALLARG0DYN:case c.ECMA_THROWIFNOTOBJECT:case c.ECMA_ITERNEXT:case c.ECMA_CLOSEITERATOR:case c.ECMA_COPYMODULE:case c.ECMA_SUPERCALLSPREAD:return[[[0,8]]];case c.ECMA_DELOBJPROP:case c.ECMA_NEWOBJSPREADDYN:case c.ECMA_CREATEITERRESULTOBJ:case c.ECMA_SUSPENDGENERATOR:case c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT:case c.ECMA_THROWUNDEFINEDIFHOLE:case c.ECMA_CALLARG1DYN:case c.ECMA_COPYDATAPROPERTIES:case c.ECMA_STARRAYSPREAD:case c.ECMA_GETITERATORNEXT:case c.ECMA_SETOBJECTWITHPROTO:case c.ECMA_LDOBJBYVALUE:case c.ECMA_STOBJBYVALUE:case c.ECMA_STOWNBYVALUE:case c.ECMA_LDSUPERBYVALUE:case c.ECMA_STSUPERBYVALUE:return[[[0,8],[0,8]]];case c.ECMA_LDOBJBYINDEX:case c.ECMA_STOBJBYINDEX:case c.ECMA_STOWNBYINDEX:return[[[0,8],[3,32]]];case c.ECMA_CALLSPREADDYN:case c.ECMA_ASYNCFUNCTIONRESOLVE:case c.ECMA_ASYNCFUNCTIONREJECT:case c.ECMA_CALLARGS2DYN:return[[[0,8],[0,8],[0,8]]];case c.ECMA_CALLARGS3DYN:case c.ECMA_DEFINEGETTERSETTERBYVALUE:return[[[0,8],[0,8],[0,8],[0,8]]];case c.ECMA_NEWOBJDYNRANGE:case c.ECMA_CALLIRANGEDYN:case c.ECMA_CALLITHISRANGEDYN:case c.ECMA_SUPERCALL:return[[[3,16],[0,8]]];case c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS:return[[[3,16],[0,8],[0,8]]];case c.ECMA_DEFINEFUNCDYN:case c.ECMA_DEFINENCFUNCDYN:case c.ECMA_DEFINEGENERATORFUNC:case c.ECMA_DEFINEASYNCFUNC:case c.ECMA_DEFINEMETHOD:return[[[4,16],[3,16],[0,8]]];case c.ECMA_NEWLEXENVDYN:case c.ECMA_COPYRESTARGS:case c.ECMA_CREATEARRAYWITHBUFFER:case c.ECMA_CREATEOBJECTHAVINGMETHOD:case c.ECMA_THROWIFSUPERNOTCORRECTCALL:case c.ECMA_CREATEOBJECTWITHBUFFER:return[[[3,16]]];case c.ECMA_LDLEXVARDYN:return[[[3,4],[3,4]],[[3,8],[3,8]],[[3,16],[3,16]]];case c.ECMA_STLEXVARDYN:return[[[3,4],[3,4],[0,8]],[[3,8],[3,8],[0,8]],[[3,16],[3,16],[0,8]]];case c.ECMA_DEFINECLASSWITHBUFFER:return[[[4,16],[3,16],[3,16],[0,8],[0,8]]];case c.ECMA_IMPORTMODULE:case c.ECMA_STMODULEVAR:case c.ECMA_TRYLDGLOBALBYNAME:case c.ECMA_TRYSTGLOBALBYNAME:case c.ECMA_LDGLOBALVAR:case c.ECMA_STGLOBALVAR:return[[[5,32]]];case c.ECMA_LDOBJBYNAME:case c.ECMA_STOBJBYNAME:case c.ECMA_STOWNBYNAME:case c.ECMA_LDSUPERBYNAME:case c.ECMA_STSUPERBYNAME:case c.ECMA_LDMODVARBYNAME:return[[[5,32],[0,8]]];case c.ECMA_CREATEREGEXPWITHLITERAL:return[[[5,32],[3,8]]];case c.ECMA_ISTRUE:case c.ECMA_ISFALSE:return[[]];case c.ECMA_STCONSTTOGLOBALRECORD:case c.ECMA_STLETTOGLOBALRECORD:case c.ECMA_STCLASSTOGLOBALRECORD:return[[[5,32]]];case c.ECMA_STOWNBYVALUEWITHNAMESET:return[[[0,8],[0,8]]];case c.ECMA_STOWNBYNAMEWITHNAMESET:return[[[5,32],[0,8]]];case c.ECMA_LDFUNCTION:return[[]];case c.ECMA_NEWLEXENVWITHNAMEDYN:return[[[3,16],[3,16]]];case c.ECMA_LDBIGINT:return[[[5,32]]];default:return[]}}!function(e){e[e.NOP=0]="NOP",e[e.MOV=1]="MOV",e[e.MOV_64=2]="MOV_64",e[e.MOV_OBJ=3]="MOV_OBJ",e[e.MOVI=4]="MOVI",e[e.MOVI_64=5]="MOVI_64",e[e.FMOVI_64=6]="FMOVI_64",e[e.MOV_NULL=7]="MOV_NULL",e[e.LDA=8]="LDA",e[e.LDA_64=9]="LDA_64",e[e.LDA_OBJ=10]="LDA_OBJ",e[e.LDAI=11]="LDAI",e[e.LDAI_64=12]="LDAI_64",e[e.FLDAI_64=13]="FLDAI_64",e[e.LDA_STR=14]="LDA_STR",e[e.LDA_CONST=15]="LDA_CONST",e[e.LDA_TYPE=16]="LDA_TYPE",e[e.LDA_NULL=17]="LDA_NULL",e[e.STA=18]="STA",e[e.STA_64=19]="STA_64",e[e.STA_OBJ=20]="STA_OBJ",e[e.CMP_64=21]="CMP_64",e[e.FCMPL_64=22]="FCMPL_64",e[e.FCMPG_64=23]="FCMPG_64",e[e.JMP=24]="JMP",e[e.JEQ_OBJ=25]="JEQ_OBJ",e[e.JNE_OBJ=26]="JNE_OBJ",e[e.JEQZ_OBJ=27]="JEQZ_OBJ",e[e.JNEZ_OBJ=28]="JNEZ_OBJ",e[e.JEQZ=29]="JEQZ",e[e.JNEZ=30]="JNEZ",e[e.JLTZ=31]="JLTZ",e[e.JGTZ=32]="JGTZ",e[e.JLEZ=33]="JLEZ",e[e.JGEZ=34]="JGEZ",e[e.JEQ=35]="JEQ",e[e.JNE=36]="JNE",e[e.JLT=37]="JLT",e[e.JGT=38]="JGT",e[e.JLE=39]="JLE",e[e.JGE=40]="JGE",e[e.FNEG_64=41]="FNEG_64",e[e.NEG=42]="NEG",e[e.NEG_64=43]="NEG_64",e[e.ADD2=44]="ADD2",e[e.ADD2_64=45]="ADD2_64",e[e.SUB2=46]="SUB2",e[e.SUB2_64=47]="SUB2_64",e[e.MUL2=48]="MUL2",e[e.MUL2_64=49]="MUL2_64",e[e.FADD2_64=50]="FADD2_64",e[e.FSUB2_64=51]="FSUB2_64",e[e.FMUL2_64=52]="FMUL2_64",e[e.FDIV2_64=53]="FDIV2_64",e[e.FMOD2_64=54]="FMOD2_64",e[e.DIV2=55]="DIV2",e[e.DIV2_64=56]="DIV2_64",e[e.MOD2=57]="MOD2",e[e.MOD2_64=58]="MOD2_64",e[e.ADDI=59]="ADDI",e[e.SUBI=60]="SUBI",e[e.MULI=61]="MULI",e[e.ANDI=62]="ANDI",e[e.ORI=63]="ORI",e[e.SHLI=64]="SHLI",e[e.SHRI=65]="SHRI",e[e.ASHRI=66]="ASHRI",e[e.DIVI=67]="DIVI",e[e.MODI=68]="MODI",e[e.ADD=69]="ADD",e[e.SUB=70]="SUB",e[e.MUL=71]="MUL",e[e.DIV=72]="DIV",e[e.MOD=73]="MOD",e[e.INCI=74]="INCI",e[e.LDARR_8=75]="LDARR_8",e[e.LDARRU_8=76]="LDARRU_8",e[e.LDARR_16=77]="LDARR_16",e[e.LDARRU_16=78]="LDARRU_16",e[e.LDARR=79]="LDARR",e[e.LDARR_64=80]="LDARR_64",e[e.FLDARR_32=81]="FLDARR_32",e[e.FLDARR_64=82]="FLDARR_64",e[e.LDARR_OBJ=83]="LDARR_OBJ",e[e.STARR_8=84]="STARR_8",e[e.STARR_16=85]="STARR_16",e[e.STARR=86]="STARR",e[e.STARR_64=87]="STARR_64",e[e.FSTARR_32=88]="FSTARR_32",e[e.FSTARR_64=89]="FSTARR_64",e[e.STARR_OBJ=90]="STARR_OBJ",e[e.LENARR=91]="LENARR",e[e.NEWARR=92]="NEWARR",e[e.NEWOBJ=93]="NEWOBJ",e[e.INITOBJ_SHORT=94]="INITOBJ_SHORT",e[e.INITOBJ=95]="INITOBJ",e[e.INITOBJ_RANGE=96]="INITOBJ_RANGE",e[e.LDOBJ=97]="LDOBJ",e[e.LDOBJ_64=98]="LDOBJ_64",e[e.LDOBJ_OBJ=99]="LDOBJ_OBJ",e[e.STOBJ=100]="STOBJ",e[e.STOBJ_64=101]="STOBJ_64",e[e.STOBJ_OBJ=102]="STOBJ_OBJ",e[e.LDOBJ_V=103]="LDOBJ_V",e[e.LDOBJ_V_64=104]="LDOBJ_V_64",e[e.LDOBJ_V_OBJ=105]="LDOBJ_V_OBJ",e[e.STOBJ_V=106]="STOBJ_V",e[e.STOBJ_V_64=107]="STOBJ_V_64",e[e.STOBJ_V_OBJ=108]="STOBJ_V_OBJ",e[e.LDSTATIC=109]="LDSTATIC",e[e.LDSTATIC_64=110]="LDSTATIC_64",e[e.LDSTATIC_OBJ=111]="LDSTATIC_OBJ",e[e.STSTATIC=112]="STSTATIC",e[e.STSTATIC_64=113]="STSTATIC_64",e[e.STSTATIC_OBJ=114]="STSTATIC_OBJ",e[e.RETURN=115]="RETURN",e[e.RETURN_64=116]="RETURN_64",e[e.RETURN_OBJ=117]="RETURN_OBJ",e[e.RETURN_VOID=118]="RETURN_VOID",e[e.THROW=119]="THROW",e[e.CHECKCAST=120]="CHECKCAST",e[e.ISINSTANCE=121]="ISINSTANCE",e[e.CALL_SHORT=122]="CALL_SHORT",e[e.CALL=123]="CALL",e[e.CALL_RANGE=124]="CALL_RANGE",e[e.CALL_ACC_SHORT=125]="CALL_ACC_SHORT",e[e.CALL_ACC=126]="CALL_ACC",e[e.CALL_VIRT_SHORT=127]="CALL_VIRT_SHORT",e[e.CALL_VIRT=128]="CALL_VIRT",e[e.CALL_VIRT_RANGE=129]="CALL_VIRT_RANGE",e[e.CALL_VIRT_ACC_SHORT=130]="CALL_VIRT_ACC_SHORT",e[e.CALL_VIRT_ACC=131]="CALL_VIRT_ACC",e[e.MOV_DYN=132]="MOV_DYN",e[e.LDA_DYN=133]="LDA_DYN",e[e.STA_DYN=134]="STA_DYN",e[e.LDAI_DYN=135]="LDAI_DYN",e[e.FLDAI_DYN=136]="FLDAI_DYN",e[e.RETURN_DYN=137]="RETURN_DYN",e[e.CALLI_DYN_SHORT=138]="CALLI_DYN_SHORT",e[e.CALLI_DYN=139]="CALLI_DYN",e[e.CALLI_DYN_RANGE=140]="CALLI_DYN_RANGE",e[e.FMOVI=141]="FMOVI",e[e.I32TOF64=142]="I32TOF64",e[e.UCMP=143]="UCMP",e[e.NOT=144]="NOT",e[e.ECMA_LDNAN=145]="ECMA_LDNAN",e[e.FLDAI=146]="FLDAI",e[e.U32TOF64=147]="U32TOF64",e[e.UCMP_64=148]="UCMP_64",e[e.NOT_64=149]="NOT_64",e[e.ECMA_LDINFINITY=150]="ECMA_LDINFINITY",e[e.FCMPL=151]="FCMPL",e[e.I64TOF64=152]="I64TOF64",e[e.DIVU2=153]="DIVU2",e[e.AND2=154]="AND2",e[e.ECMA_LDGLOBALTHIS=155]="ECMA_LDGLOBALTHIS",e[e.FCMPG=156]="FCMPG",e[e.U64TOF64=157]="U64TOF64",e[e.DIVU2_64=158]="DIVU2_64",e[e.AND2_64=159]="AND2_64",e[e.ECMA_LDUNDEFINED=160]="ECMA_LDUNDEFINED",e[e.FNEG=161]="FNEG",e[e.F64TOI32=162]="F64TOI32",e[e.MODU2=163]="MODU2",e[e.OR2=164]="OR2",e[e.ECMA_LDNULL=165]="ECMA_LDNULL",e[e.FADD2=166]="FADD2",e[e.F64TOI64=167]="F64TOI64",e[e.MODU2_64=168]="MODU2_64",e[e.OR2_64=169]="OR2_64",e[e.ECMA_LDSYMBOL=170]="ECMA_LDSYMBOL",e[e.FSUB2=171]="FSUB2",e[e.F64TOU32=172]="F64TOU32",e[e.XOR2=173]="XOR2",e[e.ECMA_LDGLOBAL=174]="ECMA_LDGLOBAL",e[e.FMUL2=175]="FMUL2",e[e.F64TOU64=176]="F64TOU64",e[e.XOR2_64=177]="XOR2_64",e[e.ECMA_LDTRUE=178]="ECMA_LDTRUE",e[e.FDIV2=179]="FDIV2",e[e.I32TOU1=180]="I32TOU1",e[e.SHL2=181]="SHL2",e[e.ECMA_LDFALSE=182]="ECMA_LDFALSE",e[e.FMOD2=183]="FMOD2",e[e.I64TOU1=184]="I64TOU1",e[e.SHL2_64=185]="SHL2_64",e[e.ECMA_THROWDYN=186]="ECMA_THROWDYN",e[e.I32TOF32=187]="I32TOF32",e[e.U32TOU1=188]="U32TOU1",e[e.SHR2=189]="SHR2",e[e.ECMA_TYPEOFDYN=190]="ECMA_TYPEOFDYN",e[e.U32TOF32=191]="U32TOF32",e[e.U64TOU1=192]="U64TOU1",e[e.SHR2_64=193]="SHR2_64",e[e.ECMA_LDLEXENVDYN=194]="ECMA_LDLEXENVDYN",e[e.I64TOF32=195]="I64TOF32",e[e.I32TOI64=196]="I32TOI64",e[e.ASHR2=197]="ASHR2",e[e.ECMA_POPLEXENVDYN=198]="ECMA_POPLEXENVDYN",e[e.U64TOF32=199]="U64TOF32",e[e.I32TOI16=200]="I32TOI16",e[e.ASHR2_64=201]="ASHR2_64",e[e.ECMA_GETUNMAPPEDARGS=202]="ECMA_GETUNMAPPEDARGS",e[e.F32TOF64=203]="F32TOF64",e[e.I32TOU16=204]="I32TOU16",e[e.XORI=205]="XORI",e[e.ECMA_GETPROPITERATOR=206]="ECMA_GETPROPITERATOR",e[e.F32TOI32=207]="F32TOI32",e[e.I32TOI8=208]="I32TOI8",e[e.AND=209]="AND",e[e.ECMA_ASYNCFUNCTIONENTER=210]="ECMA_ASYNCFUNCTIONENTER",e[e.F32TOI64=211]="F32TOI64",e[e.I32TOU8=212]="I32TOU8",e[e.OR=213]="OR",e[e.ECMA_LDHOLE=214]="ECMA_LDHOLE",e[e.F32TOU32=215]="F32TOU32",e[e.I64TOI32=216]="I64TOI32",e[e.XOR=217]="XOR",e[e.ECMA_RETURNUNDEFINED=218]="ECMA_RETURNUNDEFINED",e[e.F32TOU64=219]="F32TOU64",e[e.U32TOI64=220]="U32TOI64",e[e.SHL=221]="SHL",e[e.ECMA_CREATEEMPTYOBJECT=222]="ECMA_CREATEEMPTYOBJECT",e[e.F64TOF32=223]="F64TOF32",e[e.U32TOI16=224]="U32TOI16",e[e.SHR=225]="SHR",e[e.ECMA_CREATEEMPTYARRAY=226]="ECMA_CREATEEMPTYARRAY",e[e.U32TOU16=227]="U32TOU16",e[e.ASHR=228]="ASHR",e[e.ECMA_GETITERATOR=229]="ECMA_GETITERATOR",e[e.U32TOI8=230]="U32TOI8",e[e.ECMA_THROWTHROWNOTEXISTS=231]="ECMA_THROWTHROWNOTEXISTS",e[e.U32TOU8=232]="U32TOU8",e[e.ECMA_THROWPATTERNNONCOERCIBLE=233]="ECMA_THROWPATTERNNONCOERCIBLE",e[e.U64TOI32=234]="U64TOI32",e[e.ECMA_LDHOMEOBJECT=235]="ECMA_LDHOMEOBJECT",e[e.U64TOU32=236]="U64TOU32",e[e.ECMA_THROWDELETESUPERPROPERTY=237]="ECMA_THROWDELETESUPERPROPERTY",e[e.ECMA_DEBUGGER=238]="ECMA_DEBUGGER",e[e.ECMA_ADD2DYN=239]="ECMA_ADD2DYN",e[e.ECMA_SUB2DYN=240]="ECMA_SUB2DYN",e[e.ECMA_MUL2DYN=241]="ECMA_MUL2DYN",e[e.ECMA_DIV2DYN=242]="ECMA_DIV2DYN",e[e.ECMA_MOD2DYN=243]="ECMA_MOD2DYN",e[e.ECMA_EQDYN=244]="ECMA_EQDYN",e[e.ECMA_NOTEQDYN=245]="ECMA_NOTEQDYN",e[e.ECMA_LESSDYN=246]="ECMA_LESSDYN",e[e.ECMA_LESSEQDYN=247]="ECMA_LESSEQDYN",e[e.ECMA_GREATERDYN=248]="ECMA_GREATERDYN",e[e.ECMA_GREATEREQDYN=249]="ECMA_GREATEREQDYN",e[e.ECMA_SHL2DYN=250]="ECMA_SHL2DYN",e[e.ECMA_SHR2DYN=251]="ECMA_SHR2DYN",e[e.ECMA_ASHR2DYN=252]="ECMA_ASHR2DYN",e[e.ECMA_AND2DYN=253]="ECMA_AND2DYN",e[e.ECMA_OR2DYN=254]="ECMA_OR2DYN",e[e.ECMA_XOR2DYN=255]="ECMA_XOR2DYN",e[e.ECMA_TONUMBER=256]="ECMA_TONUMBER",e[e.ECMA_NEGDYN=257]="ECMA_NEGDYN",e[e.ECMA_NOTDYN=258]="ECMA_NOTDYN",e[e.ECMA_INCDYN=259]="ECMA_INCDYN",e[e.ECMA_DECDYN=260]="ECMA_DECDYN",e[e.ECMA_EXPDYN=261]="ECMA_EXPDYN",e[e.ECMA_ISINDYN=262]="ECMA_ISINDYN",e[e.ECMA_INSTANCEOFDYN=263]="ECMA_INSTANCEOFDYN",e[e.ECMA_STRICTNOTEQDYN=264]="ECMA_STRICTNOTEQDYN",e[e.ECMA_STRICTEQDYN=265]="ECMA_STRICTEQDYN",e[e.ECMA_RESUMEGENERATOR=266]="ECMA_RESUMEGENERATOR",e[e.ECMA_GETRESUMEMODE=267]="ECMA_GETRESUMEMODE",e[e.ECMA_CREATEGENERATOROBJ=268]="ECMA_CREATEGENERATOROBJ",e[e.ECMA_THROWCONSTASSIGNMENT=269]="ECMA_THROWCONSTASSIGNMENT",e[e.ECMA_GETTEMPLATEOBJECT=270]="ECMA_GETTEMPLATEOBJECT",e[e.ECMA_GETNEXTPROPNAME=271]="ECMA_GETNEXTPROPNAME",e[e.ECMA_CALLARG0DYN=272]="ECMA_CALLARG0DYN",e[e.ECMA_THROWIFNOTOBJECT=273]="ECMA_THROWIFNOTOBJECT",e[e.ECMA_ITERNEXT=274]="ECMA_ITERNEXT",e[e.ECMA_CLOSEITERATOR=275]="ECMA_CLOSEITERATOR",e[e.ECMA_COPYMODULE=276]="ECMA_COPYMODULE",e[e.ECMA_SUPERCALLSPREAD=277]="ECMA_SUPERCALLSPREAD",e[e.ECMA_DELOBJPROP=278]="ECMA_DELOBJPROP",e[e.ECMA_NEWOBJSPREADDYN=279]="ECMA_NEWOBJSPREADDYN",e[e.ECMA_CREATEITERRESULTOBJ=280]="ECMA_CREATEITERRESULTOBJ",e[e.ECMA_SUSPENDGENERATOR=281]="ECMA_SUSPENDGENERATOR",e[e.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT=282]="ECMA_ASYNCFUNCTIONAWAITUNCAUGHT",e[e.ECMA_THROWUNDEFINEDIFHOLE=283]="ECMA_THROWUNDEFINEDIFHOLE",e[e.ECMA_CALLARG1DYN=284]="ECMA_CALLARG1DYN",e[e.ECMA_COPYDATAPROPERTIES=285]="ECMA_COPYDATAPROPERTIES",e[e.ECMA_STARRAYSPREAD=286]="ECMA_STARRAYSPREAD",e[e.ECMA_GETITERATORNEXT=287]="ECMA_GETITERATORNEXT",e[e.ECMA_SETOBJECTWITHPROTO=288]="ECMA_SETOBJECTWITHPROTO",e[e.ECMA_LDOBJBYVALUE=289]="ECMA_LDOBJBYVALUE",e[e.ECMA_STOBJBYVALUE=290]="ECMA_STOBJBYVALUE",e[e.ECMA_STOWNBYVALUE=291]="ECMA_STOWNBYVALUE",e[e.ECMA_LDSUPERBYVALUE=292]="ECMA_LDSUPERBYVALUE",e[e.ECMA_STSUPERBYVALUE=293]="ECMA_STSUPERBYVALUE",e[e.ECMA_LDOBJBYINDEX=294]="ECMA_LDOBJBYINDEX",e[e.ECMA_STOBJBYINDEX=295]="ECMA_STOBJBYINDEX",e[e.ECMA_STOWNBYINDEX=296]="ECMA_STOWNBYINDEX",e[e.ECMA_CALLSPREADDYN=297]="ECMA_CALLSPREADDYN",e[e.ECMA_ASYNCFUNCTIONRESOLVE=298]="ECMA_ASYNCFUNCTIONRESOLVE",e[e.ECMA_ASYNCFUNCTIONREJECT=299]="ECMA_ASYNCFUNCTIONREJECT",e[e.ECMA_CALLARGS2DYN=300]="ECMA_CALLARGS2DYN",e[e.ECMA_CALLARGS3DYN=301]="ECMA_CALLARGS3DYN",e[e.ECMA_DEFINEGETTERSETTERBYVALUE=302]="ECMA_DEFINEGETTERSETTERBYVALUE",e[e.ECMA_NEWOBJDYNRANGE=303]="ECMA_NEWOBJDYNRANGE",e[e.ECMA_CALLIRANGEDYN=304]="ECMA_CALLIRANGEDYN",e[e.ECMA_CALLITHISRANGEDYN=305]="ECMA_CALLITHISRANGEDYN",e[e.ECMA_SUPERCALL=306]="ECMA_SUPERCALL",e[e.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS=307]="ECMA_CREATEOBJECTWITHEXCLUDEDKEYS",e[e.ECMA_DEFINEFUNCDYN=308]="ECMA_DEFINEFUNCDYN",e[e.ECMA_DEFINENCFUNCDYN=309]="ECMA_DEFINENCFUNCDYN",e[e.ECMA_DEFINEGENERATORFUNC=310]="ECMA_DEFINEGENERATORFUNC",e[e.ECMA_DEFINEASYNCFUNC=311]="ECMA_DEFINEASYNCFUNC",e[e.ECMA_DEFINEMETHOD=312]="ECMA_DEFINEMETHOD",e[e.ECMA_NEWLEXENVDYN=313]="ECMA_NEWLEXENVDYN",e[e.ECMA_COPYRESTARGS=314]="ECMA_COPYRESTARGS",e[e.ECMA_CREATEARRAYWITHBUFFER=315]="ECMA_CREATEARRAYWITHBUFFER",e[e.ECMA_CREATEOBJECTHAVINGMETHOD=316]="ECMA_CREATEOBJECTHAVINGMETHOD",e[e.ECMA_THROWIFSUPERNOTCORRECTCALL=317]="ECMA_THROWIFSUPERNOTCORRECTCALL",e[e.ECMA_CREATEOBJECTWITHBUFFER=318]="ECMA_CREATEOBJECTWITHBUFFER",e[e.ECMA_LDLEXVARDYN=319]="ECMA_LDLEXVARDYN",e[e.ECMA_STLEXVARDYN=320]="ECMA_STLEXVARDYN",e[e.ECMA_DEFINECLASSWITHBUFFER=321]="ECMA_DEFINECLASSWITHBUFFER",e[e.ECMA_IMPORTMODULE=322]="ECMA_IMPORTMODULE",e[e.ECMA_STMODULEVAR=323]="ECMA_STMODULEVAR",e[e.ECMA_TRYLDGLOBALBYNAME=324]="ECMA_TRYLDGLOBALBYNAME",e[e.ECMA_TRYSTGLOBALBYNAME=325]="ECMA_TRYSTGLOBALBYNAME",e[e.ECMA_LDGLOBALVAR=326]="ECMA_LDGLOBALVAR",e[e.ECMA_STGLOBALVAR=327]="ECMA_STGLOBALVAR",e[e.ECMA_LDOBJBYNAME=328]="ECMA_LDOBJBYNAME",e[e.ECMA_STOBJBYNAME=329]="ECMA_STOBJBYNAME",e[e.ECMA_STOWNBYNAME=330]="ECMA_STOWNBYNAME",e[e.ECMA_LDSUPERBYNAME=331]="ECMA_LDSUPERBYNAME",e[e.ECMA_STSUPERBYNAME=332]="ECMA_STSUPERBYNAME",e[e.ECMA_LDMODVARBYNAME=333]="ECMA_LDMODVARBYNAME",e[e.ECMA_CREATEREGEXPWITHLITERAL=334]="ECMA_CREATEREGEXPWITHLITERAL",e[e.ECMA_ISTRUE=335]="ECMA_ISTRUE",e[e.ECMA_ISFALSE=336]="ECMA_ISFALSE",e[e.ECMA_STCONSTTOGLOBALRECORD=337]="ECMA_STCONSTTOGLOBALRECORD",e[e.ECMA_STLETTOGLOBALRECORD=338]="ECMA_STLETTOGLOBALRECORD",e[e.ECMA_STCLASSTOGLOBALRECORD=339]="ECMA_STCLASSTOGLOBALRECORD",e[e.ECMA_STOWNBYVALUEWITHNAMESET=340]="ECMA_STOWNBYVALUEWITHNAMESET",e[e.ECMA_STOWNBYNAMEWITHNAMESET=341]="ECMA_STOWNBYNAMEWITHNAMESET",e[e.ECMA_LDFUNCTION=342]="ECMA_LDFUNCTION",e[e.ECMA_NEWLEXENVWITHNAMEDYN=343]="ECMA_NEWLEXENVWITHNAMEDYN",e[e.ECMA_LDBIGINT=344]="ECMA_LDBIGINT",e[e.VREG=345]="VREG",e[e.IMM=346]="IMM",e[e.LABEL=347]="LABEL",e[e.VIRTUALSTARTINS_DYN=348]="VIRTUALSTARTINS_DYN",e[e.VIRTUALENDINS_DYN=349]="VIRTUALENDINS_DYN",e[e.DEFINE_GLOBAL_VAR=350]="DEFINE_GLOBAL_VAR"}(c=t.IRNodeKind||(t.IRNodeKind={})),t.getInstructionSize=function(e){switch(e){case c.NOP:return 1;case c.MOV:return 2;case c.MOV:return 3;case c.MOV:return 5;case c.MOV_64:return 2;case c.MOV_64:return 5;case c.MOV_OBJ:return 2;case c.MOV_OBJ:return 3;case c.MOV_OBJ:return 5;case c.MOVI:return 2;case c.MOVI:return 3;case c.MOVI:return 4;case c.MOVI:return 6;case c.MOVI_64:case c.FMOVI_64:return 10;case c.MOV_NULL:case c.LDA:case c.LDA_64:case c.LDA_OBJ:case c.LDAI:return 2;case c.LDAI:return 3;case c.LDAI:return 5;case c.LDAI_64:case c.FLDAI_64:return 9;case c.LDA_STR:return 5;case c.LDA_CONST:return 6;case c.LDA_TYPE:return 3;case c.LDA_NULL:return 1;case c.STA:case c.STA_64:case c.STA_OBJ:case c.CMP_64:case c.FCMPL_64:case c.FCMPG_64:case c.JMP:return 2;case c.JMP:return 3;case c.JMP:return 5;case c.JEQ_OBJ:return 3;case c.JEQ_OBJ:return 4;case c.JNE_OBJ:return 3;case c.JNE_OBJ:return 4;case c.JEQZ_OBJ:return 2;case c.JEQZ_OBJ:return 3;case c.JNEZ_OBJ:return 2;case c.JNEZ_OBJ:return 3;case c.JEQZ:return 2;case c.JEQZ:return 3;case c.JNEZ:return 2;case c.JNEZ:return 3;case c.JLTZ:return 2;case c.JLTZ:return 3;case c.JGTZ:return 2;case c.JGTZ:return 3;case c.JLEZ:return 2;case c.JLEZ:return 3;case c.JGEZ:return 2;case c.JGEZ:case c.JEQ:return 3;case c.JEQ:return 4;case c.JNE:return 3;case c.JNE:return 4;case c.JLT:return 3;case c.JLT:return 4;case c.JGT:return 3;case c.JGT:return 4;case c.JLE:return 3;case c.JLE:return 4;case c.JGE:return 3;case c.JGE:return 4;case c.FNEG_64:case c.NEG:case c.NEG_64:return 1;case c.ADD2:case c.ADD2_64:case c.SUB2:case c.SUB2_64:case c.MUL2:case c.MUL2_64:case c.FADD2_64:case c.FSUB2_64:case c.FMUL2_64:case c.FDIV2_64:case c.FMOD2_64:case c.DIV2:case c.DIV2_64:case c.MOD2:case c.MOD2_64:case c.ADDI:case c.SUBI:case c.MULI:return 2;case c.ANDI:case c.ORI:return 5;case c.SHLI:case c.SHRI:case c.ASHRI:case c.DIVI:case c.MODI:case c.ADD:case c.SUB:case c.MUL:case c.DIV:case c.MOD:case c.INCI:case c.LDARR_8:case c.LDARRU_8:case c.LDARR_16:case c.LDARRU_16:case c.LDARR:case c.LDARR_64:case c.FLDARR_32:case c.FLDARR_64:case c.LDARR_OBJ:case c.STARR_8:case c.STARR_16:case c.STARR:case c.STARR_64:case c.FSTARR_32:case c.FSTARR_64:case c.STARR_OBJ:case c.LENARR:return 2;case c.NEWARR:case c.NEWOBJ:case c.INITOBJ_SHORT:return 4;case c.INITOBJ:return 5;case c.INITOBJ_RANGE:case c.LDOBJ:case c.LDOBJ_64:case c.LDOBJ_OBJ:case c.STOBJ:case c.STOBJ_64:case c.STOBJ_OBJ:case c.LDOBJ_V:case c.LDOBJ_V_64:case c.LDOBJ_V_OBJ:case c.STOBJ_V:case c.STOBJ_V_64:case c.STOBJ_V_OBJ:return 4;case c.LDSTATIC:case c.LDSTATIC_64:case c.LDSTATIC_OBJ:case c.STSTATIC:case c.STSTATIC_64:case c.STSTATIC_OBJ:return 3;case c.RETURN:case c.RETURN_64:case c.RETURN_OBJ:case c.RETURN_VOID:return 1;case c.THROW:return 2;case c.CHECKCAST:case c.ISINSTANCE:return 3;case c.CALL_SHORT:return 4;case c.CALL:return 5;case c.CALL_RANGE:case c.CALL_ACC_SHORT:return 4;case c.CALL_ACC:return 5;case c.CALL_VIRT_SHORT:return 4;case c.CALL_VIRT:return 5;case c.CALL_VIRT_RANGE:case c.CALL_VIRT_ACC_SHORT:return 4;case c.CALL_VIRT_ACC:return 5;case c.MOV_DYN:return 3;case c.MOV_DYN:return 5;case c.LDA_DYN:case c.STA_DYN:return 2;case c.LDAI_DYN:return 5;case c.FLDAI_DYN:return 9;case c.RETURN_DYN:return 1;case c.CALLI_DYN_SHORT:return 3;case c.CALLI_DYN:return 4;case c.CALLI_DYN_RANGE:return 5;case c.FMOVI:return 7;case c.I32TOF64:return 2;case c.UCMP:return 3;case c.NOT:case c.ECMA_LDNAN:return 2;case c.FLDAI:return 6;case c.U32TOF64:return 2;case c.UCMP_64:return 3;case c.NOT_64:case c.ECMA_LDINFINITY:return 2;case c.FCMPL:return 3;case c.I64TOF64:return 2;case c.DIVU2:case c.AND2:return 3;case c.ECMA_LDGLOBALTHIS:return 2;case c.FCMPG:return 3;case c.U64TOF64:return 2;case c.DIVU2_64:case c.AND2_64:return 3;case c.ECMA_LDUNDEFINED:case c.FNEG:case c.F64TOI32:return 2;case c.MODU2:case c.OR2:return 3;case c.ECMA_LDNULL:return 2;case c.FADD2:return 3;case c.F64TOI64:return 2;case c.MODU2_64:case c.OR2_64:return 3;case c.ECMA_LDSYMBOL:return 2;case c.FSUB2:return 3;case c.F64TOU32:return 2;case c.XOR2:return 3;case c.ECMA_LDGLOBAL:return 2;case c.FMUL2:return 3;case c.F64TOU64:return 2;case c.XOR2_64:return 3;case c.ECMA_LDTRUE:return 2;case c.FDIV2:return 3;case c.I32TOU1:return 2;case c.SHL2:return 3;case c.ECMA_LDFALSE:return 2;case c.FMOD2:return 3;case c.I64TOU1:return 2;case c.SHL2_64:return 3;case c.ECMA_THROWDYN:case c.I32TOF32:case c.U32TOU1:return 2;case c.SHR2:return 3;case c.ECMA_TYPEOFDYN:case c.U32TOF32:case c.U64TOU1:return 2;case c.SHR2_64:return 3;case c.ECMA_LDLEXENVDYN:case c.I64TOF32:case c.I32TOI64:return 2;case c.ASHR2:return 3;case c.ECMA_POPLEXENVDYN:case c.U64TOF32:case c.I32TOI16:return 2;case c.ASHR2_64:return 3;case c.ECMA_GETUNMAPPEDARGS:case c.F32TOF64:case c.I32TOU16:return 2;case c.XORI:return 6;case c.ECMA_GETPROPITERATOR:case c.F32TOI32:case c.I32TOI8:return 2;case c.AND:return 3;case c.ECMA_ASYNCFUNCTIONENTER:case c.F32TOI64:case c.I32TOU8:return 2;case c.OR:return 3;case c.ECMA_LDHOLE:case c.F32TOU32:case c.I64TOI32:return 2;case c.XOR:return 3;case c.ECMA_RETURNUNDEFINED:case c.F32TOU64:case c.U32TOI64:return 2;case c.SHL:return 3;case c.ECMA_CREATEEMPTYOBJECT:case c.F64TOF32:case c.U32TOI16:return 2;case c.SHR:return 3;case c.ECMA_CREATEEMPTYARRAY:case c.U32TOU16:return 2;case c.ASHR:return 3;case c.ECMA_GETITERATOR:case c.U32TOI8:case c.ECMA_THROWTHROWNOTEXISTS:case c.U32TOU8:case c.ECMA_THROWPATTERNNONCOERCIBLE:case c.U64TOI32:case c.ECMA_LDHOMEOBJECT:case c.U64TOU32:case c.ECMA_THROWDELETESUPERPROPERTY:case c.ECMA_DEBUGGER:return 2;case c.ECMA_ADD2DYN:case c.ECMA_SUB2DYN:case c.ECMA_MUL2DYN:case c.ECMA_DIV2DYN:case c.ECMA_MOD2DYN:case c.ECMA_EQDYN:case c.ECMA_NOTEQDYN:case c.ECMA_LESSDYN:case c.ECMA_LESSEQDYN:case c.ECMA_GREATERDYN:case c.ECMA_GREATEREQDYN:case c.ECMA_SHL2DYN:case c.ECMA_SHR2DYN:case c.ECMA_ASHR2DYN:case c.ECMA_AND2DYN:case c.ECMA_OR2DYN:case c.ECMA_XOR2DYN:case c.ECMA_TONUMBER:case c.ECMA_NEGDYN:case c.ECMA_NOTDYN:case c.ECMA_INCDYN:case c.ECMA_DECDYN:case c.ECMA_EXPDYN:case c.ECMA_ISINDYN:case c.ECMA_INSTANCEOFDYN:case c.ECMA_STRICTNOTEQDYN:case c.ECMA_STRICTEQDYN:case c.ECMA_RESUMEGENERATOR:case c.ECMA_GETRESUMEMODE:case c.ECMA_CREATEGENERATOROBJ:case c.ECMA_THROWCONSTASSIGNMENT:case c.ECMA_GETTEMPLATEOBJECT:case c.ECMA_GETNEXTPROPNAME:case c.ECMA_CALLARG0DYN:case c.ECMA_THROWIFNOTOBJECT:case c.ECMA_ITERNEXT:case c.ECMA_CLOSEITERATOR:case c.ECMA_COPYMODULE:case c.ECMA_SUPERCALLSPREAD:return 3;case c.ECMA_DELOBJPROP:case c.ECMA_NEWOBJSPREADDYN:case c.ECMA_CREATEITERRESULTOBJ:case c.ECMA_SUSPENDGENERATOR:case c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT:case c.ECMA_THROWUNDEFINEDIFHOLE:case c.ECMA_CALLARG1DYN:case c.ECMA_COPYDATAPROPERTIES:case c.ECMA_STARRAYSPREAD:case c.ECMA_GETITERATORNEXT:case c.ECMA_SETOBJECTWITHPROTO:case c.ECMA_LDOBJBYVALUE:case c.ECMA_STOBJBYVALUE:case c.ECMA_STOWNBYVALUE:case c.ECMA_LDSUPERBYVALUE:case c.ECMA_STSUPERBYVALUE:return 4;case c.ECMA_LDOBJBYINDEX:case c.ECMA_STOBJBYINDEX:case c.ECMA_STOWNBYINDEX:return 7;case c.ECMA_CALLSPREADDYN:case c.ECMA_ASYNCFUNCTIONRESOLVE:case c.ECMA_ASYNCFUNCTIONREJECT:case c.ECMA_CALLARGS2DYN:return 5;case c.ECMA_CALLARGS3DYN:case c.ECMA_DEFINEGETTERSETTERBYVALUE:return 6;case c.ECMA_NEWOBJDYNRANGE:case c.ECMA_CALLIRANGEDYN:case c.ECMA_CALLITHISRANGEDYN:case c.ECMA_SUPERCALL:return 5;case c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS:return 6;case c.ECMA_DEFINEFUNCDYN:case c.ECMA_DEFINENCFUNCDYN:case c.ECMA_DEFINEGENERATORFUNC:case c.ECMA_DEFINEASYNCFUNC:case c.ECMA_DEFINEMETHOD:return 7;case c.ECMA_NEWLEXENVDYN:case c.ECMA_COPYRESTARGS:case c.ECMA_CREATEARRAYWITHBUFFER:case c.ECMA_CREATEOBJECTHAVINGMETHOD:case c.ECMA_THROWIFSUPERNOTCORRECTCALL:case c.ECMA_CREATEOBJECTWITHBUFFER:return 4;case c.ECMA_LDLEXVARDYN:return 3;case c.ECMA_LDLEXVARDYN:return 4;case c.ECMA_LDLEXVARDYN:return 6;case c.ECMA_STLEXVARDYN:return 4;case c.ECMA_STLEXVARDYN:return 5;case c.ECMA_STLEXVARDYN:return 7;case c.ECMA_DEFINECLASSWITHBUFFER:return 10;case c.ECMA_IMPORTMODULE:case c.ECMA_STMODULEVAR:case c.ECMA_TRYLDGLOBALBYNAME:case c.ECMA_TRYSTGLOBALBYNAME:case c.ECMA_LDGLOBALVAR:case c.ECMA_STGLOBALVAR:return 6;case c.ECMA_LDOBJBYNAME:case c.ECMA_STOBJBYNAME:case c.ECMA_STOWNBYNAME:case c.ECMA_LDSUPERBYNAME:case c.ECMA_STSUPERBYNAME:case c.ECMA_LDMODVARBYNAME:case c.ECMA_CREATEREGEXPWITHLITERAL:return 7;case c.ECMA_ISTRUE:case c.ECMA_ISFALSE:return 2;case c.ECMA_STCONSTTOGLOBALRECORD:case c.ECMA_STLETTOGLOBALRECORD:case c.ECMA_STCLASSTOGLOBALRECORD:return 6;case c.ECMA_STOWNBYVALUEWITHNAMESET:return 4;case c.ECMA_STOWNBYNAMEWITHNAMESET:return 7;case c.ECMA_LDFUNCTION:return 2;case c.ECMA_NEWLEXENVWITHNAMEDYN:case c.ECMA_LDBIGINT:return 6;default:return 0}},(d=t.ResultType||(t.ResultType={}))[d.None=0]="None",d[d.Unknown=1]="Unknown",d[d.Int=2]="Int",d[d.Long=3]="Long",d[d.Float=4]="Float",d[d.Obj=5]="Obj",d[d.Boolean=6]="Boolean",(_=t.ResultDst||(t.ResultDst={}))[_.None=0]="None",_[_.Acc=1]="Acc",_[_.VReg=2]="VReg",(u=t.BuiltIns||(t.BuiltIns={}))[u.NaN=0]="NaN",u[u[1/0]=1]="Infinity",u[u.globalThis=2]="globalThis",u[u[void 0]=3]="undefined",u[u.Boolean=4]="Boolean",u[u.Number=5]="Number",u[u.String=6]="String",u[u.BigInt=7]="BigInt",u[u.Symbol=8]="Symbol",u[u.Null=9]="Null",u[u.Object=10]="Object",u[u.Function=11]="Function",u[u.Global=12]="Global",u[u.True=13]="True",u[u.False=14]="False",u[u.LexEnv=15]="LexEnv",u[u.MAX_BUILTIN=16]="MAX_BUILTIN",(l=t.OperandKind||(t.OperandKind={}))[l.SrcVReg=0]="SrcVReg",l[l.DstVReg=1]="DstVReg",l[l.SrcDstVReg=2]="SrcDstVReg",l[l.Imm=3]="Imm",l[l.Id=4]="Id",l[l.StringId=5]="StringId",l[l.Label=6]="Label",t.OperandKind||(t.OperandKind={}),t.getInsnMnemonic=p,t.getInsnFormats=f;class g{constructor(e,t){this.kind=e,this.operands=t,this.node=s.NodeKind.Normal,this.debugPosInfo=new s.DebugPosInfo}toString(){let e=this.getMnemonic(),t=e+"\t";return e.length<8&&(t+="\t"),this.operands.forEach((e=>{t=t+e.toString()+", "})),t}setNode(e){this.node=e}getNodeName(){return this.node!=s.NodeKind.Invalid&&this.node!=s.NodeKind.FirstNodeOfFunction&&this.node!=s.NodeKind.Normal?o.SyntaxKind[this.node.kind]:"undefined"}getMnemonic(){return p(this.kind)}getFormats(){return f(this.kind)}}t.IRNode=g;class m extends g{constructor(e,t){super(e,t),this.kind=e,this.operands=t}toString(){return super.toString()+" [i]"}}t.Intrinsic=m,t.VReg=class{constructor(){this.num=-1}toString(){return"V"+this.num}getTypeIndex(){return this.typeIndex}setTypeIndex(e){this.typeIndex=e}getVariableName(){return this.variableName}setVariableName(e){this.variableName=e}},t.Imm=class extends g{constructor(e){super(c.IMM,[]),this.value=e}toString(){return"#"+this.value}};class y extends g{constructor(){super(c.LABEL,[]),this.id=y.global_id++}toString(){return"LABEL_"+this.id}}t.Label=y,y.global_id=0,t.DebugInsStartPlaceHolder=class extends g{constructor(e){super(c.VIRTUALSTARTINS_DYN,[]),this.scope=e}getScope(){return this.scope}},t.DebugInsEndPlaceHolder=class extends g{constructor(e){super(c.VIRTUALENDINS_DYN,[]),this.scope=e}getScope(){return this.scope}},t.Nop=class extends g{constructor(){super(c.NOP,[])}},t.Mov=class extends g{constructor(e,t){super(c.MOV,[e,t])}},t.MovWide=class extends g{constructor(e,t){super(c.MOV_64,[e,t])}},t.MovObj=class extends g{constructor(e,t){super(c.MOV_OBJ,[e,t])}},t.Movi=class extends g{constructor(e,t){super(c.MOVI,[e,t])}},t.MoviWide=class extends g{constructor(e,t){super(c.MOVI_64,[e,t])}},t.FmoviWide=class extends g{constructor(e,t){super(c.FMOVI_64,[e,t])}},t.MovNull=class extends g{constructor(e){super(c.MOV_NULL,[e])}},t.Lda=class extends g{constructor(e){super(c.LDA,[e])}},t.LdaWide=class extends g{constructor(e){super(c.LDA_64,[e])}},t.LdaObj=class extends g{constructor(e){super(c.LDA_OBJ,[e])}},t.Ldai=class extends g{constructor(e){super(c.LDAI,[e])}},t.LdaiWide=class extends g{constructor(e){super(c.LDAI_64,[e])}},t.FldaiWide=class extends g{constructor(e){super(c.FLDAI_64,[e])}},t.LdaStr=class extends g{constructor(e){super(c.LDA_STR,[e])}},t.LdaConst=class extends g{constructor(e,t){super(c.LDA_CONST,[e,t])}},t.LdaType=class extends g{constructor(e){super(c.LDA_TYPE,[e])}},t.LdaNull=class extends g{constructor(){super(c.LDA_NULL,[])}},t.Sta=class extends g{constructor(e){super(c.STA,[e])}},t.StaWide=class extends g{constructor(e){super(c.STA_64,[e])}},t.StaObj=class extends g{constructor(e){super(c.STA_OBJ,[e])}},t.CmpWide=class extends g{constructor(e){super(c.CMP_64,[e])}},t.FcmplWide=class extends g{constructor(e){super(c.FCMPL_64,[e])}},t.FcmpgWide=class extends g{constructor(e){super(c.FCMPG_64,[e])}},t.Jmp=class extends g{constructor(e){super(c.JMP,[e])}getTarget(){return this.operands[0]}},t.JeqObj=class extends g{constructor(e,t){super(c.JEQ_OBJ,[e,t])}getTarget(){return this.operands[1]}},t.JneObj=class extends g{constructor(e,t){super(c.JNE_OBJ,[e,t])}getTarget(){return this.operands[1]}},t.JeqzObj=class extends g{constructor(e){super(c.JEQZ_OBJ,[e])}getTarget(){return this.operands[0]}},t.JnezObj=class extends g{constructor(e){super(c.JNEZ_OBJ,[e])}getTarget(){return this.operands[0]}},t.Jeqz=class extends g{constructor(e){super(c.JEQZ,[e])}getTarget(){return this.operands[0]}},t.Jnez=class extends g{constructor(e){super(c.JNEZ,[e])}getTarget(){return this.operands[0]}},t.Jltz=class extends g{constructor(e){super(c.JLTZ,[e])}getTarget(){return this.operands[0]}},t.Jgtz=class extends g{constructor(e){super(c.JGTZ,[e])}getTarget(){return this.operands[0]}},t.Jlez=class extends g{constructor(e){super(c.JLEZ,[e])}getTarget(){return this.operands[0]}},t.Jgez=class extends g{constructor(e){super(c.JGEZ,[e])}getTarget(){return this.operands[0]}},t.Jeq=class extends g{constructor(e,t){super(c.JEQ,[e,t])}getTarget(){return this.operands[1]}},t.Jne=class extends g{constructor(e,t){super(c.JNE,[e,t])}getTarget(){return this.operands[1]}},t.Jlt=class extends g{constructor(e,t){super(c.JLT,[e,t])}getTarget(){return this.operands[1]}},t.Jgt=class extends g{constructor(e,t){super(c.JGT,[e,t])}getTarget(){return this.operands[1]}},t.Jle=class extends g{constructor(e,t){super(c.JLE,[e,t])}getTarget(){return this.operands[1]}},t.Jge=class extends g{constructor(e,t){super(c.JGE,[e,t])}getTarget(){return this.operands[1]}},t.FnegWide=class extends g{constructor(){super(c.FNEG_64,[])}},t.Neg=class extends g{constructor(){super(c.NEG,[])}},t.NegWide=class extends g{constructor(){super(c.NEG_64,[])}},t.Add2=class extends g{constructor(e){super(c.ADD2,[e])}},t.Add2Wide=class extends g{constructor(e){super(c.ADD2_64,[e])}},t.Sub2=class extends g{constructor(e){super(c.SUB2,[e])}},t.Sub2Wide=class extends g{constructor(e){super(c.SUB2_64,[e])}},t.Mul2=class extends g{constructor(e){super(c.MUL2,[e])}},t.Mul2Wide=class extends g{constructor(e){super(c.MUL2_64,[e])}},t.Fadd2Wide=class extends g{constructor(e){super(c.FADD2_64,[e])}},t.Fsub2Wide=class extends g{constructor(e){super(c.FSUB2_64,[e])}},t.Fmul2Wide=class extends g{constructor(e){super(c.FMUL2_64,[e])}},t.Fdiv2Wide=class extends g{constructor(e){super(c.FDIV2_64,[e])}},t.Fmod2Wide=class extends g{constructor(e){super(c.FMOD2_64,[e])}},t.Div2=class extends g{constructor(e){super(c.DIV2,[e])}},t.Div2Wide=class extends g{constructor(e){super(c.DIV2_64,[e])}},t.Mod2=class extends g{constructor(e){super(c.MOD2,[e])}},t.Mod2Wide=class extends g{constructor(e){super(c.MOD2_64,[e])}},t.Addi=class extends g{constructor(e){super(c.ADDI,[e])}},t.Subi=class extends g{constructor(e){super(c.SUBI,[e])}},t.Muli=class extends g{constructor(e){super(c.MULI,[e])}},t.Andi=class extends g{constructor(e){super(c.ANDI,[e])}},t.Ori=class extends g{constructor(e){super(c.ORI,[e])}},t.Shli=class extends g{constructor(e){super(c.SHLI,[e])}},t.Shri=class extends g{constructor(e){super(c.SHRI,[e])}},t.Ashri=class extends g{constructor(e){super(c.ASHRI,[e])}},t.Divi=class extends g{constructor(e){super(c.DIVI,[e])}},t.Modi=class extends g{constructor(e){super(c.MODI,[e])}},t.Add=class extends g{constructor(e,t){super(c.ADD,[e,t])}},t.Sub=class extends g{constructor(e,t){super(c.SUB,[e,t])}},t.Mul=class extends g{constructor(e,t){super(c.MUL,[e,t])}},t.Div=class extends g{constructor(e,t){super(c.DIV,[e,t])}},t.Mod=class extends g{constructor(e,t){super(c.MOD,[e,t])}},t.Inci=class extends g{constructor(e,t){super(c.INCI,[e,t])}},t.Ldarr8=class extends g{constructor(e){super(c.LDARR_8,[e])}},t.Ldarru8=class extends g{constructor(e){super(c.LDARRU_8,[e])}},t.Ldarr16=class extends g{constructor(e){super(c.LDARR_16,[e])}},t.Ldarru16=class extends g{constructor(e){super(c.LDARRU_16,[e])}},t.Ldarr=class extends g{constructor(e){super(c.LDARR,[e])}},t.LdarrWide=class extends g{constructor(e){super(c.LDARR_64,[e])}},t.Fldarr32=class extends g{constructor(e){super(c.FLDARR_32,[e])}},t.FldarrWide=class extends g{constructor(e){super(c.FLDARR_64,[e])}},t.LdarrObj=class extends g{constructor(e){super(c.LDARR_OBJ,[e])}},t.Starr8=class extends g{constructor(e,t){super(c.STARR_8,[e,t])}},t.Starr16=class extends g{constructor(e,t){super(c.STARR_16,[e,t])}},t.Starr=class extends g{constructor(e,t){super(c.STARR,[e,t])}},t.StarrWide=class extends g{constructor(e,t){super(c.STARR_64,[e,t])}},t.Fstarr32=class extends g{constructor(e,t){super(c.FSTARR_32,[e,t])}},t.FstarrWide=class extends g{constructor(e,t){super(c.FSTARR_64,[e,t])}},t.StarrObj=class extends g{constructor(e,t){super(c.STARR_OBJ,[e,t])}},t.Lenarr=class extends g{constructor(e){super(c.LENARR,[e])}},t.Newarr=class extends g{constructor(e,t,r){super(c.NEWARR,[e,t,r])}},t.Newobj=class extends g{constructor(e,t){super(c.NEWOBJ,[e,t])}},t.InitobjShort=class extends g{constructor(e,t,r){super(c.INITOBJ_SHORT,[e,t,r])}},t.Initobj=class extends g{constructor(e,t,r,n,i){super(c.INITOBJ,[e,t,r,n,i])}},t.InitobjRange=class extends g{constructor(e,t){super(c.INITOBJ_RANGE,[e,t])}},t.Ldobj=class extends g{constructor(e,t){super(c.LDOBJ,[e,t])}},t.LdobjWide=class extends g{constructor(e,t){super(c.LDOBJ_64,[e,t])}},t.LdobjObj=class extends g{constructor(e,t){super(c.LDOBJ_OBJ,[e,t])}},t.Stobj=class extends g{constructor(e,t){super(c.STOBJ,[e,t])}},t.StobjWide=class extends g{constructor(e,t){super(c.STOBJ_64,[e,t])}},t.StobjObj=class extends g{constructor(e,t){super(c.STOBJ_OBJ,[e,t])}},t.LdobjV=class extends g{constructor(e,t,r){super(c.LDOBJ_V,[e,t,r])}},t.LdobjVWide=class extends g{constructor(e,t,r){super(c.LDOBJ_V_64,[e,t,r])}},t.LdobjVObj=class extends g{constructor(e,t,r){super(c.LDOBJ_V_OBJ,[e,t,r])}},t.StobjV=class extends g{constructor(e,t,r){super(c.STOBJ_V,[e,t,r])}},t.StobjVWide=class extends g{constructor(e,t,r){super(c.STOBJ_V_64,[e,t,r])}},t.StobjVObj=class extends g{constructor(e,t,r){super(c.STOBJ_V_OBJ,[e,t,r])}},t.Ldstatic=class extends g{constructor(e){super(c.LDSTATIC,[e])}},t.LdstaticWide=class extends g{constructor(e){super(c.LDSTATIC_64,[e])}},t.LdstaticObj=class extends g{constructor(e){super(c.LDSTATIC_OBJ,[e])}},t.Ststatic=class extends g{constructor(e){super(c.STSTATIC,[e])}},t.StstaticWide=class extends g{constructor(e){super(c.STSTATIC_64,[e])}},t.StstaticObj=class extends g{constructor(e){super(c.STSTATIC_OBJ,[e])}},t.Return=class extends g{constructor(){super(c.RETURN,[])}},t.ReturnWide=class extends g{constructor(){super(c.RETURN_64,[])}},t.ReturnObj=class extends g{constructor(){super(c.RETURN_OBJ,[])}},t.ReturnVoid=class extends g{constructor(){super(c.RETURN_VOID,[])}},t.Throw=class extends g{constructor(e){super(c.THROW,[e])}},t.Checkcast=class extends g{constructor(e){super(c.CHECKCAST,[e])}},t.Isinstance=class extends g{constructor(e){super(c.ISINSTANCE,[e])}},t.CallShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_SHORT,i)}},t.Call=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL,o)}},t.CallRange=class extends g{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.CALL_RANGE,n)}},t.CallAccShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_ACC_SHORT,i)}},t.CallAcc=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL_ACC,o)}},t.CallVirtShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_VIRT_SHORT,i)}},t.CallVirt=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL_VIRT,o)}},t.CallVirtRange=class extends g{constructor(e,t){var r=[e,t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.CALL_VIRT_RANGE,n)}},t.CallVirtAccShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_VIRT_ACC_SHORT,i)}},t.CallVirtAcc=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL_VIRT_ACC,o)}},t.MovDyn=class extends g{constructor(e,t){super(c.MOV_DYN,[e,t])}},t.LdaDyn=class extends g{constructor(e){super(c.LDA_DYN,[e])}},t.StaDyn=class extends g{constructor(e){super(c.STA_DYN,[e])}},t.LdaiDyn=class extends g{constructor(e){super(c.LDAI_DYN,[e])}},t.FldaiDyn=class extends g{constructor(e){super(c.FLDAI_DYN,[e])}},t.ReturnDyn=class extends g{constructor(){super(c.RETURN_DYN,[])}},t.CalliDynShort=class extends g{constructor(e,t,r,n){var i=[e,t,r,n],a=[e];for(i.shift();i&&i.length;){let e=i.shift();null!=e&&a.push(e)}super(c.CALLI_DYN_SHORT,a)}},t.CalliDyn=class extends g{constructor(e,t,r,n,i,a){var o=[e,t,r,n,i,a],s=[e];for(o.shift();o&&o.length;){let e=o.shift();null!=e&&s.push(e)}super(c.CALLI_DYN,s)}},t.CalliDynRange=class extends g{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.CALLI_DYN_RANGE,n)}},t.Fmovi=class extends g{constructor(e,t){super(c.FMOVI,[e,t])}},t.I32tof64=class extends g{constructor(){super(c.I32TOF64,[])}},t.Ucmp=class extends g{constructor(e){super(c.UCMP,[e])}},t.Not=class extends g{constructor(){super(c.NOT,[])}},t.EcmaLdnan=class extends m{constructor(){super(c.ECMA_LDNAN,[])}},t.Fldai=class extends g{constructor(e){super(c.FLDAI,[e])}},t.U32tof64=class extends g{constructor(){super(c.U32TOF64,[])}},t.UcmpWide=class extends g{constructor(e){super(c.UCMP_64,[e])}},t.NotWide=class extends g{constructor(){super(c.NOT_64,[])}},t.EcmaLdinfinity=class extends m{constructor(){super(c.ECMA_LDINFINITY,[])}},t.Fcmpl=class extends g{constructor(e){super(c.FCMPL,[e])}},t.I64tof64=class extends g{constructor(){super(c.I64TOF64,[])}},t.Divu2=class extends g{constructor(e){super(c.DIVU2,[e])}},t.And2=class extends g{constructor(e){super(c.AND2,[e])}},t.EcmaLdglobalthis=class extends m{constructor(){super(c.ECMA_LDGLOBALTHIS,[])}},t.Fcmpg=class extends g{constructor(e){super(c.FCMPG,[e])}},t.U64tof64=class extends g{constructor(){super(c.U64TOF64,[])}},t.Divu2Wide=class extends g{constructor(e){super(c.DIVU2_64,[e])}},t.And2Wide=class extends g{constructor(e){super(c.AND2_64,[e])}},t.EcmaLdundefined=class extends m{constructor(){super(c.ECMA_LDUNDEFINED,[])}},t.Fneg=class extends g{constructor(){super(c.FNEG,[])}},t.F64toi32=class extends g{constructor(){super(c.F64TOI32,[])}},t.Modu2=class extends g{constructor(e){super(c.MODU2,[e])}},t.Or2=class extends g{constructor(e){super(c.OR2,[e])}},t.EcmaLdnull=class extends m{constructor(){super(c.ECMA_LDNULL,[])}},t.Fadd2=class extends g{constructor(e){super(c.FADD2,[e])}},t.F64toi64=class extends g{constructor(){super(c.F64TOI64,[])}},t.Modu2Wide=class extends g{constructor(e){super(c.MODU2_64,[e])}},t.Or2Wide=class extends g{constructor(e){super(c.OR2_64,[e])}},t.EcmaLdsymbol=class extends m{constructor(){super(c.ECMA_LDSYMBOL,[])}},t.Fsub2=class extends g{constructor(e){super(c.FSUB2,[e])}},t.F64tou32=class extends g{constructor(){super(c.F64TOU32,[])}},t.Xor2=class extends g{constructor(e){super(c.XOR2,[e])}},t.EcmaLdglobal=class extends m{constructor(){super(c.ECMA_LDGLOBAL,[])}},t.Fmul2=class extends g{constructor(e){super(c.FMUL2,[e])}},t.F64tou64=class extends g{constructor(){super(c.F64TOU64,[])}},t.Xor2Wide=class extends g{constructor(e){super(c.XOR2_64,[e])}},t.EcmaLdtrue=class extends m{constructor(){super(c.ECMA_LDTRUE,[])}},t.Fdiv2=class extends g{constructor(e){super(c.FDIV2,[e])}},t.I32tou1=class extends g{constructor(){super(c.I32TOU1,[])}},t.Shl2=class extends g{constructor(e){super(c.SHL2,[e])}},t.EcmaLdfalse=class extends m{constructor(){super(c.ECMA_LDFALSE,[])}},t.Fmod2=class extends g{constructor(e){super(c.FMOD2,[e])}},t.I64tou1=class extends g{constructor(){super(c.I64TOU1,[])}},t.Shl2Wide=class extends g{constructor(e){super(c.SHL2_64,[e])}},t.EcmaThrowdyn=class extends m{constructor(){super(c.ECMA_THROWDYN,[])}},t.I32tof32=class extends g{constructor(){super(c.I32TOF32,[])}},t.U32tou1=class extends g{constructor(){super(c.U32TOU1,[])}},t.Shr2=class extends g{constructor(e){super(c.SHR2,[e])}},t.EcmaTypeofdyn=class extends m{constructor(){super(c.ECMA_TYPEOFDYN,[])}},t.U32tof32=class extends g{constructor(){super(c.U32TOF32,[])}},t.U64tou1=class extends g{constructor(){super(c.U64TOU1,[])}},t.Shr2Wide=class extends g{constructor(e){super(c.SHR2_64,[e])}},t.EcmaLdlexenvdyn=class extends m{constructor(){super(c.ECMA_LDLEXENVDYN,[])}},t.I64tof32=class extends g{constructor(){super(c.I64TOF32,[])}},t.I32toi64=class extends g{constructor(){super(c.I32TOI64,[])}},t.Ashr2=class extends g{constructor(e){super(c.ASHR2,[e])}},t.EcmaPoplexenvdyn=class extends m{constructor(){super(c.ECMA_POPLEXENVDYN,[])}},t.U64tof32=class extends g{constructor(){super(c.U64TOF32,[])}},t.I32toi16=class extends g{constructor(){super(c.I32TOI16,[])}},t.Ashr2Wide=class extends g{constructor(e){super(c.ASHR2_64,[e])}},t.EcmaGetunmappedargs=class extends m{constructor(){super(c.ECMA_GETUNMAPPEDARGS,[])}},t.F32tof64=class extends g{constructor(){super(c.F32TOF64,[])}},t.I32tou16=class extends g{constructor(){super(c.I32TOU16,[])}},t.Xori=class extends g{constructor(e){super(c.XORI,[e])}},t.EcmaGetpropiterator=class extends m{constructor(){super(c.ECMA_GETPROPITERATOR,[])}},t.F32toi32=class extends g{constructor(){super(c.F32TOI32,[])}},t.I32toi8=class extends g{constructor(){super(c.I32TOI8,[])}},t.And=class extends g{constructor(e,t){super(c.AND,[e,t])}},t.EcmaAsyncfunctionenter=class extends m{constructor(){super(c.ECMA_ASYNCFUNCTIONENTER,[])}},t.F32toi64=class extends g{constructor(){super(c.F32TOI64,[])}},t.I32tou8=class extends g{constructor(){super(c.I32TOU8,[])}},t.Or=class extends g{constructor(e,t){super(c.OR,[e,t])}},t.EcmaLdhole=class extends m{constructor(){super(c.ECMA_LDHOLE,[])}},t.F32tou32=class extends g{constructor(){super(c.F32TOU32,[])}},t.I64toi32=class extends g{constructor(){super(c.I64TOI32,[])}},t.Xor=class extends g{constructor(e,t){super(c.XOR,[e,t])}},t.EcmaReturnundefined=class extends m{constructor(){super(c.ECMA_RETURNUNDEFINED,[])}},t.F32tou64=class extends g{constructor(){super(c.F32TOU64,[])}},t.U32toi64=class extends g{constructor(){super(c.U32TOI64,[])}},t.Shl=class extends g{constructor(e,t){super(c.SHL,[e,t])}},t.EcmaCreateemptyobject=class extends m{constructor(){super(c.ECMA_CREATEEMPTYOBJECT,[])}},t.F64tof32=class extends g{constructor(){super(c.F64TOF32,[])}},t.U32toi16=class extends g{constructor(){super(c.U32TOI16,[])}},t.Shr=class extends g{constructor(e,t){super(c.SHR,[e,t])}},t.EcmaCreateemptyarray=class extends m{constructor(){super(c.ECMA_CREATEEMPTYARRAY,[])}},t.U32tou16=class extends g{constructor(){super(c.U32TOU16,[])}},t.Ashr=class extends g{constructor(e,t){super(c.ASHR,[e,t])}},t.EcmaGetiterator=class extends m{constructor(){super(c.ECMA_GETITERATOR,[])}},t.U32toi8=class extends g{constructor(){super(c.U32TOI8,[])}},t.EcmaThrowthrownotexists=class extends m{constructor(){super(c.ECMA_THROWTHROWNOTEXISTS,[])}},t.U32tou8=class extends g{constructor(){super(c.U32TOU8,[])}},t.EcmaThrowpatternnoncoercible=class extends m{constructor(){super(c.ECMA_THROWPATTERNNONCOERCIBLE,[])}},t.U64toi32=class extends g{constructor(){super(c.U64TOI32,[])}},t.EcmaLdhomeobject=class extends m{constructor(){super(c.ECMA_LDHOMEOBJECT,[])}},t.U64tou32=class extends g{constructor(){super(c.U64TOU32,[])}},t.EcmaThrowdeletesuperproperty=class extends m{constructor(){super(c.ECMA_THROWDELETESUPERPROPERTY,[])}},t.EcmaDebugger=class extends m{constructor(){super(c.ECMA_DEBUGGER,[])}},t.EcmaAdd2dyn=class extends m{constructor(e){super(c.ECMA_ADD2DYN,[e])}},t.EcmaSub2dyn=class extends m{constructor(e){super(c.ECMA_SUB2DYN,[e])}},t.EcmaMul2dyn=class extends m{constructor(e){super(c.ECMA_MUL2DYN,[e])}},t.EcmaDiv2dyn=class extends m{constructor(e){super(c.ECMA_DIV2DYN,[e])}},t.EcmaMod2dyn=class extends m{constructor(e){super(c.ECMA_MOD2DYN,[e])}},t.EcmaEqdyn=class extends m{constructor(e){super(c.ECMA_EQDYN,[e])}},t.EcmaNoteqdyn=class extends m{constructor(e){super(c.ECMA_NOTEQDYN,[e])}},t.EcmaLessdyn=class extends m{constructor(e){super(c.ECMA_LESSDYN,[e])}},t.EcmaLesseqdyn=class extends m{constructor(e){super(c.ECMA_LESSEQDYN,[e])}},t.EcmaGreaterdyn=class extends m{constructor(e){super(c.ECMA_GREATERDYN,[e])}},t.EcmaGreatereqdyn=class extends m{constructor(e){super(c.ECMA_GREATEREQDYN,[e])}},t.EcmaShl2dyn=class extends m{constructor(e){super(c.ECMA_SHL2DYN,[e])}},t.EcmaShr2dyn=class extends m{constructor(e){super(c.ECMA_SHR2DYN,[e])}},t.EcmaAshr2dyn=class extends m{constructor(e){super(c.ECMA_ASHR2DYN,[e])}},t.EcmaAnd2dyn=class extends m{constructor(e){super(c.ECMA_AND2DYN,[e])}},t.EcmaOr2dyn=class extends m{constructor(e){super(c.ECMA_OR2DYN,[e])}},t.EcmaXor2dyn=class extends m{constructor(e){super(c.ECMA_XOR2DYN,[e])}},t.EcmaTonumber=class extends m{constructor(e){super(c.ECMA_TONUMBER,[e])}},t.EcmaNegdyn=class extends m{constructor(e){super(c.ECMA_NEGDYN,[e])}},t.EcmaNotdyn=class extends m{constructor(e){super(c.ECMA_NOTDYN,[e])}},t.EcmaIncdyn=class extends m{constructor(e){super(c.ECMA_INCDYN,[e])}},t.EcmaDecdyn=class extends m{constructor(e){super(c.ECMA_DECDYN,[e])}},t.EcmaExpdyn=class extends m{constructor(e){super(c.ECMA_EXPDYN,[e])}},t.EcmaIsindyn=class extends m{constructor(e){super(c.ECMA_ISINDYN,[e])}},t.EcmaInstanceofdyn=class extends m{constructor(e){super(c.ECMA_INSTANCEOFDYN,[e])}},t.EcmaStrictnoteqdyn=class extends m{constructor(e){super(c.ECMA_STRICTNOTEQDYN,[e])}},t.EcmaStricteqdyn=class extends m{constructor(e){super(c.ECMA_STRICTEQDYN,[e])}},t.EcmaResumegenerator=class extends m{constructor(e){super(c.ECMA_RESUMEGENERATOR,[e])}},t.EcmaGetresumemode=class extends m{constructor(e){super(c.ECMA_GETRESUMEMODE,[e])}},t.EcmaCreategeneratorobj=class extends m{constructor(e){super(c.ECMA_CREATEGENERATOROBJ,[e])}},t.EcmaThrowconstassignment=class extends m{constructor(e){super(c.ECMA_THROWCONSTASSIGNMENT,[e])}},t.EcmaGettemplateobject=class extends m{constructor(e){super(c.ECMA_GETTEMPLATEOBJECT,[e])}},t.EcmaGetnextpropname=class extends m{constructor(e){super(c.ECMA_GETNEXTPROPNAME,[e])}},t.EcmaCallarg0dyn=class extends m{constructor(e){super(c.ECMA_CALLARG0DYN,[e])}},t.EcmaThrowifnotobject=class extends m{constructor(e){super(c.ECMA_THROWIFNOTOBJECT,[e])}},t.EcmaIternext=class extends m{constructor(e){super(c.ECMA_ITERNEXT,[e])}},t.EcmaCloseiterator=class extends m{constructor(e){super(c.ECMA_CLOSEITERATOR,[e])}},t.EcmaCopymodule=class extends m{constructor(e){super(c.ECMA_COPYMODULE,[e])}},t.EcmaSupercallspread=class extends m{constructor(e){super(c.ECMA_SUPERCALLSPREAD,[e])}},t.EcmaDelobjprop=class extends m{constructor(e,t){super(c.ECMA_DELOBJPROP,[e,t])}},t.EcmaNewobjspreaddyn=class extends m{constructor(e,t){super(c.ECMA_NEWOBJSPREADDYN,[e,t])}},t.EcmaCreateiterresultobj=class extends m{constructor(e,t){super(c.ECMA_CREATEITERRESULTOBJ,[e,t])}},t.EcmaSuspendgenerator=class extends m{constructor(e,t){super(c.ECMA_SUSPENDGENERATOR,[e,t])}},t.EcmaAsyncfunctionawaituncaught=class extends m{constructor(e,t){super(c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT,[e,t])}},t.EcmaThrowundefinedifhole=class extends m{constructor(e,t){super(c.ECMA_THROWUNDEFINEDIFHOLE,[e,t])}},t.EcmaCallarg1dyn=class extends m{constructor(e,t){super(c.ECMA_CALLARG1DYN,[e,t])}},t.EcmaCopydataproperties=class extends m{constructor(e,t){super(c.ECMA_COPYDATAPROPERTIES,[e,t])}},t.EcmaStarrayspread=class extends m{constructor(e,t){super(c.ECMA_STARRAYSPREAD,[e,t])}},t.EcmaGetiteratornext=class extends m{constructor(e,t){super(c.ECMA_GETITERATORNEXT,[e,t])}},t.EcmaSetobjectwithproto=class extends m{constructor(e,t){super(c.ECMA_SETOBJECTWITHPROTO,[e,t])}},t.EcmaLdobjbyvalue=class extends m{constructor(e,t){super(c.ECMA_LDOBJBYVALUE,[e,t])}},t.EcmaStobjbyvalue=class extends m{constructor(e,t){super(c.ECMA_STOBJBYVALUE,[e,t])}},t.EcmaStownbyvalue=class extends m{constructor(e,t){super(c.ECMA_STOWNBYVALUE,[e,t])}},t.EcmaLdsuperbyvalue=class extends m{constructor(e,t){super(c.ECMA_LDSUPERBYVALUE,[e,t])}},t.EcmaStsuperbyvalue=class extends m{constructor(e,t){super(c.ECMA_STSUPERBYVALUE,[e,t])}},t.EcmaLdobjbyindex=class extends m{constructor(e,t){super(c.ECMA_LDOBJBYINDEX,[e,t])}},t.EcmaStobjbyindex=class extends m{constructor(e,t){super(c.ECMA_STOBJBYINDEX,[e,t])}},t.EcmaStownbyindex=class extends m{constructor(e,t){super(c.ECMA_STOWNBYINDEX,[e,t])}},t.EcmaCallspreaddyn=class extends m{constructor(e,t,r){super(c.ECMA_CALLSPREADDYN,[e,t,r])}},t.EcmaAsyncfunctionresolve=class extends m{constructor(e,t,r){super(c.ECMA_ASYNCFUNCTIONRESOLVE,[e,t,r])}},t.EcmaAsyncfunctionreject=class extends m{constructor(e,t,r){super(c.ECMA_ASYNCFUNCTIONREJECT,[e,t,r])}},t.EcmaCallargs2dyn=class extends m{constructor(e,t,r){super(c.ECMA_CALLARGS2DYN,[e,t,r])}},t.EcmaCallargs3dyn=class extends m{constructor(e,t,r,n){super(c.ECMA_CALLARGS3DYN,[e,t,r,n])}},t.EcmaDefinegettersetterbyvalue=class extends m{constructor(e,t,r,n){super(c.ECMA_DEFINEGETTERSETTERBYVALUE,[e,t,r,n])}},t.EcmaNewobjdynrange=class extends m{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.ECMA_NEWOBJDYNRANGE,n)}},t.EcmaCallirangedyn=class extends m{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.ECMA_CALLIRANGEDYN,n)}},t.EcmaCallithisrangedyn=class extends m{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.ECMA_CALLITHISRANGEDYN,n)}},t.EcmaSupercall=class extends m{constructor(e,t){super(c.ECMA_SUPERCALL,[e,t])}},t.EcmaCreateobjectwithexcludedkeys=class extends m{constructor(e,t,r){var n=[e,t,...r],i=[e,t];for(n.shift(),n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS,i)}},t.EcmaDefinefuncdyn=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEFUNCDYN,[e,t,r])}},t.EcmaDefinencfuncdyn=class extends m{constructor(e,t,r){super(c.ECMA_DEFINENCFUNCDYN,[e,t,r])}},t.EcmaDefinegeneratorfunc=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEGENERATORFUNC,[e,t,r])}},t.EcmaDefineasyncfunc=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEASYNCFUNC,[e,t,r])}},t.EcmaDefinemethod=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEMETHOD,[e,t,r])}},t.EcmaNewlexenvdyn=class extends m{constructor(e){super(c.ECMA_NEWLEXENVDYN,[e])}},t.EcmaCopyrestargs=class extends m{constructor(e){super(c.ECMA_COPYRESTARGS,[e])}},t.EcmaCreatearraywithbuffer=class extends m{constructor(e){super(c.ECMA_CREATEARRAYWITHBUFFER,[e])}},t.EcmaCreateobjecthavingmethod=class extends m{constructor(e){super(c.ECMA_CREATEOBJECTHAVINGMETHOD,[e])}},t.EcmaThrowifsupernotcorrectcall=class extends m{constructor(e){super(c.ECMA_THROWIFSUPERNOTCORRECTCALL,[e])}},t.EcmaCreateobjectwithbuffer=class extends m{constructor(e){super(c.ECMA_CREATEOBJECTWITHBUFFER,[e])}},t.EcmaLdlexvardyn=class extends m{constructor(e,t){super(c.ECMA_LDLEXVARDYN,[e,t])}},t.EcmaStlexvardyn=class extends m{constructor(e,t,r){super(c.ECMA_STLEXVARDYN,[e,t,r])}},t.EcmaDefineclasswithbuffer=class extends m{constructor(e,t,r,n,i){super(c.ECMA_DEFINECLASSWITHBUFFER,[e,t,r,n,i])}},t.EcmaImportmodule=class extends m{constructor(e){super(c.ECMA_IMPORTMODULE,[e])}},t.EcmaStmodulevar=class extends m{constructor(e){super(c.ECMA_STMODULEVAR,[e])}},t.EcmaTryldglobalbyname=class extends m{constructor(e){super(c.ECMA_TRYLDGLOBALBYNAME,[e])}},t.EcmaTrystglobalbyname=class extends m{constructor(e){super(c.ECMA_TRYSTGLOBALBYNAME,[e])}},t.EcmaLdglobalvar=class extends m{constructor(e){super(c.ECMA_LDGLOBALVAR,[e])}},t.EcmaStglobalvar=class extends m{constructor(e){super(c.ECMA_STGLOBALVAR,[e])}},t.EcmaLdobjbyname=class extends m{constructor(e,t){super(c.ECMA_LDOBJBYNAME,[e,t])}},t.EcmaStobjbyname=class extends m{constructor(e,t){super(c.ECMA_STOBJBYNAME,[e,t])}},t.EcmaStownbyname=class extends m{constructor(e,t){super(c.ECMA_STOWNBYNAME,[e,t])}},t.EcmaLdsuperbyname=class extends m{constructor(e,t){super(c.ECMA_LDSUPERBYNAME,[e,t])}},t.EcmaStsuperbyname=class extends m{constructor(e,t){super(c.ECMA_STSUPERBYNAME,[e,t])}},t.EcmaLdmodvarbyname=class extends m{constructor(e,t){super(c.ECMA_LDMODVARBYNAME,[e,t])}},t.EcmaCreateregexpwithliteral=class extends m{constructor(e,t){super(c.ECMA_CREATEREGEXPWITHLITERAL,[e,t])}},t.EcmaIstrue=class extends m{constructor(){super(c.ECMA_ISTRUE,[])}},t.EcmaIsfalse=class extends m{constructor(){super(c.ECMA_ISFALSE,[])}},t.EcmaStconsttoglobalrecord=class extends m{constructor(e){super(c.ECMA_STCONSTTOGLOBALRECORD,[e])}},t.EcmaStlettoglobalrecord=class extends m{constructor(e){super(c.ECMA_STLETTOGLOBALRECORD,[e])}},t.EcmaStclasstoglobalrecord=class extends m{constructor(e){super(c.ECMA_STCLASSTOGLOBALRECORD,[e])}},t.EcmaStownbyvaluewithnameset=class extends m{constructor(e,t){super(c.ECMA_STOWNBYVALUEWITHNAMESET,[e,t])}},t.EcmaStownbynamewithnameset=class extends m{constructor(e,t){super(c.ECMA_STOWNBYNAMEWITHNAMESET,[e,t])}},t.EcmaLdfunction=class extends m{constructor(){super(c.ECMA_LDFUNCTION,[])}},t.EcmaNewlexenvwithnamedyn=class extends m{constructor(e,t){super(c.ECMA_NEWLEXENVWITHNAMEDYN,[e,t])}},t.EcmaLdbigint=class extends m{constructor(e){super(c.ECMA_LDBIGINT,[e])}}},"./src/lexenv.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.VariableAcessStore=t.VariableAccessLoad=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/bcGenUtil.ts"),c=r("./src/base/vregisterCache.ts"),l=r("./src/debuginfo.ts"),u=a(r("./src/jshelpers.js"));class _{constructor(e,t,r){this.variable=r,this.scope=e,this.level=t}isLexVar(){return this.variable.isLexVar}getEnvSlotOfVar(){if(this.isLexVar())return this.variable.idxLex}}function d(e,t,r,n){let i=e.getTemp();n.push((0,s.loadAccumulatorString)(r)),n.push((0,s.storeAccumulator)(i)),n.push((0,s.throwUndefinedIfHole)(t,i)),e.freeTemps(i)}function p(e,t,r,n){let i=e.getTemp();if(t.isConst()&&(r.push((0,s.loadAccumulatorString)(t.getName())),r.push((0,s.storeAccumulator)(i)),r.push((0,s.throwConstAssignment)(i))),t.isClass()&&n!=l.NodeKind.FirstNodeOfFunction&&n!=l.NodeKind.Invalid&&n!=l.NodeKind.Normal){let e=t.getName();for(;n&&(!o.isClassLike(n)||!n.name||u.getTextOfIdentifierOrLiteral(n.name)!=e);)n=n.parent;n&&(r.push((0,s.loadAccumulatorString)(e)),r.push((0,s.storeAccumulator)(i)),r.push((0,s.throwConstAssignment)(i)))}e.freeTemps(i)}t.VariableAccessLoad=class extends _{constructor(e,t,r){super(e,t,r)}expand(e){return this.isLexVar()?this.loadLexEnvVar(e):this.loadLocalVar(e)}loadLocalVar(e){let t=new Array,r=this.variable,n=e.getVregForVariable(r);if(!r.isInitialized()){let n=e.getTemp();return t.push((0,s.loadAccumulator)((0,c.getVregisterCache)(e,c.CacheList.HOLE))),t.push((0,s.storeAccumulator)(n)),d(e,n,r.getName(),t),e.freeTemps(n),t}return"4funcObj"===r.getName()&&this.scope.setCallOpt("4funcObj"),t.push((0,s.loadAccumulator)(n)),t}loadLexEnvVar(e){let t=new Array,r=this.variable,n=r.idxLex;if(t.push((0,s.loadLexicalVar)(this.level,n)),r.isLetOrConst()){let n=e.getTemp();t.push((0,s.storeAccumulator)(n)),d(e,n,r.getName(),t),t.push((0,s.loadAccumulator)(n)),e.freeTemps(n)}return t}},t.VariableAcessStore=class extends _{constructor(e,t,r,n,i){super(e,t,r),this.isDeclaration=n,this.node=i}expand(e){return this.isLexVar()?this.storeLexEnvVar(e):this.storeLocalVar(e)}storeLocalVar(e){let t=new Array,r=this.variable,n=e.getVregForVariable(r);if(!this.isDeclaration){if(!r.isInitialized()){let n=e.getTemp(),i=e.getTemp(),a=e.getTemp();t.push((0,s.storeAccumulator)(i)),t.push((0,s.loadAccumulator)((0,c.getVregisterCache)(e,c.CacheList.HOLE))),t.push((0,s.storeAccumulator)(a)),d(e,a,r.getName(),t),t.push((0,s.loadAccumulator)(i)),e.freeTemps(n,i,a)}p(e,r,t,this.node)}return"4funcObj"===r.getName()&&this.scope.setCallOpt("4funcObj"),t.push((0,s.storeAccumulator)(n)),r.isExportVar()&&t.push((0,s.storeModuleVariable)(r.getExportedName())),t}storeLexEnvVar(e){let t=new Array,r=this.variable,n=e.getTemp();t.push((0,s.storeAccumulator)(n));let i=r.idxLex;if((r.isLetOrConst()||r.isClass())&&!this.isDeclaration){let n=e.getTemp();t.push((0,s.loadLexicalVar)(this.level,i)),t.push((0,s.storeAccumulator)(n)),d(e,n,r.getName(),t),p(e,r,t,this.node),e.freeTemps(n)}return t.push((0,s.storeLexicalVar)(this.level,i,n)),t.push((0,s.loadAccumulator)(n)),r.isExportVar()&&t.push((0,s.storeModuleVariable)(r.getExportedName())),e.freeTemps(n),t}}},"./src/log.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOGE=t.LOGD=void 0;const n=r("./src/cmdOptions.ts");t.LOGD=function(e,...t){n.CmdOptions.isEnableDebugLog()&&(e?console.log(e+": "+t):console.log(t))},t.LOGE=function(e,...t){e?console.error(e+": "+t):console.error(t)}},"./src/modules.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.setExportBinding=t.setImport=t.ModuleStmt=void 0;const o=a(r("./src/jshelpers.js")),s=r("./src/diagnostic.ts");t.ModuleStmt=class{constructor(e,t=""){this.namespace="",this.bingdingNameMap=new Map,this.bingdingNodeMap=new Map,this.isCopy=!0,this.node=e,this.moduleRequest=t}getNode(){return this.node}getModuleRequest(){return this.moduleRequest}addLocalName(e,t){if(this.bingdingNameMap.has(e))throw new s.DiagnosticError(this.node,s.DiagnosticCode.Duplicate_identifier_0,o.getSourceFileOfNode(this.node),[e]);this.bingdingNameMap.set(e,t)}getBindingNameMap(){return this.bingdingNameMap}addNodeMap(e,t){this.bingdingNodeMap.set(e,t)}getBindingNodeMap(){return this.bingdingNodeMap}setNameSpace(e){this.namespace=e}getNameSpace(){return this.namespace}setCopyFlag(e){this.isCopy=e}getCopyFlag(){return this.isCopy}},t.setImport=function(e,t,r){e.forEach((e=>{if(r.importModule(e.getNode(),e.getModuleRequest()),e.getNameSpace()){let n=t.findLocal(e.getNameSpace());r.storeAccToLexEnv(e.getNode(),t,0,n,!0),n.initialize()}let n=r.allocLocalVreg();r.storeAccumulator(e.getNode(),n),e.getBindingNameMap().forEach(((i,a)=>{let o=t.findLocal(a);r.loadModuleVariable(e.getNode(),n,i),r.storeAccToLexEnv(e.getNode(),t,0,o,!0),o.initialize()}))}))},t.setExportBinding=function(e,t,r){e.forEach((e=>{if(e.getModuleRequest()){r.importModule(e.getNode(),e.getModuleRequest());let t=r.allocLocalVreg();r.storeAccumulator(e.getNode(),t),e.getCopyFlag()?r.copyModule(e.getNode(),t):(e.getNameSpace()&&r.storeModuleVar(e.getNode(),e.getNameSpace()),e.getBindingNameMap().forEach(((n,i)=>{r.loadModuleVariable(e.getNode(),t,n),r.storeModuleVar(e.getNode(),i)})))}else e.getBindingNameMap().forEach(((r,n)=>{let i=t.findLocal(r);if(void 0===i)throw new s.DiagnosticError(e.getNode(),s.DiagnosticCode.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,o.getSourceFileOfNode(e.getNode()),[r]);i.setExport(),i.setExportedName(n)}))}))}},"./src/pandagen.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PandaGen=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./node_modules/typescript/lib/typescript.js"),c=r("./src/base/bcGenUtil.ts"),l=r("./src/base/literal.ts"),u=r("./src/base/util.ts"),_=r("./src/base/vregisterCache.ts"),d=r("./src/cmdOptions.ts"),p=r("./src/debuginfo.ts"),f=r("./src/expression/numericLiteral.ts"),g=r("./src/irnodes.ts"),m=r("./src/lexenv.ts"),y=r("./src/log.ts"),h=r("./src/scope.ts"),v=r("./src/typeRecorder.ts");class b{constructor(e,t,r){this.debugTag="PandaGen",this.locals=[],this.temps=[],this.insns=[],this.catchMap=new Map,this.totalRegsNum=0,this.variableDebugInfoArray=[],this.sourceFileDebugInfo="",this.callType=0,this.internalName=e,this.parametersCount=t,this.scope=r,this.vregisterCache=new _.VregisterCache}appendScopeInfo(e){if(0==e.size)return;let t;t=b.getLiteralArrayBuffer().length;let r=new l.LiteralBuffer,n=new Array;return n.push(new l.Literal(l.LiteralTag.INTEGER,e.size)),e.forEach(((e,t)=>{n.push(new l.Literal(l.LiteralTag.STRING,t)),n.push(new l.Literal(l.LiteralTag.INTEGER,e))})),r.addLiterals(...n),b.getLiteralArrayBuffer().push(r),t}setCallType(e){this.callType=e}getCallType(){return this.callType}static getExportedTypes(){return v.TypeRecorder.getInstance()?v.TypeRecorder.getInstance().getExportedType():new Map}static getDeclaredTypes(){return v.TypeRecorder.getInstance()?v.TypeRecorder.getInstance().getDeclaredType():new Map}getSourceCodeDebugInfo(){return this.sourceCodeDebugInfo}setSourceCodeDebugInfo(e){this.sourceCodeDebugInfo=e}getSourceFileDebugInfo(){return this.sourceFileDebugInfo}setSourceFileDebugInfo(e){this.sourceFileDebugInfo=e}static getLiteralArrayBuffer(){return b.literalArrayBuffer}static clearLiteralArrayBuffer(){b.literalArrayBuffer=[]}getParameterLength(){if(this.scope instanceof h.FunctionScope)return this.scope.getParameterLength()}getFuncName(){return this.scope instanceof h.FunctionScope?this.scope.getFuncName():"main"}static appendTypeArrayBuffer(e){let t=b.literalArrayBuffer.length;return b.literalArrayBuffer.push(e.transfer2LiteralBuffer()),t}static setTypeArrayBuffer(e,t){b.literalArrayBuffer[t]=e.transfer2LiteralBuffer()}getFirstStmt(){return this.firstStmt}setFirstStmt(e){this.firstStmt||(this.firstStmt=e)}getVregisterCache(){return this.vregisterCache}getCatchMap(){return this.catchMap}getScope(){return this.scope}getVariableDebugInfoArray(){return this.variableDebugInfoArray}addDebugVariableInfo(e){this.variableDebugInfoArray.push(e)}allocLocalVreg(){let e=new g.VReg;return this.locals.push(e),e}getVregForVariable(e){if(e.hasAlreadyBinded())return e.getVreg();let t=this.allocLocalVreg();return e.bindVreg(t),t}getTemp(){let e;return e=this.temps.length>0?this.temps.shift():new g.VReg,e}freeTemps(...e){this.temps.unshift(...e)}getInsns(){return this.insns}setInsns(e){this.insns=e}printInsns(){(0,y.LOGE)("function "+this.internalName+"() {"),this.getInsns().forEach((e=>{(0,y.LOGE)(e.toString())})),(0,y.LOGE)("}")}setTotalRegsNum(e){this.totalRegsNum=e}getTotalRegsNum(){return this.totalRegsNum}setParametersCount(e){this.parametersCount=e}getParametersCount(){return this.parametersCount}setLocals(e){this.locals=e}getLocals(){return this.locals}getTemps(){return this.temps}storeAccumulator(e,t){this.add(e,(0,c.storeAccumulator)(t))}loadAccFromArgs(e){if(this.scope.getUseArgs()){let t=this.scope.findLocal("arguments");if(this.scope instanceof h.FunctionScope&&this.scope.setArgumentsOrRestargs(),!t)throw new Error("fail to get arguments");{let r=this.getVregForVariable(t);this.getUnmappedArgs(e),this.add(e,(0,c.storeAccumulator)(r))}}}deleteObjProperty(e,t,r){this.add(e,(0,c.deleteObjProperty)(t,r))}loadAccumulator(e,t){this.add(e,(0,c.loadAccumulator)(t))}createLexEnv(e,t,r){let n,i=r.getNumLexEnv(),a=r.getLexVarInfo();d.CmdOptions.isDebugMode()&&(n=this.appendScopeInfo(a)),this.add(e,(0,c.newLexicalEnv)(i,n),(0,c.storeAccumulator)(t))}popLexicalEnv(e){this.add(e,(0,c.popLexicalEnv)())}loadAccFromLexEnv(e,t,r,n){let i=new m.VariableAccessLoad(t,r,n).expand(this);this.add(e,...i)}storeAccToLexEnv(e,t,r,n,i){let a=new m.VariableAcessStore(t,r,n,i,e).expand(this);this.add(e,...a)}loadObjProperty(e,t,r){switch(typeof r){case"number":if((0,f.isInteger)(r))this.loadObjByIndex(e,t,r);else{let n=this.getTemp();this.add(e,(0,c.loadAccumulatorFloat)(r),(0,c.storeAccumulator)(n)),this.loadObjByValue(e,t,n),this.freeTemps(n)}break;case"string":this.loadObjByName(e,t,r);break;default:this.loadObjByValue(e,t,r)}}storeObjProperty(e,t,r){switch(typeof r){case"number":if((0,f.isInteger)(r))this.storeObjByIndex(e,t,r);else{let n=this.getTemp(),i=this.getTemp();this.storeAccumulator(e,n),this.add(e,(0,c.loadAccumulatorFloat)(r),(0,c.storeAccumulator)(i),(0,c.loadAccumulator)(n)),this.storeObjByValue(e,t,i),this.freeTemps(n,i)}break;case"string":this.storeObjByName(e,t,r);break;default:this.storeObjByValue(e,t,r)}}storeOwnProperty(e,t,r,n=!1){switch(typeof r){case"number":if((0,f.isInteger)(r))this.stOwnByIndex(e,t,r);else{let i=this.getTemp(),a=this.getTemp();this.storeAccumulator(e,i),this.add(e,(0,c.loadAccumulatorFloat)(r),(0,c.storeAccumulator)(a),(0,c.loadAccumulator)(i)),this.stOwnByValue(e,t,a,n),this.freeTemps(i,a)}break;case"string":this.stOwnByName(e,t,r,n);break;default:this.stOwnByValue(e,t,r,n)}}loadObjByName(e,t,r){this.add(e,(0,c.loadObjByName)(t,r))}storeObjByName(e,t,r){this.add(e,(0,c.storeObjByName)(t,r))}loadObjByIndex(e,t,r){this.add(e,(0,c.loadObjByIndex)(t,r))}storeObjByIndex(e,t,r){this.add(e,(0,c.storeObjByIndex)(t,r))}loadObjByValue(e,t,r){this.add(e,(0,c.loadObjByValue)(t,r))}storeObjByValue(e,t,r){this.add(e,(0,c.storeObjByValue)(t,r))}stOwnByName(e,t,r,n){this.add(e,(0,c.storeOwnByName)(t,r,n))}stOwnByIndex(e,t,r){this.add(e,(0,c.storeOwnByIndex)(t,r))}stOwnByValue(e,t,r,n){this.add(e,(0,c.storeOwnByValue)(t,r,n))}loadByNameViaDebugger(e,t,r){this.loadObjProperty(e,(0,_.getVregisterCache)(this,_.CacheList.Global),"debuggerGetValue");let n=this.getTemp();this.storeAccumulator(e,n);let i=this.getTemp();this.loadAccumulatorString(e,t),this.storeAccumulator(e,i);let a=this.getTemp();this.moveVreg(e,a,(0,_.getVregisterCache)(this,r)),this.call(e,[n,i,a],!1),this.freeTemps(n,i,a)}tryLoadGlobalByName(e,t){d.CmdOptions.isWatchEvaluateExpressionMode()?this.loadByNameViaDebugger(e,t,_.CacheList.True):this.add(e,(0,c.tryLoadGlobalByName)(t))}storeByNameViaDebugger(e,t){let r=this.getTemp();this.storeAccumulator(e,r),this.loadObjProperty(e,(0,_.getVregisterCache)(this,_.CacheList.Global),"debuggerSetValue");let n=this.getTemp();this.storeAccumulator(e,n);let i=this.getTemp();this.loadAccumulatorString(e,t),this.storeAccumulator(e,i),this.call(e,[n,i,r],!1),this.freeTemps(r,n,i)}tryStoreGlobalByName(e,t){d.CmdOptions.isWatchEvaluateExpressionMode()?this.storeByNameViaDebugger(e,t):this.add(e,(0,c.tryStoreGlobalByName)(t))}loadGlobalVar(e,t){this.add(e,(0,c.loadGlobalVar)(t))}storeGlobalVar(e,t){this.add(e,(0,c.storeGlobalVar)(t))}loadAccumulatorString(e,t){this.add(e,(0,c.loadAccumulatorString)(t))}loadAccumulatorFloat(e,t){this.add(e,(0,c.loadAccumulatorFloat)(t))}loadAccumulatorInt(e,t){this.add(e,(0,c.loadAccumulatorInt)(t))}moveVreg(e,t,r){this.add(e,(0,c.moveVreg)(t,r))}label(e,t){this.add(p.NodeKind.Invalid,t)}branch(e,t){this.add(e,(0,c.jumpTarget)(t))}isTrue(e){this.add(e,(0,c.isTrue)())}jumpIfTrue(e,t){this.isFalse(e),this.add(e,new g.Jeqz(t))}isFalse(e){this.add(e,(0,c.isFalse)())}jumpIfFalse(e,t){this.isTrue(e),this.add(e,new g.Jeqz(t))}debugger(e){this.add(e,(0,c.creatDebugger)())}throwUndefinedIfHole(e,t,r){this.add(e,(0,c.throwUndefinedIfHole)(t,r))}condition(e,t,r,n){switch(t){case s.SyntaxKind.LessThanToken:this.add(e,new g.EcmaLessdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.GreaterThanToken:this.add(e,new g.EcmaGreaterdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.LessThanEqualsToken:this.add(e,new g.EcmaLesseqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.GreaterThanEqualsToken:this.add(e,new g.EcmaGreatereqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.EqualsEqualsToken:this.add(e,new g.EcmaEqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.ExclamationEqualsToken:this.add(e,new g.EcmaNoteqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.EqualsEqualsEqualsToken:this.add(e,new g.EcmaStricteqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.ExclamationEqualsEqualsToken:this.add(e,new g.EcmaStrictnoteqdyn(r)),this.add(e,new g.Jeqz(n))}}unary(e,t,r){switch(t){case s.SyntaxKind.PlusToken:this.add(e,new g.EcmaTonumber(r));break;case s.SyntaxKind.MinusToken:this.add(e,new g.EcmaNegdyn(r));break;case s.SyntaxKind.PlusPlusToken:this.add(e,new g.EcmaIncdyn(r));break;case s.SyntaxKind.MinusMinusToken:this.add(e,new g.EcmaDecdyn(r));break;case s.SyntaxKind.ExclamationToken:let t=new g.Label,n=new g.Label;this.jumpIfFalse(e,t),this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.False))),this.branch(e,n),this.label(e,t),this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.True))),this.label(e,n);break;case s.SyntaxKind.TildeToken:this.add(e,new g.EcmaNotdyn(r));break;default:throw new Error("Unimplemented")}}binary(e,t,r){switch(t){case s.SyntaxKind.LessThanToken:case s.SyntaxKind.GreaterThanToken:case s.SyntaxKind.LessThanEqualsToken:case s.SyntaxKind.GreaterThanEqualsToken:case s.SyntaxKind.EqualsEqualsToken:case s.SyntaxKind.ExclamationEqualsToken:case s.SyntaxKind.EqualsEqualsEqualsToken:case s.SyntaxKind.ExclamationEqualsEqualsToken:this.binaryRelation(e,t,r);break;case s.SyntaxKind.PlusToken:case s.SyntaxKind.PlusEqualsToken:this.add(e,new g.EcmaAdd2dyn(r));break;case s.SyntaxKind.MinusToken:case s.SyntaxKind.MinusEqualsToken:this.add(e,new g.EcmaSub2dyn(r));break;case s.SyntaxKind.AsteriskToken:case s.SyntaxKind.AsteriskEqualsToken:this.add(e,new g.EcmaMul2dyn(r));break;case s.SyntaxKind.AsteriskAsteriskToken:case s.SyntaxKind.AsteriskAsteriskEqualsToken:this.add(e,new g.EcmaExpdyn(r));break;case s.SyntaxKind.SlashToken:case s.SyntaxKind.SlashEqualsToken:this.add(e,new g.EcmaDiv2dyn(r));break;case s.SyntaxKind.PercentToken:case s.SyntaxKind.PercentEqualsToken:this.add(e,new g.EcmaMod2dyn(r));break;case s.SyntaxKind.LessThanLessThanToken:case s.SyntaxKind.LessThanLessThanEqualsToken:this.add(e,new g.EcmaShl2dyn(r));break;case s.SyntaxKind.GreaterThanGreaterThanToken:case s.SyntaxKind.GreaterThanGreaterThanEqualsToken:this.add(e,new g.EcmaShr2dyn(r));break;case s.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:case s.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:this.add(e,new g.EcmaAshr2dyn(r));break;case s.SyntaxKind.AmpersandToken:case s.SyntaxKind.AmpersandEqualsToken:this.add(e,new g.EcmaAnd2dyn(r));break;case s.SyntaxKind.BarToken:case s.SyntaxKind.BarEqualsToken:this.add(e,new g.EcmaOr2dyn(r));break;case s.SyntaxKind.CaretToken:case s.SyntaxKind.CaretEqualsToken:this.add(e,new g.EcmaXor2dyn(r));break;case s.SyntaxKind.InKeyword:this.add(e,new g.EcmaIsindyn(r));break;case s.SyntaxKind.InstanceOfKeyword:this.add(e,new g.EcmaInstanceofdyn(r));break;default:throw new Error("Unimplemented")}}throw(e){this.add(e,(0,c.throwException)())}throwThrowNotExist(e){this.add(e,(0,c.throwThrowNotExists)())}throwDeleteSuperProperty(e){this.add(e,(0,c.throwDeleteSuperProperty)())}return(e){this.add(e,new g.ReturnDyn)}call(e,t,r){this.add(e,(0,c.call)(t,r))}returnUndefined(e){this.add(e,(0,c.returnUndefined)())}newObject(e,t){this.add(e,(0,c.newObject)(t))}defineMethod(e,t,r,n){let i=(0,u.getParamLengthOfFunc)(e);this.add(e,(0,c.loadAccumulator)(r),(0,c.defineMethod)(t,n,i))}defineFunction(e,t,r,n){let i=(0,u.getParamLengthOfFunc)(t);if(t.modifiers)for(let a=0;a<t.modifiers.length;a++)if(t.modifiers[a].kind==o.SyntaxKind.AsyncKeyword&&!t.asteriskToken)return void this.add(e,(0,c.defineAsyncFunc)(r,n,i));t.asteriskToken?this.add(e,(0,c.defineGeneratorFunc)(r,n,i)):o.isArrowFunction(t)||o.isMethodDeclaration(t)?this.add(e,(0,c.loadHomeObject)(),(0,c.defineNCFunc)(r,n,i)):this.add(e,(0,c.defineFunc)(r,n,i))}typeOf(e){this.add(e,new g.EcmaTypeofdyn)}callSpread(e,t,r,n){this.add(e,new g.EcmaCallspreaddyn(t,r,n))}newObjSpread(e,t,r){this.add(e,new g.EcmaNewobjspreaddyn(t,r))}getUnmappedArgs(e){this.add(e,new g.EcmaGetunmappedargs)}toNumber(e,t){this.add(e,new g.EcmaTonumber(t))}createGeneratorObj(e,t){this.add(e,new g.EcmaCreategeneratorobj(t))}EcmaCreateiterresultobj(e,t,r){this.add(e,new g.EcmaCreateiterresultobj(t,r))}suspendGenerator(e,t,r){this.add(e,new g.EcmaSuspendgenerator(t,r))}resumeGenerator(e,t){this.add(e,new g.EcmaResumegenerator(t))}getResumeMode(e,t){this.add(e,new g.EcmaGetresumemode(t))}asyncFunctionEnter(e){this.add(e,new g.EcmaAsyncfunctionenter)}asyncFunctionAwaitUncaught(e,t,r){this.add(e,new g.EcmaAsyncfunctionawaituncaught(t,r))}asyncFunctionResolve(e,t,r,n){this.add(e,new g.EcmaAsyncfunctionresolve(t,r,n))}asyncFunctionReject(e,t,r,n){this.add(e,new g.EcmaAsyncfunctionreject(t,r,n))}getTemplateObject(e,t){this.add(e,new g.EcmaGettemplateobject(t))}copyRestArgs(e,t){this.add(e,new g.EcmaCopyrestargs(new g.Imm(t)))}getPropIterator(e){this.add(e,(0,c.getPropIterator)())}getNextPropName(e,t){this.add(e,(0,c.getNextPropName)(t))}createEmptyObject(e){this.add(e,(0,c.createEmptyObject)())}createObjectHavingMethod(e,t,r){this.add(e,(0,c.loadAccumulator)(r),(0,c.createObjectHavingMethod)(t))}createObjectWithBuffer(e,t){this.add(e,(0,c.createObjectWithBuffer)(t))}setObjectWithProto(e,t,r){this.add(e,(0,c.setObjectWithProto)(t,r))}copyDataProperties(e,t,r){this.add(e,(0,c.copyDataProperties)(t,r))}defineGetterSetterByValue(e,t,r,n,i,a){a?this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.True))):this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.False))),this.add(e,(0,c.defineGetterSetterByValue)(t,r,n,i))}createEmptyArray(e){this.add(e,(0,c.createEmptyArray)())}createArrayWithBuffer(e,t){this.add(e,(0,c.createArrayWithBuffer)(t))}storeArraySpreadElement(e,t,r){this.add(e,(0,c.storeArraySpread)(t,r))}storeLexicalVar(e,t,r,n){this.add(e,(0,c.storeLexicalVar)(t,r,n))}loadLexicalVar(e,t,r){this.add(e,(0,c.loadLexicalVar)(t,r))}importModule(e,t){this.add(e,(0,c.importModule)(t))}loadModuleVariable(e,t,r){this.add(e,(0,c.loadModuleVarByName)(r,t))}storeModuleVar(e,t){this.add(e,(0,c.storeModuleVariable)(t))}copyModule(e,t){this.add(e,(0,c.copyModuleIntoCurrentModule)(t))}defineClassWithBuffer(e,t,r,n,i){this.add(e,(0,c.defineClassWithBuffer)(t,r,n,(0,_.getVregisterCache)(this,_.CacheList.LexEnv),i))}createObjectWithExcludedKeys(e,t,r){this.add(e,(0,c.createObjectWithExcludedKeys)(t,r))}throwObjectNonCoercible(e){this.add(e,(0,c.throwObjectNonCoercible)())}getIterator(e){this.add(e,(0,c.getIterator)())}getIteratorNext(e,t,r){this.add(e,(0,c.getIteratorNext)(t,r))}closeIterator(e,t){this.add(e,(0,c.closeIterator)(t))}throwIfNotObject(e,t){this.add(e,(0,c.throwIfNotObject)(t))}superCall(e,t,r){this.add(e,(0,c.superCall)(t,r))}superCallSpread(e,t){this.add(e,(0,c.superCallSpread)(t))}ldSuperByName(e,t,r){this.add(e,(0,c.ldSuperByName)(t,r))}stSuperByName(e,t,r){this.add(e,(0,c.stSuperByName)(t,r))}ldSuperByValue(e,t,r){this.add(e,(0,c.ldSuperByValue)(t,r))}stSuperByValue(e,t,r){this.add(e,(0,c.stSuperByValue)(t,r))}loadSuperProperty(e,t,r){switch(typeof r){case"string":this.ldSuperByName(e,t,r);break;case"number":let n=this.getTemp();this.loadAccumulatorInt(e,r),this.storeAccumulator(e,n),this.ldSuperByValue(e,t,n),this.freeTemps(n);break;default:this.ldSuperByValue(e,t,r)}}throwIfSuperNotCorrectCall(e,t){this.add(e,(0,c.throwIfSuperNotCorrectCall)(t))}storeSuperProperty(e,t,r){switch(typeof r){case"string":this.stSuperByName(e,t,r);break;case"number":let n=this.getTemp();this.loadAccumulatorInt(e,r),this.storeAccumulator(e,n),this.stSuperByValue(e,t,n),this.freeTemps(n);break;default:this.stSuperByValue(e,t,r)}}loadHomeObject(e){this.add(e,(0,c.loadHomeObject)())}createRegExpWithLiteral(e,t,r){this.add(e,(0,c.createRegExpWithLiteral)(t,r))}stLetToGlobalRecord(e,t){this.add(e,(0,c.stLetToGlobalRecord)(t))}stConstToGlobalRecord(e,t){this.add(e,(0,c.stConstToGlobalRecord)(t))}stClassToGlobalRecord(e,t){this.add(e,(0,c.stClassToGlobalRecord)(t))}loadAccumulatorBigInt(e,t){this.add(e,(0,c.loadAccumulatorBigInt)(t))}binaryRelation(e,t,r){let n=new g.Label,i=new g.Label;switch(t){case s.SyntaxKind.LessThanToken:this.add(e,new g.EcmaLessdyn(r));break;case s.SyntaxKind.GreaterThanToken:this.add(e,new g.EcmaGreaterdyn(r));break;case s.SyntaxKind.LessThanEqualsToken:this.add(e,new g.EcmaLesseqdyn(r));break;case s.SyntaxKind.GreaterThanEqualsToken:this.add(e,new g.EcmaGreatereqdyn(r));break;case s.SyntaxKind.EqualsEqualsToken:this.add(e,new g.EcmaEqdyn(r));break;case s.SyntaxKind.ExclamationEqualsToken:this.add(e,new g.EcmaNoteqdyn(r));break;case s.SyntaxKind.EqualsEqualsEqualsToken:this.add(e,new g.EcmaStricteqdyn(r));break;case s.SyntaxKind.ExclamationEqualsEqualsToken:this.add(e,new g.EcmaStrictnoteqdyn(r))}this.add(e,new g.Jeqz(n)),this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.True))),this.branch(e,i),this.label(e,n),this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.False))),this.label(e,i)}add(e,...t){p.DebugInfo.setDebuginfoForIns(e,...t),this.insns.push(...t)}}t.PandaGen=b,b.literalArrayBuffer=new Array},"./src/pandasm.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclaredSymbol2Type=t.ExportedSymbol2Type=t.TypeOfVreg=t.CatchTable=t.Program=t.Record=t.Function=t.Ins=t.Signature=t.Metadata=void 0;class r{constructor(e=""){this.attribute=e}}t.Metadata=r,t.Signature=class{constructor(e=0,t){this.p=e,this.rt=t}},t.Ins=class{constructor(e,t,r,n,i,a){this.o=e,this.r=t,this.id=r,this.im=n,this.l=i,this.d=a}},t.Function=class{constructor(e,t,r=0,n=[],i,a,o,s="",c,l,u,_,d){this.n=e,this.s=t,this.i=n,this.l=i,this.r=r,this.ca_tab=o,this.v=a,this.sf=s,this.sc=c,this.ct=l,this.ti=u,this.es2t=_,this.ds2t=d}},t.Record=class{constructor(e,t,n,i,a){this.name=e,this.whole_line=t,this.bound_left=n,this.bound_right=i,this.line_number=a,this.metadata=new r}},t.Program=class{constructor(){this.functions=[],this.records=[],this.strings=new Set,this.strings_arr=[],this.literalArrays=[],this.module_mode=!1,this.debug_mode=!1,this.log_enabled=!1,this.opt_level=1,this.opt_log_level="error"}finalize(){this.strings_arr=Array.from(this.strings)}},t.CatchTable=class{constructor(e,t,r){this.tb_lab=e,this.te_lab=t,this.cb_lab=r}},t.TypeOfVreg=class{constructor(e,t){this.vregNum=e,this.typeIndex=t}},t.ExportedSymbol2Type=class{constructor(e,t){this.symbol=e,this.type=t}},t.DeclaredSymbol2Type=class{constructor(e,t){this.symbol=e,this.type=t}}},"./src/pass/cacheExpander.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CacheExpander=void 0;const n=r("./src/base/vregisterCache.ts");t.CacheExpander=class{run(e){let t=e.getInsns(),r=e.getVregisterCache();for(let i=n.CacheList.MIN;i<n.CacheList.MAX;i++){let n=r.getCache(i);if(n.isNeeded()){let r=n.getExpander()(e);t.unshift(...r)}}}}},"./src/recorder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Recorder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/astutils.ts")),c=r("./src/base/util.ts"),l=r("./src/cmdOptions.ts"),u=r("./src/diagnostic.ts"),_=r("./src/expression/parenthesizedExpression.ts"),d=a(r("./src/jshelpers.js")),p=r("./src/log.ts"),f=r("./src/modules.ts"),g=r("./src/scope.ts"),m=r("./src/statement/classStatement.ts"),y=r("./src/syntaxChecker.ts"),h=r("./src/syntaxCheckHelper.ts"),v=r("./src/typeChecker.ts"),b=r("./src/variable.ts"),x=r("./src/typeRecorder.ts"),D=r("./src/pandagen.ts");t.Recorder=class{constructor(e,t,r,n,i,a){this.scopeMap=new Map,this.hoistMap=new Map,this.parametersMap=new Map,this.class2Ctor=new Map,this.importStmts=[],this.exportStmts=[],this.defaultUsed=!1,this.node=e,this.scope=t,this.compilerDriver=r,this.recordType=n,this.funcNameMap=new Map,this.funcNameMap.set("main",1),this.isTsFile=i,this.syntaxCheckStatus=a}record(){return this.setParent(this.node),this.setScopeMap(this.node,this.scope),this.recordInfo(this.node,this.scope),this.recordType?(x.TypeRecorder.getInstance().setTypeSummary(),l.CmdOptions.enableTypeLog()&&x.TypeRecorder.getInstance().getLog()):D.PandaGen.clearLiteralArrayBuffer(),this.node}getCtorOfClass(e){return this.class2Ctor.get(e)}setCtorOfClass(e,t){this.class2Ctor.has(e)||this.class2Ctor.set(e,t)}setParent(e){e.forEachChild((t=>{if(!this.isTsFile||null==t.parent||t.parent.kind!=e.kind){t=d.setParent(t,e);let r=o.getOriginalNode(t);t=o.setTextRange(t,r)}this.setParent(t)}))}recordInfo(e,t){e.forEachChild((e=>{switch(this.syntaxCheckStatus&&(0,y.checkSyntaxError)(e),e.kind){case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.Constructor:case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:case o.SyntaxKind.ArrowFunction:{let r=this.buildVariableScope(t,e);this.recordOtherFunc(e,r),this.recordInfo(e,r);break}case o.SyntaxKind.FunctionDeclaration:{let r=this.buildVariableScope(t,e);this.recordFuncDecl(e,t),this.recordType&&v.TypeChecker.getInstance().formatNodeType(e),this.recordInfo(e,r);break}case o.SyntaxKind.Block:case o.SyntaxKind.IfStatement:case o.SyntaxKind.SwitchStatement:case o.SyntaxKind.LabeledStatement:case o.SyntaxKind.ThrowStatement:case o.SyntaxKind.TryStatement:case o.SyntaxKind.CatchClause:{let r=new g.LocalScope(t);this.setScopeMap(e,r),this.recordInfo(e,r);break}case o.SyntaxKind.DoStatement:case o.SyntaxKind.WhileStatement:case o.SyntaxKind.ForStatement:case o.SyntaxKind.ForInStatement:case o.SyntaxKind.ForOfStatement:{let r=new g.LoopScope(t);this.setScopeMap(e,r),this.recordInfo(e,r);break}case o.SyntaxKind.ClassDeclaration:case o.SyntaxKind.ClassExpression:this.recordClassInfo(e,t),this.recordType&&v.TypeChecker.getInstance().formatNodeType(e);break;case o.SyntaxKind.InterfaceDeclaration:this.recordType&&v.TypeChecker.getInstance().formatNodeType(e);break;case o.SyntaxKind.Identifier:this.recordVariableDecl(e,t);break;case o.SyntaxKind.ImportDeclaration:{if(!l.CmdOptions.isModules())throw new u.DiagnosticError(e,u.DiagnosticCode.An_import_declaration_can_only_be_used_in_a_namespace_or_module,d.getSourceFileOfNode(e));if(!(t instanceof g.ModuleScope))throw new Error("SyntaxError: import statement cannot in other scope except ModuleScope");let r=this.recordImportInfo(e,t);this.recordType&&v.TypeChecker.getInstance().formatNodeType(e,r);break}case o.SyntaxKind.ExportDeclaration:{if(!l.CmdOptions.isModules())throw new u.DiagnosticError(e,u.DiagnosticCode.An_export_declaration_can_only_be_used_in_a_module,d.getSourceFileOfNode(e));if(!(t instanceof g.ModuleScope))throw new Error("SyntaxError: export statement cannot in other scope except ModuleScope");let r=this.recordExportInfo(e);this.recordType&&v.TypeChecker.getInstance().formatNodeType(e,r);break}case o.SyntaxKind.ExportAssignment:if(this.defaultUsed)throw new u.DiagnosticError(e,u.DiagnosticCode.Duplicate_identifier_0,d.getSourceFileOfNode(e),["default"]);this.defaultUsed=!0,this.recordInfo(e,t),this.recordType&&v.TypeChecker.getInstance().formatNodeType(e);break;case o.SyntaxKind.VariableStatement:this.recordType&&v.TypeChecker.getInstance().formatNodeType(e),this.recordInfo(e,t);break;default:this.recordInfo(e,t)}}))}recordClassInfo(e,t){let r=new g.LocalScope(t);this.setScopeMap(e,r);let n=(0,m.extractCtorOfClass)(e);if(n?this.setCtorOfClass(e,n):(0,m.AddCtor2Class)(this,e,r),e.name){let r=d.getTextOfIdentifierOrLiteral(e.name),n=new g.ClassDecl(r,e);t.setDecls(n)}this.recordInfo(e,r)}buildVariableScope(e,t){let r=new g.FunctionScope(e,t),n=e.getNearestVariableScope();return r.setParentVariableScope(n),n.addChildVariableScope(r),this.setScopeMap(t,r),r}recordVariableDecl(e,t){let r=d.getTextOfIdentifierOrLiteral(e),n=this.getDeclarationNodeOfId(e);if(n){let i=s.getVarDeclarationKind(n),a=this.addVariableDeclToScope(t,e,n,r,i);if(i==b.VarDeclarationKind.VAR){let r=t.getNearestVariableScope();this.collectHoistDecls(e,r,a)}}else{let e=t.findDeclPos(r);if(e){let n=e.getDecl(r);if(n instanceof g.LetDecl||n instanceof g.ConstDecl){let r=t.getNearestVariableScope(),n=e.getNearestLexicalScope(),i=r.getNearestLexicalScope(),a=!1;if(n instanceof g.LoopScope){for(;i;){if(i==n){a=!0;break}i=i.getParent()}a&&n.pendingCreateEnv()}}}}if("arguments"==r){let e=t.getNearestVariableScope();null==e||e.setUseArgs(!0)}}addVariableDeclToScope(e,t,r,n,i){let a=new g.VarDecl(n,t);switch(i){case b.VarDeclarationKind.VAR:break;case b.VarDeclarationKind.LET:a=r.parent.kind==o.SyntaxKind.CatchClause?new g.CatchParameter(n,t):new g.LetDecl(n,t);break;case b.VarDeclarationKind.CONST:a=new g.ConstDecl(n,t);break;default:throw new Error("Wrong type of declaration")}return e.setDecls(a),a}getDeclarationNodeOfId(e){let t=e.parent;if(o.isVariableDeclaration(t)&&t.name==e)return t;if(o.isBindingElement(t)&&t.name==e){for(;t&&!o.isVariableDeclaration(t);)t=t.parent;return t||void 0}}recordImportInfo(e,t){if(!o.isStringLiteral(e.moduleSpecifier))throw new Error("moduleSpecifier must be a stringLiteral");let r;if(e.moduleSpecifier){let t=d.getTextOfIdentifierOrLiteral(e.moduleSpecifier);r=new f.ModuleStmt(e,t)}else r=new f.ModuleStmt(e);if(e.importClause){let n=e.importClause;if(n.name){let e=d.getTextOfIdentifierOrLiteral(n.name);t.setDecls(new g.ConstDecl(e,n.name)),r.addLocalName(e,"default"),r.addNodeMap(n.name,n.name)}if(n.namedBindings){let e=n.namedBindings;if(o.isNamespaceImport(e)){let n=d.getTextOfIdentifierOrLiteral(e.name);t.setDecls(new g.ConstDecl(n,e)),r.setNameSpace(n)}o.isNamedImports(e)&&e.elements.forEach((e=>{let n=d.getTextOfIdentifierOrLiteral(e.name),i=e.propertyName?d.getTextOfIdentifierOrLiteral(e.propertyName):n;t.setDecls(new g.ConstDecl(n,e)),r.addLocalName(n,i),r.addNodeMap(e.name,e.propertyName?e.propertyName:e.name)}))}}return this.importStmts.push(r),r}recordExportInfo(e){let t,r=o.getOriginalNode(e);if(r.moduleSpecifier){if(!o.isStringLiteral(r.moduleSpecifier))throw new Error("moduleSpecifier must be a stringLiteral");t=new f.ModuleStmt(r,d.getTextOfIdentifierOrLiteral(r.moduleSpecifier))}else t=new f.ModuleStmt(r);if(r.exportClause){t.setCopyFlag(!1);let e=r.exportClause;o.isNamespaceExport(e)&&t.setNameSpace(d.getTextOfIdentifierOrLiteral(e.name)),o.isNamedExports(e)&&e.elements.forEach((e=>{let n=d.getTextOfIdentifierOrLiteral(e.name);if("default"==n){if(this.defaultUsed)throw new u.DiagnosticError(r,u.DiagnosticCode.Duplicate_identifier_0,d.getSourceFileOfNode(r),[n]);this.defaultUsed=!0}let i=e.propertyName?d.getTextOfIdentifierOrLiteral(e.propertyName):n;t.addLocalName(n,i),t.addNodeMap(e.name,e.propertyName?e.propertyName:e.name)}))}return this.exportStmts.push(t),t}recordFuncDecl(e,t){this.recordFuncInfo(e);let r=e.name;if(!r)return;let n=d.getTextOfIdentifierOrLiteral(r),i=new g.FuncDecl(n,e),a=t,o=!0;t instanceof g.GlobalScope||t instanceof g.ModuleScope?this.collectHoistDecls(e,a,i):t instanceof g.LocalScope?(a=t.getNearestVariableScope(),a==this.getScopeOfNode(e.parent.parent)&&a instanceof g.FunctionScope&&(o=this.collectHoistDecls(e,a,i))):(0,p.LOGD)("Function declaration"," in function is collected in its body block"),o&&t.setDecls(i)}recordOtherFunc(e,t){if(this.recordFuncInfo(e),(o.isFunctionExpression(e)||o.isMethodDeclaration(e))&&e.name&&o.isIdentifier(e.name)){let r=d.getTextOfIdentifierOrLiteral(e.name),n=new g.FuncDecl(r,e);t.setDecls(n)}}recordFuncInfo(e){this.recordFunctionParameters(e),this.recordFuncName(e)}recordFuncName(e){let t="";if(o.isConstructorDeclaration(e)){let r=e.parent;t=(0,m.getClassNameForConstructor)(r)}else if((0,c.isAnonymousFunctionDefinition)(e)){let r=(0,_.findOuterNodeOfParenthesis)(e);if(o.isVariableDeclaration(r)){let e=r.name;o.isIdentifier(e)&&(t=d.getTextOfIdentifierOrLiteral(e))}else if(o.isBinaryExpression(r))r.operatorToken.kind==o.SyntaxKind.EqualsToken&&o.isIdentifier(r.left)&&(t=d.getTextOfIdentifierOrLiteral(r.left));else if(o.isPropertyAssignment(r)){let e=r.name;(o.isIdentifier(e)||o.isStringLiteral(e)||o.isNumericLiteral(e))&&(t=d.getTextOfIdentifierOrLiteral(e),"__proto__"==t&&(t=""))}}else o.isIdentifier(e.name)&&(t=d.getTextOfIdentifierOrLiteral(e.name));if(this.getScopeOfNode(e).setFuncName(t),""!=t){let e=this.funcNameMap;if(e.has(t)){let r=e.get(t);e.set(t,++r)}else e.set(t,1)}}recordFunctionParameters(e){let t=e.parameters,r=[],n=0,i=!0;t&&t.forEach((e=>{if((e.initializer||this.isRestParameter(e))&&(i=!1),i&&n++,o.isIdentifier(e.name)){let t=d.getTextOfIdentifierOrLiteral(e.name);r.push(new g.FunctionParameter(t,e.name))}else this.recordPatternParameter(e.name,r)})),this.getScopeOfNode(e).setParameterLength(n),this.setParametersMap(e,r)}recordPatternParameter(e,t){let r="";e.elements.forEach((e=>{if(!o.isOmittedExpression(e))if(o.isIdentifier(e.name))r=d.getTextOfIdentifierOrLiteral(e.name),t.push(new g.FunctionParameter(r,e.name));else{let r=e.name;this.recordPatternParameter(r,t)}}))}isRestParameter(e){return!!e.dotDotDotToken}collectHoistDecls(e,t,r){let n=r.name;if(t instanceof g.FunctionScope){let t=d.getContainingFunctionDeclaration(e),r=this.getParametersOfFunction(t);if(r)for(let e=0;e<r.length;e++)if(r[e].name==n)return!1}return!!((0,h.isGlobalIdentifier)(n)&&t instanceof g.GlobalScope)||(this.setHoistMap(t,r),!1)}setScopeMap(e,t){this.scopeMap.set(e,t)}getScopeMap(){return this.scopeMap}getScopeOfNode(e){return this.scopeMap.get(e)}getImportStmts(){return this.importStmts}getExportStmts(){return this.exportStmts}setHoistMap(e,t){if(!this.hoistMap.has(e))return void this.hoistMap.set(e,[t]);let r=this.hoistMap.get(e);for(let e=0;e<r.length;e++)if(t.name==r[e].name)return void(t instanceof g.FuncDecl&&(r[e]=t));r.push(t)}getHoistMap(){return this.hoistMap}getHoistDeclsOfScope(e){return this.hoistMap.get(e)}setParametersMap(e,t){this.parametersMap.set(e,t)}getParametersOfFunction(e){return this.parametersMap.get(e)}getFuncNameMap(){return this.funcNameMap}}},"./src/regAllocator.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegAlloc=void 0;const n=r("./src/base/util.ts"),i=r("./src/base/vregisterCache.ts"),a=r("./src/debuginfo.ts"),o=r("./src/irnodes.ts");class s{constructor(){this.newInsns=[],this.spills=[],this.vRegsId=0,this.usedVreg=[],this.tmpVreg=[],this.vRegsId=0}allocIndexForVreg(e){let t=this.getFreeVreg();e.num=t,this.usedVreg[t]={vreg:e,flag:!1}}findTmpVreg(e){let t=Math.min(256,this.usedVreg.length);for(let r=0;r<t;++r){let t=this.usedVreg[r];if(void 0!==t&&!t.flag){if(16===e&&t.vreg.num>=16)throw new Error("no available tmp vReg from A");return t.flag=!0,this.tmpVreg.push(t),t.vreg}}throw new Error("no available tmp vReg from B")}clearVregFlags(){for(let e of this.tmpVreg)e.flag=!1;this.tmpVreg=[]}allocSpill(){if(this.spills.length>0)return this.spills.pop();let e=new o.VReg;return this.allocIndexForVreg(e),e}freeSpill(e){this.spills.push(e)}getFreeVreg(){if(this.vRegsId>=65536)throw new Error("vreg has been running out");return this.vRegsId++}getNumOfInvalidVregs(e,t){let r=0;for(let n=0;n<e.length;++n)e[n]instanceof o.VReg&&e[n].num>=1<<t[n][1]&&r++;return r}markVregNotAvailableAsTmp(e){let t=e.num;this.usedVreg[t].flag=!0,this.tmpVreg.push(this.usedVreg[t])}doRealAdjustment(e,t,r,n){let i=[],s=[],c=[];for(let t=0;t<e.length;++t)e[t]instanceof o.VReg&&this.markVregNotAvailableAsTmp(e[t]);for(let r=0;r<e.length;++r)if(e[r]instanceof o.VReg){let n=e[r];if(n.num>=1<<t[r][1]){let a,l=this.allocSpill();c.push(l);try{a=this.findTmpVreg(1<<t[r][1])}catch(e){throw Error("no available tmp vReg")}i.push(new o.MovDyn(l,a)),e[r]=a,t[r][0]==o.OperandKind.SrcVReg?i.push(new o.MovDyn(a,n)):t[r][0]==o.OperandKind.DstVReg?s.push(new o.MovDyn(n,a)):t[r][0]==o.OperandKind.SrcDstVReg&&(i.push(new o.MovDyn(a,n)),s.push(new o.MovDyn(n,a))),s.push(new o.MovDyn(a,l))}}a.DebugInfo.copyDebugInfo(n[r],i),a.DebugInfo.copyDebugInfo(n[r],s),this.newInsns.push(...i,n[r],...s);for(let e=c.length-1;e>=0;--e)this.freeSpill(c[e]);this.clearVregFlags()}checkDynRangeInstruction(e,t){let r=e[t].operands,i=(0,n.getRangeStartVregPos)(e[t]),a=1<<e[t].getFormats()[0][i][1];if(r[1].num>=a)return!1;let o=r[i].num,s=i+1;for(;s<e[t].operands.length;++s){if(o+1!=r[s].num)throw Error("Warning: VReg sequence of DynRange is not continuous. Please adjust it now.");o++}return s==e[t].operands.length}adjustDynRangeInstruction(e,t){let r=[],i=[],s=[],c=e[t].operands,l=(0,n.getRangeStartVregPos)(e[t]),u=c.length-(0,n.getRangeStartVregPos)(e[t]),_=1<<e[t].getFormats()[0][l][1],d=this.findTmpVreg(_);for(let e=0;e<u;e++){let t=this.allocSpill();s.push(t),r.push(new o.MovDyn(t,this.usedVreg[d.num+e].vreg)),r.push(new o.MovDyn(this.usedVreg[d.num+e].vreg,c[e+l])),c[e+l]=this.usedVreg[d.num+e].vreg,i.push(new o.MovDyn(this.usedVreg[d.num+e].vreg,t))}a.DebugInfo.copyDebugInfo(e[t],r),a.DebugInfo.copyDebugInfo(e[t],i),this.newInsns.push(...r,e[t],...i);for(let e=s.length-1;e>=0;--e)this.freeSpill(s[e]);this.clearVregFlags()}adjustInstructionsIfNeeded(e){for(let t=0;t<e.length;++t){let r=e[t].operands,i=e[t].getFormats();if((0,n.isRangeInst)(e[t])){if(this.checkDynRangeInstruction(e,t)){this.newInsns.push(e[t]);continue}this.adjustDynRangeInstruction(e,t);continue}let a=r.length,o=i[0];for(let e=0;e<i.length;++e){let t=this.getNumOfInvalidVregs(r,i[e]);t<a&&(o=i[e],a=t)}a>0?this.doRealAdjustment(r,o,t,e):this.newInsns.push(e[t])}}getTotalRegsNum(){return this.vRegsId}run(e){let t=e.getInsns(),r=e.getLocals(),n=e.getTemps(),a=e.getVregisterCache(),s=e.getParametersCount();for(let e=0;e<r.length;++e)this.allocIndexForVreg(r[e]);for(let e=0;e<n.length;++e)this.allocIndexForVreg(n[e]);for(let e=i.CacheList.MIN;e<i.CacheList.MAX;++e){let t=a.getCache(e);t.isNeeded()&&this.allocIndexForVreg(t.getCache())}this.adjustInstructionsIfNeeded(t);for(let e=0;e<s;++e){let t=new o.VReg;this.allocIndexForVreg(t),this.newInsns.unshift(new o.MovDyn(r[e],t))}e.setInsns(this.newInsns)}}t.RegAlloc=class{run(e){let t=new s;t.run(e),e.setTotalRegsNum(t.getTotalRegsNum())}}},"./src/scope.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoopScope=t.LocalScope=t.FunctionScope=t.ModuleScope=t.GlobalScope=t.VariableScope=t.Scope=t.FunctionParameter=t.CatchParameter=t.ClassDecl=t.FuncDecl=t.ConstDecl=t.LetDecl=t.VarDecl=t.Decl=t.InitStatus=void 0;const n=r("./src/log.ts"),i=r("./src/variable.ts");var a;!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.UNINITIALIZED=1]="UNINITIALIZED"}(a=t.InitStatus||(t.InitStatus={}));class o{constructor(e,t){this.name=e,this.node=t}}t.Decl=o,t.VarDecl=class extends o{constructor(e,t){super(e,t)}},t.LetDecl=class extends o{constructor(e,t){super(e,t)}},t.ConstDecl=class extends o{constructor(e,t){super(e,t)}},t.FuncDecl=class extends o{constructor(e,t){super(e,t)}},t.ClassDecl=class extends o{constructor(e,t){super(e,t)}},t.CatchParameter=class extends o{constructor(e,t){super(e,t)}},t.FunctionParameter=class extends o{constructor(e,t){super(e,t)}};class s{constructor(){this.debugTag="scope",this.globals=[],this.locals=[],this.name2variable=new Map,this.decls=[],this.parent=void 0,this.callOpt=new Set,this.isArgumentsOrRestargs=!1}getName2variable(){return this.name2variable}getScopeStartInsIdx(){return this.startInsIdx}setScopeStartInsIdx(e){this.startInsIdx=e}setScopeEndInsIdx(e){this.endInsIdx=e}getScopeEndInsIdx(){return this.endInsIdx}setParent(e){this.parent=e}getParent(){return this.parent}getRootScope(){let e=this,t=this.getParent();for(;null!=t;)e=t,t=t.getParent();return e}getNearestVariableScope(){let e=this;for(;e;){if(e instanceof c)return e;e=e.parent}}getNearestLexicalScope(){let e=this;for(;e;){if(e instanceof c||e instanceof p)return e;e=e.parent}}getNthVariableScope(e){let t=this,r=e;for(;t;){if(t instanceof c){if(0==r)return t;r--}t=t.parent}}findLocal(e){return this.name2variable.get(e)}find(e){let t=0,r=this;for(;r;){let i=null,a=t;if((r instanceof c||r instanceof p&&r.need2CreateLexEnv())&&t++,i=r.findLocal(e),i)return(0,n.LOGD)(this.debugTag,"scope.find ("+e+") :"),(0,n.LOGD)(void 0,i),{scope:r,level:a,v:i};r=r.getParent()}return(0,n.LOGD)(this.debugTag,"scope.find ("+e+") : undefined"),{scope:void 0,level:0,v:void 0}}findDeclPos(e){let t,r=this;for(;r;){if(r.hasDecl(e)){t=r;break}r=r.getParent()}return t}setDecls(e){this.decls.push(e)}hasDecl(e){let t=this.decls;for(let r=0;r<t.length;r++)if(t[r].name==e)return!0;return!1}getDecl(e){let t=this.decls;for(let r=0;r<t.length;r++)if(t[r].name==e)return t[r]}getDecls(){return this.decls}getCallOpt(){return this.callOpt}setCallOpt(e){if(this instanceof _)this.callOpt.add(e);else{let t=this.parent;for(;null!=t;){if(t instanceof _){t.callOpt.add(e);break}t=t.parent}}}setArgumentsOrRestargs(){this.isArgumentsOrRestargs=!0}getArgumentsOrRestargs(){return this.isArgumentsOrRestargs}}t.Scope=s;class c extends s{constructor(){super(...arguments),this.startLexIdx=0,this.needCreateLexEnv=!1,this.parameters=[],this.useArgs=!1,this.node=void 0,this.parentVariableScope=null,this.childVariableScope=[],this.lexVarInfo=new Map}getLexVarInfo(){return this.lexVarInfo}getBindingNode(){return this.node}setParentVariableScope(e){this.parentVariableScope=e}getParentVariableScope(){return this.parentVariableScope}getChildVariableScope(){return this.childVariableScope}addChildVariableScope(e){this.childVariableScope.push(e)}addParameter(e,t,r){(0,n.LOGD)(this.debugTag,"VariableScope.addArg("+e+"), kind("+t+")","argIdx("+r+")");let o=this.add(e,t,a.INITIALIZED);if(!(o instanceof i.LocalVariable))throw new Error("Error: argument must be local variable!");return this.parameters.push(o),o}addFuncName(e){let t=this.name2variable.get("4funcObj");this.name2variable.set(e,t)}need2CreateLexEnv(){return this.needCreateLexEnv}pendingCreateEnv(){this.needCreateLexEnv=!0}getNumLexEnv(){return this.startLexIdx}getParametersCount(){return this.parameters.length}getParameters(){return this.parameters}getLexVarIdx(){return this.needCreateLexEnv=!0,this.startLexIdx++}setLexVar(e,t){if(!e.isLexVar){let t=e.setLexVar(this);this.lexVarInfo.set(e.getName(),t)}(0,n.LOGD)(this.debugTag,"VariableScope.setLexVar("+e.idxLex+")");let r=t;for(;r&&r!=this;)(r instanceof c||r instanceof p&&r.need2CreateLexEnv())&&r.pendingCreateEnv(),r=r.getParent()}setUseArgs(e){this.useArgs=e}getUseArgs(){return this.useArgs}}t.VariableScope=c;class l extends c{constructor(e){super(),this.node=e||void 0}add(e,t,r){let a;return(0,n.LOGD)(this.debugTag,"globalscope.add ("+e+"), kind:"+t),t==i.VarDeclarationKind.NONE||t==i.VarDeclarationKind.VAR||t==i.VarDeclarationKind.FUNCTION?(a=new i.GlobalVariable(t,e),this.globals.push(a)):(a=new i.LocalVariable(t,e,r),this.locals.push(a)),this.name2variable.set(e,a),a}}t.GlobalScope=l;class u extends c{constructor(e){super(),this.node=e||void 0}add(e,t,r){let a;return(0,n.LOGD)(this.debugTag,"modulescope.add ("+e+"), kind:"+t),t==i.VarDeclarationKind.NONE?(a=new i.GlobalVariable(t,e),this.globals.push(a)):t==i.VarDeclarationKind.VAR||t==i.VarDeclarationKind.FUNCTION?(a=new i.LocalVariable(t,e),this.locals.push(a)):(a=new i.LocalVariable(t,e,r),this.locals.push(a)),this.name2variable.set(e,a),a}}t.ModuleScope=u;class _ extends c{constructor(e,t){super(),this.parameterLength=0,this.funcName="",this.parent=e||void 0,this.node=t||void 0}setParameterLength(e){this.parameterLength=e}getParameterLength(){return this.parameterLength}setFuncName(e){this.funcName=e}getFuncName(){return this.funcName}getParent(){return this.parent}add(e,t,r){let a;if((0,n.LOGD)(this.debugTag,"functionscope.add ("+e+"), kind:"+t),t==i.VarDeclarationKind.NONE){let r=this.getRootScope();if(!(r instanceof l||r instanceof u))throw a=void 0,new Error("Error: global variable must be defined in global scope");a=r.add(e,t)}else t==i.VarDeclarationKind.VAR||t==i.VarDeclarationKind.FUNCTION?(a=new i.LocalVariable(t,e),this.locals.push(a),this.name2variable.set(e,a)):(a=new i.LocalVariable(t,e,r),this.locals.push(a),this.name2variable.set(e,a));return a}}t.FunctionScope=_;class d extends s{constructor(e){super(),this.parent=e}setLexVar(e,t){this.getNearestLexicalScope().setLexVar(e,t)}add(e,t,r){let a;if((0,n.LOGD)(this.debugTag,"localscope.add ("+e+"), kind:"+t),t==i.VarDeclarationKind.NONE){let i=this.getRootScope();return i instanceof l||i instanceof u?i.add(e,t,r):void(0,n.LOGE)(void 0,"Error: the root of this scope is not global scope, it is wrong")}return t==i.VarDeclarationKind.VAR?a=this.getNearestVariableScope().add(e,t):(a=new i.LocalVariable(t,e,r),this.locals.push(a),this.name2variable.set(e,a)),a}}t.LocalScope=d;class p extends d{constructor(e){super(e),this.startLexIdx=0,this.needCreateLexEnv=!1,this.lexVarInfo=new Map}setLexVar(e,t){if(!e.isLexVar){let t=e.setLexVar(this);this.lexVarInfo.set(e.getName(),t)}(0,n.LOGD)(this.debugTag,"LoopScope.setLexVar("+e.idxLex+")");let r=t;for(;r&&r!=this;)(r instanceof c||r instanceof p&&r.need2CreateLexEnv())&&r.pendingCreateEnv(),r=r.getParent()}getLexVarInfo(){return this.lexVarInfo}need2CreateLexEnv(){return this.needCreateLexEnv}pendingCreateEnv(){this.needCreateLexEnv=!0}getLexVarIdx(){return this.needCreateLexEnv=!0,this.startLexIdx++}getNumLexEnv(){return this.startLexIdx}}t.LoopScope=p},"./src/statement/classStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.checkValidUseSuperBeforeSuper=t.compileSuperProperty=t.shouldReturnThisForConstruct=t.setPrototypeAttributes=t.getClassNameForConstructor=t.defineClassMember=t.extractCtorOfClass=t.compileSuperCall=t.compileConstructor=t.compileReturnThis4Ctor=t.compileDefaultInitClassMembers=t.compileDefaultConstructor=t.AddCtor2Class=t.compileClassDeclaration=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/literal.ts"),c=r("./src/base/lreference.ts"),l=r("./src/base/properties.ts"),u=r("./src/base/util.ts"),_=r("./src/base/vregisterCache.ts"),d=r("./src/expression/arrayLiteralExpression.ts"),p=r("./src/expression/objectLiteralExpression.ts"),f=r("./src/expression/parenthesizedExpression.ts"),g=a(r("./src/jshelpers.js")),m=r("./src/pandagen.ts"),y=r("./src/scope.ts");function h(e,t,r){let n=e.getPandaGen(),i=n.getTemp(),a=n.getTemp(),s=!1;o.isMethodDeclaration(t.getValue())?s=C(e,r,i,a,t.getValue()):(e.compileExpression(t.getValue()),s=A(e,t.getValue().parent,r,i,a)),n.storeOwnProperty(t.getValue().parent,s?i:r,t.getName()),n.freeTemps(i,a),t.setCompiled()}function v(e,t,r){let n=e.getPandaGen(),i=t.parent.members;for(let t=0;t<i.length;t++){let r=i[t];if(o.isPropertyDeclaration(r)&&!g.hasStaticModifier(r)){let t=c.LReference.generateLReference(e,r.name,!0);r.initializer&&e.compileExpression(r.initializer),t.setValue()}}if(r)return;let a=n.getTemp();e.getThis(t,a),n.loadAccumulator(t,a),N(e,t),n.return(t),n.freeTemps(a)}function b(e,t,r,n){let i=e.getPandaGen(),a=e.getCurrentScope(),{scope:o,level:s,v:c}=a.find("this");if(e.setCallOpt(o,"this"),e.setCallOpt(o,"4newTarget"),o&&s>=0){let e=a,t=!1;for(;e!=o;)e instanceof y.VariableScope&&(t=!0),e=e.getParent();t&&o.setLexVar(c,a),t&&a instanceof y.FunctionScope&&a.setCallOpt("0newTarget")}if(n){let r=i.getTemp();(0,d.createArrayFromElements)(t,e,t.arguments,r),x(t,e),i.superCallSpread(t,r),i.freeTemps(r)}else{let n=r.length,a=n?r[0]:(0,_.getVregisterCache)(i,_.CacheList.undefined);x(t,e),i.superCall(t,n,a)}let l=i.getTemp();i.storeAccumulator(t,l),N(e,t),i.loadAccumulator(t,l),i.freeTemps(l),e.setThis(t)}function x(e,t){let r=t.getRecorder(),n=t.getPandaGen(),i=g.getContainingFunctionDeclaration(e);if(i&&r.getScopeOfNode(i))if(o.isConstructorDeclaration(i))n.loadAccumulator(e,(0,_.getVregisterCache)(n,_.CacheList.FUNC));else{let t=g.getContainingFunctionDeclaration(i),a=r.getScopeOfNode(t);a.pendingCreateEnv();let s=1;for(;!o.isConstructorDeclaration(t);)t=g.getContainingFunctionDeclaration(t),a.pendingCreateEnv(),s++;let c=a.findLocal("4funcObj");a.setLexVar(c,a);let l=c.idxLex;n.loadLexicalVar(e,s,l)}}function D(e){let t=e.members;for(let e=0;e<t.length;e++){let r=t[e];if(o.isConstructorDeclaration(r))return r}}function S(e,t,r,n,i){let a=!1;if(r==l.PropertyKind.Computed||r==l.PropertyKind.Spread){let i=new l.Property(r,e);i.setValue(t),g.hasStaticModifier(t)?(a=!0,n.push(i)):n.unshift(i)}else{let s=(0,l.propertyKeyAsString)(e);if(!function(e,t,r,n){if(e.has(t)){let i=e.get(t);if(r==l.PropertyKind.Accessor){if(o.isGetAccessorDeclaration(n)){if(!k(i.getGetter(),n))return!1;i.setGetter(n)}else if(o.isSetAccessorDeclaration(n)){if(!k(i.getSetter(),n))return!1;i.setSetter(n)}}else{if(!k(i.getValue(),n))return!1;i.setValue(n),i.setKind(r)}return!0}return!1}(i,s,r,t)){let c=new l.Property(r,e);r==l.PropertyKind.Accessor?o.isGetAccessorDeclaration(t)?c.setGetter(t):o.isSetAccessorDeclaration(t)&&c.setSetter(t):c.setValue(t),g.hasStaticModifier(t)?(a=!0,n.push(c)):n.unshift(c),i.set(s,c)}}return a}function E(e,t,r,n){let i=e.getPandaGen();switch(t.getValue().kind){case o.SyntaxKind.PropertyDeclaration:{let a=t.getValue().initializer;a&&(e.compileExpression(a),i.storeOwnProperty(t.getValue(),r,n));break}case o.SyntaxKind.MethodDeclaration:{let a=i.getTemp(),o=i.getTemp(),s=C(e,r,a,o,t.getValue());i.storeOwnProperty(t.getValue(),s?a:r,n,!0),i.freeTemps(a,o);break}case o.SyntaxKind.GetAccessor:{let a=i.getTemp(),o=i.getTemp(),s=t.getValue(),c=C(e,r,o,a,s);i.defineGetterSetterByValue(s,c?o:r,n,a,(0,_.getVregisterCache)(i,_.CacheList.undefined),!0),i.freeTemps(a,o);break}case o.SyntaxKind.SetAccessor:{let a=i.getTemp(),o=t.getValue(),s=i.getTemp(),c=C(e,r,s,a,o);i.defineGetterSetterByValue(o,c?s:r,n,(0,_.getVregisterCache)(i,_.CacheList.undefined),a,!0),i.freeTemps(a,s);break}}i.freeTemps(n)}function T(e,t,r,n){let i,a=e.getTemp(),s=e.getTemp(),c=e.getTemp(),l=e.getTemp(),u=!1;if(void 0!==n.getGetter()){let e=n.getGetter();i=e,u=C(t,r,l,a,e)}if(void 0!==n.getSetter()){let e=n.getSetter();i=e,u=C(t,r,l,s,e)}e.loadAccumulatorString(i,String(n.getName())),e.storeAccumulator(i,c),void 0!==n.getGetter()&&void 0!==n.getSetter()?e.defineGetterSetterByValue(i,u?l:r,c,a,s,!1):o.isGetAccessorDeclaration(i)?e.defineGetterSetterByValue(i,u?l:r,c,a,(0,_.getVregisterCache)(e,_.CacheList.undefined),!1):e.defineGetterSetterByValue(i,u?l:r,c,(0,_.getVregisterCache)(e,_.CacheList.undefined),s,!1),e.freeTemps(a,s,c,l)}function C(e,t,r,n,i){let a=e.getPandaGen();return g.hasStaticModifier(i)?((0,p.createMethodOrAccessor)(a,e,t,i),a.storeAccumulator(i,n),!1):(a.storeAccumulator(i,n),a.loadObjProperty(i,t,"prototype"),a.storeAccumulator(i,r),a.loadAccumulator(i,n),(0,p.createMethodOrAccessor)(a,e,r,i),a.storeAccumulator(i,n),!0)}function k(e,t){if(e&&t){let r=e.modifiers,n=t.modifiers;if(r&&n)return r.length==n.length&&r.every((function(e,t){return e===n[t]}));if(!r&&!n)return!0}else if(!e&&!t)return!0;return!1}function A(e,t,r,n,i){let a=e.getPandaGen();return a.storeAccumulator(t,i),!g.hasStaticModifier(t)&&(a.loadObjProperty(t,r,"prototype"),a.storeAccumulator(t,n),a.loadAccumulator(t,i),!0)}function N(e,t){let r=e.getPandaGen(),n=g.findAncestor(t,o.isConstructorDeclaration);if(!n||!o.isClassLike(n.parent)||!g.getClassExtendsHeritageElement(n.parent))return;let i=r.getTemp();e.getThis(t,i),r.loadAccumulator(t,i),r.freeTemps(i),(g.isSuperProperty(t)||o.isConstructorDeclaration(t)||t.kind==o.SyntaxKind.ThisKeyword||t.kind==o.SyntaxKind.ReturnStatement)&&r.throwIfSuperNotCorrectCall(n,0),g.isSuperCall(t)&&r.throwIfSuperNotCorrectCall(n,1)}t.compileClassDeclaration=function(e,t){e.pushScope(t);let r=e.getPandaGen(),n=[];n=function(e,t,r){let n,i=[],a=0;e.members.forEach((e=>{switch(e.kind){case o.SyntaxKind.Constructor:n=e;break;case o.SyntaxKind.PropertyDeclaration:if(!g.hasStaticModifier(e)){t.push(e);break}if(o.isComputedPropertyName(e.name))S(e.name,e,l.PropertyKind.Computed,i,r)&&a++;else{let t=(0,l.getPropName)(e.name),n=e.initializer;n?(0,l.isConstantExpr)(n)?S(t,n,l.PropertyKind.Constant,i,r)&&a++:S(t,n,l.PropertyKind.Variable,i,r)&&a++:(n=o.createIdentifier("undefined"),S(t,n,l.PropertyKind.Constant,i,r)&&a++)}break;case o.SyntaxKind.MethodDeclaration:{let t=(0,l.getPropName)(e.name);"string"==typeof t||"number"==typeof t?S(t,e,l.PropertyKind.Variable,i,r)&&a++:S(t,e,l.PropertyKind.Computed,i,r)&&a++;break}case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:{let t=(0,l.getPropName)(e.name);"string"==typeof t||"number"==typeof t?S(t,e,l.PropertyKind.Accessor,i,r)&&a++:S(t,e,l.PropertyKind.Computed,i,r)&&a++;break}case o.SyntaxKind.SemicolonClassElement:break;default:throw new Error("Unreachable Kind")}}));let s=i.slice(i.length-a);return i=i.slice(0,i.length-a),i=i.reverse(),i.push(...s),n&&S("constructor",n,l.PropertyKind.Variable,i,r),i}(t,[],new Map);let i=r.getTemp(),a=function(e,t){let r=e.getPandaGen(),n=r.getTemp();if(t.heritageClauses&&t.heritageClauses.length){let i=t.heritageClauses[0];if(i.types.length){let t=i.types[0];return e.compileExpression(t.expression),r.storeAccumulator(t.expression,n),n}}return r.moveVreg(t,n,(0,_.getVregisterCache)(r,_.CacheList.HOLE)),n}(e,t),c=new s.LiteralBuffer,d=0,p=0,f=null!=D(t);for(;d<n.length;d++){let t=n[d],i=r.getTemp();if(t.getKind()==l.PropertyKind.Constant){p++;let n=new s.Literal(s.LiteralTag.STRING,String(t.getName()));c.addLiterals(n),e.compileExpression(t.getValue()),r.storeAccumulator(t.getValue(),i),t.setCompiled()}if(t.getKind()==l.PropertyKind.Variable){if(t.getValue().kind!=o.SyntaxKind.Constructor){g.hasStaticModifier(t.getValue())&&p++;let e=new s.Literal(s.LiteralTag.STRING,String(t.getName()));c.addLiterals(e)}if(o.isMethodDeclaration(t.getValue())){let r=new s.Literal(s.LiteralTag.METHOD,e.getCompilerDriver().getFuncInternalName(t.getValue(),e.getRecorder())),n=new s.Literal(s.LiteralTag.METHODAFFILIATE,(0,u.getParamLengthOfFunc)(t.getValue()));c.addLiterals(r,n)}else if(!o.isConstructorDeclaration(t.getValue())){let n=new s.Literal(s.LiteralTag.NULLVALUE,null);c.addLiterals(n),e.compileExpression(t.getValue()),r.storeAccumulator(t.getValue(),i)}t.setCompiled()}if(r.freeTemps(i),t.getKind()==l.PropertyKind.Computed||t.getKind()==l.PropertyKind.Accessor)break}let v=d-p,b=new s.Literal(s.LiteralTag.INTEGER,f?v-1:v);if(c.addLiterals(b),function(e,t,r,n){let i=m.PandaGen.getLiteralArrayBuffer();i.push(t);let a=e.getRecorder().getCtorOfClass(r),o=e.getCompilerDriver().getInternalNameForCtor(r,a),s=e.getPandaGen(),c=(0,u.getParameterLength4Ctor)(r),l=i.length-1;s.defineClassWithBuffer(r,o,l,c,n[0]),s.storeAccumulator(r,n[1])}(e,c,t,[a,i]),function(e,t,r){let n=e.getPandaGen();for(let i=0;i<t.length;i++){let a=t[i];if(!a.isCompiled())switch(a.getKind()){case l.PropertyKind.Constant:e.compileExpression(a.getValue()),n.storeOwnProperty(a.getValue().parent,r,a.getName());break;case l.PropertyKind.Variable:h(e,a,r);break;case l.PropertyKind.Computed:let t=n.getTemp();e.compileExpression(a.getName().expression),n.storeAccumulator(a.getValue(),t),E(e,a,r,t);break;case l.PropertyKind.Accessor:T(n,e,r,a);break;default:throw new Error("Unreachable PropertyKind for NullValue setting")}}}(e,n,i),r.loadAccumulator(t,i),t.name){let n=g.getTextOfIdentifierOrLiteral(t.name),i=e.getRecorder().getScopeOfNode(t);if(!o.isClassExpression(t)&&i.getParent()instanceof y.GlobalScope)r.stClassToGlobalRecord(t,n);else{let e=i.find(n);e.v.initialize(),r.storeAccToLexEnv(t,e.scope,e.level,e.v,!0)}}r.freeTemps(i,a),e.popScope()},t.AddCtor2Class=function(e,t,r){let n;if(g.getClassExtendsHeritageElement(t)){let e=o.factory.createParameterDeclaration(void 0,void 0,o.factory.createToken(o.SyntaxKind.DotDotDotToken),"args");n=o.factory.createConstructorDeclaration(void 0,void 0,[e],void 0)}else n=o.factory.createConstructorDeclaration(void 0,void 0,[],void 0);n=g.setParent(n,t),n=o.setTextRange(n,t);let i=o.factory.createBlock([]);i=g.setParent(i,n),i=o.setTextRange(i,t),n=o.factory.updateConstructorDeclaration(n,void 0,void 0,n.parameters,i),n=g.setParent(n,t),n=o.setTextRange(n,t);let a=e.getScopeOfNode(t),s=e.buildVariableScope(r,n);s.setParent(a);let c=new y.LocalScope(s);c.setParent(s),e.setScopeMap(n,s),e.setScopeMap(n.body,c),e.recordFuncName(n),e.recordFunctionParameters(n),e.setCtorOfClass(t,n)},t.compileDefaultConstructor=function(e,t){let r=o.factory.createCallExpression(o.factory.createSuper(),void 0,[o.factory.createSpreadElement(o.factory.createIdentifier("args"))]);r=g.setParent(r,t),r=o.setTextRange(r,t),b(e,r,[],!0),v(e,t,!1)},t.compileDefaultInitClassMembers=function(e,t){let r=e.getPandaGen(),n=t.parent.members;for(let i=0;i<n.length;i++){let a=n[i];if(o.isPropertyDeclaration(a)&&!g.hasStaticModifier(a)){if(!a.initializer)continue;let n="",i=r.getTemp();switch(e.getThis(t,i),e.compileExpression(a.initializer),a.name.kind){case o.SyntaxKind.Identifier:case o.SyntaxKind.StringLiteral:case o.SyntaxKind.NumericLiteral:n=g.getTextOfIdentifierOrLiteral(a.name),r.storeObjProperty(t,i,n);break;case o.SyntaxKind.ComputedPropertyName:{let o=r.getTemp();r.storeAccumulator(t,o),n=r.getTemp(),e.compileExpression(a.name.expression),r.storeAccumulator(t,n),r.loadAccumulator(t,o),r.storeObjProperty(t,i,n),r.freeTemps(o,n);break}default:throw new Error("Private Identifier has not been supported")}r.freeTemps(i)}}},t.compileReturnThis4Ctor=function(e,t,r){let n=e.getPandaGen();if(r)return;let i=n.getTemp();e.getThis(t,i),n.loadAccumulator(t,i),N(e,t),n.return(t),n.freeTemps(i)},t.compileConstructor=v,t.compileSuperCall=b,t.extractCtorOfClass=D,t.defineClassMember=S,t.getClassNameForConstructor=function(e){let t="";if(e.name)t=g.getTextOfIdentifierOrLiteral(e.name);else{let r=(0,f.findOuterNodeOfParenthesis)(e);if(o.isVariableDeclaration(r)){let e=r.name;o.isIdentifier(e)&&(t=g.getTextOfIdentifierOrLiteral(e))}else if(o.isBinaryExpression(r)){let e=r.left;r.operatorToken.kind==o.SyntaxKind.EqualsToken&&o.isIdentifier(e)&&(t=g.getTextOfIdentifierOrLiteral(e))}else if(o.isPropertyAssignment(r)){let e=r.name;(o.isIdentifier(e)||o.isStringLiteral(e)||o.isNumericLiteral(e))&&(t=g.getTextOfIdentifierOrLiteral(e))}}return t},t.setPrototypeAttributes=A,t.shouldReturnThisForConstruct=function(e){let t=g.getContainingFunction(e),r=e.expression;return!(!t||!o.isConstructorDeclaration(t)||r&&!(0,u.isUndefinedIdentifier)(r)&&r.kind!=o.SyntaxKind.ThisKeyword)},t.compileSuperProperty=function(e,t,r,n){N(e,t);let i=e.getPandaGen();e.getThis(t,r),i.loadSuperProperty(t,r,n)},t.checkValidUseSuperBeforeSuper=N},"./src/statement/forOfStatement.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIteratorRecord=t.compileForOfStatement=t.IteratorRecord=t.IteratorType=void 0;const n=r("./src/base/vregisterCache.ts"),i=r("./src/statement/labelTarget.ts"),a=r("./src/irnodes.ts"),o=r("./src/statement/tryStatement.ts");var s;!function(e){e[e.Normal=0]="Normal",e[e.Async=1]="Async"}(s=t.IteratorType||(t.IteratorType={}));class c{constructor(e,t,r=s.Normal){this.type=r,this.object=e,this.nextMethod=t}getType(){return this.type}getObject(){return this.object}getNextMethod(){return this.nextMethod}}function l(e,t,r,n,i){return function(e,t,r){if(r==s.Async)throw new Error("Async Iterator haven't been supported");e.getIterator(t)}(e,t,i),e.storeAccumulator(t,n),e.loadObjProperty(t,n,"next"),e.storeAccumulator(t,r),new c(n,r,i)}t.IteratorRecord=c,t.compileForOfStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),c=new a.Label,u=new a.Label,_=r.getTemp(),d=r.getTemp(),p=r.getTemp(),f=t.getRecorder().getScopeOfNode(e).need2CreateLexEnv(),g=r.getTemp(),m=s.Normal;t.compileExpression(e.expression);let y=l(r,e,d,p,m);r.loadAccumulator(e,(0,n.getVregisterCache)(r,n.CacheList.False)),r.storeAccumulator(e,_);let h=new i.LabelTarget(e,u,c,f);i.LabelTarget.pushLabelTarget(h),i.LabelTarget.updateName2LabelTarget(e.parent,h);let v=new o.TryBuilderWithForOf(t,r,e,_,y,h,f,f?g:void 0);t.constructTry(e,v,c),r.label(e,u),i.LabelTarget.popLabelTarget(),f&&(r.popLexicalEnv(e),t.popEnv()),r.freeTemps(_,d,p,g),t.popScope()},t.getIteratorRecord=l},"./src/statement/labelTarget.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LabelTarget=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/diagnostic.ts"),l=r("./src/statement/tryStatement.ts");class u{constructor(e,t,r,n=!1){this.node=e,this.breakTargetLabel=t,this.continueTargetLabel=r,this.hasLoopEnv=n,this.loopEnvLevel=n?1:0,this.tryStatement=l.TryStatement.getCurrentTryStatement()}getBreakTargetLabel(){return this.breakTargetLabel}getContinueTargetLabel(){return this.continueTargetLabel}getLoopEnvLevel(){return this.loopEnvLevel}getTryStatement(){return this.tryStatement}getCorrespondingNode(){return this.node}increaseLoopEnvLevel(){this.loopEnvLevel+=1}decreaseLoopEnvLevel(){this.loopEnvLevel-=1}static isLabelTargetsEmpty(){return 0==u.labelTargetStack.length}static getCloseLabelTarget(){if(!u.isLabelTargetsEmpty())return u.labelTargetStack[u.labelTargetStack.length-1]}static getCloseContinueTarget(){let e=u.getCloseLabelTarget();if(e)return e.continueTargetLabel}static pushLabelTarget(e){e.hasLoopEnv&&(l.TryStatement.getCurrentTryStatement()&&l.TryStatement.getCurrentTryStatement().increaseLoopEnvLevel(),u.labelTargetStack.forEach((e=>e.increaseLoopEnvLevel()))),u.labelTargetStack.push(e)}static popLabelTarget(){!u.isLabelTargetsEmpty()&&u.labelTargetStack.pop().hasLoopEnv&&(l.TryStatement.getCurrentTryStatement()&&l.TryStatement.getCurrentTryStatement().decreaseLoopEnvLevel(),u.labelTargetStack.forEach((e=>e.decreaseLoopEnvLevel())))}static updateName2LabelTarget(e,t){for(;e.kind==o.SyntaxKind.LabeledStatement;){let r=e,n=s.getTextOfIdentifierOrLiteral(r.label);if(u.name2LabelTarget.has(n))throw new c.DiagnosticError(e,c.DiagnosticCode.Duplicate_label_0);u.name2LabelTarget.set(n,t),e=e.parent}}static deleteName2LabelTarget(e){u.name2LabelTarget.delete(e)}static getLabelTarget(e){let t;if(e.label){let r=s.getTextOfIdentifierOrLiteral(e.label);t=u.name2LabelTarget.get(r)}else t=u.getCloseLabelTarget();return t}}t.LabelTarget=u,u.name2LabelTarget=new Map,u.labelTargetStack=[]},"./src/statement/loopStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileForInStatement=t.compileForStatement=t.compileWhileStatement=t.compileDoStatement=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/lreference.ts"),c=r("./src/base/vregisterCache.ts"),l=r("./src/irnodes.ts"),u=r("./src/statement/labelTarget.ts");t.compileDoStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=!!n.need2CreateLexEnv(),a=new l.Label,o=new l.Label,s=new l.Label,c=new u.LabelTarget(e,o,s,i);u.LabelTarget.pushLabelTarget(c),u.LabelTarget.updateName2LabelTarget(e.parent,c);let _=r.getTemp();r.label(e,a),i&&(r.createLexEnv(e,_,n),t.pushEnv(_)),t.compileStatement(e.statement),r.label(e,s),t.compileCondition(e.expression,o),i&&r.popLexicalEnv(e),r.branch(e,a),r.label(e,o),i&&(r.popLexicalEnv(e),t.popEnv()),u.LabelTarget.popLabelTarget(),r.freeTemps(_),t.popScope()},t.compileWhileStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=!!n.need2CreateLexEnv(),a=new l.Label,o=new l.Label,s=new u.LabelTarget(e,o,a,i);u.LabelTarget.pushLabelTarget(s),u.LabelTarget.updateName2LabelTarget(e.parent,s);let c=r.getTemp();r.label(e,a),i&&(r.createLexEnv(e,c,n),t.pushEnv(c)),t.compileCondition(e.expression,o),t.compileStatement(e.statement),i&&r.popLexicalEnv(e),r.branch(e,a),r.label(e,o),i&&(r.popLexicalEnv(e),t.popEnv()),u.LabelTarget.popLabelTarget(),r.freeTemps(c),t.popScope()},t.compileForStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=n.need2CreateLexEnv(),a=r.getTemp(),s=!1;i&&e.initializer&&o.isVariableDeclarationList(e.initializer)&&n.getName2variable().forEach((e=>{e.isLetOrConst()&&e.isLexVar&&(s=!0)}));let c=new l.Label,_=new l.Label,d=new l.Label,p=new u.LabelTarget(e,_,d,i);if(u.LabelTarget.pushLabelTarget(p),u.LabelTarget.updateName2LabelTarget(e.parent,p),e.initializer&&o.isVariableDeclarationList(e.initializer)&&s&&i){r.createLexEnv(e,a,n),t.pushEnv(a),e.initializer.declarations.forEach((e=>t.compileVariableDeclaration(e))),r.label(e,c),e.condition&&t.compileCondition(e.condition,_),t.compileStatement(e.statement),r.label(e,d);let i=new Map,o=new Array;n.getName2variable().forEach(((a,s)=>{if(a.isLexVar&&a.isLetOrConst()){let a=r.getTemp();o.push(a);let c=n.find(s);i.set(c,a),t.loadTarget(e,c),r.storeAccumulator(e,a)}})),r.popLexicalEnv(e),r.createLexEnv(e,a,n),i.forEach(((t,n)=>{let i=n.v.idxLex;r.storeLexicalVar(e,n.level,i,t)})),e.incrementor&&t.compileExpression(e.incrementor),r.branch(e,c),r.label(e,_),r.popLexicalEnv(e),t.popEnv(),r.freeTemps(...o)}else e.initializer&&(o.isVariableDeclarationList(e.initializer)?e.initializer.declarations.forEach((e=>t.compileVariableDeclaration(e))):t.compileExpression(e.initializer)),r.label(e,c),i&&(r.createLexEnv(e,a,n),t.pushEnv(a)),e.condition&&t.compileCondition(e.condition,_),t.compileStatement(e.statement),r.label(e,d),e.incrementor&&t.compileExpression(e.incrementor),i&&r.popLexicalEnv(e),r.branch(e,c),r.label(e,_),i&&(r.popLexicalEnv(e),t.popEnv());u.LabelTarget.popLabelTarget(),r.freeTemps(a),t.popScope()},t.compileForInStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=!!n.need2CreateLexEnv(),a=r.getTemp(),_=new l.Label,d=new l.Label,p=new u.LabelTarget(e,d,_,i);u.LabelTarget.pushLabelTarget(p),u.LabelTarget.updateName2LabelTarget(e.parent,p);let f=r.getTemp(),g=r.getTemp();t.compileExpression(e.expression),r.getPropIterator(e),r.storeAccumulator(e,f),r.label(e,_),i&&(r.createLexEnv(e,a,n),t.pushEnv(a)),r.getNextPropName(e,f),r.storeAccumulator(e,g),r.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,c.getVregisterCache)(r,c.CacheList.undefined),d);let m=s.LReference.generateLReference(t,e.initializer,!1);r.loadAccumulator(e,g),m.setValue(),t.compileStatement(e.statement),i&&r.popLexicalEnv(e),r.branch(e,_),r.label(e,d),i&&(r.popLexicalEnv(e),t.popEnv()),r.freeTemps(a,f,g),u.LabelTarget.popLabelTarget(),t.popScope()}},"./src/statement/returnStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileReturnStatement=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/vregisterCache.ts"),c=r("./src/compiler.ts"),l=r("./src/function/asyncFunctionBuilder.ts"),u=r("./src/irnodes.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/statement/classStatement.ts");function p(e,t,r){let n=e.expression,i=r.getPandaGen();n?r.compileExpression(n):i.loadAccumulator(e,(0,s.getVregisterCache)(i,s.CacheList.undefined)),i.storeAccumulator(e,t),r.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),i.loadAccumulator(e,t);let a=r.getFuncBuilder();if(a instanceof l.AsyncFunctionBuilder){let t=i.getTemp();i.storeAccumulator(e,t),a.resolve(e,t),i.freeTemps(t)}i.return(e)}t.compileReturnStatement=function(e,t){let r=t.getPandaGen(),n=r.getTemp();!function(e){let t=_.getContainingFunctionDeclaration(e);return!(!t||!o.isConstructorDeclaration(t))&&!!(t&&t.parent&&t.parent.heritageClauses)}(e)?p(e,n,t):function(e,t,r){let n=r.getPandaGen(),i=e.expression,a=n.getTemp();if(i){if(o.isCallExpression(i)&&i.expression.kind==o.SyntaxKind.SuperKeyword)return p(e,t,r),void n.freeTemps(a);i.kind==o.SyntaxKind.ThisKeyword?n.moveVreg(e,a,(0,s.getVregisterCache)(n,s.CacheList.True)):(r.compileExpression(i),n.binary(e,o.SyntaxKind.EqualsEqualsEqualsToken,(0,s.getVregisterCache)(n,s.CacheList.undefined)),n.storeAccumulator(e,a))}else n.moveVreg(e,a,(0,s.getVregisterCache)(n,s.CacheList.True));let l=new u.Label,_=new u.Label;n.loadAccumulator(e,a),n.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(n,s.CacheList.False),l);let f=n.getTemp();r.getThis(e,f),n.loadAccumulator(e,f),n.branch(e,_),n.label(e,l),i?r.compileExpression(i):n.loadAccumulator(e,(0,s.getVregisterCache)(n,s.CacheList.undefined)),n.label(e,_),n.storeAccumulator(e,t),r.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0);let g=new u.Label,m=new u.Label;n.loadAccumulator(e,a),n.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(n,s.CacheList.False),m),(0,d.checkValidUseSuperBeforeSuper)(r,e),n.branch(e,g),n.label(e,m),n.loadAccumulator(e,t),n.label(e,g),n.return(e),n.freeTemps(a,f)}(e,n,t),r.freeTemps(n)}},"./src/statement/switchStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileSwitchStatement=t.SwitchBase=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/irnodes.ts"),c=r("./src/diagnostic.ts"),l=r("./src/statement/labelTarget.ts");class u{constructor(e,t,r,n){this.caseLabels=[],this.stmt=e,this.compiler=t,this.pandaGen=t.getPandaGen(),this.switchEndLabel=n;for(let e=0;e<r;e++){let e=new s.Label;this.caseLabels.push(e)}let i=new l.LabelTarget(e,n,l.LabelTarget.getCloseContinueTarget());l.LabelTarget.pushLabelTarget(i),l.LabelTarget.updateName2LabelTarget(e.parent,i)}setCasePosition(e){let t=this.stmt.caseBlock.clauses[e];this.pandaGen.label(t,this.caseLabels[e])}compileTagOfSwitch(e){this.compiler.compileExpression(this.stmt.expression),this.pandaGen.storeAccumulator(this.stmt.expression,e)}compileCaseStatements(e){this.stmt.caseBlock.clauses[e].statements.forEach((e=>{this.compiler.compileStatement(e)}))}JumpIfCase(e,t){let r=this.stmt,n=this.pandaGen,i=r.caseBlock.clauses[t];this.compiler.compileExpression(i.expression),n.condition(i,o.SyntaxKind.ExclamationEqualsEqualsToken,e,this.caseLabels[t])}JumpToDefault(e){let t=this.stmt.caseBlock.clauses[e];this.pandaGen.branch(t,this.caseLabels[e])}checkDefaultNum(e){if(e>1)throw new c.DiagnosticError(this.stmt,c.DiagnosticCode.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement)}break(){this.pandaGen.branch(this.stmt,this.switchEndLabel)}end(){this.pandaGen.label(this.stmt,this.switchEndLabel)}}t.SwitchBase=u,t.compileSwitchStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=e.caseBlock.clauses.length,i=new s.Label,a=new u(e,t,n,i),c=r.getTemp();a.compileTagOfSwitch(c);let _=e.caseBlock.clauses,d=0,p=0;for(let e=0;e<_.length;e++){let t=_[e];o.isDefaultClause(t)?(d=e,p++):a.JumpIfCase(c,e)}a.checkDefaultNum(p),d>0?a.JumpToDefault(d):a.break();for(let e=0;e<_.length;e++)a.setCasePosition(e),a.compileCaseStatements(e);a.end(),r.freeTemps(c),l.LabelTarget.popLabelTarget(),t.popScope()}},"./src/statement/tryStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.generateCatchTables=t.updateCatchTables=t.TryBuilderWithForOf=t.TryBuilder=t.TryBuilderBase=t.TryStatement=t.CatchTable=t.LabelPair=t.transformTryCatchFinally=void 0;const o=r("./src/compiler.ts"),s=r("./src/irnodes.ts"),c=a(r("./node_modules/typescript/lib/typescript.js")),l=r("./src/scope.ts"),u=r("./src/base/lreference.ts"),_=r("./src/base/vregisterCache.ts"),d=a(r("./src/jshelpers.js"));t.transformTryCatchFinally=function(e,t){let r=t.getScopeOfNode(e),n=new l.LocalScope(r),i=new l.LocalScope(n);t.getScopeOfNode(e.tryBlock).setParent(i),t.getScopeOfNode(e.catchClause).setParent(i);const a=c.factory.createTryStatement(e.tryBlock,e.catchClause,void 0);t.setScopeMap(a,i);const o=[a];o[0]=d.setParent(o[0],e),o[0]=c.setTextRange(o[0],e.tryBlock);let s=c.factory.updateBlock(e.tryBlock,o);return e=c.factory.updateTryStatement(e,s,void 0,e.finallyBlock),t.setScopeMap(e.tryBlock,n),e};class p{constructor(e,t){this.beginLabel=e,this.endLabel=t}getBeginLabel(){return this.beginLabel}getEndLabel(){return this.endLabel}}t.LabelPair=p,t.CatchTable=class{constructor(e,t,r){this.labelPairs=[],this.catchBeginLabel=t,this.labelPairs.push(r),this.depth=f.getcurrentTryStatementDepth(),e.getCatchMap().set(t,this)}getLabelPairs(){return this.labelPairs}getCatchBeginLabel(){return this.catchBeginLabel}getDepth(){return this.depth}splitLabelPair(e){let t=this.labelPairs.pop();t&&(this.labelPairs.push(new p(t.getBeginLabel(),e.getBeginLabel())),this.labelPairs.push(new p(e.getEndLabel(),t.getEndLabel())))}};class f{constructor(e,t,r){this.loopEnvLevel=0,f.currentTryStatementDepth++,this.outer=f.currentTryStatement,this.stmt=e,this.catchTable=t,r&&(this.trybuilder=r),f.currentTryStatement=this}destroy(){f.currentTryStatementDepth--,f.currentTryStatement=this.outer}static setCurrentTryStatement(e){f.currentTryStatement=e}static getCurrentTryStatement(){return f.currentTryStatement}static getcurrentTryStatementDepth(){return f.currentTryStatementDepth}getOuterTryStatement(){return this.outer}getStatement(){return this.stmt}getCatchTable(){return this.catchTable}getLoopEnvLevel(){return this.loopEnvLevel}increaseLoopEnvLevel(){this.loopEnvLevel+=1}decreaseLoopEnvLevel(){this.loopEnvLevel-=1}}t.TryStatement=f,f.currentTryStatementDepth=0;class g{constructor(e,t,r){this.compiler=e,this.pandaGen=t,this.stmt=r}}t.TryBuilderBase=g,t.TryBuilder=class extends g{constructor(e,t,r){super(e,t,r)}compileTryBlock(e){this.stmt.finallyBlock?this.tryStatement=new f(this.stmt,e,this):this.tryStatement=new f(this.stmt,e),this.compiler.compileStatement(this.stmt.tryBlock),this.tryStatement.destroy()}compileFinallyBlockIfExisted(){this.stmt.finallyBlock&&this.compiler.compileStatement(this.stmt.finallyBlock)}compileExceptionHandler(){let e=this.stmt.catchClause;if(e){this.compiler.pushScope(e),t=this.compiler,(r=e.variableDeclaration)&&t.compileVariableDeclaration(r);let n=e.block;this.compiler.pushScope(n),n.statements.forEach((e=>this.compiler.compileStatement(e))),this.compiler.popScope(),this.compiler.popScope()}else{let e=this.pandaGen.getTemp();this.pandaGen.storeAccumulator(this.stmt,e),this.compiler.compileStatement(this.stmt.finallyBlock),this.pandaGen.loadAccumulator(this.stmt,e),this.pandaGen.throw(this.stmt),this.pandaGen.freeTemps(e)}var t,r}compileFinalizer(e,t){this.compiler.compileStatement(this.stmt.finallyBlock)}},t.TryBuilderWithForOf=class extends g{constructor(e,t,r,n,i,a,o,s){super(e,t,r),this.labelTarget=a,this.doneReg=n,this.iterator=i,this.hasLoopEnv=o,this.loopEnv=s||void 0}compileTryBlock(e){let t=this.stmt,r=this.compiler,n=this.pandaGen;this.tryStatement=new f(t,e,this);let i=this.pandaGen.getTemp(),a=r.getRecorder().getScopeOfNode(t);n.loadAccumulator(t,(0,_.getVregisterCache)(n,_.CacheList.True)),n.storeAccumulator(t,this.doneReg),n.label(t,this.labelTarget.getContinueTargetLabel()),this.hasLoopEnv&&(n.createLexEnv(t,this.loopEnv,a),r.pushEnv(this.loopEnv)),this.compileIteratorNext(t,n,this.iterator,i),n.loadObjProperty(t,i,"done"),n.jumpIfTrue(t,this.labelTarget.getBreakTargetLabel()),n.loadObjProperty(t,i,"value"),n.storeAccumulator(t,i),n.loadAccumulator(t,(0,_.getVregisterCache)(n,_.CacheList.False)),n.storeAccumulator(t,this.doneReg);let o=u.LReference.generateLReference(this.compiler,t.initializer,!1);n.loadAccumulator(t,i),o.setValue(),this.compiler.compileStatement(t.statement),this.tryStatement.destroy(),n.freeTemps(i)}compileFinallyBlockIfExisted(){}compileExceptionHandler(){let e=this.pandaGen,t=new s.Label,r=e.getTemp();e.storeAccumulator(this.stmt,r),e.loadAccumulator(this.stmt,this.doneReg),e.condition(this.stmt.expression,c.SyntaxKind.ExclamationEqualsEqualsToken,(0,_.getVregisterCache)(e,_.CacheList.True),t),e.loadObjProperty(this.stmt,this.iterator.getObject(),"return"),e.storeAccumulator(this.stmt,this.iterator.getNextMethod()),e.condition(this.stmt,c.SyntaxKind.ExclamationEqualsEqualsToken,(0,_.getVregisterCache)(e,_.CacheList.undefined),t),e.call(this.stmt,[this.iterator.getNextMethod(),this.iterator.getObject()],!0),e.label(this.stmt,t),e.loadAccumulator(this.stmt,r),e.throw(this.stmt),e.freeTemps(r)}compileFinalizer(e,t){if(e==o.ControlFlowChange.Break||t!=this.labelTarget.getContinueTargetLabel()){let e=new s.Label,t=this.pandaGen.getTemp();this.pandaGen.loadObjProperty(this.stmt,this.iterator.getObject(),"return"),this.pandaGen.storeAccumulator(this.stmt,this.iterator.getNextMethod()),this.pandaGen.condition(this.stmt,c.SyntaxKind.ExclamationEqualsEqualsToken,(0,_.getVregisterCache)(this.pandaGen,_.CacheList.undefined),e),this.pandaGen.call(this.stmt,[this.iterator.getNextMethod(),this.iterator.getObject()],!0),this.pandaGen.storeAccumulator(this.stmt,t),this.pandaGen.throwIfNotObject(this.stmt,t),this.pandaGen.label(this.stmt,e),this.pandaGen.freeTemps(t)}}compileIteratorNext(e,t,r,n){t.call(e,[r.getNextMethod(),r.getObject()],!0),t.storeAccumulator(e,n),t.throwIfNotObject(e,n)}},t.updateCatchTables=function(e,t,r){for(;e!=t;e=null==e?void 0:e.getOuterTryStatement())e.getCatchTable().splitLabelPair(r);t.getCatchTable().splitLabelPair(r)},t.generateCatchTables=function(e){let t=[];return e.forEach((e=>{t.push(e)})),t.sort(((e,t)=>t.getDepth()-e.getDepth())),t}},"./src/strictMode.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isGlobalDeclare=t.setGlobalDeclare=t.isStrictMode=t.setGlobalStrict=t.checkStrictModeStatementList=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js"));let c=!0,l=!1;function u(e){let t;if(e.kind==o.SyntaxKind.SourceFile)t=e.statements;else{let r=e;if(!r||!r.body)return!1;r.body.kind==o.SyntaxKind.Block&&(t=r.body.statements)}if(null==t)return!1;for(const e of t){if(!s.isPrologueDirective(e))return!1;if(_(e))return!0}return!1}function _(e){let t=s.getSourceFileOfNode(e);const r=s.getSourceTextOfNodeFromSourceFile(t,e.expression);return'"use strict"'===r||"'use strict'"===r}t.checkStrictModeStatementList=u,t.setGlobalStrict=function(e){c=e},t.isStrictMode=function(e){return!!c||function(e){for(;e&&e.parent&&e.parent.kind!=o.SyntaxKind.SourceFile;){let t=s.getContainingFunctionDeclaration(e);if(!t)return!1;if(u(t))return!0;e=t}return!1}(e)},t.setGlobalDeclare=function(e){l=e},t.isGlobalDeclare=function(){return l}},"./src/syntaxCheckHelper.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isStatement=t.isOptionalParameter=t.isIncludeBackslash8Or9InString=t.isInBlockScope=t.isDeclInGlobal=t.visibilityToString=t.isBindingPattern=t.isGlobalIdentifier=t.allowLetAndConstDeclarations=t.isFunctionLikeDeclaration=t.isOriginalKeyword=t.isAssignmentOperator=t.isLeftHandSideExpression=t.isLeftHandSideExpressionKind=t.isEvalOrArgumentsIdentifier=t.isIncludeOctalEscapeSequence=t.stringLiteralIsInRegExp=t.isNewOrCallExpression=t.isOctalNumber=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js"));function c(e){return e.kind===o.SyntaxKind.NewExpression||e.kind===o.SyntaxKind.CallExpression}function l(e){switch(e){case o.SyntaxKind.NumericLiteral:case o.SyntaxKind.BigIntLiteral:case o.SyntaxKind.StringLiteral:case o.SyntaxKind.RegularExpressionLiteral:case o.SyntaxKind.NoSubstitutionTemplateLiteral:case o.SyntaxKind.Identifier:case o.SyntaxKind.FalseKeyword:case o.SyntaxKind.ImportKeyword:case o.SyntaxKind.NullKeyword:case o.SyntaxKind.SuperKeyword:case o.SyntaxKind.ThisKeyword:case o.SyntaxKind.TrueKeyword:case o.SyntaxKind.ArrayLiteralExpression:case o.SyntaxKind.ObjectLiteralExpression:case o.SyntaxKind.PropertyAccessExpression:case o.SyntaxKind.ElementAccessExpression:case o.SyntaxKind.CallExpression:case o.SyntaxKind.NewExpression:case o.SyntaxKind.TaggedTemplateExpression:case o.SyntaxKind.ParenthesizedExpression:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.TemplateExpression:case o.SyntaxKind.ClassExpression:case o.SyntaxKind.NonNullExpression:case o.SyntaxKind.MetaProperty:case o.SyntaxKind.JsxElement:case o.SyntaxKind.JsxSelfClosingElement:case o.SyntaxKind.JsxFragment:return!0;default:return!1}}t.isOctalNumber=function(e){return!(!e||e.length<2||!/^0[0-7]+$/.test(e))},t.isNewOrCallExpression=c,t.stringLiteralIsInRegExp=function(e){let t=e.parent;if(t&&c(t)){let e=t.expression;if(o.isIdentifier(e)&&"RegExp"===e.escapedText)return!0}return!1},t.isIncludeOctalEscapeSequence=function(e){if(!e.match(/\\(?:[1-7][0-7]{0,2}|[0-7]{2,3})/g))return!1;let t=0;for(;t<e.length;){if("\\"==e[t]&&t!=e.length-1)if("\\"==e[t+1])t++;else if(e[t+1]>="0"&&e[t+1]<="7")return!0;t++}return!1},t.isEvalOrArgumentsIdentifier=function(e){return o.isIdentifier(e)&&("eval"===e.escapedText||"arguments"===e.escapedText)},t.isLeftHandSideExpressionKind=l,t.isLeftHandSideExpression=function(e){return l(o.skipPartiallyEmittedExpressions(e).kind)},t.isAssignmentOperator=function(e){return e>=o.SyntaxKind.FirstAssignment&&e<=o.SyntaxKind.LastAssignment},t.isOriginalKeyword=function(e){return e.originalKeywordKind>=o.SyntaxKind.FirstFutureReservedWord&&e.originalKeywordKind<=o.SyntaxKind.LastFutureReservedWord},t.isFunctionLikeDeclaration=function(e){if(!e)return!1;switch(e.kind){case o.SyntaxKind.ArrowFunction:case o.SyntaxKind.Constructor:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.FunctionDeclaration:case o.SyntaxKind.GetAccessor:case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.SetAccessor:return!0;default:return!1}},t.allowLetAndConstDeclarations=function e(t){if(!t)return!1;switch(t.kind){case o.SyntaxKind.DoStatement:case o.SyntaxKind.IfStatement:case o.SyntaxKind.ForStatement:case o.SyntaxKind.ForInStatement:case o.SyntaxKind.ForOfStatement:case o.SyntaxKind.WhileStatement:case o.SyntaxKind.WithStatement:return!1;case o.SyntaxKind.LabeledStatement:return e(t.parent)}return!0},t.isGlobalIdentifier=function(e){switch(e){case"NaN":case"undefined":case"Infinity":return!0;default:return!1}},t.isBindingPattern=function(e){if(!e)return!1;switch(e.kind){case o.SyntaxKind.ArrayBindingPattern:case o.SyntaxKind.ObjectBindingPattern:return!0;default:return!1}},t.visibilityToString=function(e){switch(e){case o.ModifierFlags.Private:return"private";case o.ModifierFlags.Protected:return"protected";default:return"public"}},t.isDeclInGlobal=function(e){let t=e.parent;for(;t&&t.kind!=o.SyntaxKind.Block;)t=t.parent;return!t},t.isInBlockScope=function(e){switch(e.kind){case o.SyntaxKind.SourceFile:case o.SyntaxKind.CaseBlock:case o.SyntaxKind.DefaultClause:case o.SyntaxKind.CaseClause:case o.SyntaxKind.Block:case o.SyntaxKind.Constructor:case o.SyntaxKind.MethodDeclaration:return!0}return!1},t.isIncludeBackslash8Or9InString=function(e){let t=0;for(;t<e.length;){if("\\"==e[t]&&t!=e.length-1)if("\\"==e[t+1])t++;else if("8"==e[t+1]||"9"==e[t+1])return!0;t++}return!1},t.isOptionalParameter=function(e){if(s.hasQuestionToken(e))return!0;if(!e.parent||!e.parent.parent)return!1;let t=s.getImmediatelyInvokedFunctionExpression(e.parent);return!!t&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=t.arguments.length},t.isStatement=function(e){return e>=o.SyntaxKind.FirstStatement&&e<=o.SyntaxKind.LastStatement}},"./src/syntaxChecker.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.checkExportEntries=t.checkSyntaxError=t.checkDuplicateDeclaration=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/cmdOptions.ts"),c=r("./src/diagnostic.ts"),l=r("./src/base/util.ts"),u=r("./src/expression/parenthesizedExpression.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/jshelpers.js"),p=r("./src/log.ts"),f=r("./src/scope.ts"),g=r("./src/strictMode.ts"),m=r("./src/syntaxCheckerForStrcitMode.ts"),y=r("./src/syntaxCheckHelper.ts");function h(e,t){let r=e.getDecls(),n=e;if(r[t]instanceof f.VarDecl)for(;!(n instanceof f.FunctionScope);){if(n=n.getParent(),!n)return;n.getDecls().forEach((e=>{x(r[t],e)&&E(r[t])}))}}function v(e,t){let r=e.getDecls();for(let n=t+1;n<r.length;n++)D(r[t],r[n],e)&&E(r[n])}function b(e,t){if(t.has(e.name)){if(1==t.get(e.name)||(0,l.hasExportKeywordModifier)(e.node))throw new c.DiagnosticError(e.node,c.DiagnosticCode.Duplicate_identifier_0,_.getSourceFileOfNode(e.node),[e.name])}else t.set(e.name,(0,l.hasExportKeywordModifier)(e.node))}function x(e,t){if(t instanceof f.LetDecl||t instanceof f.ConstDecl)return e.name==t.name}function D(e,t,r){return!(e instanceof f.LetDecl||e instanceof f.ConstDecl||e instanceof f.ClassDecl&&o.isClassDeclaration(e.node)||t instanceof f.LetDecl||t instanceof f.ConstDecl||t instanceof f.ClassDecl&&o.isClassDeclaration(e.node))||o.isClassExpression(e.node)||o.isClassExpression(t.node)?!!(r instanceof f.LocalScope&&(0,g.isStrictMode)(e.node)&&(e instanceof f.FuncDecl||t instanceof f.FuncDecl))&&!(0,y.isFunctionLikeDeclaration)(e.node.parent.parent)&&!(0,y.isFunctionLikeDeclaration)(t.node.parent.parent)&&e.name==t.name:e.name==t.name}function S(e,t){if(t instanceof f.GlobalScope&&!(e instanceof f.VarDecl||e instanceof f.CatchParameter)&&(0,y.isGlobalIdentifier)(e.name)&&(0,y.isDeclInGlobal)(e.node)){let t=_.getSourceFileOfNode(e.node);throw new c.DiagnosticError(e.node,c.DiagnosticCode.Declaration_name_conflicts_with_built_in_global_identifier_0,t,[e.name])}}function E(e){let t=_.getSourceFileOfNode(e.node);throw e.node.kind==o.SyntaxKind.FunctionDeclaration&&(e.node=e.node.name),new c.DiagnosticError(e.node,c.DiagnosticCode.Duplicate_identifier_0,t,[e.name])}function T(e){if(e.kind===o.SyntaxKind.Identifier){if(e.originalKeywordKind===o.SyntaxKind.LetKeyword){let t=_.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations,t)}}else{let t=e.elements;for(let e of t)o.isOmittedExpression(e)||T(e.name)}}function C(e){let t=_.getSourceFileOfNode(e);if(!(o.isForInStatement(e.parent.parent)||o.isForOfStatement(e.parent.parent)||o.isCatchClause(e.parent)||e.initializer)){if((0,y.isBindingPattern)(e.name)&&!(0,y.isBindingPattern)(e.parent))throw new c.DiagnosticError(e,c.DiagnosticCode.A_destructuring_declaration_must_have_an_initializer,t);if(_.isVarConst(e))throw new c.DiagnosticError(e,c.DiagnosticCode.The_const_declarations_must_be_initialized,t)}if(e.exclamationToken&&(e.parent.parent.kind!==o.SyntaxKind.VariableStatement||!e.type||e.initializer))throw e.initializer?new c.DiagnosticError(e.exclamationToken,c.DiagnosticCode.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions,t):new c.DiagnosticError(e.exclamationToken,c.DiagnosticCode.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations,t);if((_.isLet(e)||_.isVarConst(e))&&(T(e.name),!((0,y.isInBlockScope)(e.parent.parent.parent)||o.isForInStatement(e.parent.parent)||o.isForOfStatement(e.parent.parent)||o.isForStatement(e.parent.parent))))throw new c.DiagnosticError(e,c.DiagnosticCode.const_and_let_declarations_not_allowed_in_statement_positions,t)}function k(e){if(!e.decorators)return;let t=_.getSourceFileOfNode(e);if(!_.nodeCanBeDecorated(e,e.parent,e.parent.parent))throw o.isMethodDeclaration(e)&&!_.nodeIsPresent(e.body)?new c.DiagnosticError(e,c.DiagnosticCode.A_decorator_can_only_decorate_a_method_implementation_not_an_overload,t):new c.DiagnosticError(e,c.DiagnosticCode.Decorators_are_not_valid_here,t);if(o.isGetAccessorDeclaration(e)||o.isSetAccessorDeclaration(e)){let r=_.getAllAccessorDeclarations(e.parent.members,e);if(r.firstAccessor.decorators&&e===r.secondAccessor)throw new c.DiagnosticError(e,c.DiagnosticCode.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name,t)}}function A(e){if(!e.modifiers)return;let t,r,n,i,a=o.ModifierFlags.None,s=_.getSourceFileOfNode(e);for(let l of e.modifiers){if(l.kind!==o.SyntaxKind.ReadonlyKeyword){if(o.isPropertySignature(e)||o.isMethodSignature(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_type_member,s,[_.tokenToString(l.kind)]);if(o.isIndexSignatureDeclaration(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_an_index_signature,s,[_.tokenToString(l.kind)])}switch(l.kind){case o.SyntaxKind.ConstKeyword:if(o.isEnumDeclaration(e))throw new c.DiagnosticError(e,c.DiagnosticCode.A_class_member_cannot_have_the_0_keyword,s,[_.tokenToString(o.SyntaxKind.ConstKeyword)]);break;case o.SyntaxKind.PublicKeyword:case o.SyntaxKind.ProtectedKeyword:case o.SyntaxKind.PrivateKeyword:{const t=(0,y.visibilityToString)(_.modifierToFlag(l.kind));if(a&o.ModifierFlags.AccessibilityModifier)throw new c.DiagnosticError(l,c.DiagnosticCode.Accessibility_modifier_already_seen,s);if(a&o.ModifierFlags.Static)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,[t,"static"]);if(a&o.ModifierFlags.Readonly)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,[t,"readonly"]);if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,[t,"async"]);if(o.isModuleBlock(e.parent)||o.isSourceFile(e.parent))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_module_or_namespace_element,s,[t]);if(a&o.ModifierFlags.Abstract)throw l.kind===o.SyntaxKind.PrivateKeyword?new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,[t,"abstract"]):new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,[t,"abstract"]);if(o.isPropertyDeclaration(e)&&o.isPrivateIdentifier(e.name))throw new c.DiagnosticError(l,c.DiagnosticCode.An_accessibility_modifier_cannot_be_used_with_a_private_identifier,s);a|=_.modifierToFlag(l.kind);break}case o.SyntaxKind.StaticKeyword:if(a&o.ModifierFlags.Static)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["static"]);if(a&o.ModifierFlags.Readonly)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,["static","readonly"]);if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,["static","async"]);if(o.isModuleBlock(e.parent)||o.isSourceFile(e.parent))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_module_or_namespace_element,s,["static"]);if(o.isParameter(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_parameter,s,["static"]);if(a&o.ModifierFlags.Abstract)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,["static","abstract"]);if(o.isPropertyDeclaration(e)&&o.isPrivateIdentifier(e.name))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_a_private_identifier,s,["static"]);a|=o.ModifierFlags.Static,t=l;break;case o.SyntaxKind.ReadonlyKeyword:if(a&o.ModifierFlags.Readonly)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["readonly"]);if(!(o.isPropertyDeclaration(e)||o.isPropertySignature(e)||o.isIndexSignatureDeclaration(e)||o.isParameter(e)))throw new c.DiagnosticError(l,c.DiagnosticCode.The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature,s);a|=o.ModifierFlags.Readonly,i=l;break;case o.SyntaxKind.ExportKeyword:if(a&o.ModifierFlags.Export)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["export"]);if(a&o.ModifierFlags.Ambient)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,["export","declare"]);if(a&o.ModifierFlags.Abstract)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,["export","abstract"]);if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,["export","async"]);if(o.isClassLike(e.parent))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_class_elements_of_this_kind,s,["export"]);if(o.isParameter(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_parameter,s,["export"]);a|=o.ModifierFlags.Export;break;case o.SyntaxKind.DefaultKeyword:{let t=o.isSourceFile(e.parent)?e.parent:e.parent.parent;if(o.isModuleDeclaration(t)&&!_.isAmbientModule(t))throw new c.DiagnosticError(l,c.DiagnosticCode.A_default_export_can_only_be_used_in_an_ECMAScript_style_module,s);a|=o.ModifierFlags.Default;break}case o.SyntaxKind.DeclareKeyword:if(a&o.ModifierFlags.Ambient)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["declare"]);if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_in_an_ambient_context,s,["async"]);if(o.isClassLike(e.parent)&&!o.isPropertyDeclaration(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_class_elements_of_this_kind,s,["declare"]);if(o.isParameter(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_parameter,s,["declare"]);if(o.isPropertyDeclaration(e)&&o.isPrivateIdentifier(e.name))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_a_private_identifier,s,["declare"]);a|=o.ModifierFlags.Ambient,r=l;break;case o.SyntaxKind.AbstractKeyword:{if(a&o.ModifierFlags.Abstract)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["abstract"]);if(o.isClassDeclaration(e)&&o.isConstructorTypeNode(e)){if(!(o.isMethodDeclaration(e)||o.isPropertyDeclaration(e)||o.isGetAccessorDeclaration(e)||o.isSetAccessorDeclaration(e)))throw new c.DiagnosticError(l,c.DiagnosticCode.The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration,s);if(a&o.ModifierFlags.Static)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,["static","abstract"]);if(a&o.ModifierFlags.Private)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,["private","abstract"]);if(a&o.ModifierFlags.Async&&n)throw new c.DiagnosticError(n,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,["async","abstract"])}let t=e.name;if(t&&o.isPrivateIdentifier(t))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_a_private_identifier,s,["abstract"]);a|=o.ModifierFlags.Abstract;break}case o.SyntaxKind.AsyncKeyword:if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["async"]);if(a&o.ModifierFlags.Ambient)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_in_an_ambient_context,s,["async"]);if(o.isParameter(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_parameter,s,["async"]);if(a&o.ModifierFlags.Abstract)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,["async","abstract"]);a|=o.ModifierFlags.Async,n=l}}if(o.isConstructorDeclaration(e)){if(a&o.ModifierFlags.Static)throw new c.DiagnosticError(t,c.DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration,s,["static"]);if(a&o.ModifierFlags.Abstract)throw new c.DiagnosticError(t,c.DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration,s,["abstract"]);if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(n,c.DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration,s,["async"]);if(a&o.ModifierFlags.Readonly)throw new c.DiagnosticError(i,c.DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration,s,["readonly"])}else{if((o.isImportDeclaration(e)||o.isImportEqualsDeclaration(e))&&a&o.ModifierFlags.Ambient)throw new c.DiagnosticError(r,c.DiagnosticCode.A_0_modifier_cannot_be_used_with_an_import_declaration,s,["declare"]);if(o.isParameter(e)&&a&o.ModifierFlags.ParameterPropertyModifier&&(0,y.isBindingPattern)(e.name))throw new c.DiagnosticError(e,c.DiagnosticCode.A_parameter_property_may_not_be_declared_using_a_binding_pattern,s);if(o.isParameter(e)&&a&o.ModifierFlags.ParameterPropertyModifier&&e.dotDotDotToken)throw new c.DiagnosticError(e,c.DiagnosticCode.A_parameter_property_cannot_be_declared_using_a_rest_parameter,s)}a&o.ModifierFlags.Async&&function(e,t){switch(e.kind){case o.SyntaxKind.ArrowFunction:case o.SyntaxKind.FunctionDeclaration:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.MethodDeclaration:return}let r=_.getSourceFileOfNode(e);throw new c.DiagnosticError(t,c.DiagnosticCode._0_modifier_cannot_be_used_here,r,["async"])}(e,n)}function N(e){let t=e.declarations;if(!t.length)throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected);let r=t[0].name;(0,y.isBindingPattern)(r)&&U(r)}function F(e){let t=_.getSourceFileOfNode(e),r=e.initializer;if(o.isParenthesizedExpression(r)&&(r=(0,u.findInnerExprOfParenthesis)(r)),o.isVariableDeclarationList(r)){let n=r;N(n);let i=n.declarations;if(i.length>1)throw o.isForInStatement(e)?new c.DiagnosticError(n.declarations[1],c.DiagnosticCode.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement,t):new c.DiagnosticError(n.declarations[1],c.DiagnosticCode.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement,t);if(i[0].initializer)throw o.isForInStatement(e)?new c.DiagnosticError(i[0].name,c.DiagnosticCode.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer,t):new c.DiagnosticError(i[0].name,c.DiagnosticCode.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer,t);if(i[0].type)throw o.isForInStatement(e)?new c.DiagnosticError(i[0],c.DiagnosticCode.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation,t):new c.DiagnosticError(i[0],c.DiagnosticCode.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation,t)}else O(r),(o.isArrayLiteralExpression(r)||o.isObjectLiteralExpression(r))&&V(r)}function w(e){let t=e.initializer;t.declarations.length>=1&&C(t.declarations[0])}function P(e,t,r){let n=_.skipOuterExpressions(e,7);if(n.kind!==o.SyntaxKind.Identifier&&n.kind!==o.SyntaxKind.PropertyAccessExpression&&n.kind!==o.SyntaxKind.ElementAccessExpression)throw new c.DiagnosticError(e,t);if(n.flags&o.NodeFlags.OptionalChain)throw new c.DiagnosticError(e,r)}function I(e){if((0,y.isAssignmentOperator)(e.operatorToken.kind)){let t=e.left;o.isParenthesizedExpression(t)&&(t=(0,u.findInnerExprOfParenthesis)(t)),e.operatorToken.kind==o.SyntaxKind.EqualsToken&&(o.isArrayLiteralExpression(t)||o.isObjectLiteralExpression(t))&&V(t),O(t)}}function O(e){if(_.isKeyword(e.kind)||e.kind==o.SyntaxKind.NumericLiteral||e.kind==o.SyntaxKind.StringLiteral)throw new c.DiagnosticError(e,c.DiagnosticCode.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)}function L(e){if(!o.isComputedPropertyName(e))return;let t=e.expression;if(o.isBinaryExpression(t)&&t.operatorToken.kind===o.SyntaxKind.CommaToken){let r=_.getSourceFileOfNode(e);throw new c.DiagnosticError(t,c.DiagnosticCode.A_comma_expression_is_not_allowed_in_a_computed_property_name,r)}}function M(e){let t=_.isAssignmentTarget(e),r=_.getSourceFileOfNode(e),n=new Map;for(let i of e.properties){if(o.isSpreadAssignment(i)){if(t){let e=_.skipParentheses(i.expression);if(o.isArrayLiteralExpression(e)||o.isObjectLiteralExpression(e))throw new c.DiagnosticError(i.expression,c.DiagnosticCode.A_rest_element_cannot_contain_a_binding_pattern,r)}continue}let e=i.name;if(o.isComputedPropertyName(e)&&L(e),o.isShorthandPropertyAssignment(i)&&!t&&i.objectAssignmentInitializer)throw new c.DiagnosticError(i.equalsToken,c.DiagnosticCode.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern,r);if(o.isPrivateIdentifier(e))throw new c.DiagnosticError(e,c.DiagnosticCode.Private_identifiers_are_not_allowed_outside_class_bodies,r);if(i.modifiers)for(let e of i.modifiers)if(!o.isMethodDeclaration(i)||e.kind!=o.SyntaxKind.AsyncKeyword)throw new c.DiagnosticError(e,c.DiagnosticCode._0_modifier_cannot_be_used_here,r,[_.getTextOfNode(e)]);let a=R(i);if(a&&!t){let t=_.getPropertyNameForPropertyNameNode(e);if(!t||o.isComputedPropertyName(e))continue;let i=n.get(t);if(i){if(12&a&&12&i&&"___proto__"===t)throw new c.DiagnosticError(e,c.DiagnosticCode.Duplicate_identifier_0,r,[_.getTextOfNode(e)])}else n.set(t,a)}}}function R(e,t){let r;return o.isShorthandPropertyAssignment(e)?function(e){if(e){let t=_.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.A_definite_assignment_assertion_is_not_permitted_in_this_context,t)}}(e.exclamationToken):o.isPropertyAssignment(e)?(function(e){if(e){let t=_.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.An_object_member_cannot_be_declared_optional,t)}}(e.questionToken),r=4):o.isMethodDeclaration(e)?r=8:o.isGetAccessor(e)?(J(e),r=1):o.isSetAccessor(e)?r=2:(0,p.LOGE)("Unexpected syntax kind:"+e.kind),r}function B(e){if(e&&e.hasTrailingComma){let t=_.getSourceFileOfNode(e[0]);throw new c.DiagnosticError(e[0],c.DiagnosticCode.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma,t)}}function j(e){k(e),A(e),function(e){let t=e.length,r=!1;for(let n=0;n<t;n++){let i=e[n],a=_.getSourceFileOfNode(i);if(i.dotDotDotToken){if(n!=t-1)throw new c.DiagnosticError(i.dotDotDotToken,c.DiagnosticCode.A_rest_parameter_must_be_last_in_a_parameter_list,a);if(B(e),i.initializer)throw new c.DiagnosticError(i.name,c.DiagnosticCode.A_rest_parameter_cannot_have_an_initializer,a);if(i.questionToken)throw new c.DiagnosticError(i.questionToken,c.DiagnosticCode.A_rest_parameter_cannot_be_optional,a)}else if((0,y.isOptionalParameter)(i)){if(r=!0,i.questionToken&&i.initializer)throw new c.DiagnosticError(i.name,c.DiagnosticCode.Parameter_cannot_have_question_mark_and_initializer,a)}else if(r&&!i.initializer)throw new c.DiagnosticError(i.name,c.DiagnosticCode.A_required_parameter_cannot_follow_an_optional_parameter,a)}}(e.parameters),function(e){if(!o.isArrowFunction(e))return;const{equalsGreaterThanToken:t}=e;let r=_.getSourceFileOfNode(e);if(r.getLineAndCharacterOfPosition(t.pos).line!==r.getLineAndCharacterOfPosition(t.end).line)throw new c.DiagnosticError(t,c.DiagnosticCode.Line_terminator_not_permitted_before_arrow,r)}(e)}function J(e){if(j(e),0!=e.parameters.length)throw new c.DiagnosticError(e,c.DiagnosticCode.Getter_must_not_have_any_formal_parameters)}function V(e){let t=(0,d.getSourceFileOfNode)(e);if(o.isArrayLiteralExpression(e)){let r=e.elements;for(let e=0;e<r.length;e++){let n=r[e];if(o.isSpreadElement(n)){if(e!=r.length-1)throw new c.DiagnosticError(n,c.DiagnosticCode.A_rest_element_must_be_last_in_a_destructuring_pattern,t);if(r.hasTrailingComma)throw new c.DiagnosticError(n,c.DiagnosticCode.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma,t);(o.isArrayLiteralExpression(n.expression)||o.isObjectLiteralExpression(n.expression))&&V(n.expression)}else if(n=o.isBinaryExpression(n)?n.left:n,!o.isOmittedExpression(n)&&!o.isElementAccessExpression(n))if(o.isIdentifier(n)){let e=_.getTextOfIdentifierOrLiteral(n);if("arguments"==e||"eval"==e)throw new c.DiagnosticError(n,c.DiagnosticCode.Property_destructuring_pattern_expected,t)}else if(o.isPropertyAccessExpression(n)){if(n.questionDotToken)throw new c.DiagnosticError(n,c.DiagnosticCode.Property_destructuring_pattern_expected,t)}else{if(!o.isArrayLiteralExpression(n)&&!o.isObjectLiteralExpression(n))throw new c.DiagnosticError(n,c.DiagnosticCode.Property_destructuring_pattern_expected,t);V(n)}}}if(o.isObjectLiteralExpression(e)){let r=e.properties;for(let n=0;n<r.length;n++){let i=r[n];if(o.isSpreadAssignment(i)){if(n!=r.length-1){let t=(0,d.getSourceFileOfNode)(e);throw new c.DiagnosticError(i,c.DiagnosticCode.A_rest_element_must_be_last_in_a_destructuring_pattern,t)}}else{if(o.isPropertyAssignment(i)){let e=o.isBinaryExpression(i.initializer)?i.initializer.left:i.initializer;if(o.isIdentifier(e)||o.isElementAccessExpression(e))continue;if(o.isPropertyAccessExpression(e)){if(e.questionDotToken)throw new c.DiagnosticError(i,c.DiagnosticCode.Property_destructuring_pattern_expected,t);continue}if(o.isObjectLiteralExpression(e)||o.isArrayLiteralExpression(e)){V(e);continue}throw new c.DiagnosticError(i,c.DiagnosticCode.Property_destructuring_pattern_expected,t)}if(o.isShorthandPropertyAssignment(i)){let e=_.getTextOfIdentifierOrLiteral(i.name);if("arguments"==e||"eval"==e)throw new c.DiagnosticError(i,c.DiagnosticCode.Property_destructuring_pattern_expected,t)}else if(o.isMethodDeclaration(i)||o.isGetAccessorDeclaration(i)||o.isSetAccessorDeclaration(i))throw new c.DiagnosticError(i,c.DiagnosticCode.Property_destructuring_pattern_expected,t)}}}}function U(e){let t=e.elements;for(let r=0;r<t.length;r++){let n=t[r];if(!o.isOmittedExpression(n)&&n.dotDotDotToken){let i=(0,d.getSourceFileOfNode)(e);if(r!=t.length-1)throw new c.DiagnosticError(n,c.DiagnosticCode.A_rest_element_must_be_last_in_a_destructuring_pattern,i);if(n.initializer)throw new c.DiagnosticError(n,c.DiagnosticCode.A_rest_parameter_cannot_have_an_initializer)}}}t.checkDuplicateDeclaration=function(e){let t=e.getScopeMap();t.forEach(((r,n)=>{if((0,y.isFunctionLikeDeclaration)(n)&&((0,g.isStrictMode)(n)&&function(e,t){let r=t.getParametersOfFunction(e),n=[];r&&r.forEach((e=>{n.includes(e.name)?E(e):n.push(e.name)}))}(n,e),n.body)){let r=t.get(n.body),i=function(e,t){let r=t.getParametersOfFunction(e),n=[];if(r)return r.forEach((e=>{n.push(e.name)})),n}(n,e);r&&function(e,t){if(!e)return;let r=t.getDecls();for(let t=0;t<r.length;t++){if(r[t]instanceof f.VarDecl||r[t]instanceof f.FuncDecl)continue;let n=r[t].name;e.includes(n)&&E(r[t])}}(i,r)}n.kind==o.SyntaxKind.Block&&null!=n.parent&&n.parent.kind==o.SyntaxKind.CatchClause&&function(e,t){let r=e.getDecls(),n=t.getDecls();for(let e=0;e<n.length;e++){for(let t=e+1;t<n.length;t++)n[e].name==n[t].name&&E(n[t]);for(let t=0;t<r.length;t++)r[t]instanceof f.VarDecl||n[e].name==r[t].name&&E(r[t])}}(r,t.get(n.parent));let i=r.getDecls(),a=new Map;for(let e=0;e<i.length;e++)S(i[e],r),v(r,e),h(r,e),o.isFunctionDeclaration(i[e].node)&&r instanceof f.ModuleScope&&b(i[e],a)}))},t.checkSyntaxError=function(e){!function(e){switch(e.kind){case o.SyntaxKind.BreakStatement:case o.SyntaxKind.ContinueStatement:!function(e){let t,r=e;for(;r;){if(o.isFunctionLike(r))throw new c.DiagnosticError(e,c.DiagnosticCode.Jump_target_cannot_cross_function_boundary,_.getSourceFileOfNode(r));switch(r.kind){case o.SyntaxKind.SwitchStatement:if(e.kind===o.SyntaxKind.BreakStatement&&!e.label)return;break;case o.SyntaxKind.LabeledStatement:if(e.label&&r.label.escapedText===e.label.escapedText){let t=!1;if(e.kind!==o.SyntaxKind.ContinueStatement||_.isIterationStatement(r.statement,!0)||(t=!0),t)throw new c.DiagnosticError(e,c.DiagnosticCode.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement,_.getSourceFileOfNode(r));return}break;default:if(_.isIterationStatement(r,!1)&&!e.label)return!1}r=r.parent}throw t=e.label?e.kind==o.SyntaxKind.BreakStatement?c.DiagnosticCode.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:c.DiagnosticCode.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:e.kind==o.SyntaxKind.BreakStatement?c.DiagnosticCode.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:c.DiagnosticCode.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement,new c.DiagnosticError(e,t,_.getSourceFileOfNode(e))}(e);break;case o.SyntaxKind.ReturnStatement:!function(e){if(!_.getContainingFunction(e)){let t=_.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.A_return_statement_can_only_be_used_within_a_function_body,t)}}(e);break;case o.SyntaxKind.ComputedPropertyName:L(e);break;case o.SyntaxKind.ObjectBindingPattern:case o.SyntaxKind.ArrayBindingPattern:U(e);break;case o.SyntaxKind.MetaProperty:!function(e){let t=_.getTextOfIdentifierOrLiteral(e.name),r=_.getSourceFileOfNode(e);switch(e.keywordToken){case o.SyntaxKind.NewKeyword:{let n=[t,_.tokenToString(e.keywordToken),"target"];if("target"!=t)throw new c.DiagnosticError(e,c.DiagnosticCode._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r,n);let i=(0,d.getContainingFunctionDeclaration)(e);if(!i)throw new c.DiagnosticError(e,c.DiagnosticCode.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,r,n);if(o.isMethodDeclaration(i))throw new c.DiagnosticError(e,c.DiagnosticCode.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,r,n);if(o.isArrowFunction(i)&&!_.getNewTargetContainer(e))throw new c.DiagnosticError(e,c.DiagnosticCode.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,r,n);break}case o.SyntaxKind.ImportKeyword:if("meta"!=t){let n=[t,_.tokenToString(e.keywordToken),"meta"];throw new c.DiagnosticError(e,c.DiagnosticCode._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r,n)}}}(e);break;case o.SyntaxKind.VariableDeclaration:C(e);break;case o.SyntaxKind.VariableStatement:!function(e){k(e),A(e),N(e.declarationList),function(e){if(!(0,y.allowLetAndConstDeclarations)(e.parent)){if(_.isLet(e.declarationList))throw new c.DiagnosticError(e,c.DiagnosticCode.The_let_declarations_can_only_be_declared_inside_a_block);if(_.isVarConst(e.declarationList))throw new c.DiagnosticError(e,c.DiagnosticCode.The_const_declarations_can_only_be_declared_inside_a_block)}}(e)}(e);break;case o.SyntaxKind.ForInStatement:!function(e){F(e);let t=_.getSourceFileOfNode(e);if(o.isVariableDeclarationList(e.initializer))w(e);else{let r=e.initializer;if(o.isArrayLiteralExpression(r)||o.isObjectLiteralExpression(r))throw new c.DiagnosticError(r,c.DiagnosticCode.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern,t)}}(e);break;case o.SyntaxKind.ForOfStatement:!function(e){if(F(e),o.isVariableDeclarationList(e.initializer))w(e);else{let t=e.initializer;o.isArrayLiteralExpression(t)||o.isObjectLiteralExpression(t)?function(e){let t;t=o.isShorthandPropertyAssignment(e)?e.name:e,o.isBinaryExpression(t)&&t.operatorToken.kind===o.SyntaxKind.EqualsToken&&(I(t),t=t.left),o.isObjectLiteralExpression(t)&&M(t),function(e){let t,r;o.isSpreadAssignment(e.parent)?(t=c.DiagnosticCode.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access,r=c.DiagnosticCode.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access):(t=c.DiagnosticCode.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,r=c.DiagnosticCode.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access),P(e,t,r)}(t)}(t):P(t,c.DiagnosticCode.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,c.DiagnosticCode.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access)}}(e);break;case o.SyntaxKind.ClassDeclaration:case o.SyntaxKind.ClassExpression:!function(e){!function(e){let t=!1;if(k(e),A(e),null==e.heritageClauses)return;let r=_.getSourceFileOfNode(e);for(let n of e.heritageClauses)if(n.token==o.SyntaxKind.ExtendsKeyword){if(t)throw new c.DiagnosticError(n,c.DiagnosticCode.The_extends_clause_already_seen,r);if(n.types.length>1)throw new c.DiagnosticError(n,c.DiagnosticCode.Classes_can_only_extend_a_single_class);t=!0}}(e);let t=!1,r=_.getSourceFileOfNode(e);if(e.members.forEach((n=>{switch(n.kind){case o.SyntaxKind.Constructor:if(t)throw new c.DiagnosticError(e,c.DiagnosticCode.Multiple_constructor_implementations_are_not_allowed,r);t=!0;break;case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.SetAccessor:j(n);break;case o.SyntaxKind.GetAccessor:J(n)}})),(0,y.isStatement)(e.parent.kind))throw new c.DiagnosticError(e,c.DiagnosticCode.Class_declaration_not_allowed_in_statement_position,r)}(e);break;case o.SyntaxKind.SuperKeyword:!function(e){let t=_.getSourceFileOfNode(e),r=!1;o.isCallExpression(e.parent)&&e.parent.expression===e&&(r=!0);let n=_.getSuperContainer(e,!0);if(!r)for(;n&&o.isArrowFunction(n);)n=_.getSuperContainer(n,!0);if(!function(e,t){return!!e&&(t?o.isConstructorDeclaration(e):!(!o.isClassLike(e.parent)&&!o.isObjectLiteralExpression(e.parent))&&(o.isMethodDeclaration(e)||o.isMethodSignature(e)||o.isGetAccessor(e)||o.isSetAccessor(e)||o.isPropertyDeclaration(e)||o.isPropertySignature(e)||o.isConstructorDeclaration(e)))}(n,r)){let i=_.findAncestor(e,(e=>e===n?"quit":o.isComputedPropertyName(e)));if(i&&o.isComputedPropertyName(i))throw new c.DiagnosticError(e,c.DiagnosticCode.The_super_cannot_be_referenced_in_a_computed_property_name,t);if(_.findAncestor(e,o.isConstructorDeclaration))return;if(r)throw new c.DiagnosticError(e,c.DiagnosticCode.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors,t);if(!n||!n.parent||!o.isClassLike(n.parent)||o.isObjectLiteralExpression(n.parent))throw new c.DiagnosticError(e,c.DiagnosticCode.The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions,t);throw new c.DiagnosticError(e,c.DiagnosticCode.The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class,t)}}(e);break;case o.SyntaxKind.BinaryExpression:I(e);break;case o.SyntaxKind.Identifier:!function(e){if(_.isIdentifierName(e))return;let t=_.getSourceFileOfNode(e);if(e.originalKeywordKind===o.SyntaxKind.AwaitKeyword){if(_.isExternalOrCommonJsModule(t)&&_.isInTopLevelContext(e))throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,t,_.declarationNameToString(e));if(e.flags&o.NodeFlags.AwaitContext)throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,t,_.declarationNameToString(e))}else if(e.originalKeywordKind===o.SyntaxKind.YieldKeyword&&e.flags&o.NodeFlags.YieldContext)throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,t,_.declarationNameToString(e))}(e);break;case o.SyntaxKind.ObjectLiteralExpression:M(e);break;case o.SyntaxKind.FunctionDeclaration:case o.SyntaxKind.MethodSignature:case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.SetAccessor:case o.SyntaxKind.Constructor:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.ArrowFunction:j(e);break;case o.SyntaxKind.GetAccessor:J(e);break;case o.SyntaxKind.LabeledStatement:!function(e){let t=_.getSourceFileOfNode(e);_.findAncestor(e.parent,(r=>{if(_.isFunctionLike(r))return"quit";if(o.isLabeledStatement(r)&&r.label.escapedText===e.label.escapedText)throw new c.DiagnosticError(e.label,c.DiagnosticCode.Duplicate_label_0,t,[_.getTextOfNode(e.label)]);return!1}));let r=e.statement;if(o.isVariableStatement(r)){let t=r;if(_.isLet(t.declarationList))throw new c.DiagnosticError(e,c.DiagnosticCode.Lexical_declaration_let_not_allowed_in_statement_position);if(_.isVarConst(t.declarationList))throw new c.DiagnosticError(e,c.DiagnosticCode.Lexical_declaration_const_not_allowed_in_statement_position)}}(e);break;case o.SyntaxKind.ThrowStatement:!function(e){if(o.isIdentifier(e.expression)&&""===e.expression.text)throw new c.DiagnosticError(e,c.DiagnosticCode.Line_break_not_permitted_here,_.getSourceFileOfNode(e))}(e)}}(e),((0,g.isStrictMode)(e)||s.CmdOptions.isModules())&&(0,m.checkSyntaxErrorForStrictMode)(e)},t.checkExportEntries=function(e){let t=e.getExportStmts(),r=new Set;t.forEach((e=>{e.getBindingNameMap().forEach(((t,n)=>{if(r.has(n))throw new c.DiagnosticError(e.getNode(),c.DiagnosticCode.Duplicate_identifier_0,_.getSourceFileOfNode(e.getNode()),[n]);r.add(n)}))}))}},"./src/syntaxCheckerForStrcitMode.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.checkSyntaxErrorForStrictMode=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/cmdOptions.ts"),c=r("./src/diagnostic.ts"),l=r("./src/expression/parenthesizedExpression.ts"),u=a(r("./src/jshelpers.js")),_=r("./src/strictMode.ts"),d=r("./src/syntaxCheckHelper.ts");function p(e,t){if((0,d.isIncludeOctalEscapeSequence)(t))throw new c.DiagnosticError(e,c.DiagnosticCode.Octal_escape_sequences_are_not_allowed_in_strict_mode);if((0,d.isIncludeOctalEscapeSequence)(t))throw new c.DiagnosticError(e,c.DiagnosticCode._8_and_9_are_not_allowed_in_strict_mode)}function f(e,t){if(!t||!o.isIdentifier(t))return;let r=t;if(!(0,d.isEvalOrArgumentsIdentifier)(r)&&!(0,d.isOriginalKeyword)(r))return;let n=u.getSourceFileOfNode(t),i=[o.idText(r)];throw new c.DiagnosticError(t,(a=e,u.getContainingClass(a)?c.DiagnosticCode.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:c.DiagnosticCode.Invalid_use_of_0_in_strict_mode),n,i);var a}function g(e){let t=e.parameters,r=new Map;for(let n=0;n<t.length;n++){let i=t[n];f(i,i.name);let a=u.getTextOfIdentifierOrLiteral(i.name);if(r.has(a)){let e=[u.declarationNameToString(i.name)];throw new c.DiagnosticError(i.name,c.DiagnosticCode.Duplicate_identifier_0,void 0,e)}if(a&&r.set(a,!0),(i.initializer||i.dotDotDotToken)&&(0,_.checkStrictModeStatementList)(e))throw new c.DiagnosticError(i,c.DiagnosticCode.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)}}t.checkSyntaxErrorForStrictMode=function(e){switch(e.kind){case o.SyntaxKind.NumericLiteral:!function(e){let t=u.getTextOfNode(e);if((0,d.isOctalNumber)(t))throw new c.DiagnosticError(e,c.DiagnosticCode.Octal_literals_are_not_allowed_in_strict_mode)}(e);break;case o.SyntaxKind.StringLiteral:!function(e){(0,d.stringLiteralIsInRegExp)(e)||p(e,u.getTextOfNode(e))}(e);break;case o.SyntaxKind.FunctionDeclaration:!function(e){if(f(e,e.name),g(e),!(0,d.isInBlockScope)(e.parent))throw new c.DiagnosticError(e,c.DiagnosticCode.In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block)}(e);break;case o.SyntaxKind.FunctionExpression:let t=e;f(t,t.name),g(t);break;case o.SyntaxKind.SetAccessor:case o.SyntaxKind.ArrowFunction:g(e);break;case o.SyntaxKind.VariableDeclaration:case o.SyntaxKind.BindingElement:f(e,e.name);break;case o.SyntaxKind.BinaryExpression:!function(e){if(!(0,d.isLeftHandSideExpression)(e.left)||!(0,d.isAssignmentOperator)(e.operatorToken.kind))return;let t=e,r=e.left;switch(e.left.kind){case o.SyntaxKind.ParenthesizedExpression:{let n=(0,l.findInnerExprOfParenthesis)(e.left);t=n,r=n;break}}f(t,r)}(e);break;case o.SyntaxKind.PrefixUnaryExpression:case o.SyntaxKind.PostfixUnaryExpression:f(e,e.operand);break;case o.SyntaxKind.DeleteExpression:!function(e){let t=e.expression;if(o.isIdentifier(t))throw new c.DiagnosticError(t,c.DiagnosticCode.A_delete_cannot_be_called_on_an_identifier_in_strict_mode)}(e);break;case o.SyntaxKind.WithStatement:!function(e){let t=u.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.A_with_statements_are_not_allowed_in_strict_mode,t)}(e);break;case o.SyntaxKind.Identifier:!function(e){let t=u.getSourceFileOfNode(e);if("await"==u.getTextOfIdentifierOrLiteral(e)&&s.CmdOptions.isModules())throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,t,["await"]);if(!u.isIdentifierName(e)&&(0,d.isOriginalKeyword)(e))throw new c.DiagnosticError(e,function(e){return u.getContainingClass(e)?c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(e),t,u.declarationNameToString(e))}(e);break;case o.SyntaxKind.NoSubstitutionTemplateLiteral:case o.SyntaxKind.FirstTemplateToken:case o.SyntaxKind.LastLiteralToken:!function(e){let t=u.getTextOfNode(e);p(e,t.substring(1,t.length-1))}(e)}}},"./src/ts2panda.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ts2Panda=void 0;const n=r("./src/cmdOptions.ts"),i=r("./src/irnodes.ts"),a=r("./src/log.ts"),o=r("./src/pandagen.ts"),s=r("./src/pandasm.ts"),c=r("./src/statement/tryStatement.ts"),l=r("./src/base/util.ts"),u=r("./src/compilerDriver.ts"),_=/\$/g;class d{constructor(){}static getFuncSignature(e){return new s.Signature(e.getParametersCount())}static getFuncInsnsAndRegsNum(e){let t=[],r=[];return e.getInsns().forEach((e=>{let n=e.kind>=i.IRNodeKind.VREG?void 0:e.kind,a=[],o=[],c=[],u="";if(e instanceof i.Label)u=d.labelPrefix+e.id,r.push(u);else if((0,l.isRangeInst)(e)){let t=e.operands;c.push(t[0].value),a.push(t[1].num),2==(0,l.getRangeStartVregPos)(e)&&a.push(t[2].num)}else e.operands.forEach((e=>{if(e instanceof i.VReg){let t=e;a.push(t.num)}else if(e instanceof i.Imm){let t=e;c.push(t.value)}else if("string"==typeof e)o.push(e),d.strings.add(e);else if(e instanceof i.Label){let t=d.labelPrefix+e.id;o.push(t)}}));e.debugPosInfo.ClearNodeKind(),t.push(new s.Ins(n,0==a.length?void 0:a,0==o.length?void 0:o,0==c.length?void 0:c,""===u?void 0:u,e.debugPosInfo))})),{insns:t,regsNum:e.getTotalRegsNum()-e.getParametersCount(),labels:0==r.length?void 0:r}}static dumpStringsArray(e){let t={t:2,s:Array.from(d.strings)},r=(0,l.escapeUnicode)(JSON.stringify(t,null,2));r="$"+r.replace(_,"#$")+"$",n.CmdOptions.isEnableDebugLog()&&(d.jsonString+=r),e.stdio[3].write(r+"\n")}static dumpTypeLiteralArrayBuffer(){var e;let t=o.PandaGen.getLiteralArrayBuffer(),r="",n=null===(e=t[0].getLiteral(1))||void 0===e?void 0:e.getValue();if(n)for(let e=0;e<n;e++)r+=(0,l.escapeUnicode)(JSON.stringify(t[1+e],null,2));return r}static dumpConstantPool(e){let t=o.PandaGen.getLiteralArrayBuffer();if(n.CmdOptions.enableTypeLog()){console.log("-------- LiteralArrayBuffer --------");for(let e of o.PandaGen.getLiteralArrayBuffer())console.log(JSON.parse(JSON.stringify(e)))}t.forEach((function(t){let r={t:3,lit_arr:t},i=(0,l.escapeUnicode)(JSON.stringify(r,null,2));i="$"+i.replace(_,"#$")+"$",n.CmdOptions.isEnableDebugLog()&&(d.jsonString+=i),e.stdio[3].write(i+"\n")}))}static dumpCmdOptions(e){let t={t:4,module_mode:n.CmdOptions.isModules(),debug_mode:n.CmdOptions.isDebugMode(),log_enabled:n.CmdOptions.isEnableDebugLog(),opt_level:n.CmdOptions.getOptLevel(),opt_log_level:n.CmdOptions.getOptLogLevel()},r=JSON.stringify(t,null,2);r="$"+r.replace(_,"#$")+"$",n.CmdOptions.isEnableDebugLog()&&(d.jsonString+=r),e.stdio[3].write(r+"\n")}static dumpPandaGen(e,t,r){let i,p,f,g,m,y,h=e.internalName,v=d.getFuncSignature(e),b=d.getFuncInsnsAndRegsNum(e),x=e.getSourceFileDebugInfo(),D=e.getCallType(),S=e.getLocals();if(n.CmdOptions.needRecordType()&&u.CompilerDriver.isTsFile&&(i=new Array,S.forEach((e=>{i.push(e.getTypeIndex()),n.CmdOptions.enableTypeLog()&&(console.log("---------------------------------------"),console.log("- vreg name:",e.getVariableName()),console.log("- vreg local num:",e.num),console.log("- vreg type:",e.getTypeIndex()))})),"func_main_0"==h)){let e=o.PandaGen.getExportedTypes(),t=o.PandaGen.getDeclaredTypes();0!=e.size&&(p=new Array,e.forEach(((e,t)=>{let r=new s.ExportedSymbol2Type(t,e);p.push(r)}))),0!=t.size&&(f=new Array,t.forEach(((e,t)=>{let r=new s.DeclaredSymbol2Type(t,e);f.push(r)})))}n.CmdOptions.isDebugMode()?(g=e.getVariableDebugInfoArray(),m=e.getSourceCodeDebugInfo()):(g=void 0,m=void 0);let E=(0,c.generateCatchTables)(e.getCatchMap());E?(y=[],E.forEach((e=>{let t=e.getCatchBeginLabel();e.getLabelPairs().forEach((e=>{y.push(new s.CatchTable(d.labelPrefix+e.getBeginLabel().id,d.labelPrefix+e.getEndLabel().id,d.labelPrefix+t.id))}))}))):y=void 0;let T=new s.Function(h,v,b.regsNum,b.insns,b.labels,g,y,x,m,D,i,p,f);(0,a.LOGD)(T);let C={t:0,fb:T},k=(0,l.escapeUnicode)(JSON.stringify(C,null,2));k="$"+k.replace(_,"#$")+"$",n.CmdOptions.isEnableDebugLog()&&(d.jsonString+=k),t.stdio[3].write(k+"\n")}static clearDumpData(){d.strings.clear(),d.jsonString=""}}t.Ts2Panda=d,d.strings=new Set,d.labelPrefix="L_",d.jsonString=""},"./src/typeChecker.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeChecker=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/typeSystem.ts"),c=a(r("./src/jshelpers.js")),l=r("./src/log.ts"),u=r("./src/strictMode.ts"),_=r("./src/typeRecorder.ts");class d{constructor(){this.compiledTypeChecker=null}static getInstance(){return d.instance||(d.instance=new d),d.instance}setTypeChecker(e){this.compiledTypeChecker=e}getTypeChecker(){return this.compiledTypeChecker}getTypeAtLocation(e){if(e)try{return this.compiledTypeChecker.getTypeAtLocation(e)}catch(t){return void(0,l.LOGD)("Get getTypeAtLocation filed for : "+e.getFullText())}}getTypeDeclForIdentifier(e){if(!e)return;let t;try{t=this.compiledTypeChecker.getSymbolAtLocation(e)}catch(t){return void(0,l.LOGD)("Get getSymbolAtLocation filed for : "+e.getFullText())}return t&&t.declarations?t.declarations[0]:void 0}hasExportKeyword(e){if(e.modifiers)for(let t of e.modifiers)if(t.kind===o.SyntaxKind.ExportKeyword)return!0;return!1}hasDeclareKeyword(e){if(e.modifiers)for(let t of e.modifiers)if(t.kind===o.SyntaxKind.DeclareKeyword)return!0;return!1}getDeclNodeForInitializer(e){switch(e.kind){case o.SyntaxKind.Identifier:return this.getTypeDeclForIdentifier(e);case o.SyntaxKind.NewExpression:let t=e.expression;return t.kind==o.SyntaxKind.ClassExpression?t:this.getTypeDeclForIdentifier(t);case o.SyntaxKind.ClassExpression:case o.SyntaxKind.PropertyAccessExpression:return e;default:return}}getTypeForClassDeclOrExp(e,t){let r=_.TypeRecorder.getInstance().tryGetTypeIndex(e);return r==s.PrimitiveType.ANY&&(r=new s.ClassType(e).shiftedTypeIndex),t&&(_.TypeRecorder.getInstance().hasClass2InstanceMap(r)||new s.ClassInstType(r),r=_.TypeRecorder.getInstance().getClass2InstanceMap(r)),r}getTypeForPropertyAccessExpression(e){let t=e,r=c.getTextOfIdentifierOrLiteral(t.expression),n=c.getTextOfIdentifierOrLiteral(t.name);if(_.TypeRecorder.getInstance().inNampespaceMap(r)){let e=_.TypeRecorder.getInstance().getPathForNamespace(r);return new s.ExternalType(n,e).shiftedTypeIndex}return s.PrimitiveType.ANY}getInterfaceDeclaration(e){let t=_.TypeRecorder.getInstance().tryGetTypeIndex(e);return t==s.PrimitiveType.ANY&&(t=new s.InterfaceType(e).shiftedTypeIndex),t}getTypeFromDecl(e,t){if(!e)return s.PrimitiveType.ANY;switch(e.kind){case o.SyntaxKind.ClassDeclaration:case o.SyntaxKind.ClassExpression:return this.getTypeForClassDeclOrExp(e,t);case o.SyntaxKind.ImportSpecifier:case o.SyntaxKind.ImportClause:let r=_.TypeRecorder.getInstance().tryGetTypeIndex(e);return r!=s.PrimitiveType.ANY?r:s.PrimitiveType.ANY;case o.SyntaxKind.PropertyAccessExpression:return this.getTypeForPropertyAccessExpression(e);case o.SyntaxKind.InterfaceDeclaration:return this.getInterfaceDeclaration(e);default:return s.PrimitiveType.ANY}}getTypeFromAnotation(e){if(!e)return s.PrimitiveType.ANY;switch(e.kind){case o.SyntaxKind.StringKeyword:case o.SyntaxKind.NumberKeyword:case o.SyntaxKind.BooleanKeyword:case o.SyntaxKind.SymbolKeyword:case o.SyntaxKind.UndefinedKeyword:case o.SyntaxKind.VoidKeyword:case o.SyntaxKind.LiteralType:let t=e.getText().toUpperCase(),r=s.PrimitiveType.ANY;return t&&t in s.PrimitiveType&&(r=s.PrimitiveType[t]),r;case o.SyntaxKind.UnionType:return new s.UnionType(e).shiftedTypeIndex;case o.SyntaxKind.ArrayType:return new s.ArrayType(e).shiftedTypeIndex;case o.SyntaxKind.ParenthesizedType:let n=e.type;return n.kind==o.SyntaxKind.UnionType?new s.UnionType(n).shiftedTypeIndex:s.PrimitiveType.ANY;case o.SyntaxKind.TypeLiteral:return new s.ObjectType(e).shiftedTypeIndex;default:return s.PrimitiveType.ANY}}getOrCreateRecordForDeclNode(e,t){if(!e)return s.PrimitiveType.ANY;let r=s.PrimitiveType.ANY,n=this.getDeclNodeForInitializer(e);return r=this.getTypeFromDecl(n,e.kind==o.SyntaxKind.NewExpression),t&&_.TypeRecorder.getInstance().setVariable2Type(t,r),r}getOrCreateRecordForTypeNode(e,t){if(!e)return s.PrimitiveType.ANY;let r=s.PrimitiveType.ANY;if(r=this.getTypeFromAnotation(e),r==s.PrimitiveType.ANY&&e.kind==o.SyntaxKind.TypeReference){let t=e.getChildAt(0),n=this.getDeclNodeForInitializer(t);r=this.getTypeFromDecl(n,!0)}return t&&_.TypeRecorder.getInstance().setVariable2Type(t,r),r}formatVariableStatement(e){e.declarationList.declarations.forEach((t=>{let r=t.name,n=t.type,i=t.initializer,a=this.getOrCreateRecordForTypeNode(n,r);if(a==s.PrimitiveType.ANY&&(a=this.getOrCreateRecordForDeclNode(i,r)),this.hasExportKeyword(e)&&a!=s.PrimitiveType.ANY){let e=c.getTextOfIdentifierOrLiteral(r);_.TypeRecorder.getInstance().setExportedType(e,a)}}))}formatClassDeclaration(e){let t=new s.ClassType(e).shiftedTypeIndex,r=e.name,n="default";r&&(n=c.getTextOfIdentifierOrLiteral(r)),this.hasExportKeyword(e)?_.TypeRecorder.getInstance().setExportedType(n,t):this.hasDeclareKeyword(e)&&(0,u.isGlobalDeclare)()&&_.TypeRecorder.getInstance().setDeclaredType(n,t)}formatNodeType(e,t){if(null!==this.compiledTypeChecker)switch(e.kind){case o.SyntaxKind.VariableStatement:let r=o.getOriginalNode(e);this.formatVariableStatement(r);break;case o.SyntaxKind.FunctionDeclaration:let n=o.getOriginalNode(e),i=n.name?n.name:void 0,a=new s.FunctionType(n);i&&_.TypeRecorder.getInstance().setVariable2Type(i,a.shiftedTypeIndex);break;case o.SyntaxKind.ClassDeclaration:let l=o.getOriginalNode(e);(this.hasExportKeyword(e)||this.hasDeclareKeyword(e))&&this.formatClassDeclaration(l);break;case o.SyntaxKind.InterfaceDeclaration:if((0,u.isGlobalDeclare)()){let t=o.getOriginalNode(e),r=new s.InterfaceType(t),n=t.name;if(n){let e=c.getTextOfIdentifierOrLiteral(n);_.TypeRecorder.getInstance().setDeclaredType(e,r.shiftedTypeIndex)}}break;case o.SyntaxKind.ExportDeclaration:t&&_.TypeRecorder.getInstance().addExportedType(t);break;case o.SyntaxKind.ImportDeclaration:t&&_.TypeRecorder.getInstance().addImportedType(t);break;case o.SyntaxKind.ExportAssignment:let d=e.expression,p="default",f=this.getTypeAtLocation(d);if(f){let e=f.getSymbol().valueDeclaration;_.TypeRecorder.getInstance().addNonReExportedType(p,e,d)}}}}t.TypeChecker=d},"./src/typeRecorder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeRecorder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/typeSystem.ts"),c=a(r("./src/jshelpers.js")),l=r("./src/typeChecker.ts");class u{constructor(){this.type2Index=new Map,this.variable2Type=new Map,this.userDefinedTypeSet=new Set,this.typeSummary=new s.TypeSummary,this.class2InstanceMap=new Map,this.arrayTypeMap=new Map,this.unionTypeMap=new Map,this.exportedType=new Map,this.declaredType=new Map,this.namespaceMap=new Map,this.anonymousReExport=new Array}static getInstance(){return u.instance}static createInstance(){return u.instance=new u,u.instance}setTypeSummary(){this.typeSummary.setInfo(this.countUserDefinedTypeSet(),this.anonymousReExport)}addUserDefinedTypeSet(e){this.userDefinedTypeSet.add(e)}countUserDefinedTypeSet(){return this.userDefinedTypeSet.size}addType2Index(e,t){this.type2Index.set(e,t),this.addUserDefinedTypeSet(t)}setVariable2Type(e,t){this.variable2Type.set(e,t),t>s.PrimitiveType._LENGTH&&this.addUserDefinedTypeSet(t)}hasType(e){return this.type2Index.has(e)}tryGetTypeIndex(e){return this.type2Index.has(e)?this.type2Index.get(e):s.PrimitiveType.ANY}tryGetVariable2Type(e){return this.variable2Type.has(e)?this.variable2Type.get(e):s.PrimitiveType.ANY}setArrayTypeMap(e,t){this.arrayTypeMap.set(e,t)}hasArrayTypeMapping(e){return this.arrayTypeMap.has(e)}getFromArrayTypeMap(e){return this.arrayTypeMap.get(e)}setUnionTypeMap(e,t){this.unionTypeMap.set(e,t)}hasUnionTypeMapping(e){return this.unionTypeMap.has(e)}getFromUnionTypeMap(e){return this.unionTypeMap.get(e)}setClass2InstanceMap(e,t){this.class2InstanceMap.set(e,t)}hasClass2InstanceMap(e){return this.class2InstanceMap.has(e)}getClass2InstanceMap(e){return this.class2InstanceMap.get(e)}addImportedType(e){if(e.getBindingNodeMap().forEach(((t,r)=>{let n=c.getTextOfIdentifierOrLiteral(t),i=l.TypeChecker.getInstance().getTypeDeclForIdentifier(r),a=new s.ExternalType(n,e.getModuleRequest());this.addType2Index(i,a.shiftedTypeIndex),this.setVariable2Type(r,a.shiftedTypeIndex)})),""!=e.getNameSpace()){this.setNamespaceMap(e.getNameSpace(),e.getModuleRequest());let t=new s.ExternalType("*",e.getNameSpace()).shiftedTypeIndex;this.addUserDefinedTypeSet(t)}}addExportedType(e){if(""!=e.getModuleRequest())if(""!=e.getNameSpace()){let t=new s.ExternalType("*",e.getModuleRequest()).shiftedTypeIndex;this.setExportedType(e.getNameSpace(),t),this.addUserDefinedTypeSet(t)}else 0!=e.getBindingNameMap().size?e.getBindingNameMap().forEach(((t,r)=>{let n=new s.ExternalType(t,e.getModuleRequest()).shiftedTypeIndex;this.setExportedType(r,n),this.addUserDefinedTypeSet(n)})):this.addAnonymousReExport(e.getModuleRequest());else e.getBindingNodeMap().forEach(((e,t)=>{var r;let n=c.getTextOfIdentifierOrLiteral(t),i=null===(r=l.TypeChecker.getInstance().getTypeAtLocation(e).getSymbol())||void 0===r?void 0:r.valueDeclaration;i&&this.addNonReExportedType(n,i,e)}))}addNonReExportedType(e,t,r){let n=this.tryGetTypeIndex(t),i=this.tryGetVariable2Type(t);if(n!=s.PrimitiveType.ANY)this.setExportedType(e,n);else if(i!=s.PrimitiveType.ANY)this.setExportedType(e,i);else{let n=l.TypeChecker.getInstance().getTypeFromDecl(t,r.kind==o.SyntaxKind.NewExpression);this.setExportedType(e,n)}}setExportedType(e,t){this.exportedType.set(e,t)}setDeclaredType(e,t){this.declaredType.set(e,t)}addAnonymousReExport(e){this.anonymousReExport.push(e)}setNamespaceMap(e,t){this.namespaceMap.set(e,t)}inNampespaceMap(e){return this.namespaceMap.has(e)}getPathForNamespace(e){return this.namespaceMap.get(e)}getType2Index(){return this.type2Index}getVariable2Type(){return this.variable2Type}getTypeSet(){return this.userDefinedTypeSet}getExportedType(){return this.exportedType}getDeclaredType(){return this.declaredType}getAnonymousReExport(){return this.anonymousReExport}getNamespaceMap(){return this.namespaceMap}printNodeMap(e){e.forEach(((e,t)=>{console.log(c.getTextOfNode(t)+": "+e)}))}printExportMap(e){e.forEach(((e,t)=>{console.log(t+" : "+e)}))}printReExportMap(e){e.forEach(((e,t)=>{console.log(t+" : "+e)}))}getLog(){console.log("type2Index: "),console.log(this.printNodeMap(this.getType2Index())),console.log("variable2Type: "),console.log(this.printNodeMap(this.getVariable2Type())),console.log("getTypeSet: "),console.log(this.getTypeSet()),console.log("class instance Map:"),console.log(this.class2InstanceMap),console.log("exportedType:"),console.log(this.printExportMap(this.getExportedType())),console.log("AnoymousRedirect:"),console.log(this.getAnonymousReExport()),console.log("namespace Map:"),console.log(this.getNamespaceMap())}}t.TypeRecorder=u},"./src/variable.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariable=t.LocalVariable=t.Variable=t.VarDeclarationKind=void 0;const n=r("./src/scope.ts");var i;!function(e){e[e.NONE=0]="NONE",e[e.LET=1]="LET",e[e.CONST=2]="CONST",e[e.VAR=3]="VAR",e[e.FUNCTION=4]="FUNCTION",e[e.MODULE=5]="MODULE",e[e.CLASS=6]="CLASS"}(i=t.VarDeclarationKind||(t.VarDeclarationKind={}));class a{constructor(e,t){this.declKind=e,this.isLexVar=!1,this.idxLex=0,this.name=t,this.vreg=void 0,this.typeIndex=0}bindVreg(e){this.vreg=e,this.vreg.setTypeIndex(this.typeIndex),this.vreg.setVariableName(this.name)}hasAlreadyBinded(){return void 0!==this.vreg}getVreg(){if(!this.vreg)throw new Error("variable has not been binded");return this.vreg}getName(){return this.name}getTypeIndex(){return this.typeIndex}setTypeIndex(e){return this.typeIndex=e}setLexVar(e){return this.idxLex=e.getLexVarIdx(),e.pendingCreateEnv(),this.isLexVar=!0,this.idxLex}clearLexVar(){this.isLexVar=!1,this.idxLex=0}isLet(){return this.declKind==i.LET}isConst(){return this.declKind==i.CONST}isLetOrConst(){return this.declKind==i.LET||this.declKind==i.CONST}isVar(){return this.declKind==i.VAR}isNone(){return this.declKind==i.NONE}isClass(){return this.declKind==i.CLASS}}t.Variable=a,t.LocalVariable=class extends a{constructor(e,t,r){super(e,t),this.isExport=!1,this.exportedName="",this.status=r||null}initialize(){this.status=n.InitStatus.INITIALIZED}isInitialized(){return null==this.status||this.status==n.InitStatus.INITIALIZED}setExport(){this.isExport=!0}isExportVar(){return this.isExport}setExportedName(e){this.exportedName=e}getExportedName(){if(!this.exportedName)throw new Error("Exported Variable "+this.getName()+" doesn't have exported name");return this.exportedName}},t.GlobalVariable=class extends a{constructor(e,t){super(e,t)}}},"./node_modules/typescript/lib/typescript.js":function(e,t,r){"use strict";var n,i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)},o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},s=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},c=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},l=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});!function(e){function t(){var e={};return e.prev=e,{head:e,tail:e,size:0}}function r(e,t){return e===t||e!=e&&t!=t}function n(e){var t=e.prev;if(!t||t===e)throw new Error("Illegal state");return t}function i(e){for(;e;){var t=!e.prev;if(e=e.next,!t)return e}}function a(e,t){for(var i=e.tail;i!==e.head;i=n(i))if(r(i.key,t))return i}function o(e,t,r){var n=a(e,t);if(!n){var i=function(e,t){return{key:e,value:t,next:void 0,prev:void 0}}(t,r);return i.prev=e.tail,e.tail.next=i,e.tail=i,e.size++,i}n.value=r}function s(e,t){for(var i=e.tail;i!==e.head;i=n(i)){if(void 0===i.prev)throw new Error("Illegal state");if(r(i.key,t)){if(i.next)i.next.prev=i.prev;else{if(e.tail!==i)throw new Error("Illegal state");e.tail=i.prev}return i.prev.next=i.next,i.next=i.prev,i.prev=void 0,e.size--,i}}}function c(e){for(var t=e.tail;t!==e.head;){var r=n(t);t.next=e.head,t.prev=void 0,t=r}e.head.next=void 0,e.tail=e.head,e.size=0}function l(e,t){for(var r=e.head;r;)(r=i(r))&&t(r.value,r.key)}function u(e,t){if(e)for(var r=e.next();!r.done;r=e.next())t(r.value)}function _(e,t){return{current:e.head,selector:t}}function d(e){return e.current=i(e.current),e.current?{value:e.selector(e.current.key,e.current.value),done:!1}:{value:void 0,done:!0}}var p;(p=e.ShimCollections||(e.ShimCollections={})).createMapShim=function(e){var r=function(){function e(e,t){this._data=_(e,t)}return e.prototype.next=function(){return d(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),u(e(r),(function(e){var t=e[0],r=e[1];return n.set(t,r)}))}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.get=function(e){var t;return null===(t=a(this._mapData,e))||void 0===t?void 0:t.value},n.prototype.set=function(e,t){return o(this._mapData,e,t),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,(function(e,t){return e}))},n.prototype.values=function(){return new r(this._mapData,(function(e,t){return t}))},n.prototype.entries=function(){return new r(this._mapData,(function(e,t){return[e,t]}))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()},p.createSetShim=function(e){var r=function(){function e(e,t){this._data=_(e,t)}return e.prototype.next=function(){return d(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),u(e(r),(function(e){return n.add(e)}))}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.add=function(e){return o(this._mapData,e,e),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,(function(e,t){return e}))},n.prototype.values=function(){return new r(this._mapData,(function(e,t){return t}))},n.prototype.entries=function(){return new r(this._mapData,(function(e,t){return[e,t]}))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()}}(u||(u={})),function(e){var t,r;e.versionMajorMinor="4.4",e.version="4.4.3",(r=e.Comparison||(e.Comparison={}))[r.LessThan=-1]="LessThan",r[r.EqualTo=0]="EqualTo",r[r.GreaterThan=1]="GreaterThan",(t=e.NativeCollections||(e.NativeCollections={})).tryGetNativeMap=function(){return"undefined"!=typeof Map&&"entries"in Map.prototype&&1===new Map([[0,0]]).size?Map:void 0},t.tryGetNativeSet=function(){return"undefined"!=typeof Set&&"entries"in Set.prototype&&1===new Set([0]).size?Set:void 0}}(u||(u={})),function(e){function t(t,n,i){var a,o=null!==(a=e.NativeCollections[n]())&&void 0!==a?a:null===e.ShimCollections||void 0===e.ShimCollections?void 0:e.ShimCollections[i](r);if(o)return o;throw new Error("TypeScript requires an environment that provides a compatible native "+t+" implementation.")}function r(t){if(t){if(A(t))return g(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}}function n(e,t,r){if(void 0===r&&(r=L),e)for(var n=0,i=e;n<i.length;n++)if(r(i[n],t))return!0;return!1}function a(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 o(e,t){return a(t)?a(e)?i(i([],e,!0),t,!0):t:e}function s(e,t){return t}function c(e){return e.map(s)}function l(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function u(e,t){return t<0?e.length+t:t}function _(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:u(t,r),n=void 0===n?t.length:u(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function d(e,t,r){return!n(e,t,r)&&(e.push(t),!0)}function p(e,t,r){t.sort((function(t,n){return r(e[t],e[n])||R(t,n)}))}function f(e,t){return 0===e.length?e:e.slice().sort(t)}function g(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:(t++,{value:e[t-1],done:!1})}}}function m(e,t,r,n,i){return y(e,r(t),r,n,i)}function y(e,t,r,n,i){if(!a(e))return-1;for(var o=i||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(n(r(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function h(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.Map=t("Map","tryGetNativeMap","createMapShim"),e.Set=t("Set","tryGetNativeSet","createSetShim"),e.getIterator=r,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(t){var r=new e.Map;for(var n in t)v.call(t,n)&&r.set(n,t[n]);return r},e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},e.forEachRight=function(e,t){if(e)for(var r=e.length-1;r>=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},e.firstDefinedIterator=function(e,t){for(;;){var r=e.next();if(r.done)return;var n=t(r.value);if(void 0!==n)return n}},e.reduceLeftIterator=function(e,t,r){var n=r;if(e)for(var i=e.next(),a=0;!i.done;i=e.next(),a++)n=t(n,i.value,a);return n},e.zipWith=function(t,r,n){var i=[];e.Debug.assertEqual(t.length,r.length);for(var a=0;a<t.length;a++)i.push(n(t[a],r[a],a));return i},e.zipToIterator=function(t,r){e.Debug.assertEqual(t.length,r.length);var n=0;return{next:function(){return n===t.length?{value:void 0,done:!0}:(n++,{value:[t[n-1],r[n-1]],done:!1})}}},e.zipToMap=function(t,r){e.Debug.assert(t.length===r.length);for(var n=new e.Map,i=0;i<t.length;++i)n.set(t[i],r[i]);return n},e.intersperse=function(e,t){if(e.length<=1)return e;for(var r=[],n=0,i=e.length;n<i;n++)n&&r.push(t),r.push(e[n]);return r},e.every=function(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},e.find=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},e.findLast=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},e.findLastIndex=function(e,t,r){for(var n=void 0===r?e.length-1:r;n>=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n<t.length;n++){var i=r(t[n],n);if(i)return i}return e.Debug.fail()},e.contains=n,e.arraysEqual=function(e,t,r){return void 0===r&&(r=L),e.length===t.length&&e.every((function(e,n){return r(e,t[n])}))},e.indexOfAnyCharCode=function(e,t,r){for(var i=r||0;i<e.length;i++)if(n(t,e.charCodeAt(i)))return i;return-1},e.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},e.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=function(e){e.length=0},e.map=function(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},e.mapIterator=function(e,t){return{next:function(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}},e.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(A(i)?_(t,i):t.push(i))}return t},e.flatMap=function(t,r){var n;if(t)for(var i=0;i<t.length;i++){var a=r(t[i],i);a&&(n=A(a)?_(n,a):l(n,a))}return n||e.emptyArray},e.flatMapToMutable=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(A(i)?_(r,i):r.push(i))}return r},e.flatMapIterator=function(t,r){var n=t.next();if(n.done)return e.emptyIterator;var i=a(n.value);return{next:function(){for(;;){var e=i.next();if(!e.done)return e;var r=t.next();if(r.done)return r;i=a(r.value)}}};function a(t){var n=r(t);return void 0===n?e.emptyIterator:A(n)?g(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||A(a))&&(r||(r=e.slice(0,n)),A(a)?_(r,a):r.push(a))}return r||e},e.mapAllOrFail=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},e.mapDefined=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},e.mapDefinedIterator=function(e,t){return{next:function(){for(;;){var r=e.next();if(r.done)return r;var n=t(r.value);if(void 0!==n)return{value:n,done:!1}}}}},e.mapDefinedEntries=function(t,r){if(t){var n=new e.Map;return t.forEach((function(e,t){var i=r(t,e);if(void 0!==i){var a=i[0],o=i[1];void 0!==a&&void 0!==o&&n.set(a,o)}})),n}},e.mapDefinedValues=function(t,r){if(t){var n=new e.Set;return t.forEach((function(e){var t=r(e);void 0!==t&&n.add(t)})),n}},e.getOrUpdate=function(e,t,r){if(e.has(t))return e.get(t);var n=r();return e.set(t,n),n},e.tryAddToSet=function(e,t){return!e.has(t)&&(e.add(t),!0)},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var t=!1;return{next:function(){var r=t;return t=!0,r?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=function(e,t,r){var n;if(e){n=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var l=r(e.slice(s,c),a,s,c);l&&n.push(l),s=c}a=o,c++}}return n},e.mapEntries=function(t,r){if(t){var n=new e.Map;return t.forEach((function(e,t){var i=r(t,e),a=i[0],o=i[1];n.set(a,o)})),n}},e.some=a,e.getRangesWhere=function(e,t,r){for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},e.concatenate=o,e.indicesOf=c,e.deduplicate=function(e,t,r){return 0===e.length?[]:1===e.length?e.slice():r?function(e,t,r){var n=c(e);p(e,n,r);for(var i=e[n[0]],a=[n[0]],o=1;o<n.length;o++){var s=n[o],l=e[s];t(i,l)||(a.push(s),i=l)}return a.sort(),a.map((function(t){return e[t]}))}(e,t,r):function(e,t){for(var r=[],n=0,i=e;n<i.length;n++)d(r,i[n],t);return r}(e,t)},e.insertSorted=function(e,t,r){if(0!==e.length){var n=m(e,t,F,r);n<0&&e.splice(~n,0,t)}else e.push(t)},e.sortAndDeduplicate=function(t,r,n){return function(t,r){if(0===t.length)return e.emptyArray;for(var n=t[0],i=[n],a=1;a<t.length;a++){var o=t[a];switch(r(o,n)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}i.push(n=o)}return i}(f(t,r),n||r||j)},e.arrayIsSorted=function(e,t){if(e.length<2)return!0;for(var r=e[0],n=0,i=e.slice(1);n<i.length;n++){var a=i[n];if(1===t(r,a))return!1;r=a}return!0},e.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=L),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},e.compact=function(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},e.relativeComplement=function(t,r,n){if(!r||!t||0===r.length||0===t.length)return r;var i=[];e:for(var a=0,o=0;o<r.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;a<t.length;a++)switch(a>s&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},e.append=l,e.combine=function(e,t){return void 0===e?t:void 0===t?e:A(e)?A(t)?o(e,t):l(e,t):A(t)?l(t,e):[e,t]},e.addRange=_,e.pushIfUnique=d,e.appendIfUnique=function(e,t,r){return e?(d(e,t,r),e):[t]},e.sort=f,e.arrayIterator=g,e.arrayReverseIterator=function(e){var t=e.length;return{next:function(){return 0===t?{value:void 0,done:!0}:(t--,{value:e[t],done:!1})}}},e.stableSort=function(e,t){var r=c(e);return p(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=u(e,t))<e.length)return e[t]},e.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},e.first=function(t){return e.Debug.assert(0!==t.length),t[0]},e.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},e.last=function(t){return e.Debug.assert(0!==t.length),t[t.length-1]},e.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},e.singleOrMany=function(e){return e&&1===e.length?e[0]:e},e.replaceElement=function(e,t,r){var n=e.slice(0);return n[t]=r,n},e.binarySearch=m,e.binarySearchKey=y,e.reduceLeft=h;var v=Object.prototype.hasOwnProperty;function b(e,t){return v.call(e,t)}function x(e){var t=[];for(var r in e)v.call(e,r)&&t.push(r);return t}e.hasProperty=b,e.getProperty=function(e,t){return v.call(e,t)?e[t]:void 0},e.getOwnKeys=x,e.getAllKeys=function(e){var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++)d(t,n[r])}while(e=Object.getPrototypeOf(e));return t},e.getOwnValues=function(e){var t=[];for(var r in e)v.call(e,r)&&t.push(e[r]);return t};var D=Object.entries||function(e){for(var t=x(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=[t[n],e[t[n]]];return r};function S(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function E(e,t,r){void 0===r&&(r=F);for(var n=T(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function T(){var t=new e.Map;return t.add=C,t.remove=k,t}function C(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function k(e,t){var r=this.get(e);r&&(q(r,t),r.length||this.delete(e))}function A(e){return Array.isArray?Array.isArray(e):e instanceof Array}function N(e){}function F(e){return e}function w(e){return e.toLowerCase()}e.getEntries=function(e){return e?D(e):[]},e.arrayOf=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.arrayFrom=S,e.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(void 0!==a)for(var o in a)b(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=function(e,t,r){if(void 0===r&&(r=L),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(v.call(e,n)){if(!v.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(v.call(t,n)&&!v.call(e,n))return!1;return!0},e.arrayToMap=function(t,r,n){void 0===n&&(n=F);for(var i=new e.Map,a=0,o=t;a<o.length;a++){var s=o[a],c=r(s);void 0!==c&&i.set(c,n(s))}return i},e.arrayToNumericMap=function(e,t,r){void 0===r&&(r=F);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToMultiMap=E,e.group=function(e,t,r){return void 0===r&&(r=F),S(E(e,t).values(),r)},e.clone=function(e){var t={};for(var r in e)v.call(e,r)&&(t[r]=e[r]);return t},e.extend=function(e,t){var r={};for(var n in t)v.call(t,n)&&(r[n]=t[n]);for(var n in e)v.call(e,n)&&(r[n]=e[n]);return r},e.copyProperties=function(e,t){for(var r in t)v.call(t,r)&&(e[r]=t[r])},e.maybeBind=function(e,t){return t?t.bind(e):void 0},e.createMultiMap=T,e.createUnderscoreEscapedMultiMap=function(){return T()},e.isArray=A,e.toArray=function(e){return A(e)?e:[e]},e.isString=function(e){return"string"==typeof e},e.isNumber=function(e){return"number"==typeof e},e.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},e.cast=function(t,r){return void 0!==t&&r(t)?t:e.Debug.fail("Invalid cast. The supplied value "+t+" did not pass the test '"+e.Debug.getFunctionName(r)+"'.")},e.noop=N,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.returnUndefined=function(){},e.identity=F,e.toLowerCase=w;var P,I=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function O(e){return I.test(e)?e.replace(I,w):e}function L(e,t){return e===t}function M(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function R(e,t){return M(e,t)}function B(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 j(e,t){return M(e,t)}e.toFileNameLowerCase=O,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n=typeof e+":"+e,i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return h(a,(function(e,t){return t(e)}),e)}}return n?function(i){return n(r(t(e(i))))}:r?function(n){return r(t(e(n)))}:t?function(r){return t(e(r))}:e?function(t){return e(t)}:function(e){return e}},(P=e.AssertionLevel||(e.AssertionLevel={}))[P.None=0]="None",P[P.Normal=1]="Normal",P[P.Aggressive=2]="Aggressive",P[P.VeryAggressive=3]="VeryAggressive",e.equateValues=L,e.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},e.equateStringsCaseSensitive=function(e,t){return L(e,t)},e.compareValues=R,e.compareTextSpans=function(e,t){return R(null==e?void 0:e.start,null==t?void 0:t.start)||R(null==e?void 0:e.length,null==t?void 0:t.length)},e.min=function(e,t,r){return-1===r(e,t)?e:t},e.compareStringsCaseInsensitive=B,e.compareStringsCaseSensitive=j,e.getStringComparer=function(e){return e?B:j};var J,V,U=function(){var e,t,r="object"==typeof Intl&&"function"==typeof Intl.Collator?i:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?a:o;return function(n){return void 0===n?e||(e=r(n)):"en-US"===n?t||(t=r(n)):r(n)};function n(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return e<t?-1:e>t?1:0}}}();function K(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),l=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var u=o,_=1;_<c;_++)i[_]=a;for(_=c;_<=l;_++){var d=e[o-1].toLowerCase()===t[_-1].toLowerCase()?n[_-1]+.1:n[_-1]+2,p=s===t.charCodeAt(_-1)?n[_-1]:Math.min(n[_]+1,i[_-1]+1,d);i[_]=p,u=Math.min(u,p)}for(_=l+1;_<=t.length;_++)i[_]=a;if(u>r)return;var f=n;n=i,i=f}var g=n[t.length];return g>r?void 0:g}function z(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function G(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function W(e,t){e[t]=e[e.length-1],e.pop()}function q(e,t){return function(e,r){for(var n=0;n<e.length;n++)if(e[n]===t)return W(e,n),!0;return!1}(e)}function H(e,t){return 0===e.lastIndexOf(t,0)}function Y(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&H(t,r)&&z(t,n)}function X(e,t,r,n){for(var i=0,a=e[n];i<a.length;i++){var o=a[i],s=void 0;r?(s=r.slice()).push(o):s=[o],n===e.length-1?t.push(s):X(e,t,s,n+1)}}e.getUILocale=function(){return V},e.setUILocale=function(e){V!==e&&(V=e,J=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(J||(J=U(V)))(e,t)},e.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},e.compareBooleans=function(e,t){return R(e?1:0,t?1:0)},e.getSpellingSuggestion=function(t,r,n){for(var i,a=Math.min(2,Math.floor(.34*t.length)),o=Math.floor(.4*t.length)+1,s=0,c=r;s<c.length;s++){var l=c[s],u=n(l);if(void 0!==u&&Math.abs(u.length-t.length)<=a){if(u===t)continue;if(u.length<3&&u.toLowerCase()!==t.toLowerCase())continue;var _=K(t,u,o-.1);if(void 0===_)continue;e.Debug.assert(_<o),o=_,i=l}}return i},e.endsWith=z,e.removeSuffix=function(e,t){return z(e,t)?e.slice(0,e.length-t.length):e},e.tryRemoveSuffix=function(e,t){return z(e,t)?e.slice(0,e.length-t.length):void 0},e.stringContains=function(e,t){return-1!==e.indexOf(t)},e.removeMinAndVersionNumbers=function(e){for(var t=e.length,r=t-1;r>0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return G(e,r),!0;return!1},e.orderedRemoveItemAt=G,e.unorderedRemoveItemAt=W,e.unorderedRemoveItem=q,e.createGetCanonicalFileName=function(e){return e?F:O},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(t,r){return e.Debug.assert(Y(t,r)),r.substring(t.prefix.length,r.length-t.suffix.length)},e.findBestPatternMatch=function(e,t,r){for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);Y(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},e.startsWith=H,e.removePrefix=function(e,t){return H(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=F),H(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,i=e;n<i.length;n++){var a=i[n];if(a.apply(void 0,t))return!0}return!1}},e.not=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!e.apply(void 0,t)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||N;for(var o=0,s=0,c=e.length,l=t.length,u=!1;o<c&&s<l;){var _=e[o],d=t[s],p=r(_,d);-1===p?(n(_),o++,u=!0):1===p?(i(d),s++,u=!0):(a(d,_),o++,s++)}for(;o<c;)n(e[o++]),u=!0;for(;s<l;)i(t[s++]),u=!0;return u},e.fill=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.cartesianProduct=function(e){var t=[];return X(e,t,void 0,0),t},e.padLeft=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:r.repeat(t-e.length)+e},e.padRight=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:e+r.repeat(t-e.length)},e.takeWhile=function(e,t){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;return e.slice(0,n)},e.trimString=String.prototype.trim?function(e){return e.trim()}:function(t){return e.trimStringEnd(e.trimStringStart(t))},e.trimStringEnd=String.prototype.trimEnd?function(e){return e.trimEnd()}:function(t){for(var r=t.length-1;r>=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(u||(u={})),function(e){var t;!function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"}(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function l(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=l,(i=l=r.log||(r.log={})).error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var u={};function _(e){return a>=e}function d(t,n){return!!_(t)||(u[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function p(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||p),r}function f(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),p(t,n||f))}function g(e,t,r){null==e&&p(t,r||g)}function m(e,t,r){return g(e,t,r||m),e}function y(e,t,r){for(var n=0,i=e;n<i.length;n++)g(i[n],t,r||y)}function h(e,t,r){return y(e,t,r||h),e}function v(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}function b(t,r,n){void 0===t&&(t=0);var i=function(t){var r=[];for(var n in t){var i=t[n];"number"==typeof i&&r.push([i,n])}return e.stableSort(r,(function(t,r){return e.compareValues(t[0],r[0])}))}(r);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;s<c.length;s++){var l=c[s],u=l[0],_=l[1];if(u>t)break;0!==u&&u&t&&(a=a+(a?"|":"")+_,o&=~u)}if(0===o)return a}else for(var d=0,p=i;d<p.length;d++){var f=p[d];if(u=f[0],_=f[1],u===t)return _}return t.toString()}function x(t){return b(t,e.SyntaxKind,!1)}function D(t){return b(t,e.NodeFlags,!0)}function S(t){return b(t,e.ModifierFlags,!0)}function E(t){return b(t,e.TransformFlags,!0)}function T(t){return b(t,e.EmitFlags,!0)}function C(t){return b(t,e.SymbolFlags,!0)}function k(t){return b(t,e.TypeFlags,!0)}function A(t){return b(t,e.SignatureFlags,!0)}function N(t){return b(t,e.ObjectFlags,!0)}function F(t){return b(t,e.FlowFlags,!0)}r.getAssertionLevel=function(){return a},r.setAssertionLevel=function(t){var n=a;if(a=t,t>n)for(var i=0,o=e.getOwnKeys(u);i<o.length;i++){var s=o[i],c=u[s];void 0!==c&&r[s]!==c.assertion&&t>=c.level&&(r[s]=c,u[s]=void 0)}},r.shouldAssert=_,r.fail=p,r.failBadSyntaxKind=function e(t,r,n){return p((r||"Unexpected node.")+"\r\nNode "+x(t.kind)+" was unexpected.",n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){t!==r&&p("Expected "+t+" === "+r+". "+(n?i?n+" "+i:n:""),a||e)},r.assertLessThan=function e(t,r,n,i){t>=r&&p("Expected "+t+" < "+r+". "+(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&p("Expected "+t+" <= "+r,n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t<r&&p("Expected "+t+" >= "+r,n||e)},r.assertIsDefined=g,r.checkDefined=m,r.assertDefined=m,r.assertEachIsDefined=y,r.checkEachDefined=h,r.assertEachDefined=h,r.assertNever=function t(r,n,i){return void 0===n&&(n="Illegal value:"),p(n+" "+("object"==typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")&&x?"SyntaxKind: "+x(r.kind):JSON.stringify(r)),i||t)},r.assertEachNode=function t(r,n,i,a){d(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '"+v(n)+"'."}),a||t)},r.assertNode=function e(t,r,n,i){d(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node "+x(null==t?void 0:t.kind)+" did not pass test '"+v(r)+"'."}),i||e)},r.assertNotNode=function e(t,r,n,i){d(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node "+x(t.kind)+" should not have passed test '"+v(r)+"'."}),i||e)},r.assertOptionalNode=function e(t,r,n,i){d(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node "+x(null==t?void 0:t.kind)+" did not pass test '"+v(r)+"'."}),i||e)},r.assertOptionalToken=function e(t,r,n,i){d(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node "+x(null==t?void 0:t.kind)+" was not a '"+x(r)+"' token."}),i||e)},r.assertMissingNode=function e(t,r,n){d(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(function(){return"Node "+x(t.kind)+" was unexpected'."}),n||e)},r.type=function(e){},r.getFunctionName=v,r.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+C(t.flags)+"; declarations: "+e.map(t.declarations,(function(e){return x(e.kind)}))+" }"},r.formatEnum=b,r.formatSyntaxKind=x,r.formatNodeFlags=D,r.formatModifierFlags=S,r.formatTransformFlags=E,r.formatEmitFlags=T,r.formatSymbolFlags=C,r.formatTypeFlags=k,r.formatSignatureFlags=A,r.formatObjectFlags=N,r.formatFlowFlags=F;var w,P,I,O=!1;function L(e){return function(){if(B(),!w)throw new Error("Debugging helpers could not be loaded.");return w}().formatControlFlowGraph(e)}function M(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return e+(t?" ("+F(t)+")":"")}},__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return L(this)}}})}function R(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return"NodeArray "+String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}}})}function B(){if(!O){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return t+" '"+e.symbolName(this)+"'"+(r?" ("+C(r)+")":"")}},__debugFlags:{get:function(){return C(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType "+JSON.stringify(this.value):2048&this.flags?"LiteralType "+(this.value.negative?"-":"")+this.value.base10Value+"n":8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType "+this.intrinsicName:1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return t+(this.symbol?" '"+e.symbolName(this.symbol)+"'":"")+(r?" ("+N(r)+")":"")}},__debugFlags:{get:function(){return k(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return A(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n<i.length;n++){var a=i[n];a.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(a.prototype,{__tsDebuggerDisplay:{value:function(){return(e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '"+e.idText(this)+"'":e.isPrivateIdentifier(this)?"PrivateIdentifier '"+e.idText(this)+"'":e.isStringLiteral(this)?"StringLiteral "+JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"..."):e.isNumericLiteral(this)?"NumericLiteral "+this.text:e.isBigIntLiteral(this)?"BigIntLiteral "+this.text+"n":e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":x(this.kind))+(this.flags?" ("+D(this.flags)+")":"")}},__debugKind:{get:function(){return x(this.kind)}},__debugNodeFlags:{get:function(){return D(this.flags)}},__debugModifierFlags:{get:function(){return S(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return E(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return T(e.getEmitFlags(this))}},__debugGetText:{value:function(t){if(e.nodeIsSynthesized(this))return"";var n=(void 0===r&&"function"==typeof WeakMap&&(r=new WeakMap),r),i=null==n?void 0:n.get(this);if(void 0===i){var a=e.getParseTreeNode(this),o=a&&e.getSourceFileOfNode(a);i=o?e.getSourceTextOfNodeFromSourceFile(o,a,t):"",null==n||n.set(this,i)}return i}}})}try{if(e.sys&&e.sys.require){var o=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),s=e.sys.require(o,"./compiler-debug");s.error||(s.module.init(e),w=s.module)}}catch(e){}O=!0}}function j(t,r,n,i,a){var o=r?"DeprecationError: ":"DeprecationWarning: ";return o+="'"+t+"' ",o+=i?"has been deprecated since v"+i:"is deprecated",(o+=r?" and can no longer be used.":n?" and will no longer be usable after v"+n+".":".")+(a?" "+e.formatStringFromArgs(a,[t],0):"")}r.printControlFlowGraph=function(e){return console.log(L(e))},r.formatControlFlowGraph=L,r.attachFlowNodeDebugInfo=function(e){O&&("function"==typeof Object.setPrototypeOf?(P||M(P=Object.create(Object.prototype)),Object.setPrototypeOf(e,P)):M(e))},r.attachNodeArrayDebugInfo=function(e){O&&("function"==typeof Object.setPrototypeOf?(I||R(I=Object.create(Array.prototype)),Object.setPrototypeOf(e,I)):R(e))},r.enableDebugInfo=B,r.deprecate=function(t,r){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(function(t,r){var n,i;void 0===r&&(r={});var a="string"==typeof r.typeScriptVersion?new e.Version(r.typeScriptVersion):null!==(n=r.typeScriptVersion)&&void 0!==n?n:o(),s="string"==typeof r.errorAfter?new e.Version(r.errorAfter):r.errorAfter,c="string"==typeof r.warnAfter?new e.Version(r.warnAfter):r.warnAfter,u="string"==typeof r.since?new e.Version(r.since):null!==(i=r.since)&&void 0!==i?i:c,_=r.error||s&&a.compareTo(s)<=0,d=!c||a.compareTo(c)>=0;return _?function(e,t,r,n){var i=j(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,s,u,r.message):d?function(e,t,r,n){var i=!1;return function(){i||(l.warn(j(e,!1,t,r,n)),i=!0)}}(t,s,u,r.message):e.noop}(v(t),r),t)}}(e.Debug||(e.Debug={}))}(u||(u={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var l=e.Debug.checkDefined(o(t),"Invalid version");t=l.major,i=l.minor,a=l.patch,s=l.prerelease,c=l.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a<n;a++){var o=t[a],s=r[a];if(o!==s){var c=i.test(o),l=i.test(s);if(c||l){if(c!==l)return c?-1:1;if(u=e.compareValues(+o,+s))return u}else{var u;if(u=e.compareStringsCaseSensitive(o,s))return u}}}return e.compareValues(t.length,r.length)}(this.prerelease,t.prerelease)},t.prototype.increment=function(r){switch(r){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(r)}},t.prototype.toString=function(){var t=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(t+="-"+this.prerelease.join(".")),e.some(this.build)&&(t+="+"+this.build.join(".")),t},t.zero=new t(0,0,0),t}();function o(e){var i=t.exec(e);if(i){var a=i[1],o=i[2],s=void 0===o?"0":o,c=i[3],l=void 0===c?"0":c,u=i[4],_=void 0===u?"":u,d=i[5],p=void 0===d?"":d;if((!_||r.test(_))&&(!p||n.test(p)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(l,10),prerelease:_,build:p}}}e.Version=a;var s=function(){function t(t){this._alternatives=t?e.Debug.checkDefined(p(t),"Invalid range spec."):e.emptyArray}return t.tryParse=function(e){var r=p(e);if(r){var n=new t("");return n._alternatives=r,n}},t.prototype.test=function(e){return"string"==typeof e&&(e=new a(e)),function(e,t){if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++)if(v(e,n[r]))return!0;return!1}(e,this._alternatives)},t.prototype.toString=function(){return t=this._alternatives,e.map(t,x).join(" || ")||"*";var t},t}();e.VersionRange=s;var c=/\|\|/g,l=/\s+/g,u=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,_=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,d=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(t){for(var r=[],n=0,i=e.trimString(t).split(c);n<i.length;n++){var a=i[n];if(a){var o=[];a=e.trimString(a);var s=_.exec(a);if(s){if(!g(s[1],s[2],o))return}else for(var u=0,p=a.split(l);u<p.length;u++){var f=p[u],y=d.exec(e.trimString(f));if(!y||!m(y[1],y[2],o))return}r.push(o)}}return r}function f(e){var t=u.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,o=t[3],s=void 0===o?"*":o,c=t[4],l=t[5];return{version:new a(y(r)?0:parseInt(r,10),y(r)||y(i)?0:parseInt(i,10),y(r)||y(i)||y(s)?0:parseInt(s,10),c,l),major:r,minor:i,patch:s}}}function g(e,t,r){var n=f(e);if(!n)return!1;var i=f(t);return!!i&&(y(n.major)||r.push(h(">=",n.version)),y(i.major)||r.push(y(i.minor)?h("<",i.version.increment("major")):y(i.patch)?h("<",i.version.increment("minor")):h("<=",i.version)),!0)}function m(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(y(o))"<"!==e&&">"!==e||r.push(h("<",a.zero));else switch(e){case"~":r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(h(">=",i)),r.push(h("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(h(e,i));break;case"<=":case">":r.push(y(s)?h("<="===e?"<":">=",i.increment("major")):y(c)?h("<="===e?"<":">=",i.increment("minor")):h(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")))):r.push(h("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function h(e,t){return{operator:e,operand:t}}function v(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!b(e,i.operator,i.operand))return!1}return!0}function b(t,r,n){var i=t.compareTo(n);switch(r){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function x(t){return e.map(t,D).join(" ")}function D(e){return""+e.operator+e.operand}}(u||(u={})),function(e){function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var n=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser)try{var n,i=r("perf_hooks"),a=i.performance,o=i.PerformanceObserver;if(t(a,o)){n=a;var s=new e.Version(process.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(s)&&(n={get timeOrigin(){return a.timeOrigin},now:function(){return a.now()},mark:function(e){return a.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",a.mark(r)),a.measure(e,t,r),"__performance.measure-fix__"===r&&a.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:n,PerformanceObserver:o}}}catch(e){}}(),i=null==n?void 0:n.performance;e.tryGetNativePerformanceHooks=function(){return n},e.timestamp=i?function(){return i.now()}:Date.now?Date.now:function(){return+new Date}}(u||(u={})),function(e){!function(t){var r,n;function i(t,r,n){var i=0;return{enter:function(){1==++i&&u(r)},exit:function(){0==--i?(u(n),_(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,r,n,a){return e?i(r,n,a):t.nullTimer},t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function _(t,r,i){var c,u;if(a){var _=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),d=null!==(u=void 0!==r?s.get(r):void 0)&&void 0!==u?u:o,p=l.get(t)||0;l.set(t,p+(_-d)),null==n||n.measure(t,r,i)}}t.mark=u,t.measure=_,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return l.get(e)||0},t.forEachMeasure=function(e){l.forEach((function(t,r){return e(r,t)}))},t.isEnabled=function(){return a},t.enable=function(t){var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=function(){a&&(s.clear(),c.clear(),l.clear(),n=void 0,a=!1)}}(e.performance||(e.performance={}))}(u||(u={})),function(e){var t,n,i={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var a=null!==(t=process.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=r("./node_modules/typescript/lib sync recursive")(a)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:i}(u||(u={})),function(e){var t;!function(t){var n,i,o,s,c=0,l=0,u=[],_=[];t.startTracing=function(s,d,p){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=r("fs")}catch(e){throw new Error("tracing requires having fs\n(original error: "+(e.message||e)+")")}i=s,u.length=0,void 0===o&&(o=e.combinePaths(d,"legend.json")),n.existsSync(d)||n.mkdirSync(d,{recursive:!0});var f="build"===i?"."+process.pid+"-"+ ++c:"server"===i?"."+process.pid:"",g=e.combinePaths(d,"trace"+f+".json"),m=e.combinePaths(d,"types"+f+".json");_.push({configFilePath:p,tracePath:g,typesPath:m}),l=n.openSync(g,"w"),e.tracing=t;var y={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(l,"[\n"+[a({name:"process_name",args:{name:"tsc"}},y),a({name:"thread_name",args:{name:"Main"}},y),a(a({name:"TracingStartedInBrowser"},y),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},t.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!u.length==("server"!==i)),n.writeSync(l,"\n]\n"),n.closeSync(l),e.tracing=void 0,u.length?function(t){var r,i,o,s,c,l,u,d,p,f,m,y,h,v,b,x,D,S,E,T,C,k;e.performance.mark("beginDumpTypes");var A=_[_.length-1].typesPath,N=n.openSync(A,"w"),F=new e.Map;n.writeSync(N,"[");for(var w=t.length,P=0;P<w;P++){var I=t[P],O=I.objectFlags,L=null!==(r=I.aliasSymbol)&&void 0!==r?r:I.symbol,M=void 0;if(16&O|2944&I.flags)try{M=null===(i=I.checker)||void 0===i?void 0:i.typeToString(I)}catch(e){M=void 0}var R={};if(8388608&I.flags){var B=I;R={indexedAccessObjectType:null===(o=B.objectType)||void 0===o?void 0:o.id,indexedAccessIndexType:null===(s=B.indexType)||void 0===s?void 0:s.id}}var j={};if(4&O){var J=I;j={instantiatedType:null===(c=J.target)||void 0===c?void 0:c.id,typeArguments:null===(l=J.resolvedTypeArguments)||void 0===l?void 0:l.map((function(e){return e.id})),referenceLocation:g(J.node)}}var V={};if(16777216&I.flags){var U=I;V={conditionalCheckType:null===(u=U.checkType)||void 0===u?void 0:u.id,conditionalExtendsType:null===(d=U.extendsType)||void 0===d?void 0:d.id,conditionalTrueType:null!==(f=null===(p=U.resolvedTrueType)||void 0===p?void 0:p.id)&&void 0!==f?f:-1,conditionalFalseType:null!==(y=null===(m=U.resolvedFalseType)||void 0===m?void 0:m.id)&&void 0!==y?y:-1}}var K={};if(33554432&I.flags){var z=I;K={substitutionBaseType:null===(h=z.baseType)||void 0===h?void 0:h.id,substituteType:null===(v=z.substitute)||void 0===v?void 0:v.id}}var G={};if(1024&O){var W=I;G={reverseMappedSourceType:null===(b=W.source)||void 0===b?void 0:b.id,reverseMappedMappedType:null===(x=W.mappedType)||void 0===x?void 0:x.id,reverseMappedConstraintType:null===(D=W.constraintType)||void 0===D?void 0:D.id}}var q={};if(256&O){var H=I;q={evolvingArrayElementType:H.elementType.id,evolvingArrayFinalType:null===(S=H.finalArrayType)||void 0===S?void 0:S.id}}var Y=void 0,X=I.checker.getRecursionIdentity(I);X&&((Y=F.get(X))||(Y=F.size,F.set(X,Y)));var Q=a(a(a(a(a(a(a({id:I.id,intrinsicName:I.intrinsicName,symbolName:(null==L?void 0:L.escapedName)&&e.unescapeLeadingUnderscores(L.escapedName),recursionId:Y,isTuple:!!(8&O)||void 0,unionTypes:1048576&I.flags?null===(E=I.types)||void 0===E?void 0:E.map((function(e){return e.id})):void 0,intersectionTypes:2097152&I.flags?I.types.map((function(e){return e.id})):void 0,aliasTypeArguments:null===(T=I.aliasTypeArguments)||void 0===T?void 0:T.map((function(e){return e.id})),keyofType:4194304&I.flags?null===(C=I.type)||void 0===C?void 0:C.id:void 0},R),j),V),K),G),q),{destructuringPattern:g(I.pattern),firstDeclaration:g(null===(k=null==L?void 0:L.declarations)||void 0===k?void 0:k[0]),flags:e.Debug.formatTypeFlags(I.flags).split("|"),display:M});n.writeSync(N,JSON.stringify(Q)),P<w-1&&n.writeSync(N,",\n")}n.writeSync(N,"]\n"),n.closeSync(N),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}(u):_[_.length-1].typesPath=void 0},t.recordType=function(e){"server"!==i&&u.push(e)},(s=t.Phase||(t.Phase={})).Parse="parse",s.Program="program",s.Bind="bind",s.Check="check",s.CheckTypes="checkTypes",s.Emit="emit",s.Session="session",t.instant=function(e,t,r){f("I",e,t,r,'"s":"g"')};var d=[];function p(e,t){var r=d[e],n=r.phase,i=r.name,a=r.args,o=r.time;r.separateBeginAndEnd?f("E",n,i,a,void 0,t):1e4-o%1e4<=t-o&&f("X",n,i,a,'"dur":'+(t-o),o)}function f(t,r,a,o,s,c){void 0===c&&(c=1e3*e.timestamp()),"server"===i&&"checkTypes"===r||(e.performance.mark("beginTracing"),n.writeSync(l,',\n{"pid":1,"tid":1,"ph":"'+t+'","cat":"'+r+'","ts":'+c+',"name":"'+a+'"'),s&&n.writeSync(l,","+s),o&&n.writeSync(l,',"args":'+JSON.stringify(o)),n.writeSync(l,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function g(t){var r=e.getSourceFileOfNode(t);return r?{path:r.path,start:n(e.getLineAndCharacterOfPosition(r,t.pos)),end:n(e.getLineAndCharacterOfPosition(r,t.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}t.push=function(t,r,n,i){void 0===i&&(i=!1),i&&f("B",t,r,n),d.push({phase:t,name:r,args:n,time:1e3*e.timestamp(),separateBeginAndEnd:i})},t.pop=function(){e.Debug.assert(d.length>0),p(d.length-1,1e3*e.timestamp()),d.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),r=d.length-1;r>=0;r--)p(r,t);d.length=0},t.dumpLegend=function(){o&&n.writeFileSync(o,JSON.stringify(_))}}(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend}(u||(u={})),function(e){var t,r,n,i,a,o,s,c,l;(l=e.SyntaxKind||(e.SyntaxKind={}))[l.Unknown=0]="Unknown",l[l.EndOfFileToken=1]="EndOfFileToken",l[l.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",l[l.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",l[l.NewLineTrivia=4]="NewLineTrivia",l[l.WhitespaceTrivia=5]="WhitespaceTrivia",l[l.ShebangTrivia=6]="ShebangTrivia",l[l.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",l[l.NumericLiteral=8]="NumericLiteral",l[l.BigIntLiteral=9]="BigIntLiteral",l[l.StringLiteral=10]="StringLiteral",l[l.JsxText=11]="JsxText",l[l.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",l[l.RegularExpressionLiteral=13]="RegularExpressionLiteral",l[l.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",l[l.TemplateHead=15]="TemplateHead",l[l.TemplateMiddle=16]="TemplateMiddle",l[l.TemplateTail=17]="TemplateTail",l[l.OpenBraceToken=18]="OpenBraceToken",l[l.CloseBraceToken=19]="CloseBraceToken",l[l.OpenParenToken=20]="OpenParenToken",l[l.CloseParenToken=21]="CloseParenToken",l[l.OpenBracketToken=22]="OpenBracketToken",l[l.CloseBracketToken=23]="CloseBracketToken",l[l.DotToken=24]="DotToken",l[l.DotDotDotToken=25]="DotDotDotToken",l[l.SemicolonToken=26]="SemicolonToken",l[l.CommaToken=27]="CommaToken",l[l.QuestionDotToken=28]="QuestionDotToken",l[l.LessThanToken=29]="LessThanToken",l[l.LessThanSlashToken=30]="LessThanSlashToken",l[l.GreaterThanToken=31]="GreaterThanToken",l[l.LessThanEqualsToken=32]="LessThanEqualsToken",l[l.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",l[l.EqualsEqualsToken=34]="EqualsEqualsToken",l[l.ExclamationEqualsToken=35]="ExclamationEqualsToken",l[l.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",l[l.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",l[l.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",l[l.PlusToken=39]="PlusToken",l[l.MinusToken=40]="MinusToken",l[l.AsteriskToken=41]="AsteriskToken",l[l.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",l[l.SlashToken=43]="SlashToken",l[l.PercentToken=44]="PercentToken",l[l.PlusPlusToken=45]="PlusPlusToken",l[l.MinusMinusToken=46]="MinusMinusToken",l[l.LessThanLessThanToken=47]="LessThanLessThanToken",l[l.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",l[l.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",l[l.AmpersandToken=50]="AmpersandToken",l[l.BarToken=51]="BarToken",l[l.CaretToken=52]="CaretToken",l[l.ExclamationToken=53]="ExclamationToken",l[l.TildeToken=54]="TildeToken",l[l.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",l[l.BarBarToken=56]="BarBarToken",l[l.QuestionToken=57]="QuestionToken",l[l.ColonToken=58]="ColonToken",l[l.AtToken=59]="AtToken",l[l.QuestionQuestionToken=60]="QuestionQuestionToken",l[l.BacktickToken=61]="BacktickToken",l[l.HashToken=62]="HashToken",l[l.EqualsToken=63]="EqualsToken",l[l.PlusEqualsToken=64]="PlusEqualsToken",l[l.MinusEqualsToken=65]="MinusEqualsToken",l[l.AsteriskEqualsToken=66]="AsteriskEqualsToken",l[l.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",l[l.SlashEqualsToken=68]="SlashEqualsToken",l[l.PercentEqualsToken=69]="PercentEqualsToken",l[l.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",l[l.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",l[l.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",l[l.AmpersandEqualsToken=73]="AmpersandEqualsToken",l[l.BarEqualsToken=74]="BarEqualsToken",l[l.BarBarEqualsToken=75]="BarBarEqualsToken",l[l.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",l[l.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",l[l.CaretEqualsToken=78]="CaretEqualsToken",l[l.Identifier=79]="Identifier",l[l.PrivateIdentifier=80]="PrivateIdentifier",l[l.BreakKeyword=81]="BreakKeyword",l[l.CaseKeyword=82]="CaseKeyword",l[l.CatchKeyword=83]="CatchKeyword",l[l.ClassKeyword=84]="ClassKeyword",l[l.ConstKeyword=85]="ConstKeyword",l[l.ContinueKeyword=86]="ContinueKeyword",l[l.DebuggerKeyword=87]="DebuggerKeyword",l[l.DefaultKeyword=88]="DefaultKeyword",l[l.DeleteKeyword=89]="DeleteKeyword",l[l.DoKeyword=90]="DoKeyword",l[l.ElseKeyword=91]="ElseKeyword",l[l.EnumKeyword=92]="EnumKeyword",l[l.ExportKeyword=93]="ExportKeyword",l[l.ExtendsKeyword=94]="ExtendsKeyword",l[l.FalseKeyword=95]="FalseKeyword",l[l.FinallyKeyword=96]="FinallyKeyword",l[l.ForKeyword=97]="ForKeyword",l[l.FunctionKeyword=98]="FunctionKeyword",l[l.IfKeyword=99]="IfKeyword",l[l.ImportKeyword=100]="ImportKeyword",l[l.InKeyword=101]="InKeyword",l[l.InstanceOfKeyword=102]="InstanceOfKeyword",l[l.NewKeyword=103]="NewKeyword",l[l.NullKeyword=104]="NullKeyword",l[l.ReturnKeyword=105]="ReturnKeyword",l[l.SuperKeyword=106]="SuperKeyword",l[l.SwitchKeyword=107]="SwitchKeyword",l[l.ThisKeyword=108]="ThisKeyword",l[l.ThrowKeyword=109]="ThrowKeyword",l[l.TrueKeyword=110]="TrueKeyword",l[l.TryKeyword=111]="TryKeyword",l[l.TypeOfKeyword=112]="TypeOfKeyword",l[l.VarKeyword=113]="VarKeyword",l[l.VoidKeyword=114]="VoidKeyword",l[l.WhileKeyword=115]="WhileKeyword",l[l.WithKeyword=116]="WithKeyword",l[l.ImplementsKeyword=117]="ImplementsKeyword",l[l.InterfaceKeyword=118]="InterfaceKeyword",l[l.LetKeyword=119]="LetKeyword",l[l.PackageKeyword=120]="PackageKeyword",l[l.PrivateKeyword=121]="PrivateKeyword",l[l.ProtectedKeyword=122]="ProtectedKeyword",l[l.PublicKeyword=123]="PublicKeyword",l[l.StaticKeyword=124]="StaticKeyword",l[l.YieldKeyword=125]="YieldKeyword",l[l.AbstractKeyword=126]="AbstractKeyword",l[l.AsKeyword=127]="AsKeyword",l[l.AssertsKeyword=128]="AssertsKeyword",l[l.AnyKeyword=129]="AnyKeyword",l[l.AsyncKeyword=130]="AsyncKeyword",l[l.AwaitKeyword=131]="AwaitKeyword",l[l.BooleanKeyword=132]="BooleanKeyword",l[l.ConstructorKeyword=133]="ConstructorKeyword",l[l.DeclareKeyword=134]="DeclareKeyword",l[l.GetKeyword=135]="GetKeyword",l[l.InferKeyword=136]="InferKeyword",l[l.IntrinsicKeyword=137]="IntrinsicKeyword",l[l.IsKeyword=138]="IsKeyword",l[l.KeyOfKeyword=139]="KeyOfKeyword",l[l.ModuleKeyword=140]="ModuleKeyword",l[l.NamespaceKeyword=141]="NamespaceKeyword",l[l.NeverKeyword=142]="NeverKeyword",l[l.ReadonlyKeyword=143]="ReadonlyKeyword",l[l.RequireKeyword=144]="RequireKeyword",l[l.NumberKeyword=145]="NumberKeyword",l[l.ObjectKeyword=146]="ObjectKeyword",l[l.SetKeyword=147]="SetKeyword",l[l.StringKeyword=148]="StringKeyword",l[l.SymbolKeyword=149]="SymbolKeyword",l[l.TypeKeyword=150]="TypeKeyword",l[l.UndefinedKeyword=151]="UndefinedKeyword",l[l.UniqueKeyword=152]="UniqueKeyword",l[l.UnknownKeyword=153]="UnknownKeyword",l[l.FromKeyword=154]="FromKeyword",l[l.GlobalKeyword=155]="GlobalKeyword",l[l.BigIntKeyword=156]="BigIntKeyword",l[l.OverrideKeyword=157]="OverrideKeyword",l[l.OfKeyword=158]="OfKeyword",l[l.QualifiedName=159]="QualifiedName",l[l.ComputedPropertyName=160]="ComputedPropertyName",l[l.TypeParameter=161]="TypeParameter",l[l.Parameter=162]="Parameter",l[l.Decorator=163]="Decorator",l[l.PropertySignature=164]="PropertySignature",l[l.PropertyDeclaration=165]="PropertyDeclaration",l[l.MethodSignature=166]="MethodSignature",l[l.MethodDeclaration=167]="MethodDeclaration",l[l.ClassStaticBlockDeclaration=168]="ClassStaticBlockDeclaration",l[l.Constructor=169]="Constructor",l[l.GetAccessor=170]="GetAccessor",l[l.SetAccessor=171]="SetAccessor",l[l.CallSignature=172]="CallSignature",l[l.ConstructSignature=173]="ConstructSignature",l[l.IndexSignature=174]="IndexSignature",l[l.TypePredicate=175]="TypePredicate",l[l.TypeReference=176]="TypeReference",l[l.FunctionType=177]="FunctionType",l[l.ConstructorType=178]="ConstructorType",l[l.TypeQuery=179]="TypeQuery",l[l.TypeLiteral=180]="TypeLiteral",l[l.ArrayType=181]="ArrayType",l[l.TupleType=182]="TupleType",l[l.OptionalType=183]="OptionalType",l[l.RestType=184]="RestType",l[l.UnionType=185]="UnionType",l[l.IntersectionType=186]="IntersectionType",l[l.ConditionalType=187]="ConditionalType",l[l.InferType=188]="InferType",l[l.ParenthesizedType=189]="ParenthesizedType",l[l.ThisType=190]="ThisType",l[l.TypeOperator=191]="TypeOperator",l[l.IndexedAccessType=192]="IndexedAccessType",l[l.MappedType=193]="MappedType",l[l.LiteralType=194]="LiteralType",l[l.NamedTupleMember=195]="NamedTupleMember",l[l.TemplateLiteralType=196]="TemplateLiteralType",l[l.TemplateLiteralTypeSpan=197]="TemplateLiteralTypeSpan",l[l.ImportType=198]="ImportType",l[l.ObjectBindingPattern=199]="ObjectBindingPattern",l[l.ArrayBindingPattern=200]="ArrayBindingPattern",l[l.BindingElement=201]="BindingElement",l[l.ArrayLiteralExpression=202]="ArrayLiteralExpression",l[l.ObjectLiteralExpression=203]="ObjectLiteralExpression",l[l.PropertyAccessExpression=204]="PropertyAccessExpression",l[l.ElementAccessExpression=205]="ElementAccessExpression",l[l.CallExpression=206]="CallExpression",l[l.NewExpression=207]="NewExpression",l[l.TaggedTemplateExpression=208]="TaggedTemplateExpression",l[l.TypeAssertionExpression=209]="TypeAssertionExpression",l[l.ParenthesizedExpression=210]="ParenthesizedExpression",l[l.FunctionExpression=211]="FunctionExpression",l[l.ArrowFunction=212]="ArrowFunction",l[l.DeleteExpression=213]="DeleteExpression",l[l.TypeOfExpression=214]="TypeOfExpression",l[l.VoidExpression=215]="VoidExpression",l[l.AwaitExpression=216]="AwaitExpression",l[l.PrefixUnaryExpression=217]="PrefixUnaryExpression",l[l.PostfixUnaryExpression=218]="PostfixUnaryExpression",l[l.BinaryExpression=219]="BinaryExpression",l[l.ConditionalExpression=220]="ConditionalExpression",l[l.TemplateExpression=221]="TemplateExpression",l[l.YieldExpression=222]="YieldExpression",l[l.SpreadElement=223]="SpreadElement",l[l.ClassExpression=224]="ClassExpression",l[l.OmittedExpression=225]="OmittedExpression",l[l.ExpressionWithTypeArguments=226]="ExpressionWithTypeArguments",l[l.AsExpression=227]="AsExpression",l[l.NonNullExpression=228]="NonNullExpression",l[l.MetaProperty=229]="MetaProperty",l[l.SyntheticExpression=230]="SyntheticExpression",l[l.TemplateSpan=231]="TemplateSpan",l[l.SemicolonClassElement=232]="SemicolonClassElement",l[l.Block=233]="Block",l[l.EmptyStatement=234]="EmptyStatement",l[l.VariableStatement=235]="VariableStatement",l[l.ExpressionStatement=236]="ExpressionStatement",l[l.IfStatement=237]="IfStatement",l[l.DoStatement=238]="DoStatement",l[l.WhileStatement=239]="WhileStatement",l[l.ForStatement=240]="ForStatement",l[l.ForInStatement=241]="ForInStatement",l[l.ForOfStatement=242]="ForOfStatement",l[l.ContinueStatement=243]="ContinueStatement",l[l.BreakStatement=244]="BreakStatement",l[l.ReturnStatement=245]="ReturnStatement",l[l.WithStatement=246]="WithStatement",l[l.SwitchStatement=247]="SwitchStatement",l[l.LabeledStatement=248]="LabeledStatement",l[l.ThrowStatement=249]="ThrowStatement",l[l.TryStatement=250]="TryStatement",l[l.DebuggerStatement=251]="DebuggerStatement",l[l.VariableDeclaration=252]="VariableDeclaration",l[l.VariableDeclarationList=253]="VariableDeclarationList",l[l.FunctionDeclaration=254]="FunctionDeclaration",l[l.ClassDeclaration=255]="ClassDeclaration",l[l.InterfaceDeclaration=256]="InterfaceDeclaration",l[l.TypeAliasDeclaration=257]="TypeAliasDeclaration",l[l.EnumDeclaration=258]="EnumDeclaration",l[l.ModuleDeclaration=259]="ModuleDeclaration",l[l.ModuleBlock=260]="ModuleBlock",l[l.CaseBlock=261]="CaseBlock",l[l.NamespaceExportDeclaration=262]="NamespaceExportDeclaration",l[l.ImportEqualsDeclaration=263]="ImportEqualsDeclaration",l[l.ImportDeclaration=264]="ImportDeclaration",l[l.ImportClause=265]="ImportClause",l[l.NamespaceImport=266]="NamespaceImport",l[l.NamedImports=267]="NamedImports",l[l.ImportSpecifier=268]="ImportSpecifier",l[l.ExportAssignment=269]="ExportAssignment",l[l.ExportDeclaration=270]="ExportDeclaration",l[l.NamedExports=271]="NamedExports",l[l.NamespaceExport=272]="NamespaceExport",l[l.ExportSpecifier=273]="ExportSpecifier",l[l.MissingDeclaration=274]="MissingDeclaration",l[l.ExternalModuleReference=275]="ExternalModuleReference",l[l.JsxElement=276]="JsxElement",l[l.JsxSelfClosingElement=277]="JsxSelfClosingElement",l[l.JsxOpeningElement=278]="JsxOpeningElement",l[l.JsxClosingElement=279]="JsxClosingElement",l[l.JsxFragment=280]="JsxFragment",l[l.JsxOpeningFragment=281]="JsxOpeningFragment",l[l.JsxClosingFragment=282]="JsxClosingFragment",l[l.JsxAttribute=283]="JsxAttribute",l[l.JsxAttributes=284]="JsxAttributes",l[l.JsxSpreadAttribute=285]="JsxSpreadAttribute",l[l.JsxExpression=286]="JsxExpression",l[l.CaseClause=287]="CaseClause",l[l.DefaultClause=288]="DefaultClause",l[l.HeritageClause=289]="HeritageClause",l[l.CatchClause=290]="CatchClause",l[l.PropertyAssignment=291]="PropertyAssignment",l[l.ShorthandPropertyAssignment=292]="ShorthandPropertyAssignment",l[l.SpreadAssignment=293]="SpreadAssignment",l[l.EnumMember=294]="EnumMember",l[l.UnparsedPrologue=295]="UnparsedPrologue",l[l.UnparsedPrepend=296]="UnparsedPrepend",l[l.UnparsedText=297]="UnparsedText",l[l.UnparsedInternalText=298]="UnparsedInternalText",l[l.UnparsedSyntheticReference=299]="UnparsedSyntheticReference",l[l.SourceFile=300]="SourceFile",l[l.Bundle=301]="Bundle",l[l.UnparsedSource=302]="UnparsedSource",l[l.InputFiles=303]="InputFiles",l[l.JSDocTypeExpression=304]="JSDocTypeExpression",l[l.JSDocNameReference=305]="JSDocNameReference",l[l.JSDocMemberName=306]="JSDocMemberName",l[l.JSDocAllType=307]="JSDocAllType",l[l.JSDocUnknownType=308]="JSDocUnknownType",l[l.JSDocNullableType=309]="JSDocNullableType",l[l.JSDocNonNullableType=310]="JSDocNonNullableType",l[l.JSDocOptionalType=311]="JSDocOptionalType",l[l.JSDocFunctionType=312]="JSDocFunctionType",l[l.JSDocVariadicType=313]="JSDocVariadicType",l[l.JSDocNamepathType=314]="JSDocNamepathType",l[l.JSDocComment=315]="JSDocComment",l[l.JSDocText=316]="JSDocText",l[l.JSDocTypeLiteral=317]="JSDocTypeLiteral",l[l.JSDocSignature=318]="JSDocSignature",l[l.JSDocLink=319]="JSDocLink",l[l.JSDocLinkCode=320]="JSDocLinkCode",l[l.JSDocLinkPlain=321]="JSDocLinkPlain",l[l.JSDocTag=322]="JSDocTag",l[l.JSDocAugmentsTag=323]="JSDocAugmentsTag",l[l.JSDocImplementsTag=324]="JSDocImplementsTag",l[l.JSDocAuthorTag=325]="JSDocAuthorTag",l[l.JSDocDeprecatedTag=326]="JSDocDeprecatedTag",l[l.JSDocClassTag=327]="JSDocClassTag",l[l.JSDocPublicTag=328]="JSDocPublicTag",l[l.JSDocPrivateTag=329]="JSDocPrivateTag",l[l.JSDocProtectedTag=330]="JSDocProtectedTag",l[l.JSDocReadonlyTag=331]="JSDocReadonlyTag",l[l.JSDocOverrideTag=332]="JSDocOverrideTag",l[l.JSDocCallbackTag=333]="JSDocCallbackTag",l[l.JSDocEnumTag=334]="JSDocEnumTag",l[l.JSDocParameterTag=335]="JSDocParameterTag",l[l.JSDocReturnTag=336]="JSDocReturnTag",l[l.JSDocThisTag=337]="JSDocThisTag",l[l.JSDocTypeTag=338]="JSDocTypeTag",l[l.JSDocTemplateTag=339]="JSDocTemplateTag",l[l.JSDocTypedefTag=340]="JSDocTypedefTag",l[l.JSDocSeeTag=341]="JSDocSeeTag",l[l.JSDocPropertyTag=342]="JSDocPropertyTag",l[l.SyntaxList=343]="SyntaxList",l[l.NotEmittedStatement=344]="NotEmittedStatement",l[l.PartiallyEmittedExpression=345]="PartiallyEmittedExpression",l[l.CommaListExpression=346]="CommaListExpression",l[l.MergeDeclarationMarker=347]="MergeDeclarationMarker",l[l.EndOfDeclarationMarker=348]="EndOfDeclarationMarker",l[l.SyntheticReferenceExpression=349]="SyntheticReferenceExpression",l[l.Count=350]="Count",l[l.FirstAssignment=63]="FirstAssignment",l[l.LastAssignment=78]="LastAssignment",l[l.FirstCompoundAssignment=64]="FirstCompoundAssignment",l[l.LastCompoundAssignment=78]="LastCompoundAssignment",l[l.FirstReservedWord=81]="FirstReservedWord",l[l.LastReservedWord=116]="LastReservedWord",l[l.FirstKeyword=81]="FirstKeyword",l[l.LastKeyword=158]="LastKeyword",l[l.FirstFutureReservedWord=117]="FirstFutureReservedWord",l[l.LastFutureReservedWord=125]="LastFutureReservedWord",l[l.FirstTypeNode=175]="FirstTypeNode",l[l.LastTypeNode=198]="LastTypeNode",l[l.FirstPunctuation=18]="FirstPunctuation",l[l.LastPunctuation=78]="LastPunctuation",l[l.FirstToken=0]="FirstToken",l[l.LastToken=158]="LastToken",l[l.FirstTriviaToken=2]="FirstTriviaToken",l[l.LastTriviaToken=7]="LastTriviaToken",l[l.FirstLiteralToken=8]="FirstLiteralToken",l[l.LastLiteralToken=14]="LastLiteralToken",l[l.FirstTemplateToken=14]="FirstTemplateToken",l[l.LastTemplateToken=17]="LastTemplateToken",l[l.FirstBinaryOperator=29]="FirstBinaryOperator",l[l.LastBinaryOperator=78]="LastBinaryOperator",l[l.FirstStatement=235]="FirstStatement",l[l.LastStatement=251]="LastStatement",l[l.FirstNode=159]="FirstNode",l[l.FirstJSDocNode=304]="FirstJSDocNode",l[l.LastJSDocNode=342]="LastJSDocNode",l[l.FirstJSDocTagNode=322]="FirstJSDocTagNode",l[l.LastJSDocTagNode=342]="LastJSDocTagNode",l[l.FirstContextualKeyword=126]="FirstContextualKeyword",l[l.LastContextualKeyword=158]="LastContextualKeyword",(c=e.NodeFlags||(e.NodeFlags={}))[c.None=0]="None",c[c.Let=1]="Let",c[c.Const=2]="Const",c[c.NestedNamespace=4]="NestedNamespace",c[c.Synthesized=8]="Synthesized",c[c.Namespace=16]="Namespace",c[c.OptionalChain=32]="OptionalChain",c[c.ExportContext=64]="ExportContext",c[c.ContainsThis=128]="ContainsThis",c[c.HasImplicitReturn=256]="HasImplicitReturn",c[c.HasExplicitReturn=512]="HasExplicitReturn",c[c.GlobalAugmentation=1024]="GlobalAugmentation",c[c.HasAsyncFunctions=2048]="HasAsyncFunctions",c[c.DisallowInContext=4096]="DisallowInContext",c[c.YieldContext=8192]="YieldContext",c[c.DecoratorContext=16384]="DecoratorContext",c[c.AwaitContext=32768]="AwaitContext",c[c.ThisNodeHasError=65536]="ThisNodeHasError",c[c.JavaScriptFile=131072]="JavaScriptFile",c[c.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",c[c.HasAggregatedChildData=524288]="HasAggregatedChildData",c[c.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",c[c.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",c[c.JSDoc=4194304]="JSDoc",c[c.Ambient=8388608]="Ambient",c[c.InWithStatement=16777216]="InWithStatement",c[c.JsonFile=33554432]="JsonFile",c[c.TypeCached=67108864]="TypeCached",c[c.Deprecated=134217728]="Deprecated",c[c.BlockScoped=3]="BlockScoped",c[c.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",c[c.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",c[c.ContextFlags=25358336]="ContextFlags",c[c.TypeExcludesFlags=40960]="TypeExcludesFlags",c[c.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(s=e.ModifierFlags||(e.ModifierFlags={}))[s.None=0]="None",s[s.Export=1]="Export",s[s.Ambient=2]="Ambient",s[s.Public=4]="Public",s[s.Private=8]="Private",s[s.Protected=16]="Protected",s[s.Static=32]="Static",s[s.Readonly=64]="Readonly",s[s.Abstract=128]="Abstract",s[s.Async=256]="Async",s[s.Default=512]="Default",s[s.Const=2048]="Const",s[s.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",s[s.Deprecated=8192]="Deprecated",s[s.Override=16384]="Override",s[s.HasComputedFlags=536870912]="HasComputedFlags",s[s.AccessibilityModifier=28]="AccessibilityModifier",s[s.ParameterPropertyModifier=16476]="ParameterPropertyModifier",s[s.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",s[s.TypeScriptModifier=18654]="TypeScriptModifier",s[s.ExportDefault=513]="ExportDefault",s[s.All=27647]="All",(o=e.JsxFlags||(e.JsxFlags={}))[o.None=0]="None",o[o.IntrinsicNamedElement=1]="IntrinsicNamedElement",o[o.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",o[o.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask",(i=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[i.None=0]="None",i[i.Auto=1]="Auto",i[i.Loop=2]="Loop",i[i.Unique=3]="Unique",i[i.Node=4]="Node",i[i.KindMask=7]="KindMask",i[i.ReservedInNestedScopes=8]="ReservedInNestedScopes",i[i.Optimistic=16]="Optimistic",i[i.FileLevel=32]="FileLevel",i[i.AllowNameSubstitution=64]="AllowNameSubstitution",(n=e.TokenFlags||(e.TokenFlags={}))[n.None=0]="None",n[n.PrecedingLineBreak=1]="PrecedingLineBreak",n[n.PrecedingJSDocComment=2]="PrecedingJSDocComment",n[n.Unterminated=4]="Unterminated",n[n.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",n[n.Scientific=16]="Scientific",n[n.Octal=32]="Octal",n[n.HexSpecifier=64]="HexSpecifier",n[n.BinarySpecifier=128]="BinarySpecifier",n[n.OctalSpecifier=256]="OctalSpecifier",n[n.ContainsSeparator=512]="ContainsSeparator",n[n.UnicodeEscape=1024]="UnicodeEscape",n[n.ContainsInvalidEscape=2048]="ContainsInvalidEscape",n[n.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",n[n.NumericLiteralFlags=1008]="NumericLiteralFlags",n[n.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(r=e.FlowFlags||(e.FlowFlags={}))[r.Unreachable=1]="Unreachable",r[r.Start=2]="Start",r[r.BranchLabel=4]="BranchLabel",r[r.LoopLabel=8]="LoopLabel",r[r.Assignment=16]="Assignment",r[r.TrueCondition=32]="TrueCondition",r[r.FalseCondition=64]="FalseCondition",r[r.SwitchClause=128]="SwitchClause",r[r.ArrayMutation=256]="ArrayMutation",r[r.Call=512]="Call",r[r.ReduceLabel=1024]="ReduceLabel",r[r.Referenced=2048]="Referenced",r[r.Shared=4096]="Shared",r[r.Label=12]="Label",r[r.Condition=96]="Condition",(t=e.CommentDirectiveType||(e.CommentDirectiveType={}))[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore";var u,_,d,p,f,g,m,y,h,v,b,x,D,S,E,T,C,k,A,N,F,w,P,I,O,L,M,R,B,j,J,V,U,K,z,G,W,q,H,Y,X,Q,$,Z,ee,te,re,ne,ie,ae,oe,se,ce,le,ue,_e;e.OperationCanceledException=function(){},(_e=e.FileIncludeKind||(e.FileIncludeKind={}))[_e.RootFile=0]="RootFile",_e[_e.SourceFromProjectReference=1]="SourceFromProjectReference",_e[_e.OutputFromProjectReference=2]="OutputFromProjectReference",_e[_e.Import=3]="Import",_e[_e.ReferenceFile=4]="ReferenceFile",_e[_e.TypeReferenceDirective=5]="TypeReferenceDirective",_e[_e.LibFile=6]="LibFile",_e[_e.LibReferenceDirective=7]="LibReferenceDirective",_e[_e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(ue=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[ue.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",ue[ue.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(le=e.StructureIsReused||(e.StructureIsReused={}))[le.Not=0]="Not",le[le.SafeModules=1]="SafeModules",le[le.Completely=2]="Completely",(ce=e.ExitStatus||(e.ExitStatus={}))[ce.Success=0]="Success",ce[ce.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",ce[ce.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",ce[ce.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",ce[ce.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",ce[ce.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(se=e.UnionReduction||(e.UnionReduction={}))[se.None=0]="None",se[se.Literal=1]="Literal",se[se.Subtype=2]="Subtype",(oe=e.ContextFlags||(e.ContextFlags={}))[oe.None=0]="None",oe[oe.Signature=1]="Signature",oe[oe.NoConstraints=2]="NoConstraints",oe[oe.Completions=4]="Completions",oe[oe.SkipBindingPatterns=8]="SkipBindingPatterns",(ae=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[ae.None=0]="None",ae[ae.NoTruncation=1]="NoTruncation",ae[ae.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",ae[ae.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",ae[ae.UseStructuralFallback=8]="UseStructuralFallback",ae[ae.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",ae[ae.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",ae[ae.UseFullyQualifiedType=64]="UseFullyQualifiedType",ae[ae.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",ae[ae.SuppressAnyReturnType=256]="SuppressAnyReturnType",ae[ae.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",ae[ae.MultilineObjectLiterals=1024]="MultilineObjectLiterals",ae[ae.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",ae[ae.UseTypeOfFunction=4096]="UseTypeOfFunction",ae[ae.OmitParameterModifiers=8192]="OmitParameterModifiers",ae[ae.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",ae[ae.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",ae[ae.NoTypeReduction=536870912]="NoTypeReduction",ae[ae.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",ae[ae.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",ae[ae.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",ae[ae.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",ae[ae.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",ae[ae.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",ae[ae.AllowEmptyTuple=524288]="AllowEmptyTuple",ae[ae.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",ae[ae.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",ae[ae.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",ae[ae.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",ae[ae.IgnoreErrors=70221824]="IgnoreErrors",ae[ae.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",ae[ae.InTypeAlias=8388608]="InTypeAlias",ae[ae.InInitialEntityName=16777216]="InInitialEntityName",(ie=e.TypeFormatFlags||(e.TypeFormatFlags={}))[ie.None=0]="None",ie[ie.NoTruncation=1]="NoTruncation",ie[ie.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",ie[ie.UseStructuralFallback=8]="UseStructuralFallback",ie[ie.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",ie[ie.UseFullyQualifiedType=64]="UseFullyQualifiedType",ie[ie.SuppressAnyReturnType=256]="SuppressAnyReturnType",ie[ie.MultilineObjectLiterals=1024]="MultilineObjectLiterals",ie[ie.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",ie[ie.UseTypeOfFunction=4096]="UseTypeOfFunction",ie[ie.OmitParameterModifiers=8192]="OmitParameterModifiers",ie[ie.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",ie[ie.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",ie[ie.NoTypeReduction=536870912]="NoTypeReduction",ie[ie.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",ie[ie.AddUndefined=131072]="AddUndefined",ie[ie.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",ie[ie.InArrayType=524288]="InArrayType",ie[ie.InElementType=2097152]="InElementType",ie[ie.InFirstTypeArgument=4194304]="InFirstTypeArgument",ie[ie.InTypeAlias=8388608]="InTypeAlias",ie[ie.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",ie[ie.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(ne=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[ne.None=0]="None",ne[ne.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",ne[ne.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",ne[ne.AllowAnyNodeKind=4]="AllowAnyNodeKind",ne[ne.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",ne[ne.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(re=e.SymbolAccessibility||(e.SymbolAccessibility={}))[re.Accessible=0]="Accessible",re[re.NotAccessible=1]="NotAccessible",re[re.CannotBeNamed=2]="CannotBeNamed",(te=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[te.UnionOrIntersection=0]="UnionOrIntersection",te[te.Spread=1]="Spread",(ee=e.TypePredicateKind||(e.TypePredicateKind={}))[ee.This=0]="This",ee[ee.Identifier=1]="Identifier",ee[ee.AssertsThis=2]="AssertsThis",ee[ee.AssertsIdentifier=3]="AssertsIdentifier",(Z=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[Z.Unknown=0]="Unknown",Z[Z.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",Z[Z.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",Z[Z.NumberLikeType=3]="NumberLikeType",Z[Z.BigIntLikeType=4]="BigIntLikeType",Z[Z.StringLikeType=5]="StringLikeType",Z[Z.BooleanType=6]="BooleanType",Z[Z.ArrayLikeType=7]="ArrayLikeType",Z[Z.ESSymbolType=8]="ESSymbolType",Z[Z.Promise=9]="Promise",Z[Z.TypeWithCallSignature=10]="TypeWithCallSignature",Z[Z.ObjectType=11]="ObjectType",($=e.SymbolFlags||(e.SymbolFlags={}))[$.None=0]="None",$[$.FunctionScopedVariable=1]="FunctionScopedVariable",$[$.BlockScopedVariable=2]="BlockScopedVariable",$[$.Property=4]="Property",$[$.EnumMember=8]="EnumMember",$[$.Function=16]="Function",$[$.Class=32]="Class",$[$.Interface=64]="Interface",$[$.ConstEnum=128]="ConstEnum",$[$.RegularEnum=256]="RegularEnum",$[$.ValueModule=512]="ValueModule",$[$.NamespaceModule=1024]="NamespaceModule",$[$.TypeLiteral=2048]="TypeLiteral",$[$.ObjectLiteral=4096]="ObjectLiteral",$[$.Method=8192]="Method",$[$.Constructor=16384]="Constructor",$[$.GetAccessor=32768]="GetAccessor",$[$.SetAccessor=65536]="SetAccessor",$[$.Signature=131072]="Signature",$[$.TypeParameter=262144]="TypeParameter",$[$.TypeAlias=524288]="TypeAlias",$[$.ExportValue=1048576]="ExportValue",$[$.Alias=2097152]="Alias",$[$.Prototype=4194304]="Prototype",$[$.ExportStar=8388608]="ExportStar",$[$.Optional=16777216]="Optional",$[$.Transient=33554432]="Transient",$[$.Assignment=67108864]="Assignment",$[$.ModuleExports=134217728]="ModuleExports",$[$.All=67108863]="All",$[$.Enum=384]="Enum",$[$.Variable=3]="Variable",$[$.Value=111551]="Value",$[$.Type=788968]="Type",$[$.Namespace=1920]="Namespace",$[$.Module=1536]="Module",$[$.Accessor=98304]="Accessor",$[$.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",$[$.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",$[$.ParameterExcludes=111551]="ParameterExcludes",$[$.PropertyExcludes=0]="PropertyExcludes",$[$.EnumMemberExcludes=900095]="EnumMemberExcludes",$[$.FunctionExcludes=110991]="FunctionExcludes",$[$.ClassExcludes=899503]="ClassExcludes",$[$.InterfaceExcludes=788872]="InterfaceExcludes",$[$.RegularEnumExcludes=899327]="RegularEnumExcludes",$[$.ConstEnumExcludes=899967]="ConstEnumExcludes",$[$.ValueModuleExcludes=110735]="ValueModuleExcludes",$[$.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",$[$.MethodExcludes=103359]="MethodExcludes",$[$.GetAccessorExcludes=46015]="GetAccessorExcludes",$[$.SetAccessorExcludes=78783]="SetAccessorExcludes",$[$.TypeParameterExcludes=526824]="TypeParameterExcludes",$[$.TypeAliasExcludes=788968]="TypeAliasExcludes",$[$.AliasExcludes=2097152]="AliasExcludes",$[$.ModuleMember=2623475]="ModuleMember",$[$.ExportHasLocal=944]="ExportHasLocal",$[$.BlockScoped=418]="BlockScoped",$[$.PropertyOrAccessor=98308]="PropertyOrAccessor",$[$.ClassMember=106500]="ClassMember",$[$.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",$[$.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",$[$.Classifiable=2885600]="Classifiable",$[$.LateBindingContainer=6256]="LateBindingContainer",(Q=e.EnumKind||(e.EnumKind={}))[Q.Numeric=0]="Numeric",Q[Q.Literal=1]="Literal",(X=e.CheckFlags||(e.CheckFlags={}))[X.Instantiated=1]="Instantiated",X[X.SyntheticProperty=2]="SyntheticProperty",X[X.SyntheticMethod=4]="SyntheticMethod",X[X.Readonly=8]="Readonly",X[X.ReadPartial=16]="ReadPartial",X[X.WritePartial=32]="WritePartial",X[X.HasNonUniformType=64]="HasNonUniformType",X[X.HasLiteralType=128]="HasLiteralType",X[X.ContainsPublic=256]="ContainsPublic",X[X.ContainsProtected=512]="ContainsProtected",X[X.ContainsPrivate=1024]="ContainsPrivate",X[X.ContainsStatic=2048]="ContainsStatic",X[X.Late=4096]="Late",X[X.ReverseMapped=8192]="ReverseMapped",X[X.OptionalParameter=16384]="OptionalParameter",X[X.RestParameter=32768]="RestParameter",X[X.DeferredType=65536]="DeferredType",X[X.HasNeverType=131072]="HasNeverType",X[X.Mapped=262144]="Mapped",X[X.StripOptional=524288]="StripOptional",X[X.Synthetic=6]="Synthetic",X[X.Discriminant=192]="Discriminant",X[X.Partial=48]="Partial",(Y=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",Y.Constructor="__constructor",Y.New="__new",Y.Index="__index",Y.ExportStar="__export",Y.Global="__global",Y.Missing="__missing",Y.Type="__type",Y.Object="__object",Y.JSXAttributes="__jsxAttributes",Y.Class="__class",Y.Function="__function",Y.Computed="__computed",Y.Resolving="__resolving__",Y.ExportEquals="export=",Y.Default="default",Y.This="this",(H=e.NodeCheckFlags||(e.NodeCheckFlags={}))[H.TypeChecked=1]="TypeChecked",H[H.LexicalThis=2]="LexicalThis",H[H.CaptureThis=4]="CaptureThis",H[H.CaptureNewTarget=8]="CaptureNewTarget",H[H.SuperInstance=256]="SuperInstance",H[H.SuperStatic=512]="SuperStatic",H[H.ContextChecked=1024]="ContextChecked",H[H.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",H[H.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",H[H.CaptureArguments=8192]="CaptureArguments",H[H.EnumValuesComputed=16384]="EnumValuesComputed",H[H.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",H[H.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",H[H.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",H[H.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",H[H.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",H[H.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",H[H.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",H[H.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",H[H.AssignmentsMarked=8388608]="AssignmentsMarked",H[H.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",H[H.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",H[H.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",H[H.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",(q=e.TypeFlags||(e.TypeFlags={}))[q.Any=1]="Any",q[q.Unknown=2]="Unknown",q[q.String=4]="String",q[q.Number=8]="Number",q[q.Boolean=16]="Boolean",q[q.Enum=32]="Enum",q[q.BigInt=64]="BigInt",q[q.StringLiteral=128]="StringLiteral",q[q.NumberLiteral=256]="NumberLiteral",q[q.BooleanLiteral=512]="BooleanLiteral",q[q.EnumLiteral=1024]="EnumLiteral",q[q.BigIntLiteral=2048]="BigIntLiteral",q[q.ESSymbol=4096]="ESSymbol",q[q.UniqueESSymbol=8192]="UniqueESSymbol",q[q.Void=16384]="Void",q[q.Undefined=32768]="Undefined",q[q.Null=65536]="Null",q[q.Never=131072]="Never",q[q.TypeParameter=262144]="TypeParameter",q[q.Object=524288]="Object",q[q.Union=1048576]="Union",q[q.Intersection=2097152]="Intersection",q[q.Index=4194304]="Index",q[q.IndexedAccess=8388608]="IndexedAccess",q[q.Conditional=16777216]="Conditional",q[q.Substitution=33554432]="Substitution",q[q.NonPrimitive=67108864]="NonPrimitive",q[q.TemplateLiteral=134217728]="TemplateLiteral",q[q.StringMapping=268435456]="StringMapping",q[q.AnyOrUnknown=3]="AnyOrUnknown",q[q.Nullable=98304]="Nullable",q[q.Literal=2944]="Literal",q[q.Unit=109440]="Unit",q[q.StringOrNumberLiteral=384]="StringOrNumberLiteral",q[q.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",q[q.DefinitelyFalsy=117632]="DefinitelyFalsy",q[q.PossiblyFalsy=117724]="PossiblyFalsy",q[q.Intrinsic=67359327]="Intrinsic",q[q.Primitive=131068]="Primitive",q[q.StringLike=402653316]="StringLike",q[q.NumberLike=296]="NumberLike",q[q.BigIntLike=2112]="BigIntLike",q[q.BooleanLike=528]="BooleanLike",q[q.EnumLike=1056]="EnumLike",q[q.ESSymbolLike=12288]="ESSymbolLike",q[q.VoidLike=49152]="VoidLike",q[q.DisjointDomains=469892092]="DisjointDomains",q[q.UnionOrIntersection=3145728]="UnionOrIntersection",q[q.StructuredType=3670016]="StructuredType",q[q.TypeVariable=8650752]="TypeVariable",q[q.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",q[q.InstantiablePrimitive=406847488]="InstantiablePrimitive",q[q.Instantiable=465829888]="Instantiable",q[q.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",q[q.ObjectFlagsType=3899393]="ObjectFlagsType",q[q.Simplifiable=25165824]="Simplifiable",q[q.Singleton=67358815]="Singleton",q[q.Narrowable=536624127]="Narrowable",q[q.NotPrimitiveUnion=468598819]="NotPrimitiveUnion",q[q.IncludesMask=205258751]="IncludesMask",q[q.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",q[q.IncludesNonWideningType=4194304]="IncludesNonWideningType",q[q.IncludesWildcard=8388608]="IncludesWildcard",q[q.IncludesEmptyObject=16777216]="IncludesEmptyObject",(W=e.ObjectFlags||(e.ObjectFlags={}))[W.Class=1]="Class",W[W.Interface=2]="Interface",W[W.Reference=4]="Reference",W[W.Tuple=8]="Tuple",W[W.Anonymous=16]="Anonymous",W[W.Mapped=32]="Mapped",W[W.Instantiated=64]="Instantiated",W[W.ObjectLiteral=128]="ObjectLiteral",W[W.EvolvingArray=256]="EvolvingArray",W[W.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",W[W.ReverseMapped=1024]="ReverseMapped",W[W.JsxAttributes=2048]="JsxAttributes",W[W.MarkerType=4096]="MarkerType",W[W.JSLiteral=8192]="JSLiteral",W[W.FreshLiteral=16384]="FreshLiteral",W[W.ArrayLiteral=32768]="ArrayLiteral",W[W.PrimitiveUnion=65536]="PrimitiveUnion",W[W.ContainsWideningType=131072]="ContainsWideningType",W[W.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",W[W.NonInferrableType=524288]="NonInferrableType",W[W.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",W[W.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",W[W.ClassOrInterface=3]="ClassOrInterface",W[W.RequiresWidening=393216]="RequiresWidening",W[W.PropagatingFlags=917504]="PropagatingFlags",W[W.ObjectTypeKindMask=1343]="ObjectTypeKindMask",W[W.ContainsSpread=4194304]="ContainsSpread",W[W.ObjectRestType=8388608]="ObjectRestType",W[W.IsClassInstanceClone=16777216]="IsClassInstanceClone",W[W.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",W[W.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",W[W.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",W[W.IsGenericObjectType=8388608]="IsGenericObjectType",W[W.IsGenericIndexType=16777216]="IsGenericIndexType",W[W.IsGenericType=25165824]="IsGenericType",W[W.ContainsIntersections=33554432]="ContainsIntersections",W[W.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",W[W.IsNeverIntersection=67108864]="IsNeverIntersection",(G=e.VarianceFlags||(e.VarianceFlags={}))[G.Invariant=0]="Invariant",G[G.Covariant=1]="Covariant",G[G.Contravariant=2]="Contravariant",G[G.Bivariant=3]="Bivariant",G[G.Independent=4]="Independent",G[G.VarianceMask=7]="VarianceMask",G[G.Unmeasurable=8]="Unmeasurable",G[G.Unreliable=16]="Unreliable",G[G.AllowsStructuralFallback=24]="AllowsStructuralFallback",(z=e.ElementFlags||(e.ElementFlags={}))[z.Required=1]="Required",z[z.Optional=2]="Optional",z[z.Rest=4]="Rest",z[z.Variadic=8]="Variadic",z[z.Fixed=3]="Fixed",z[z.Variable=12]="Variable",z[z.NonRequired=14]="NonRequired",z[z.NonRest=11]="NonRest",(K=e.AccessFlags||(e.AccessFlags={}))[K.None=0]="None",K[K.IncludeUndefined=1]="IncludeUndefined",K[K.NoIndexSignatures=2]="NoIndexSignatures",K[K.Writing=4]="Writing",K[K.CacheSymbol=8]="CacheSymbol",K[K.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",K[K.ExpressionPosition=32]="ExpressionPosition",K[K.ReportDeprecated=64]="ReportDeprecated",K[K.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",K[K.Contextual=256]="Contextual",K[K.Persistent=1]="Persistent",(U=e.JsxReferenceKind||(e.JsxReferenceKind={}))[U.Component=0]="Component",U[U.Function=1]="Function",U[U.Mixed=2]="Mixed",(V=e.SignatureKind||(e.SignatureKind={}))[V.Call=0]="Call",V[V.Construct=1]="Construct",(J=e.SignatureFlags||(e.SignatureFlags={}))[J.None=0]="None",J[J.HasRestParameter=1]="HasRestParameter",J[J.HasLiteralTypes=2]="HasLiteralTypes",J[J.Abstract=4]="Abstract",J[J.IsInnerCallChain=8]="IsInnerCallChain",J[J.IsOuterCallChain=16]="IsOuterCallChain",J[J.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",J[J.PropagatingFlags=39]="PropagatingFlags",J[J.CallChainFlags=24]="CallChainFlags",(j=e.IndexKind||(e.IndexKind={}))[j.String=0]="String",j[j.Number=1]="Number",(B=e.TypeMapKind||(e.TypeMapKind={}))[B.Simple=0]="Simple",B[B.Array=1]="Array",B[B.Function=2]="Function",B[B.Composite=3]="Composite",B[B.Merged=4]="Merged",(R=e.InferencePriority||(e.InferencePriority={}))[R.NakedTypeVariable=1]="NakedTypeVariable",R[R.SpeculativeTuple=2]="SpeculativeTuple",R[R.SubstituteSource=4]="SubstituteSource",R[R.HomomorphicMappedType=8]="HomomorphicMappedType",R[R.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",R[R.MappedTypeConstraint=32]="MappedTypeConstraint",R[R.ContravariantConditional=64]="ContravariantConditional",R[R.ReturnType=128]="ReturnType",R[R.LiteralKeyof=256]="LiteralKeyof",R[R.NoConstraints=512]="NoConstraints",R[R.AlwaysStrict=1024]="AlwaysStrict",R[R.MaxValue=2048]="MaxValue",R[R.PriorityImpliesCombination=416]="PriorityImpliesCombination",R[R.Circularity=-1]="Circularity",(M=e.InferenceFlags||(e.InferenceFlags={}))[M.None=0]="None",M[M.NoDefault=1]="NoDefault",M[M.AnyDefault=2]="AnyDefault",M[M.SkippedGenericFunction=4]="SkippedGenericFunction",(L=e.Ternary||(e.Ternary={}))[L.False=0]="False",L[L.Unknown=1]="Unknown",L[L.Maybe=3]="Maybe",L[L.True=-1]="True",(O=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[O.None=0]="None",O[O.ExportsProperty=1]="ExportsProperty",O[O.ModuleExports=2]="ModuleExports",O[O.PrototypeProperty=3]="PrototypeProperty",O[O.ThisProperty=4]="ThisProperty",O[O.Property=5]="Property",O[O.Prototype=6]="Prototype",O[O.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",O[O.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",O[O.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(u=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=u[e.category];return t?r.toLowerCase():r},(I=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[I.Classic=1]="Classic",I[I.NodeJs=2]="NodeJs",(P=e.WatchFileKind||(e.WatchFileKind={}))[P.FixedPollingInterval=0]="FixedPollingInterval",P[P.PriorityPollingInterval=1]="PriorityPollingInterval",P[P.DynamicPriorityPolling=2]="DynamicPriorityPolling",P[P.FixedChunkSizePolling=3]="FixedChunkSizePolling",P[P.UseFsEvents=4]="UseFsEvents",P[P.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(w=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[w.UseFsEvents=0]="UseFsEvents",w[w.FixedPollingInterval=1]="FixedPollingInterval",w[w.DynamicPriorityPolling=2]="DynamicPriorityPolling",w[w.FixedChunkSizePolling=3]="FixedChunkSizePolling",(F=e.PollingWatchKind||(e.PollingWatchKind={}))[F.FixedInterval=0]="FixedInterval",F[F.PriorityInterval=1]="PriorityInterval",F[F.DynamicPriority=2]="DynamicPriority",F[F.FixedChunkSize=3]="FixedChunkSize",(N=e.ModuleKind||(e.ModuleKind={}))[N.None=0]="None",N[N.CommonJS=1]="CommonJS",N[N.AMD=2]="AMD",N[N.UMD=3]="UMD",N[N.System=4]="System",N[N.ES2015=5]="ES2015",N[N.ES2020=6]="ES2020",N[N.ESNext=99]="ESNext",(A=e.JsxEmit||(e.JsxEmit={}))[A.None=0]="None",A[A.Preserve=1]="Preserve",A[A.React=2]="React",A[A.ReactNative=3]="ReactNative",A[A.ReactJSX=4]="ReactJSX",A[A.ReactJSXDev=5]="ReactJSXDev",(k=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[k.Remove=0]="Remove",k[k.Preserve=1]="Preserve",k[k.Error=2]="Error",(C=e.NewLineKind||(e.NewLineKind={}))[C.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",C[C.LineFeed=1]="LineFeed",(T=e.ScriptKind||(e.ScriptKind={}))[T.Unknown=0]="Unknown",T[T.JS=1]="JS",T[T.JSX=2]="JSX",T[T.TS=3]="TS",T[T.TSX=4]="TSX",T[T.External=5]="External",T[T.JSON=6]="JSON",T[T.Deferred=7]="Deferred",(E=e.ScriptTarget||(e.ScriptTarget={}))[E.ES3=0]="ES3",E[E.ES5=1]="ES5",E[E.ES2015=2]="ES2015",E[E.ES2016=3]="ES2016",E[E.ES2017=4]="ES2017",E[E.ES2018=5]="ES2018",E[E.ES2019=6]="ES2019",E[E.ES2020=7]="ES2020",E[E.ES2021=8]="ES2021",E[E.ESNext=99]="ESNext",E[E.JSON=100]="JSON",E[E.Latest=99]="Latest",(S=e.LanguageVariant||(e.LanguageVariant={}))[S.Standard=0]="Standard",S[S.JSX=1]="JSX",(D=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[D.None=0]="None",D[D.Recursive=1]="Recursive",(x=e.CharacterCodes||(e.CharacterCodes={}))[x.nullCharacter=0]="nullCharacter",x[x.maxAsciiCharacter=127]="maxAsciiCharacter",x[x.lineFeed=10]="lineFeed",x[x.carriageReturn=13]="carriageReturn",x[x.lineSeparator=8232]="lineSeparator",x[x.paragraphSeparator=8233]="paragraphSeparator",x[x.nextLine=133]="nextLine",x[x.space=32]="space",x[x.nonBreakingSpace=160]="nonBreakingSpace",x[x.enQuad=8192]="enQuad",x[x.emQuad=8193]="emQuad",x[x.enSpace=8194]="enSpace",x[x.emSpace=8195]="emSpace",x[x.threePerEmSpace=8196]="threePerEmSpace",x[x.fourPerEmSpace=8197]="fourPerEmSpace",x[x.sixPerEmSpace=8198]="sixPerEmSpace",x[x.figureSpace=8199]="figureSpace",x[x.punctuationSpace=8200]="punctuationSpace",x[x.thinSpace=8201]="thinSpace",x[x.hairSpace=8202]="hairSpace",x[x.zeroWidthSpace=8203]="zeroWidthSpace",x[x.narrowNoBreakSpace=8239]="narrowNoBreakSpace",x[x.ideographicSpace=12288]="ideographicSpace",x[x.mathematicalSpace=8287]="mathematicalSpace",x[x.ogham=5760]="ogham",x[x._=95]="_",x[x.$=36]="$",x[x._0=48]="_0",x[x._1=49]="_1",x[x._2=50]="_2",x[x._3=51]="_3",x[x._4=52]="_4",x[x._5=53]="_5",x[x._6=54]="_6",x[x._7=55]="_7",x[x._8=56]="_8",x[x._9=57]="_9",x[x.a=97]="a",x[x.b=98]="b",x[x.c=99]="c",x[x.d=100]="d",x[x.e=101]="e",x[x.f=102]="f",x[x.g=103]="g",x[x.h=104]="h",x[x.i=105]="i",x[x.j=106]="j",x[x.k=107]="k",x[x.l=108]="l",x[x.m=109]="m",x[x.n=110]="n",x[x.o=111]="o",x[x.p=112]="p",x[x.q=113]="q",x[x.r=114]="r",x[x.s=115]="s",x[x.t=116]="t",x[x.u=117]="u",x[x.v=118]="v",x[x.w=119]="w",x[x.x=120]="x",x[x.y=121]="y",x[x.z=122]="z",x[x.A=65]="A",x[x.B=66]="B",x[x.C=67]="C",x[x.D=68]="D",x[x.E=69]="E",x[x.F=70]="F",x[x.G=71]="G",x[x.H=72]="H",x[x.I=73]="I",x[x.J=74]="J",x[x.K=75]="K",x[x.L=76]="L",x[x.M=77]="M",x[x.N=78]="N",x[x.O=79]="O",x[x.P=80]="P",x[x.Q=81]="Q",x[x.R=82]="R",x[x.S=83]="S",x[x.T=84]="T",x[x.U=85]="U",x[x.V=86]="V",x[x.W=87]="W",x[x.X=88]="X",x[x.Y=89]="Y",x[x.Z=90]="Z",x[x.ampersand=38]="ampersand",x[x.asterisk=42]="asterisk",x[x.at=64]="at",x[x.backslash=92]="backslash",x[x.backtick=96]="backtick",x[x.bar=124]="bar",x[x.caret=94]="caret",x[x.closeBrace=125]="closeBrace",x[x.closeBracket=93]="closeBracket",x[x.closeParen=41]="closeParen",x[x.colon=58]="colon",x[x.comma=44]="comma",x[x.dot=46]="dot",x[x.doubleQuote=34]="doubleQuote",x[x.equals=61]="equals",x[x.exclamation=33]="exclamation",x[x.greaterThan=62]="greaterThan",x[x.hash=35]="hash",x[x.lessThan=60]="lessThan",x[x.minus=45]="minus",x[x.openBrace=123]="openBrace",x[x.openBracket=91]="openBracket",x[x.openParen=40]="openParen",x[x.percent=37]="percent",x[x.plus=43]="plus",x[x.question=63]="question",x[x.semicolon=59]="semicolon",x[x.singleQuote=39]="singleQuote",x[x.slash=47]="slash",x[x.tilde=126]="tilde",x[x.backspace=8]="backspace",x[x.formFeed=12]="formFeed",x[x.byteOrderMark=65279]="byteOrderMark",x[x.tab=9]="tab",x[x.verticalTab=11]="verticalTab",(b=e.Extension||(e.Extension={})).Ts=".ts",b.Tsx=".tsx",b.Dts=".d.ts",b.Js=".js",b.Jsx=".jsx",b.Json=".json",b.TsBuildInfo=".tsbuildinfo",(v=e.TransformFlags||(e.TransformFlags={}))[v.None=0]="None",v[v.ContainsTypeScript=1]="ContainsTypeScript",v[v.ContainsJsx=2]="ContainsJsx",v[v.ContainsESNext=4]="ContainsESNext",v[v.ContainsES2021=8]="ContainsES2021",v[v.ContainsES2020=16]="ContainsES2020",v[v.ContainsES2019=32]="ContainsES2019",v[v.ContainsES2018=64]="ContainsES2018",v[v.ContainsES2017=128]="ContainsES2017",v[v.ContainsES2016=256]="ContainsES2016",v[v.ContainsES2015=512]="ContainsES2015",v[v.ContainsGenerator=1024]="ContainsGenerator",v[v.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",v[v.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",v[v.ContainsLexicalThis=8192]="ContainsLexicalThis",v[v.ContainsRestOrSpread=16384]="ContainsRestOrSpread",v[v.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",v[v.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",v[v.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",v[v.ContainsBindingPattern=262144]="ContainsBindingPattern",v[v.ContainsYield=524288]="ContainsYield",v[v.ContainsAwait=1048576]="ContainsAwait",v[v.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",v[v.ContainsDynamicImport=4194304]="ContainsDynamicImport",v[v.ContainsClassFields=8388608]="ContainsClassFields",v[v.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",v[v.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",v[v.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",v[v.HasComputedFlags=536870912]="HasComputedFlags",v[v.AssertTypeScript=1]="AssertTypeScript",v[v.AssertJsx=2]="AssertJsx",v[v.AssertESNext=4]="AssertESNext",v[v.AssertES2021=8]="AssertES2021",v[v.AssertES2020=16]="AssertES2020",v[v.AssertES2019=32]="AssertES2019",v[v.AssertES2018=64]="AssertES2018",v[v.AssertES2017=128]="AssertES2017",v[v.AssertES2016=256]="AssertES2016",v[v.AssertES2015=512]="AssertES2015",v[v.AssertGenerator=1024]="AssertGenerator",v[v.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",v[v.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",v[v.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",v[v.NodeExcludes=536870912]="NodeExcludes",v[v.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",v[v.FunctionExcludes=591310848]="FunctionExcludes",v[v.ConstructorExcludes=591306752]="ConstructorExcludes",v[v.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",v[v.PropertyExcludes=570433536]="PropertyExcludes",v[v.ClassExcludes=536940544]="ClassExcludes",v[v.ModuleExcludes=589443072]="ModuleExcludes",v[v.TypeExcludes=-2]="TypeExcludes",v[v.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",v[v.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",v[v.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",v[v.ParameterExcludes=536870912]="ParameterExcludes",v[v.CatchClauseExcludes=536903680]="CatchClauseExcludes",v[v.BindingPatternExcludes=536887296]="BindingPatternExcludes",v[v.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",v[v.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(h=e.EmitFlags||(e.EmitFlags={}))[h.None=0]="None",h[h.SingleLine=1]="SingleLine",h[h.AdviseOnEmitNode=2]="AdviseOnEmitNode",h[h.NoSubstitution=4]="NoSubstitution",h[h.CapturesThis=8]="CapturesThis",h[h.NoLeadingSourceMap=16]="NoLeadingSourceMap",h[h.NoTrailingSourceMap=32]="NoTrailingSourceMap",h[h.NoSourceMap=48]="NoSourceMap",h[h.NoNestedSourceMaps=64]="NoNestedSourceMaps",h[h.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",h[h.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",h[h.NoTokenSourceMaps=384]="NoTokenSourceMaps",h[h.NoLeadingComments=512]="NoLeadingComments",h[h.NoTrailingComments=1024]="NoTrailingComments",h[h.NoComments=1536]="NoComments",h[h.NoNestedComments=2048]="NoNestedComments",h[h.HelperName=4096]="HelperName",h[h.ExportName=8192]="ExportName",h[h.LocalName=16384]="LocalName",h[h.InternalName=32768]="InternalName",h[h.Indented=65536]="Indented",h[h.NoIndentation=131072]="NoIndentation",h[h.AsyncFunctionBody=262144]="AsyncFunctionBody",h[h.ReuseTempVariableScope=524288]="ReuseTempVariableScope",h[h.CustomPrologue=1048576]="CustomPrologue",h[h.NoHoisting=2097152]="NoHoisting",h[h.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",h[h.Iterator=8388608]="Iterator",h[h.NoAsciiEscaping=16777216]="NoAsciiEscaping",h[h.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",h[h.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",h[h.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",h[h.Immutable=268435456]="Immutable",h[h.IndirectCall=536870912]="IndirectCall",(y=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[y.Extends=1]="Extends",y[y.Assign=2]="Assign",y[y.Rest=4]="Rest",y[y.Decorate=8]="Decorate",y[y.Metadata=16]="Metadata",y[y.Param=32]="Param",y[y.Awaiter=64]="Awaiter",y[y.Generator=128]="Generator",y[y.Values=256]="Values",y[y.Read=512]="Read",y[y.SpreadArray=1024]="SpreadArray",y[y.Await=2048]="Await",y[y.AsyncGenerator=4096]="AsyncGenerator",y[y.AsyncDelegator=8192]="AsyncDelegator",y[y.AsyncValues=16384]="AsyncValues",y[y.ExportStar=32768]="ExportStar",y[y.ImportStar=65536]="ImportStar",y[y.ImportDefault=131072]="ImportDefault",y[y.MakeTemplateObject=262144]="MakeTemplateObject",y[y.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",y[y.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",y[y.CreateBinding=2097152]="CreateBinding",y[y.FirstEmitHelper=1]="FirstEmitHelper",y[y.LastEmitHelper=2097152]="LastEmitHelper",y[y.ForOfIncludes=256]="ForOfIncludes",y[y.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",y[y.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",y[y.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",y[y.SpreadIncludes=1536]="SpreadIncludes",(m=e.EmitHint||(e.EmitHint={}))[m.SourceFile=0]="SourceFile",m[m.Expression=1]="Expression",m[m.IdentifierName=2]="IdentifierName",m[m.MappedTypeParameter=3]="MappedTypeParameter",m[m.Unspecified=4]="Unspecified",m[m.EmbeddedStatement=5]="EmbeddedStatement",m[m.JsxAttributeValue=6]="JsxAttributeValue",(g=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[g.Parentheses=1]="Parentheses",g[g.TypeAssertions=2]="TypeAssertions",g[g.NonNullAssertions=4]="NonNullAssertions",g[g.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",g[g.Assertions=6]="Assertions",g[g.All=15]="All",(f=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[f.None=0]="None",f[f.InParameters=1]="InParameters",f[f.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(p=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",p.EmitHelpers="emitHelpers",p.NoDefaultLib="no-default-lib",p.Reference="reference",p.Type="type",p.Lib="lib",p.Prepend="prepend",p.Text="text",p.Internal="internal",(d=e.ListFormat||(e.ListFormat={}))[d.None=0]="None",d[d.SingleLine=0]="SingleLine",d[d.MultiLine=1]="MultiLine",d[d.PreserveLines=2]="PreserveLines",d[d.LinesMask=3]="LinesMask",d[d.NotDelimited=0]="NotDelimited",d[d.BarDelimited=4]="BarDelimited",d[d.AmpersandDelimited=8]="AmpersandDelimited",d[d.CommaDelimited=16]="CommaDelimited",d[d.AsteriskDelimited=32]="AsteriskDelimited",d[d.DelimitersMask=60]="DelimitersMask",d[d.AllowTrailingComma=64]="AllowTrailingComma",d[d.Indented=128]="Indented",d[d.SpaceBetweenBraces=256]="SpaceBetweenBraces",d[d.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",d[d.Braces=1024]="Braces",d[d.Parenthesis=2048]="Parenthesis",d[d.AngleBrackets=4096]="AngleBrackets",d[d.SquareBrackets=8192]="SquareBrackets",d[d.BracketsMask=15360]="BracketsMask",d[d.OptionalIfUndefined=16384]="OptionalIfUndefined",d[d.OptionalIfEmpty=32768]="OptionalIfEmpty",d[d.Optional=49152]="Optional",d[d.PreferNewLine=65536]="PreferNewLine",d[d.NoTrailingNewLine=131072]="NoTrailingNewLine",d[d.NoInterveningComments=262144]="NoInterveningComments",d[d.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",d[d.SingleElement=1048576]="SingleElement",d[d.SpaceAfterList=2097152]="SpaceAfterList",d[d.Modifiers=262656]="Modifiers",d[d.HeritageClauses=512]="HeritageClauses",d[d.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",d[d.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",d[d.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",d[d.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",d[d.UnionTypeConstituents=516]="UnionTypeConstituents",d[d.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",d[d.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",d[d.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",d[d.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",d[d.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",d[d.CommaListElements=528]="CommaListElements",d[d.CallExpressionArguments=2576]="CallExpressionArguments",d[d.NewExpressionArguments=18960]="NewExpressionArguments",d[d.TemplateExpressionSpans=262144]="TemplateExpressionSpans",d[d.SingleLineBlockStatements=768]="SingleLineBlockStatements",d[d.MultiLineBlockStatements=129]="MultiLineBlockStatements",d[d.VariableDeclarationList=528]="VariableDeclarationList",d[d.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",d[d.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",d[d.ClassHeritageClauses=0]="ClassHeritageClauses",d[d.ClassMembers=129]="ClassMembers",d[d.InterfaceMembers=129]="InterfaceMembers",d[d.EnumMembers=145]="EnumMembers",d[d.CaseBlockClauses=129]="CaseBlockClauses",d[d.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",d[d.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",d[d.JsxElementAttributes=262656]="JsxElementAttributes",d[d.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",d[d.HeritageClauseTypes=528]="HeritageClauseTypes",d[d.SourceFileStatements=131073]="SourceFileStatements",d[d.Decorators=2146305]="Decorators",d[d.TypeArguments=53776]="TypeArguments",d[d.TypeParameters=53776]="TypeParameters",d[d.Parameters=2576]="Parameters",d[d.IndexSignatureParameters=8848]="IndexSignatureParameters",d[d.JSDocComment=33]="JSDocComment",(_=e.PragmaKindFlags||(e.PragmaKindFlags={}))[_.None=0]="None",_[_.TripleSlashXML=1]="TripleSlashXML",_[_.SingleLine=2]="SingleLine",_[_.MultiLine=4]="MultiLine",_[_.All=7]="All",_[_.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(u||(u={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var t=/\\/g;function r(e){return 47===e||92===e}function n(e){return u(e)>0}function a(e){return 0!==u(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(t,r){return t.length>r.length&&e.endsWith(t,r)}function c(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function l(e){return e>=97&&e<=122||e>=65&&e<=90}function u(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:e.altDirectorySeparator,2);return n<0?t.length:n+1}if(l(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),u=t.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&l(t.charCodeAt(s+1))){var _=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==_){if(47===t.charCodeAt(_))return~(_+1);if(_===t.length)return~_}}return~(s+1)}return~t.length}return 0}function _(e){var t=u(e);return t<0?~t:t}function d(t){var r=_(t=h(t));return r===t.length?t:(t=T(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(_(t=h(t))===t.length)return"";var i=(t=T(t)).slice(Math.max(_(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?g(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function f(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function g(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return f(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=f(e,i[n],r);if(a)return a}return""}(T(t),r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=p(t),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function m(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),a=t.substring(r).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),i([n],a,!0)}(t=b(r,t),_(t))}function y(t){return 0===t.length?"":(t[0]&&C(t[0]))+t.slice(1).join(e.directorySeparator)}function h(r){var n=r.indexOf("\\");return-1===n?r:(t.lastIndex=n,r.replace(t,e.directorySeparator))}function v(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n<t.length;n++){var i=t[n];if(i&&"."!==i){if(".."===i)if(r.length>1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function b(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&(e=h(e));for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=h(a),e=e&&0===_(a)?C(e)+a:a)}return e}function x(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return E(e.some(r)?b.apply(void 0,i([t],r,!1)):h(t))}function D(e,t){return v(m(e,t))}function S(e,t){return y(D(e,t))}function E(e){if(e=h(e),!A.test(e))return e;var t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!A.test(e)))return e;var r=y(v(m(e)));return r&&c(e)?C(r):r}function T(e){return c(e)?e.substr(0,e.length-1):e}function C(t){return c(t)?t:t+e.directorySeparator}function k(e){return a(e)||o(e)?e:"./"+e}e.isAnyDirectorySeparator=r,e.isUrl=function(e){return u(e)<0},e.isRootedDiskPath=n,e.isDiskPathRoot=function(e){var t=u(e);return t>0&&t===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.pathIsBareSpecifier=function(e){return!a(e)&&!o(e)},e.hasExtension=function(t){return e.stringContains(p(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r<n.length;r++)if(s(e,n[r]))return!0;return!1},e.hasTrailingDirectorySeparator=c,e.getRootLength=_,e.getDirectoryPath=d,e.getBaseFileName=p,e.getAnyExtensionFromPath=g,e.getPathComponents=m,e.getPathFromPathComponents=y,e.normalizeSlashes=h,e.reducePathComponents=v,e.combinePaths=b,e.resolvePath=x,e.getNormalizedPathComponents=D,e.getNormalizedAbsolutePath=S,e.normalizePath=E,e.getNormalizedAbsolutePathWithoutRoot=function(t,r){return 0===(n=D(t,r)).length?"":n.slice(1).join(e.directorySeparator);var n},e.toPath=function(e,t,r){return r(n(e)?E(e):S(e,t))},e.normalizePathAndParts=function(t){var r=v(m(t=h(t))),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:c(t)?C(a):a,parts:i}}return{path:n,parts:i}},e.removeTrailingDirectorySeparator=T,e.ensureTrailingDirectorySeparator=C,e.ensurePathIsNonModuleName=k,e.changeAnyExtension=function(t,r,n,i){var a=void 0!==n&&void 0!==i?g(t,n,i):g(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t};var A=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function N(t,r,n){if(t===r)return 0;if(void 0===t)return-1;if(void 0===r)return 1;var i=t.substring(0,_(t)),a=r.substring(0,_(r)),o=e.compareStringsCaseInsensitive(i,a);if(0!==o)return o;var s=t.substring(i.length),c=r.substring(a.length);if(!A.test(s)&&!A.test(c))return n(s,c);for(var l=v(m(t)),u=v(m(r)),d=Math.min(l.length,u.length),p=1;p<d;p++){var f=n(l[p],u[p]);if(0!==f)return f}return e.compareValues(l.length,u.length)}function F(t,r,n,a){var o,s=v(m(t)),c=v(m(r));for(o=0;o<s.length&&o<c.length;o++){var l=a(s[o]),u=a(c[o]);if(!(0===o?e.equateStringsCaseInsensitive:n)(l,u))break}if(0===o)return c;for(var _=c.slice(o),d=[];o<s.length;o++)d.push("..");return i(i([""],d,!0),_,!0)}function w(t,r,n){e.Debug.assert(_(t)>0==_(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return y(F(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function P(t,r,i,a,o){var s=F(x(i,t),x(i,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&n(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return y(s)}e.comparePathsCaseSensitive=function(t,r){return N(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return N(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),N(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=v(m(t)),o=v(m(r));if(o.length<a.length)return!1;for(var s=i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,c=0;c<a.length;c++)if(!(0===c?e.equateStringsCaseInsensitive:s)(a[c],o[c]))return!1;return!0},e.startsWithDirectory=function(t,r,n){var i=n(t),a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.getPathComponentsRelativeTo=F,e.getRelativePathFromDirectory=w,e.convertToRelativePath=function(e,t,r){return n(e)?P(t,e,t,r,!1):e},e.getRelativePathFromFile=function(e,t,r){return k(w(d(e),t,r))},e.getRelativePathToDirectoryOrUrl=P,e.forEachAncestorDirectory=function(e,t){for(;;){var r=t(e);if(void 0!==r)return r;var n=d(e);if(n===e)return;e=n}},e.isNodeModulesDirectory=function(t){return e.endsWith(t,"/node_modules")}}(u||(u={})),function(e){function t(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var n,i;function o(t,r){return t.getModifiedTime(r)||e.missingFileModifiedTime}function s(e){var t;return(t={})[i.Low]=e.Low,t[i.Medium]=e.Medium,t[i.High]=e.High,t}e.generateDjb2Hash=t,e.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(n=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(i=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0),e.getModifiedTime=o;var c,l,u={Low:32,Medium:64,High:256},_=s(u);function d(t){if(t.getEnvironmentVariable){var r=function(e,t){var r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,i);_=o("TSC_WATCH_POLLINGCHUNKSIZE",u)||_,e.unchangedPollThresholds=o("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",u)||e.unchangedPollThresholds}function n(e){var r;return n("Low"),n("Medium"),n("High"),r;function n(n){var i=function(e,r){return t.getEnvironmentVariable(e+"_"+r.toUpperCase())}(e,n);i&&((r||(r={}))[n]=Number(i))}}function o(e,t){var i=n(e);return(r||i)&&s(i?a(a({},t),i):t)}}function p(e,t,r,n,i){for(var a=r,s=t.length;n&&s;++r===t.length&&(a<r&&(t.length=a),r=0,a=0),s--){var c=t[r];if(c)if(c.isClosed)t[r]=void 0;else{n--;var l=y(c,o(e,c.fileName));c.isClosed?t[r]=void 0:(null==i||i(c,r,l),t[r]&&(a<r&&(t[a]=c,t[r]=void 0),a++))}}return r}function f(t){var r=[],n=[],a=l(i.Low),s=l(i.Medium),c=l(i.High);return function(n,i,a){var s={fileName:n,callback:i,unchangedPolls:0,mtime:o(t,n)};return r.push(s),m(s,a),{close:function(){s.isClosed=!0,e.unorderedRemoveItem(r,s)}}};function l(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function u(t){t.pollIndex=f(t,t.pollingInterval,t.pollIndex,_[t.pollingInterval]),t.length?h(t.pollingInterval):(e.Debug.assert(0===t.pollIndex),t.pollScheduled=!1)}function d(e){f(n,i.Low,0,n.length),u(e),!e.pollScheduled&&n.length&&h(i.Low)}function f(r,a,o,s){return p(t,r,o,s,(function(t,o,s){var c;s?(t.unchangedPolls=0,r!==n&&(r[o]=void 0,c=t,n.push(c),y(i.Low))):t.unchangedPolls!==e.unchangedPollThresholds[a]?t.unchangedPolls++:r===n?(t.unchangedPolls=1,r[o]=void 0,m(t,i.Low)):a!==i.High&&(t.unchangedPolls++,r[o]=void 0,m(t,a===i.Low?i.Medium:i.High))}))}function g(e){switch(e){case i.Low:return a;case i.Medium:return s;case i.High:return c}}function m(e,t){g(t).push(e),y(t)}function y(e){g(e).pollScheduled||h(e)}function h(e){g(e).pollScheduled=t.setTimeout(e===i.Low?d:u,e,g(e))}}function g(t){var r,n=[],a=0;return function(r,i){var a={fileName:r,callback:i,mtime:o(t,r)};return n.push(a),c(),{close:function(){a.isClosed=!0,e.unorderedRemoveItem(n,a)}}};function s(){r=void 0,a=p(t,n,a,_[i.Low]),c()}function c(){n.length&&!r&&(r=t.setTimeout(s,i.High))}}function m(t,r){var n=new e.Map,i=e.createMultiMap(),a=e.createGetCanonicalFileName(r);return function(r,o,s,c){var l=a(r),u=n.get(l);return u?u.refCount++:n.set(l,{watcher:t(r,(function(t,r){return e.forEach(i.get(l),(function(e){return e(t,r)}))}),s,c),refCount:1}),i.add(l,o),{close:function(){var t=e.Debug.checkDefined(n.get(l));i.remove(l,o),t.refCount--,t.refCount||(n.delete(l),e.closeFileWatcherOf(t))}}}}function y(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,h(r,n)),!0)}function h(e,t){return 0===e?n.Created:0===t?n.Deleted:n.Changed}function v(t){var r,n=t.watchDirectory,i=t.useCaseSensitiveFileNames,a=t.getCurrentDirectory,o=t.getAccessibleSortedChildDirectories,s=t.directoryExists,c=t.realpath,l=t.setTimeout,u=t.clearTimeout,_=new e.Map,d=e.createMultiMap(),p=new e.Map,f=e.getStringComparer(!i),g=e.createGetCanonicalFileName(i);return function(e,t,r,i){return r?m(e,i,t):n(e,t,r,i)};function m(t,i,a){var o=g(t),c=_.get(o);c?c.refCount++:(c={watcher:n(t,(function(e){D(e,i)||((null==i?void 0:i.synchronousWatchDirectory)?(y(o,e),b(t,o,i)):function(e,t,n,i){var a=_.get(t);a&&s(e)?function(e,t,n,i){var a=p.get(t);a?a.fileNames.push(n):p.set(t,{dirName:e,options:i,fileNames:[n]}),r&&(u(r),r=void 0),r=l(h,1e3)}(e,t,n,i):(y(t,n),v(a))}(t,o,e,i))}),!1,i),refCount:1,childWatches:e.emptyArray},_.set(o,c),b(t,o,i));var f=a&&{dirName:t,callback:a};return f&&d.add(o,f),{dirName:t,close:function(){var t=e.Debug.checkDefined(_.get(o));f&&d.remove(o,f),t.refCount--,t.refCount||(_.delete(o),e.closeFileWatcherOf(t),t.childWatches.forEach(e.closeFileWatcher))}}}function y(t,r,n){var i,a;e.isString(r)?i=r:a=r,d.forEach((function(r,o){var s;if((!a||!0!==a.get(o))&&(o===t||e.startsWith(t,o)&&t[o.length]===e.directorySeparator))if(a)if(n){var c=a.get(o);c?(s=c).push.apply(s,n):a.set(o,n.slice())}else a.set(o,!0);else r.forEach((function(e){return(0,e.callback)(i)}))}))}function h(){r=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: "+p.size);for(var t=e.timestamp(),n=new e.Map;!r&&p.size;){var i=p.entries().next();e.Debug.assert(!i.done);var a=i.value,o=a[0],s=a[1],c=s.dirName,l=s.options,u=s.fileNames;p.delete(o);var _=b(c,o,l);y(o,n,_?void 0:u)}e.sysLog("sysLog:: invokingWatchers:: Elapsed:: "+(e.timestamp()-t)+"ms:: "+p.size),d.forEach((function(t,r){var i=n.get(r);i&&t.forEach((function(t){var r=t.callback,n=t.dirName;e.isArray(i)?i.forEach(r):r(n)}))}));var f=e.timestamp()-t;e.sysLog("sysLog:: Elapsed:: "+f+"ms:: onTimerToUpdateChildWatches:: "+p.size+" "+r)}function v(t){if(t){var r=t.childWatches;t.childWatches=e.emptyArray;for(var n=0,i=r;n<i.length;n++){var a=i[n];a.close(),v(_.get(g(a.dirName)))}}}function b(t,r,n){var i,a=_.get(r);if(!a)return!1;var l=e.enumerateInsertsAndDeletes(s(t)?e.mapDefined(o(t),(function(r){var i=e.getNormalizedAbsolutePath(r,t);return D(i,n)||0!==f(i,e.normalizePath(c(i)))?void 0:i})):e.emptyArray,a.childWatches,(function(e,t){return f(e,t.dirName)}),(function(e){u(m(e,n))}),e.closeFileWatcher,u);return a.childWatches=i||e.emptyArray,l;function u(e){(i||(i=[])).push(e)}}function D(t,r){return e.some(e.ignoredPaths,(function(r){return function(t,r){return!!e.stringContains(t,r)||!i&&e.stringContains(g(t),r)}(t,r)}))||x(t,r,i,a)}}function b(e){return function(t,r){return e(r===n.Changed?"change":"rename","")}}function x(t,r,n,i){return((null==r?void 0:r.excludeDirectories)||(null==r?void 0:r.excludeFiles))&&(e.matchesExclude(t,null==r?void 0:r.excludeFiles,n,i())||e.matchesExclude(t,null==r?void 0:r.excludeDirectories,n,i()))}function D(t,r,n,i,a){return function(o,s){if("rename"===o){var c=s?e.normalizePath(e.combinePaths(t,s)):t;s&&x(c,n,i,a)||r(c)}}}function S(t){var r,a,o,s,c=t.pollingWatchFile,l=t.getModifiedTime,u=t.setTimeout,_=t.clearTimeout,d=t.fsWatch,p=t.fileExists,m=t.useCaseSensitiveFileNames,y=t.getCurrentDirectory,h=t.fsSupportsRecursiveFsWatch,b=t.directoryExists,x=t.getAccessibleSortedChildDirectories,S=t.realpath,E=t.tscWatchFile,T=t.useNonPollingWatchers,C=t.tscWatchDirectory,k=t.defaultWatchFileKind;return{watchFile:function(t,r,a,s){s=function(t,r){if(t&&void 0!==t.watchFile)return t;switch(E){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return F(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,t);case"UseFsEventsWithFallbackDynamicPolling":return F(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,t);case"UseFsEventsOnParentDirectory":r=!0;default:return r?F(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,t):{watchFile:(null==k?void 0:k())||e.WatchFileKind.FixedPollingInterval}}}(s,T);var l=e.Debug.checkDefined(s.watchFile);switch(l){case e.WatchFileKind.FixedPollingInterval:return c(t,r,i.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return c(t,r,a,void 0);case e.WatchFileKind.DynamicPriorityPolling:return A()(t,r,a,void 0);case e.WatchFileKind.FixedChunkSizePolling:return N()(t,r,void 0,void 0);case e.WatchFileKind.UseFsEvents:return d(t,0,function(e,t,r){return function(i){t(e,"rename"===i?r(e)?n.Created:n.Deleted:n.Changed)}}(t,r,p),!1,a,e.getFallbackOptions(s));case e.WatchFileKind.UseFsEventsOnParentDirectory:return o||(o=function(t,r){var a=e.createMultiMap(),o=new e.Map,s=e.createGetCanonicalFileName(r);return function(r,c,l,u){var _=s(r);a.add(_,c);var d=e.getDirectoryPath(_)||".",p=o.get(d)||function(r,c,l){var u=t(r,1,(function(t,i){if(e.isString(i)){var o=e.getNormalizedAbsolutePath(i,r),c=o&&a.get(s(o));if(c)for(var l=0,u=c;l<u.length;l++)(0,u[l])(o,n.Changed)}}),!1,i.Medium,l);return u.referenceCount=0,o.set(c,u),u}(e.getDirectoryPath(r)||".",d,u);return p.referenceCount++,{close:function(){1===p.referenceCount?(p.close(),o.delete(d)):p.referenceCount--,a.remove(_,c)}}}}(d,m)),o(t,r,a,e.getFallbackOptions(s));default:e.Debug.assertNever(l)}},watchDirectory:function(t,r,n,a){return h?d(t,1,D(t,r,a,m,y),n,i.Medium,e.getFallbackOptions(a)):(s||(s=v({useCaseSensitiveFileNames:m,getCurrentDirectory:y,directoryExists:b,getAccessibleSortedChildDirectories:x,watchDirectory:w,realpath:S,setTimeout:u,clearTimeout:_})),s(t,r,n,a))}};function A(){return r||(r=f({getModifiedTime:l,setTimeout:u}))}function N(){return a||(a=g({getModifiedTime:l,setTimeout:u}))}function F(e,t,r){var n=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===n?t:n}}function w(t,r,n,a){e.Debug.assert(!n);var o=function(t){if(t&&void 0!==t.watchDirectory)return t;switch(C){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var r=null==t?void 0:t.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==r?r:void 0}}}(a),s=e.Debug.checkDefined(o.watchDirectory);switch(s){case e.WatchDirectoryKind.FixedPollingInterval:return c(t,(function(){return r(t)}),i.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return A()(t,(function(){return r(t)}),i.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return N()(t,(function(){return r(t)}),void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return d(t,1,D(t,r,a,m,y),n,i.Medium,e.getFallbackOptions(o));default:e.Debug.assertNever(s)}}}function E(t){var r=t.writeFile;t.writeFile=function(n,i,a){return e.writeFileEnsuringDirectories(n,i,!!a,(function(e,n,i){return r.call(t,e,n,i)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)}))}}function T(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.unchangedPollThresholds=s(u),e.setCustomPollingValues=d,e.createDynamicPriorityPollingWatchFile=f,e.createSingleFileWatcherPerName=m,e.onWatchedFileStat=y,e.getFileWatcherEventKind=h,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop,e.setSysLog=function(t){e.sysLog=t},e.createDirectoryWatcherSupportingRecursive=v,(l=e.FileSystemEntryKind||(e.FileSystemEntryKind={}))[l.File=0]="File",l[l.Directory=1]="Directory",e.createFileWatcherCallback=b,e.createSystemWatchFunctions=S,e.patchWriteFileEnsuringDirectory=E,e.getNodeMajorVersion=T,e.sys=("undefined"!=typeof process&&process.nextTick&&!process.browser&&(c=function(){var i,a,o,s=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,l=r("fs"),u=r("path"),_=r("os");try{a=r("crypto")}catch(e){a=void 0}var d,p="./profile.cpuprofile",f=!1,g=r("buffer").Buffer,y=T()>=4,h="linux"===process.platform||"darwin"===process.platform,v=_.platform(),x="win32"!==v&&"win64"!==v&&!M((d=__filename,d.replace(/\w/g,(function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})))),D=x&&null!==(i=l.realpathSync.native)&&void 0!==i?i:l.realpathSync,E=y&&("win32"===process.platform||"darwin"===process.platform),C=e.memoize((function(){return process.cwd()})),k=S({pollingWatchFile:m((function(e,t,r){var i;return l.watchFile(e,{persistent:!0,interval:r},a),{close:function(){return l.unwatchFile(e,a)}};function a(r,a){var o=0==+a.mtime||i===n.Deleted;if(0==+r.mtime){if(o)return;i=n.Deleted}else if(o)i=n.Created;else{if(+r.mtime==+a.mtime)return;i=n.Changed}t(e,i)}}),x),getModifiedTime:j,setTimeout,clearTimeout,fsWatch:function(t,r,i,a,o,s){var c,u,_;h&&(u=t.substr(t.lastIndexOf(e.directorySeparator)),_=u.slice(e.directorySeparator.length));var d=L(t,r)?g():v();return{close:function(){d.close(),d=void 0}};function p(r){e.sysLog("sysLog:: "+t+":: Changing watcher to "+(r===g?"Present":"Missing")+"FileSystemEntryWatcher"),i("rename",""),d&&(d.close(),d=r())}function g(){if(void 0===c&&(c=E?{persistent:!0,recursive:!!a}:{persistent:!0}),f)return e.sysLog("sysLog:: "+t+":: Defaulting to fsWatchFile"),y();try{var r=l.watch(t,c,h?m:i);return r.on("error",(function(){return p(v)})),r}catch(r){return f||(f="ENOSPC"===r.code),e.sysLog("sysLog:: "+t+":: Changing to fsWatchFile"),y()}}function m(e,n){return"rename"!==e||n&&n!==_&&(-1===n.lastIndexOf(u)||n.lastIndexOf(u)!==n.length-u.length)||L(t,r)?i(e,n):p(v)}function y(){return A(t,b(i),o,s)}function v(){return A(t,(function(e,i){i===n.Created&&L(t,r)&&p(g)}),o,s)}},useCaseSensitiveFileNames:x,getCurrentDirectory:C,fileExists:M,fsSupportsRecursiveFsWatch:E,directoryExists:R,getAccessibleSortedChildDirectories:function(e){return O(e).directories},realpath:B,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,defaultWatchFileKind:function(){var e,t;return null===(t=(e=c).defaultWatchFileKind)||void 0===t?void 0:t.call(e)}}),A=k.watchFile,N=k.watchDirectory,F={args:process.argv.slice(2),newLine:_.EOL,useCaseSensitiveFileNames:x,write:function(e){process.stdout.write(e)},getWidthOfTerminal:function(){return process.stdout.columns},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(t,r){e.perfLogger.logStartReadFile(t);var n=function(e,t){var r;try{r=l.readFileSync(e)}catch(e){return}var n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i<n;i+=2){var a=r[i];r[i]=r[i+1],r[i+1]=a}return r.toString("utf16le",2)}return n>=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(t);return e.perfLogger.logStopReadFile(),n},writeFile:function(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=l.openSync(t,"w"),l.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&l.closeSync(i)}},watchFile:A,watchDirectory:N,resolvePath:function(e){return u.resolve(e)},fileExists:M,directoryExists:R,createDirectory:function(e){if(!F.directoryExists(e))try{l.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:C,getDirectories:function(e){return O(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(t,r,n,i,a){return e.matchFiles(t,r,n,i,x,process.cwd(),a,O,B,R)},getModifiedTime:j,setModifiedTime:function(e,t){try{l.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return l.unlinkSync(e)}catch(e){return}},createHash:a?J:t,createSHA256Hash:a?J:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=w(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit:function(e){P((function(){return process.exit(e)}))},enableCPUProfiler:function(e,t){if(o)return t(),!1;var n=r("inspector");if(!n||!n.Session)return t(),!1;var i=new n.Session;return i.connect(),i.post("Profiler.enable",(function(){i.post("Profiler.start",(function(){o=i,p=e,t()}))})),!0},disableCPUProfiler:P,cpuProfilingEnabled:function(){return!!o||e.contains(process.execArgv,"--cpu-prof")||e.contains(process.execArgv,"--prof")},realpath:B,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){try{r("./node_modules/source-map-support/source-map-support.js").install()}catch(e){}},setTimeout,clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:I,base64decode:function(e){return I(e,"base64").toString("utf8")},base64encode:function(e){return I(e).toString("base64")},require:function(t,n){try{var i=e.resolveJSModule(n,t,F);return{module:r("./node_modules/typescript/lib sync recursive")(i),modulePath:i,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return F;function w(e){return l.statSync(e,{throwIfNoEntry:!1})}function P(t){if(o&&"stopping"!==o){var r=o;return o.post("Profiler.stop",(function(n,i){var a,c=i.profile;if(!n){try{(null===(a=w(p))||void 0===a?void 0:a.isDirectory())&&(p=u.join(p,(new Date).toISOString().replace(/:/g,"-")+"+P"+process.pid+".cpuprofile"))}catch(e){}try{l.mkdirSync(u.dirname(p),{recursive:!0})}catch(e){}l.writeFileSync(p,JSON.stringify(function(t){for(var r=0,n=new e.Map,i=e.normalizeSlashes(__dirname),a="file://"+(1===e.getRootLength(i)?"":"/")+i,o=0,c=t.nodes;o<c.length;o++){var l=c[o];if(l.callFrame.url){var u=e.normalizeSlashes(l.callFrame.url);e.containsPath(a,u,x)?l.callFrame.url=e.getRelativePathToDirectoryOrUrl(a,u,a,e.createGetCanonicalFileName(x),!0):s.test(u)||(l.callFrame.url=(n.has(u)?n:n.set(u,"external"+r+".js")).get(u),r++)}}return t}(c)))}o=void 0,r.disconnect(),t()})),o="stopping",!0}return t(),!1}function I(e,t){return g.from&&g.from!==Int8Array.from?g.from(e,t):new g(e,t)}function O(t){e.perfLogger.logEvent("ReadDir: "+(t||"."));try{for(var r=l.readdirSync(t||".",{withFileTypes:!0}),n=[],i=[],a=0,o=r;a<o.length;a++){var s=o[a],c="string"==typeof s?s:s.name;if("."!==c&&".."!==c){var u=void 0;if("string"==typeof s||s.isSymbolicLink()){var _=e.combinePaths(t,c);try{if(!(u=w(_)))continue}catch(e){continue}}else u=s;u.isFile()?n.push(c):u.isDirectory()&&i.push(c)}}return n.sort(),i.sort(),{files:n,directories:i}}catch(t){return e.emptyFileSystemEntries}}function L(e,t){var r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var n=w(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=r}}function M(e){return L(e,0)}function R(e){return L(e,1)}function B(e){try{return D(e)}catch(t){return e}}function j(e){var t;try{return null===(t=w(e))||void 0===t?void 0:t.mtime}catch(e){return}}function J(e){var t=a.createHash("sha256");return t.update(e),t.digest("hex")}}()),c&&E(c),c),e.sys&&e.sys.getEnvironmentVariable&&(d(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(u||(u={})),function(e){function t(e,t,r,n,i,a,o){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:t(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:t(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_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."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:t(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),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_Did_you_mean_to_write_Promise_0:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_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."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_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_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_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_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument: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_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Did_you_mean_to_parenthesize_this_function_type:t(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:t(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),Provides_a_root_package_name_when_using_outFile_with_declarations:t(1390,e.DiagnosticCategory.Message,"Provides_a_root_package_name_when_using_outFile_with_declarations_1390","Provides a root package name when using outFile with declarations."),The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_declaration_emit:t(1391,e.DiagnosticCategory.Error,"The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_de_1391","The 'bundledPackageName' option must be provided when using outFile and node module resolution with declaration emit."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),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_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),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_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_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_not_be_a_primitive:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call: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."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),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."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),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_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),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."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),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."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),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_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),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_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),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[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),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."),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_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."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),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'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type.  Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:t(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:t(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),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(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),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_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),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:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),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_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),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(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),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_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:t(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects"),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date"),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'"),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like `__extends` in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied `any` type.."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when `this` is given the type `any`."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type"),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add `undefined` to a type when accessed using an index."),Enable_error_reporting_when_a_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read"),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing `const enum` declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode"),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read"),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for `bind`, `call`, and `apply` methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account `null` and `undefined`."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have `@internal` in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress `noImplicitAny` errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:t(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like `./node_modules/@types`."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:t(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types"),Type_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),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."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),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."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),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."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_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"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),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"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),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}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:t(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:t(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:t(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}}(u||(u={})),function(e){var t;function r(e){return e>=79}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(e)},e.textToKeywordObj=((t={abstract:126,any:129,as:127,asserts:128,bigint:156,boolean:132,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=133,t.debugger=87,t.declare=134,t.default=88,t.delete=89,t.do=90,t.else=91,t.enum=92,t.export=93,t.extends=94,t.false=95,t.finally=96,t.for=97,t.from=154,t.function=98,t.get=135,t.if=99,t.implements=117,t.import=100,t.in=101,t.infer=136,t.instanceof=102,t.interface=118,t.intrinsic=137,t.is=138,t.keyof=139,t.let=119,t.module=140,t.namespace=141,t.never=142,t.new=103,t.null=104,t.number=145,t.object=146,t.package=120,t.private=121,t.protected=122,t.public=123,t.override=157,t.readonly=143,t.require=144,t.global=155,t.return=105,t.set=147,t.static=124,t.string=148,t.super=106,t.switch=107,t.symbol=149,t.this=108,t.throw=109,t.true=110,t.try=111,t.type=150,t.typeof=112,t.undefined=151,t.unique=152,t.unknown=153,t.var=113,t.void=114,t.while=115,t.with=116,t.yield=125,t.async=130,t.await=131,t.of=158,t);var n=new e.Map(e.getEntries(e.textToKeywordObj)),i=new e.Map(e.getEntries(a(a({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),o=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],s=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],u=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],_=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],d=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function f(e,t){if(e<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[r+1])return!0;e<t[r]?i=r:n=r+2}return!1}function g(e,t){return f(e,t>=2?u:1===t?c:o)}e.isUnicodeIdentifierStart=g;var m,y=(m=[],i.forEach((function(e,t){m[e]=t})),m);function h(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&&T(i)&&(t.push(n),n=r)}}return t.push(n),t}function v(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,h(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r<t.length-1?e.Debug.assert(o<t[r+1]):void 0!==i&&e.Debug.assert(o<=i.length),o)}function b(e){return e.lineMap||(e.lineMap=h(e.text))}function x(e,t){var r=D(e,t);return{line:r,character:t-e[r]}}function D(t,r,n){var i=e.binarySearch(t,r,e.identity,e.compareValues,n);return i<0&&(i=~i-1,e.Debug.assert(-1!==i,"position cannot precede the beginning of the file")),i}function S(e){return E(e)||T(e)}function E(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 T(e){return 10===e||13===e||8232===e||8233===e}function C(e){return e>=48&&e<=57}function k(e){return C(e)||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return y[e]},e.stringToToken=function(e){return i.get(e)},e.computeLineStarts=h,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):v(b(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=v,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=x,e.computeLineOfPosition=D,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=b(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=D(n,i),c=D(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return x(b(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=E,e.isLineBreak=T,e.isOctalDigit=A,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=function(t,r,n,i,a){if(e.positionIsSynthesized(r))return r;for(var o=!1;;){var s=t.charCodeAt(r);switch(s){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;o=!!a;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r<t.length&&!T(t.charCodeAt(r));)r++;o=!1;continue}if(42===t.charCodeAt(r+1)){for(r+=2;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(F(t,r)){r=w(t,r),o=!1;continue}break;case 35:if(0===r&&I(t,r)){r=O(t,r),o=!1;continue}break;case 42:if(o){r++,o=!1;continue}break;default:if(s>127&&S(s)){r++;continue}}return r}};var N="<<<<<<<".length;function F(t,r){if(e.Debug.assert(r>=0),0===r||T(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+N<t.length){for(var i=0;i<N;i++)if(t.charCodeAt(r+i)!==n)return!1;return 61===n||32===t.charCodeAt(r+N)}}return!1}function w(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,r,N);var i=t.charCodeAt(r),a=t.length;if(60===i||62===i)for(;r<a&&!T(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&&F(t,r))break;r++}return r}var P=/^#!.*/;function I(t,r){return e.Debug.assert(0===r),P.test(t)}function O(e,t){return t+P.exec(e)[0].length}function L(e,t,r,n,i,a,o){var s,c,l,u,_=!1,d=n,p=o;if(0===r){d=!0;var f=j(t);f&&(r=f.length)}e:for(;r>=0&&r<t.length;){var g=t.charCodeAt(r);switch(g){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;d=!0,_&&(u=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var m=t.charCodeAt(r+1),y=!1;if(47===m||42===m){var h=47===m?2:3,v=r;if(r+=2,47===m)for(;r<t.length;){if(T(t.charCodeAt(r))){y=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(d){if(_&&(p=i(s,c,l,u,a,p),!e&&p))return p;s=v,c=r,l=h,u=y,_=!0}continue}break e;default:if(g>127&&S(g)){_&&T(g)&&(u=!0),r++;continue}break e}}return _&&(p=i(s,c,l,u,a,p)),p}function M(e,t,r,n,i){return L(!0,e,t,!1,r,n,i)}function R(e,t,r,n,i){return L(!0,e,t,!0,r,n,i)}function B(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function j(e){var t=P.exec(e);if(t)return t[0]}function J(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&g(e,t)}function V(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&function(e,t){return f(e,t>=2?_:1===t?l:s)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=function(e,t,r,n){return L(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return L(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=M,e.reduceEachTrailingCommentRange=R,e.getLeadingCommentRanges=function(e,t){return M(e,t,B,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return R(e,t,B,void 0,void 0)},e.getShebang=j,e.isIdentifierStart=J,e.isIdentifierPart=V,e.isIdentifierText=function(e,t,r){var n=U(e,0);if(!J(n,t))return!1;for(var i=K(n);i<e.length;i+=K(n))if(!V(n=U(e,i),t,r))return!1;return!0},e.createScanner=function(t,i,a,o,s,c,l){void 0===a&&(a=0);var u,_,f,g,m,y,h,v,b=o,x=0;le(b,c,l);var D={getStartPos:function(){return f},getTextPos:function(){return u},getToken:function(){return m},getTokenPos:function(){return g},getTokenText:function(){return b.substring(g,u)},getTokenValue:function(){return y},hasUnicodeEscape:function(){return 0!=(1024&h)},hasExtendedUnicodeEscape:function(){return 0!=(8&h)},hasPrecedingLineBreak:function(){return 0!=(1&h)},hasPrecedingJSDocComment:function(){return 0!=(2&h)},isIdentifier:function(){return 79===m||m>116},isReservedWord:function(){return m>=81&&m<=116},isUnterminated:function(){return 0!=(4&h)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&h},getTokenFlags:function(){return h},reScanGreaterToken:function(){if(31===m){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=72):(u+=2,m=49):61===b.charCodeAt(u+1)?(u+=2,m=71):(u++,m=48);if(61===b.charCodeAt(u))return u++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=g+1,m=63},reScanSlashToken:function(){if(43===m||68===m){for(var r=g+1,n=!1,i=!1;;){if(r>=_){h|=4,N(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(T(a)){h|=4,N(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r<_&&V(b.charCodeAt(r),t);)r++;u=r,y=b.substring(g,u),m=13}return m},reScanTemplateToken:function(t){return e.Debug.assert(19===m,"'reScanTemplateToken' should only be called on a '}'"),u=g,m=q(t)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return u=g,m=q(!0)},scanJsxIdentifier:function(){if(r(m)){for(var e=!1;u<_;){var t=b.charCodeAt(u);if(45!==t)if(58!==t||e){var n=u;if(y+=Z(),u===n)break}else y+=":",u++,e=!0,m=79;else y+="-",u++}":"===y.slice(-1)&&(y=y.slice(0,-1),u--)}return m},scanJsxAttributeValue:se,reScanJsxAttributeValue:function(){return u=g=f,se()},reScanJsxToken:function(e){return void 0===e&&(e=!0),u=g=f,m=oe(e)},reScanLessThanToken:function(){return 47===m?(u=g+1,m=29):m},reScanHashToken:function(){return 80===m?(u=g+1,m=62):m},reScanQuestionToken:function(){return e.Debug.assert(60===m,"'reScanQuestionToken' should only be called on a '??'"),u=g+1,m=57},reScanInvalidIdentifier:function(){e.Debug.assert(0===m,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=g=f,h=0;var t=U(b,u),r=ie(t,99);return r?m=r:(u+=K(t),m)},scanJsxToken:oe,scanJsDocToken:function(){if(f=g=u,h=0,u>=_)return m=1;var e=U(b,u);switch(u+=K(e),e){case 9:case 11:case 12:case 32:for(;u<_&&E(b.charCodeAt(u));)u++;return m=5;case 64:return m=59;case 13:10===b.charCodeAt(u)&&u++;case 10:return h|=1,m=4;case 42:return m=41;case 123:return m=18;case 125:return m=19;case 91:return m=22;case 93:return m=23;case 60:return m=29;case 62:return m=31;case 61:return m=63;case 44:return m=27;case 46:return m=24;case 96:return m=61;case 35:return m=62;case 92:u--;var r=$();if(r>=0&&J(r,t))return u+=3,h|=8,y=X()+Z(),m=ee();var n=Q();return n>=0&&J(n,t)?(u+=6,h|=1024,y=String.fromCharCode(n)+Z(),m=ee()):(u++,m=0)}if(J(e,t)){for(var i=e;u<_&&V(i=U(b,u),t)||45===b.charCodeAt(u);)u+=K(i);return y=b.substring(g,u),92===i&&(y+=Z()),m=ee()}return m=0},scan:ne,getText:function(){return b},clearCommentDirectives:function(){v=void 0},setText:le,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:ue,setInJSDocType:function(e){x+=e?1:-1},tryScan:function(e){return ce(e,!1)},lookAhead:function(e){return ce(e,!0)},scanRange:function(e,t,r){var n=_,i=u,a=f,o=g,s=m,c=y,l=h,d=v;le(b,e,t);var p=r();return _=n,u=i,f=a,g=o,m=s,y=c,h=l,v=d,p}};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugShowCurrentPositionInText",{get:function(){var e=D.getText();return e.slice(0,D.getStartPos())+"║"+e.slice(D.getStartPos())}}),D;function N(e,t,r){if(void 0===t&&(t=u),s){var n=u;u=t,s(e,r||0),u=n}}function P(){for(var t=u,r=!1,n=!1,i="";;){var a=b.charCodeAt(u);if(95!==a){if(!C(a))break;r=!0,n=!1,u++}else h|=512,r?(r=!1,n=!0,i+=b.substring(t,u)):N(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),t=++u}return 95===b.charCodeAt(u-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),i+b.substring(t,u)}function L(){var t,r,n=u,i=P();46===b.charCodeAt(u)&&(u++,t=P());var a,o=u;if(69===b.charCodeAt(u)||101===b.charCodeAt(u)){u++,h|=16,43!==b.charCodeAt(u)&&45!==b.charCodeAt(u)||u++;var s=u,c=P();c?(r=b.substring(o,s)+c,o=u):N(e.Diagnostics.Digit_expected)}if(512&h?(a=i,t&&(a+="."+t),r&&(a+=r)):a=b.substring(n,o),void 0!==t||16&h)return M(n,void 0===t&&!!(16&h)),{type:8,value:""+ +a};y=a;var l=re();return M(n),{type:l,value:y}}function M(r,n){if(J(U(b,u),t)){var i=u,a=Z().length;1===a&&"n"===b[i]?N(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(N(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),u=i)}}function R(){for(var e=u;A(b.charCodeAt(u));)u++;return+b.substring(e,u)}function B(e,t){var r=z(e,!1,t);return r?parseInt(r,16):-1}function j(e,t){return z(e,!0,t)}function z(t,r,n){for(var i=[],a=!1,o=!1;i.length<t||r;){var s=b.charCodeAt(u);if(n&&95===s)h|=512,a?(a=!1,o=!0):N(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++;else{if(a=n,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),u++,o=!1}}return i.length<t&&(i=[]),95===b.charCodeAt(u-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),String.fromCharCode.apply(String,i)}function W(t){void 0===t&&(t=!1);for(var r=b.charCodeAt(u),n="",i=++u;;){if(u>=_){n+=b.substring(i,u),h|=4,N(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(u);if(a===r){n+=b.substring(i,u),u++;break}if(92!==a||t){if(T(a)&&!t){n+=b.substring(i,u),h|=4,N(e.Diagnostics.Unterminated_string_literal);break}u++}else n+=b.substring(i,u),n+=H(),i=u}return n}function q(t){for(var r,n=96===b.charCodeAt(u),i=++u,a="";;){if(u>=_){a+=b.substring(i,u),h|=4,N(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(u);if(96===o){a+=b.substring(i,u),u++,r=n?14:17;break}if(36===o&&u+1<_&&123===b.charCodeAt(u+1)){a+=b.substring(i,u),u+=2,r=n?15:16;break}92!==o?13!==o?u++:(a+=b.substring(i,u),++u<_&&10===b.charCodeAt(u)&&u++,a+="\n",i=u):(a+=b.substring(i,u),a+=H(t),i=u)}return e.Debug.assert(void 0!==r),y=a,r}function H(t){var r=u;if(++u>=_)return N(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(u);switch(u++,n){case 48:return t&&u<_&&C(b.charCodeAt(u))?(u++,h|=2048,b.substring(r,u)):"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(t)for(var i=u;i<u+4;i++)if(i<_&&!k(b.charCodeAt(i))&&123!==b.charCodeAt(i))return u=i,h|=2048,b.substring(r,u);if(u<_&&123===b.charCodeAt(u)){if(u++,t&&!k(b.charCodeAt(u)))return h|=2048,b.substring(r,u);if(t){var a=u,o=j(1,!1);if(!((o?parseInt(o,16):-1)<=1114111&&125===b.charCodeAt(u)))return h|=2048,b.substring(r,u);u=a}return h|=8,X()}return h|=1024,Y(4);case 120:if(t){if(!k(b.charCodeAt(u)))return h|=2048,b.substring(r,u);if(!k(b.charCodeAt(u+1)))return u++,h|=2048,b.substring(r,u)}return Y(2);case 13:u<_&&10===b.charCodeAt(u)&&u++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function Y(t){var r=B(t,!1);return r>=0?String.fromCharCode(r):(N(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=j(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(N(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(N(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),u>=_?(N(e.Diagnostics.Unexpected_end_of_text),n=!0):125===b.charCodeAt(u)?u++:(N(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":G(r)}function Q(){if(u+5<_&&117===b.charCodeAt(u+1)){var e=u;u+=2;var t=B(4,!1);return u=e,t}return-1}function $(){if(t>=2&&117===U(b,u+1)&&123===U(b,u+2)){var e=u;u+=3;var r=j(1,!1),n=r?parseInt(r,16):-1;return u=e,n}return-1}function Z(){for(var e="",r=u;u<_;){var n=U(b,u);if(V(n,t))u+=K(n);else{if(92!==n)break;if((n=$())>=0&&V(n,t)){u+=3,h|=8,e+=X(),r=u;continue}if(!((n=Q())>=0&&V(n,t)))break;h|=1024,e+=b.substring(r,u),e+=G(n),r=u+=6}}return e+b.substring(r,u)}function ee(){var e=y.length;if(e>=2&&e<=12){var t=y.charCodeAt(0);if(t>=97&&t<=122){var r=n.get(y);if(void 0!==r)return m=r}}return m=79}function te(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(u);if(95!==a){if(n=!0,!C(a)||a-48>=t)break;r+=b[u],u++,i=!1}else h|=512,n?(n=!1,i=!0):N(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),r}function re(){if(110===b.charCodeAt(u))return y+="n",384&h&&(y=e.parsePseudoBigInt(y)+"n"),u++,9;var t=128&h?parseInt(y.slice(2),2):256&h?parseInt(y.slice(2),8):+y;return y=""+t,8}function ne(){var r;f=u,h=0;for(var n=!1;;){if(g=u,u>=_)return m=1;var o=U(b,u);if(35===o&&0===u&&I(b,u)){if(u=O(b,u),i)continue;return m=6}switch(o){case 10:case 13:if(h|=1,i){u++;continue}return 13===o&&u+1<_&&10===b.charCodeAt(u+1)?u+=2:u++,m=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(i){u++;continue}for(;u<_&&E(b.charCodeAt(u));)u++;return m=5;case 33:return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=37):(u+=2,m=35):(u++,m=53);case 34:case 39:return y=W(),m=10;case 96:return m=q(!1);case 37:return 61===b.charCodeAt(u+1)?(u+=2,m=69):(u++,m=44);case 38:return 38===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=76):(u+=2,m=55):61===b.charCodeAt(u+1)?(u+=2,m=73):(u++,m=50);case 40:return u++,m=20;case 41:return u++,m=21;case 42:if(61===b.charCodeAt(u+1))return u+=2,m=66;if(42===b.charCodeAt(u+1))return 61===b.charCodeAt(u+2)?(u+=3,m=67):(u+=2,m=42);if(u++,x&&!n&&1&h){n=!0;continue}return m=41;case 43:return 43===b.charCodeAt(u+1)?(u+=2,m=45):61===b.charCodeAt(u+1)?(u+=2,m=64):(u++,m=39);case 44:return u++,m=27;case 45:return 45===b.charCodeAt(u+1)?(u+=2,m=46):61===b.charCodeAt(u+1)?(u+=2,m=65):(u++,m=40);case 46:return C(b.charCodeAt(u+1))?(y=L().value,m=8):46===b.charCodeAt(u+1)&&46===b.charCodeAt(u+2)?(u+=3,m=25):(u++,m=24);case 47:if(47===b.charCodeAt(u+1)){for(u+=2;u<_&&!T(b.charCodeAt(u));)u++;if(v=ae(v,b.slice(g,u),d,g),i)continue;return m=2}if(42===b.charCodeAt(u+1)){u+=2,42===b.charCodeAt(u)&&47!==b.charCodeAt(u+1)&&(h|=2);for(var s=!1,c=g;u<_;){var l=b.charCodeAt(u);if(42===l&&47===b.charCodeAt(u+1)){u+=2,s=!0;break}u++,T(l)&&(c=u,h|=1)}if(v=ae(v,b.slice(c,u),p,c),s||N(e.Diagnostics.Asterisk_Slash_expected),i)continue;return s||(h|=4),m=3}return 61===b.charCodeAt(u+1)?(u+=2,m=68):(u++,m=43);case 48:if(u+2<_&&(88===b.charCodeAt(u+1)||120===b.charCodeAt(u+1)))return u+=2,(y=j(1,!0))||(N(e.Diagnostics.Hexadecimal_digit_expected),y="0"),y="0x"+y,h|=64,m=re();if(u+2<_&&(66===b.charCodeAt(u+1)||98===b.charCodeAt(u+1)))return u+=2,(y=te(2))||(N(e.Diagnostics.Binary_digit_expected),y="0"),y="0b"+y,h|=128,m=re();if(u+2<_&&(79===b.charCodeAt(u+1)||111===b.charCodeAt(u+1)))return u+=2,(y=te(8))||(N(e.Diagnostics.Octal_digit_expected),y="0"),y="0o"+y,h|=256,m=re();if(u+1<_&&A(b.charCodeAt(u+1)))return y=""+R(),h|=32,m=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=L(),m=r.type,y=r.value,m;case 58:return u++,m=58;case 59:return u++,m=26;case 60:if(F(b,u)){if(u=w(b,u,N),i)continue;return m=7}return 60===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=70):(u+=2,m=47):61===b.charCodeAt(u+1)?(u+=2,m=32):1===a&&47===b.charCodeAt(u+1)&&42!==b.charCodeAt(u+2)?(u+=2,m=30):(u++,m=29);case 61:if(F(b,u)){if(u=w(b,u,N),i)continue;return m=7}return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=36):(u+=2,m=34):62===b.charCodeAt(u+1)?(u+=2,m=38):(u++,m=63);case 62:if(F(b,u)){if(u=w(b,u,N),i)continue;return m=7}return u++,m=31;case 63:return 46!==b.charCodeAt(u+1)||C(b.charCodeAt(u+2))?63===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=77):(u+=2,m=60):(u++,m=57):(u+=2,m=28);case 91:return u++,m=22;case 93:return u++,m=23;case 94:return 61===b.charCodeAt(u+1)?(u+=2,m=78):(u++,m=52);case 123:return u++,m=18;case 124:if(F(b,u)){if(u=w(b,u,N),i)continue;return m=7}return 124===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=75):(u+=2,m=56):61===b.charCodeAt(u+1)?(u+=2,m=74):(u++,m=51);case 125:return u++,m=19;case 126:return u++,m=54;case 64:return u++,m=59;case 92:var D=$();if(D>=0&&J(D,t))return u+=3,h|=8,y=X()+Z(),m=ee();var S=Q();return S>=0&&J(S,t)?(u+=6,h|=1024,y=String.fromCharCode(S)+Z(),m=ee()):(N(e.Diagnostics.Invalid_character),u++,m=0);case 35:return 0!==u&&"!"===b[u+1]?(N(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,m=0):(J(U(b,u+1),t)?(u++,ie(U(b,u),t)):(y=String.fromCharCode(U(b,u)),N(e.Diagnostics.Invalid_character,u++,K(o))),m=80);default:var k=ie(o,t);if(k)return m=k;if(E(o)){u+=K(o);continue}if(T(o)){h|=1,u+=K(o);continue}var P=K(o);return N(e.Diagnostics.Invalid_character,u,P),u+=P,m=0}}}function ie(e,t){var r=e;if(J(r,t)){for(u+=K(r);u<_&&V(r=U(b,u),t);)u+=K(r);return y=b.substring(g,u),92===r&&(y+=Z()),ee()}}function ae(t,r,n,i){var a=function(e,t){var r=t.exec(e);if(r)switch(r[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}(e.trimStringStart(r),n);return void 0===a?t:e.append(t,{range:{pos:i,end:u},type:a})}function oe(t){if(void 0===t&&(t=!0),f=g=u,u>=_)return m=1;var r=b.charCodeAt(u);if(60===r)return 47===b.charCodeAt(u+1)?(u+=2,m=30):(u++,m=29);if(123===r)return u++,m=18;for(var n=0;u<_&&123!==(r=b.charCodeAt(u));){if(60===r){if(F(b,u))return u=w(b,u,N),m=7;break}if(62===r&&N(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,u,1),125===r&&N(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,u,1),T(r)&&0===n)n=-1;else{if(!t&&T(r)&&n>0)break;S(r)||(n=u)}u++}return y=b.substring(f,u),-1===n?12:11}function se(){switch(f=u,b.charCodeAt(u)){case 34:case 39:return y=W(!0),m=10;default:return ne()}}function ce(e,t){var r=u,n=f,i=g,a=m,o=y,s=h,c=e();return c&&!t||(u=r,f=n,g=i,m=a,y=o,h=s),c}function le(e,t,r){b=e||"",_=void 0===r?b.length:t+r,ue(t||0)}function ue(t){e.Debug.assert(t>=0),u=t,f=t,g=t,m=0,y=void 0,h=0}};var U=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function K(e){return e>=65536?2:1}var z=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function G(e){return z(e)}e.utf16EncodeAsString=G}(u||(u={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function l(t){return!!$(t)&&e.every(t.elements,u)}function u(t){return!!e.isOmittedExpression(t)||l(t.name)}function _(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function d(t,r){e.isBindingElement(t)&&(t=_(t));var n=r(t);return 252===t.kind&&(t=t.parent),t&&253===t.kind&&(n|=r(t),t=t.parent),t&&235===t.kind&&(n|=r(t)),n}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 g(e){return f(e.escapedText)}function m(t){var r=t.parent.parent;if(r){if(se(r))return y(r);switch(r.kind){case 235:if(r.declarationList&&r.declarationList.declarations[0])return y(r.declarationList.declarations[0]);break;case 236:var n=r.expression;switch(219===n.kind&&63===n.operatorToken.kind&&(n=n.left),n.kind){case 204:return n.name;case 205:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 210:return y(r.expression);case 248:if(se(r.statement)||ne(r.statement))return y(r.statement)}}}function y(t){var r=x(t);return r&&e.isIdentifier(r)?r:void 0}function h(e){return e.name||m(e)}function v(e){return!!e.name}function b(t){switch(t.kind){case 79:return t;case 342:case 335:var r=t.name;if(159===r.kind)return r.right;break;case 206:case 219:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 340:return h(t);case 334:return m(t);case 269:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 205:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?D(t):void 0)}function D(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return N(t.parent,r).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n}))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=N(t.parent,r).filter(e.isJSDocParameterTag);if(i<a.length)return[a[i]]}return e.emptyArray}function E(e){return S(e,!1)}function T(t,r){var n=t.name.escapedText;return N(t.parent,r).filter((function(t){return e.isJSDocTemplateTag(t)&&t.typeParameters.some((function(e){return e.name.escapedText===n}))}))}function C(t){return w(t,e.isJSDocReturnTag)}function k(t){var r=w(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type)return r}function A(t){var r=w(t,e.isJSDocTypeTag);return!r&&e.isParameter(t)&&(r=e.find(E(t),(function(e){return!!e.typeExpression}))),r&&r.typeExpression&&r.typeExpression.type}function N(t,r){var n=t.jsDocCache;if(void 0===n||r){var i=e.getJSDocCommentsAndTags(t,r);e.Debug.assert(i.length<2||i[0]!==i[1]),n=e.flatMap(i,(function(t){return e.isJSDoc(t)?t.tags:t})),r||(t.jsDocCache=n)}return n}function F(e){return N(e,!1)}function w(t,r,n){return e.find(N(t,n),r)}function P(e,t){return F(e).filter(t)}function I(e){var t=e.kind;return!!(32&e.flags)&&(204===t||205===t||206===t||228===t)}function O(t){return I(t)&&!e.isNonNullExpression(t)&&!!t.questionDotToken}function L(t){return e.skipOuterExpressions(t,8)}function M(e){switch(e.kind){case 297:case 298:return!0;default:return!1}}function R(e){return e>=159}function B(e){return e>=0&&e<=158}function j(e){return 8<=e&&e<=14}function J(e){return 14<=e&&e<=17}function V(t){return(e.isPropertyDeclaration(t)||Y(t))&&e.isPrivateIdentifier(t.name)}function U(e){switch(e){case 126:case 130:case 85:case 134:case 88:case 93:case 123:case 121:case 122:case 143:case 124:case 157:return!0}return!1}function K(t){return!!(16476&e.modifierToFlag(t))}function z(e){return!!e&&W(e.kind)}function G(e){switch(e){case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return!1}}function W(e){switch(e){case 166:case 172:case 318:case 173:case 174:case 177:case 312:case 178:return!0;default:return G(e)}}function q(e){var t=e.kind;return 169===t||165===t||167===t||170===t||171===t||174===t||168===t||232===t}function H(e){return e&&(255===e.kind||224===e.kind)}function Y(e){switch(e.kind){case 167:case 170:case 171:return!0;default:return!1}}function X(e){var t=e.kind;return 173===t||172===t||164===t||166===t||174===t}function Q(e){var t=e.kind;return 291===t||292===t||293===t||167===t||170===t||171===t}function $(e){if(e){var t=e.kind;return 200===t||199===t}return!1}function Z(e){switch(e.kind){case 199:case 203:return!0}return!1}function ee(e){switch(e.kind){case 200:case 202:return!0}return!1}function te(e){switch(e){case 204:case 205:case 207:case 206:case 276:case 277:case 280:case 208:case 202:case 210:case 203:case 224:case 211:case 79:case 13:case 8:case 9:case 10:case 14:case 221:case 95:case 104:case 108:case 110:case 106:case 228:case 229:case 100:return!0;default:return!1}}function re(e){switch(e){case 217:case 218:case 213:case 214:case 215:case 216:case 209:return!0;default:return te(e)}}function ne(e){return function(e){switch(e){case 220:case 222:case 212:case 219:case 223:case 227:case 225:case 346:case 345:return!0;default:return re(e)}}(L(e).kind)}function ie(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ae(e){return 254===e||274===e||255===e||256===e||257===e||258===e||259===e||264===e||263===e||270===e||269===e||262===e}function oe(e){return 244===e||243===e||251===e||238===e||236===e||234===e||241===e||242===e||240===e||237===e||248===e||245===e||247===e||249===e||250===e||235===e||239===e||246===e||344===e||348===e||347===e}function se(t){return 161===t.kind?t.parent&&339!==t.parent.kind||e.isInJSFile(t):212===(r=t.kind)||201===r||255===r||224===r||168===r||169===r||258===r||294===r||273===r||254===r||211===r||170===r||265===r||263===r||268===r||256===r||283===r||167===r||166===r||259===r||262===r||266===r||272===r||162===r||291===r||165===r||164===r||171===r||292===r||257===r||161===r||252===r||340===r||333===r||342===r;var r}function ce(e){return e.kind>=322&&e.kind<=342}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r<t(e)},e.textRangeContainsPositionInclusive=function(e,t){return t>=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,l=1;l<r.length;l++){var u=r[l],_=i,d=a,p=o,f=u.span.start,g=t(u.span),m=f+u.newLength;i=Math.min(_,f),a=Math.max(d,d+(g-p)),o=Math.max(m,m+(p-g))}return c(s(i,a),o-i)},e.getTypeParameterOwner=function(e){if(e&&161===e.kind)for(var t=e;t;t=t.parent)if(z(t)||H(t)||256===t.kind)return t},e.isParameterPropertyDeclaration=function(t,r){return e.hasSyntacticModifier(t,16476)&&169===r.kind},e.isEmptyBindingPattern=l,e.isEmptyBindingElement=u,e.walkUpBindingElementsAndPatterns=_,e.getCombinedModifierFlags=function(t){return d(t,e.getEffectiveModifierFlags)},e.getCombinedNodeFlagsAlwaysIncludeJSDoc=function(t){return d(t,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)},e.getCombinedNodeFlags=function(e){return d(e,(function(e){return e.flags}))},e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],e.validateLocaleAndSetLanguage=function(t,r,n){var i=t.toLowerCase(),a=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(a){var o=a[1],s=a[3];e.contains(e.supportedLocaleDirectories,i)&&!c(o,s,n)&&c(o,void 0,n),e.setUILocale(t)}else n&&n.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function c(t,n,i){var a=e.normalizePath(r.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,t);if(n&&(s=s+"-"+n),s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!r.fileExists(s))return!1;var c="";try{c=r.readFile(s)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(c))}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=function(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0},e.findAncestor=function(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}},e.isParseTreeNode=p,e.getParseTreeNode=function(e,t){if(void 0===e||p(e))return e;for(e=e.original;e;){if(p(e))return!t||t(e)?e:void 0;e=e.original}},e.escapeLeadingUnderscores=function(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&V(e.valueDeclaration)?g(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!v(r)||!e.isIdentifier(r.name)||g(r.name)!==g(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=h,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=D,e.getJSDocParameterTags=E,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return T(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return T(e,!0)},e.hasJSDocParameterTags=function(t){return!!w(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return w(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return P(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return w(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return w(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return w(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return w(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return w(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return w(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return w(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return w(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return w(t,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(t){return w(t,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(t){return w(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return w(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return w(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return w(t,e.isJSDocThisTag)},e.getJSDocReturnTag=C,e.getJSDocTemplateTag=function(t){return w(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=k,e.getJSDocType=A,e.getJSDocReturnType=function(t){var r=C(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=F,e.getJSDocTagsNoCache=function(e){return N(e,!0)},e.getAllJSDocTags=P,e.getAllJSDocTagsOfKind=function(e,t){return F(e).filter((function(e){return e.kind===t}))},e.getTextOfJSDocComment=function(t){return"string"==typeof t?t:null==t?void 0:t.map((function(t){return 316===t.kind?t.text:"{@link "+(t.name?e.entityNameToString(t.name)+" ":"")+t.text+"}"})).join("")},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(315===t.parent.kind),e.flatMap(t.parent.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}));if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=A(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isMemberName=function(e){return 79===e.kind||80===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 171===e.kind||170===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=I,e.isOptionalChainRoot=O,e.isExpressionOfOptionalChainRoot=function(e){return O(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!I(e.parent)||O(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 219===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=L,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 244===e.kind||243===e.kind},e.isNamedExportBindings=function(e){return 272===e.kind||271===e.kind},e.isUnparsedTextLike=M,e.isUnparsedNode=function(e){return M(e)||295===e.kind||299===e.kind},e.isJSDocPropertyLikeTag=function(e){return 342===e.kind||335===e.kind},e.isNode=function(e){return R(e.kind)},e.isNodeKind=R,e.isTokenKind=B,e.isToken=function(e){return B(e.kind)},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=j,e.isLiteralExpression=function(e){return j(e.kind)},e.isTemplateLiteralKind=J,e.isTemplateLiteralToken=function(e){return J(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 268:case 273:return e.parent.parent.isTypeOnly;case 266:return e.parent.isTypeOnly;case 265:case 263:return e.isTypeOnly;default:return!1}},e.isStringTextContainingNode=function(e){return 10===e.kind||J(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierClassElementDeclaration=V,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=U,e.isParameterPropertyModifier=K,e.isClassMemberModifier=function(e){return K(e)||124===e||157===e},e.isModifier=function(e){return U(e.kind)},e.isEntityName=function(e){var t=e.kind;return 159===t||79===t},e.isPropertyName=function(e){var t=e.kind;return 79===t||80===t||10===t||8===t||160===t},e.isBindingName=function(e){var t=e.kind;return 79===t||199===t||200===t},e.isFunctionLike=z,e.isFunctionLikeOrClassStaticBlockDeclaration=function(t){return!!t&&(W(t.kind)||e.isClassStaticBlockDeclaration(t))},e.isFunctionLikeDeclaration=function(e){return e&&G(e.kind)},e.isBooleanLiteral=function(e){return 110===e.kind||95===e.kind},e.isFunctionLikeKind=W,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&z(t.parent)},e.isClassElement=q,e.isClassLike=H,e.isAccessor=function(e){return e&&(170===e.kind||171===e.kind)},e.isMethodOrAccessor=Y,e.isTypeElement=X,e.isClassOrTypeElement=function(e){return X(e)||q(e)},e.isObjectLiteralElementLike=Q,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 177:case 178:return!0}return!1},e.isBindingPattern=$,e.isAssignmentPattern=function(e){var t=e.kind;return 202===t||203===t},e.isArrayBindingElement=function(e){var t=e.kind;return 201===t||225===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 252:case 162:case 201:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return Z(e)||ee(e)},e.isObjectBindingOrAssignmentPattern=Z,e.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 201:case 291:case 292:case 293:return!0}return!1},e.isArrayBindingOrAssignmentPattern=ee,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 204===t||159===t||198===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 204===t||159===t},e.isCallLikeExpression=function(e){switch(e.kind){case 278:case 277:case 206:case 207:case 208:case 163:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 206===e.kind||207===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 221===t||14===t},e.isLeftHandSideExpression=function(e){return te(L(e).kind)},e.isUnaryExpression=function(e){return re(L(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 218:return!0;case 217:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ne,e.isAssertionExpression=function(e){var t=e.kind;return 209===t||227===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 240:case 241:case 242:case 238:case 239:return!0;case 248:return r&&e(t.statement,r)}return!1},e.isScopeMarker=ie,e.hasScopeMarker=function(t){return e.some(t,ie)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 241===e.kind||242===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||ne(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||ne(t)},e.isModuleBody=function(e){var t=e.kind;return 260===t||259===t||79===t},e.isNamespaceBody=function(e){var t=e.kind;return 260===t||259===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 79===t||259===t},e.isNamedImportBindings=function(e){var t=e.kind;return 267===t||266===t},e.isModuleOrEnumDeclaration=function(e){return 259===e.kind||258===e.kind},e.isDeclaration=se,e.isDeclarationStatement=function(e){return ae(e.kind)},e.isStatementButNotDeclaration=function(e){return oe(e.kind)},e.isStatement=function(t){var r=t.kind;return oe(r)||ae(r)||function(t){return 233===t.kind&&((void 0===t.parent||250!==t.parent.kind&&290!==t.parent.kind)&&!e.isFunctionBlock(t))}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return oe(t)||ae(t)||233===t},e.isModuleReference=function(e){var t=e.kind;return 275===t||159===t||79===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 108===t||79===t||204===t},e.isJsxChild=function(e){var t=e.kind;return 276===t||286===t||277===t||11===t||280===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 283===t||285===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||286===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 278===t||277===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 287===t||288===t},e.isJSDocNode=function(e){return e.kind>=304&&e.kind<=342},e.isJSDocCommentContainingNode=function(t){return 315===t.kind||314===t.kind||316===t.kind||ue(t)||ce(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=ce,e.isSetAccessor=function(e){return 171===e.kind},e.isGetAccessor=function(e){return 170===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 252:case 162:case 201:case 164:case 165:case 291:case 294:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 283===e.kind||285===e.kind||Q(e)},e.isTypeReferenceType=function(e){return 176===e.kind||226===e.kind};var le=1073741823;function ue(e){return 319===e.kind||320===e.kind||321===e.kind}e.guessIndentation=function(t){for(var r=le,n=0,i=t;n<i.length;n++){var a=i[n];if(a.length){for(var o=0;o<a.length&&o<r&&e.isWhiteSpaceLike(a.charCodeAt(o));o++);if(o<r&&(r=o),0===r)return 0}}return r===le?void 0:r},e.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind},e.isJSDocLinkLike=ue}(u||(u={})),function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6,e.getDeclarationOfKind=function(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===t)return a}},e.createUnderscoreEscapedMap=function(){return new e.Map},e.hasEntries=function(e){return!!e&&!!e.size},e.createSymbolTable=function(t){var r=new e.Map;if(t)for(var n=0,i=t;n<i.length;n++){var a=i[n];r.set(a.escapedName,a)}return r},e.isTransientSymbol=function(e){return 0!=(33554432&e.flags)};var t,r,n,o=(t="",{getText:function(){return t},write:r=function(e){return t+=e},rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:function(e,t){return r(e)},writeTrailingSemicolon:r,writeComment:r,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},writeLine:function(){return t+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return t=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function s(t,r){return c(t,r,e.moduleResolutionOptionDeclarations)}function c(e,t,r){return e!==t&&r.some((function(r){return!ci(Cn(e,r),Cn(t,r))}))}function l(e){return e.end-e.pos}function u(e){for(;e&&300!==e.kind;)e=e.parent;return e}function _(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 d(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function p(e){return!d(e)}function f(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice.apply(e,i([n,0],t,!1)),e}function g(e,t,r){if(void 0===t)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice(n,0,t),e}function m(e){return H(e)||!!(1048576&S(e))}function y(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function h(t,r,n){return d(t)?t.pos:e.isJSDocNode(t)||11===t.kind?e.skipTrivia((r||u(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?h(t.jsDoc[0],r):343===t.kind&&t._children.length>0?h(t._children[0],r,n):e.skipTrivia((r||u(t)).text,t.pos,!1,!1,De(t))}function v(e,t,r){return void 0===r&&(r=!1),b(e.text,t,r)}function b(t,r,n){if(void 0===n&&(n=!1),d(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}(r)&&(i=i.split(/\r\n|\n|\r/).map((function(t){return e.trimStringStart(t.replace(/^\s*\*/,""))})).join("\n")),i}function x(e,t){return void 0===t&&(t=!1),v(u(e),e,t)}function D(e){return e.pos}function S(e){var t=e.emitNode;return t&&t.flags||0}function E(e){var t=Ct(e);return 252===t.kind&&290===t.parent.kind}function T(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||k(t))}function C(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function k(e){return!!(1024&e.flags)}function A(e){return T(e)&&N(e)}function N(t){switch(t.parent.kind){case 300:return e.isExternalModule(t.parent);case 260:return T(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function F(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((function(t){return!(A(t)||e.isModuleDeclaration(t)&&k(t))}))}function w(t,r){switch(t.kind){case 300:case 261:case 290:case 259:case 240:case 241:case 242:case 169:case 167:case 170:case 171:case 254:case 211:case 212:case 165:case 168:return!0;case 233:return!e.isFunctionLikeOrClassStaticBlockDeclaration(r)}return!1}function P(t){switch(t.kind){case 172:case 173:case 166:case 174:case 177:case 178:case 312:case 255:case 224:case 256:case 257:case 339:case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return e.assertType(t),!1}}function I(e){switch(e.kind){case 264:case 263:return!0;default:return!1}}function O(t){return I(t)||e.isExportDeclaration(t)}function L(t){return e.findAncestor(t.parent,(function(e){return w(e,e.parent)}))}function M(e){return e&&0!==l(e)?x(e):"(Missing)"}function R(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 160:return vt(t.expression)?e.escapeLeadingUnderscores(t.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}function B(t){switch(t.kind){case 108:return"this";case 80:case 79:return 0===l(t)?e.idText(t):x(t);case 159:return B(t.left)+"."+B(t.right);case 204:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?B(t.expression)+"."+B(t.name):e.Debug.assertNever(t.name);case 306:return B(t.left)+B(t.right);default:return e.Debug.assertNever(t)}}function j(e,t,r,n,i,a,o){var s=K(e,t);return gn(e,s.start,s.length,r,n,i,a,o)}function J(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length))}function V(e,t,r,n,i){return J(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function U(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function K(t,r){var n=r;switch(r.kind){case 300:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):U(t,i);case 252:case 201:case 255:case 224:case 256:case 259:case 258:case 294:case 254:case 211:case 167:case 170:case 171:case 257:case 165:case 164:case 266:n=r.name;break;case 212:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&233===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,_(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)}(t,r);case 287:case 288:var a=e.skipTrivia(t.text,r.pos),o=r.statements.length>0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return U(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=d(n),c=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function z(e){return 6===e.scriptKind}function G(t){return!!(2&e.getCombinedNodeFlags(t))}function W(e){return 206===e.kind&&100===e.expression.kind}function q(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function H(e){return 236===e.kind&&10===e.expression.kind}function Y(e){return!!(1048576&S(e))}function X(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||s(e,t)},e.optionsHaveModuleResolutionChanges=s,e.changesAffectingProgramStructure=function(t,r){return c(t,r,e.optionsAffectingProgramStructure)},e.optionsHaveChanges=c,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach((function(e,r){t.set(r,e)}))},e.usingSingleLineStringWriter=function(e){var t=o.getText();try{return e(o),o.getText()}finally{o.clear(),o.writeKeyword(t)}},e.getFullWidth=l,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=new e.Map),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=new e.Map),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&((r=e.packageId)===(n=t.packageId)||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName;return(r?t+"/"+r:t)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath},e.hasChangesInResolutions=function(t,r,n,i){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=function t(r){return function(r){524288&r.flags||((0!=(65536&r.flags)||e.forEachChild(r,t))&&(r.flags|=262144),r.flags|=524288)}(r),0!=(262144&r.flags)},e.getSourceFileOfNode=u,e.getSourceFileOfModule=function(e){return u(e.valueDeclaration||F(e))},e.isStatementWithLocals=function(e){switch(e.kind){case 233:case 261:case 240:case 241:case 242: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=u(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=_,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=d,e.nodeIsPresent=p,e.insertStatementsAfterStandardPrologue=function(e,t){return f(e,t,H)},e.insertStatementsAfterCustomPrologue=function(e,t){return f(e,t,m)},e.insertStatementAfterStandardPrologue=function(e,t){return g(e,t,H)},e.insertStatementAfterCustomPrologue=function(e,t){return g(e,t,m)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2<n&&47===t.charCodeAt(r+2)){var i=t.substring(r,n);return!!(e.fullTripleSlashReferencePathRegEx.test(i)||e.fullTripleSlashAMDReferencePathRegEx.test(i)||Q.test(i)||re.test(i))}return!1},e.isPinnedComment=y,e.createCommentDirectivesMap=function(t,r){var n=new e.Map(r.map((function(r){return[""+e.getLineAndCharacterOfPosition(t,r.range.end).line,r]}))),i=new e.Map;return{getUnusedExpectations:function(){return e.arrayFrom(n.entries()).filter((function(e){var t=e[0];return 0===e[1].type&&!i.get(t)})).map((function(e){return e[0],e[1]}))},markUsed:function(e){return!!n.has(""+e)&&(i.set(""+e,!0),!0)}}},e.getTokenPosOfNode=h,e.getNonDecoratorTokenPosOfNode=function(t,r){return d(t)||!t.decorators?h(t,r):e.skipTrivia((r||u(t)).text,t.decorators.end)},e.getSourceTextOfNodeFromSourceFile=v,e.isExportNamespaceAsDefaultDeclaration=function(t){return!!(e.isExportDeclaration(t)&&t.exportClause&&e.isNamespaceExport(t.exportClause)&&"default"===t.exportClause.name.escapedText)},e.getTextOfNodeFromSourceText=b,e.getTextOfNode=x,e.indexOfNode=function(t,r){return e.binarySearch(t,r,D,e.compareValues)},e.getEmitFlags=S,e.getScriptTargetFeatures=function(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},esnext:{NumberFormat:["formatToParts"]}}},(n=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}))[n.None=0]="None",n[n.NeverAsciiEscape=1]="NeverAsciiEscape",n[n.JsxAttributeEscape=2]="JsxAttributeEscape",n[n.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",n[n.AllowNumericSeparator=8]="AllowNumericSeparator",e.getLiteralText=function(t,r,n){var i;if(function(t,r){return!(kt(t)||!t.parent||4&r&&t.isUnterminated)&&(e.isNumericLiteral(t)&&512&t.numericLiteralFlags?!!(8&r):!e.isBigIntLiteral(t))}(t,n))return v(r,t);switch(t.kind){case 10:var a=2&n?Wt:1&n||16777216&S(t)?jt:Vt;return t.singleQuote?"'"+a(t.text,39)+"'":'"'+a(t.text,34)+'"';case 14:case 15:case 16:case 17:a=1&n||16777216&S(t)?jt:Vt;var o=null!==(i=t.rawText)&&void 0!==i?i:function(e){return e.replace(Pt,"\\${")}(a(t.text,96));switch(t.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break;case 8:case 9:return t.text;case 13:return 4&n&&t.isUnterminated?t.text+(92===t.text.charCodeAt(t.text.length-1)?" /":"/"):t.text}return e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")},e.getTextOfConstantValue=function(t){return e.isString(t)?'"'+Vt(t)+'"':""+t},e.makeIdentifierFromModuleName=function(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(t){return 0!=(3&e.getCombinedNodeFlags(t))||E(t)},e.isCatchClauseVariableDeclarationOrBindingElement=E,e.isAmbientModule=T,e.isModuleWithStringLiteralName=function(t){return e.isModuleDeclaration(t)&&10===t.name.kind},e.isNonGlobalAmbientModule=function(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)},e.isEffectiveModuleDeclaration=C,e.isShorthandAmbientModuleSymbol=function(e){return!!(t=e.valueDeclaration)&&259===t.kind&&!t.body;var t},e.isBlockScopedContainerTopLevel=function(t){return 300===t.kind||259===t.kind||e.isFunctionLikeOrClassStaticBlockDeclaration(t)},e.isGlobalScopeAugmentation=k,e.isExternalModuleAugmentation=A,e.isModuleAugmentationExternal=N,e.getNonAugmentationDeclaration=F,e.isEffectiveExternalModule=function(t,r){return e.isExternalModule(t)||r.isolatedModules||Dn(r)===e.ModuleKind.CommonJS&&!!t.commonJsModuleIndicator},e.isEffectiveStrictModeSourceFile=function(t,r){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(t.isDeclarationFile||!En(r,"alwaysStrict")&&!e.startsWithUseStrict(t.statements)&&(!e.isExternalModule(t)&&!r.isolatedModules||!(Dn(r)>=e.ModuleKind.ES2015)&&r.noImplicitUseStrict))},e.isBlockScope=w,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 333:case 340:case 318:return!0;default:return e.assertType(t),P(t)}},e.isDeclarationWithTypeParameterChildren=P,e.isAnyImportSyntax=I,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 264:case 263:case 235:case 255:case 254:case 259:case 257:case 256:case 258:return!0;default:return!1}},e.hasPossibleExternalModuleReference=function(t){return O(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||W(t)},e.isAnyImportOrReExport=O,e.getEnclosingBlockScopeContainer=L,e.forEachEnclosingBlockScopeContainer=function(e,t){for(var r=L(e);r;)t(r),r=L(r)},e.declarationNameToString=M,e.getNameFromIndexInfo=function(e){return e.declaration?M(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 160===e.kind&&!vt(e.expression)},e.getTextOfPropertyName=R,e.entityNameToString=B,e.createDiagnosticForNode=function(e,t,r,n,i,a){return j(u(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 gn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=j,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=u(e),i=K(n,e);return V(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=V,e.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=U,e.getErrorSpanForNode=K,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=z,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=G,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 206===e.kind&&106===e.expression.kind},e.isImportCall=W,e.isImportMeta=function(t){return e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=q,e.isPrologueDirective=H,e.isCustomPrologue=Y,e.isHoistedFunction=function(t){return Y(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return Y(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,X)},e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=162===t.kind||161===t.kind||211===t.kind||212===t.kind||210===t.kind||252===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Q=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var $,Z,ee,te,re=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function ne(t){if(175<=t.kind&&t.kind<=198)return!0;switch(t.kind){case 129:case 153:case 145:case 156:case 148:case 132:case 149:case 146:case 151:case 142:return!0;case 114:return 215!==t.parent.kind;case 226:return!Rr(t);case 161:return 193===t.parent.kind||188===t.parent.kind;case 79:(159===t.parent.kind&&t.parent.right===t||204===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||159===t.kind||204===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 159:case 204:case 108:var r=t.parent;if(179===r.kind)return!1;if(198===r.kind)return!r.isTypeOf;if(175<=r.kind&&r.kind<=198)return!0;switch(r.kind){case 226:return!Rr(r);case 161:case 339:return t===r.constraint;case 165:case 164:case 162:case 252:case 254:case 211:case 212:case 169:case 167:case 166:case 170:case 171:case 172:case 173:case 174:case 209:return t===r.type;case 206:case 207:return e.contains(r.typeArguments,t);case 208:return!1}}return!1}function ie(e){if(e)switch(e.kind){case 201:case 294:case 162:case 291:case 165:case 164:case 292:case 252:return!0}return!1}function ae(e){return 253===e.parent.kind&&235===e.parent.parent.kind}function oe(e,t,r){return e.properties.filter((function(e){if(291===e.kind){var n=R(e.name);return t===n||!!r&&r===n}return!1}))}function se(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function ce(t,r){var n=se(t);return n?oe(n,r):e.emptyArray}function le(t,r){for(e.Debug.assert(300!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 160:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 163:162===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 212:if(!r)continue;case 254:case 211:case 259:case 168:case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 172:case 173:case 174:case 258:case 300:return t}}}function ue(e){var t=e.kind;return(204===t||205===t)&&106===e.expression.kind}function _e(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 255:return!0;case 165:return 255===r.kind;case 170:case 171:case 167:return void 0!==t.body&&255===r.kind;case 162:return void 0!==r.body&&(169===r.kind||167===r.kind||171===r.kind)&&255===n.kind}return!1}function de(e,t,r){return void 0!==e.decorators&&_e(e,t,r)}function pe(e,t,r){return de(e,t,r)||fe(e,t)}function fe(t,r){switch(t.kind){case 255:return e.some(t.members,(function(e){return pe(e,t,r)}));case 167:case 171:case 169:return e.some(t.parameters,(function(e){return de(e,t,r)}));default:return!1}}function ge(e){var t=e.parent;return(278===t.kind||277===t.kind||279===t.kind)&&t.tagName===e}function me(t){switch(t.kind){case 106:case 104:case 110:case 95:case 13:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 227:case 209:case 228:case 210:case 211:case 224:case 212:case 215:case 213:case 214:case 217:case 218:case 219:case 220:case 223:case 221:case 225:case 276:case 277:case 280:case 222:case 216:case 229:return!0;case 159:for(;159===t.parent.kind;)t=t.parent;return 179===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ge(t);case 306:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 179===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ge(t);case 79:if(179===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ge(t))return!0;case 8:case 9:case 10:case 14:case 108:return ye(t);default:return!1}}function ye(e){var t=e.parent;switch(t.kind){case 252:case 162:case 165:case 164:case 294:case 291:case 201:return t.initializer===e;case 236:case 237:case 238:case 239:case 245:case 246:case 247:case 287:case 249:return t.expression===e;case 240:var r=t;return r.initializer===e&&253!==r.initializer.kind||r.condition===e||r.incrementor===e;case 241:case 242:var n=t;return n.initializer===e&&253!==n.initializer.kind||n.expression===e;case 209:case 227:case 231:case 160:return e===t.expression;case 163:case 286:case 285:case 293:return!0;case 226:return t.expression===e&&Rr(t);case 292:return t.objectAssignmentInitializer===e;default:return me(t)}}function he(e){for(;159===e.kind||79===e.kind;)e=e.parent;return 179===e.kind}function ve(e){return 263===e.kind&&275===e.moduleReference.kind}function be(e){return xe(e)}function xe(e){return!!e&&!!(131072&e.flags)}function De(e){return!!e&&!!(4194304&e.flags)}function Se(t,r){if(206!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function Ee(t){return 201===t.kind&&(t=t.parent.parent),e.isVariableDeclaration(t)&&!!t.initializer&&Se(rn(t.initializer),!0)}function Te(t){return e.isBinaryExpression(t)||tn(t)||e.isIdentifier(t)||e.isCallExpression(t)}function Ce(t){return xe(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Br(t.name)&&Ae(t.name,t.initializer.left)?t.initializer.right:t.initializer}function ke(t,r){if(e.isCallExpression(t)){var n=st(t.expression);return 211===n.kind||212===n.kind?t:void 0}return 211===t.kind||224===t.kind||212===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Ae(t,r){if(Et(t)&&Et(r))return Tt(t)===Tt(r);if(e.isIdentifier(t)&&Le(r)&&(108===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))){var n=Je(r);return e.isPrivateIdentifier(n)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Ae(t,n)}return!(!Le(t)||!Le(r))&&Ue(t)===Ue(r)&&Ae(t.expression,r.expression)}function Ne(e){for(;Mr(e,!0);)e=e.right;return e}function Fe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function we(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Pe(t){return(e.isPropertyAccessExpression(t)||Me(t))&&we(t.expression)&&"exports"===Ue(t)}function Ie(t){var r=function(t){if(e.isCallExpression(t)){if(!Oe(t))return 0;var r=t.arguments[0];return Fe(r)||Pe(r)?8:Re(r)&&"prototype"===Ue(r)?9:7}return 63!==t.operatorToken.kind||!tn(t.left)||(n=Ne(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text)?0:je(t.left.expression,!0)&&"prototype"===Ue(t.left)&&e.isObjectLiteralExpression(ze(t))?6:Ke(t.left);var n}(t);return 5===r||xe(t)?r:0}function Oe(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&vt(t.arguments[1])&&je(t.arguments[0],!0)}function Le(t){return e.isPropertyAccessExpression(t)||Me(t)}function Me(t){return e.isElementAccessExpression(t)&&vt(t.argumentExpression)}function Re(t,r){return e.isPropertyAccessExpression(t)&&(!r&&108===t.expression.kind||e.isIdentifier(t.name)&&je(t.expression,!0))||Be(t,r)}function Be(e,t){return Me(e)&&(!t&&108===e.expression.kind||Br(e.expression)||Re(e.expression,!0))}function je(e,t){return Br(e)||Re(e,t)}function Je(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Ve(t){if(e.isPropertyAccessExpression(t))return t.name;var r=st(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Ue(t){var r=Ve(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function Ke(t){if(108===t.expression.kind)return 4;if(Pe(t))return 2;if(je(t.expression,!0)){if(Jr(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===Ue(r))&&Re(t))return 1;if(je(t,!0)||e.isElementAccessExpression(t)&&Dt(t))return 5}return 0}function ze(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Ge(t){switch(t.parent.kind){case 264:case 270:return t.parent;case 275:return t.parent.parent;case 206:return W(t.parent)||Se(t.parent,!1)?t.parent:void 0;case 194:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function We(t){switch(t.kind){case 264:case 270:return t.moduleSpecifier;case 263:return 275===t.moduleReference.kind?t.moduleReference.expression:void 0;case 198:return q(t)?t.argument.literal:void 0;case 206:return t.arguments[0];case 259:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function qe(e){return 340===e.kind||333===e.kind||334===e.kind}function He(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Ie(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function Ye(e){switch(e.kind){case 235:var t=Xe(e);return t&&t.initializer;case 165:case 291:return e.initializer}}function Xe(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function Qe(t){return e.isModuleDeclaration(t)&&t.body&&259===t.body.kind?t.body:void 0}function $e(t){var r=t.parent;return 291===r.kind||269===r.kind||165===r.kind||236===r.kind&&204===t.kind||245===r.kind||Qe(r)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?r:r.parent&&(Xe(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(Xe(r.parent.parent)||Ye(r.parent.parent)===t||He(r.parent.parent))?r.parent.parent:void 0}function Ze(t){var r=et(t);return r&&e.isFunctionLike(r)?r:void 0}function et(t){var r=tt(t);if(r)return He(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Ne(t.expression):void 0}(r)||Ye(r)||Xe(r)||Qe(r)||r}function tt(t){var r=rt(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function rt(t){return e.findAncestor(t.parent,e.isJSDoc)}function nt(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&313===r.kind}function it(e){for(var t=e.parent;;){switch(t.kind){case 219:var r=t.operatorToken.kind;return Ir(r)&&t.left===e?63===r||Pr(r)?1:2:0;case 217:case 218:var n=t.operator;return 45===n||46===n?2:0;case 241:case 242:return t.initializer===e?1:0;case 210:case 202:case 223:case 228:e=t;break;case 293:e=t.parent;break;case 292:if(t.name!==e)return 0;e=t.parent;break;case 291:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function at(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function ot(e){return at(e,210)}function st(t){return e.skipOuterExpressions(t,1)}function ct(t){return Br(t)||e.isClassExpression(t)}function lt(e){return ct(ut(e))}function ut(t){return e.isExportAssignment(t)?t.expression:t.right}function _t(t){var r=dt(t);if(r&&xe(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function dt(e){var t=gt(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function pt(t){if(xe(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=gt(t.heritageClauses,117);return null==r?void 0:r.types}function ft(e){var t=gt(e.heritageClauses,94);return t?t.types:void 0}function gt(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 mt(e){return 81<=e&&e<=158}function yt(e){return 126<=e&&e<=158}function ht(e){return mt(e)&&!yt(e)}function vt(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}function bt(t){return e.isPrefixUnaryExpression(t)&&(39===t.operator||40===t.operator)&&e.isNumericLiteral(t.operand)}function xt(t){var r=e.getNameOfDeclaration(t);return!!r&&Dt(r)}function Dt(t){if(160!==t.kind&&205!==t.kind)return!1;var r=e.isElementAccessExpression(t)?st(t.argumentExpression):t.expression;return!vt(r)&&!bt(r)}function St(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 160:var r=t.expression;return vt(r)?e.escapeLeadingUnderscores(r.text):bt(r)?40===r.operator?e.tokenToString(r.operator)+r.operand.text:r.operand.text:void 0;default:return e.Debug.assertNever(t)}}function Et(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function Tt(t){return e.isMemberName(t)?e.idText(t):t.text}function Ct(e){for(;201===e.kind;)e=e.parent.parent;return e}function kt(e){return ai(e.pos)||ai(e.end)}function At(e,t,r){switch(e){case 207:return r?0:1;case 217:case 214:case 215:case 213:case 216:case 220:case 222:return 1;case 219:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function Nt(e){return 219===e.kind?e.operatorToken.kind:217===e.kind||218===e.kind?e.operator:e.kind}function Ft(e,t,r){switch(e){case 346:return 0;case 223:return 1;case 222:return 2;case 220:return 4;case 219:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return wt(t)}case 209:case 228:case 217:case 214:case 215:case 213:case 216:return 16;case 218:return 17;case 206:return 18;case 207:return r?19:18;case 208:case 204:case 205:case 229:return 19;case 227:return 11;case 108:case 106:case 79:case 104:case 110:case 95:case 8:case 9:case 10:case 202:case 203:case 211:case 212:case 224:case 13:case 14:case 221:case 210:case 225:case 276:case 277:case 280:return 20;default:return-1}}function wt(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.isPartOfTypeNode=ne,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 245:return r(n);case 261:case 233:case 237:case 238:case 239:case 240:case 241:case 242:case 246:case 247:case 287:case 288:case 248:case 250:case 290:return e.forEachChild(n,t)}}(t)},e.forEachYieldExpression=function(t,r){return function t(n){switch(n.kind){case 222:r(n);var i=n.expression;return void(i&&t(i));case 258:case 256:case 259:case 257:return;default:if(e.isFunctionLike(n)){if(n.name&&160===n.name.kind)return void t(n.name.expression)}else ne(n)||e.forEachChild(n,t)}}(t)},e.getRestParameterElementType=function(t){return t&&181===t.kind?t.elementType:t&&176===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 256:case 255:case 224:case 180:return e.members;case 203:return e.properties}},e.isVariableLike=ie,e.isVariableLikeOrAccessor=function(t){return ie(t)||e.isAccessor(t)},e.isVariableDeclarationInVariableStatement=ae,e.isValidESSymbolDeclaration=function(t){return e.isVariableDeclaration(t)?G(t)&&e.isIdentifier(t.name)&&ae(t):e.isPropertyDeclaration(t)?Dr(t)&&xr(t):e.isPropertySignature(t)&&Dr(t)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 167:case 166:case 169:case 170:case 171:case 254:case 211:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),248!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(t){return t&&233===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&167===e.kind&&203===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 167===e.kind&&(203===e.parent.kind||224===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=oe,e.getPropertyArrayElementValue=function(t,r,n){return e.firstDefined(oe(t,r),(function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(function(t){return e.isStringLiteral(t)&&t.text===n})):void 0}))},e.getTsConfigObjectLiteralExpression=se,e.getTsConfigPropArrayElementValue=function(t,r,n){return e.firstDefined(ce(t,r),(function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(function(t){return e.isStringLiteral(t)&&t.text===n})):void 0}))},e.getTsConfigPropArray=ce,e.getContainingFunction=function(t){return e.findAncestor(t.parent,e.isFunctionLike)},e.getContainingFunctionDeclaration=function(t){return e.findAncestor(t.parent,e.isFunctionLikeDeclaration)},e.getContainingClass=function(t){return e.findAncestor(t.parent,e.isClassLike)},e.getContainingClassStaticBlock=function(t){return e.findAncestor(t.parent,(function(t){return e.isClassLike(t)||e.isFunctionLike(t)?"quit":e.isClassStaticBlockDeclaration(t)}))},e.getContainingFunctionOrClassStaticBlock=function(t){return e.findAncestor(t.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)},e.getThisContainer=le,e.isInTopLevelContext=function(t){e.isIdentifier(t)&&(e.isClassDeclaration(t.parent)||e.isFunctionDeclaration(t.parent))&&t.parent.name===t&&(t=t.parent);var r=le(t,!0);return e.isSourceFile(r)},e.getNewTargetContainer=function(e){var t=le(e,!1);if(t)switch(t.kind){case 169:case 254:case 211:return t}},e.getSuperContainer=function(t,r){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 160:t=t.parent;break;case 254:case 211:case 212:if(!r)continue;case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 168:return t;case 163:162===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(211===e.kind||212===e.kind){for(var t=e,r=e.parent;210===r.kind;)t=r,r=r.parent;if(206===r.kind&&r.expression===t)return r}},e.isSuperOrSuperProperty=function(e){return 106===e.kind||ue(e)},e.isSuperProperty=ue,e.isThisProperty=function(e){var t=e.kind;return(204===t||205===t)&&108===e.expression.kind},e.isThisInitializedDeclaration=function(t){var r;return!!t&&e.isVariableDeclaration(t)&&108===(null===(r=t.initializer)||void 0===r?void 0:r.kind)},e.isThisInitializedObjectBindingExpression=function(t){return!!t&&(e.isShorthandPropertyAssignment(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&63===t.parent.parent.operatorToken.kind&&108===t.parent.parent.right.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 176:return e.typeName;case 226:return Br(e.expression)?e.expression:void 0;case 79:case 159:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 208:return e.tag;case 278:case 277:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=_e,e.nodeIsDecorated=de,e.nodeOrChildIsDecorated=pe,e.childIsDecorated=fe,e.classOrConstructorParameterIsDecorated=function(e){if(de(e))return!0;var t=sr(e);return!!t&&fe(t,e)},e.isJSXTagName=ge,e.isExpressionNode=me,e.isInExpressionContext=ye,e.isPartOfTypeQuery=he,e.isNamespaceReexportDeclaration=function(t){return e.isNamespaceExport(t)&&!!t.parent.moduleSpecifier},e.isExternalModuleImportEqualsDeclaration=ve,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(ve(t)),t.moduleReference.expression},e.getExternalModuleRequireArgument=function(e){return Ee(e)&&rn(e.initializer).arguments[0]},e.isInternalModuleImportEqualsDeclaration=function(e){return 263===e.kind&&275!==e.moduleReference.kind},e.isSourceFileJS=be,e.isSourceFileNotJS=function(e){return!xe(e)},e.isInJSFile=xe,e.isInJsonFile=function(e){return!!e&&!!(33554432&e.flags)},e.isSourceFileNotJson=function(e){return!z(e)},e.isInJSDoc=De,e.isJSDocIndexSignature=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(148===t.typeArguments[0].kind||145===t.typeArguments[0].kind)},e.isRequireCall=Se,e.isRequireVariableDeclaration=Ee,e.isRequireVariableStatement=function(t){return e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&e.every(t.declarationList.declarations,(function(e){return Ee(e)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===v(t,e).charCodeAt(0)},e.isAssignmentDeclaration=Te,e.getEffectiveInitializer=Ce,e.getDeclaredExpandoInitializer=function(e){var t=Ce(e);return t&&ke(t,Jr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=Jr(t.parent.left);return ke(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&ke(r.right,n);if(i&&Ae(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Oe(t)){var n=function(t,r){return e.forEach(t.properties,(function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&ke(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=ke,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&ke(t.right,Jr(r))&&Br(r)&&Ae(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(63===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=Ae,e.getRightMostAssignedExpression=Ne,e.isExportsIdentifier=Fe,e.isModuleIdentifier=we,e.isModuleExportsAccessExpression=Pe,e.getAssignmentDeclarationKind=Ie,e.isBindableObjectDefinePropertyCall=Oe,e.isLiteralLikeAccess=Le,e.isLiteralLikeElementAccess=Me,e.isBindableStaticAccessExpression=Re,e.isBindableStaticElementAccessExpression=Be,e.isBindableStaticNameExpression=je,e.getNameOrArgument=Je,e.getElementOrPropertyAccessArgumentExpressionOrName=Ve,e.getElementOrPropertyAccessName=Ue,e.getAssignmentDeclarationPropertyAccessKind=Ke,e.getInitializerOfBinaryExpression=ze,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Ie(t)},e.isSpecialPropertyDeclaration=function(t){return xe(t)&&t.parent&&236===t.parent.kind&&(!e.isElementAccessExpression(t)||Me(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&Te(r)&&!Te(t)||r.kind!==t.kind&&C(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 254===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.tryGetModuleSpecifierFromDeclaration=function(t){var r,n,i;switch(t.kind){case 252:return t.initializer.arguments[0].text;case 264:return null===(r=e.tryCast(t.moduleSpecifier,e.isStringLiteralLike))||void 0===r?void 0:r.text;case 263:return null===(i=e.tryCast(null===(n=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===n?void 0:n.expression,e.isStringLiteralLike))||void 0===i?void 0:i.text;default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=function(t){return Ge(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Ge,e.getExternalModuleName=We,e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 264:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 263:return t;case 270:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 264===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,r){var n;return t.name&&(n=r(t))||t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r))?n:void 0},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 162:case 167:case 166:case 292:case 291:case 165:case 164:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=qe,e.isTypeAlias=function(t){return qe(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ye,e.getSingleVariableOfVariableStatement=Xe,e.getJSDocCommentsAndTags=function(t,r){var n;ie(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.append(n,e.last(t.initializer.jsDoc)));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.append(n,e.last(i.jsDoc))),162===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(161===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=$e(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=$e,e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=Ze(t);if(n){var i=e.find(n.parameters,(function(e){return 79===e.name.kind&&e.name.escapedText===r}));return i&&i.symbol}}},e.getHostSignatureFromJSDoc=Ze,e.getEffectiveJSDocHost=et,e.getJSDocHost=tt,e.getJSDocRoot=rt,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(function(e){return e.name.escapedText===r}))},e.hasRestParameter=function(t){var r=e.lastOrUndefined(t.parameters);return!!r&&nt(r)},e.isRestParameter=nt,e.hasTypeArguments=function(e){return!!e.typeArguments},(te=e.AssignmentKind||(e.AssignmentKind={}))[te.None=0]="None",te[te.Definite=1]="Definite",te[te.Compound=2]="Compound",e.getAssignmentTargetKind=it,e.isAssignmentTarget=function(e){return 0!==it(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 233:case 235:case 246:case 237:case 247:case 261:case 287:case 288:case 248:case 240:case 241:case 242:case 238:case 239:case 250:case 290:return!0}return!1},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 at(e,189)},e.walkUpParenthesizedExpressions=ot,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&189===e.kind;)t=e,e=e.parent;return[t,e]},e.skipParentheses=st,e.isDeleteTarget=function(e){return(204===e.kind||205===e.kind)&&(e=ot(e.parent))&&213===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 79:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Ie(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return vt(t)&&160===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 165:case 164:case 167:case 166:case 170:case 171:case 294:case 291:case 204:return t.name===e;case 159:return t.right===e;case 201:case 268:return t.propertyName===e;case 273:case 283:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 263===t.kind||262===t.kind||265===t.kind&&!!t.name||266===t.kind||272===t.kind||268===t.kind||273===t.kind||269===t.kind&&lt(t)||e.isBinaryExpression(t)&&2===Ie(t)&&lt(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&ct(t.parent.right)||292===t.kind||291===t.kind&&ct(t.initializer)},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 265:case 268:case 266:case 273:case 269:case 263:return t.parent;case 159:do{t=t.parent}while(159===t.parent.kind);return e(t)}},e.isAliasableExpression=ct,e.exportAssignmentIsAlias=lt,e.getExportAssignmentExpression=ut,e.getPropertyAssignmentAliasLikeExpression=function(e){return 292===e.kind?e.name:291===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=_t,e.getClassExtendsHeritageElement=dt,e.getEffectiveImplementsTypeNodes=pt,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?ft(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(_t(t)),pt(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=ft,e.getHeritageClause=gt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=mt,e.isContextualKeyword=yt,e.isNonContextualKeyword=ht,e.isFutureReservedKeyword=function(e){return 117<=e&&e<=125},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&ht(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&mt(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!yt(t)},e.isTrivia=function(e){return 2<=e&&e<=7},(ee=e.FunctionFlags||(e.FunctionFlags={}))[ee.Normal=0]="Normal",ee[ee.Generator=1]="Generator",ee[ee.Async=2]="Async",ee[ee.Invalid=4]="Invalid",ee[ee.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 254:case 211:case 167:e.asteriskToken&&(t|=1);case 212:vr(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 254:case 211:case 212:case 167:return void 0!==e.body&&void 0===e.asteriskToken&&vr(e,256)}return!1},e.isStringOrNumericLiteralLike=vt,e.isSignedNumericLiteral=bt,e.hasDynamicName=xt,e.isDynamicName=Dt,e.getPropertyNameForPropertyNameNode=St,e.isPropertyNameLiteral=Et,e.getTextOfIdentifierOrLiteral=Tt,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@"+e.getSymbolId(t)+"@"+t.escapedName},e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#"+e.getSymbolId(t)+"@"+r},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isPrivateIdentifierSymbol=function(t){return e.startsWith(t.escapedName,"__#")},e.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 162===Ct(e).kind},e.getRootDeclaration=Ct,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 169===t||211===t||254===t||212===t||167===t||170===t||171===t||259===t||300===t},e.nodeIsSynthesized=kt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},(Z=e.Associativity||(e.Associativity={}))[Z.Left=0]="Left",Z[Z.Right=1]="Right",e.getExpressionAssociativity=function(e){var t=Nt(e),r=207===e.kind&&void 0!==e.arguments;return At(e.kind,t,r)},e.getOperatorAssociativity=At,e.getExpressionPrecedence=function(e){var t=Nt(e),r=207===e.kind&&void 0!==e.arguments;return Ft(e.kind,t,r)},e.getOperator=Nt,($=e.OperatorPrecedence||(e.OperatorPrecedence={}))[$.Comma=0]="Comma",$[$.Spread=1]="Spread",$[$.Yield=2]="Yield",$[$.Assignment=3]="Assignment",$[$.Conditional=4]="Conditional",$[$.Coalesce=4]="Coalesce",$[$.LogicalOR=5]="LogicalOR",$[$.LogicalAND=6]="LogicalAND",$[$.BitwiseOR=7]="BitwiseOR",$[$.BitwiseXOR=8]="BitwiseXOR",$[$.BitwiseAND=9]="BitwiseAND",$[$.Equality=10]="Equality",$[$.Relational=11]="Relational",$[$.Shift=12]="Shift",$[$.Additive=13]="Additive",$[$.Multiplicative=14]="Multiplicative",$[$.Exponentiation=15]="Exponentiation",$[$.Unary=16]="Unary",$[$.Update=17]="Update",$[$.LeftHandSide=18]="LeftHandSide",$[$.Member=19]="Member",$[$.Primary=20]="Primary",$[$.Highest=20]="Highest",$[$.Lowest=0]="Lowest",$[$.Invalid=-1]="Invalid",e.getOperatorPrecedence=Ft,e.getBinaryOperatorPrecedence=wt,e.getSemanticJsxChildren=function(t){return e.filter(t,(function(e){switch(e.kind){case 286:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var t=[],r=[],n=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t),e.insertSorted(o,a,hn)},lookup:function(r){var i;if(i=r.file?n.get(r.file.fileName):t){var a=e.binarySearch(i,r,e.identity,vn);return a>=0?i[a]:void 0}},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,(function(e){return n.get(e)}));return t.length?(a.unshift.apply(a,t),a):a}}};var Pt=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(function(e){return!!e.literal.templateFlags})))};var It=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ot=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Lt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Mt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function Rt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Bt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Mt.get(e)||Rt(e.charCodeAt(0))}function jt(e,t){var r=96===t?Lt:39===t?Ot:It;return e.replace(r,Bt)}e.escapeString=jt;var Jt=/[^\u0000-\u007F]/g;function Vt(e,t){return e=jt(e,t),Jt.test(e)?e.replace(Jt,(function(e){return Rt(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Vt;var Ut=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Kt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,zt=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function Gt(e){return 0===e.charCodeAt(0)?"&#0;":zt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Wt(e,t){var r=39===t?Kt:Ut;return e.replace(r,Gt)}e.escapeJsxAttributeString=Wt,e.stripQuotes=function(e){var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var qt=["","    "];function Ht(e){for(var t=qt[1],r=qt.length;r<=e;r++)qt.push(qt[r-1]+t);return qt[e]}function Yt(){return qt[1].length}function Xt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Qt(e,t,r){return t.moduleName||Zt(e,t.fileName,r&&r.fileName)}function $t(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function Zt(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=ti(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function er(e,t,r,n,i){var a=t.declarationDir||t.outDir;return ti(a?ir(e,a,r,n,i):e)+".d.ts"}function tr(e){return e.outFile||e.out}function rr(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&be(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(z(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function nr(e,t,r){return ir(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function ir(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function ar(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(ar(e.getDirectoryPath(t),r,n),r(t))}function or(t,r){return e.computeLineOfPosition(t,r)}function sr(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&p(t.body)}))}function cr(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&lr(e.parameters[0]);return e.parameters[t?1:0]}}function lr(e){return ur(e.name)}function ur(e){return!!e&&79===e.kind&&_r(e)}function _r(e){return 108===e.originalKeywordKind}function dr(t){if(xe(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!xe(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function pr(e,t,r,n){fr(e,t,r.pos,n)}function fr(e,t,r,n){n&&n.length&&r!==n[0].pos&&or(e,r)!==or(e,n[0].pos)&&t.writeLine()}function gr(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,l=0,u=n;l<u.length;l++){var _=u[l];c&&(r.writeSpace(" "),c=!1),s(e,t,r,_.pos,_.end,o),_.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function mr(t,r,n,i,a,o){var s=Math.min(r,o-1),c=e.trimString(t.substring(a,s));c?(n.writeComment(c),s!==r&&n.writeLine()):n.rawWrite(i)}function yr(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=Yt()-i%Yt():i++;return i}function hr(e,t){return!!Sr(e,t)}function vr(e,t){return!!Er(e,t)}function br(t){return e.isClassElement(t)&&xr(t)||e.isClassStaticBlockDeclaration(t)}function xr(e){return vr(e,32)}function Dr(e){return hr(e,64)}function Sr(e,t){return Cr(e)&t}function Er(e,t){return kr(e)&t}function Tr(e,t,r){return e.kind>=0&&e.kind<=158?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Nr(e)),!t||4096&e.modifierFlagsCache||!r&&!xe(e)||!e.parent||(e.modifierFlagsCache|=4096|Ar(e)),-536875009&e.modifierFlagsCache)}function Cr(e){return Tr(e,!0)}function kr(e){return Tr(e,!1)}function Ar(t){var r=0;return t.parent&&!e.isParameter(t)&&(xe(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64),e.getJSDocOverrideTagNoCache(t)&&(r|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function Nr(e){var t=Fr(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Fr(e){var t=0;if(e)for(var r=0,n=e;r<n.length;r++)t|=wr(n[r].kind);return t}function wr(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 134:return 2;case 85:return 2048;case 88:return 512;case 130:return 256;case 143:return 64;case 157:return 16384}return 0}function Pr(e){return 75===e||76===e||77===e}function Ir(e){return e>=63&&e<=78}function Or(e){var t=Lr(e);return t&&!t.isImplements?t.class:void 0}function Lr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:117===t.parent.token}:void 0}function Mr(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:Ir(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Rr(e){return void 0!==Or(e)}function Br(e){return 79===e.kind||jr(e)}function jr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Br(t.expression)}function Jr(e){return Re(e)&&"prototype"===Ue(e)}e.getIndentString=Ht,e.getIndentSize=Yt,e.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function l(e){e&&e.length&&(i&&(e=Ht(n)+e,i=!1),r+=e,c(e))}function u(e){e&&(s=!1),l(e)}function _(){r="",n=0,i=!0,a=0,o=0,s=!1}return _(),{write:u,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*Yt():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:_,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,t){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return a(a({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=Xt,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(Xt(t))},e.getResolvedExternalModuleName=Qt,e.getExternalModuleNameFromDeclaration=function(t,r,n){var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=We(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==$t(t,i.path).indexOf($t(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return Qt(t,i)}},e.getExternalModuleNameFromPath=Zt,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?ti(nr(e,t,n.outDir)):ti(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return er(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=er,e.outFile=tr,e.getPathsBasePath=function(t,r){var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(tr(i)){var a=Dn(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&rr(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return rr(e,t,n)}))},e.sourceFileMayBeEmitted=rr,e.getSourceFilePathInNewDir=nr,e.getSourceFilePathInNewDirWorker=ir,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,(function(t){r.add(mn(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){ar(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=or,e.getFirstConstructorWithBody=sr,e.getSetAccessorValueParameter=cr,e.getSetAccessorTypeAnnotationNode=function(e){var t=cr(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(lr(r))return r}},e.parameterIsThisKeyword=lr,e.isThisIdentifier=ur,e.isThisInTypeQuery=function(t){if(!ur(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 179===t.parent.kind},e.identifierIsThisKeyword=_r,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return xt(r)?(n=r,170===r.kind?a=r:171===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&br(t)===br(r)&&St(t.name)===St(r.name)&&(n?i||(i=t):n=t,170!==t.kind||a||(a=t),171!==t.kind||o||(o=t))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=dr,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(xe(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),(function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(315===t.parent.kind&&t.parent.tags.some(qe))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=cr(e);return t&&dr(t)},e.emitNewLineBeforeLeadingComments=pr,e.emitNewLineBeforeLeadingCommentsOfPosition=fr,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&or(e,r)!==or(e,n)&&t.writeLine()},e.emitComments=gr,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(function(e){return y(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var u=[],_=void 0,d=0,p=c;d<p.length;d++){var f=p[d];if(_){var g=or(r,_.end);if(or(r,f.pos)>=g+2)break}u.push(f),_=f}u.length&&(g=or(r,e.last(u).end),or(r,e.skipTrivia(t,a.pos))>=g+2&&(pr(r,n,a,c),gr(t,r,n,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end}))}return l},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,l=void 0,u=i,_=s.line;u<a;_++){var d=_+1===c?t.length+1:r[_+1];if(u!==i){void 0===l&&(l=yr(t,r[s.line],i));var p=n.getIndent()*Yt()-l+yr(t,u,d);if(p>0){var f=p%Yt(),g=Ht((p-f)/Yt());for(n.rawWrite(g);f;)n.rawWrite(" "),f--}else n.rawWrite("")}mr(t,a,n,o,u,d),u=d}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==Cr(e)},e.hasSyntacticModifiers=function(e){return 0!==kr(e)},e.hasEffectiveModifier=hr,e.hasSyntacticModifier=vr,e.isStatic=br,e.hasStaticModifier=xr,e.hasOverrideModifier=function(e){return hr(e,16384)},e.hasAbstractModifier=function(e){return vr(e,128)},e.hasAmbientModifier=function(e){return vr(e,2)},e.hasEffectiveReadonlyModifier=Dr,e.getSelectedEffectiveModifierFlags=Sr,e.getSelectedSyntacticModifierFlags=Er,e.getEffectiveModifierFlags=Cr,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return Tr(e,!0,!0)},e.getSyntacticModifierFlags=kr,e.getEffectiveModifierFlagsNoCache=function(e){return Nr(e)|Ar(e)},e.getSyntacticModifierFlagsNoCache=Nr,e.modifiersToFlags=Fr,e.modifierToFlag=wr,e.createModifiers=function(t){return t?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(t)):void 0},e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Pr,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Pr(e.operatorToken.kind)},e.isAssignmentOperator=Ir,e.tryGetClassExtendingExpressionWithTypeArguments=Or,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Lr,e.isAssignmentExpression=Mr,e.isLeftHandSideOfAssignment=function(e){return Mr(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Mr(e,!0)){var t=e.left.kind;return 203===t||202===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Rr,e.isEntityNameExpression=Br,e.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 159:do{e=e.left}while(79!==e.kind);return e;case 204:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||108===t.kind||106===t.kind||229===t.kind||204===t.kind&&e(t.expression)||210===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=jr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+B(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+St(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=Jr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 159===e.parent.kind&&e.parent.right===e||204===e.parent.kind&&e.parent.name===e},e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t},e.isEmptyObjectLiteral=function(e){return 203===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 202===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&vr(t.declarations[0],512)}(t)&&t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(i.localSymbol)return i.localSymbol}},e.tryExtractTSExtension=function(t){return e.find(e.supportedTSExtensionsForExtractExtension,(function(r){return e.fileExtensionIs(t,r)}))};var Vr,Ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Kr(t){for(var r,n,i,a,o="",s=function(t){for(var r=[],n=t.length,i=0;i<n;i++){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(a>>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,l=s.length;c<l;)r=s[c]>>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=l?i=a=64:c+2>=l&&(a=64),o+=Ur.charAt(r)+Ur.charAt(n)+Ur.charAt(i)+Ur.charAt(a),c+=3;return o}function zr(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function Gr(e,t){return zr(t,e.end)}function Wr(e){return e.decorators&&e.decorators.length>0?Gr(e,e.decorators.end):e}function qr(e,t,r){return Hr(Yr(e,r,!1),t.end,r)}function Hr(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function Yr(t,r,n){return ai(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function Xr(e){return void 0!==e.initializer}function Qr(e){return 33554432&e.flags?e.checkFlags:0}function $r(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 210:case 202:return $r(r);case 218:case 217:var n=r.operator;return 45===n||46===n?c():0;case 219:var i=r,a=i.left,o=i.operatorToken;return a===t&&Ir(o.kind)?63===o.kind?1:c():0;case 204:return r.name!==t?0:$r(r);case 291:var s=$r(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 292:return t===r.objectAssignmentInitializer?0:$r(r.parent);default:return 0}function c(){return r.parent&&236===ot(r.parent).kind?1:2}}function Zr(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach((function(r,a){var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)}))}function en(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function tn(e){return 204===e.kind||205===e.kind}function rn(e){for(;tn(e);)e=e.expression;return e}function nn(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 an(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function on(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function sn(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 cn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function ln(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function un(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function _n(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function dn(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function pn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function fn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o<s.length;o++){var c=s[o];pn(c)&&c.fileName===n?(e.Debug.assertLessThanOrEqual(c.start,i),e.Debug.assertLessThanOrEqual(c.start+c.length,i),a.relatedInformation.push(fn(c,r))):a.relatedInformation.push(c)}}return a}function gn(e,t,r,n){J(e,t,r);var i=dn(n);return arguments.length>4&&(i=_n(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function mn(e){var t=dn(e);return arguments.length>1&&(t=_n(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function yn(e){return e.file?e.file.path:void 0}function hn(t,r){return vn(t,r)||function(t,r){return t.relatedInformation||r.relatedInformation?t.relatedInformation&&r.relatedInformation?e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,(function(e,t){return hn(e,r.relatedInformation[t])}))||0:t.relatedInformation?-1:1:0}(t,r)||0}function vn(t,r){return e.compareStringsCaseSensitive(yn(t),yn(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||bn(t.messageText,r.messageText)||0}function bn(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;a<i;a++)if(n=bn(t.next[a],r.next[a]))return n;return t.next.length<r.next.length?-1:t.next.length>r.next.length?1:0}function xn(e){return e.target||0}function Dn(t){return"number"==typeof t.module?t.module:xn(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Sn(e){return!(!e.declaration&&!e.composite)}function En(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Tn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Cn(e,t){return t.strictFlag?En(e,t.name):e[t.name]}function kn(t,r,n,i){for(var a=e.getPathComponents(e.getNormalizedAbsolutePath(t,n)),o=e.getPathComponents(e.getNormalizedAbsolutePath(r,n)),s=!1;!An(a[a.length-2],i)&&!An(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]:void 0}function An(t,r){return"node_modules"===r(t)||e.startsWith(t,"@")}e.convertToBase64=Kr,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Kr(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i<r&&t.charCodeAt(i)!==Ur.charCodeAt(64);){var a=Ur.indexOf(t[i]),o=Ur.indexOf(t[i+1]),s=Ur.indexOf(t[i+2]),c=Ur.indexOf(t[i+3]),l=(63&a)<<2|o>>4&3,u=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===u&&0!==s?n.push(l):0===_&&0!==c?n.push(l,u):n.push(l,u,_),i+=4}return function(e){for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t}(n)},e.readJson=function(t,r){try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);return i.error?{}:i.config}catch(e){return{}}},e.directoryProbablyExists=function(e,t){return!t.directoryExists||t.directoryExists(e)},e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=zr,e.moveRangeEnd=function(e,t){return zr(e.pos,t)},e.moveRangePos=Gr,e.moveRangePastDecorators=Wr,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?Gr(e,e.modifiers.end):Wr(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return zr(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return qr(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return Hr(Yr(e,r,!1),Yr(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return Hr(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=qr,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Hr(e.end,Yr(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=Yr(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=function(t,r,n){return e.getLinesBetweenPositions(n,t.end,r.end)},e.isNodeArrayMultiLine=function(e,t){return!Hr(e.pos,e.end,t)},e.positionsAreOnSameLine=Hr,e.getStartPositionOfRange=Yr,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i),o=function(t,r,n){for(void 0===r&&(r=0);t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t}(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 258:case 259:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,Xr)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=Qr,e.getDeclarationModifierFlagsFromSymbol=function(t,r){if(void 0===r&&(r=!1),t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,(function(e){return 171===e.kind}))||t.valueDeclaration,i=e.getCombinedModifierFlags(n);return t.parent&&32&t.parent.flags?i:-29&i}if(6&Qr(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===$r(e)},e.isWriteAccess=function(e){return 0!==$r(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Vr||(Vr={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=Zr,e.mutateMap=function(e,t,r){Zr(e,t,r);var n=r.createNewValue;t.forEach((function(t,r){e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var t=en(e);return!!t&&vr(t,128)}return!1},e.getClassLikeDeclarationOfSymbol=en,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,r){return!!e.forEachAncestorDirectory(t,(function(e){return!!r(e)||void 0}))},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:x(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){p(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(p(e[t])){r=e[t];break}})),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=175&&e<=198||129===e||153===e||145===e||156===e||146===e||132===e||148===e||149===e||114===e||151===e||142===e||226===e||307===e||308===e||309===e||310===e||311===e||312===e||313===e},e.isAccessExpression=tn,e.getNameOfAccessExpression=function(t){return 204===t.kind?t.name:(e.Debug.assert(205===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 267===e.kind||271===e.kind},e.getLeftmostAccessExpression=rn,e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 218:e=e.operand;continue;case 219:e=e.left;continue;case 220:e=e.condition;continue;case 208:e=e.tag;continue;case 206:if(t)return e;case 227:case 205:case 204:case 228:case 345:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return sn},getTokenConstructor:function(){return cn},getIdentifierConstructor:function(){return ln},getPrivateIdentifierConstructor:function(){return sn},getSourceFileConstructor:function(){return sn},getSymbolConstructor:function(){return nn},getTypeConstructor:function(){return an},getSignatureConstructor:function(){return on},getSourceMapSourceConstructor:function(){return un}},e.setObjectAllocator=function(t){e.objectAllocator=t},e.formatStringFromArgs=_n,e.setLocalizedDiagnosticMessages=function(t){e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=dn,e.createDetachedDiagnostic=function(e,t,r,n){J(void 0,t,r);var i=dn(n);return arguments.length>4&&(i=_n(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];r.push(fn(a,t))}return r},e.createFileDiagnostic=gn,e.formatMessage=function(e,t){var r=dn(t);return arguments.length>2&&(r=_n(r,arguments,2)),r},e.createCompilerDiagnostic=mn,e.createCompilerDiagnosticFromMessageChain=function(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}},e.chainDiagnosticMessages=function(e,t){var r=dn(t);return arguments.length>2&&(r=_n(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=hn,e.compareDiagnosticsSkipRelatedInformation=vn,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=xn,e.getEmitModuleKind=Dn,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=Dn(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(Dn(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!Sn(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=Dn(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=Sn,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=En,e.getAllowJSCompilerOption=Tn,e.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?99===e.target:e.useDefineForClassFields},e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return c(r,t,e.semanticDiagnosticsOptionDeclarations)},e.compilerOptionsAffectEmit=function(t,r){return c(r,t,e.affectsEmitOptionDeclarations)},e.getCompilerOptionValue=Cn,e.getJSXTransformEnabled=function(e){var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=function(t,r){var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[n.length-1]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,t){return e?e+"/"+(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0},e.createSymlinkCache=function(t,r){var n,i,a,o=!1;return{getSymlinkedFiles:function(){return a},getSymlinkedDirectories:function(){return n},getSymlinkedDirectoriesByRealpath:function(){return i},setSymlinkedFile:function(t,r){return(a||(a=new e.Map)).set(t,r)},setSymlinkedDirectory:function(a,o){var s=e.toPath(a,t,r);fi(s)||(s=e.ensureTrailingDirectorySeparator(s),!1===o||(null==n?void 0:n.has(s))||(i||(i=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(o.realPath),a),(n||(n=new e.Map)).set(s,o))},setSymlinkedDirectoryFromSymlinkedFile:function(n,i){this.setSymlinkedFile(e.toPath(n,t,r),i);var a=kn(i,n,t,r)||e.emptyArray,o=a[0],s=a[1];o&&s&&this.setSymlinkedDirectory(s,{real:o,realPath:e.toPath(o,t,r)})},setSymlinksFromResolutions:function(t,r){var n,i=this;e.Debug.assert(!o),o=!0;for(var a=0,c=t;a<c.length;a++)null===(n=c[a].resolvedModules)||void 0===n||n.forEach((function(e){return s(i,e)}));null==r||r.forEach((function(e){return s(i,e)}))},hasProcessedResolutions:function(){return o}};function s(n,i){if(i&&i.originalPath&&i.resolvedFileName){var a=i.resolvedFileName,o=i.originalPath;n.setSymlinkedFile(e.toPath(o,t,r),a);var s=kn(a,o,t,r)||e.emptyArray,c=s[0],l=s[1];c&&l&&n.setSymlinkedDirectory(l,{real:c,realPath:e.toPath(c,t,r)})}}},e.tryRemoveDirectoryPrefix=function(t,r,n){var i,a=e.tryRemovePrefix(t,r,n);return void 0===a?void 0:(i=a,e.isAnyDirectorySeparator(i.charCodeAt(0))?i.slice(1):void 0)};var Nn=/[^\w\s\/]/g;function Fn(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(Nn,Fn)};var wn=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Pn="(?!("+e.commonPackageFolders.join("|")+")(/|$))",In={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+Pn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Vn(e,In.singleAsteriskRegexFragment)}},On={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+Pn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Vn(e,On.singleAsteriskRegexFragment)}},Ln={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return Vn(e,Ln.singleAsteriskRegexFragment)}},Mn={files:In,directories:On,exclude:Ln};function Rn(e,t,r){var n=Bn(e,t,r);if(n&&n.length)return"^("+n.map((function(e){return"("+e+")"})).join("|")+")"+("exclude"===r?"($|/)":"$")}function Bn(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(function(e){return e&&Jn(e,r,n,Mn[n])}))}function jn(e){return!/[.*?]/.test(e)}function Jn(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",l=!1,u=e.getNormalizedPathComponents(t,r),_=e.last(u);if("exclude"===n||"**"!==_){u[0]=e.removeTrailingDirectorySeparator(u[0]),jn(_)&&u.push("**","*");for(var d=0,p=0,f=u;p<f.length;p++){var g=f[p];if("**"===g)c+=o;else if("directories"===n&&(c+="(",d++),l&&(c+=e.directorySeparator),"exclude"!==n){var m="";42===g.charCodeAt(0)?(m+="([^./]"+a+")?",g=g.substr(1)):63===g.charCodeAt(0)&&(m+="[^./]",g=g.substr(1)),(m+=g.replace(Nn,s))!==g&&(c+=Pn),c+=m}else c+=g.replace(Nn,s);l=!0}for(;d>0;)c+=")?",d--;return c}}function Vn(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Un(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Bn(n,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:Rn(n,o,"files"),includeDirectoryPattern:Rn(n,o,"directories"),excludePattern:Rn(r,o,"exclude"),basePaths:zn(t,n,i)}}function Kn(e,t){return new RegExp(e,t?"":"i")}function zn(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o<s.length;o++){var c=s[o],l=e.isRootedDiskPath(c)?c:e.normalizePath(e.combinePaths(t,c));a.push(Gn(l))}a.sort(e.getStringComparer(!n));for(var u=function(r){e.every(i,(function(i){return!e.containsPath(i,r,t,!n)}))&&i.push(r)},_=0,d=a;_<d.length;_++)u(d[_])}return i}function Gn(t){var r=e.indexOfAnyCharCode(t,wn);return r<0?e.hasExtension(t)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function Wn(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=Rn,e.getRegularExpressionsForWildcards=Bn,e.isImplicitGlob=jn,e.getPatternFromSpec=function(e,t,r){var n=e&&Jn(e,t,r,Mn[r]);return n&&"^("+n+")"+("exclude"===r?"($|/)":"$")},e.getFileMatcherPatterns=Un,e.getRegexFromPattern=Kn,e.matchFiles=function(t,r,n,i,a,o,s,c,l,u){t=e.normalizePath(t),o=e.normalizePath(o);for(var _=Un(t,n,i,a,o),d=_.includeFilePatterns&&_.includeFilePatterns.map((function(e){return Kn(e,a)})),p=_.includeDirectoryPattern&&Kn(_.includeDirectoryPattern,a),f=_.excludePattern&&Kn(_.excludePattern,a),g=d?d.map((function(){return[]})):[[]],m=new e.Map,y=e.createGetCanonicalFileName(a),h=0,v=_.basePaths;h<v.length;h++){var b=v[h];u(b)&&x(b,e.combinePaths(o,b),s)}return e.flatten(g);function x(t,n,i){var a=y(l(n));if(!m.has(a)){m.set(a,!0);for(var o=c(t),s=o.files,u=o.directories,_=function(i){var a=e.combinePaths(t,i),o=e.combinePaths(n,i);if(r&&!e.fileExtensionIsOneOf(a,r))return"continue";if(f&&f.test(o))return"continue";if(d){var s=e.findIndex(d,(function(e){return e.test(o)}));-1!==s&&g[s].push(a)}else g[0].push(a)},h=0,v=e.sort(s,e.compareStringsCaseSensitive);h<v.length;h++)_(S=v[h]);if(void 0===i||0!=--i)for(var b=0,D=e.sort(u,e.compareStringsCaseSensitive);b<D.length;b++){var S=D[b],E=e.combinePaths(t,S),T=e.combinePaths(n,S);p&&!p.test(T)||f&&f.test(T)||x(E,T,i)}}}},e.ensureScriptKind=function(e,t){return t||Wn(e)||3},e.getScriptKindFromFileName=Wn,e.supportedTSExtensions=[".ts",".tsx",".d.ts"],e.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"],e.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJSExtensions=[".js",".jsx"],e.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var qn,Hn=i(i([],e.supportedTSExtensions,!0),e.supportedJSExtensions,!0),Yn=i(i(i([],e.supportedTSExtensions,!0),e.supportedJSExtensions,!0),[".json"],!1);function Xn(t,r){var n=t&&Tn(t);if(!r||0===r.length)return n?Hn:e.supportedTSExtensions;var a=i(i([],n?Hn:e.supportedTSExtensions,!0),e.mapDefined(r,(function(e){return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)?e.extension:void 0;var t})),!0);return e.deduplicate(a,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function Qn(t,r){return t&&t.resolveJsonModule?r===Hn?Yn:r===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:i(i([],r,!0),[".json"],!1):r}function $n(e){var t=e.match(/\//g);return t?t.length:0}function Zn(e,t){return e<2?0:e<t.length?2:t.length}e.getSupportedExtensions=Xn,e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=Qn,e.hasJSFileExtension=function(t){return e.some(e.supportedJSExtensions,(function(r){return e.fileExtensionIs(t,r)}))},e.hasTSFileExtension=function(t){return e.some(e.supportedTSExtensions,(function(r){return e.fileExtensionIs(t,r)}))},e.isSupportedSourceFileName=function(t,r,n){if(!t)return!1;for(var i=0,a=Qn(r,Xn(r,n));i<a.length;i++){var o=a[i];if(e.fileExtensionIs(t,o))return!0}return!1},e.compareNumberOfDirectorySeparators=function(t,r){return e.compareValues($n(t),$n(r))},(qn=e.ExtensionPriority||(e.ExtensionPriority={}))[qn.TypeScriptFiles=0]="TypeScriptFiles",qn[qn.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",qn[qn.Highest=0]="Highest",qn[qn.Lowest=2]="Lowest",e.getExtensionPriority=function(t,r){for(var n=r.length-1;n>=0;n--)if(e.fileExtensionIs(t,r[n]))return Zn(n,r);return 0},e.adjustExtensionPriority=Zn,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var ei=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function ti(e){for(var t=0,r=ei;t<r.length;t++){var n=ri(e,r[t]);if(void 0!==n)return n}return e}function ri(t,r){return e.fileExtensionIs(t,r)?ni(t,r):void 0}function ni(e,t){return e.substring(0,e.length-t.length)}function ii(e){var t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function ai(e){return!(e>=0)}function oi(e){return".ts"===e||".tsx"===e||".d.ts"===e}function si(t){return e.find(ei,(function(r){return e.fileExtensionIs(t,r)}))}function ci(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,ci)}function li(e,t){return e.pos=t,e}function ui(e,t){return e.end=t,e}function _i(e,t,r){return ui(li(e,t),r)}function di(e,t){return e&&t&&(e.parent=t),e}function pi(t){return!e.isOmittedExpression(t)}function fi(t){return e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))}e.removeFileExtension=ti,e.tryRemoveExtension=ri,e.removeExtension=ni,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,ei,!1)},e.tryParsePattern=ii,e.tryParsePatterns=function(t){return e.mapDefined(e.getOwnKeys(t),(function(e){return ii(e)}))},e.positionIsSynthesized=ai,e.extensionIsTS=oi,e.resolutionExtensionIsTSOrJson=function(e){return oi(e)||".json"===e},e.extensionFromPath=function(t){var r=si(t);return void 0!==r?r:e.Debug.fail("File "+t+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==si(e)},e.tryGetExtensionFromPath=si,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(o===r)return r;e.isString(o)||n.push(o)}return e.findBestPatternMatch(n,(function(e){return e}),r)},e.sliceAfter=function(t,r){var n=t.indexOf(r);return e.Debug.assert(-1!==n),t.slice(n)},e.addRelatedInfo=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length?(t.relatedInformation||(t.relatedInformation=[]),e.Debug.assert(t.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(r=t.relatedInformation).push.apply(r,n),t):t},e.minAndMax=function(t,r){e.Debug.assert(0!==t.length);for(var n=r(t[0]),i=n,a=1;a<t.length;a++){var o=r(t[a]);o<n?n=o:o>i&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:h(e),end:e.end}},e.rangeOfTypeParameters=function(t,r){return{pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=ci,e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var l=c>>>4,u=e.charCodeAt(s),_=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=_;var d=_>>>16;d&&(o[l+1]|=d)}for(var p="",f=o.length-1,g=!0;g;){var m=0;for(g=!1,l=f;l>=0;l--){var y=m<<16|o[l],h=y/10|0;o[l]=h,m=y-10*h,h&&!g&&(f=l,g=!0)}p=m+p}return p},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=function(t){return!!(8388608&t.flags)||he(t)||function(t){if(79!==t.kind)return!1;var r=e.findAncestor(t.parent,(function(e){switch(e.kind){case 289:return!0;case 204:case 226:return!1;default:return"quit"}}));return 117===(null==r?void 0:r.token)||256===(null==r?void 0:r.parent.kind)}(t)||function(e){for(;79===e.kind||204===e.kind;)e=e.parent;if(160!==e.kind)return!1;if(vr(e.parent,128))return!0;var t=e.parent.parent.kind;return 256===t||180===t}(t)||!(me(t)||function(t){return e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t}(t))},e.typeOnlyDeclarationIsExport=function(e){return 273===e.kind},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i<a;i++)if(!r(n,t[i]))return!1;return!0},e.setTextRangePos=li,e.setTextRangeEnd=ui,e.setTextRangePosEnd=_i,e.setTextRangePosWidth=function(e,t,r){return _i(e,t,t+r)},e.setNodeFlags=function(e,t){return e&&(e.flags=t),e},e.setParent=di,e.setEachParent=function(e,t){if(e)for(var r=0,n=e;r<n.length;r++)di(n[r],t);return e},e.setParentRecursive=function(t,r){return t?(e.forEachChildRecursively(t,e.isJSDocNode(t)?n:function(t,r){return n(t,r)||function(t){if(e.hasJSDocNodes(t))for(var r=0,i=t.jsDoc;r<i.length;r++){var a=i[r];n(a,t),e.forEachChildRecursively(a,n)}}(t)}),t):t;function n(e,t){if(r&&e.parent===t)return"skip";di(e,t)}},e.isPackedArrayLiteral=function(t){return e.isArrayLiteralExpression(t)&&e.every(t.elements,pi)},e.expressionResultIsUnused=function(t){for(e.Debug.assertIsDefined(t.parent);;){var r=t.parent;if(e.isParenthesizedExpression(r))t=r;else{if(e.isExpressionStatement(r)||e.isVoidExpression(r)||e.isForStatement(r)&&(r.initializer===t||r.incrementor===t))return!0;if(e.isCommaListExpression(r)){if(t!==e.last(r.elements))return!0;t=r}else{if(!e.isBinaryExpression(r)||27!==r.operatorToken.kind)return!1;if(t===r.left)return!0;t=r}}}},e.containsIgnoredPath=fi,e.getContainingNodeArray=function(t){if(t.parent){switch(t.kind){case 161:var r=t.parent;return 188===r.kind?void 0:r.typeParameters;case 162:return t.parent.parameters;case 197:case 231:return t.parent.templateSpans;case 163:return t.parent.decorators;case 289:return t.parent.heritageClauses}var n=t.parent;if(e.isJSDocTag(t))return e.isJSDocTypeLiteral(t.parent)?void 0:t.parent.tags;switch(n.kind){case 180:case 256:return e.isTypeElement(t)?n.members:void 0;case 185:case 186:return n.types;case 182:case 202:case 346:case 267:case 271:return n.elements;case 203:case 284:return n.properties;case 206:case 207:return e.isTypeNode(t)?n.typeArguments:n.expression===t?void 0:n.arguments;case 276:case 280:return e.isJsxChild(t)?n.children:void 0;case 278:case 277:return e.isTypeNode(t)?n.typeArguments:void 0;case 233:case 287:case 288:case 260:case 300:return n.statements;case 261:return n.clauses;case 255:case 224:return e.isClassElement(t)?n.members:void 0;case 258:return e.isEnumMember(t)?n.members:void 0}}},e.hasContextSensitiveParameters=function(t){if(!t.typeParameters){if(e.some(t.parameters,(function(e){return!dr(e)})))return!0;if(212!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!lr(r))return!0}}return!1},e.isInfinityOrNaNString=function(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}}(u||(u={})),function(e){e.createBaseNodeFactory=function(){var t,r,n,i,a;return{createBaseSourceFileNode:function(t){return new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(n||(n=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(r||(r=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(r){return new(t||(t=e.objectAllocator.getNodeConstructor()))(r,-1,-1)}}}}(u||(u={})),function(e){e.createParenthesizerRules=function(t){var r,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(t){r||(r=new e.Map);var n=r.get(t);return n||(n=function(e){return o(t,e)},r.set(t,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(t){n||(n=new e.Map);var r=n.get(t);return r||(r=function(e){return s(t,void 0,e)},n.set(t,r)),r},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:function(r){return e.isCommaSequence(r)?t.createParenthesizedExpression(r):r},parenthesizeConditionOfConditionalExpression:function(r){var n=e.getOperatorPrecedence(220,57),i=e.skipPartiallyEmittedExpressions(r),a=e.getExpressionPrecedence(i);return 1!==e.compareValues(a,n)?t.createParenthesizedExpression(r):r},parenthesizeBranchOfConditionalExpression:function(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isCommaSequence(n)?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfExportDefault:function(r){var n=e.skipPartiallyEmittedExpressions(r),i=e.isCommaSequence(n);if(!i)switch(e.getLeftmostExpression(n,!1).kind){case 224:case 211:i=!0}return i?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfNew:function(r){var n=e.getLeftmostExpression(r,!0);switch(n.kind){case 206:return t.createParenthesizedExpression(r);case 207:return n.arguments?r:t.createParenthesizedExpression(r)}return c(r)},parenthesizeLeftSideOfAccess:c,parenthesizeOperandOfPostfixUnary:function(r){return e.isLeftHandSideExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeOperandOfPrefixUnary:function(r){return e.isUnaryExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeExpressionsOfCommaDelimitedList:function(r){var n=e.sameMap(r,l);return e.setTextRange(t.createNodeArray(n,r.hasTrailingComma),r)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement:function(r){var n=e.skipPartiallyEmittedExpressions(r);if(e.isCallExpression(n)){var i=n.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(211===a||212===a){var o=t.updateCallExpression(n,e.setTextRange(t.createParenthesizedExpression(i),i),n.typeArguments,n.arguments);return t.restoreOuterExpressions(r,o,8)}}var s=e.getLeftmostExpression(n,!1).kind;return 203===s||211===s?e.setTextRange(t.createParenthesizedExpression(r),r):r},parenthesizeConciseBodyOfArrowFunction:function(r){return e.isBlock(r)||!e.isCommaSequence(r)&&203!==e.getLeftmostExpression(r,!1).kind?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeMemberOfConditionalType:u,parenthesizeMemberOfElementType:_,parenthesizeElementTypeOfArrayType:function(e){switch(e.kind){case 179:case 191:case 188:return t.createParenthesizedType(e)}return _(e)},parenthesizeConstituentTypesOfUnionOrIntersectionType:function(r){return t.createNodeArray(e.sameMap(r,_))},parenthesizeTypeArguments:function(r){if(e.some(r))return t.createNodeArray(e.sameMap(r,d))}};function i(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(219===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=i(t.left),n=e.isLiteralKind(r)&&r===i(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function a(r,n,a,o){return 210===e.skipPartiallyEmittedExpressions(n).kind?n:function(t,r,n,a){var o=e.getOperatorPrecedence(219,t),s=e.getOperatorAssociativity(219,t),c=e.skipPartiallyEmittedExpressions(r);if(!n&&212===r.kind&&o>3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!n&&1===s&&222===r.kind);case 1:return!1;case 0:if(n)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e}(t))return!1;if(39===t){var u=a?i(a):0;if(e.isLiteralKind(u)&&u===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(r,n,a,o)?t.createParenthesizedExpression(n):n}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isLeftHandSideExpression(n)&&(207!==n.kind||n.arguments)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function l(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(219,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function u(e){return 187===e.kind?t.createParenthesizedType(e):e}function _(e){switch(e.kind){case 185:case 186:case 177:case 178:return t.createParenthesizedType(e)}return u(e)}function d(r,n){return 0===n&&e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(t){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(t){return e.identity},parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)}}}(u||(u={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression:function(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);return e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0),n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 200:case 202:return o(e);case 199:case 203:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(u||(u={})),function(e){var t,r,n=0;function a(r,a){var f=8&r?o:s,g=e.memoize((function(){return 1&r?e.nullParenthesizerRules:e.createParenthesizerRules(A)})),m=e.memoize((function(){return 2&r?e.nullNodeConverters:e.createNodeConverters(A)})),y=e.memoizeOne((function(e){return function(t,r){return Lt(t,e,r)}})),h=e.memoizeOne((function(e){return function(t){return It(e,t)}})),b=e.memoizeOne((function(e){return function(t){return Ot(t,e)}})),x=e.memoizeOne((function(e){return function(){return function(e){return F(e)}(e)}})),D=e.memoizeOne((function(e){return function(t){return Zr(e,t)}})),S=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(Zr(e,r),t):t}(e,t,r)}})),E=e.memoizeOne((function(e){return function(t,r){return bn(e,t,r)}})),T=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){return void 0===r&&(r=an(t)),t.tagName!==r||t.comment!==n?f(bn(e,r,n),t):t}(e,t,r,n)}})),C=e.memoizeOne((function(e){return function(t,r,n){return xn(e,t,r,n)}})),k=e.memoizeOne((function(e){return function(t,r,n,i){return function(e,t,r,n,i){return void 0===r&&(r=an(t)),t.tagName!==r||t.typeExpression!==n||t.comment!==i?f(xn(e,r,n,i),t):t}(e,t,r,n,i)}})),A={get parenthesizer(){return g()},get converters(){return m()},createNodeArray:N,createNumericLiteral:K,createBigIntLiteral:z,createStringLiteral:W,createStringLiteralFromNode:function(t){var r=G(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:q,createLiteralLikeNode:function(e,t){switch(e){case 8:return K(t,0);case 9:return z(t);case 10:return W(t,void 0);case 11:return Fn(t,!1);case 12:return Fn(t,!0);case 13:return q(t);case 14:return Jt(e,t,void 0,0)}},createIdentifier:X,updateIdentifier:function(t,r){return t.typeArguments!==r?f(X(e.idText(t),r),t):t},createTempVariable:Q,createLoopVariable:function(e){var t=2;return e&&(t|=8),Y("",t)},createUniqueName:function(t,r){return void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Y(t,3|r)},getGeneratedNameForNode:$,createPrivateIdentifier:function(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var r=a.createBasePrivateIdentifierNode(80);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=8388608,r},createToken:ee,createSuper:function(){return ee(106)},createThis:te,createNull:function(){return ee(104)},createTrue:re,createFalse:ne,createModifier:ie,createModifiersFromModifierFlags:ae,createQualifiedName:oe,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?f(oe(t,r),e):e},createComputedPropertyName:se,updateComputedPropertyName:function(e,t){return e.expression!==t?f(se(t),e):e},createTypeParameterDeclaration:ce,updateTypeParameterDeclaration:function(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?f(ce(t,r,n),e):e},createParameterDeclaration:le,updateParameterDeclaration:ue,createDecorator:_e,updateDecorator:function(e,t){return e.expression!==t?f(_e(t),e):e},createPropertySignature:de,updatePropertySignature:pe,createPropertyDeclaration:fe,updatePropertyDeclaration:ge,createMethodSignature:me,updateMethodSignature:ye,createMethodDeclaration:he,updateMethodDeclaration:ve,createConstructorDeclaration:xe,updateConstructorDeclaration:De,createGetAccessorDeclaration:Se,updateGetAccessorDeclaration:Ee,createSetAccessorDeclaration:Te,updateSetAccessorDeclaration:Ce,createCallSignature:ke,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?L(ke(t,r,n),e):e},createConstructSignature:Ae,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?L(Ae(t,r,n),e):e},createIndexSignature:Ne,updateIndexSignature:Fe,createClassStaticBlockDeclaration:be,updateClassStaticBlockDeclaration:function(e,t,r,n){return e.decorators!==t||e.modifier!==r||e.body!==n?f(be(t,r,n),e):e},createTemplateLiteralTypeSpan:we,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?f(we(t,r),e):e},createKeywordTypeNode:function(e){return ee(e)},createTypePredicateNode:Pe,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?f(Pe(t,r,n),e):e},createTypeReferenceNode:Ie,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?f(Ie(t,r),e):e},createFunctionTypeNode:Oe,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?L(Oe(t,r,n),e):e},createConstructorTypeNode:Le,updateConstructorTypeNode:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 5===t.length?Be.apply(void 0,t):4===t.length?je.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Je,updateTypeQueryNode:function(e,t){return e.exprName!==t?f(Je(t),e):e},createTypeLiteralNode:Ve,updateTypeLiteralNode:function(e,t){return e.members!==t?f(Ve(t),e):e},createArrayTypeNode:Ue,updateArrayTypeNode:function(e,t){return e.elementType!==t?f(Ue(t),e):e},createTupleTypeNode:Ke,updateTupleTypeNode:function(e,t){return e.elements!==t?f(Ke(t),e):e},createNamedTupleMember:ze,updateNamedTupleMember:function(e,t,r,n,i){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(ze(t,r,n,i),e):e},createOptionalTypeNode:Ge,updateOptionalTypeNode:function(e,t){return e.type!==t?f(Ge(t),e):e},createRestTypeNode:We,updateRestTypeNode:function(e,t){return e.type!==t?f(We(t),e):e},createUnionTypeNode:function(e){return qe(185,e)},updateUnionTypeNode:function(e,t){return He(e,t)},createIntersectionTypeNode:function(e){return qe(186,e)},updateIntersectionTypeNode:function(e,t){return He(e,t)},createConditionalTypeNode:Ye,updateConditionalTypeNode:function(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?f(Ye(t,r,n,i),e):e},createInferTypeNode:Xe,updateInferTypeNode:function(e,t){return e.typeParameter!==t?f(Xe(t),e):e},createImportTypeNode:$e,updateImportTypeNode:function(e,t,r,n,i){return void 0===i&&(i=e.isTypeOf),e.argument!==t||e.qualifier!==r||e.typeArguments!==n||e.isTypeOf!==i?f($e(t,r,n,i),e):e},createParenthesizedType:Ze,updateParenthesizedType:function(e,t){return e.type!==t?f(Ze(t),e):e},createThisTypeNode:function(){var e=F(190);return e.transformFlags=1,e},createTypeOperatorNode:et,updateTypeOperatorNode:function(e,t){return e.type!==t?f(et(e.operator,t),e):e},createIndexedAccessTypeNode:tt,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?f(tt(t,r),e):e},createMappedTypeNode:rt,updateMappedTypeNode:function(e,t,r,n,i,a){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==n||e.questionToken!==i||e.type!==a?f(rt(t,r,n,i,a),e):e},createLiteralTypeNode:nt,updateLiteralTypeNode:function(e,t){return e.literal!==t?f(nt(t),e):e},createTemplateLiteralType:Qe,updateTemplateLiteralType:function(e,t,r){return e.head!==t||e.templateSpans!==r?f(Qe(t,r),e):e},createObjectBindingPattern:it,updateObjectBindingPattern:function(e,t){return e.elements!==t?f(it(t),e):e},createArrayBindingPattern:at,updateArrayBindingPattern:function(e,t){return e.elements!==t?f(at(t),e):e},createBindingElement:ot,updateBindingElement:function(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?f(ot(t,r,n,i),e):e},createArrayLiteralExpression:ct,updateArrayLiteralExpression:function(e,t){return e.elements!==t?f(ct(t,e.multiLine),e):e},createObjectLiteralExpression:lt,updateObjectLiteralExpression:function(e,t){return e.properties!==t?f(lt(t,e.multiLine),e):e},createPropertyAccessExpression:4&r?function(t,r){return e.setEmitFlags(ut(t,r),131072)}:ut,updatePropertyAccessExpression:function(t,r,n){return e.isPropertyAccessChain(t)?dt(t,r,t.questionDotToken,e.cast(n,e.isIdentifier)):t.expression!==r||t.name!==n?f(ut(r,n),t):t},createPropertyAccessChain:4&r?function(t,r,n){return e.setEmitFlags(_t(t,r,n),131072)}:_t,updatePropertyAccessChain:dt,createElementAccessExpression:pt,updateElementAccessExpression:function(t,r,n){return e.isElementAccessChain(t)?gt(t,r,t.questionDotToken,n):t.expression!==r||t.argumentExpression!==n?f(pt(r,n),t):t},createElementAccessChain:ft,updateElementAccessChain:gt,createCallExpression:mt,updateCallExpression:function(t,r,n,i){return e.isCallChain(t)?ht(t,r,t.questionDotToken,n,i):t.expression!==r||t.typeArguments!==n||t.arguments!==i?f(mt(r,n,i),t):t},createCallChain:yt,updateCallChain:ht,createNewExpression:vt,updateNewExpression:function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?f(vt(t,r,n),e):e},createTaggedTemplateExpression:bt,updateTaggedTemplateExpression:function(e,t,r,n){return e.tag!==t||e.typeArguments!==r||e.template!==n?f(bt(t,r,n),e):e},createTypeAssertion:xt,updateTypeAssertion:Dt,createParenthesizedExpression:St,updateParenthesizedExpression:Et,createFunctionExpression:Tt,updateFunctionExpression:Ct,createArrowFunction:kt,updateArrowFunction:At,createDeleteExpression:Nt,updateDeleteExpression:function(e,t){return e.expression!==t?f(Nt(t),e):e},createTypeOfExpression:Ft,updateTypeOfExpression:function(e,t){return e.expression!==t?f(Ft(t),e):e},createVoidExpression:wt,updateVoidExpression:function(e,t){return e.expression!==t?f(wt(t),e):e},createAwaitExpression:Pt,updateAwaitExpression:function(e,t){return e.expression!==t?f(Pt(t),e):e},createPrefixUnaryExpression:It,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?f(It(e.operator,t),e):e},createPostfixUnaryExpression:Ot,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?f(Ot(t,e.operator),e):e},createBinaryExpression:Lt,updateBinaryExpression:function(e,t,r,n){return e.left!==t||e.operatorToken!==r||e.right!==n?f(Lt(t,r,n),e):e},createConditionalExpression:Rt,updateConditionalExpression:function(e,t,r,n,i,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?f(Rt(t,r,n,i,a),e):e},createTemplateExpression:Bt,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?f(Bt(t,r),e):e},createTemplateHead:function(e,t,r){return jt(15,e,t,r)},createTemplateMiddle:function(e,t,r){return jt(16,e,t,r)},createTemplateTail:function(e,t,r){return jt(17,e,t,r)},createNoSubstitutionTemplateLiteral:function(e,t,r){return jt(14,e,t,r)},createTemplateLiteralLikeNode:Jt,createYieldExpression:Vt,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?f(Vt(t,r),e):e},createSpreadElement:Ut,updateSpreadElement:function(e,t){return e.expression!==t?f(Ut(t),e):e},createClassExpression:Kt,updateClassExpression:zt,createOmittedExpression:function(){return st(225)},createExpressionWithTypeArguments:Gt,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?f(Gt(t,r),e):e},createAsExpression:Wt,updateAsExpression:qt,createNonNullExpression:Ht,updateNonNullExpression:Yt,createNonNullChain:Xt,updateNonNullChain:Qt,createMetaProperty:$t,updateMetaProperty:function(e,t){return e.name!==t?f($t(e.keywordToken,t),e):e},createTemplateSpan:Zt,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?f(Zt(t,r),e):e},createSemicolonClassElement:function(){var e=F(232);return e.transformFlags|=512,e},createBlock:er,updateBlock:function(e,t){return e.statements!==t?f(er(t,e.multiLine),e):e},createVariableStatement:tr,updateVariableStatement:rr,createEmptyStatement:nr,createExpressionStatement:ir,updateExpressionStatement:function(e,t){return e.expression!==t?f(ir(t),e):e},createIfStatement:ar,updateIfStatement:function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?f(ar(t,r,n),e):e},createDoStatement:or,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?f(or(t,r),e):e},createWhileStatement:sr,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?f(sr(t,r),e):e},createForStatement:cr,updateForStatement:function(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?f(cr(t,r,n,i),e):e},createForInStatement:lr,updateForInStatement:function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?f(lr(t,r,n),e):e},createForOfStatement:ur,updateForOfStatement:function(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?f(ur(t,r,n,i),e):e},createContinueStatement:_r,updateContinueStatement:function(e,t){return e.label!==t?f(_r(t),e):e},createBreakStatement:dr,updateBreakStatement:function(e,t){return e.label!==t?f(dr(t),e):e},createReturnStatement:pr,updateReturnStatement:function(e,t){return e.expression!==t?f(pr(t),e):e},createWithStatement:fr,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?f(fr(t,r),e):e},createSwitchStatement:gr,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?f(gr(t,r),e):e},createLabeledStatement:mr,updateLabeledStatement:yr,createThrowStatement:hr,updateThrowStatement:function(e,t){return e.expression!==t?f(hr(t),e):e},createTryStatement:vr,updateTryStatement:function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?f(vr(t,r,n),e):e},createDebuggerStatement:function(){return F(251)},createVariableDeclaration:br,updateVariableDeclaration:function(e,t,r,n,i){return e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?f(br(t,r,n,i),e):e},createVariableDeclarationList:xr,updateVariableDeclarationList:function(e,t){return e.declarations!==t?f(xr(t,e.flags),e):e},createFunctionDeclaration:Dr,updateFunctionDeclaration:Sr,createClassDeclaration:Er,updateClassDeclaration:Tr,createInterfaceDeclaration:Cr,updateInterfaceDeclaration:kr,createTypeAliasDeclaration:Ar,updateTypeAliasDeclaration:Nr,createEnumDeclaration:Fr,updateEnumDeclaration:wr,createModuleDeclaration:Pr,updateModuleDeclaration:Ir,createModuleBlock:Or,updateModuleBlock:function(e,t){return e.statements!==t?f(Or(t),e):e},createCaseBlock:Lr,updateCaseBlock:function(e,t){return e.clauses!==t?f(Lr(t),e):e},createNamespaceExportDeclaration:Mr,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?f(Mr(t),e):e},createImportEqualsDeclaration:Rr,updateImportEqualsDeclaration:Br,createImportDeclaration:jr,updateImportDeclaration:Jr,createImportClause:Vr,updateImportClause:function(e,t,r,n){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?f(Vr(t,r,n),e):e},createNamespaceImport:Ur,updateNamespaceImport:function(e,t){return e.name!==t?f(Ur(t),e):e},createNamespaceExport:Kr,updateNamespaceExport:function(e,t){return e.name!==t?f(Kr(t),e):e},createNamedImports:zr,updateNamedImports:function(e,t){return e.elements!==t?f(zr(t),e):e},createImportSpecifier:Gr,updateImportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?f(Gr(t,r),e):e},createExportAssignment:Wr,updateExportAssignment:qr,createExportDeclaration:Hr,updateExportDeclaration:Yr,createNamedExports:Xr,updateNamedExports:function(e,t){return e.elements!==t?f(Xr(t),e):e},createExportSpecifier:Qr,updateExportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?f(Qr(t,r),e):e},createMissingDeclaration:function(){return w(274,void 0,void 0)},createExternalModuleReference:$r,updateExternalModuleReference:function(e,t){return e.expression!==t?f($r(t),e):e},get createJSDocAllType(){return x(307)},get createJSDocUnknownType(){return x(308)},get createJSDocNonNullableType(){return D(310)},get updateJSDocNonNullableType(){return S(310)},get createJSDocNullableType(){return D(309)},get updateJSDocNullableType(){return S(309)},get createJSDocOptionalType(){return D(311)},get updateJSDocOptionalType(){return S(311)},get createJSDocVariadicType(){return D(313)},get updateJSDocVariadicType(){return S(313)},get createJSDocNamepathType(){return D(314)},get updateJSDocNamepathType(){return S(314)},createJSDocFunctionType:en,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?f(en(t,r),e):e},createJSDocTypeLiteral:tn,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?f(tn(t,r),e):e},createJSDocTypeExpression:rn,updateJSDocTypeExpression:function(e,t){return e.type!==t?f(rn(t),e):e},createJSDocSignature:nn,updateJSDocSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?f(nn(t,r,n),e):e},createJSDocTemplateTag:sn,updateJSDocTemplateTag:function(e,t,r,n,i){return void 0===t&&(t=an(e)),e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?f(sn(t,r,n,i),e):e},createJSDocTypedefTag:cn,updateJSDocTypedefTag:function(e,t,r,n,i){return void 0===t&&(t=an(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?f(cn(t,r,n,i),e):e},createJSDocParameterTag:ln,updateJSDocParameterTag:function(e,t,r,n,i,a,o){return void 0===t&&(t=an(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?f(ln(t,r,n,i,a,o),e):e},createJSDocPropertyTag:un,updateJSDocPropertyTag:function(e,t,r,n,i,a,o){return void 0===t&&(t=an(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?f(un(t,r,n,i,a,o),e):e},createJSDocCallbackTag:_n,updateJSDocCallbackTag:function(e,t,r,n,i){return void 0===t&&(t=an(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?f(_n(t,r,n,i),e):e},createJSDocAugmentsTag:dn,updateJSDocAugmentsTag:function(e,t,r,n){return void 0===t&&(t=an(e)),e.tagName!==t||e.class!==r||e.comment!==n?f(dn(t,r,n),e):e},createJSDocImplementsTag:pn,updateJSDocImplementsTag:function(e,t,r,n){return void 0===t&&(t=an(e)),e.tagName!==t||e.class!==r||e.comment!==n?f(pn(t,r,n),e):e},createJSDocSeeTag:fn,updateJSDocSeeTag:function(e,t,r,n){return e.tagName!==t||e.name!==r||e.comment!==n?f(fn(t,r,n),e):e},createJSDocNameReference:gn,updateJSDocNameReference:function(e,t){return e.name!==t?f(gn(t),e):e},createJSDocMemberName:mn,updateJSDocMemberName:function(e,t,r){return e.left!==t||e.right!==r?f(mn(t,r),e):e},createJSDocLink:yn,updateJSDocLink:function(e,t,r){return e.name!==t?f(yn(t,r),e):e},createJSDocLinkCode:hn,updateJSDocLinkCode:function(e,t,r){return e.name!==t?f(hn(t,r),e):e},createJSDocLinkPlain:vn,updateJSDocLinkPlain:function(e,t,r){return e.name!==t?f(vn(t,r),e):e},get createJSDocTypeTag(){return C(338)},get updateJSDocTypeTag(){return k(338)},get createJSDocReturnTag(){return C(336)},get updateJSDocReturnTag(){return k(336)},get createJSDocThisTag(){return C(337)},get updateJSDocThisTag(){return k(337)},get createJSDocEnumTag(){return C(334)},get updateJSDocEnumTag(){return k(334)},get createJSDocAuthorTag(){return E(325)},get updateJSDocAuthorTag(){return T(325)},get createJSDocClassTag(){return E(327)},get updateJSDocClassTag(){return T(327)},get createJSDocPublicTag(){return E(328)},get updateJSDocPublicTag(){return T(328)},get createJSDocPrivateTag(){return E(329)},get updateJSDocPrivateTag(){return T(329)},get createJSDocProtectedTag(){return E(330)},get updateJSDocProtectedTag(){return T(330)},get createJSDocReadonlyTag(){return E(331)},get updateJSDocReadonlyTag(){return T(331)},get createJSDocOverrideTag(){return E(332)},get updateJSDocOverrideTag(){return T(332)},get createJSDocDeprecatedTag(){return E(326)},get updateJSDocDeprecatedTag(){return T(326)},createJSDocUnknownTag:Dn,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?f(Dn(t,r),e):e},createJSDocText:Sn,updateJSDocText:function(e,t){return e.text!==t?f(Sn(t),e):e},createJSDocComment:En,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?f(En(t,r),e):e},createJsxElement:Tn,updateJsxElement:function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?f(Tn(t,r,n),e):e},createJsxSelfClosingElement:Cn,updateJsxSelfClosingElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?f(Cn(t,r,n),e):e},createJsxOpeningElement:kn,updateJsxOpeningElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?f(kn(t,r,n),e):e},createJsxClosingElement:An,updateJsxClosingElement:function(e,t){return e.tagName!==t?f(An(t),e):e},createJsxFragment:Nn,createJsxText:Fn,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?f(Fn(t,r),e):e},createJsxOpeningFragment:function(){var e=F(281);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=F(282);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?f(Nn(t,r,n),e):e},createJsxAttribute:wn,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?f(wn(t,r),e):e},createJsxAttributes:Pn,updateJsxAttributes:function(e,t){return e.properties!==t?f(Pn(t),e):e},createJsxSpreadAttribute:In,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?f(In(t),e):e},createJsxExpression:On,updateJsxExpression:function(e,t){return e.expression!==t?f(On(e.dotDotDotToken,t),e):e},createCaseClause:Ln,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?f(Ln(t,r),e):e},createDefaultClause:Mn,updateDefaultClause:function(e,t){return e.statements!==t?f(Mn(t),e):e},createHeritageClause:Rn,updateHeritageClause:function(e,t){return e.types!==t?f(Rn(e.token,t),e):e},createCatchClause:Bn,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?f(Bn(t,r),e):e},createPropertyAssignment:jn,updatePropertyAssignment:function(e,t,r){return e.name!==t||e.initializer!==r?(n=jn(t,r),(i=e).decorators&&(n.decorators=i.decorators),i.modifiers&&(n.modifiers=i.modifiers),i.questionToken&&(n.questionToken=i.questionToken),i.exclamationToken&&(n.exclamationToken=i.exclamationToken),f(n,i)):e;var n,i},createShorthandPropertyAssignment:Jn,updateShorthandPropertyAssignment:function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?(n=Jn(t,r),(i=e).decorators&&(n.decorators=i.decorators),i.modifiers&&(n.modifiers=i.modifiers),i.equalsToken&&(n.equalsToken=i.equalsToken),i.questionToken&&(n.questionToken=i.questionToken),i.exclamationToken&&(n.exclamationToken=i.exclamationToken),f(n,i)):e;var n,i},createSpreadAssignment:Vn,updateSpreadAssignment:function(e,t){return e.expression!==t?f(Vn(t),e):e},createEnumMember:Un,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?f(Un(t,r),e):e},createSourceFile:function(e,t,r){var n=a.createBaseSourceFileNode(300);return n.statements=N(e),n.endOfFileToken=t,n.flags|=r,n.fileName="",n.text="",n.languageVersion=0,n.languageVariant=0,n.scriptKind=0,n.isDeclarationFile=!1,n.hasNoDefaultLib=!1,n.transformFlags|=d(n.statements)|_(n.endOfFileToken),n},updateSourceFile:function(t,r,n,i,o,s,c){return void 0===n&&(n=t.isDeclarationFile),void 0===i&&(i=t.referencedFiles),void 0===o&&(o=t.typeReferenceDirectives),void 0===s&&(s=t.hasNoDefaultLib),void 0===c&&(c=t.libReferenceDirectives),t.statements!==r||t.isDeclarationFile!==n||t.referencedFiles!==i||t.typeReferenceDirectives!==o||t.hasNoDefaultLib!==s||t.libReferenceDirectives!==c?f(function(t,r,n,i,o,s,c){var l=a.createBaseSourceFileNode(300);for(var u in t)"emitNode"!==u&&!e.hasProperty(l,u)&&e.hasProperty(t,u)&&(l[u]=t[u]);return l.flags|=t.flags,l.statements=N(r),l.endOfFileToken=t.endOfFileToken,l.isDeclarationFile=n,l.referencedFiles=i,l.typeReferenceDirectives=o,l.hasNoDefaultLib=s,l.libReferenceDirectives=c,l.transformFlags=d(l.statements)|_(l.endOfFileToken),l}(t,r,n,i,o,s,c),t):t},createBundle:Kn,updateBundle:function(t,r,n){return void 0===n&&(n=e.emptyArray),t.sourceFiles!==r||t.prepends!==n?f(Kn(r,n),t):t},createUnparsedSource:function(t,r,n){var i=F(302);return i.prologues=t,i.syntheticReferences=r,i.texts=n,i.fileName="",i.text="",i.referencedFiles=e.emptyArray,i.libReferenceDirectives=e.emptyArray,i.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(i,t)},i},createUnparsedPrologue:function(e){return zn(295,e)},createUnparsedPrepend:function(e,t){var r=zn(296,e);return r.texts=t,r},createUnparsedTextLike:function(e,t){return zn(t?298:297,e)},createUnparsedSyntheticReference:function(e){var t=F(299);return t.data=e.data,t.section=e,t},createInputFiles:function(){var e=F(303);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t,r){void 0===t&&(t=!1);var n=F(230);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList:function(e){var t=F(343);return t._children=e,t},createNotEmittedStatement:function(t){var r=F(344);return r.original=t,e.setTextRange(r,t),r},createPartiallyEmittedExpression:Gn,updatePartiallyEmittedExpression:Wn,createCommaListExpression:Hn,updateCommaListExpression:function(e,t){return e.elements!==t?f(Hn(t),e):e},createEndOfDeclarationMarker:function(e){var t=F(348);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker:function(e){var t=F(347);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:Yn,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?f(Yn(t,r),e):e},cloneNode:Xn,get createComma(){return y(27)},get createAssignment(){return y(63)},get createLogicalOr(){return y(56)},get createLogicalAnd(){return y(55)},get createBitwiseOr(){return y(51)},get createBitwiseXor(){return y(52)},get createBitwiseAnd(){return y(50)},get createStrictEquality(){return y(36)},get createStrictInequality(){return y(37)},get createEquality(){return y(34)},get createInequality(){return y(35)},get createLessThan(){return y(29)},get createLessThanEquals(){return y(32)},get createGreaterThan(){return y(31)},get createGreaterThanEquals(){return y(33)},get createLeftShift(){return y(47)},get createRightShift(){return y(48)},get createUnsignedRightShift(){return y(49)},get createAdd(){return y(39)},get createSubtract(){return y(40)},get createMultiply(){return y(41)},get createDivide(){return y(43)},get createModulo(){return y(44)},get createExponent(){return y(42)},get createPrefixPlus(){return h(39)},get createPrefixMinus(){return h(40)},get createPrefixIncrement(){return h(45)},get createPrefixDecrement(){return h(46)},get createBitwiseNot(){return h(54)},get createLogicalNot(){return h(53)},get createPostfixIncrement(){return b(45)},get createPostfixDecrement(){return b(46)},createImmediatelyInvokedFunctionExpression:function(e,t,r){return mt(Tt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,er(e,!0)),void 0,r?[r]:[])},createImmediatelyInvokedArrowFunction:function(e,t,r){return mt(kt(void 0,void 0,t?[t]:[],void 0,void 0,er(e,!0)),void 0,r?[r]:[])},createVoidZero:Qn,createExportDefault:function(e){return Wr(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Hr(void 0,void 0,!1,Xr([Qr(void 0,e)]))},createTypeCheck:function(e,t){return"undefined"===t?A.createStrictEquality(e,Qn()):A.createStrictEquality(Ft(e),W(t))},createMethodCall:$n,createGlobalMethodCall:Zn,createFunctionBindCall:function(e,t,r){return $n(e,"bind",i([t],r,!0))},createFunctionCallCall:function(e,t,r){return $n(e,"call",i([t],r,!0))},createFunctionApplyCall:function(e,t,r){return $n(e,"apply",[t,r])},createArraySliceCall:function(e,t){return $n(e,"slice",void 0===t?[]:[_i(t)])},createArrayConcatCall:function(e,t){return $n(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,r){return Zn("Object","defineProperty",[e,_i(t),r])},createReflectGetCall:function(e,t,r){return Zn("Reflect","get",r?[e,t,r]:[e,t])},createReflectSetCall:function(e,t,r,n){return Zn("Reflect","set",n?[e,t,r,n]:[e,t,r])},createPropertyDescriptor:function(t,r){var n=[];ei(n,"enumerable",_i(t.enumerable)),ei(n,"configurable",_i(t.configurable));var i=ei(n,"writable",_i(t.writable));i=ei(n,"value",t.value)||i;var a=ei(n,"get",t.get);return a=ei(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),lt(n,!r)},createCallBinding:function(t,r,n,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(t,15);return e.isSuperProperty(s)?(a=te(),o=s):e.isSuperKeyword(s)?(a=te(),o=void 0!==n&&n<2?e.setTextRange(X("_super"),s):s):4096&e.getEmitFlags(s)?(a=Qn(),o=g().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?ti(s.expression,i)?(a=Q(r),o=ut(e.setTextRange(A.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?ti(s.expression,i)?(a=Q(r),o=pt(e.setTextRange(A.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=Qn(),o=g().parenthesizeLeftSideOfAccess(t)),{target:o,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return ut(St(lt([Te(void 0,void 0,"value",[le(void 0,void 0,void 0,e,void 0,void 0,void 0)],er([ir(t)]))])),"value")},inlineExpressions:function(t){return t.length>10?Hn(t):e.reduceLeft(t,A.createComma)},getInternalName:function(e,t,r){return ri(e,t,r,49152)},getLocalName:function(e,t,r){return ri(e,t,r,16384)},getExportName:ni,getDeclarationName:function(e,t,r){return ri(e,t,r)},getNamespaceMemberName:ii,getExternalModuleOrNamespaceExportName:function(t,r,n,i){return t&&e.hasSyntacticModifier(r,1)?ii(t,ri(r),n,i):ni(r,n,i)},restoreOuterExpressions:function t(r,n,i){return void 0===i&&(i=15),r&&e.isOuterExpression(r,i)&&(a=r,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?function(e,t){switch(e.kind){case 210:return Et(e,t);case 209:return Dt(e,e.type,t);case 227:return qt(e,t,e.type);case 228:return Yt(e,t);case 345:return Wn(e,t)}}(r,t(r.expression,n)):n;var a},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=yr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);return i&&i(n),a},createUseStrictPrologue:ai,copyPrologue:function(e,t,r,n){return si(e,t,oi(e,t,r),n)},copyStandardPrologue:oi,copyCustomPrologue:si,ensureUseStrict:function(t){return e.findUseStrictPrologue(t)?t:e.setTextRange(N(i([ai()],t,!0)),t)},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||er(t)},mergeLexicalEnvironment:function(t,r){if(!e.some(r))return t;var n=ci(t,e.isPrologueDirective,0),a=ci(t,e.isHoistedFunction,n),o=ci(t,e.isHoistedVariableStatement,a),s=ci(r,e.isPrologueDirective,0),c=ci(r,e.isHoistedFunction,s),l=ci(r,e.isHoistedVariableStatement,c),u=ci(r,e.isCustomPrologue,l);e.Debug.assert(u===r.length,"Expected declarations to be valid standard or custom prologues");var _=e.isNodeArray(t)?t.slice():t;if(u>l&&_.splice.apply(_,i([o,0],r.slice(l,u),!1)),l>c&&_.splice.apply(_,i([a,0],r.slice(c,l),!1)),c>s&&_.splice.apply(_,i([n,0],r.slice(s,c),!1)),s>0)if(0===n)_.splice.apply(_,i([0,0],r.slice(0,s),!1));else{for(var d=new e.Map,p=0;p<n;p++){var f=t[p];d.set(f.expression.text,!0)}for(p=s-1;p>=0;p--){var g=r[p];d.has(g.expression.text)||_.unshift(g)}}return e.isNodeArray(t)?e.setTextRange(N(_,t.hasTrailingComma),t):t},updateModifiers:function(t,r){var n;return"number"==typeof r&&(r=ae(r)),e.isParameter(t)?ue(t,t.decorators,r,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?pe(t,r,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?ge(t,t.decorators,r,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?ye(t,r,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?ve(t,t.decorators,r,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?De(t,t.decorators,r,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ee(t,t.decorators,r,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Ce(t,t.decorators,r,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Fe(t,t.decorators,r,t.parameters,t.type):e.isFunctionExpression(t)?Ct(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?At(t,r,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?zt(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?rr(t,r,t.declarationList):e.isFunctionDeclaration(t)?Sr(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Tr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?kr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Nr(t,t.decorators,r,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?wr(t,t.decorators,r,t.name,t.members):e.isModuleDeclaration(t)?Ir(t,t.decorators,r,t.name,t.body):e.isImportEqualsDeclaration(t)?Br(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?Jr(t,t.decorators,r,t.importClause,t.moduleSpecifier):e.isExportAssignment(t)?qr(t,t.decorators,r,t.expression):e.isExportDeclaration(t)?Yr(t,t.decorators,r,t.isTypeOnly,t.exportClause,t.moduleSpecifier):e.Debug.assertNever(t)}};return A;function N(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===r||t.hasTrailingComma===r)return void 0===t.transformFlags&&p(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.slice();return n.pos=t.pos,n.end=t.end,n.hasTrailingComma=r,n.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(n),n}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!r,p(a),e.Debug.attachNodeArrayDebugInfo(a),a}function F(e){return a.createBaseNode(e)}function w(e,t,r){var n=F(e);return n.decorators=li(t),n.modifiers=li(r),n.transformFlags|=d(n.decorators)|d(n.modifiers),n.symbol=void 0,n.localSymbol=void 0,n.locals=void 0,n.nextContainer=void 0,n}function P(t,r,n,i){var a=w(t,r,n);if(i=ui(i),a.name=i,i)switch(a.kind){case 167:case 170:case 171:case 165:case 291:if(e.isIdentifier(i)){a.transformFlags|=u(i);break}default:a.transformFlags|=_(i)}return a}function I(e,t,r,n,i){var a=P(e,t,r,n);return a.typeParameters=li(i),a.transformFlags|=d(a.typeParameters),i&&(a.transformFlags|=1),a}function O(e,t,r,n,i,a,o){var s=I(e,t,r,n,i);return s.parameters=N(a),s.type=o,s.transformFlags|=d(s.parameters)|_(s.type),o&&(s.transformFlags|=1),s}function L(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),f(e,t)}function M(e,t,r,n,i,a,o,s){var c=O(e,t,r,n,i,a,o);return c.body=s,c.transformFlags|=-16777217&_(c.body),s||(c.transformFlags|=1),c}function R(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),L(e,t)}function B(e,t,r,n,i,a){var o=I(e,t,r,n,i);return o.heritageClauses=li(a),o.transformFlags|=d(o.heritageClauses),o}function j(e,t,r,n,i,a,o){var s=B(e,t,r,n,i,a);return s.members=N(o),s.transformFlags|=d(s.members),s}function J(e,t,r,n,i){var a=P(e,t,r,n);return a.initializer=i,a.transformFlags|=_(a.initializer),a}function V(e,t,r,n,i,a){var o=J(e,t,r,n,a);return o.type=i,o.transformFlags|=_(i),i&&(o.transformFlags|=1),o}function U(e,t){var r=Z(e);return r.text=t,r}function K(e,t){void 0===t&&(t=0);var r=U(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=512),r}function z(t){var r=U(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function G(e,t){var r=U(10,e);return r.singleQuote=t,r}function W(e,t,r){var n=G(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=512),n}function q(e){return U(13,e)}function H(t,r){void 0===r&&t&&(r=e.stringToToken(t)),79===r&&(r=void 0);var n=a.createBaseIdentifierNode(79);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function Y(e,t){var r=H(e,void 0);return r.autoGenerateFlags=t,r.autoGenerateId=n,n++,r}function X(e,t,r){var n=H(e,r);return t&&(n.typeArguments=N(t)),131===n.originalKeywordKind&&(n.transformFlags|=16777216),n}function Q(e,t){var r=1;t&&(r|=8);var n=Y("",r);return e&&e(n),n}function $(t,r){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags");var n=Y(t&&e.isIdentifier(t)?e.idText(t):"",4|r);return n.original=t,n}function Z(e){return a.createBaseTokenNode(e)}function ee(t){e.Debug.assert(t>=0&&t<=158,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=Z(t),n=0;switch(t){case 130:n=192;break;case 123:case 121:case 122:case 143:case 126:case 134:case 85:case 129:case 145:case 156:case 142:case 146:case 157:case 148:case 132:case 149:case 114:case 153:case 151:n=1;break;case 106:n=33554944;break;case 124:n=512;break;case 108:n=8192}return n&&(r.transformFlags|=n),r}function te(){return ee(108)}function re(){return ee(110)}function ne(){return ee(95)}function ie(e){return ee(e)}function ae(e){var t=[];return 1&e&&t.push(ie(93)),2&e&&t.push(ie(134)),512&e&&t.push(ie(88)),2048&e&&t.push(ie(85)),4&e&&t.push(ie(123)),8&e&&t.push(ie(121)),16&e&&t.push(ie(122)),128&e&&t.push(ie(126)),32&e&&t.push(ie(124)),16384&e&&t.push(ie(157)),64&e&&t.push(ie(143)),256&e&&t.push(ie(130)),t}function oe(e,t){var r=F(159);return r.left=e,r.right=ui(t),r.transformFlags|=_(r.left)|u(r.right),r}function se(e){var t=F(160);return t.expression=g().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=66048|_(t.expression),t}function ce(e,t,r){var n=P(161,void 0,void 0,e);return n.constraint=t,n.default=r,n.transformFlags=1,n}function le(t,r,n,i,a,o,s){var c=V(162,t,r,i,o,s&&g().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=n,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=_(c.dotDotDotToken)|_(c.questionToken),a&&(c.transformFlags|=1),16476&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=4096),(s||n)&&(c.transformFlags|=512)),c}function ue(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?f(le(t,r,n,i,a,o,s),e):e}function _e(e){var t=F(163);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=4097|_(t.expression),t}function de(e,t,r,n){var i=P(164,void 0,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i}function pe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(de(t,r,n,i),e):e}function fe(t,r,n,i,a,o){var s=V(165,t,r,n,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=_(s.questionToken)|_(s.exclamationToken)|8388608,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=4096),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function ge(t,r,n,i,a,o,s){return t.decorators!==r||t.modifiers!==n||t.name!==i||t.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||t.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||t.type!==o||t.initializer!==s?f(fe(r,n,i,a,o,s),t):t}function me(e,t,r,n,i,a){var o=O(166,void 0,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function ye(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?L(me(t,r,n,i,a,o),e):e}function he(t,r,n,i,a,o,s,c,l){var u=M(167,t,r,i,o,s,c,l);return u.asteriskToken=n,u.questionToken=a,u.transformFlags|=_(u.asteriskToken)|_(u.questionToken)|512,a&&(u.transformFlags|=1),256&e.modifiersToFlags(u.modifiers)?u.transformFlags|=n?64:128:n&&(u.transformFlags|=1024),u}function ve(e,t,r,n,i,a,o,s,c,l){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?R(he(t,r,n,i,a,o,s,c,l),e):e}function be(e,t,r){var n=I(168,e,t,void 0,void 0);return n.body=r,n.transformFlags=8388608|_(r),n}function xe(e,t,r,n){var i=M(169,e,t,void 0,void 0,r,void 0,n);return i.transformFlags|=512,i}function De(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?R(xe(t,r,n,i),e):e}function Se(e,t,r,n,i,a){return M(170,e,t,r,void 0,n,i,a)}function Ee(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?R(Se(t,r,n,i,a,o),e):e}function Te(e,t,r,n,i){return M(171,e,t,r,void 0,n,void 0,i)}function Ce(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?R(Te(t,r,n,i,a),e):e}function ke(e,t,r){var n=O(172,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ae(e,t,r){var n=O(173,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ne(e,t,r,n){var i=O(174,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function Fe(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?L(Ne(t,r,n,i),e):e}function we(e,t){var r=F(197);return r.type=e,r.literal=t,r.transformFlags=1,r}function Pe(e,t,r){var n=F(175);return n.assertsModifier=e,n.parameterName=ui(t),n.type=r,n.transformFlags=1,n}function Ie(e,t){var r=F(176);return r.typeName=ui(e),r.typeArguments=t&&g().parenthesizeTypeArguments(N(t)),r.transformFlags=1,r}function Oe(e,t,r){var n=O(177,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Le(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 4===t.length?Me.apply(void 0,t):3===t.length?Re.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")}function Me(e,t,r,n){var i=O(178,void 0,e,void 0,t,r,n);return i.transformFlags=1,i}function Re(e,t,r){return Me(void 0,e,t,r)}function Be(e,t,r,n,i){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i?L(Le(t,r,n,i),e):e}function je(e,t,r,n){return Be(e,e.modifiers,t,r,n)}function Je(e){var t=F(179);return t.exprName=e,t.transformFlags=1,t}function Ve(e){var t=F(180);return t.members=N(e),t.transformFlags=1,t}function Ue(e){var t=F(181);return t.elementType=g().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Ke(e){var t=F(182);return t.elements=N(e),t.transformFlags=1,t}function ze(e,t,r,n){var i=F(195);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function Ge(e){var t=F(183);return t.type=g().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function We(e){var t=F(184);return t.type=e,t.transformFlags=1,t}function qe(e,t){var r=F(e);return r.types=g().parenthesizeConstituentTypesOfUnionOrIntersectionType(t),r.transformFlags=1,r}function He(e,t){return e.types!==t?f(qe(e.kind,t),e):e}function Ye(e,t,r,n){var i=F(187);return i.checkType=g().parenthesizeMemberOfConditionalType(e),i.extendsType=g().parenthesizeMemberOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function Xe(e){var t=F(188);return t.typeParameter=e,t.transformFlags=1,t}function Qe(e,t){var r=F(196);return r.head=e,r.templateSpans=N(t),r.transformFlags=1,r}function $e(e,t,r,n){void 0===n&&(n=!1);var i=F(198);return i.argument=e,i.qualifier=t,i.typeArguments=r&&g().parenthesizeTypeArguments(r),i.isTypeOf=n,i.transformFlags=1,i}function Ze(e){var t=F(189);return t.type=e,t.transformFlags=1,t}function et(e,t){var r=F(191);return r.operator=e,r.type=g().parenthesizeMemberOfElementType(t),r.transformFlags=1,r}function tt(e,t){var r=F(192);return r.objectType=g().parenthesizeMemberOfElementType(e),r.indexType=t,r.transformFlags=1,r}function rt(e,t,r,n,i){var a=F(193);return a.readonlyToken=e,a.typeParameter=t,a.nameType=r,a.questionToken=n,a.type=i,a.transformFlags=1,a}function nt(e){var t=F(194);return t.literal=e,t.transformFlags=1,t}function it(e){var t=F(199);return t.elements=N(e),t.transformFlags|=262656|d(t.elements),16384&t.transformFlags&&(t.transformFlags|=32832),t}function at(e){var t=F(200);return t.elements=N(e),t.transformFlags|=262656|d(t.elements),t}function ot(t,r,n,i){var a=J(201,void 0,void 0,n,i&&g().parenthesizeExpressionForDisallowedComma(i));return a.propertyName=ui(r),a.dotDotDotToken=t,a.transformFlags|=512|_(a.dotDotDotToken),a.propertyName&&(a.transformFlags|=e.isIdentifier(a.propertyName)?u(a.propertyName):_(a.propertyName)),t&&(a.transformFlags|=16384),a}function st(e){return F(e)}function ct(t,r){var n=st(202),i=t&&e.lastOrUndefined(t),a=N(t,!(!i||!e.isOmittedExpression(i))||void 0);return n.elements=g().parenthesizeExpressionsOfCommaDelimitedList(a),n.multiLine=r,n.transformFlags|=d(n.elements),n}function lt(e,t){var r=st(203);return r.properties=N(e),r.multiLine=t,r.transformFlags|=d(r.properties),r}function ut(t,r){var n=st(204);return n.expression=g().parenthesizeLeftSideOfAccess(t),n.name=ui(r),n.transformFlags=_(n.expression)|(e.isIdentifier(n.name)?u(n.name):_(n.name)),e.isSuperKeyword(t)&&(n.transformFlags|=192),n}function _t(t,r,n){var i=st(204);return i.flags|=32,i.expression=g().parenthesizeLeftSideOfAccess(t),i.questionDotToken=r,i.name=ui(n),i.transformFlags|=16|_(i.expression)|_(i.questionDotToken)|(e.isIdentifier(i.name)?u(i.name):_(i.name)),i}function dt(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),t.expression!==r||t.questionDotToken!==n||t.name!==i?f(_t(r,n,i),t):t}function pt(t,r){var n=st(205);return n.expression=g().parenthesizeLeftSideOfAccess(t),n.argumentExpression=_i(r),n.transformFlags|=_(n.expression)|_(n.argumentExpression),e.isSuperKeyword(t)&&(n.transformFlags|=192),n}function ft(e,t,r){var n=st(205);return n.flags|=32,n.expression=g().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.argumentExpression=_i(r),n.transformFlags|=_(n.expression)|_(n.questionDotToken)|_(n.argumentExpression)|16,n}function gt(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),t.expression!==r||t.questionDotToken!==n||t.argumentExpression!==i?f(ft(r,n,i),t):t}function mt(t,r,n){var i=st(206);return i.expression=g().parenthesizeLeftSideOfAccess(t),i.typeArguments=li(r),i.arguments=g().parenthesizeExpressionsOfCommaDelimitedList(N(n)),i.transformFlags|=_(i.expression)|d(i.typeArguments)|d(i.arguments),i.typeArguments&&(i.transformFlags|=1),e.isImportKeyword(i.expression)?i.transformFlags|=4194304:e.isSuperProperty(i.expression)&&(i.transformFlags|=8192),i}function yt(t,r,n,i){var a=st(206);return a.flags|=32,a.expression=g().parenthesizeLeftSideOfAccess(t),a.questionDotToken=r,a.typeArguments=li(n),a.arguments=g().parenthesizeExpressionsOfCommaDelimitedList(N(i)),a.transformFlags|=_(a.expression)|_(a.questionDotToken)|d(a.typeArguments)|d(a.arguments)|16,a.typeArguments&&(a.transformFlags|=1),e.isSuperProperty(a.expression)&&(a.transformFlags|=8192),a}function ht(t,r,n,i,a){return e.Debug.assert(!!(32&t.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),t.expression!==r||t.questionDotToken!==n||t.typeArguments!==i||t.arguments!==a?f(yt(r,n,i,a),t):t}function vt(e,t,r){var n=st(207);return n.expression=g().parenthesizeExpressionOfNew(e),n.typeArguments=li(t),n.arguments=r?g().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=_(n.expression)|d(n.typeArguments)|d(n.arguments)|16,n.typeArguments&&(n.transformFlags|=1),n}function bt(t,r,n){var i=st(208);return i.tag=g().parenthesizeLeftSideOfAccess(t),i.typeArguments=li(r),i.template=n,i.transformFlags|=_(i.tag)|d(i.typeArguments)|_(i.template)|512,i.typeArguments&&(i.transformFlags|=1),e.hasInvalidEscape(i.template)&&(i.transformFlags|=64),i}function xt(e,t){var r=st(209);return r.expression=g().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=_(r.expression)|_(r.type)|1,r}function Dt(e,t,r){return e.type!==t||e.expression!==r?f(xt(t,r),e):e}function St(e){var t=st(210);return t.expression=e,t.transformFlags=_(t.expression),t}function Et(e,t){return e.expression!==t?f(St(t),e):e}function Tt(t,r,n,i,a,o,s){var c=M(211,void 0,t,n,i,a,o,s);return c.asteriskToken=r,c.transformFlags|=_(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=64:c.transformFlags|=128:c.asteriskToken&&(c.transformFlags|=1024),c}function Ct(e,t,r,n,i,a,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?R(Tt(t,r,n,i,a,o,s),e):e}function kt(t,r,n,i,a,o){var s=M(212,void 0,t,void 0,r,n,i,g().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=a?a:ee(38),s.transformFlags|=512|_(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8320),s}function At(e,t,r,n,i,a,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?R(kt(t,r,n,i,a,o),e):e}function Nt(e){var t=st(213);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=_(t.expression),t}function Ft(e){var t=st(214);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=_(t.expression),t}function wt(e){var t=st(215);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=_(t.expression),t}function Pt(e){var t=st(216);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=1048768|_(t.expression),t}function It(t,r){var n=st(217);return n.operator=t,n.operand=g().parenthesizeOperandOfPrefixUnary(r),n.transformFlags|=_(n.operand),45!==t&&46!==t||!e.isIdentifier(n.operand)||e.isGeneratedIdentifier(n.operand)||e.isLocalName(n.operand)||(n.transformFlags|=67108864),n}function Ot(t,r){var n=st(218);return n.operator=r,n.operand=g().parenthesizeOperandOfPostfixUnary(t),n.transformFlags|=_(n.operand),!e.isIdentifier(n.operand)||e.isGeneratedIdentifier(n.operand)||e.isLocalName(n.operand)||(n.transformFlags|=67108864),n}function Lt(t,r,n){var i,a=st(219),o="number"==typeof(i=r)?ee(i):i,s=o.kind;return a.left=g().parenthesizeLeftSideOfBinary(s,t),a.operatorToken=o,a.right=g().parenthesizeRightSideOfBinary(s,a.left,n),a.transformFlags|=_(a.left)|_(a.operatorToken)|_(a.right),60===s?a.transformFlags|=16:63===s?e.isObjectLiteralExpression(a.left)?a.transformFlags|=2624|Mt(a.left):e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=2560|Mt(a.left)):42===s||67===s?a.transformFlags|=256:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=8),a}function Mt(t){if(32768&t.transformFlags)return 32768;if(64&t.transformFlags)for(var r=0,n=e.getElementsOfBindingOrAssignmentPattern(t);r<n.length;r++){var i=n[r],a=e.getTargetOfBindingOrAssignmentElement(i);if(a&&e.isAssignmentPattern(a)){if(32768&a.transformFlags)return 32768;if(64&a.transformFlags){var o=Mt(a);if(o)return o}}}return 0}function Rt(e,t,r,n,i){var a=st(220);return a.condition=g().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:ee(57),a.whenTrue=g().parenthesizeBranchOfConditionalExpression(r),a.colonToken=null!=n?n:ee(58),a.whenFalse=g().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=_(a.condition)|_(a.questionToken)|_(a.whenTrue)|_(a.colonToken)|_(a.whenFalse),a}function Bt(e,t){var r=st(221);return r.head=e,r.templateSpans=N(t),r.transformFlags|=_(r.head)|d(r.templateSpans)|512,r}function jt(r,n,i,a){void 0===a&&(a=0),e.Debug.assert(!(-2049&a),"Unsupported template flags.");var o=void 0;if(void 0!==i&&i!==n&&(o=function(r,n){switch(t||(t=e.createScanner(99,!1,0)),r){case 14:t.setText("`"+n+"`");break;case 15:t.setText("`"+n+"${");break;case 16:t.setText("}"+n+"${");break;case 17:t.setText("}"+n+"`")}var i,a=t.scan();if(19===a&&(a=t.reScanTemplateToken(!1)),t.isUnterminated())return t.setText(void 0),l;switch(a){case 14:case 15:case 16:case 17:i=t.getTokenValue()}return void 0===i||1!==t.scan()?(t.setText(void 0),l):(t.setText(void 0),i)}(r,i),"object"==typeof o))return e.Debug.fail("Invalid raw text");if(void 0===n){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");n=o}else void 0!==o&&e.Debug.assert(n===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return Jt(r,n,i,a)}function Jt(e,t,r,n){var i=Z(e);return i.text=t,i.rawText=r,i.templateFlags=2048&n,i.transformFlags|=512,i.templateFlags&&(i.transformFlags|=64),i}function Vt(t,r){e.Debug.assert(!t||!!r,"A `YieldExpression` with an asteriskToken must have an expression.");var n=st(222);return n.expression=r&&g().parenthesizeExpressionForDisallowedComma(r),n.asteriskToken=t,n.transformFlags|=_(n.expression)|_(n.asteriskToken)|524864,n}function Ut(e){var t=st(223);return t.expression=g().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=16896|_(t.expression),t}function Kt(e,t,r,n,i,a){var o=j(224,e,t,r,n,i,a);return o.transformFlags|=512,o}function zt(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(Kt(t,r,n,i,a,o),e):e}function Gt(e,t){var r=F(226);return r.expression=g().parenthesizeLeftSideOfAccess(e),r.typeArguments=t&&g().parenthesizeTypeArguments(t),r.transformFlags|=_(r.expression)|d(r.typeArguments)|512,r}function Wt(e,t){var r=st(227);return r.expression=e,r.type=t,r.transformFlags|=_(r.expression)|_(r.type)|1,r}function qt(e,t,r){return e.expression!==t||e.type!==r?f(Wt(t,r),e):e}function Ht(e){var t=st(228);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|_(t.expression),t}function Yt(t,r){return e.isNonNullChain(t)?Qt(t,r):t.expression!==r?f(Ht(r),t):t}function Xt(e){var t=st(228);return t.flags|=32,t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|_(t.expression),t}function Qt(t,r){return e.Debug.assert(!!(32&t.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==r?f(Xt(r),t):t}function $t(t,r){var n=st(229);switch(n.keywordToken=t,n.name=r,n.transformFlags|=_(n.name),t){case 103:n.transformFlags|=512;break;case 100:n.transformFlags|=4;break;default:return e.Debug.assertNever(t)}return n}function Zt(e,t){var r=F(231);return r.expression=e,r.literal=t,r.transformFlags|=_(r.expression)|_(r.literal)|512,r}function er(e,t){var r=F(233);return r.statements=N(e),r.multiLine=t,r.transformFlags|=d(r.statements),r}function tr(t,r){var n=w(235,void 0,t);return n.declarationList=e.isArray(r)?xr(r):r,n.transformFlags|=_(n.declarationList),2&e.modifiersToFlags(n.modifiers)&&(n.transformFlags=1),n}function rr(e,t,r){return e.modifiers!==t||e.declarationList!==r?f(tr(t,r),e):e}function nr(){return F(234)}function ir(e){var t=F(236);return t.expression=g().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=_(t.expression),t}function ar(e,t,r){var n=F(237);return n.expression=e,n.thenStatement=di(t),n.elseStatement=di(r),n.transformFlags|=_(n.expression)|_(n.thenStatement)|_(n.elseStatement),n}function or(e,t){var r=F(238);return r.statement=di(e),r.expression=t,r.transformFlags|=_(r.statement)|_(r.expression),r}function sr(e,t){var r=F(239);return r.expression=e,r.statement=di(t),r.transformFlags|=_(r.expression)|_(r.statement),r}function cr(e,t,r,n){var i=F(240);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=di(n),i.transformFlags|=_(i.initializer)|_(i.condition)|_(i.incrementor)|_(i.statement),i}function lr(e,t,r){var n=F(241);return n.initializer=e,n.expression=t,n.statement=di(r),n.transformFlags|=_(n.initializer)|_(n.expression)|_(n.statement),n}function ur(e,t,r,n){var i=F(242);return i.awaitModifier=e,i.initializer=t,i.expression=g().parenthesizeExpressionForDisallowedComma(r),i.statement=di(n),i.transformFlags|=_(i.awaitModifier)|_(i.initializer)|_(i.expression)|_(i.statement)|512,e&&(i.transformFlags|=64),i}function _r(e){var t=F(243);return t.label=ui(e),t.transformFlags|=2097152|_(t.label),t}function dr(e){var t=F(244);return t.label=ui(e),t.transformFlags|=2097152|_(t.label),t}function pr(e){var t=F(245);return t.expression=e,t.transformFlags|=2097216|_(t.expression),t}function fr(e,t){var r=F(246);return r.expression=e,r.statement=di(t),r.transformFlags|=_(r.expression)|_(r.statement),r}function gr(e,t){var r=F(247);return r.expression=g().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=_(r.expression)|_(r.caseBlock),r}function mr(e,t){var r=F(248);return r.label=ui(e),r.statement=di(t),r.transformFlags|=_(r.label)|_(r.statement),r}function yr(e,t,r){return e.label!==t||e.statement!==r?f(mr(t,r),e):e}function hr(e){var t=F(249);return t.expression=e,t.transformFlags|=_(t.expression),t}function vr(e,t,r){var n=F(250);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=_(n.tryBlock)|_(n.catchClause)|_(n.finallyBlock),n}function br(e,t,r,n){var i=V(252,void 0,void 0,e,r,n&&g().parenthesizeExpressionForDisallowedComma(n));return i.exclamationToken=t,i.transformFlags|=_(i.exclamationToken),t&&(i.transformFlags|=1),i}function xr(e,t){void 0===t&&(t=0);var r=F(253);return r.flags|=3&t,r.declarations=N(e),r.transformFlags|=2097152|d(r.declarations),3&t&&(r.transformFlags|=131584),r}function Dr(t,r,n,i,a,o,s,c){var l=M(254,t,r,i,a,o,s,c);return l.asteriskToken=n,!l.body||2&e.modifiersToFlags(l.modifiers)?l.transformFlags=1:(l.transformFlags|=2097152|_(l.asteriskToken),256&e.modifiersToFlags(l.modifiers)?l.asteriskToken?l.transformFlags|=64:l.transformFlags|=128:l.asteriskToken&&(l.transformFlags|=1024)),l}function Sr(e,t,r,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?R(Dr(t,r,n,i,a,o,s,c),e):e}function Er(t,r,n,i,a,o){var s=j(255,t,r,n,i,a,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=512,4096&s.transformFlags&&(s.transformFlags|=1)),s}function Tr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(Er(t,r,n,i,a,o),e):e}function Cr(e,t,r,n,i,a){var o=B(256,e,t,r,n,i);return o.members=N(a),o.transformFlags=1,o}function kr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(Cr(t,r,n,i,a,o),e):e}function Ar(e,t,r,n,i){var a=I(257,e,t,r,n);return a.type=i,a.transformFlags=1,a}function Nr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?f(Ar(t,r,n,i,a),e):e}function Fr(e,t,r,n){var i=P(258,e,t,r);return i.members=N(n),i.transformFlags|=1|d(i.members),i.transformFlags&=-16777217,i}function wr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?f(Fr(t,r,n,i),e):e}function Pr(t,r,n,i,a){void 0===a&&(a=0);var o=w(259,t,r);return o.flags|=1044&a,o.name=n,o.body=i,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=_(o.name)|_(o.body)|1,o.transformFlags&=-16777217,o}function Ir(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?f(Pr(t,r,n,i,e.flags),e):e}function Or(e){var t=F(260);return t.statements=N(e),t.transformFlags|=d(t.statements),t}function Lr(e){var t=F(261);return t.clauses=N(e),t.transformFlags|=d(t.clauses),t}function Mr(e){var t=P(262,void 0,void 0,e);return t.transformFlags=1,t}function Rr(t,r,n,i,a){var o=P(263,t,r,i);return o.isTypeOnly=n,o.moduleReference=a,o.transformFlags|=_(o.moduleReference),e.isExternalModuleReference(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-16777217,o}function Br(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.name!==i||e.moduleReference!==a?f(Rr(t,r,n,i,a),e):e}function jr(e,t,r,n){var i=w(264,e,t);return i.importClause=r,i.moduleSpecifier=n,i.transformFlags|=_(i.importClause)|_(i.moduleSpecifier),i.transformFlags&=-16777217,i}function Jr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i?f(jr(t,r,n,i),e):e}function Vr(e,t,r){var n=F(265);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=_(n.name)|_(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-16777217,n}function Ur(e){var t=F(266);return t.name=e,t.transformFlags|=_(t.name),t.transformFlags&=-16777217,t}function Kr(e){var t=F(272);return t.name=e,t.transformFlags|=4|_(t.name),t.transformFlags&=-16777217,t}function zr(e){var t=F(267);return t.elements=N(e),t.transformFlags|=d(t.elements),t.transformFlags&=-16777217,t}function Gr(e,t){var r=F(268);return r.propertyName=e,r.name=t,r.transformFlags|=_(r.propertyName)|_(r.name),r.transformFlags&=-16777217,r}function Wr(e,t,r,n){var i=w(269,e,t);return i.isExportEquals=r,i.expression=r?g().parenthesizeRightSideOfBinary(63,void 0,n):g().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=_(i.expression),i.transformFlags&=-16777217,i}function qr(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?f(Wr(t,r,e.isExportEquals,n),e):e}function Hr(e,t,r,n,i){var a=w(270,e,t);return a.isTypeOnly=r,a.exportClause=n,a.moduleSpecifier=i,a.transformFlags|=_(a.exportClause)|_(a.moduleSpecifier),a.transformFlags&=-16777217,a}function Yr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.exportClause!==i||e.moduleSpecifier!==a?f(Hr(t,r,n,i,a),e):e}function Xr(e){var t=F(271);return t.elements=N(e),t.transformFlags|=d(t.elements),t.transformFlags&=-16777217,t}function Qr(e,t){var r=F(273);return r.propertyName=ui(e),r.name=ui(t),r.transformFlags|=_(r.propertyName)|_(r.name),r.transformFlags&=-16777217,r}function $r(e){var t=F(275);return t.expression=e,t.transformFlags|=_(t.expression),t.transformFlags&=-16777217,t}function Zr(e,t){var r=F(e);return r.type=t,r}function en(e,t){return O(312,void 0,void 0,void 0,void 0,e,t)}function tn(e,t){void 0===t&&(t=!1);var r=F(317);return r.jsDocPropertyTags=li(e),r.isArrayType=t,r}function rn(e){var t=F(304);return t.type=e,t}function nn(e,t,r){var n=F(318);return n.typeParameters=li(e),n.parameters=N(t),n.type=r,n}function an(t){var r=c(t.kind);return t.tagName.escapedText===e.escapeLeadingUnderscores(r)?t.tagName:X(r)}function on(e,t,r){var n=F(e);return n.tagName=t,n.comment=r,n}function sn(e,t,r,n){var i=on(339,null!=e?e:X("template"),n);return i.constraint=t,i.typeParameters=N(r),i}function cn(t,r,n,i){var a=on(340,null!=t?t:X("typedef"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function ln(e,t,r,n,i,a){var o=on(335,null!=e?e:X("param"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function un(e,t,r,n,i,a){var o=on(342,null!=e?e:X("prop"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function _n(t,r,n,i){var a=on(333,null!=t?t:X("callback"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function dn(e,t,r){var n=on(323,null!=e?e:X("augments"),r);return n.class=t,n}function pn(e,t,r){var n=on(324,null!=e?e:X("implements"),r);return n.class=t,n}function fn(e,t,r){var n=on(341,null!=e?e:X("see"),r);return n.name=t,n}function gn(e){var t=F(305);return t.name=e,t}function mn(e,t){var r=F(306);return r.left=e,r.right=t,r.transformFlags|=_(r.left)|_(r.right),r}function yn(e,t){var r=F(319);return r.name=e,r.text=t,r}function hn(e,t){var r=F(320);return r.name=e,r.text=t,r}function vn(e,t){var r=F(321);return r.name=e,r.text=t,r}function bn(e,t,r){return on(e,null!=t?t:X(c(e)),r)}function xn(e,t,r,n){var i=on(e,null!=t?t:X(c(e)),n);return i.typeExpression=r,i}function Dn(e,t){return on(322,e,t)}function Sn(e){var t=F(316);return t.text=e,t}function En(e,t){var r=F(315);return r.comment=e,r.tags=li(t),r}function Tn(e,t,r){var n=F(276);return n.openingElement=e,n.children=N(t),n.closingElement=r,n.transformFlags|=_(n.openingElement)|d(n.children)|_(n.closingElement)|2,n}function Cn(e,t,r){var n=F(277);return n.tagName=e,n.typeArguments=li(t),n.attributes=r,n.transformFlags|=_(n.tagName)|d(n.typeArguments)|_(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function kn(e,t,r){var n=F(278);return n.tagName=e,n.typeArguments=li(t),n.attributes=r,n.transformFlags|=_(n.tagName)|d(n.typeArguments)|_(n.attributes)|2,t&&(n.transformFlags|=1),n}function An(e){var t=F(279);return t.tagName=e,t.transformFlags|=2|_(t.tagName),t}function Nn(e,t,r){var n=F(280);return n.openingFragment=e,n.children=N(t),n.closingFragment=r,n.transformFlags|=_(n.openingFragment)|d(n.children)|_(n.closingFragment)|2,n}function Fn(e,t){var r=F(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function wn(e,t){var r=F(283);return r.name=e,r.initializer=t,r.transformFlags|=_(r.name)|_(r.initializer)|2,r}function Pn(e){var t=F(284);return t.properties=N(e),t.transformFlags|=2|d(t.properties),t}function In(e){var t=F(285);return t.expression=e,t.transformFlags|=2|_(t.expression),t}function On(e,t){var r=F(286);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=_(r.dotDotDotToken)|_(r.expression)|2,r}function Ln(e,t){var r=F(287);return r.expression=g().parenthesizeExpressionForDisallowedComma(e),r.statements=N(t),r.transformFlags|=_(r.expression)|d(r.statements),r}function Mn(e){var t=F(288);return t.statements=N(e),t.transformFlags=d(t.statements),t}function Rn(t,r){var n=F(289);switch(n.token=t,n.types=N(r),n.transformFlags|=d(n.types),t){case 94:n.transformFlags|=512;break;case 117:n.transformFlags|=1;break;default:return e.Debug.assertNever(t)}return n}function Bn(t,r){var n=F(290);return t=e.isString(t)?br(t,void 0,void 0,void 0):t,n.variableDeclaration=t,n.block=r,n.transformFlags|=_(n.variableDeclaration)|_(n.block),t||(n.transformFlags|=32),n}function jn(e,t){var r=P(291,void 0,void 0,e);return r.initializer=g().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=_(r.name)|_(r.initializer),r}function Jn(e,t){var r=P(292,void 0,void 0,e);return r.objectAssignmentInitializer=t&&g().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=512|_(r.objectAssignmentInitializer),r}function Vn(e){var t=F(293);return t.expression=g().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=32832|_(t.expression),t}function Un(e,t){var r=F(294);return r.name=ui(e),r.initializer=t&&g().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=_(r.name)|_(r.initializer)|1,r}function Kn(t,r){void 0===r&&(r=e.emptyArray);var n=F(301);return n.prepends=r,n.sourceFiles=t,n}function zn(e,t){var r=F(e);return r.data=t,r}function Gn(t,r){var n=F(345);return n.expression=t,n.original=r,n.transformFlags|=1|_(n.expression),e.setTextRange(n,r),n}function Wn(e,t){return e.expression!==t?f(Gn(t,e.original),e):e}function qn(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(e.isCommaListExpression(t))return t.elements;if(e.isBinaryExpression(t)&&e.isCommaToken(t.operatorToken))return[t.left,t.right]}return t}function Hn(t){var r=F(346);return r.elements=N(e.sameFlatMap(t,qn)),r.transformFlags|=d(r.elements),r}function Yn(e,t){var r=F(349);return r.expression=e,r.thisArg=t,r.transformFlags|=_(r.expression)|_(r.thisArg),r}function Xn(t){if(void 0===t)return t;var r=e.isSourceFile(t)?a.createBaseSourceFileNode(300):e.isIdentifier(t)?a.createBaseIdentifierNode(79):e.isPrivateIdentifier(t)?a.createBasePrivateIdentifierNode(80):e.isNodeKind(t.kind)?a.createBaseNode(t.kind):a.createBaseTokenNode(t.kind);for(var n in r.flags|=-9&t.flags,r.transformFlags=t.transformFlags,v(r,t),t)!r.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(r[n]=t[n]);return r}function Qn(){return wt(K("0"))}function $n(t,r,n){return e.isCallChain(t)?yt(_t(t,void 0,r),void 0,void 0,n):mt(ut(t,r),void 0,n)}function Zn(e,t,r){return $n(X(e),t,r)}function ei(e,t,r){return!!r&&(e.push(jn(t,r)),!0)}function ti(t,r){var n=e.skipParentheses(t);switch(n.kind){case 79:return r;case 108:case 8:case 9:case 10:return!1;case 202:return 0!==n.elements.length;case 203:return n.properties.length>0;default:return!0}}function ri(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(Xn(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return $(t)}function ni(e,t,r){return ri(e,t,r,8192)}function ii(t,r,n,i){var a=ut(t,e.nodeIsSynthesized(r)?r:Xn(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function ai(){return e.startOnNewLine(ir(W("use strict")))}function oi(t,r,n){e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var i,a=!1,o=0,s=t.length;o<s;){var c=t[o];if(!e.isPrologueDirective(c))break;i=c,e.isStringLiteral(i.expression)&&"use strict"===i.expression.text&&(a=!0),r.push(c),o++}return n&&!a&&r.push(ai()),o}function si(t,r,n,i,a){void 0===a&&(a=e.returnTrue);for(var o=t.length;void 0!==n&&n<o;){var s=t[n];if(!(1048576&e.getEmitFlags(s)&&a(s)))break;e.append(r,i?e.visitNode(s,i,e.isStatement):s),n++}return n}function ci(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function li(e){return e?N(e):void 0}function ui(e){return"string"==typeof e?X(e):e}function _i(e){return"string"==typeof e?W(e):"number"==typeof e?K(e):"boolean"==typeof e?e?re():ne():e}function di(t){return t&&e.isNotEmittedStatement(t)?e.setTextRange(v(nr(),t),t):t}}function o(t,r){return t!==r&&e.setTextRange(t,r),t}function s(t,r){return t!==r&&(v(t,r),e.setTextRange(t,r)),t}function c(t){switch(t){case 338:return"type";case 336:return"returns";case 337:return"this";case 334:return"enum";case 325:return"author";case 327:return"class";case 328:return"public";case 329:return"private";case 330:return"protected";case 331:return"readonly";case 332:return"override";case 339:return"template";case 340:return"typedef";case 335:return"param";case 342:return"prop";case 333:return"callback";case 323:return"augments";case 324:return"implements";default:return e.Debug.fail("Unsupported kind: "+e.Debug.formatSyntaxKind(t))}}(r=e.NodeFactoryFlags||(e.NodeFactoryFlags={}))[r.None=0]="None",r[r.NoParenthesizerRules=1]="NoParenthesizerRules",r[r.NoNodeConverters=2]="NoNodeConverters",r[r.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",r[r.NoOriginalNode=8]="NoOriginalNode",e.createNodeFactory=a;var l={};function u(e){return-16777217&_(e)}function _(t){if(!t)return 0;var r=t.transformFlags&~f(t.kind);return e.isNamedDeclaration(t)&&e.isPropertyName(t.name)?r|33562624&t.name.transformFlags:r}function d(e){return e?e.transformFlags:0}function p(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=_(n[r]);e.transformFlags=t}function f(e){if(e>=175&&e<=198)return-2;switch(e){case 206:case 207:case 202:case 199:case 200:return 536887296;case 259:return 589443072;case 162:case 209:case 227:case 345:case 210:case 106:case 204:case 205:default:return 536870912;case 212:return 557748224;case 211:case 254:return 591310848;case 253:return 537165824;case 255:case 224:return 536940544;case 169:return 591306752;case 165:return 570433536;case 167:case 170:case 171:return 574529536;case 129:case 145:case 156:case 142:case 148:case 146:case 132:case 149:case 114:case 161:case 164:case 166:case 172:case 173:case 174:case 256:case 257:return-2;case 203:return 536973312;case 290:return 536903680}}e.getTransformFlagsSubtreeExclusions=f;var g=e.createBaseNodeFactory();function m(e){return e.flags|=8,e}var y,h={createBaseSourceFileNode:function(e){return m(g.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return m(g.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return m(g.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return m(g.createBaseTokenNode(e))},createBaseNode:function(e){return m(g.createBaseNode(e))}};function v(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,l=t.constantValue,u=t.helpers,_=t.startsOnNewLine;if(r||(r={}),i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments)),a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments)),n&&(r.flags=-268435457&n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=function(e,t){for(var r in t||(t=[]),e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges)),void 0!==l&&(r.constantValue=l),u)for(var d=0,p=u;d<p.length;d++){var f=p[d];r.helpers=e.appendIfUnique(r.helpers,f)}return void 0!==_&&(r.startsOnNewLine=_),r}(n,t.emitNode))}return t}e.factory=a(4,h),e.createUnparsedSourceFile=function(t,r,n){var i,a,o,s,c,l,u,_,d,p;e.isString(t)?(o="",s=t,c=t.length,l=r,u=n):(e.Debug.assert("js"===r||"dts"===r),o=("js"===r?t.javascriptPath:t.declarationPath)||"",l="js"===r?t.javascriptMapPath:t.declarationMapPath,_=function(){return"js"===r?t.javascriptText:t.declarationText},d=function(){return"js"===r?t.javascriptMapText:t.declarationMapText},c=function(){return _().length},t.buildInfo&&t.buildInfo.bundle&&(e.Debug.assert(void 0===n||"boolean"==typeof n),i=n,a="js"===r?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,p=t.oldFileOfCurrentEmit));var f=p?function(t){for(var r,n,i=0,a=t.sections;i<a.length;i++){var o=a[i];switch(o.kind){case"internal":case"text":r=e.append(r,e.setTextRange(e.factory.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"lib":n=e.append(n,e.setTextRange(e.factory.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(o)}}var s=e.factory.createUnparsedSource(e.emptyArray,n,null!=r?r:e.emptyArray);return e.setEachParent(n,s),e.setEachParent(r,s),s.helpers=e.map(t.sources&&t.sources.helpers,(function(t){return e.getAllUnscopedEmitHelpers().get(t)})),s}(e.Debug.assertDefined(a)):function(t,r,n){for(var i,a,o,s,c,l,u,_,d=0,p=t?t.sections:e.emptyArray;d<p.length;d++){var f=p[d];switch(f.kind){case"prologue":i=e.append(i,e.setTextRange(e.factory.createUnparsedPrologue(f.data),f));break;case"emitHelpers":a=e.append(a,e.getAllUnscopedEmitHelpers().get(f.data));break;case"no-default-lib":_=!0;break;case"reference":o=e.append(o,{pos:-1,end:-1,fileName:f.data});break;case"type":s=e.append(s,f.data);break;case"lib":c=e.append(c,{pos:-1,end:-1,fileName:f.data});break;case"prepend":for(var g=void 0,m=0,y=f.texts;m<y.length;m++){var h=y[m];r&&"internal"===h.kind||(g=e.append(g,e.setTextRange(e.factory.createUnparsedTextLike(h.data,"internal"===h.kind),h)))}l=e.addRange(l,g),u=e.append(u,e.factory.createUnparsedPrepend(f.data,null!=g?g:e.emptyArray));break;case"internal":if(r){u||(u=[]);break}case"text":u=e.append(u,e.setTextRange(e.factory.createUnparsedTextLike(f.data,"internal"===f.kind),f));break;default:e.Debug.assertNever(f)}}if(!u){var v=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(v,0,"function"==typeof n?n():n),u=[v]}var b=e.parseNodeFactory.createUnparsedSource(null!=i?i:e.emptyArray,void 0,u);return e.setEachParent(i,b),e.setEachParent(u,b),e.setEachParent(l,b),b.hasNoDefaultLib=_,b.helpers=a,b.referencedFiles=o||e.emptyArray,b.typeReferenceDirectives=s,b.libReferenceDirectives=c||e.emptyArray,b}(a,i,c);return f.fileName=o,f.sourceMapPath=l,f.oldFileOfCurrentEmit=p,_&&d?(Object.defineProperty(f,"text",{get:_}),Object.defineProperty(f,"sourceMapText",{get:d})):(e.Debug.assert(!p),f.text=null!=s?s:"",f.sourceMapText=u),f},e.createInputFiles=function(t,r,n,i,a,o,s,c,l,u,_){var d=e.parseNodeFactory.createInputFiles();if(e.isString(t))d.javascriptText=t,d.javascriptMapPath=n,d.javascriptMapText=i,d.declarationText=r,d.declarationMapPath=a,d.declarationMapText=o,d.javascriptPath=s,d.declarationPath=c,d.buildInfoPath=l,d.buildInfo=u,d.oldFileOfCurrentEmit=_;else{var p,f=new e.Map,g=function(e){if(void 0!==e){var r=f.get(e);return void 0===r&&(r=t(e),f.set(e,void 0!==r&&r)),!1!==r?r:void 0}},m=function(e){var t=g(e);return void 0!==t?t:"/* Input file "+e+" was missing */\r\n"};d.javascriptPath=r,d.javascriptMapPath=n,d.declarationPath=e.Debug.assertDefined(i),d.declarationMapPath=a,d.buildInfoPath=o,Object.defineProperties(d,{javascriptText:{get:function(){return m(r)}},javascriptMapText:{get:function(){return g(n)}},declarationText:{get:function(){return m(e.Debug.assertDefined(i))}},declarationMapText:{get:function(){return g(a)}},buildInfo:{get:function(){return function(t){if(void 0===p){var r=g(o);p=void 0!==r&&e.getBuildInfo(r)}return p||void 0}()}}})}return d},e.createSourceMapSource=function(t,r,n){return new(y||(y=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n)},e.setOriginalNode=v}(u||(u={})),function(e){function t(r){var n;if(r.emitNode)e.Debug.assert(!(268435456&r.emitNode.flags),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(r)){if(300===r.kind)return r.emitNode={annotatedNodes:[r]};t(null!==(n=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(r))))&&void 0!==n?n:e.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(r)}r.emitNode={}}return r.emitNode}function r(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.leadingComments}function n(e,r){return t(e).leadingComments=r,e}function i(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.trailingComments}function a(e,r){return t(e).trailingComments=r,e}e.getOrCreateEmitNode=t,e.disposeEmitNodes=function(t){var r,n,i=null===(n=null===(r=e.getSourceFileOfNode(e.getParseTreeNode(t)))||void 0===r?void 0:r.emitNode)||void 0===n?void 0:n.annotatedNodes;if(i)for(var a=0,o=i;a<o.length;a++)o[a].emitNode=void 0},e.removeAllComments=function(e){var r=t(e);return r.flags|=1536,r.leadingComments=void 0,r.trailingComments=void 0,e},e.setEmitFlags=function(e,r){return t(e).flags=r,e},e.addEmitFlags=function(e,r){var n=t(e);return n.flags=n.flags|r,e},e.getSourceMapRange=function(e){var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.sourceMapRange)&&void 0!==r?r:e},e.setSourceMapRange=function(e,r){return t(e).sourceMapRange=r,e},e.getTokenSourceMapRange=function(e,t){var r,n;return null===(n=null===(r=e.emitNode)||void 0===r?void 0:r.tokenSourceMapRanges)||void 0===n?void 0:n[t]},e.setTokenSourceMapRange=function(e,r,n){var i,a=t(e);return(null!==(i=a.tokenSourceMapRanges)&&void 0!==i?i:a.tokenSourceMapRanges=[])[r]=n,e},e.getStartsOnNewLine=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.startsOnNewLine},e.setStartsOnNewLine=function(e,r){return t(e).startsOnNewLine=r,e},e.getCommentRange=function(e){var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.commentRange)&&void 0!==r?r:e},e.setCommentRange=function(e,r){return t(e).commentRange=r,e},e.getSyntheticLeadingComments=r,e.setSyntheticLeadingComments=n,e.addSyntheticLeadingComment=function(t,i,a,o){return n(t,e.append(r(t),{kind:i,pos:-1,end:-1,hasTrailingNewLine:o,text:a}))},e.getSyntheticTrailingComments=i,e.setSyntheticTrailingComments=a,e.addSyntheticTrailingComment=function(t,r,n,o){return a(t,e.append(i(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:o,text:n}))},e.moveSyntheticComments=function(e,o){n(e,r(o)),a(e,i(o));var s=t(o);return s.leadingComments=void 0,s.trailingComments=void 0,e},e.getConstantValue=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.constantValue},e.setConstantValue=function(e,r){return t(e).constantValue=r,e},e.addEmitHelper=function(r,n){var i=t(r);return i.helpers=e.append(i.helpers,n),r},e.addEmitHelpers=function(r,n){if(e.some(n))for(var i=t(r),a=0,o=n;a<o.length;a++){var s=o[a];i.helpers=e.appendIfUnique(i.helpers,s)}return r},e.removeEmitHelper=function(t,r){var n,i=null===(n=t.emitNode)||void 0===n?void 0:n.helpers;return!!i&&e.orderedRemoveItem(i,r)},e.getEmitHelpers=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.helpers},e.moveEmitHelpers=function(r,n,i){var a=r.emitNode,o=a&&a.helpers;if(e.some(o)){for(var s=t(n),c=0,l=0;l<o.length;l++){var u=o[l];i(u)?(c++,s.helpers=e.appendIfUnique(s.helpers,u)):c>0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e}}(u||(u={})),function(e){function t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(r){for(var n="",i=0;i<t.length;i++)n+=e[i],n+=r(t[i]);return n+e[e.length-1]}}var r;e.createEmitHelperFactory=function(t){var r=t.factory,n=e.memoize((function(){return e.setEmitFlags(r.createTrue(),268435456)})),a=e.memoize((function(){return e.setEmitFlags(r.createFalse(),268435456)}));return{getUnscopedHelperName:o,createDecorateHelper:function(n,i,a,s){t.requestEmitHelper(e.decorateHelper);var c=[];return c.push(r.createArrayLiteralExpression(n,!0)),c.push(i),a&&(c.push(a),s&&c.push(s)),r.createCallExpression(o("__decorate"),void 0,c)},createMetadataHelper:function(n,i){return t.requestEmitHelper(e.metadataHelper),r.createCallExpression(o("__metadata"),void 0,[r.createStringLiteral(n),i])},createParamHelper:function(n,i,a){return t.requestEmitHelper(e.paramHelper),e.setTextRange(r.createCallExpression(o("__param"),void 0,[r.createNumericLiteral(i+""),n]),a)},createAssignHelper:function(n){return t.getCompilerOptions().target>=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(e.assignHelper),r.createCallExpression(o("__assign"),void 0,n))},createAwaitHelper:function(n){return t.requestEmitHelper(e.awaitHelper),r.createCallExpression(o("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(n.emitNode||(n.emitNode={})).flags|=786432,r.createCallExpression(o("__asyncGenerator"),void 0,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(o("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return t.requestEmitHelper(e.asyncValues),r.createCallExpression(o("__asyncValues"),void 0,[n])},createRestHelper:function(n,i,a,s){t.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u<i.length-1;u++){var _=e.getPropertyNameOfBindingOrAssignmentElement(i[u]);if(_)if(e.isComputedPropertyName(_)){e.Debug.assertIsDefined(a,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var d=a[l];l++,c.push(r.createConditionalExpression(r.createTypeCheck(d,"symbol"),void 0,d,void 0,r.createAdd(d,r.createStringLiteral(""))))}else c.push(r.createStringLiteralFromNode(_))}return r.createCallExpression(o("__rest"),void 0,[n,e.setTextRange(r.createArrayLiteralExpression(c),s)])},createAwaiterHelper:function(n,i,a,s){t.requestEmitHelper(e.awaiterHelper);var c=r.createFunctionExpression(void 0,r.createToken(41),void 0,void 0,[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=786432,r.createCallExpression(o("__awaiter"),void 0,[n?r.createThis():r.createVoidZero(),i?r.createIdentifier("arguments"):r.createVoidZero(),a?e.createExpressionFromEntityName(r,a):r.createVoidZero(),c])},createExtendsHelper:function(n){return t.requestEmitHelper(e.extendsHelper),r.createCallExpression(o("__extends"),void 0,[n,r.createUniqueName("_super",48)])},createTemplateObjectHelper:function(n,i){return t.requestEmitHelper(e.templateObjectHelper),r.createCallExpression(o("__makeTemplateObject"),void 0,[n,i])},createSpreadArrayHelper:function(i,s,c){return t.requestEmitHelper(e.spreadArrayHelper),r.createCallExpression(o("__spreadArray"),void 0,[i,s,c?n():a()])},createValuesHelper:function(n){return t.requestEmitHelper(e.valuesHelper),r.createCallExpression(o("__values"),void 0,[n])},createReadHelper:function(n,i){return t.requestEmitHelper(e.readHelper),r.createCallExpression(o("__read"),void 0,void 0!==i?[n,r.createNumericLiteral(i+"")]:[n])},createGeneratorHelper:function(n){return t.requestEmitHelper(e.generatorHelper),r.createCallExpression(o("__generator"),void 0,[r.createThis(),n])},createCreateBindingHelper:function(n,a,s){return t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(o("__createBinding"),void 0,i([r.createIdentifier("exports"),n,a],s?[s]:[],!0))},createImportStarHelper:function(n){return t.requestEmitHelper(e.importStarHelper),r.createCallExpression(o("__importStar"),void 0,[n])},createImportStarCallbackHelper:function(){return t.requestEmitHelper(e.importStarHelper),o("__importStar")},createImportDefaultHelper:function(n){return t.requestEmitHelper(e.importDefaultHelper),r.createCallExpression(o("__importDefault"),void 0,[n])},createExportStarHelper:function(n,i){return void 0===i&&(i=r.createIdentifier("exports")),t.requestEmitHelper(e.exportStarHelper),t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(o("__exportStar"),void 0,[n,i])},createClassPrivateFieldGetHelper:function(n,i,a,s){var c;return t.requestEmitHelper(e.classPrivateFieldGetHelper),c=s?[n,i,r.createStringLiteral(a),s]:[n,i,r.createStringLiteral(a)],r.createCallExpression(o("__classPrivateFieldGet"),void 0,c)},createClassPrivateFieldSetHelper:function(n,i,a,s,c){var l;return t.requestEmitHelper(e.classPrivateFieldSetHelper),l=c?[n,i,a,r.createStringLiteral(s),c]:[n,i,a,r.createStringLiteral(s)],r.createCallExpression(o("__classPrivateFieldSet"),void 0,l)}};function o(t){return e.setEmitFlags(r.createIdentifier(t),4098)}},e.compareEmitHelpers=function(t,r){return t===r||t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)},e.helperString=t,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n                return c > 3 && r && Object.defineProperty(target, key, r), r;\n            };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n            var __metadata = (this && this.__metadata) || function (k, v) {\n                if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n            };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n            var __param = (this && this.__param) || function (paramIndex, decorator) {\n                return function (target, key) { decorator(target, key, paramIndex); }\n            };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n            var __assign = (this && this.__assign) || function () {\n                __assign = Object.assign || function(t) {\n                    for (var s, i = 1, n = arguments.length; i < n; i++) {\n                        s = arguments[i];\n                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                            t[p] = s[p];\n                    }\n                    return t;\n                };\n                return __assign.apply(this, arguments);\n            };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n            var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n            var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var g = generator.apply(thisArg, _arguments || []), i, q = [];\n                return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n                function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n                function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n                function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n                function fulfill(value) { resume("next", value); }\n                function reject(value) { resume("throw", value); }\n                function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n            };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n            var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n                var i, p;\n                return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n                function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n            };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n            var __asyncValues = (this && this.__asyncValues) || function (o) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var m = o[Symbol.asyncIterator], i;\n                return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n                function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n                function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n            };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n            var __rest = (this && this.__rest) || function (s, e) {\n                var t = {};\n                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n                    t[p] = s[p];\n                if (s != null && typeof Object.getOwnPropertySymbols === "function")\n                    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n                        if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n                            t[p[i]] = s[p[i]];\n                    }\n                return t;\n            };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n                function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n                return new (P || (P = Promise))(function (resolve, reject) {\n                    function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n                    function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n                    function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n                    step((generator = generator.apply(thisArg, _arguments || [])).next());\n                });\n            };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n            var __extends = (this && this.__extends) || (function () {\n                var extendStatics = function (d, b) {\n                    extendStatics = Object.setPrototypeOf ||\n                        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n                        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n                    return extendStatics(d, b);\n                };\n\n                return function (d, b) {\n                    if (typeof b !== "function" && b !== null)\n                        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n                    extendStatics(d, b);\n                    function __() { this.constructor = d; }\n                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n                };\n            })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n            var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n                if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n                return cooked;\n            };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n            var __read = (this && this.__read) || function (o, n) {\n                var m = typeof Symbol === "function" && o[Symbol.iterator];\n                if (!m) return o;\n                var i = m.call(o), r, ar = [], e;\n                try {\n                    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n                }\n                catch (error) { e = { error: error }; }\n                finally {\n                    try {\n                        if (r && !r.done && (m = i["return"])) m.call(i);\n                    }\n                    finally { if (e) throw e.error; }\n                }\n                return ar;\n            };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n            var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n                if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n                    if (ar || !(i in from)) {\n                        if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n                        ar[i] = from[i];\n                    }\n                }\n                return to.concat(ar || Array.prototype.slice.call(from));\n            };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n            var __values = (this && this.__values) || function(o) {\n                var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n                if (m) return m.call(o);\n                if (o && typeof o.length === "number") return {\n                    next: function () {\n                        if (o && i >= o.length) o = void 0;\n                        return { value: o && o[i++], done: !o };\n                    }\n                };\n                throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n            };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n            var __generator = (this && this.__generator) || function (thisArg, body) {\n                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n                return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n                function verb(n) { return function (v) { return step([n, v]); }; }\n                function step(op) {\n                    if (f) throw new TypeError("Generator is already executing.");\n                    while (_) try {\n                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n                        if (y = 0, t) op = [op[0] & 2, t.value];\n                        switch (op[0]) {\n                            case 0: case 1: t = op; break;\n                            case 4: _.label++; return { value: op[1], done: false };\n                            case 5: _.label++; y = op[1]; op = [0]; continue;\n                            case 7: op = _.ops.pop(); _.trys.pop(); continue;\n                            default:\n                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                                if (t[2]) _.ops.pop();\n                                _.trys.pop(); continue;\n                        }\n                        op = body.call(thisArg, _);\n                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n                }\n            };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:"\n            var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n                if (k2 === undefined) k2 = k;\n                Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n            }) : (function(o, m, k, k2) {\n                if (k2 === undefined) k2 = k;\n                o[k2] = m[k];\n            }));"},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n            var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n                Object.defineProperty(o, "default", { enumerable: true, value: v });\n            }) : function(o, v) {\n                o["default"] = v;\n            });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n            var __importStar = (this && this.__importStar) || function (mod) {\n                if (mod && mod.__esModule) return mod;\n                var result = {};\n                if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n                __setModuleDefault(result, mod);\n                return result;\n            };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n            var __importDefault = (this && this.__importDefault) || function (mod) {\n                return (mod && mod.__esModule) ? mod : { "default": mod };\n            };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n            var __exportStar = (this && this.__exportStar) || function(m, exports) {\n                for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n            };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n            var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n                return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n            };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n            var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n                if (kind === "m") throw new TypeError("Private method is not writable");\n                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n                return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n            };'},e.getAllUnscopedEmitHelpers=function(){return r||(r=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(o(["\n            const "," = name => super[name];"],["\n            const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(o(["\n            const "," = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"],["\n            const "," = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=function(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&0!=(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===r}}(u||(u={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 93===e.kind},e.isAsyncModifier=function(e){return 130===e.kind},e.isAssertsKeyword=function(e){return 128===e.kind},e.isAwaitKeyword=function(e){return 131===e.kind},e.isReadonlyKeyword=function(e){return 143===e.kind},e.isStaticModifier=function(e){return 124===e.kind},e.isAbstractModifier=function(e){return 126===e.kind},e.isSuperKeyword=function(e){return 106===e.kind},e.isImportKeyword=function(e){return 100===e.kind},e.isQualifiedName=function(e){return 159===e.kind},e.isComputedPropertyName=function(e){return 160===e.kind},e.isTypeParameterDeclaration=function(e){return 161===e.kind},e.isParameter=function(e){return 162===e.kind},e.isDecorator=function(e){return 163===e.kind},e.isPropertySignature=function(e){return 164===e.kind},e.isPropertyDeclaration=function(e){return 165===e.kind},e.isMethodSignature=function(e){return 166===e.kind},e.isMethodDeclaration=function(e){return 167===e.kind},e.isClassStaticBlockDeclaration=function(e){return 168===e.kind},e.isConstructorDeclaration=function(e){return 169===e.kind},e.isGetAccessorDeclaration=function(e){return 170===e.kind},e.isSetAccessorDeclaration=function(e){return 171===e.kind},e.isCallSignatureDeclaration=function(e){return 172===e.kind},e.isConstructSignatureDeclaration=function(e){return 173===e.kind},e.isIndexSignatureDeclaration=function(e){return 174===e.kind},e.isTypePredicateNode=function(e){return 175===e.kind},e.isTypeReferenceNode=function(e){return 176===e.kind},e.isFunctionTypeNode=function(e){return 177===e.kind},e.isConstructorTypeNode=function(e){return 178===e.kind},e.isTypeQueryNode=function(e){return 179===e.kind},e.isTypeLiteralNode=function(e){return 180===e.kind},e.isArrayTypeNode=function(e){return 181===e.kind},e.isTupleTypeNode=function(e){return 182===e.kind},e.isNamedTupleMember=function(e){return 195===e.kind},e.isOptionalTypeNode=function(e){return 183===e.kind},e.isRestTypeNode=function(e){return 184===e.kind},e.isUnionTypeNode=function(e){return 185===e.kind},e.isIntersectionTypeNode=function(e){return 186===e.kind},e.isConditionalTypeNode=function(e){return 187===e.kind},e.isInferTypeNode=function(e){return 188===e.kind},e.isParenthesizedTypeNode=function(e){return 189===e.kind},e.isThisTypeNode=function(e){return 190===e.kind},e.isTypeOperatorNode=function(e){return 191===e.kind},e.isIndexedAccessTypeNode=function(e){return 192===e.kind},e.isMappedTypeNode=function(e){return 193===e.kind},e.isLiteralTypeNode=function(e){return 194===e.kind},e.isImportTypeNode=function(e){return 198===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 197===e.kind},e.isTemplateLiteralTypeNode=function(e){return 196===e.kind},e.isObjectBindingPattern=function(e){return 199===e.kind},e.isArrayBindingPattern=function(e){return 200===e.kind},e.isBindingElement=function(e){return 201===e.kind},e.isArrayLiteralExpression=function(e){return 202===e.kind},e.isObjectLiteralExpression=function(e){return 203===e.kind},e.isPropertyAccessExpression=function(e){return 204===e.kind},e.isElementAccessExpression=function(e){return 205===e.kind},e.isCallExpression=function(e){return 206===e.kind},e.isNewExpression=function(e){return 207===e.kind},e.isTaggedTemplateExpression=function(e){return 208===e.kind},e.isTypeAssertionExpression=function(e){return 209===e.kind},e.isParenthesizedExpression=function(e){return 210===e.kind},e.isFunctionExpression=function(e){return 211===e.kind},e.isArrowFunction=function(e){return 212===e.kind},e.isDeleteExpression=function(e){return 213===e.kind},e.isTypeOfExpression=function(e){return 214===e.kind},e.isVoidExpression=function(e){return 215===e.kind},e.isAwaitExpression=function(e){return 216===e.kind},e.isPrefixUnaryExpression=function(e){return 217===e.kind},e.isPostfixUnaryExpression=function(e){return 218===e.kind},e.isBinaryExpression=function(e){return 219===e.kind},e.isConditionalExpression=function(e){return 220===e.kind},e.isTemplateExpression=function(e){return 221===e.kind},e.isYieldExpression=function(e){return 222===e.kind},e.isSpreadElement=function(e){return 223===e.kind},e.isClassExpression=function(e){return 224===e.kind},e.isOmittedExpression=function(e){return 225===e.kind},e.isExpressionWithTypeArguments=function(e){return 226===e.kind},e.isAsExpression=function(e){return 227===e.kind},e.isNonNullExpression=function(e){return 228===e.kind},e.isMetaProperty=function(e){return 229===e.kind},e.isSyntheticExpression=function(e){return 230===e.kind},e.isPartiallyEmittedExpression=function(e){return 345===e.kind},e.isCommaListExpression=function(e){return 346===e.kind},e.isTemplateSpan=function(e){return 231===e.kind},e.isSemicolonClassElement=function(e){return 232===e.kind},e.isBlock=function(e){return 233===e.kind},e.isVariableStatement=function(e){return 235===e.kind},e.isEmptyStatement=function(e){return 234===e.kind},e.isExpressionStatement=function(e){return 236===e.kind},e.isIfStatement=function(e){return 237===e.kind},e.isDoStatement=function(e){return 238===e.kind},e.isWhileStatement=function(e){return 239===e.kind},e.isForStatement=function(e){return 240===e.kind},e.isForInStatement=function(e){return 241===e.kind},e.isForOfStatement=function(e){return 242===e.kind},e.isContinueStatement=function(e){return 243===e.kind},e.isBreakStatement=function(e){return 244===e.kind},e.isReturnStatement=function(e){return 245===e.kind},e.isWithStatement=function(e){return 246===e.kind},e.isSwitchStatement=function(e){return 247===e.kind},e.isLabeledStatement=function(e){return 248===e.kind},e.isThrowStatement=function(e){return 249===e.kind},e.isTryStatement=function(e){return 250===e.kind},e.isDebuggerStatement=function(e){return 251===e.kind},e.isVariableDeclaration=function(e){return 252===e.kind},e.isVariableDeclarationList=function(e){return 253===e.kind},e.isFunctionDeclaration=function(e){return 254===e.kind},e.isClassDeclaration=function(e){return 255===e.kind},e.isInterfaceDeclaration=function(e){return 256===e.kind},e.isTypeAliasDeclaration=function(e){return 257===e.kind},e.isEnumDeclaration=function(e){return 258===e.kind},e.isModuleDeclaration=function(e){return 259===e.kind},e.isModuleBlock=function(e){return 260===e.kind},e.isCaseBlock=function(e){return 261===e.kind},e.isNamespaceExportDeclaration=function(e){return 262===e.kind},e.isImportEqualsDeclaration=function(e){return 263===e.kind},e.isImportDeclaration=function(e){return 264===e.kind},e.isImportClause=function(e){return 265===e.kind},e.isNamespaceImport=function(e){return 266===e.kind},e.isNamespaceExport=function(e){return 272===e.kind},e.isNamedImports=function(e){return 267===e.kind},e.isImportSpecifier=function(e){return 268===e.kind},e.isExportAssignment=function(e){return 269===e.kind},e.isExportDeclaration=function(e){return 270===e.kind},e.isNamedExports=function(e){return 271===e.kind},e.isExportSpecifier=function(e){return 273===e.kind},e.isMissingDeclaration=function(e){return 274===e.kind},e.isNotEmittedStatement=function(e){return 344===e.kind},e.isSyntheticReference=function(e){return 349===e.kind},e.isMergeDeclarationMarker=function(e){return 347===e.kind},e.isEndOfDeclarationMarker=function(e){return 348===e.kind},e.isExternalModuleReference=function(e){return 275===e.kind},e.isJsxElement=function(e){return 276===e.kind},e.isJsxSelfClosingElement=function(e){return 277===e.kind},e.isJsxOpeningElement=function(e){return 278===e.kind},e.isJsxClosingElement=function(e){return 279===e.kind},e.isJsxFragment=function(e){return 280===e.kind},e.isJsxOpeningFragment=function(e){return 281===e.kind},e.isJsxClosingFragment=function(e){return 282===e.kind},e.isJsxAttribute=function(e){return 283===e.kind},e.isJsxAttributes=function(e){return 284===e.kind},e.isJsxSpreadAttribute=function(e){return 285===e.kind},e.isJsxExpression=function(e){return 286===e.kind},e.isCaseClause=function(e){return 287===e.kind},e.isDefaultClause=function(e){return 288===e.kind},e.isHeritageClause=function(e){return 289===e.kind},e.isCatchClause=function(e){return 290===e.kind},e.isPropertyAssignment=function(e){return 291===e.kind},e.isShorthandPropertyAssignment=function(e){return 292===e.kind},e.isSpreadAssignment=function(e){return 293===e.kind},e.isEnumMember=function(e){return 294===e.kind},e.isUnparsedPrepend=function(e){return 296===e.kind},e.isSourceFile=function(e){return 300===e.kind},e.isBundle=function(e){return 301===e.kind},e.isUnparsedSource=function(e){return 302===e.kind},e.isJSDocTypeExpression=function(e){return 304===e.kind},e.isJSDocNameReference=function(e){return 305===e.kind},e.isJSDocMemberName=function(e){return 306===e.kind},e.isJSDocLink=function(e){return 319===e.kind},e.isJSDocLinkCode=function(e){return 320===e.kind},e.isJSDocLinkPlain=function(e){return 321===e.kind},e.isJSDocAllType=function(e){return 307===e.kind},e.isJSDocUnknownType=function(e){return 308===e.kind},e.isJSDocNullableType=function(e){return 309===e.kind},e.isJSDocNonNullableType=function(e){return 310===e.kind},e.isJSDocOptionalType=function(e){return 311===e.kind},e.isJSDocFunctionType=function(e){return 312===e.kind},e.isJSDocVariadicType=function(e){return 313===e.kind},e.isJSDocNamepathType=function(e){return 314===e.kind},e.isJSDoc=function(e){return 315===e.kind},e.isJSDocTypeLiteral=function(e){return 317===e.kind},e.isJSDocSignature=function(e){return 318===e.kind},e.isJSDocAugmentsTag=function(e){return 323===e.kind},e.isJSDocAuthorTag=function(e){return 325===e.kind},e.isJSDocClassTag=function(e){return 327===e.kind},e.isJSDocCallbackTag=function(e){return 333===e.kind},e.isJSDocPublicTag=function(e){return 328===e.kind},e.isJSDocPrivateTag=function(e){return 329===e.kind},e.isJSDocProtectedTag=function(e){return 330===e.kind},e.isJSDocReadonlyTag=function(e){return 331===e.kind},e.isJSDocOverrideTag=function(e){return 332===e.kind},e.isJSDocDeprecatedTag=function(e){return 326===e.kind},e.isJSDocSeeTag=function(e){return 341===e.kind},e.isJSDocEnumTag=function(e){return 334===e.kind},e.isJSDocParameterTag=function(e){return 335===e.kind},e.isJSDocReturnTag=function(e){return 336===e.kind},e.isJSDocThisTag=function(e){return 337===e.kind},e.isJSDocTypeTag=function(e){return 338===e.kind},e.isJSDocTemplateTag=function(e){return 339===e.kind},e.isJSDocTypedefTag=function(e){return 340===e.kind},e.isJSDocUnknownTag=function(e){return 322===e.kind},e.isJSDocPropertyTag=function(e){return 342===e.kind},e.isJSDocImplementsTag=function(e){return 324===e.kind},e.isSyntaxList=function(e){return 343===e.kind}}(u||(u={})),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isMemberName(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function n(t,i,a){if(e.isQualifiedName(i)){var o=n(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(i),a)}function a(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"createElement")}function o(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(e,t){switch(void 0===t&&(t=15),e.kind){case 210:return 0!=(1&t);case 209:case 227:return 0!=(2&t);case 228:return 0!=(4&t);case 345:return 0!=(8&t)}return!1}function l(e,t){for(void 0===t&&(t=15);c(e,t);)e=e.expression;return e}function u(t){return e.setStartsOnNewLine(t,!0)}function _(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function d(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=_(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||n.esModuleInterop&&a)&&s!==e.ModuleKind.System&&s<e.ModuleKind.ES2015;if(!c){var l=e.getEmitHelpers(r);if(l)for(var u=0,d=l;u<d.length;u++)if(!d[u].scoped){c=!0;break}}if(c){var p=e.getOriginalNode(r,e.isSourceFile),f=e.getOrCreateEmitNode(p);return f.externalHelpersModuleName||(f.externalHelpersModuleName=t.createUniqueName(e.externalHelpersModuleNameText))}}}function p(t,r,n,i){if(r)return r.moduleName?t.createStringLiteral(r.moduleName):!r.isDeclarationFile&&e.outFile(i)?t.createStringLiteral(e.getExternalModuleNameFromPath(n,r.fileName)):void 0}function f(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?f(t.left):e.isSpreadElement(t)?f(t.expression):t;switch(t.kind){case 291:return f(t.initializer);case 292:return t.name;case 293:return f(t.expression)}}function g(t){switch(t.kind){case 201:if(t.propertyName){var r=t.propertyName;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&m(r.expression)?r.expression:r}break;case 291:if(t.name)return r=t.name,e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&m(r.expression)?r.expression:r;break;case 293:return t.name&&e.isPrivateIdentifier(t.name)?e.Debug.failBadSyntaxKind(t.name):t.name}var n=f(t);if(n&&e.isPropertyName(n))return n}function m(e){var t=e.kind;return 10===t||8===t}var y;e.createEmptyExports=function(e){return e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0)},e.createMemberAccessForPropertyName=t,e.createJsxFactoryExpression=a,e.createExpressionForJsxElement=function(t,r,n,i,a,o){var s=[n];if(i&&s.push(i),a&&a.length>0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,l=a;c<l.length;c++){var _=l[c];u(_),s.push(_)}else s.push(a[0]);return e.setTextRange(t.createCallExpression(r,void 0,s),o)},e.createExpressionForJsxFragment=function(t,i,o,s,c,l,_){var d=function(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"Fragment")}(t,o,s,l),p=[d,t.createNull()];if(c&&c.length>0)if(c.length>1)for(var f=0,g=c;f<g.length;f++){var m=g[f];u(m),p.push(m)}else p.push(c[0]);return e.setTextRange(t.createCallExpression(a(t,i,s,l),void 0,p),_)},e.createForOfBindingStatement=function(t,r,n){if(e.isVariableDeclarationList(r)){var i=e.first(r.declarations),a=t.updateVariableDeclaration(i,i.name,void 0,void 0,n);return e.setTextRange(t.createVariableStatement(void 0,t.updateVariableDeclarationList(r,[a])),r)}var o=e.setTextRange(t.createAssignment(r,n),r);return e.setTextRange(t.createExpressionStatement(o),r)},e.insertLeadingStatement=function(t,r,n){return e.isBlock(r)?t.updateBlock(r,e.setTextRange(t.createNodeArray(i([n],r.statements,!0)),r.statements)):t.createBlock(t.createNodeArray([r,n]),!0)},e.createExpressionFromEntityName=function t(r,n){if(e.isQualifiedName(n)){var i=t(r,n.left),a=e.setParent(e.setTextRange(r.cloneNode(n.right),n.right),n.right.parent);return e.setTextRange(r.createPropertyAccessExpression(i,a),n)}return e.setParent(e.setTextRange(r.cloneNode(n),n),n.parent)},e.createExpressionForPropertyName=o,e.createExpressionForObjectLiteralElementLike=function(r,n,i,a){switch(i.name&&e.isPrivateIdentifier(i.name)&&e.Debug.failBadSyntaxKind(i.name,"Private identifiers are not allowed in object literals."),i.kind){case 170:case 171:return function(t,r,n,i,a){var s=e.getAllAccessorDeclarations(r,n),c=s.firstAccessor,l=s.getAccessor,u=s.setAccessor;if(n===c)return e.setTextRange(t.createObjectDefinePropertyCall(i,o(t,n.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:l&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!a)),c)}(r,n.properties,i,a,!!n.multiLine);case 291:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),n.initializer),n),n)}(r,i,a);case 292:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),r.cloneNode(n.name)),n),n)}(r,i,a);case 167:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),e.setOriginalNode(e.setTextRange(r.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}(r,i,a)}},e.expandPreOrPostfixIncrementOrDecrementExpression=function(t,r,n,i,a){var o=r.operator;e.Debug.assert(45===o||46===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var s=t.createTempVariable(i);n=t.createAssignment(s,n),e.setTextRange(n,r.operand);var c=e.isPrefixUnaryExpression(r)?t.createPrefixUnaryExpression(o,s):t.createPostfixUnaryExpression(s,o);return e.setTextRange(c,r),a&&(c=t.createAssignment(a,c),e.setTextRange(c,r)),n=t.createComma(n,c),e.setTextRange(n,r),e.isPostfixUnaryExpression(r)&&(n=t.createComma(n,s),e.setTextRange(n,r)),n},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.findUseStrictPrologue=function(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))break;if(s(i))return i}},e.startsWithUseStrict=function(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&s(r)},e.isCommaSequence=function(e){return 219===e.kind&&27===e.operatorToken.kind||346===e.kind},e.isOuterExpression=c,e.skipOuterExpressions=l,e.skipAssertions=function(e){return l(e,6)},e.startOnNewLine=u,e.getExternalHelpersModuleName=_,e.hasRecordedExternalHelpers=function(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)},e.createExternalHelpersImportDeclarationIfNeeded=function(t,r,n,i,a,o,s){if(i.importHelpers&&e.isEffectiveExternalModule(n,i)){var c=void 0,l=e.getEmitModuleKind(i);if(l>=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext){var u=e.getEmitHelpers(n);if(u){for(var _=[],p=0,f=u;p<f.length;p++){var g=f[p];if(!g.scoped){var m=g.importName;m&&e.pushIfUnique(_,m)}}if(e.some(_)){_.sort(e.compareStringsCaseSensitive),c=t.createNamedImports(e.map(_,(function(i){return e.isFileLevelUniqueName(n,i)?t.createImportSpecifier(void 0,t.createIdentifier(i)):t.createImportSpecifier(t.createIdentifier(i),r.getUnscopedHelperName(i))})));var y=e.getOriginalNode(n,e.isSourceFile);e.getOrCreateEmitNode(y).externalHelpers=!0}}}else{var h=d(t,n,i,a,o||s);h&&(c=t.createNamespaceImport(h))}if(c){var v=t.createImportDeclaration(void 0,void 0,t.createImportClause(!1,void 0,c),t.createStringLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(v,67108864),v}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=d,e.getLocalNameForExternalImport=function(t,r,n){var i=e.getNamespaceDeclarationNode(r);if(i&&!e.isDefaultImport(r)&&!e.isExportNamespaceAsDefaultDeclaration(r)){var a=i.name;return e.isGeneratedIdentifier(a)?a:t.createIdentifier(e.getSourceTextOfNodeFromSourceFile(n,a)||e.idText(a))}return 264===r.kind&&r.importClause||270===r.kind&&r.moduleSpecifier?t.getGeneratedNameForNode(r):void 0},e.getExternalModuleNameLiteral=function(t,r,n,i,a,o){var s=e.getExternalModuleName(r);if(s&&e.isStringLiteral(s))return function(e,t,r,n,i){return p(r,n.getExternalModuleFileFromDeclaration(e),t,i)}(r,i,t,a,o)||function(e,t,r){var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n?e.createStringLiteral(n):void 0}(t,s,n)||t.cloneNode(s)},e.tryGetModuleNameFromFile=p,e.getInitializerOfBindingOrAssignmentElement=function t(r){if(e.isDeclarationBindingElement(r))return r.initializer;if(e.isPropertyAssignment(r)){var n=r.initializer;return e.isAssignmentExpression(n,!0)?n.right:void 0}return e.isShorthandPropertyAssignment(r)?r.objectAssignmentInitializer:e.isAssignmentExpression(r,!0)?r.right:e.isSpreadElement(r)?t(r.expression):void 0},e.getTargetOfBindingOrAssignmentElement=f,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 162:case 201:return e.dotDotDotToken;case 223:case 293:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(t){var r=g(t);return e.Debug.assert(!!r||e.isSpreadAssignment(t),"Invalid property name for binding element."),r},e.tryGetPropertyNameOfBindingOrAssignmentElement=g,e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 199:case 200:case 202:return e.elements;case 203:return e.properties}},e.getJSDocTypeAliasName=function(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}},e.canHaveModifiers=function(e){var t=e.kind;return 162===t||164===t||165===t||166===t||167===t||169===t||170===t||171===t||174===t||211===t||212===t||224===t||235===t||254===t||255===t||256===t||257===t||258===t||259===t||263===t||264===t||269===t||270===t},e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral),e.isLiteralTypeLikeExpression=function(t){var r=t.kind;return 104===r||110===r||95===r||e.isLiteralExpression(t)||e.isPrefixUnaryExpression(t)},e.isBinaryOperatorToken=function(t){return function(t){return 60===t||function(e){return function(e){return 55===e||56===e}(e)||function(e){return function(e){return 50===e||51===e||52===e}(e)||function(e){return function(e){return 34===e||36===e||35===e||37===e}(e)||function(e){return function(e){return 29===e||32===e||31===e||33===e||102===e||101===e}(e)||function(e){return function(e){return 47===e||48===e||49===e}(e)||function(e){return function(e){return 39===e||40===e}(e)||function(e){return function(e){return 42===e}(e)||function(e){return 41===e||43===e||44===e}(e)}(e)}(e)}(e)}(e)}(e)}(e)}(t)||e.isAssignmentOperator(t)}(r=t.kind)||27===r;var r},function(t){function r(t,n,i,a,o,s,l){var u=n>0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],u,l),i[n]=c(t,r),n}function n(t,r,i,a,o,s,_){e.Debug.assertEqual(i[r],n),e.Debug.assertIsDefined(t.onLeft),i[r]=c(t,n);var d=t.onLeft(a[r].left,o[r],a[r]);return d?(u(r,a,d),l(r,i,a,o,d)):r}function i(t,r,n,a,o,s,l){return e.Debug.assertEqual(n[r],i),e.Debug.assertIsDefined(t.onOperator),n[r]=c(t,i),t.onOperator(a[r].operatorToken,o[r],a[r]),r}function a(t,r,n,i,o,s,_){e.Debug.assertEqual(n[r],a),e.Debug.assertIsDefined(t.onRight),n[r]=c(t,a);var d=t.onRight(i[r].right,o[r],i[r]);return d?(u(r,i,d),l(r,n,i,o,d)):r}function o(t,r,n,i,a,s,l){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var u=t.onExit(i[r],a[r]);if(r>0){if(r--,t.foldState){var _=n[r]===o?"right":"left";a[r]=t.foldState(a[r],u,_)}}else s.value=u;return r}function s(t,r,n,i,a,o,c){return e.Debug.assertEqual(n[r],s),r}function c(t,c){switch(c){case r:if(t.onLeft)return n;case n:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function u(t,r,n){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(r[t]!==n,"Circular traversal detected."),t--}t.enter=r,t.left=n,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c}(y||(y={}));var h=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};e.createBinaryExpressionTrampoline=function(t,r,n,i,a,o){var s=new h(t,r,n,i,a,o);return function(t,r){for(var n={value:void 0},i=[y.enter],a=[t],o=[void 0],c=0;i[c]!==y.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}}}(u||(u={})),function(e){e.setTextRange=function(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t}}(u||(u={})),function(e){var t,r,n,a,o,s,c,l,u;function _(e,t){return t&&e(t)}function d(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 p(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function f(t,r,n){if(t&&!(t.kind<=158))switch(t.kind){case 159:case 306:return _(r,t.left)||_(r,t.right);case 161:return _(r,t.name)||_(r,t.constraint)||_(r,t.default)||_(r,t.expression);case 292:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.name)||_(r,t.questionToken)||_(r,t.exclamationToken)||_(r,t.equalsToken)||_(r,t.objectAssignmentInitializer);case 293:case 210:case 213:case 214:case 215:case 216:case 228:case 223:case 236:case 245:case 249:case 163:case 160:case 275:case 285:case 345:return _(r,t.expression);case 162:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.dotDotDotToken)||_(r,t.name)||_(r,t.questionToken)||_(r,t.type)||_(r,t.initializer);case 165:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.name)||_(r,t.questionToken)||_(r,t.exclamationToken)||_(r,t.type)||_(r,t.initializer);case 164:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.name)||_(r,t.questionToken)||_(r,t.type)||_(r,t.initializer);case 291:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.name)||_(r,t.questionToken)||_(r,t.initializer);case 252:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.name)||_(r,t.exclamationToken)||_(r,t.type)||_(r,t.initializer);case 201:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.dotDotDotToken)||_(r,t.propertyName)||_(r,t.name)||_(r,t.initializer);case 177:case 178:case 172:case 173:case 174:return d(r,n,t.decorators)||d(r,n,t.modifiers)||d(r,n,t.typeParameters)||d(r,n,t.parameters)||_(r,t.type);case 167:case 166:case 169:case 170:case 171:case 211:case 254:case 212:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.asteriskToken)||_(r,t.name)||_(r,t.questionToken)||_(r,t.exclamationToken)||d(r,n,t.typeParameters)||d(r,n,t.parameters)||_(r,t.type)||_(r,t.equalsGreaterThanToken)||_(r,t.body);case 168:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.body);case 176:return _(r,t.typeName)||d(r,n,t.typeArguments);case 175:return _(r,t.assertsModifier)||_(r,t.parameterName)||_(r,t.type);case 179:return _(r,t.exprName);case 180:return d(r,n,t.members);case 181:return _(r,t.elementType);case 182:case 199:case 200:case 202:case 267:case 271:case 346:return d(r,n,t.elements);case 185:case 186:case 289:return d(r,n,t.types);case 187:return _(r,t.checkType)||_(r,t.extendsType)||_(r,t.trueType)||_(r,t.falseType);case 188:return _(r,t.typeParameter);case 198:return _(r,t.argument)||_(r,t.qualifier)||d(r,n,t.typeArguments);case 189:case 191:case 183:case 184:case 304:case 310:case 309:case 311:case 313:return _(r,t.type);case 192:return _(r,t.objectType)||_(r,t.indexType);case 193:return _(r,t.readonlyToken)||_(r,t.typeParameter)||_(r,t.nameType)||_(r,t.questionToken)||_(r,t.type);case 194:return _(r,t.literal);case 195:return _(r,t.dotDotDotToken)||_(r,t.name)||_(r,t.questionToken)||_(r,t.type);case 203:case 284:return d(r,n,t.properties);case 204:return _(r,t.expression)||_(r,t.questionDotToken)||_(r,t.name);case 205:return _(r,t.expression)||_(r,t.questionDotToken)||_(r,t.argumentExpression);case 206:case 207:return _(r,t.expression)||_(r,t.questionDotToken)||d(r,n,t.typeArguments)||d(r,n,t.arguments);case 208:return _(r,t.tag)||_(r,t.questionDotToken)||d(r,n,t.typeArguments)||_(r,t.template);case 209:return _(r,t.type)||_(r,t.expression);case 217:case 218:return _(r,t.operand);case 222:return _(r,t.asteriskToken)||_(r,t.expression);case 219:return _(r,t.left)||_(r,t.operatorToken)||_(r,t.right);case 227:return _(r,t.expression)||_(r,t.type);case 229:case 262:case 266:case 272:case 305:case 319:case 320:case 321:return _(r,t.name);case 220:return _(r,t.condition)||_(r,t.questionToken)||_(r,t.whenTrue)||_(r,t.colonToken)||_(r,t.whenFalse);case 233:case 260:case 288:return d(r,n,t.statements);case 300:return d(r,n,t.statements)||_(r,t.endOfFileToken);case 235:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.declarationList);case 253:return d(r,n,t.declarations);case 237:return _(r,t.expression)||_(r,t.thenStatement)||_(r,t.elseStatement);case 238:return _(r,t.statement)||_(r,t.expression);case 239:case 246:return _(r,t.expression)||_(r,t.statement);case 240:return _(r,t.initializer)||_(r,t.condition)||_(r,t.incrementor)||_(r,t.statement);case 241:return _(r,t.initializer)||_(r,t.expression)||_(r,t.statement);case 242:return _(r,t.awaitModifier)||_(r,t.initializer)||_(r,t.expression)||_(r,t.statement);case 243:case 244:return _(r,t.label);case 247:return _(r,t.expression)||_(r,t.caseBlock);case 261:return d(r,n,t.clauses);case 287:return _(r,t.expression)||d(r,n,t.statements);case 248:return _(r,t.label)||_(r,t.statement);case 250:return _(r,t.tryBlock)||_(r,t.catchClause)||_(r,t.finallyBlock);case 290:return _(r,t.variableDeclaration)||_(r,t.block);case 255:case 224:case 256:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.name)||d(r,n,t.typeParameters)||d(r,n,t.heritageClauses)||d(r,n,t.members);case 257:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.name)||d(r,n,t.typeParameters)||_(r,t.type);case 258:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.name)||d(r,n,t.members);case 294:case 283:return _(r,t.name)||_(r,t.initializer);case 259:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.name)||_(r,t.body);case 263:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.name)||_(r,t.moduleReference);case 264:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.importClause)||_(r,t.moduleSpecifier);case 265:return _(r,t.name)||_(r,t.namedBindings);case 270:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.exportClause)||_(r,t.moduleSpecifier);case 268:case 273:return _(r,t.propertyName)||_(r,t.name);case 269:return d(r,n,t.decorators)||d(r,n,t.modifiers)||_(r,t.expression);case 221:case 196:return _(r,t.head)||d(r,n,t.templateSpans);case 231:return _(r,t.expression)||_(r,t.literal);case 197:return _(r,t.type)||_(r,t.literal);case 226:return _(r,t.expression)||d(r,n,t.typeArguments);case 274:return d(r,n,t.decorators);case 276:return _(r,t.openingElement)||d(r,n,t.children)||_(r,t.closingElement);case 280:return _(r,t.openingFragment)||d(r,n,t.children)||_(r,t.closingFragment);case 277:case 278:return _(r,t.tagName)||d(r,n,t.typeArguments)||_(r,t.attributes);case 286:return _(r,t.dotDotDotToken)||_(r,t.expression);case 279:return _(r,t.tagName);case 312:return d(r,n,t.parameters)||_(r,t.type);case 315:return("string"==typeof t.comment?void 0:d(r,n,t.comment))||d(r,n,t.tags);case 341:return _(r,t.tagName)||_(r,t.name)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 335:case 342:return _(r,t.tagName)||(t.isNameFirst?_(r,t.name)||_(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment)):_(r,t.typeExpression)||_(r,t.name)||("string"==typeof t.comment?void 0:d(r,n,t.comment)));case 325:case 322:case 327:case 328:case 329:case 330:case 331:case 326:return _(r,t.tagName)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 324:case 323:return _(r,t.tagName)||_(r,t.class)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 339:return _(r,t.tagName)||_(r,t.constraint)||d(r,n,t.typeParameters)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 340:return _(r,t.tagName)||(t.typeExpression&&304===t.typeExpression.kind?_(r,t.typeExpression)||_(r,t.fullName)||("string"==typeof t.comment?void 0:d(r,n,t.comment)):_(r,t.fullName)||_(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment)));case 333:return _(r,t.tagName)||_(r,t.fullName)||_(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 336:case 338:case 337:case 334:return _(r,t.tagName)||_(r,t.typeExpression)||("string"==typeof t.comment?void 0:d(r,n,t.comment));case 318:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||_(r,t.type);case 317:return e.forEach(t.jsDocPropertyTags,r)}}function g(e){var t=[];return f(e,r,r),t;function r(e){t.unshift(e)}}function m(e){return void 0!==e.externalModuleIndicator}function y(t){return e.fileExtensionIs(t,".d.ts")}function h(t,r){for(var n=[],i=0,a=e.getLeadingCommentRanges(r,0)||e.emptyArray;i<a.length;i++){var o=a[i];E(n,o,r.substring(o.pos,o.end))}t.pragmas=new e.Map;for(var s=0,c=n;s<c.length;s++){var l=c[s];if(t.pragmas.has(l.name)){var u=t.pragmas.get(l.name);u instanceof Array?u.push(l.args):t.pragmas.set(l.name,[u,l.args])}else t.pragmas.set(l.name,l.args)}}function v(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((function(n,i){switch(i){case"reference":var a=t.referencedFiles,o=t.typeReferenceDirectives,s=t.libReferenceDirectives;e.forEach(e.toArray(n),(function(n){var i=n.arguments,c=i.types,l=i.lib,u=i.path;n.arguments["no-default-lib"]?t.hasNoDefaultLib=!0:c?o.push({pos:c.pos,end:c.end,fileName:c.value}):l?s.push({pos:l.pos,end:l.end,fileName:l.value}):u?a.push({pos:u.pos,end:u.end,fileName:u.value}):r(n.range.pos,n.range.end-n.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)}));break;case"amd-dependency":t.amdDependencies=e.map(e.toArray(n),(function(e){return{name:e.arguments.name,path:e.arguments.path}}));break;case"amd-module":if(n instanceof Array)for(var c=0,l=n;c<l.length;c++){var u=l[c];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":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(r||(r={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(t){return new(c||(c=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(o||(o=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(s||(s=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(a||(a=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(t){return new(n||(n=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=p,e.forEachChild=f,e.forEachChildRecursively=function(t,r,n){for(var i=g(t),a=[];a.length<i.length;)a.push(t);for(;0!==i.length;){var o=i.pop(),s=a.pop();if(e.isArray(o)){if(n&&(l=n(o,s))){if("skip"===l)continue;return l}for(var c=o.length-1;c>=0;--c)i.push(o[c]),a.push(s)}else{var l;if(l=r(o,s)){if("skip"===l)continue;return l}if(o.kind>=159)for(var u=0,_=g(o);u<_.length;u++){var d=_[u];i.push(d),a.push(o)}}}},e.createSourceFile=function(t,r,n,i,a){var o;return void 0===i&&(i=!1),null===e.tracing||void 0===e.tracing||e.tracing.push("parse","createSourceFile",{path:t},!0),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t),o=100===n?l.parseSourceFile(t,r,n,void 0,i,6):l.parseSourceFile(t,r,n,void 0,i,a),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o},e.parseIsolatedEntityName=function(e,t){return l.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return l.parseJsonText(e,t)},e.isExternalModule=m,e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=u.updateSourceFile(e,t,r,n);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=l.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&l.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return l.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,a,o,s,c=e.createScanner(99,!0);function l(e){return A++,e}var _,d,g,b,x,D,S,E,T,k,A,N,F,w,P,I,O,L={createBaseSourceFileNode:function(e){return l(new s(e,0,0))},createBaseIdentifierNode:function(e){return l(new a(e,0,0))},createBasePrivateIdentifierNode:function(e){return l(new o(e,0,0))},createBaseTokenNode:function(e){return l(new n(e,0,0))},createBaseNode:function(e){return l(new r(e,0,0))}},M=e.createNodeFactory(11,L),R=!0,B=!1;function j(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),J(t,r,n,i,6),d=O,he();var o,s,c=pe();if(1===ge())o=We([],c,c),s=Ue();else{for(var l=void 0;1!==ge();){var u=void 0;switch(ge()){case 22:u=En();break;case 110:case 95:case 104:u=Ue();break;case 40:u=ke((function(){return 8===he()&&58!==he()}))?$r():Cn();break;case 8:case 10:if(ke((function(){return 58!==he()}))){u=Lt();break}default:u=Cn()}l&&e.isArray(l)?l.push(u):l?l=[l,u]:(l=u,1!==ge()&&ce(e.Diagnostics.Unexpected_token))}var _=e.isArray(l)?qe(M.createArrayLiteralExpression(l),c):e.Debug.checkDefined(l),p=M.createExpressionStatement(_);qe(p,c),o=We([p],c),s=Ve(1,e.Diagnostics.Unexpected_token)}var f=q(t,2,6,!1,o,s,d);a&&W(f),f.nodeCount=A,f.identifierCount=w,f.identifiers=N,f.parseDiagnostics=e.attachFileToDiagnostics(S,f),E&&(f.jsDocDiagnostics=e.attachFileToDiagnostics(E,f));var g=f;return V(),g}function J(t,i,l,u,p){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),a=e.objectAllocator.getIdentifierConstructor(),o=e.objectAllocator.getPrivateIdentifierConstructor(),s=e.objectAllocator.getSourceFileConstructor(),_=e.normalizePath(t),g=i,b=l,T=u,x=p,D=e.getLanguageVariant(p),S=[],P=0,N=new e.Map,F=new e.Map,w=0,A=0,d=0,R=!0,x){case 1:case 2:O=131072;break;case 6:O=33685504;break;default:O=0}B=!1,c.setText(g),c.setOnError(de),c.setScriptTarget(b),c.setLanguageVariant(D)}function V(){c.clearCommentDirectives(),c.setText(""),c.setOnError(void 0),g=void 0,b=void 0,T=void 0,x=void 0,D=void 0,d=0,S=void 0,E=void 0,P=0,N=void 0,I=void 0,R=!0}function U(t,r,n){var i=y(_);i&&(O|=8388608),d=O,he();var a=vt(0,Vn);e.Debug.assert(1===ge());var o=G(Ue()),s=q(_,t,n,i,a,o,d);return h(s,g),v(s,(function(t,r,n){S.push(e.createDetachedDiagnostic(_,t,r,n))})),s.commentDirectives=c.getCommentDirectives(),s.nodeCount=A,s.identifierCount=w,s.identifiers=N,s.parseDiagnostics=e.attachFileToDiagnostics(S,s),E&&(s.jsDocDiagnostics=e.attachFileToDiagnostics(E,s)),r&&W(s),s}function K(e,t){return t?G(e):e}t.parseSourceFile=function(t,r,n,i,a,o){var s;if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var c=j(t,r,n,i,a);return e.convertToObjectWorker(c,null===(s=c.statements[0])||void 0===s?void 0:s.expression,c.parseDiagnostics,!1,void 0,void 0),c.referencedFiles=e.emptyArray,c.typeReferenceDirectives=e.emptyArray,c.libReferenceDirectives=e.emptyArray,c.amdDependencies=e.emptyArray,c.hasNoDefaultLib=!1,c.pragmas=e.emptyMap,c}J(t,r,n,i,o);var l=U(n,a,o);return V(),l},t.parseIsolatedEntityName=function(e,t){J("",e,t,void 0,1),he();var r=At(!0),n=1===ge()&&!S.length;return V(),n?r:void 0},t.parseJsonText=j;var z=!1;function G(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,g),(function(e){return Oe.parseJSDocComment(t,e.pos,e.end-e.pos)}));return r.length&&(t.jsDoc=r),z&&(z=!1,t.flags|=134217728),t}function W(t){e.setParentRecursive(t,!0)}function q(t,r,n,i,a,o,s){var l=M.createSourceFile(a,o,s);return e.setTextRangePosWidth(l,0,g.length),function(t){t.externalModuleIndicator=e.forEach(t.statements,Ii)||function(e){return 2097152&e.flags?Oi(e):void 0}(t)}(l),!i&&m(l)&&16777216&l.transformFlags&&(l=function(t){var r=T,n=u.createSyntaxCursor(t);T={currentNode:function(e){var t=n.currentNode(e);return R&&t&&p(t)&&(t.intersectsChange=!0),t}};var i=[],a=S;S=[];for(var o=0,s=f(t.statements,0),l=function(){var r=t.statements[o],n=t.statements[s];e.addRange(i,t.statements,o,s),o=g(t.statements,s);var l=e.findIndex(a,(function(e){return e.start>=r.pos})),u=l>=0?e.findIndex(a,(function(e){return e.start>=n.pos}),l):-1;l>=0&&e.addRange(S,a,l,u>=0?u:void 0),Ce((function(){var e=O;for(O|=32768,c.setTextPos(n.pos),he();1!==ge();){var r=c.getStartPos(),a=bt(0,Vn);if(i.push(a),r===c.getStartPos()&&he(),o>=0){var s=t.statements[o];if(a.end===s.pos)break;a.end>s.pos&&(o=g(t.statements,o+1))}}O=e}),2),s=o>=0?f(t.statements,o):-1};-1!==s;)l();if(o>=0){var _=t.statements[o];e.addRange(i,t.statements,o);var d=e.findIndex(a,(function(e){return e.start>=_.pos}));d>=0&&e.addRange(S,a,d)}return T=r,M.updateSourceFile(t,e.setTextRange(M.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(16777216&e.transformFlags))}function f(e,t){for(var r=t;r<e.length;r++)if(p(e[r]))return r;return-1}function g(e,t){for(var r=t;r<e.length;r++)if(!p(e[r]))return r;return-1}}(l)),l.text=g,l.bindDiagnostics=[],l.bindSuggestionDiagnostics=void 0,l.languageVersion=r,l.fileName=t,l.languageVariant=e.getLanguageVariant(n),l.isDeclarationFile=i,l.scriptKind=n,l}function H(e,t){e?O|=t:O&=~t}function Y(e){H(e,4096)}function X(e){H(e,8192)}function Q(e){H(e,16384)}function $(e){H(e,32768)}function Z(e,t){var r=e&O;if(r){H(!1,r);var n=t();return H(!0,r),n}return t()}function ee(e,t){var r=e&~O;if(r){H(!0,r);var n=t();return H(!1,r),n}return t()}function te(e){return Z(4096,e)}function re(e){return ee(32768,e)}function ne(e){return 0!=(O&e)}function ie(){return ne(8192)}function ae(){return ne(4096)}function oe(){return ne(16384)}function se(){return ne(32768)}function ce(e,t){ue(c.getTokenPos(),c.getTextPos(),e,t)}function le(t,r,n,i){var a=e.lastOrUndefined(S);a&&t===a.start||S.push(e.createDetachedDiagnostic(_,t,r,n,i)),B=!0}function ue(e,t,r,n){le(e,t-e,r,n)}function _e(e,t,r){ue(e.pos,e.end,t,r)}function de(e,t){le(c.getTextPos(),t,e)}function pe(){return c.getStartPos()}function fe(){return c.hasPrecedingJSDocComment()}function ge(){return k}function me(){return k=c.scan()}function ye(e){return he(),e()}function he(){return e.isKeyword(k)&&(c.hasUnicodeEscape()||c.hasExtendedUnicodeEscape())&&ue(c.getTokenPos(),c.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),me()}function ve(){return k=c.scanJsDocToken()}function be(){return k=c.reScanGreaterToken()}function xe(){return k=c.reScanTemplateHeadOrNoSubstitutionTemplate()}function De(){return k=c.reScanLessThanToken()}function Se(){return k=c.reScanHashToken()}function Ee(){return k=c.scanJsxIdentifier()}function Te(){return k=c.scanJsxToken()}function Ce(t,r){var n=k,i=S.length,a=B,o=O,s=0!==r?c.lookAhead(t):c.tryScan(t);return e.Debug.assert(o===O),s&&0===r||(k=n,2!==r&&(S.length=i),B=a),s}function ke(e){return Ce(e,1)}function Ae(e){return Ce(e,0)}function Ne(){return 79===ge()||ge()>116}function Fe(){return 79===ge()||(125!==ge()||!ie())&&(131!==ge()||!se())&&ge()>116}function we(t,r,n){return void 0===n&&(n=!0),ge()===t?(n&&he(),!0):(r?ce(r):ce(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=W;var Pe,Ie,Oe,Le=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function Me(t){var r;if(e.isTaggedTemplateExpression(t))ue(e.skipTrivia(g,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var n=e.isIdentifier(t)?e.idText(t):void 0;if(n&&e.isIdentifierText(n,b)){var i=e.skipTrivia(g,t.pos);switch(n){case"const":case"let":case"var":return void ue(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Re(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void ue(i,c.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Re(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Re(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(r=e.getSpellingSuggestion(n,Le,(function(e){return e})))&&void 0!==r?r:function(t){for(var r=0,n=Le;r<n.length;r++){var i=n[r];if(t.length>i.length+2&&e.startsWith(t,i))return i+" "+t.slice(i.length)}}(n);a?ue(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==ge()&&ue(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else ce(e.Diagnostics._0_expected,e.tokenToString(26))}}function Re(t,r,n){ge()===n?ce(r):ce(t,e.tokenToString(ge()))}function Be(t){return ge()===t?(ve(),!0):(ce(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function je(e){return ge()===e&&(he(),!0)}function Je(e){if(ge()===e)return Ue()}function Ve(t,r,n){return Je(t)||He(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function Ue(){var e=pe(),t=ge();return he(),qe(M.createToken(t),e)}function Ke(){return 26===ge()||19===ge()||1===ge()||c.hasPrecedingLineBreak()}function ze(){return!!Ke()&&(26===ge()&&he(),!0)}function Ge(){return ze()||we(26)}function We(t,r,n,i){var a=M.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:c.getStartPos()),a}function qe(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:c.getStartPos()),O&&(t.flags|=O),B&&(B=!1,t.flags|=65536),t}function He(t,r,n,i){r?le(c.getStartPos(),0,n,i):n&&ce(n,i);var a=pe();return qe(79===t?M.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?M.createTemplateLiteralLikeNode(t,"","",void 0):8===t?M.createNumericLiteral("",void 0):10===t?M.createStringLiteral("",void 0):274===t?M.createMissingDeclaration():M.createToken(t),a)}function Ye(e){var t=N.get(e);return void 0===t&&N.set(e,t=e),t}function Xe(t,r,n){if(t){w++;var i=pe(),a=ge(),o=Ye(c.getTokenValue());return me(),qe(M.createIdentifier(o,void 0,a),i)}if(80===ge())return ce(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Xe(!0);if(0===ge()&&c.tryScan((function(){return 79===c.reScanInvalidIdentifier()})))return Xe(!0);w++;var s=1===ge(),l=c.isReservedWord(),u=c.getTokenText(),_=l?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return He(79,s,r||_,u)}function Qe(e){return Xe(Ne(),void 0,e)}function $e(e,t){return Xe(Fe(),e,t)}function Ze(t){return Xe(e.tokenIsIdentifierOrKeyword(ge()),t)}function et(){return e.tokenIsIdentifierOrKeyword(ge())||10===ge()||8===ge()}function tt(){return function(e){if(10===ge()||8===ge()){var t=Lt();return t.text=Ye(t.text),t}return e&&22===ge()?function(){var e=pe();we(22);var t=te(jr);return we(23),qe(M.createComputedPropertyName(t),e)}():80===ge()?rt():Ze()}(!0)}function rt(){var e,t,r=pe(),n=M.createPrivateIdentifier((e=c.getTokenText(),void 0===(t=F.get(e))&&F.set(e,t=e),t));return he(),qe(n,r)}function nt(e){return ge()===e&&Ae(at)}function it(){return he(),!c.hasPrecedingLineBreak()&&ct()}function at(){switch(ge()){case 85:return 92===he();case 93:return he(),88===ge()?ke(lt):150===ge()?ke(st):ot();case 88:return lt();case 124:default:return it();case 135:case 147:return he(),ct()}}function ot(){return 41!==ge()&&127!==ge()&&18!==ge()&&ct()}function st(){return he(),ot()}function ct(){return 22===ge()||18===ge()||41===ge()||25===ge()||et()}function lt(){return he(),84===ge()||98===ge()||118===ge()||126===ge()&&ke(On)||130===ge()&&ke(Ln)}function ut(t,r){if(xt(t))return!0;switch(t){case 0:case 1:case 3:return!(26===ge()&&r)&&jn();case 2:return 82===ge()||88===ge();case 4:return ke(ar);case 5:return ke(oi)||26===ge()&&!r;case 6:return 22===ge()||et();case 12:switch(ge()){case 22:case 41:case 25:case 24:return!0;default:return et()}case 18:return et();case 9:return 22===ge()||25===ge()||et();case 7:return 18===ge()?ke(_t):r?Fe()&&!gt():Rr()&&!gt();case 8:return Hn();case 10:return 27===ge()||25===ge()||Hn();case 19:return Fe();case 15:switch(ge()){case 27:case 24:return!0}case 11:return 25===ge()||Br();case 16:return qt(!1);case 17:return qt(!0);case 20:case 21:return 27===ge()||Sr();case 22:return bi();case 23:return e.tokenIsIdentifierOrKeyword(ge());case 13:return e.tokenIsIdentifierOrKeyword(ge())||18===ge();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function _t(){if(e.Debug.assert(18===ge()),19===he()){var t=he();return 27===t||18===t||94===t||117===t}return!0}function dt(){return he(),Fe()}function pt(){return he(),e.tokenIsIdentifierOrKeyword(ge())}function ft(){return he(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ge())}function gt(){return(117===ge()||94===ge())&&ke(mt)}function mt(){return he(),Br()}function yt(){return he(),Sr()}function ht(e){if(1===ge())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===ge();case 3:return 19===ge()||82===ge()||88===ge();case 7:return 18===ge()||94===ge()||117===ge();case 8:return!!Ke()||!!Yr(ge())||38===ge();case 19:return 31===ge()||20===ge()||18===ge()||94===ge()||117===ge();case 11:return 21===ge()||26===ge();case 15:case 21:case 10:return 23===ge();case 17:case 16:case 18:return 21===ge()||23===ge();case 20:return 27!==ge();case 22:return 18===ge()||19===ge();case 13:return 31===ge()||43===ge();case 14:return 29===ge()&&ke(ki);default:return!1}}function vt(e,t){var r=P;P|=1<<e;for(var n=[],i=pe();!ht(e);)if(ut(e,!1))n.push(bt(e,t));else if(St(e))break;return P=r,We(n,i)}function bt(e,t){var r=xt(e);return r?Dt(r):t()}function xt(t){if(T&&function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(t)&&!B){var r=T.currentNode(c.getStartPos());if(!(e.nodeIsMissing(r)||r.intersectsChange||e.containsParseError(r))&&(25358336&r.flags)===O&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 169:case 174:case 170:case 171:case 165:case 232:return!0;case 167:var t=e;return!(79===t.name.kind&&133===t.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 287:case 288:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 254:case 235:case 233:case 237:case 236:case 249:case 245:case 247:case 244:case 243:case 241:case 242:case 240:case 239:case 246:case 234:case 250:case 248:case 238:case 251:case 264:case 263:case 270:case 269:case 259:case 255:case 256:case 258:case 257:return!0}return!1}(e);case 6:return function(e){return 294===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 173:case 166:case 174:case 164:case 172:return!0}return!1}(e);case 8:return function(e){return 252===e.kind&&void 0===e.initializer}(e);case 17:case 16:return function(e){return 162===e.kind&&void 0===e.initializer}(e)}return!1}(r,t))return r.jsDocCache&&(r.jsDocCache=void 0),r}}function Dt(e){return c.setTextPos(e.end),he(),e}function St(t){return function(t){switch(t){case 0:return 88===ge()?ce(e.Diagnostics._0_expected,e.tokenToString(93)):ce(e.Diagnostics.Declaration_or_statement_expected);case 1:return ce(e.Diagnostics.Declaration_or_statement_expected);case 2:return ce(e.Diagnostics.case_or_default_expected);case 3:return ce(e.Diagnostics.Statement_expected);case 18:case 4:return ce(e.Diagnostics.Property_or_signature_expected);case 5:return ce(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return ce(e.Diagnostics.Enum_member_expected);case 7:return ce(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(ge())?ce(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(ge())):ce(e.Diagnostics.Variable_declaration_expected);case 9:return ce(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return ce(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return ce(e.Diagnostics.Argument_expression_expected);case 12:return ce(e.Diagnostics.Property_assignment_expected);case 15:return ce(e.Diagnostics.Expression_or_comma_expected);case 17:case 16:return ce(e.Diagnostics.Parameter_declaration_expected);case 19:return ce(e.Diagnostics.Type_parameter_declaration_expected);case 20:return ce(e.Diagnostics.Type_argument_expected);case 21:return ce(e.Diagnostics.Type_expected);case 22:return ce(e.Diagnostics.Unexpected_token_expected);case 23:case 13:case 14:ce(e.Diagnostics.Identifier_expected)}}(t),!!function(){for(var e=0;e<24;e++)if(P&1<<e&&(ut(e,!0)||ht(e)))return!0;return!1}()||(he(),!1)}function Et(e,t,r){var n=P;P|=1<<e;for(var i=[],a=pe(),o=-1;;)if(ut(e,!1)){var s=c.getStartPos();if(i.push(bt(e,t)),o=c.getTokenPos(),je(27))continue;if(o=-1,ht(e))break;we(27,Tt(e)),r&&26===ge()&&!c.hasPrecedingLineBreak()&&he(),s===c.getStartPos()&&he()}else{if(ht(e))break;if(St(e))break}return P=n,We(i,a,void 0,o>=0)}function Tt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ct(){var e=We([],pe());return e.isMissingList=!0,e}function kt(e,t,r,n){if(we(r)){var i=Et(e,t);return we(n),i}return Ct()}function At(e,t){for(var r=pe(),n=e?Ze(t):$e(t),i=pe();je(24);){if(29===ge()){n.jsdocDotPos=i;break}i=pe(),n=qe(M.createQualifiedName(n,Ft(e,!1)),r)}return n}function Nt(e,t){return qe(M.createQualifiedName(e,t),e.pos)}function Ft(t,r){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ge())&&ke(In))return He(79,!0,e.Diagnostics.Identifier_expected);if(80===ge()){var n=rt();return r?n:He(79,!0,e.Diagnostics.Identifier_expected)}return t?Ze():$e()}function wt(e){var t=pe();return qe(M.createTemplateExpression(Mt(e),function(e){var t,r=pe(),n=[];do{t=Ot(e),n.push(t)}while(16===t.literal.kind);return We(n,r)}(e)),t)}function Pt(){var e=pe();return qe(M.createTemplateLiteralTypeSpan(Or(),It(!1)),e)}function It(t){return 19===ge()?(function(e){k=c.reScanTemplateToken(e)}(t),r=Rt(ge()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Ve(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function Ot(e){var t=pe();return qe(M.createTemplateSpan(te(jr),It(e)),t)}function Lt(){return Rt(ge())}function Mt(t){t&&xe();var r=Rt(ge());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function Rt(t){var r=pe(),n=e.isTemplateLiteralKind(t)?M.createTemplateLiteralLikeNode(t,c.getTokenValue(),function(e){var t=14===e||17===e,r=c.getTokenText();return r.substring(1,r.length-(c.isUnterminated()?0:t?1:2))}(t),2048&c.getTokenFlags()):8===t?M.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===t?M.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?M.createLiteralLikeNode(t,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),he(),qe(n,r)}function Bt(){return At(!0,e.Diagnostics.Type_expected)}function jt(){if(!c.hasPrecedingLineBreak()&&29===De())return kt(20,Or,29,31)}function Jt(){var e=pe();return qe(M.createTypeReferenceNode(Bt(),jt()),e)}function Vt(t){switch(t.kind){case 176:return e.nodeIsMissing(t.typeName);case 177:case 178:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||Vt(i);case 189:return Vt(t.type);default:return!1}}function Ut(){var e=pe();return he(),qe(M.createThisTypeNode(),e)}function Kt(){var e,t=pe();return 108!==ge()&&103!==ge()||(e=Ze(),we(58)),qe(M.createParameterDeclaration(void 0,void 0,void 0,e,void 0,zt(),void 0),t)}function zt(){c.setInJSDocType(!0);var e=pe();if(je(140)){var t=M.createJSDocNamepathType(void 0);e:for(;;)switch(ge()){case 19:case 1:case 27:case 5:break e;default:ve()}return c.setInJSDocType(!1),qe(t,e)}var r=je(25),n=Pr();return c.setInJSDocType(!1),r&&(n=qe(M.createJSDocVariadicType(n),e)),63===ge()?(he(),qe(M.createJSDocOptionalType(n),e)):n}function Gt(){var e,t,r=pe(),n=$e();je(94)&&(Sr()||!Br()?e=Or():t=Zr());var i=je(63)?Or():void 0,a=M.createTypeParameterDeclaration(n,e,i);return a.expression=t,qe(a,r)}function Wt(){if(29===ge())return kt(19,Gt,29,31)}function qt(t){return 25===ge()||Hn()||e.isModifierKind(ge())||59===ge()||Sr(!t)}function Ht(){return Xt(!0)}function Yt(){return Xt(!1)}function Xt(t){var r=pe(),n=fe(),i=t?re(li):li();if(108===ge()){var a=M.createParameterDeclaration(i,void 0,void 0,Xe(!0),void 0,Mr(),void 0);return i&&_e(i[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),K(qe(a,r),n)}var o=R;R=!1;var s=_i(),c=K(qe(M.createParameterDeclaration(i,s,Je(25),function(t){var r=Yn(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(ge())&&he(),r}(s),Je(57),Mr(),Jr()),r),n);return R=o,c}function Qt(t,r){if(function(t,r){return 38===t?(we(t),!0):!!je(58)||!(!r||38!==ge())&&(ce(e.Diagnostics._0_expected,e.tokenToString(58)),he(),!0)}(t,r))return Pr()}function $t(e){var t=ie(),r=se();X(!!(1&e)),$(!!(2&e));var n=32&e?Et(17,Kt):Et(16,r?Ht:Yt);return X(t),$(r),n}function Zt(e){if(!we(20))return Ct();var t=$t(e);return we(21),t}function er(){je(27)||Ge()}function tr(e){var t=pe(),r=fe();173===e&&we(103);var n=Wt(),i=Zt(4),a=Qt(58,!0);return er(),K(qe(172===e?M.createCallSignature(n,i,a):M.createConstructSignature(n,i,a),t),r)}function rr(){return 22===ge()&&ke(nr)}function nr(){if(he(),25===ge()||23===ge())return!0;if(e.isModifierKind(ge())){if(he(),Fe())return!0}else{if(!Fe())return!1;he()}return 58===ge()||27===ge()||57===ge()&&(he(),58===ge()||27===ge()||23===ge())}function ir(e,t,r,n){var i=kt(16,Yt,22,23),a=Mr();return er(),K(qe(M.createIndexSignature(r,n,i,a),e),t)}function ar(){if(20===ge()||29===ge()||135===ge()||147===ge())return!0;for(var t=!1;e.isModifierKind(ge());)t=!0,he();return 22===ge()||(et()&&(t=!0,he()),!!t&&(20===ge()||29===ge()||57===ge()||58===ge()||27===ge()||Ke()))}function or(){if(20===ge()||29===ge())return tr(172);if(103===ge()&&ke(sr))return tr(173);var e=pe(),t=fe(),r=_i();return nt(135)?ai(e,t,void 0,r,170):nt(147)?ai(e,t,void 0,r,171):rr()?ir(e,t,void 0,r):function(e,t,r){var n,i=tt(),a=Je(57);if(20===ge()||29===ge()){var o=Wt(),s=Zt(4),c=Qt(58,!0);n=M.createMethodSignature(r,i,a,o,s,c)}else c=Mr(),n=M.createPropertySignature(r,i,a,c),63===ge()&&(n.initializer=Jr());return er(),K(qe(n,e),t)}(e,t,r)}function sr(){return he(),20===ge()||29===ge()}function cr(){return 24===he()}function lr(){switch(he()){case 20:case 29:case 24:return!0}return!1}function ur(){var e;return we(18)?(e=vt(4,or),we(19)):e=Ct(),e}function _r(){return he(),39===ge()||40===ge()?143===he():(143===ge()&&he(),22===ge()&&dt()&&101===he())}function dr(){var t=pe();if(je(25))return qe(M.createRestTypeNode(Or()),t);var r=Or();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=M.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function pr(){return 58===he()||57===ge()&&58===he()}function fr(){return 25===ge()?e.tokenIsIdentifierOrKeyword(he())&&pr():e.tokenIsIdentifierOrKeyword(ge())&&pr()}function gr(){if(ke(fr)){var e=pe(),t=fe(),r=Je(25),n=Ze(),i=Je(57);we(58);var a=dr();return K(qe(M.createNamedTupleMember(r,n,i,a),e),t)}return dr()}function mr(){var e=pe(),t=fe(),r=function(){var e;if(126===ge()){var t=pe();he(),e=We([qe(M.createToken(126),t)],t)}return e}(),n=je(103),i=Wt(),a=Zt(4),o=Qt(38,!1),s=n?M.createConstructorTypeNode(r,i,a,o):M.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),K(qe(s,e),t)}function yr(){var e=Ue();return 24===ge()?void 0:e}function hr(e){var t=pe();e&&he();var r=110===ge()||95===ge()||104===ge()?Ue():Rt(ge());return e&&(r=qe(M.createPrefixUnaryExpression(40,r),t)),qe(M.createLiteralTypeNode(r),t)}function vr(){return he(),100===ge()}function br(){d|=1048576;var e=pe(),t=je(112);we(100),we(20);var r=Or();we(21);var n=je(24)?Bt():void 0,i=jt();return qe(M.createImportTypeNode(r,n,i,t),e)}function xr(){return he(),8===ge()||9===ge()}function Dr(){switch(ge()){case 129:case 153:case 148:case 145:case 156:case 149:case 132:case 151:case 142:case 146:return Ae(yr)||Jt();case 66:c.reScanAsteriskEqualsToken();case 41:return r=pe(),he(),qe(M.createJSDocAllType(),r);case 60:c.reScanQuestionToken();case 57:return function(){var e=pe();return he(),27===ge()||19===ge()||21===ge()||31===ge()||63===ge()||51===ge()?qe(M.createJSDocUnknownType(),e):qe(M.createJSDocNullableType(Or()),e)}();case 98:return function(){var e=pe(),t=fe();if(ke(Ti)){he();var r=Zt(36),n=Qt(58,!1);return K(qe(M.createJSDocFunctionType(r,n),e),t)}return qe(M.createTypeReferenceNode(Ze(),void 0),e)}();case 53:return function(){var e=pe();return he(),qe(M.createJSDocNonNullableType(Dr()),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return hr();case 40:return ke(xr)?hr(!0):Jt();case 114:return Ue();case 108:var e=Ut();return 138!==ge()||c.hasPrecedingLineBreak()?e:(t=e,he(),qe(M.createTypePredicateNode(void 0,t,Or()),t.pos));case 112:return ke(vr)?br():function(){var e=pe();return we(112),qe(M.createTypeQueryNode(At(!0)),e)}();case 18:return ke(_r)?function(){var e,t=pe();we(18),143!==ge()&&39!==ge()&&40!==ge()||143!==(e=Ue()).kind&&we(143),we(22);var r,n=function(){var e=pe(),t=Ze();we(101);var r=Or();return qe(M.createTypeParameterDeclaration(t,r,void 0),e)}(),i=je(127)?Or():void 0;we(23),57!==ge()&&39!==ge()&&40!==ge()||57!==(r=Ue()).kind&&we(57);var a=Mr();return Ge(),we(19),qe(M.createMappedTypeNode(e,n,i,r,a),t)}():function(){var e=pe();return qe(M.createTypeLiteralNode(ur()),e)}();case 22:return function(){var e=pe();return qe(M.createTupleTypeNode(kt(21,gr,22,23)),e)}();case 20:return function(){var e=pe();we(20);var t=Or();return we(21),qe(M.createParenthesizedType(t),e)}();case 100:return br();case 128:return ke(In)?function(){var e=pe(),t=Ve(128),r=108===ge()?Ut():$e(),n=je(138)?Or():void 0;return qe(M.createTypePredicateNode(t,r,n),e)}():Jt();case 15:return function(){var e=pe();return qe(M.createTemplateLiteralType(Mt(!1),function(){var e,t=pe(),r=[];do{e=Pt(),r.push(e)}while(16===e.literal.kind);return We(r,t)}()),e)}();default:return Jt()}var t,r}function Sr(e){switch(ge()){case 129:case 153:case 148:case 145:case 156:case 132:case 143:case 149:case 152:case 114:case 151:case 104:case 108:case 112:case 142:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 146:case 41:case 57:case 53:case 25:case 136:case 100:case 128:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&ke(xr);case 20:return!e&&ke(Er);default:return Fe()}}function Er(){return he(),21===ge()||qt(!1)||Sr()}function Tr(){var e,t=ge();switch(t){case 139:case 152:case 143:return function(e){var t=pe();return we(e),qe(M.createTypeOperatorNode(e,Tr()),t)}(t);case 136:return e=pe(),we(136),qe(M.createInferTypeNode(function(){var e=pe();return qe(M.createTypeParameterDeclaration($e(),void 0,void 0),e)}()),e)}return function(){for(var e=pe(),t=Dr();!c.hasPrecedingLineBreak();)switch(ge()){case 53:he(),t=qe(M.createJSDocNonNullableType(t),e);break;case 57:if(ke(yt))return t;he(),t=qe(M.createJSDocNullableType(t),e);break;case 22:if(we(22),Sr()){var r=Or();we(23),t=qe(M.createIndexedAccessTypeNode(t,r),e)}else we(23),t=qe(M.createArrayTypeNode(t),e);break;default:return t}return t}()}function Cr(t){if(Fr()){var r=mr();return _e(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function kr(e,t,r){var n=pe(),i=51===e,a=je(e),o=a&&Cr(i)||t();if(ge()===e||a){for(var s=[o];je(e);)s.push(Cr(i)||t());o=qe(r(We(s,n)),n)}return o}function Ar(){return kr(50,Tr,M.createIntersectionTypeNode)}function Nr(){return he(),103===ge()}function Fr(){return 29===ge()||!(20!==ge()||!ke(wr))||103===ge()||126===ge()&&ke(Nr)}function wr(){if(he(),21===ge()||25===ge())return!0;if(function(){if(e.isModifierKind(ge())&&_i(),Fe()||108===ge())return he(),!0;if(22===ge()||18===ge()){var t=S.length;return Yn(),t===S.length}return!1}()){if(58===ge()||27===ge()||57===ge()||63===ge())return!0;if(21===ge()&&(he(),38===ge()))return!0}return!1}function Pr(){var e=pe(),t=Fe()&&Ae(Ir),r=Or();return t?qe(M.createTypePredicateNode(void 0,t,r),e):r}function Ir(){var e=$e();if(138===ge()&&!c.hasPrecedingLineBreak())return he(),e}function Or(){return Z(40960,Lr)}function Lr(e){if(Fr())return mr();var t=pe(),r=kr(51,Ar,M.createUnionTypeNode);if(!e&&!c.hasPrecedingLineBreak()&&je(94)){var n=Lr(!0);we(57);var i=Lr();we(58);var a=Lr();return qe(M.createConditionalTypeNode(r,n,i,a),t)}return r}function Mr(){return je(58)?Or():void 0}function Rr(){switch(ge()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return ke(lr);default:return Fe()}}function Br(){if(Rr())return!0;switch(ge()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 131:case 125:case 80:return!0;default:return!(ae()&&101===ge()||!(e.getBinaryOperatorPrecedence(ge())>0))||Fe()}}function jr(){var e=oe();e&&Q(!1);for(var t,r=pe(),n=Vr();t=Je(27);)n=Qr(n,t,Vr(),r);return e&&Q(!0),n}function Jr(){return je(63)?Vr():void 0}function Vr(){if(125===ge()&&(ie()||ke(Mn)))return function(){var e=pe();return he(),c.hasPrecedingLineBreak()||41!==ge()&&!Br()?qe(M.createYieldExpression(void 0,void 0),e):qe(M.createYieldExpression(Je(41),Vr()),e)}();var t=function(){var e=20===ge()||29===ge()||130===ge()?ke(Kr):38===ge()?1:0;if(0!==e)return 1===e?Wr(!0):Ae(zr)}()||function(){if(130===ge()&&1===ke(Gr)){var e=pe(),t=di();return Ur(e,Hr(0),t)}}();if(t)return t;var r=pe(),n=Hr(0);return 79===n.kind&&38===ge()?Ur(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(be())?Qr(n,Ue(),Vr(),r):function(t,r){var n,i=Je(57);return i?qe(M.createConditionalExpression(t,i,Z(20480,Vr),n=Ve(58),e.nodeIsPresent(n)?Vr():He(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r):t}(n,r)}function Ur(t,r,n){e.Debug.assert(38===ge(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=M.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);qe(i,r.pos);var a=We([i],i.pos,i.end),o=Ve(38),s=qr(!!n);return G(qe(M.createArrowFunction(n,void 0,a,void 0,o,s),t))}function Kr(){if(130===ge()){if(he(),c.hasPrecedingLineBreak())return 0;if(20!==ge()&&29!==ge())return 0}var t=ge(),r=he();if(20===t){if(21===r)switch(he()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&130!==r&&ke(dt))return 1;if(!Fe()&&108!==r)return 0;switch(he()){case 58:return 1;case 57:return he(),58===ge()||27===ge()||63===ge()||21===ge()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===t),Fe()?1===D?ke((function(){var e=he();if(94===e)switch(he()){case 63:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function zr(){var t=c.getTokenPos();if(!(null==I?void 0:I.has(t))){var r=Wr(!1);return r||(I||(I=new e.Set)).add(t),r}}function Gr(){if(130===ge()){if(he(),c.hasPrecedingLineBreak()||38===ge())return 0;var e=Hr(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===ge())return 1}return 0}function Wr(t){var r,n=pe(),i=fe(),a=di(),o=e.some(a,e.isAsyncModifier)?2:0,s=Wt();if(we(20)){if(r=$t(o),!we(21)&&!t)return}else{if(!t)return;r=Ct()}var c=Qt(58,!1);if(!c||t||!Vt(c)){var l=c&&e.isJSDocFunctionType(c);if(t||38===ge()||!l&&18===ge()){var u=ge(),_=Ve(38),d=38===u||18===u?qr(e.some(a,e.isAsyncModifier)):$e();return K(qe(M.createArrowFunction(a,s,r,c,_,d),n),i)}}}function qr(e){if(18===ge())return Fn(e?2:0);if(26!==ge()&&98!==ge()&&84!==ge()&&jn()&&(18===ge()||98===ge()||84===ge()||59===ge()||!Br()))return Fn(16|(e?2:0));var t=R;R=!1;var r=e?re(Vr):Z(32768,Vr);return R=t,r}function Hr(e){var t=pe();return Xr(e,Zr(),t)}function Yr(e){return 101===e||158===e}function Xr(t,r,n){for(;;){be();var i=e.getBinaryOperatorPrecedence(ge());if(!(42===ge()?i>=t:i>t))break;if(101===ge()&&ae())break;if(127===ge()){if(c.hasPrecedingLineBreak())break;he(),a=r,o=Or(),r=qe(M.createAsExpression(a,o),a.pos)}else r=Qr(r,Ue(),Hr(i),n)}var a,o;return r}function Qr(e,t,r,n){return qe(M.createBinaryExpression(e,t,r),n)}function $r(){var e=pe();return qe(M.createPrefixUnaryExpression(ge(),ye(en)),e)}function Zr(){if(function(){switch(ge()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 131:return!1;case 29:if(1!==D)return!1;default:return!0}}()){var t=pe(),r=tn();return 42===ge()?Xr(e.getBinaryOperatorPrecedence(ge()),r,t):r}var n=ge(),i=en();if(42===ge()){t=e.skipTrivia(g,i.pos);var a=i.end;209===i.kind?ue(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):ue(t,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}return i}function en(){switch(ge()){case 39:case 40:case 54:case 53:return $r();case 89:return e=pe(),qe(M.createDeleteExpression(ye(en)),e);case 112:return function(){var e=pe();return qe(M.createTypeOfExpression(ye(en)),e)}();case 114:return function(){var e=pe();return qe(M.createVoidExpression(ye(en)),e)}();case 29:return function(){var e=pe();we(29);var t=Or();we(31);var r=en();return qe(M.createTypeAssertion(t,r),e)}();case 131:if(131===ge()&&(se()||ke(Mn)))return function(){var e=pe();return qe(M.createAwaitExpression(ye(en)),e)}();default:return tn()}var e}function tn(){if(45===ge()||46===ge()){var t=pe();return qe(M.createPrefixUnaryExpression(ge(),ye(rn)),t)}if(1===D&&29===ge()&&ke(ft))return an(!0);var r=rn();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===ge()||46===ge())&&!c.hasPrecedingLineBreak()){var n=ge();return he(),qe(M.createPostfixUnaryExpression(r,n),r.pos)}return r}function rn(){var t,r=pe();return 100===ge()?ke(sr)?(d|=1048576,t=Ue()):ke(cr)?(he(),he(),t=qe(M.createMetaProperty(100,Ze()),r),d|=2097152):t=nn():t=106===ge()?function(){var t=pe(),r=Ue();if(29===ge()){var n=pe();void 0!==Ae(bn)&&ue(n,pe(),e.Diagnostics.super_may_not_use_type_arguments)}return 20===ge()||24===ge()||22===ge()?r:(Ve(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),qe(M.createPropertyAccessExpression(r,Ft(!0,!0)),t))}():nn(),hn(r,t)}function nn(){return gn(pe(),xn(),!0)}function an(t,r,n){var a,o=pe(),s=function(e){var t=pe();if(we(29),31===ge())return Te(),qe(M.createJsxOpeningFragment(),t);var r,n=cn(),i=0==(131072&O)?vi():void 0,a=function(){var e=pe();return qe(M.createJsxAttributes(vt(13,un)),e)}();return 31===ge()?(Te(),r=M.createJsxOpeningElement(n,i,a)):(we(43),we(31,void 0,!1)&&(e?he():Te()),r=M.createJsxSelfClosingElement(n,i,a)),qe(r,t)}(t);if(278===s.kind){var c=sn(s),l=void 0,u=c[c.length-1];if(276===(null==u?void 0:u.kind)&&!C(u.openingElement.tagName,u.closingElement.tagName)&&C(s.tagName,u.closingElement.tagName)){var _=u.openingElement.end,d=qe(M.createJsxElement(u.openingElement,We([],_,_),qe(M.createJsxClosingElement(qe(M.createIdentifier(""),_,_)),_,_)),u.openingElement.pos,_);c=We(i(i([],c.slice(0,c.length-1),!0),[d],!1),c.pos,_),l=u.closingElement}else l=function(e,t){var r=pe();we(30);var n=cn();return we(31,void 0,!1)&&(t||!C(e.tagName,n)?he():Te()),qe(M.createJsxClosingElement(n),r)}(s,t),C(s.tagName,l.tagName)||(n&&e.isJsxOpeningElement(n)&&C(l.tagName,n.tagName)?_e(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(g,s.tagName)):_e(l.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(g,s.tagName)));a=qe(M.createJsxElement(s,c,l),o)}else 281===s.kind?a=qe(M.createJsxFragment(s,sn(s),function(t){var r=pe();return we(30),e.tokenIsIdentifierOrKeyword(ge())&&_e(cn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),we(31,void 0,!1)&&(t?he():Te()),qe(M.createJsxJsxClosingFragment(),r)}(t)),o):(e.Debug.assert(277===s.kind),a=s);if(t&&29===ge()){var p=void 0===r?a.pos:r,f=Ae((function(){return an(!0,p)}));if(f){var m=He(27,!1);return e.setTextRangePosWidth(m,f.pos,0),ue(e.skipTrivia(g,p),f.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),qe(M.createBinaryExpression(a,m,f),o)}}return a}function on(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))_e(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;ue(e.skipTrivia(g,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(g,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=pe(),a=M.createJsxText(c.getTokenValue(),12===k),k=c.scanJsxToken(),qe(a,i);case 18:return ln(!1);case 29:return an(!1,void 0,t);default:return e.Debug.assertNever(r)}var i,a}function sn(t){var r=[],n=pe(),i=P;for(P|=16384;;){var a=on(t,k=c.reScanJsxToken());if(!a)break;if(r.push(a),e.isJsxOpeningElement(t)&&276===(null==a?void 0:a.kind)&&!C(a.openingElement.tagName,a.closingElement.tagName)&&C(t.tagName,a.closingElement.tagName))break}return P=i,We(r,n)}function cn(){var e=pe();Ee();for(var t=108===ge()?Ue():Ze();je(24);)t=qe(M.createPropertyAccessExpression(t,Ft(!0,!1)),e);return t}function ln(e){var t,r,n=pe();if(we(18))return 19!==ge()&&(t=Je(25),r=jr()),e?we(19):we(19,void 0,!1)&&Te(),qe(M.createJsxExpression(t,r),n)}function un(){if(18===ge())return function(){var e=pe();we(18),we(25);var t=jr();return we(19),qe(M.createJsxSpreadAttribute(t),e)}();Ee();var e=pe();return qe(M.createJsxAttribute(Ze(),63!==ge()?void 0:10===(k=c.scanJsxAttributeValue())?Lt():ln(!0)),e)}function _n(){return he(),e.tokenIsIdentifierOrKeyword(ge())||22===ge()||mn()}function dn(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function pn(t,r,n){var i=Ft(!0,!0),a=n||dn(r),o=a?M.createPropertyAccessChain(r,n,i):M.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&_e(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),qe(o,t)}function fn(t,r,n){var i;if(23===ge())i=He(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=te(jr);e.isStringOrNumericLiteralLike(a)&&(a.text=Ye(a.text)),i=a}return we(23),qe(n||dn(r)?M.createElementAccessChain(r,n,i):M.createElementAccessExpression(r,i),t)}function gn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===ge()&&ke(_n)?(i=Ve(28),a=e.tokenIsIdentifierOrKeyword(ge())):a=je(24),a)r=pn(t,r,i);else if(i||53!==ge()||c.hasPrecedingLineBreak())if(!i&&oe()||!je(22)){if(!mn())return r;r=yn(t,r,i,void 0)}else r=fn(t,r,i);else he(),r=qe(M.createNonNullExpression(r),t)}}function mn(){return 14===ge()||15===ge()}function yn(e,t,r,n){var i=M.createTaggedTemplateExpression(t,n,14===ge()?(xe(),Lt()):wt(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,qe(i,e)}function hn(t,r){for(;;){r=gn(t,r,!0);var n=Je(28);if(0!=(131072&O)||29!==ge()&&47!==ge()){if(20===ge()){a=vn(),r=qe(n||dn(r)?M.createCallChain(r,n,void 0,a):M.createCallExpression(r,void 0,a),t);continue}}else{var i=Ae(bn);if(i){if(mn()){r=yn(t,r,n,i);continue}var a=vn();r=qe(n||dn(r)?M.createCallChain(r,n,i,a):M.createCallExpression(r,i,a),t);continue}}if(n){var o=He(79,!1,e.Diagnostics.Identifier_expected);r=qe(M.createPropertyAccessChain(r,n,o),t)}break}return r}function vn(){we(20);var e=Et(11,Sn);return we(21),e}function bn(){if(0==(131072&O)&&29===De()){he();var e=Et(20,Or);if(we(31))return e&&function(){switch(ge()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;default:return!1}}()?e:void 0}}function xn(){switch(ge()){case 8:case 9:case 10:case 14:return Lt();case 108:case 106:case 104:case 110:case 95:return Ue();case 20:return function(){var e=pe(),t=fe();we(20);var r=te(jr);return we(21),K(qe(M.createParenthesizedExpression(r),e),t)}();case 22:return En();case 18:return Cn();case 130:if(!ke(Ln))break;return kn();case 84:return gi(pe(),fe(),void 0,void 0,224);case 98:return kn();case 103:return function(){var t=pe();if(we(103),je(24)){var r=Ze();return qe(M.createMetaProperty(103,r),t)}for(var n,i,a=pe(),o=xn();;){o=gn(a,o,!1),n=Ae(bn),mn()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=yn(a,o,void 0,n),n=void 0);break}return 20===ge()?i=vn():n&&ue(t,c.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),qe(M.createNewExpression(o,n,i),t)}();case 43:case 68:if(13===(k=c.reScanSlashToken()))return Lt();break;case 15:return wt(!1)}return $e(e.Diagnostics.Expression_expected)}function Dn(){return 25===ge()?function(){var e=pe();we(25);var t=Vr();return qe(M.createSpreadElement(t),e)}():27===ge()?qe(M.createOmittedExpression(),pe()):Vr()}function Sn(){return Z(20480,Dn)}function En(){var e=pe();we(22);var t=c.hasPrecedingLineBreak(),r=Et(15,Dn);return we(23),qe(M.createArrayLiteralExpression(r,t),e)}function Tn(){var e=pe(),t=fe();if(Je(25)){var r=Vr();return K(qe(M.createSpreadAssignment(r),e),t)}var n=li(),i=_i();if(nt(135))return ai(e,t,n,i,170);if(nt(147))return ai(e,t,n,i,171);var a,o=Je(41),s=Fe(),c=tt(),l=Je(57),u=Je(53);if(o||20===ge()||29===ge())return ri(e,t,n,i,o,c,l,u);if(s&&58!==ge()){var _=Je(63),d=_?te(Vr):void 0;(a=M.createShorthandPropertyAssignment(c,d)).equalsToken=_}else{we(58);var p=te(Vr);a=M.createPropertyAssignment(c,p)}return a.decorators=n,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,K(qe(a,e),t)}function Cn(){var t=pe(),r=c.getTokenPos();we(18);var n=c.hasPrecedingLineBreak(),i=Et(12,Tn,!0);if(!we(19)){var a=e.lastOrUndefined(S);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(_,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return qe(M.createObjectLiteralExpression(i,n),t)}function kn(){var t=oe();Q(!1);var r=pe(),n=fe(),i=_i();we(98);var a=Je(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ee(40960,An):o?ee(8192,An):s?re(An):An(),l=Wt(),u=Zt(o|s),_=Qt(58,!1),d=Fn(o|s);return Q(t),K(qe(M.createFunctionExpression(i,a,c,l,u,_,d),r),n)}function An(){return Ne()?Qe():void 0}function Nn(t,r){var n=pe(),i=fe(),a=c.getTokenPos();if(we(18,r)||t){var o=c.hasPrecedingLineBreak(),s=vt(1,Vn);if(!we(19)){var l=e.lastOrUndefined(S);l&&l.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(l,e.createDetachedDiagnostic(_,a,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var u=K(qe(M.createBlock(s,o),n),i);return 63===ge()&&(ce(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),he()),u}return s=Ct(),K(qe(M.createBlock(s,void 0),n),i)}function Fn(e,t){var r=ie();X(!!(1&e));var n=se();$(!!(2&e));var i=R;R=!1;var a=oe();a&&Q(!1);var o=Nn(!!(16&e),t);return a&&Q(!0),R=i,X(r),$(n),o}function wn(e){var t=pe(),r=fe();we(244===e?81:86);var n=Ke()?void 0:$e();return Ge(),K(qe(244===e?M.createBreakStatement(n):M.createContinueStatement(n),t),r)}function Pn(){return 82===ge()?function(){var e=pe();we(82);var t=te(jr);we(58);var r=vt(3,Vn);return qe(M.createCaseClause(t,r),e)}():function(){var e=pe();we(88),we(58);var t=vt(3,Vn);return qe(M.createDefaultClause(t),e)}()}function In(){return he(),e.tokenIsIdentifierOrKeyword(ge())&&!c.hasPrecedingLineBreak()}function On(){return he(),84===ge()&&!c.hasPrecedingLineBreak()}function Ln(){return he(),98===ge()&&!c.hasPrecedingLineBreak()}function Mn(){return he(),(e.tokenIsIdentifierOrKeyword(ge())||8===ge()||9===ge()||10===ge())&&!c.hasPrecedingLineBreak()}function Rn(){for(;;)switch(ge()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 150:return he(),!c.hasPrecedingLineBreak()&&Fe();case 140:case 141:return he(),!c.hasPrecedingLineBreak()&&(Fe()||10===ge());case 126:case 130:case 134:case 121:case 122:case 123:case 143:if(he(),c.hasPrecedingLineBreak())return!1;continue;case 155:return he(),18===ge()||79===ge()||93===ge();case 100:return he(),10===ge()||41===ge()||18===ge()||e.tokenIsIdentifierOrKeyword(ge());case 93:var t=he();if(150===t&&(t=ke(he)),63===t||41===t||18===t||88===t||127===t)return!0;continue;case 124:he();continue;default:return!1}}function Bn(){return ke(Rn)}function jn(){switch(ge()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:case 130:case 134:case 118:case 140:case 141:case 150:case 155:return!0;case 100:return Bn()||ke(lr);case 85:case 93:return Bn();case 123:case 121:case 122:case 124:case 143:return Bn()||!ke(In);default:return Br()}}function Jn(){return he(),Ne()||18===ge()||22===ge()}function Vn(){switch(ge()){case 26:return t=pe(),r=fe(),we(26),K(qe(M.createEmptyStatement(),t),r);case 18:return Nn(!1);case 113:return ei(pe(),fe(),void 0,void 0);case 119:if(ke(Jn))return ei(pe(),fe(),void 0,void 0);break;case 98:return ti(pe(),fe(),void 0,void 0);case 84:return fi(pe(),fe(),void 0,void 0);case 99:return function(){var e=pe(),t=fe();we(99),we(20);var r=te(jr);we(21);var n=Vn(),i=je(91)?Vn():void 0;return K(qe(M.createIfStatement(r,n,i),e),t)}();case 90:return function(){var e=pe(),t=fe();we(90);var r=Vn();we(115),we(20);var n=te(jr);return we(21),je(26),K(qe(M.createDoStatement(r,n),e),t)}();case 115:return function(){var e=pe(),t=fe();we(115),we(20);var r=te(jr);we(21);var n=Vn();return K(qe(M.createWhileStatement(r,n),e),t)}();case 97:return function(){var e=pe(),t=fe();we(97);var r,n,i=Je(131);if(we(20),26!==ge()&&(r=113===ge()||119===ge()||85===ge()?$n(!0):ee(4096,jr)),i?we(158):je(158)){var a=te(Vr);we(21),n=M.createForOfStatement(i,r,a,Vn())}else if(je(101))a=te(jr),we(21),n=M.createForInStatement(r,a,Vn());else{we(26);var o=26!==ge()&&21!==ge()?te(jr):void 0;we(26);var s=21!==ge()?te(jr):void 0;we(21),n=M.createForStatement(r,o,s,Vn())}return K(qe(n,e),t)}();case 86:return wn(243);case 81:return wn(244);case 105:return function(){var e=pe(),t=fe();we(105);var r=Ke()?void 0:te(jr);return Ge(),K(qe(M.createReturnStatement(r),e),t)}();case 116:return function(){var e=pe(),t=fe();we(116),we(20);var r=te(jr);we(21);var n=ee(16777216,Vn);return K(qe(M.createWithStatement(r,n),e),t)}();case 107:return function(){var e=pe(),t=fe();we(107),we(20);var r=te(jr);we(21);var n=function(){var e=pe();we(18);var t=vt(2,Pn);return we(19),qe(M.createCaseBlock(t),e)}();return K(qe(M.createSwitchStatement(r,n),e),t)}();case 109:return function(){var e=pe(),t=fe();we(109);var r=c.hasPrecedingLineBreak()?void 0:te(jr);return void 0===r&&(w++,r=qe(M.createIdentifier(""),pe())),ze()||Me(r),K(qe(M.createThrowStatement(r),e),t)}();case 111:case 83:case 96:return function(){var e=pe(),t=fe();we(111);var r,n=Nn(!1),i=83===ge()?function(){var e,t=pe();we(83),je(20)?(e=Qn(),we(21)):e=void 0;var r=Nn(!1);return qe(M.createCatchClause(e,r),t)}():void 0;return i&&96!==ge()||(we(96),r=Nn(!1)),K(qe(M.createTryStatement(n,i,r),e),t)}();case 87:return function(){var e=pe(),t=fe();return we(87),Ge(),K(qe(M.createDebuggerStatement(),e),t)}();case 59:return Kn();case 130:case 118:case 150:case 140:case 141:case 134:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 143:case 155:if(Bn())return Kn()}var t,r;return function(){var t,r=pe(),n=fe(),i=20===ge(),a=te(jr);return e.isIdentifier(a)&&je(58)?t=M.createLabeledStatement(a,Vn()):(ze()||Me(a),t=M.createExpressionStatement(a),i&&(n=!1)),K(qe(t,r),n)}()}function Un(e){return 134===e.kind}function Kn(){var t=e.some(ke((function(){return li(),_i()})),Un);if(t){var r=ee(8388608,(function(){var e=xt(P);if(e)return Dt(e)}));if(r)return r}var n=pe(),i=fe(),a=li(),o=_i();if(t){for(var s=0,c=o;s<c.length;s++)c[s].flags|=8388608;return ee(8388608,(function(){return zn(n,i,a,o)}))}return zn(n,i,a,o)}function zn(t,r,n,i){switch(ge()){case 113:case 119:case 85:return ei(t,r,n,i);case 98:return ti(t,r,n,i);case 84:return fi(t,r,n,i);case 118:return function(e,t,r,n){we(118);var i=$e(),a=Wt(),o=mi(),s=ur();return K(qe(M.createInterfaceDeclaration(r,n,i,a,o,s),e),t)}(t,r,n,i);case 150:return function(e,t,r,n){we(150);var i=$e(),a=Wt();we(63);var o=137===ge()&&Ae(yr)||Or();return Ge(),K(qe(M.createTypeAliasDeclaration(r,n,i,a,o),e),t)}(t,r,n,i);case 92:return function(e,t,r,n){we(92);var i,a=$e();return we(18)?(i=Z(40960,(function(){return Et(6,xi)})),we(19)):i=Ct(),K(qe(M.createEnumDeclaration(r,n,a,i),e),t)}(t,r,n,i);case 155:case 140:case 141:return function(e,t,r,n){var i=0;if(155===ge())return Ei(e,t,r,n);if(je(141))i|=16;else if(we(140),10===ge())return Ei(e,t,r,n);return Si(e,t,r,n,i)}(t,r,n,i);case 100:return function(e,t,r,n){we(100);var i,a=c.getStartPos();Fe()&&(i=$e());var o,s=!1;if(154===ge()||"type"!==(null==i?void 0:i.escapedText)||!Fe()&&41!==ge()&&18!==ge()||(s=!0,i=Fe()?$e():void 0),i&&27!==ge()&&154!==ge())return function(e,t,r,n,i,a){we(63);var o=144===ge()&&ke(Ti)?function(){var e=pe();we(144),we(20);var t=Ai();return we(21),qe(M.createExternalModuleReference(t),e)}():At(!1);return Ge(),K(qe(M.createImportEqualsDeclaration(r,n,a,i,o),e),t)}(e,t,r,n,i,s);(i||41===ge()||18===ge())&&(o=function(e,t,r){var n;return e&&!je(27)||(n=41===ge()?function(){var e=pe();we(41),we(127);var t=$e();return qe(M.createNamespaceImport(t),e)}():Ni(267)),qe(M.createImportClause(r,e,n),t)}(i,a,s),we(154));var l=Ai();return Ge(),K(qe(M.createImportDeclaration(r,n,o,l),e),t)}(t,r,n,i);case 93:switch(he(),ge()){case 88:case 63:return function(e,t,r,n){var i,a=se();$(!0),je(63)?i=!0:we(88);var o=Vr();return Ge(),$(a),K(qe(M.createExportAssignment(r,n,i,o),e),t)}(t,r,n,i);case 127:return function(e,t,r,n){we(127),we(141);var i=$e();Ge();var a=M.createNamespaceExportDeclaration(i);return a.decorators=r,a.modifiers=n,K(qe(a,e),t)}(t,r,n,i);default:return function(e,t,r,n){var i,a,o=se();$(!0);var s=je(150),l=pe();return je(41)?(je(127)&&(i=function(e){return qe(M.createNamespaceExport(Ze()),e)}(l)),we(154),a=Ai()):(i=Ni(271),(154===ge()||10===ge()&&!c.hasPrecedingLineBreak())&&(we(154),a=Ai())),Ge(),$(o),K(qe(M.createExportDeclaration(r,n,s,i,a),e),t)}(t,r,n,i)}default:if(n||i){var a=He(274,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(a,t),a.decorators=n,a.modifiers=i,a}return}}function Gn(e,t){if(18===ge()||!Ke())return Fn(e,t);Ge()}function Wn(){var e=pe();if(27===ge())return qe(M.createOmittedExpression(),e);var t=Je(25),r=Yn(),n=Jr();return qe(M.createBindingElement(t,void 0,r,n),e)}function qn(){var e,t=pe(),r=Je(25),n=Ne(),i=tt();n&&58!==ge()?(e=i,i=void 0):(we(58),e=Yn());var a=Jr();return qe(M.createBindingElement(r,i,e,a),t)}function Hn(){return 18===ge()||22===ge()||80===ge()||Ne()}function Yn(e){return 22===ge()?function(){var e=pe();we(22);var t=Et(10,Wn);return we(23),qe(M.createArrayBindingPattern(t),e)}():18===ge()?function(){var e=pe();we(18);var t=Et(9,qn);return we(19),qe(M.createObjectBindingPattern(t),e)}():Qe(e)}function Xn(){return Qn(!0)}function Qn(t){var r,n=pe(),i=fe(),a=Yn(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);t&&79===a.kind&&53===ge()&&!c.hasPrecedingLineBreak()&&(r=Ue());var o=Mr(),s=Yr(ge())?void 0:Jr();return K(qe(M.createVariableDeclaration(a,r,o,s),n),i)}function $n(t){var r,n=pe(),i=0;switch(ge()){case 113:break;case 119:i|=1;break;case 85:i|=2;break;default:e.Debug.fail()}if(he(),158===ge()&&ke(Zn))r=Ct();else{var a=ae();Y(t),r=Et(8,t?Qn:Xn),Y(a)}return qe(M.createVariableDeclarationList(r,i),n)}function Zn(){return dt()&&21===he()}function ei(e,t,r,n){var i=$n(!1);Ge();var a=M.createVariableStatement(n,i);return a.decorators=r,K(qe(a,e),t)}function ti(t,r,n,i){var a=se(),o=e.modifiersToFlags(i);we(98);var s=Je(41),c=512&o?An():Qe(),l=s?1:0,u=256&o?2:0,_=Wt();1&o&&$(!0);var d=Zt(l|u),p=Qt(58,!1),f=Gn(l|u,e.Diagnostics.or_expected);return $(a),K(qe(M.createFunctionDeclaration(n,i,s,c,_,d,p,f),t),r)}function ri(t,r,n,i,a,o,s,c,l){var u=a?1:0,_=e.some(i,e.isAsyncModifier)?2:0,d=Wt(),p=Zt(u|_),f=Qt(58,!1),g=Gn(u|_,l),m=M.createMethodDeclaration(n,i,a,o,s,d,p,f,g);return m.exclamationToken=c,K(qe(m,t),r)}function ni(t,r,n,i,a,o){var s=o||c.hasPrecedingLineBreak()?void 0:Je(53),l=Mr(),u=Z(45056,Jr);return function(t,r,n){if(59!==ge()||c.hasPrecedingLineBreak())return 20===ge()?(ce(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),void he()):void(!r||Ke()?ze()||(n?18===ge()&&ce(e.Diagnostics._0_expected,e.tokenToString(26)):Me(t)):n?ce(e.Diagnostics._0_expected,e.tokenToString(26)):ce(e.Diagnostics.Expected_for_property_initializer));ce(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(a,l,u),K(qe(M.createPropertyDeclaration(n,i,a,o||s,l,u),t),r)}function ii(t,r,n,i){var a=Je(41),o=tt(),s=Je(57);return a||20===ge()||29===ge()?ri(t,r,n,i,a,o,s,void 0,e.Diagnostics.or_expected):ni(t,r,n,i,o,s)}function ai(e,t,r,n,i){var a=tt(),o=Wt(),s=Zt(0),c=Qt(58,!1),l=Gn(0),u=170===i?M.createGetAccessorDeclaration(r,n,a,s,c,l):M.createSetAccessorDeclaration(r,n,a,s,l);return u.typeParameters=o,c&&171===u.kind&&(u.type=c),K(qe(u,e),t)}function oi(){var t;if(59===ge())return!0;for(;e.isModifierKind(ge());){if(t=ge(),e.isClassMemberModifier(t))return!0;he()}if(41===ge())return!0;if(et()&&(t=ge(),he()),22===ge())return!0;if(void 0!==t){if(!e.isKeyword(t)||147===t||135===t)return!0;switch(ge()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Ke()}}return!1}function si(){if(se()&&131===ge()){var t=pe(),r=$e(e.Diagnostics.Expression_expected);return he(),hn(t,gn(t,r,!0))}return rn()}function ci(){var e=pe();if(je(59)){var t=ee(16384,si);return qe(M.createDecorator(t),e)}}function li(){for(var t,r,n=pe();r=ci();)t=e.append(t,r);return t&&We(t,n)}function ui(t,r){var n=pe(),i=ge();if(85===ge()&&t){if(!Ae(it))return}else{if(r&&124===ge()&&ke(Ci))return;if(!e.isModifierKind(ge())||!Ae(at))return}return qe(M.createToken(i),n)}function _i(t,r){for(var n,i,a=pe();i=ui(t,r);)n=e.append(n,i);return n&&We(n,a)}function di(){var e;if(130===ge()){var t=pe();he(),e=We([qe(M.createToken(130),t)],t)}return e}function pi(){var t=pe();if(26===ge())return he(),qe(M.createSemicolonClassElement(),t);var r=fe(),n=li(),i=_i(!0,!0);if(124===ge()&&ke(Ci))return function(e,t,r,n){Ve(124);var i=function(){var e=ie(),t=se();X(!1),$(!0);var r=Nn(!1);return X(e),$(t),r}();return K(qe(M.createClassStaticBlockDeclaration(r,n,i),e),t)}(t,r,n,i);if(nt(135))return ai(t,r,n,i,170);if(nt(147))return ai(t,r,n,i,171);if(133===ge()||10===ge()){var a=function(t,r,n,i){return Ae((function(){if(133===ge()?we(133):10===ge()&&20===ke(he)?Ae((function(){var e=Lt();return"constructor"===e.text?e:void 0})):void 0){var a=Wt(),o=Zt(0),s=Qt(58,!1),c=Gn(0,e.Diagnostics.or_expected),l=M.createConstructorDeclaration(n,i,o,c);return l.typeParameters=a,l.type=s,K(qe(l,t),r)}}))}(t,r,n,i);if(a)return a}if(rr())return ir(t,r,n,i);if(e.tokenIsIdentifierOrKeyword(ge())||10===ge()||8===ge()||41===ge()||22===ge()){if(e.some(i,Un)){for(var o=0,s=i;o<s.length;o++)s[o].flags|=8388608;return ee(8388608,(function(){return ii(t,r,n,i)}))}return ii(t,r,n,i)}if(n||i){var c=He(79,!0,e.Diagnostics.Declaration_expected);return ni(t,r,n,i,c,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function fi(e,t,r,n){return gi(e,t,r,n,255)}function gi(t,r,n,i,a){var o=se();we(84);var s=!Ne()||117===ge()&&ke(pt)?void 0:Xe(Ne()),c=Wt();e.some(i,e.isExportModifier)&&$(!0);var l,u=mi();return we(18)?(l=vt(5,pi),we(19)):l=Ct(),$(o),K(qe(255===a?M.createClassDeclaration(n,i,s,c,u,l):M.createClassExpression(n,i,s,c,u,l),t),r)}function mi(){if(bi())return vt(22,yi)}function yi(){var t=pe(),r=ge();e.Debug.assert(94===r||117===r),he();var n=Et(7,hi);return qe(M.createHeritageClause(r,n),t)}function hi(){var e=pe(),t=rn(),r=vi();return qe(M.createExpressionWithTypeArguments(t,r),e)}function vi(){return 29===ge()?kt(20,Or,29,31):void 0}function bi(){return 94===ge()||117===ge()}function xi(){var e=pe(),t=fe(),r=tt(),n=te(Jr);return K(qe(M.createEnumMember(r,n),e),t)}function Di(){var e,t=pe();return we(18)?(e=vt(1,Vn),we(19)):e=Ct(),qe(M.createModuleBlock(e),t)}function Si(e,t,r,n,i){var a=16&i,o=$e(),s=je(24)?Si(pe(),!1,void 0,void 0,4|a):Di();return K(qe(M.createModuleDeclaration(r,n,o,s,i),e),t)}function Ei(e,t,r,n){var i,a,o=0;return 155===ge()?(i=$e(),o|=1024):(i=Lt()).text=Ye(i.text),18===ge()?a=Di():Ge(),K(qe(M.createModuleDeclaration(r,n,i,a,o),e),t)}function Ti(){return 20===he()}function Ci(){return 18===he()}function ki(){return 43===he()}function Ai(){if(10===ge()){var e=Lt();return e.text=Ye(e.text),e}return jr()}function Ni(e){var t=pe();return qe(267===e?M.createNamedImports(kt(23,wi,18,19)):M.createNamedExports(kt(23,Fi,18,19)),t)}function Fi(){return Pi(273)}function wi(){return Pi(268)}function Pi(t){var r,n,i=pe(),a=e.isKeyword(ge())&&!Fe(),o=c.getTokenPos(),s=c.getTextPos(),l=Ze();return 127===ge()?(r=l,we(127),a=e.isKeyword(ge())&&!Fe(),o=c.getTokenPos(),s=c.getTextPos(),n=Ze()):n=l,268===t&&a&&ue(o,s,e.Diagnostics.Identifier_expected),qe(268===t?M.createImportSpecifier(r,n):M.createExportSpecifier(r,n),i)}function Ii(t){return function(t,r){return e.some(t.modifiers,(function(e){return 93===e.kind}))}(t)||e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)||e.isImportDeclaration(t)||e.isExportAssignment(t)||e.isExportDeclaration(t)?t:void 0}function Oi(t){return function(t){return e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText}(t)?t:f(t,Oi)}!function(e){e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.JSDocParameters=17]="JSDocParameters",e[e.RestProperties=18]="RestProperties",e[e.TypeParameters=19]="TypeParameters",e[e.TypeArguments=20]="TypeArguments",e[e.TupleElementTypes=21]="TupleElementTypes",e[e.HeritageClauses=22]="HeritageClauses",e[e.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",e[e.Count=24]="Count"}(Pe||(Pe={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(Ie||(Ie={})),function(t){function r(e){var t=pe(),r=(e?je:we)(18),n=ee(4194304,zt);e&&!r||Be(19);var i=M.createJSDocTypeExpression(n);return W(i),qe(i,t)}function n(){for(var e=pe(),t=je(18),r=pe(),n=At(!1);80===ge();)Se(),ve(),n=qe(M.createJSDocMemberName(n,$e()),r);t&&Be(19);var i=M.createJSDocNameReference(n);return W(i),qe(i,e)}var i,a;function o(t,i){void 0===t&&(t=0);var a=g,o=void 0===i?a.length:t+i;if(i=o-t,e.Debug.assert(t>=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),p(a,t)){var s,l,u,d,f,m=[],y=[];return c.scanRange(t+3,i-5,(function(){var r,n,i=1,_=t-(a.lastIndexOf("\n",t)+1)+4;function p(e){r||(r=_),m.push(e),_+=e.length}for(ve();W(5););W(4)&&(i=0,_=0);e:for(;;){switch(ge()){case 59:0===i||1===i?(v(m),f||(f=pe()),(n=E(_))&&(s?s.push(n):(s=[n],l=n.pos),u=n.end),i=0,r=void 0):p(c.getTokenText());break;case 4:m.push(c.getTokenText()),i=0,_=0;break;case 41:var g=c.getTokenText();1===i||2===i?(i=2,p(g)):(i=1,_+=g.length);break;case 5:var b=c.getTokenText();2===i?m.push(b):void 0!==r&&_+b.length>r&&m.push(b.slice(r-_)),_+=b.length;break;case 1:break e;case 18:i=2;var x=c.getStartPos(),D=A(c.getTextPos()-1);if(D){d||h(m),y.push(qe(M.createJSDocText(m.join("")),null!=d?d:t,x)),y.push(D),m=[],d=c.getTextPos();break}default:i=2,p(c.getTokenText())}ve()}v(m),y.length&&m.length&&y.push(qe(M.createJSDocText(m.join("")),null!=d?d:t,f)),y.length&&s&&e.Debug.assertIsDefined(f,"having parsed tags implies that the end of the comment span should be set");var S=s&&We(s,l,u);return qe(M.createJSDocComment(y.length?We(y,t,f):m.length?m.join(""):void 0,S),t,o)}))}function h(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function b(){for(;;){if(ve(),1===ge())return!0;if(5!==ge()&&4!==ge())return!1}}function x(){if(5!==ge()&&4!==ge()||!ke(b))for(;5===ge()||4===ge();)ve()}function D(){if((5===ge()||4===ge())&&ke(b))return"";for(var e=c.hasPrecedingLineBreak(),t=!1,r="";e&&41===ge()||5===ge()||4===ge();)r+=c.getTokenText(),4===ge()?(e=!0,t=!0,r=""):41===ge()&&(e=!1),ve();return t?r:""}function E(t){e.Debug.assert(59===ge());var i=c.getTokenPos();ve();var a,o=q(void 0),l=D();switch(o.escapedText){case"author":a=function(t,r,n,i){var a=pe(),o=function(){for(var e=[],t=!1,r=c.getToken();1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),r=ve()}return M.createJSDocText(e.join(""))}(),s=c.getStartPos(),l=T(t,s,n,i);l||(s=c.getStartPos());var u="string"!=typeof l?We(e.concatenate([qe(o,a,s)],l),a):o.text+l;return qe(M.createJSDocAuthorTag(r,u),t)}(i,o,t,l);break;case"implements":a=function(e,t,r,n){var i=R();return qe(M.createJSDocImplementsTag(t,i,T(e,pe(),r,n)),e)}(i,o,t,l);break;case"augments":case"extends":a=function(e,t,r,n){var i=R();return qe(M.createJSDocAugmentsTag(t,i,T(e,pe(),r,n)),e)}(i,o,t,l);break;case"class":case"constructor":a=B(i,M.createJSDocClassTag,o,t,l);break;case"public":a=B(i,M.createJSDocPublicTag,o,t,l);break;case"private":a=B(i,M.createJSDocPrivateTag,o,t,l);break;case"protected":a=B(i,M.createJSDocProtectedTag,o,t,l);break;case"readonly":a=B(i,M.createJSDocReadonlyTag,o,t,l);break;case"override":a=B(i,M.createJSDocOverrideTag,o,t,l);break;case"deprecated":z=!0,a=B(i,M.createJSDocDeprecatedTag,o,t,l);break;case"this":a=function(e,t,n,i){var a=r(!0);return x(),qe(M.createJSDocThisTag(t,a,T(e,pe(),n,i)),e)}(i,o,t,l);break;case"enum":a=function(e,t,n,i){var a=r(!0);return x(),qe(M.createJSDocEnumTag(t,a,T(e,pe(),n,i)),e)}(i,o,t,l);break;case"arg":case"argument":case"param":return O(i,o,2,t);case"return":case"returns":a=function(t,r,n,i){e.some(s,e.isJSDocReturnTag)&&ue(r.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=F();return qe(M.createJSDocReturnTag(r,a,T(t,pe(),n,i)),t)}(i,o,t,l);break;case"template":a=function(e,t,n,i){var a=18===ge()?r():void 0,o=function(){var e=pe(),t=[];do{x();var r=G();void 0!==r&&t.push(r),D()}while(W(27));return We(t,e)}();return qe(M.createJSDocTemplateTag(t,a,o,T(e,pe(),n,i)),e)}(i,o,t,l);break;case"type":a=L(i,o,t,l);break;case"typedef":a=function(t,r,n,i){var a,o=F();D();var s=j();x();var c,l=C(n);if(!o||I(o.type)){for(var u=void 0,d=void 0,p=void 0,f=!1;u=Ae((function(){return V(n)}));)if(f=!0,338===u.kind){if(d){ce(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var g=e.lastOrUndefined(S);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(_,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}d=u}else p=e.append(p,u);if(f){var m=o&&181===o.type.kind,y=M.createJSDocTypeLiteral(p,m);c=(o=d&&d.typeExpression&&!I(d.typeExpression.type)?d.typeExpression:qe(y,t)).end}}return c=c||void 0!==l?pe():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,l||(l=T(t,c,n,i)),qe(M.createJSDocTypedefTag(r,o,s,l),t,c)}(i,o,t,l);break;case"callback":a=function(t,r,n,i){var a=j();x();var o=C(n),s=function(t){for(var r,n,i=pe();r=Ae((function(){return U(4,t)}));)n=e.append(n,r);return We(n||[],i)}(n),c=Ae((function(){if(W(59)){var e=E(n);if(e&&336===e.kind)return e}})),l=qe(M.createJSDocSignature(void 0,s,c),t);return o||(o=T(t,pe(),n,i)),qe(M.createJSDocCallbackTag(r,l,a,o),t)}(i,o,t,l);break;case"see":a=function(t,r,i,a){var o=ke((function(){return 59===ve()&&e.tokenIsIdentifierOrKeyword(ve())&&"link"===c.getTokenValue()}))?void 0:n(),s=void 0!==i&&void 0!==a?T(t,pe(),i,a):void 0;return qe(M.createJSDocSeeTag(r,o,s),t)}(i,o,t,l);break;default:a=function(e,t,r,n){return qe(M.createJSDocUnknownTag(t,T(e,pe(),r,n)),e)}(i,o,t,l)}return a}function T(e,t,r,n){return n||(r+=t-e),C(r,n.slice(r))}function C(e,t){var r,n,i=pe(),a=[],o=[],s=0,l=!0;function u(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&u(t),s=1);var _=ge();e:for(;;){switch(_){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!l||ke(k))){a.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)u(c.getTokenText());else{var d=c.getTokenText();void 0!==n&&e+d.length>n&&a.push(d.slice(n-e)),e+=d.length}break;case 18:s=2;var p=c.getStartPos(),f=A(c.getTextPos()-1);f?(o.push(qe(M.createJSDocText(a.join("")),null!=r?r:i,p)),o.push(f),a=[],r=c.getTextPos()):u(c.getTokenText());break;case 61:s=3===s?2:3,u(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),u(c.getTokenText())}l=5===ge(),_=ve()}return h(a),v(a),o.length?(a.length&&o.push(qe(M.createJSDocText(a.join("")),null!=r?r:i)),We(o,i,c.getTextPos())):a.length?a.join(""):void 0}function k(){var e=ve();return 5===e||4===e}function A(t){var r=Ae(N);if(r){ve(),x();var n=pe(),i=e.tokenIsIdentifierOrKeyword(ge())?At(!0):void 0;if(i)for(;80===ge();)Se(),ve(),i=qe(M.createJSDocMemberName(i,$e()),n);for(var a=[];19!==ge()&&4!==ge()&&1!==ge();)a.push(c.getTokenText()),ve();return qe(("link"===r?M.createJSDocLink:"linkcode"===r?M.createJSDocLinkCode:M.createJSDocLinkPlain)(i,a.join("")),t,c.getTextPos())}}function N(){if(D(),18===ge()&&59===ve()&&e.tokenIsIdentifierOrKeyword(ve())){var t=c.getTokenValue();if("link"===t||"linkcode"===t||"linkplain"===t)return t}}function F(){return D(),18===ge()?r():void 0}function P(){var t=W(22);t&&x();var r=W(61),n=function(){var e=q();for(je(22)&&we(23);je(24);){var t=q();je(22)&&we(23),e=Nt(e,t)}return e}();return r&&(function(e){if(ge()===e)return t=pe(),r=ge(),ve(),qe(M.createToken(r),t);var t,r}(61)||He(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),t&&(x(),Je(63)&&jr(),we(23)),{name:n,isBracketed:t}}function I(t){switch(t.kind){case 146:return!0;case 181:return I(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function O(t,r,n,i){var a=F(),o=!a;D();var s=P(),c=s.name,l=s.isBracketed,u=D();o&&!ke(N)&&(a=F());var _=T(t,pe(),i,u),d=4!==n&&function(t,r,n,i){if(t&&I(t.type)){for(var a=pe(),o=void 0,s=void 0;o=Ae((function(){return U(n,i,r)}));)335!==o.kind&&342!==o.kind||(s=e.append(s,o));if(s){var c=qe(M.createJSDocTypeLiteral(s,181===t.type.kind),a);return qe(M.createJSDocTypeExpression(c),a)}}}(a,c,n,i);return d&&(a=d,o=!0),qe(1===n?M.createJSDocPropertyTag(r,c,l,a,o,_):M.createJSDocParameterTag(r,c,l,a,o,_),t)}function L(t,n,i,a){e.some(s,e.isJSDocTypeTag)&&ue(n.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),l=void 0!==i&&void 0!==a?T(t,pe(),i,a):void 0;return qe(M.createJSDocTypeTag(n,o,l),t)}function R(){var e=je(18),t=pe(),r=function(){for(var e=pe(),t=q();je(24);){var r=q();t=qe(M.createPropertyAccessExpression(t,r),e)}return t}(),n=vi(),i=qe(M.createExpressionWithTypeArguments(r,n),t);return e&&we(19),i}function B(e,t,r,n,i){return qe(t(r,T(e,pe(),n,i)),e)}function j(t){var r=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ge())){var n=q();if(je(24)){var i=j(!0);return qe(M.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function J(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function V(e){return U(1,e)}function U(t,r,n){for(var i=!0,a=!1;;)switch(ve()){case 59:if(i){var o=K(t,r);return!(o&&(335===o.kind||342===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!J(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function K(t,r){e.Debug.assert(59===ge());var n=c.getStartPos();ve();var i,a=q();switch(x(),a.escapedText){case"type":return 1===t&&L(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&O(n,a,t,r)}function G(){var t=pe(),r=q(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(!e.nodeIsMissing(r))return qe(M.createTypeParameterDeclaration(r,void 0,void 0),t)}function W(e){return ge()===e&&(ve(),!0)}function q(t){if(!e.tokenIsIdentifierOrKeyword(ge()))return He(79,!t,t||e.Diagnostics.Identifier_expected);w++;var r=c.getTokenPos(),n=c.getTextPos(),i=ge(),a=Ye(c.getTokenValue()),o=qe(M.createIdentifier(a,void 0,i),r,n);return ve(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){J("file.js",t,99,void 0,1),c.setText(t,n,i),k=c.scan();var a=r(),o=q("file.js",99,1,!1,[],M.createToken(1),0),s=e.attachFileToDiagnostics(S,o);return E&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(E,o)),V(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=function(t,r,n){J("",t,99,void 0,1);var i=ee(4194304,(function(){return o(r,n)})),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(S,a);return V(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=k,a=S.length,s=B,c=ee(4194304,(function(){return o(r,n)}));return e.setParent(c,t),131072&O&&(E||(E=[]),E.push.apply(E,S)),k=i,S.length=a,B=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(i||(i={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(Oe=t.JSDocParser||(t.JSDocParser={}))}(l||(l={})),function(t){function r(t,r,i,o,s,c){return void(r?u(t):l(t));function l(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),f(t,l,u),e.hasJSDocNodes(t))for(var _=0,d=t.jsDoc;_<d.length;_++)l(d[_]);a(t,c)}function u(t){t._children=void 0,e.setTextRangePosEnd(t,t.pos+i,t.end+i);for(var r=0,n=t;r<n.length;r++)l(n[r])}}function n(e){switch(e.kind){case 10:case 8:case 79:return!0}return!1}function i(t,r,n,i,a){e.Debug.assert(t.end>=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a<o.length;a++)i(o[a]);f(t,i),e.Debug.assert(n<=t.end)}}function o(t,r){var n,i=t;if(f(t,(function t(a){if(!e.nodeIsMissing(a))return a.pos<=r?(a.pos>=i.pos&&(i=a),r<a.end?(f(a,t),!0):(e.Debug.assert(a.end<=r),void(n=a))):(e.Debug.assert(a.pos>r),!0)})),n){var a=function(t){for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}}(n);a.pos>i.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),l=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===l)}}function c(t){var r=t.statements,n=0;e.Debug.assert(n<r.length);var i=r[n],a=-1;return{currentNode:function(o){return o!==a&&(i&&i.end===o&&n<r.length-1&&(n++,i=r[n]),i&&i.pos===o||function(e){return r=void 0,n=-1,i=void 0,void f(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(f(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 f(c,a,o),!0}}return!1}}(o)),a=o,e.Debug.assert(!i||i.pos===o),i}}}var u;t.updateSourceFile=function(t,n,u,_){if(s(t,n,u,_=_||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return l.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var d=t;e.Debug.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0,l.fixupParentReferences(d);var p=t.text,g=c(t),m=function(t,r){for(var n=r.span.start,i=0;n>0&&i<=1;i++){var a=o(t,n);e.Debug.assert(a.pos<=n);var s=a.pos;n=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,l)}(t,u);s(t,n,m,_),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var y=e.textChangeRangeNewSpan(m).length-m.span.length;!function(t,n,o,s,c,l,u,_){return void d(t);function d(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,l,u,_);else{var g=t.end;if(g>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),f(t,d,p),e.hasJSDocNodes(t))for(var m=0,y=t.jsDoc;m<y.length;m++)d(y[m]);a(t,_)}else e.Debug.assert(g<n)}}function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!0,c,l,u,_);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var p=0,f=t;p<f.length;p++)d(f[p])}else e.Debug.assert(a<n)}}}(d,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),y,p,n,_);var h=l.parseSourceFile(t.fileName,n,t.languageVersion,g,!0,t.scriptKind);return h.commentDirectives=function(t,r,n,i,a,o,s,c){if(!t)return r;for(var l,u=!1,_=0,d=t;_<d.length;_++){var p=d[_],f=p.range,g=p.type;if(f.end<n)l=e.append(l,p);else if(f.pos>i){y();var m={range:{pos:f.pos+a,end:f.end+a},type:g};l=e.append(l,m),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(m.range.pos,m.range.end))}}return y(),l;function y(){u||(u=!0,l?r&&l.push.apply(l,r):l=r)}}(t.commentDirectives,h.commentDirectives,m.span.start,e.textSpanEnd(m.span),y,p,n,_),h},t.createSyntaxCursor=c,function(e){e[e.Value=-1]="Value"}(u||(u={}))}(u||(u={})),e.isDeclarationFileName=y,e.processCommentPragmas=h,e.processPragmasIntoFields=v;var b=new e.Map;function x(e){if(b.has(e))return b.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))","im");return b.set(e,t),t}var D=/^\/\/\/\s*<(\S+)\s.*?\/>/im,S=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function E(t,r,n){var i=2===r.kind&&D.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c<l.length;c++){var u=l[c],_=x(u.name).exec(n);if(!_&&!u.optional)return;if(_){var d=_[2]||_[3];if(u.captureSpan){var p=r.pos+_.index+_[1].length+1;s[u.name]={value:d,pos:p,end:p+d.length}}else s[u.name]=d}}t.push({name:a,args:{arguments:s,range:r}})}else t.push({name:a,args:{arguments:{},range:r}})}else{var f=2===r.kind&&S.exec(n);if(f)return T(t,r,2,f);if(3===r.kind)for(var g=/@(\S+)(\s+.*)?$/gim,m=void 0;m=g.exec(n);)T(t,r,4,m)}}function T(t,r,n,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&n){var s=function(t,r){if(!r)return{};if(!t.args)return{};for(var n=e.trimString(r).split(/\s+/),i={},a=0;a<t.args.length;a++){var o=t.args[a];if(!n[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=n[a]}return i}(o,i[2]);"fail"!==s&&t.push({name:a,args:{arguments:s,range:r}})}}}function C(e,t){return e.kind===t.kind&&(79===e.kind?e.escapedText===t.escapedText:108===e.kind||e.name.escapedText===t.name.escapedText&&C(e.expression,t.expression))}e.tagNamesAreEquivalent=C}(u||(u={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var t=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(t.entries(),(function(e){var t=e[0];return[""+e[1],t]}))));var r=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2021.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=r.map((function(e){return e[0]})),e.libMap=new e.Map(r),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Se},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Se},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:"n/a"},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:"false"},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:"false"},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:"true"},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:"false"},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:"ES3"};var n,o=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,esnext:e.ModuleKind.ESNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:"false"},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:"false"},{name:"jsx",type:t,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:"undefined"},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0,defaultValueDescription:"n/a"},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files,defaultValueDescription:"n/a"},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:"false"},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:"false"},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:"false"},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,defaultValueDescription:"false"},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:"false"},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:"false"},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Include_undefined_in_index_signature_results},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:"false"},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:"false"},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:"n/a"},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:"false"},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:"false"},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,defaultValueDescription:"n/a",description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:"false"},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:"false"},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:"false"},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:"false"},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:"false"},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:"false"},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:"false"},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:"n/a"},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files,defaultValueDescription:"n/a"},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:"false"},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:"undefined"},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:"undefined"},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:"false"},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:"false"},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:"false"},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:"0"},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:"false"},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:"false"},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:"false"},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins,category:e.Diagnostics.Editor_Support}];function s(t){var r=new e.Map,n=new e.Map;return e.forEach(t,(function(e){r.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:r,shortOptionNames:n}}function c(){return n||(n=s(e.optionDeclarations))}e.optionDeclarations=i(i([],e.commonOptionsWithBuild,!0),o,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsSemanticDiagnostics})),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsEmit})),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsModuleResolution})),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter((function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics})),e.optionsAffectingProgramStructure=e.optionDeclarations.filter((function(e){return!!e.affectsProgramStructure})),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((function(t){return e.hasProperty(t,"transpileOptionValue")})),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}],e.buildOpts=i(i([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean"}],e.createOptionNameMap=s,e.getOptionsNameMap=c;var l,u={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:D};function _(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function d(t){return p(t,e.createCompilerDiagnostic)}function p(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 f(t,r,n){return me(t,e.trimString(r||""),n)}function g(t,r,n){if(void 0===r&&(r=""),r=e.trimString(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.mapDefined(i,(function(e){return ge(t.element,parseInt(e),n)}));case"string":return e.mapDefined(i,(function(e){return ge(t.element,e||"",n)}));default:return e.mapDefined(i,(function(e){return f(t.element,e,n)}))}}}function m(e){return e.name}function y(t,r,n,i){var a;if(null===(a=r.alternateMode)||void 0===a?void 0:a.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return n(r.alternateMode.diagnostic,t);var o=e.getSpellingSuggestion(t,r.optionDeclarations,m);return o?n(r.unknownDidYouMeanDiagnostic,i||t,o.name):n(r.unknownOptionDiagnostic,i||t)}function h(t,r,n){var i,a={},o=[],s=[];return c(r),{options:a,watchOptions:i,fileNames:o,errors:s};function c(r){for(var n=0;n<r.length;){var c=r[n];if(n++,64===c.charCodeAt(0))l(c.slice(1));else if(45===c.charCodeAt(0)){var u=c.slice(45===c.charCodeAt(1)?2:1),_=x(t.getOptionsNameMap,u,!0);if(_)n=v(r,n,t,_,a,s);else{var d=x(L.getOptionsNameMap,u,!0);d?n=v(r,n,L,d,i||(i={}),s):s.push(y(u,t,e.createCompilerDiagnostic,c))}}else o.push(c)}}function l(t){var r=C(t,n||function(t){return e.sys.readFile(t)});if(e.isString(r)){for(var i=[],a=0;;){for(;a<r.length&&r.charCodeAt(a)<=32;)a++;if(a>=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a<r.length&&34!==r.charCodeAt(a);)a++;a<r.length?(i.push(r.substring(o+1,a)),a++):s.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(a)>32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function v(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=ge(i,!1,o),r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,U(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=ge(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=ge(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=ge(i,t[r]||"",o),r++;break;case"list":var c=g(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=f(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function b(e,t){return x(c,e,t)}function x(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function D(){return l||(l=s(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=_,e.createCompilerDiagnosticForInvalidCustomType=d,e.parseCustomTypeOption=f,e.parseListTypeOption=g,e.parseCommandLineWorker=h,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:u,getOptionsNameMap:c,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,r){return h(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=b;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},getOptionsNameMap:D,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function E(t,r){var n=e.parseJsonText(t,r);return{config:j(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function T(t,r){var n=C(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function C(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function k(t){return e.arrayToMap(t,m)}e.parseBuildCommand=function(t){var r=h(S,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=e.createCompilerDiagnostic.apply(void 0,arguments);return i.messageText},e.getParsedCommandLineOfConfigFile=function(t,r,n,i,a,o){var s=C(t,(function(e){return n.readFile(e)}));if(e.isString(s)){var c=e.parseJsonText(t,s),l=n.getCurrentDirectory();return c.path=e.toPath(t,l,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)),c.resolvedPath=c.path,c.originalFileName=c.fileName,Q(c,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),l),r,e.getNormalizedAbsolutePath(t,l),void 0,o,i,a)}n.onUnRecoverableConfigFileDiagnostic(s)},e.readConfigFile=function(t,r){var n=C(t,r);return e.isString(n)?E(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=E,e.readJsonConfigFile=T,e.tryReadFile=C;var A,N={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function F(){return A||(A=s(e.optionsForWatch))}var w,P,I,O,L={getOptionsNameMap:F,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function M(){return w||(w=k(e.optionDeclarations))}function R(){return P||(P=k(e.optionsForWatch))}function B(){return I||(I=k(e.typeAcquisitionDeclarations))}function j(t,r,n,i){var a,o=null===(a=t.statements[0])||void 0===a?void 0:a.expression,s=n?(void 0===O&&(O={name:void 0,type:"object",elementOptions:k([{name:"compilerOptions",type:"object",elementOptions:M(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:R(),extraKeyDiagnostics:L},{name:"typingOptions",type:"object",elementOptions:B(),extraKeyDiagnostics:N},{name:"typeAcquisition",type:"object",elementOptions:B(),extraKeyDiagnostics:N},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),O):void 0;if(o&&203!==o.kind){if(r.push(e.createDiagnosticForNodeInSourceFile(t,o,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===e.getBaseFileName(t.fileName)?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(o)){var c=e.find(o.elements,e.isObjectLiteralExpression);if(c)return V(t,c,r,!0,s,i)}return{}}return V(t,o,r,!0,s,i)}function J(e,t){var r;return V(e,null===(r=e.statements[0])||void 0===r?void 0:r.expression,t,!0,void 0,void 0)}function V(t,r,n,a,o,s){return r?u(r,o):a?{}:void 0;function c(e){return o&&o.elementOptions===e}function l(r,i,o,l){for(var d=a?{}:void 0,p=function(r){if(291!==r.kind)return n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_assignment_expected)),"continue";r.questionToken&&n.push(e.createDiagnosticForNodeInSourceFile(t,r.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),_(r.name)||n.push(e.createDiagnosticForNodeInSourceFile(t,r.name,e.Diagnostics.String_literal_with_double_quotes_expected));var p=e.isComputedNonLiteralName(r.name)?void 0:e.getTextOfPropertyName(r.name),f=p&&e.unescapeLeadingUnderscores(p),g=f&&i?i.get(f):void 0;f&&o&&!g&&(i?n.push(y(f,o,(function(n,i,a){return e.createDiagnosticForNodeInSourceFile(t,r.name,n,i,a)}))):n.push(e.createDiagnosticForNodeInSourceFile(t,r.name,o.unknownOptionDiagnostic,f)));var m=u(r.initializer,g);if(void 0!==f&&(a&&(d[f]=m),s&&(l||c(i)))){var h=K(g,m);l?h&&s.onSetValidOptionKeyValueInParent(l,g,m):c(i)&&(h?s.onSetValidOptionKeyValueInRoot(f,r.name,m,r.initializer):g||s.onSetUnknownOptionKeyValueInRoot(f,r.name,m,r.initializer))}},f=0,g=r.properties;f<g.length;f++)p(g[f]);return d}function u(r,o){var s;switch(r.kind){case 110:return y(o&&"boolean"!==o.type),m(!0);case 95:return y(o&&"boolean"!==o.type),m(!1);case 104:return y(o&&"extends"===o.name),m(null);case 10:_(r)||n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.String_literal_with_double_quotes_expected)),y(o&&e.isString(o.type)&&"string"!==o.type);var c=r.text;if(o&&!e.isString(o.type)){var d=o;d.type.has(c.toLowerCase())||(n.push(p(d,(function(n,i,a){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a)}))),s=!0)}return m(c);case 8:return y(o&&"number"!==o.type),m(Number(r.text));case 217:if(40!==r.operator||8!==r.operand.kind)break;return y(o&&"number"!==o.type),m(-Number(r.operand.text));case 203:y(o&&"object"!==o.type);var f=r;if(o){var g=o;return m(l(f,g.elementOptions,g.extraKeyDiagnostics,g.name))}return m(l(f,void 0,void 0,void 0));case 202:return y(o&&"list"!==o.type),m(function(t,r){if(a)return e.filter(t.map((function(e){return u(e,r)})),(function(e){return void 0!==e}));t.forEach((function(e){return u(e,r)}))}(r.elements,o&&o.element))}return void(o?y(!0):n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function m(a){var c;if(!s){var l=null===(c=null==o?void 0:o.extraValidation)||void 0===c?void 0:c.call(o,a);if(l)return void n.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,i([t,r],l,!1)))}return a}function y(i){i&&(n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,o.name,U(o))),s=!0)}}function _(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function U(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function K(t,r){return!!t&&(!!Z(r)||("list"===t.type?e.isArray(r):typeof r===(e.isString(t.type)?t.type:"string")))}function z(t){return a({},e.arrayFrom(t.entries()).reduce((function(e,t){var r;return a(a({},e),((r={})[t[0]]=t[1],r))}),{}))}function G(t){if(e.length(t)){if(1!==e.length(t))return t;if("**/*"!==t[0])return t}}function W(e){return"string"===e.type||"number"===e.type||"boolean"===e.type||"object"===e.type?void 0:"list"===e.type?W(e.element):e.type}function q(t,r){return e.forEachEntry(r,(function(e,r){if(e===t)return r}))}function H(e,t){return Y(e,c(),t)}function Y(t,r,n){var i=r.optionsNameMap,a=new e.Map,o=n&&e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=function(r){if(e.hasProperty(t,r)){if(i.has(r)&&(i.get(r).category===e.Diagnostics.Command_line_Options||i.get(r).category===e.Diagnostics.Output_Formatting))return"continue";var s=t[r],c=i.get(r.toLowerCase());if(c){var l=W(c);l?"list"===c.type?a.set(r,s.map((function(e){return q(e,l)}))):a.set(r,q(s,l)):n&&c.isFilePath?a.set(r,e.getRelativePathFromFile(n.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(n.configFilePath)),o)):a.set(r,s)}}};for(var c in t)s(c);return a}function X(e,t,r){if(e&&!Z(t))if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function Q(e,t,r,n,i,a,o,s,c){return te(void 0,e,t,r,n,c,i,a,o,s)}function $(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function Z(e){return null==e}function ee(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function te(t,r,n,i,a,o,s,c,l,u){void 0===a&&(a={}),void 0===c&&(c=[]),void 0===l&&(l=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var _=[],d=ae(t,r,n,i,s,c,_,u),p=d.raw,f=e.extend(a,d.options||{}),g=o&&d.watchOptions?e.extend(o,d.watchOptions):d.watchOptions||o;f.configFilePath=s&&e.normalizeSlashes(s);var m=function(){var t=b("references",(function(e){return"object"==typeof e}),"object"),n=h(v("files"));if(n){var i="no-prop"===t||e.isArray(t)&&0===t.length,a=e.hasProperty(p,"extends");if(0===n.length&&i&&!a)if(r){var o=s||"tsconfig.json",c=e.Diagnostics.The_files_list_in_config_file_0_is_empty,l=e.firstDefined(e.getTsConfigPropArray(r,"files"),(function(e){return e.initializer})),u=l?e.createDiagnosticForNodeInSourceFile(r,l,c,o):e.createCompilerDiagnostic(c,o);_.push(u)}else x(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}var d,f,g=h(v("include")),m=v("exclude"),y=h(m);if("no-prop"===m&&p.compilerOptions){var D=p.compilerOptions.outDir,S=p.compilerOptions.declarationDir;(D||S)&&(y=[D,S].filter((function(e){return!!e})))}return void 0===n&&void 0===g&&(g=["**/*"]),g&&(d=De(g,_,!0,r,"include")),y&&(f=De(y,_,!1,r,"exclude")),{filesSpecs:n,includeSpecs:g,excludeSpecs:y,validatedFilesSpec:e.filter(n,e.isString),validatedIncludeSpecs:d,validatedExcludeSpecs:f,pathPatterns:void 0}}();r&&(r.configFileSpecs=m),$(f,r);var y=e.normalizePath(s?ee(s,i):i);return{options:f,watchOptions:g,fileNames:function(e){var t=ve(m,e,f,n,l);return ne(t,ie(p),c)&&_.push(re(m,s)),t}(y),projectReferences:function(t){var r,n=b("references",(function(e){return"object"==typeof e}),"object");if(e.isArray(n))for(var i=0,a=n;i<a.length;i++){var o=a[i];"string"!=typeof o.path?x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(r||(r=[])).push({path:e.getNormalizedAbsolutePath(o.path,t),originalPath:o.path,prepend:o.prepend,circular:o.circular})}return r}(y),typeAcquisition:d.typeAcquisition||le(),raw:p,errors:_,wildcardDirectories:Ee(m,y,n.useCaseSensitiveFileNames),compileOnSave:!!p.compileOnSave};function h(t){return e.isArray(t)?t:void 0}function v(t){return b(t,e.isString,"string")}function b(t,n,i){if(e.hasProperty(p,t)&&!Z(p[t])){if(e.isArray(p[t])){var a=p[t];return r||e.every(a,n)||_.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,i)),a}return x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,"Array"),"not-array"}return"no-prop"}function x(t,n,i){r||_.push(e.createCompilerDiagnostic(t,n,i))}}function re(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 ne(e,t,r){return 0===e.length&&t&&(!r||0===r.length)}function ie(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}function ae(t,r,n,a,o,s,c,l){var u;a=e.normalizeSlashes(a);var _=e.getNormalizedAbsolutePath(o||"",a);if(s.indexOf(_)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i(i([],s,!0),[_],!1).join(" -> "))),{raw:t||J(r,c)};var d=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=ce(t.compilerOptions,n,a,i),c=ue(t.typeAcquisition||t.typingOptions,n,a,i),l=function(e,t,r){return _e(R(),e,t,void 0,L,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=de(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?ee(i,n):n;o=oe(t.extends,r,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}}(t,n,a,o,c):function(t,r,n,i,a){var o,s,c,l,u=se(i),_={onSetValidOptionKeyValueInParent:function(t,r,a){var l;switch(t){case"compilerOptions":l=u;break;case"watchOptions":l=c||(c={});break;case"typeAcquisition":l=o||(o=le(i));break;case"typingOptions":l=s||(s=le(i));break;default:e.Debug.fail("Unknown option")}l[r.name]=pe(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,u){if("extends"!==o);else{var _=i?ee(i,n):n;l=oe(c,r,_,a,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,u,r,n)}))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,o){"excludes"===r&&a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=j(t,a,!0,_);return o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:le(i)),{raw:d,options:u,watchOptions:c,typeAcquisition:o,extendedConfigPath:l}}(r,n,a,o,c);if((null===(u=d.options)||void 0===u?void 0:u.paths)&&(d.options.pathsBasePath=a),d.extendedConfigPath){s=s.concat([_]);var p=function(t,r,n,i,a,o){var s,c,l,u,_=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);if(o&&(c=o.get(_))?(l=c.extendedResult,u=c.extendedConfig):(l=T(r,(function(e){return n.readFile(e)})),l.parseDiagnostics.length||(u=ae(void 0,l,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(_,{extendedResult:l,extendedConfig:u})),t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,l.extendedSourceFiles)),!l.parseDiagnostics.length)return u;a.push.apply(a,l.parseDiagnostics)}(r,d.extendedConfigPath,n,s,c,l);if(p&&p.options){var f,g=p.raw,m=d.raw,y=function(t){!m[t]&&g[t]&&(m[t]=e.map(g[t],(function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(f||(f=e.convertToRelativePath(e.getDirectoryPath(d.extendedConfigPath),a,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames))),t)})))};y("include"),y("exclude"),y("files"),void 0===m.compileOnSave&&(m.compileOnSave=g.compileOnSave),d.options=e.assign({},p.options,d.options),d.watchOptions=d.watchOptions&&p.watchOptions?e.assign({},p.watchOptions,d.watchOptions):d.watchOptions||p.watchOptions}}return d}function oe(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o+=".json",r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function se(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ce(t,r,n,i){var a=se(i);return _e(M(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function le(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function ue(e,t,r,n){var i=le(n),a=_(e);return _e(B(),a,t,i,N,r),i}function _e(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=de(c,r[s],n,o):o.push(y(s,a,e.createCompilerDiagnostic))}return i}}function de(t,r,n,i){if(K(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return function(t,r,n,i){return e.filter(e.map(r,(function(e){return de(t.element,e,n,i)})),(function(e){return!!e}))}(t,r,n,i);if(!e.isString(a))return me(t,r,i);var o=ge(t,r,i);return Z(o)?o:fe(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,U(t)))}function pe(t,r,n){if(!Z(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(function(e){return pe(i.element,r,e)})),(function(e){return!!e})):n}return e.isString(t.type)?fe(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function fe(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function ge(t,r,n){var i;if(!Z(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function me(e,t,r){if(!Z(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return ge(e,i,r);r.push(d(e))}}e.convertToObject=J,e.convertToObjectWorker=V,e.convertToTSConfig=function(t,r,n){var i,o,s,c=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),l=e.map(e.filter(t.fileNames,(null===(o=null===(i=t.options.configFile)||void 0===i?void 0:i.configFileSpecs)||void 0===o?void 0:o.validatedIncludeSpecs)?function(t,r,n,i){if(!r)return e.returnTrue;var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);return s?o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)}:o?function(e){return o.test(e)}:e.returnTrue}(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,n):e.returnTrue),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),c)})),u=H(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),_=t.watchOptions&&Y(t.watchOptions,F());return a(a({compilerOptions:a(a({},z(u)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:_&&z(_),references:e.map(t.projectReferences,(function(e){return a(a({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(l)?l:void 0},(null===(s=t.options.configFile)||void 0===s?void 0:s.configFileSpecs)?{include:G(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.generateTSConfig=function(t,r,n){var i=H(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),c=0,l=e.optionDeclarations;c<l.length;c++){var u=l[c],_=u.category;s(u)&&t.add(e.getLocaleSpecificMessage(_),u)}var d=0,p=0,f=[];t.forEach((function(t,r){0!==f.length&&f.push({value:""}),f.push({value:"/* "+r+" */"});for(var n=0,o=t;n<o.length;n++){var s,c=o[n];s=i.has(c.name)?'"'+c.name+'": '+JSON.stringify(i.get(c.name))+((p+=1)===i.size?"":","):'// "'+c.name+'": '+JSON.stringify(a(c))+",",f.push({value:s,description:"/* "+(c.description&&e.getLocaleSpecificMessage(c.description)||c.name)+" */"}),d=Math.max(s.length,d)}}));var g=o(2),m=[];m.push("{"),m.push(g+'"compilerOptions": {'),m.push(""+g+g+"/* "+e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)+" */"),m.push("");for(var y=0,h=f;y<h.length;y++){var v=h[y],b=v.value,x=v.description,D=void 0===x?"":x;m.push(b&&""+g+g+b+(D&&o(d-b.length+2)+D))}if(r.length){m.push(g+"},"),m.push(g+'"files": [');for(var S=0;S<r.length;S++)m.push(""+g+g+JSON.stringify(r[S])+(S===r.length-1?"":","));m.push(g+"]")}else m.push(g+"}");return m.push("}"),m.join(n)+n}();function a(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":return t.isFilePath?"./":"";case"list":return[];case"object":return{};default:var r=t.type.keys().next();return r.done?e.Debug.fail("Expected 'option.type' to have entries."):r.value}}function o(e){return Array(e+1).join(" ")}function s(t){var r=t.category,n=t.name,a=t.isCommandLineOnly,o=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!a&&void 0!==r&&(!o.includes(r)||i.has(n))}},e.convertToOptionsWithAbsolutePaths=function(t,r){var n={},i=c().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=X(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n},e.parseJsonConfigFileContent=function(e,t,r,n,i,a,o,s,c){return te(e,void 0,t,r,n,c,i,a,o,s)},e.parseJsonSourceFileConfigFileContent=Q,e.setConfigFileInOptions=$,e.canJsonReportNoInputFiles=ie,e.updateErrorForNoInputFiles=function(t,r,n,i,a){var o=i.length;return ne(t,a)?i.push(re(n,r)):e.filterMutate(i,(function(t){return!function(t){return t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(t)})),o!==i.length},e.convertCompilerOptionsFromJson=function(e,t,r){var n=[];return{options:ce(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:ue(e,t,n,r),errors:n}},e.convertJsonOption=de;var ye=/(^|\/)\*\*\/?$/,he=/^[^*?]*(?=\/[^/]*[*?])/;function ve(t,r,n,i,a){void 0===a&&(a=e.emptyArray),r=e.normalizePath(r);var o,s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),c=new e.Map,l=new e.Map,u=new e.Map,_=t.validatedFilesSpec,d=t.validatedIncludeSpecs,p=t.validatedExcludeSpecs,f=e.getSupportedExtensions(n,a),g=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(n,f);if(_)for(var m=0,y=_;m<y.length;m++){var h=y[m],v=e.getNormalizedAbsolutePath(h,r);c.set(s(v),v)}if(d&&d.length>0)for(var b=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=d.filter((function(t){return e.endsWith(t,".json")})),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(function(e){return"^"+e+"$"}));o=a?a.map((function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(t)}))){var _=s(t);c.has(_)||u.has(_)||u.set(_,t)}return"continue"}if(function(t,r,n,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;c<s;c++){var l=i[c],u=a(e.changeExtension(t,l));if(r.has(u)||n.has(u))return!0}return!1}(t,c,l,f,s))return"continue";!function(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)}}(t,l,f,s);var p=s(t);c.has(p)||l.has(p)||l.set(p,t)},x=0,D=i.readDirectory(r,g,p,d,void 0);x<D.length;x++)b(v=D[x]);var S=e.arrayFrom(c.values()),E=e.arrayFrom(l.values());return S.concat(E,e.arrayFrom(u.values()))}function be(t){var r=e.startsWith(t,"**/")?0:t.indexOf("/**/");return-1!==r&&(e.endsWith(t,"/..")?t.length:t.lastIndexOf("/../"))>r}function xe(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function De(t,r,n,i,a){return t.filter((function(t){if(!e.isString(t))return!1;var i=Se(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function Se(t,r){return r&&ye.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:be(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Ee(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var l=[],u=0,_=i;u<_.length;u++){var d=_[u],p=e.normalizePath(e.combinePaths(r,d));if(!s||!s.test(p)){var f=Te(p,n);if(f){var g=f.key,m=f.flags,y=c[g];(void 0===y||y<m)&&(c[g]=m,1===m&&l.push(g))}}}for(var g in c)if(e.hasProperty(c,g))for(var h=0,v=l;h<v.length;h++){var b=v[h];g!==b&&e.containsPath(b,g,r,!n)&&delete c[g]}}return c}function Te(t,r){var n=he.exec(t);if(n){var i=t.indexOf("?"),a=t.indexOf("*"),o=t.lastIndexOf(e.directorySeparator);return{key:r?n[0]:e.toFileNameLowerCase(n[0]),flags:-1!==i&&i<o||-1!==a&&a<o?1:0}}if(e.isImplicitGlob(t))return{key:r?t:e.toFileNameLowerCase(t),flags:1}}function Ce(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 Ce(e,n)})):"";default:return e.forEachEntry(r.type,(function(e,r){if(e===t)return r}))}}e.getFileNamesFromConfigSpecs=ve,e.isExcludedFile=function(t,r,n,i,a){var o=r.validatedFilesSpec,s=r.validatedIncludeSpecs,c=r.validatedExcludeSpecs;if(!e.length(s)||!e.length(c))return!1;n=e.normalizePath(n);var l=e.createGetCanonicalFileName(i);if(o)for(var u=0,_=o;u<_.length;u++){var d=_[u];if(l(e.getNormalizedAbsolutePath(d,n))===t)return!1}return xe(t,c,i,a,n)},e.matchesExclude=function(t,r,n,i){return xe(t,e.filter(r,(function(e){return!be(e)})),n,i)},e.convertCompilerOptionsForTelemetry=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=b(r);void 0!==n&&(t[r]=Ce(e[r],n))}return t}}(u||(u={})),function(e){function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function r(e,t){return!!e.traceResolution&&void 0!==t.trace}function n(t,r){var n;if(r&&t){var i=t.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(n={name:i.name,subModuleName:r.path.slice(t.packageDirectory.length+e.directorySeparator.length),version:i.version})}return r&&{path:r.path,extension:r.ext,packageId:n}}function o(e){return n(void 0,e)}function s(t){if(t)return e.Debug.assert(void 0===t.packageId),{path:t.path,ext:t.extension}}var c,l;function u(t){if(t)return e.Debug.assert(e.extensionIsTS(t.extension)),{fileName:t.path,packageId:t.packageId}}function _(e,t,r,n){var i;return n?((i=n.failedLookupLocations).push.apply(i,r),n):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r}}function d(r,n,i,a){if(e.hasProperty(r,n)){var o=r[n];if(typeof o===i&&null!==o)return o;a.traceEnabled&&t(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,i,null===o?"null":typeof o)}else a.traceEnabled&&t(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,n)}function p(r,n,i,a){var o=d(r,n,"string",a);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,n,o,s),s}a.traceEnabled&&t(a.host,e.Diagnostics.package_json_had_a_falsy_0_field,n)}}function f(e,t,r){return p(e,"typings",t,r)||p(e,"types",t,r)}function g(e,t,r){return p(e,"main",t,r)}function m(r,n){var i=function(r,n){var i=d(r,"typesVersions","object",n);if(void 0!==i)return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i}(r,n);if(void 0!==i){if(n.traceEnabled)for(var a in i)e.hasProperty(i,a)&&!e.VersionRange.tryParse(a)&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,a);var o=y(i);if(o){var s=o.version,c=o.paths;if("object"==typeof c)return o;n.traceEnabled&&t(n.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+s+"']","object",typeof c)}else n.traceEnabled&&t(n.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function y(t){for(var r in l||(l=new e.Version(e.version)),t)if(e.hasProperty(t,r)){var n=e.VersionRange.tryParse(r);if(void 0!==n&&n.test(l))return{version:r,paths:t[r]}}}function h(t,r){return t.typeRoots?t.typeRoots:(t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?function(t,r){return r.directoryExists?(e.forEachAncestorDirectory(e.normalizePath(t),(function(t){var i=e.combinePaths(t,v);r.directoryExists(i)&&(n||(n=[])).push(i)})),n):[e.combinePaths(t,v)];var n}(n,r):void 0);var n}e.trace=t,e.isTraceEnabled=r,function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly"}(c||(c={})),e.getPackageJsonTypesVersionsPaths=y,e.getEffectiveTypeRoots=h;var v=e.combinePaths("node_modules","@types");function b(t){var r=new e.Map,n=new e.Map;return{getOwnMap:function(){return r},redirectsMap:n,getOrCreateMapOfCacheRedirects:function(i){if(!i)return r;var a=i.sourceFile.path,o=n.get(a);return o||(o=!t||e.optionsHaveModuleResolutionChanges(t,i.commandLine.options)?new e.Map:r,n.set(a,o)),o},clear:function(){r.clear(),n.clear()},setOwnOptions:function(e){t=e},setOwnMap:function(e){r=e}}}function x(t,r){var n;return{getPackageJsonInfo:function(i){return null==n?void 0:n.get(e.toPath(i,t,r))},setPackageJsonInfo:function(i,a){(n||(n=new e.Map)).set(e.toPath(i,t,r),a)},clear:function(){n=void 0},entries:function(){var t=null==n?void 0:n.entries();return t?e.arrayFrom(t):[]}}}function D(e,t,r,n){var i=e.getOrCreateMapOfCacheRedirects(t),a=i.get(r);return a||(a=n(),i.set(r,a)),a}function S(t,r,n){if(t.configFile){if(0===r.redirectsMap.size)e.Debug.assert(!n||0===n.redirectsMap.size),e.Debug.assert(0===r.getOwnMap().size),e.Debug.assert(!n||0===n.getOwnMap().size),r.redirectsMap.set(t.configFile.path,r.getOwnMap()),null==n||n.redirectsMap.set(t.configFile.path,n.getOwnMap());else{e.Debug.assert(!n||n.redirectsMap.size>0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i)),null==n||n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t),null==n||n.setOwnOptions(t)}}function E(t,r,n){return{getOrCreateCacheForDirectory:function(i,a){var o=e.toPath(i,t,r);return D(n,a,o,(function(){return new e.Map}))},clear:function(){n.clear()},update:function(e){S(e,n)}}}function T(r,n,i,a,o){var s=function(r,n,i,a){var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(n))return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),X(r,n,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)}(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?function(r,n,i,a,o){if(o.compilerOptions.rootDirs){o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,l=e.normalizePath(e.combinePaths(i,n)),u=0,_=o.compilerOptions.rootDirs;u<_.length;u++){var d=_[u],p=e.normalizePath(d);e.endsWith(p,e.directorySeparator)||(p+=e.directorySeparator);var f=e.startsWith(l,p)&&(void 0===c||c.length<p.length);o.traceEnabled&&t(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,p,l,f),f&&(c=p,s=d)}if(c){o.traceEnabled&&t(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,l,c);var g=l.substr(c.length);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,c,l);var m=a(r,l,!e.directoryProbablyExists(i,o.host),o);if(m)return m;o.traceEnabled&&t(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var y=0,h=o.compilerOptions.rootDirs;y<h.length;y++)if((d=h[y])!==s){var v=e.combinePaths(e.normalizePath(d),g);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,d,v);var b=e.getDirectoryPath(v),x=a(r,v,!e.directoryProbablyExists(b,o.host),o);if(x)return x}o.traceEnabled&&t(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}(r,n,i,a,o):function(r,n,i,a){var o=a.compilerOptions.baseUrl;if(o){a.traceEnabled&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,n);var s=e.normalizePath(e.combinePaths(o,n));return a.traceEnabled&&t(a.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,o,s),i(r,s,!e.directoryProbablyExists(e.getDirectoryPath(s),a.host),a)}}(r,n,a,o)}e.resolveTypeReferenceDirective=function(n,i,a,o,s,l){var _=r(a,o);s&&(a=s.commandLine.options);var d=i?e.getDirectoryPath(i):void 0,p=d?l&&l.getOrCreateCacheForDirectory(d,s):void 0,f=p&&p.get(n);if(f)return _&&(t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,n,i),s&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),t(o,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,n,d),T(f)),f;var g=h(a,o);_&&(void 0===i?void 0===g?t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,g):void 0===g?t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,i):t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,i,g),s&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));var m,y=[],v={compilerOptions:a,host:o,traceEnabled:_,failedLookupLocations:y,packageJsonInfoCache:l},b=function(){if(g&&g.length)return _&&t(o,e.Diagnostics.Resolving_with_primary_search_path_0,g.join(", ")),e.firstDefined(g,(function(r){var i=e.combinePaths(r,n),a=e.getDirectoryPath(i),s=e.directoryProbablyExists(a,o);return!s&&_&&t(o,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),u(U(c.DtsOnly,i,!s,v))}));_&&t(o,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),x=!0;if(b||(b=function(){var r=i&&e.getDirectoryPath(i);if(void 0!==r){var a;if(_&&t(o,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,r),e.isExternalModuleNameRelative(n)){var s=e.normalizePathAndParts(e.combinePaths(r,n)).path;a=O(c.DtsOnly,s,!1,v,!0)}else{var l=W(c.DtsOnly,n,r,v,void 0,void 0);a=l&&l.value}return u(a)}_&&t(o,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),x=!1),b){var D=b.fileName,S=b.packageId,E=a.preserveSymlinks?D:I(D,o,_);m={primary:x,resolvedFileName:E,originalPath:D===E?void 0:D,packageId:S,isExternalLibraryImport:L(D)}}return f={resolvedTypeReferenceDirective:m,failedLookupLocations:y},null==p||p.set(n,f),_&&T(f),f;function T(r){var i;(null===(i=r.resolvedTypeReferenceDirective)||void 0===i?void 0:i.resolvedFileName)?r.resolvedTypeReferenceDirective.packageId?t(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,n,r.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(r.resolvedTypeReferenceDirective.packageId),r.resolvedTypeReferenceDirective.primary):t(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,r.resolvedTypeReferenceDirective.resolvedFileName,r.resolvedTypeReferenceDirective.primary):t(o,e.Diagnostics.Type_reference_directive_0_was_not_resolved,n)}},e.getAutomaticTypeDirectiveNames=function(t,r){if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var i=h(t,r);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(r.directoryExists(s))for(var c=0,l=r.getDirectories(s);c<l.length;c++){var u=l[c],_=e.normalizePath(u),d=e.combinePaths(s,_,"package.json");if(!r.fileExists(d)||null!==e.readJson(d,r).typings){var p=e.getBaseFileName(_);46!==p.charCodeAt(0)&&n.push(p)}}}}return n},e.createCacheWithRedirects=b,e.createModuleResolutionCache=function(t,r,n,i,o){var s=E(t,r,i||(i=b(n)));o||(o=b(n));var c=x(t,r);return a(a(a({},c),s),{getOrCreateCacheForModuleName:function(t,r){return e.Debug.assert(!e.isExternalModuleNameRelative(t)),D(o,r,t,l)},clear:function(){s.clear(),o.clear(),c.clear()},update:function(e){S(e,i,o)},getPackageJsonInfoCache:function(){return c}});function l(){var n=new e.Map;return{get:function(i){return n.get(e.toPath(i,t,r))},set:function(i,a){var o=e.toPath(i,t,r);if(!n.has(o)){n.set(o,a);for(var s=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName),c=s&&function(n,i){for(var a=e.toPath(e.getDirectoryPath(i),t,r),o=0,s=Math.min(n.length,a.length);o<s&&n.charCodeAt(o)===a.charCodeAt(o);)o++;if(o===n.length&&(a.length===o||a[o]===e.directorySeparator))return n;var c=e.getRootLength(n);if(!(o<c)){var l=n.lastIndexOf(e.directorySeparator,o-1);if(-1!==l)return n.substr(0,Math.max(l,c))}}(o,s),l=o;l!==c;){var u=e.getDirectoryPath(l);if(u===l||n.has(u))break;n.set(u,a),l=u}}}}}},e.createTypeReferenceDirectiveResolutionCache=function(e,t,r,n,i){var o=E(e,t,i||(i=b(r)));return n||(n=x(e,t)),a(a(a({},n),o),{clear:function(){o.clear(),n.clear()}})},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,c){var l=r(a,o);c&&(a=c.commandLine.options),l&&(t(o,e.Diagnostics.Resolving_module_0_from_1,n,i),c&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var u=e.getDirectoryPath(i),_=s&&s.getOrCreateCacheForDirectory(u,c),d=_&&_.get(n);if(d)l&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,u);else{var p=a.moduleResolution;switch(void 0===p?(p=e.getEmitModuleKind(a)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,l&&t(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[p])):l&&t(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[p]),e.perfLogger.logStartResolveModule(n),p){case e.ModuleResolutionKind.NodeJs:d=w(n,i,a,o,s,c);break;case e.ModuleResolutionKind.Classic:d=te(n,i,a,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: "+p)}d&&d.resolvedModule&&e.perfLogger.logInfoEvent('Module "'+n+'" resolved to "'+d.resolvedModule.resolvedFileName+'"'),e.perfLogger.logStopResolveModule(d&&d.resolvedModule?""+d.resolvedModule.resolvedFileName:"null"),_&&(_.set(n,d),e.isExternalModuleNameRelative(n)||s.getOrCreateCacheForModuleName(n,c).set(u,d))}return l&&(d.resolvedModule?d.resolvedModule.packageId?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,n,d.resolvedModule.resolvedFileName,e.packageIdToString(d.resolvedModule.packageId)):t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,n,d.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,n)),d},e.resolveJSModule=function(e,t,r){var n=F(e,t,r),i=n.resolvedModule,a=n.failedLookupLocations;if(!i)throw new Error("Could not resolve JS module '"+e+"' starting at '"+t+"'. Looked in: "+a.join(", "));return i.resolvedFileName},e.tryResolveJSModule=function(e,t,r){var n=F(e,t,r).resolvedModule;return n&&n.resolvedFileName};var C=[c.JavaScript],k=[c.TypeScript,c.JavaScript],A=i(i([],k,!0),[c.Json],!1),N=[c.TSConfig];function F(t,r,n){return P(t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,C,void 0)}function w(t,r,n,i,a,o,s){return P(t,e.getDirectoryPath(r),n,i,a,s?N:n.resolveJsonModule?A:k,o)}function P(n,i,o,s,l,u,d){var p,f,g=r(o,s),m=[],y={compilerOptions:o,host:s,traceEnabled:g,failedLookupLocations:m,packageJsonInfoCache:l},h=e.forEach(u,(function(r){return function(r){var u=T(r,n,i,(function(e,t,r,n){return O(e,t,r,n,!0)}),y);if(u)return re({resolved:u,isExternalLibraryImport:L(u.path)});if(e.isExternalModuleNameRelative(n)){var _=e.normalizePathAndParts(e.combinePaths(i,n)),p=_.path,f=_.parts,m=O(r,p,!1,y,!0);return m&&re({resolved:m,isExternalLibraryImport:e.contains(f,"node_modules")})}g&&t(s,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,n,c[r]);var h=W(r,n,i,y,l,d);if(h){var v=h.value;if(!o.preserveSymlinks&&v&&!v.originalPath){var b=I(v.path,s,g),x=b===v.path?void 0:v.path;v=a(a({},v),{path:b,originalPath:x})}return{value:v&&{resolved:v,isExternalLibraryImport:!0}}}}(r)}));return _(null===(p=null==h?void 0:h.value)||void 0===p?void 0:p.resolved,null===(f=null==h?void 0:h.value)||void 0===f?void 0:f.isExternalLibraryImport,m,y.resultFromCache)}function I(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 O(r,i,a,o,s){if(o.traceEnabled&&t(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,c[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var l=e.getDirectoryPath(i);e.directoryProbablyExists(l,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),a=!0)}var u=j(r,i,a,o);if(u){var _=s?M(u.path):void 0;return n(_?K(_,!1,o):void 0,u)}}return a||e.directoryProbablyExists(i,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0),U(r,i,a,o,s)}function L(t){return e.stringContains(t,e.nodeModulesPathPart)}function M(t){var r=e.normalizePath(t),n=r.lastIndexOf(e.nodeModulesPathPart);if(-1!==n){var i=n+e.nodeModulesPathPart.length,a=R(r,i);return 64===r.charCodeAt(i)&&(a=R(r,a)),r.slice(0,a)}}function R(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function B(e,t,r,n){return o(j(e,t,r,n))}function j(r,n,i,a){if(r===c.Json||r===c.TSConfig){var o=e.tryRemoveExtension(n,".json");return void 0===o&&r===c.Json?void 0:J(o||n,r,i,a)}var s=J(n,r,i,a);if(s)return s;if(e.hasJSFileExtension(n)){var l=e.removeFileExtension(n);if(a.traceEnabled){var u=n.substring(l.length);t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,u)}return J(l,r,i,a)}}function J(t,r,n,i){if(!n){var a=e.getDirectoryPath(t);a&&(n=!e.directoryProbablyExists(a,i.host))}switch(r){case c.DtsOnly:return o(".d.ts");case c.TypeScript:return o(".ts")||o(".tsx")||o(".d.ts");case c.JavaScript:return o(".js")||o(".jsx");case c.TSConfig:case c.Json:return o(".json")}function o(e){var r=V(t+e,n,i);return void 0===r?void 0:{path:r,ext:e}}}function V(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function U(e,t,r,i,a){void 0===a&&(a=!0);var o=a?K(t,r,i):void 0;return n(o,z(e,t,r,i,o&&o.packageJsonContent,o&&o.versionPaths))}function K(r,n,i){var a,o,s,c=i.host,l=i.traceEnabled,u=e.combinePaths(r,"package.json");if(n)i.failedLookupLocations.push(u);else{var _=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(u);if(void 0!==_)return"boolean"!=typeof _?(l&&t(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,u),_):(_&&l&&t(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void i.failedLookupLocations.push(u));var d=e.directoryProbablyExists(r,c);if(d&&c.fileExists(u)){var p=e.readJson(u,c);l&&t(c,e.Diagnostics.Found_package_json_at_0,u);var f={packageDirectory:r,packageJsonContent:p,versionPaths:m(p,i)};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(u,f),f}d&&l&&t(c,e.Diagnostics.File_0_does_not_exist,u),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(u,d),i.failedLookupLocations.push(u)}}function z(r,n,i,a,l,u){var _;if(l)switch(r){case c.JavaScript:case c.Json:_=g(l,n,a);break;case c.TypeScript:_=f(l,n,a)||g(l,n,a);break;case c.DtsOnly:_=f(l,n,a);break;case c.TSConfig:_=function(e,t,r){return p(e,"tsconfig",t,r)}(l,n,a);break;default:return e.Debug.assertNever(r)}var d=function(r,n,i,a){var s=V(n,i,a);if(s){var l=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case c.JavaScript:return".js"===t||".jsx"===t;case c.TSConfig:case c.Json:return".json"===t;case c.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case c.DtsOnly:return".d.ts"===t}}(t,n)?{path:r,ext:n}:void 0}(r,s);if(l)return o(l);a.traceEnabled&&t(a.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}return O(r===c.DtsOnly?c.TypeScript:r,n,i,a,!1)},m=_?!e.directoryProbablyExists(e.getDirectoryPath(_),a.host):void 0,y=i||!e.directoryProbablyExists(n,a.host),h=e.combinePaths(n,r===c.TSConfig?"tsconfig":"index");if(u&&(!_||e.containsPath(n,_))){var v=e.getRelativePathFromDirectory(n,_||h,!1);a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.version,e.version,v);var b=X(r,v,n,u.paths,void 0,d,m||y,a);if(b)return s(b.value)}return _&&s(d(r,_,m,a))||j(r,h,y,a)}function G(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 W(e,t,r,n,i,a){return q(e,t,r,n,!1,i,a)}function q(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),(function(n){if("node_modules"!==e.getBaseFileName(n))return ee(c,r,n,i)||re(H(t,r,n,i,a))}))}function H(r,n,i,a,o){var s=e.combinePaths(i,"node_modules"),l=e.directoryProbablyExists(s,a.host);!l&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);var u=o?void 0:Y(r,n,s,l,a);if(u)return u;if(r===c.TypeScript||r===c.DtsOnly){var _=e.combinePaths(s,"@types"),d=l;return l&&!e.directoryProbablyExists(_,a.host)&&(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),d=!1),Y(c.DtsOnly,function(r,n){var i=$(r);return n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i),i}(n,a),_,d,a)}}function Y(r,i,a,s,c){var l=e.normalizePath(e.combinePaths(a,i)),u=K(l,!s,c);if(u){var _=j(r,l,!s,c);if(_)return o(_);var d=z(r,l,!s,c,u.packageJsonContent,u.versionPaths);return n(u,d)}var p=function(e,t,r,i){var a=j(e,t,r,i)||z(e,t,r,i,u&&u.packageJsonContent,u&&u.versionPaths);return n(u,a)},f=G(i),g=f.packageName,m=f.rest;if(""!==m){var y=e.combinePaths(a,g);if((u=K(y,!s,c))&&u.versionPaths){c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.versionPaths.version,e.version,m);var h=s&&e.directoryProbablyExists(y,c.host),v=X(r,m,y,u.versionPaths.paths,void 0,p,!h,c);if(v)return v.value}}return p(r,l,!s,c)}function X(r,n,i,a,s,c,l,u){s||(s=e.tryParsePatterns(a));var _=e.matchPatternOrExact(s,n);if(_){var d=e.isString(_)?void 0:e.matchedText(_,n),p=e.isString(_)?_:e.patternText(_);return u.traceEnabled&&t(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,p),{value:e.forEach(a[p],(function(n){var a=d?n.replace("*",d):n,s=e.normalizePath(e.combinePaths(i,a));u.traceEnabled&&t(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,a);var _=e.tryGetExtensionFromPath(n);if(void 0!==_){var p=V(s,l,u);if(void 0!==p)return o({path:p,ext:_})}return c(r,s,l||!e.directoryProbablyExists(e.getDirectoryPath(s),u.host),u)}))}}}e.nodeModuleNameResolver=w,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=L,e.parseNodeModuleFromPath=M,e.parsePackageName=G;var Q="__";function $(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,Q);if(r!==t)return r.slice(1)}return t}function Z(t){return e.stringContains(t,Q)?"@"+t.replace(Q,e.directorySeparator):t}function ee(r,n,i,a){var o=r&&r.get(i);if(o)return a.traceEnabled&&t(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),a.resultFromCache=o,{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||!0,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId}}}function te(t,n,i,a,o,s){var l=[],u={compilerOptions:i,host:a,traceEnabled:r(i,a),failedLookupLocations:l,packageJsonInfoCache:o},d=e.getDirectoryPath(n),p=f(c.TypeScript)||f(c.JavaScript);return _(p&&p.value,!1,l,u.resultFromCache);function f(r){var n=T(r,t,d,B,u);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(d,t));return re(B(r,i,!1,u))}var a=o&&o.getOrCreateCacheForModuleName(t,s);return e.forEachAncestorDirectory(d,(function(n){var i=ee(a,t,n,u);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return re(B(r,o,!1,u))}))||(r===c.TypeScript?function(e,t,r){return q(c.DtsOnly,e,t,r,!0,void 0,void 0)}(t,d,u):void 0)}}function re(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+$(e)},e.mangleScopedPackageName=$,e.getPackageNameFromTypesPackageName=function(t){var r=e.removePrefix(t,"@types/");return r!==t?Z(r):t},e.unmangleScopedPackageName=Z,e.classicNameResolver=te,e.loadModuleFromGlobalCache=function(n,i,a,o,s,l){var u=r(a,o);u&&t(o,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,s);var d=[],p={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:d,packageJsonInfoCache:l};return _(H(c.DtsOnly,n,s,p,!1),!0,d,p.resultFromCache)}}(u||(u={})),function(e){var t,r;function n(t,r){return t.body&&!t.body.parent&&(e.setParent(t.body,t),e.setParentRecursive(t.body,!1)),t.body?o(t.body,r):1}function o(t,r){void 0===r&&(r=new e.Map);var i=e.getNodeId(t);if(r.has(i))return r.get(i)||0;r.set(i,void 0);var a=function(t,r){switch(t.kind){case 256:case 257:return 0;case 258:if(e.isEnumConst(t))return 2;break;case 264:case 263:if(!e.hasSyntacticModifier(t,1))return 0;break;case 270:var i=t;if(!i.moduleSpecifier&&i.exportClause&&271===i.exportClause.kind){for(var a=0,c=0,l=i.exportClause.elements;c<l.length;c++){var u=s(l[c],r);if(u>a&&(a=u),1===a)return a}return a}break;case 260:var _=0;return e.forEachChild(t,(function(t){var n=o(t,r);switch(n){case 0:return;case 2:return void(_=2);case 1:return _=1,!0;default:e.Debug.assertNever(n)}})),_;case 259:return n(t,r);case 79:if(t.isInJSDocNamespace)return 0}return 1}(t,r);return r.set(i,a),a}function s(t,r){for(var n=t.propertyName||t.name,i=t.parent;i;){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){for(var a=void 0,s=0,c=i.statements;s<c.length;s++){var l=c[s];if(e.nodeHasName(l,n)){l.parent||(e.setParent(l,i),e.setParentRecursive(l,!1));var u=o(l,r);if((void 0===a||u>a)&&(a=u),1===a)return a}}if(void 0!==a)return a}i=i.parent}return 1}function c(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(r=e.ModuleInstanceState||(e.ModuleInstanceState={}))[r.NonInstantiated=0]="NonInstantiated",r[r.Instantiated=1]="Instantiated",r[r.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=n,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(t||(t={}));var l=function(){var t,r,o,s,l,p,f,g,m,y,h,v,b,x,D,S,E,T,C,k,A,N,F,w,P=!1,I=0,O={flags:1},L={flags:1},M=function(){return e.createBinaryExpressionTrampoline((function(t,r){if(r){r.stackIndex++,e.setParent(t,s);var n=N;je(t);var i=s;s=t,r.skip=!1,r.inStrictModeStack[r.stackIndex]=n,r.parentStack[r.stackIndex]=i}else r={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var a=t.operatorToken.kind;if(55===a||56===a||60===a||e.isLogicalOrCoalescingAssignmentOperator(a)){if(_e(t)){var o=Z();be(t,o,o),h=ce(o)}else be(t,D,S);r.skip=!0}return r}),(function(e,r,n){if(!r.skip)return t(e)}),(function(e,t,r){t.skip||(27===e.kind&&ye(r.left),Me(e))}),(function(e,r,n){if(!r.skip)return t(e)}),(function(t,r){if(!r.skip){var n=t.operatorToken.kind;e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t)&&(ve(t.left),63===n&&205===t.left.kind&&$(t.left.expression)&&(h=oe(256,h,t)))}var i=r.inStrictModeStack[r.stackIndex],a=r.parentStack[r.stackIndex];void 0!==i&&(N=i),void 0!==a&&(s=a),r.skip=!1,r.stackIndex--}),void 0);function t(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Me(t)}}();function R(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(n,i){t=n,r=i,o=e.getEmitScriptTarget(r),N=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,i),w=new e.Set,I=0,F=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(L),t.locals||(Me(t),t.symbolCount=I,t.classifiableNames=w,function(){if(m){for(var r=l,n=g,i=f,a=s,o=h,u=0,d=m;u<d.length;u++){var p=d[u],y=p.parent.parent;l=e.findAncestor(y.parent,(function(e){return!!(1&Te(e))}))||t,f=e.getEnclosingBlockScopeContainer(y)||t,h=c({flags:2}),s=p,Me(p.typeExpression);var v=e.getNameOfDeclaration(p);if((e.isJSDocEnumTag(p)||!p.fullName)&&v&&e.isPropertyAccessEntityNameExpression(v.parent)){var b=Qe(v.parent);if(b){Ye(t.symbol,v.parent,b,!!e.findAncestor(v,(function(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText})),!1);var x=l;switch(e.getAssignmentDeclarationPropertyAccessKind(v.parent)){case 1:case 2:l=e.isExternalOrCommonJsModule(t)?t:void 0;break;case 4:l=v.parent.expression;break;case 3:l=v.parent.expression.name;break;case 5:l=_(t,v.parent.expression)?t:e.isPropertyAccessExpression(v.parent.expression)?v.parent.expression.name:v.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}l&&K(p,524288,788968),l=x}}else e.isJSDocEnumTag(p)||!p.fullName||79===p.fullName.kind?(s=p.parent,we(p,524288,788968)):Me(p.fullName)}l=r,g=n,f=i,s=a,h=o}}()),t=void 0,r=void 0,o=void 0,s=void 0,l=void 0,p=void 0,f=void 0,g=void 0,m=void 0,y=!1,h=void 0,v=void 0,b=void 0,x=void 0,D=void 0,S=void 0,E=void 0,C=void 0,k=!1,P=!1,A=0};function B(e,t){return I++,new F(e,t)}function j(t,r,n){t.flags|=n,r.symbol=t,t.declarations=e.appendIfUnique(t.declarations,r),1955&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),t.constEnumOnlyModule&&304&t.flags&&(t.constEnumOnlyModule=!1),111551&n&&e.setValueDeclaration(t,r)}function J(t){if(269===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(160===r.kind){var i=r.expression;if(e.isStringOrNumericLiteralLike(i))return e.escapeLeadingUnderscores(i.text);if(e.isSignedNumericLiteral(i))return e.tokenToString(i.operator)+i.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(r)){var a=e.getContainingClass(t);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,r.escapedText)}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 169:return"__constructor";case 177:case 172:case 318:return"__call";case 178:case 173:return"__new";case 174:return"__index";case 270:return"__export";case 300:return"export=";case 219:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 312:return e.isJSDocConstructSignature(t)?"__new":"__call";case 162:return e.Debug.assert(312===t.parent.kind,"Impossible parameter parent kind",(function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind)+", expected JSDocFunctionType"})),"arg"+t.parent.parameters.indexOf(t)}}function V(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(J(t)))}function U(r,n,a,o,s,c,l){e.Debug.assert(l||!e.hasDynamicName(a));var u,_=e.hasSyntacticModifier(a,512)||e.isExportSpecifier(a)&&"default"===a.name.escapedText,d=l?"__computed":_&&n?"default":J(a);if(void 0===d)u=B(0,"__missing");else if(u=r.get(d),2885600&o&&w.add(d),u){if(c&&!u.isReplaceableByMethod)return u;if(u.flags&s)if(u.isReplaceableByMethod)r.set(d,u=B(0,d));else if(!(3&o&&67108864&u.flags)){e.isNamedDeclaration(a)&&e.setParent(a.name,a);var p=2&u.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,f=!0;(384&u.flags||384&o)&&(p=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,f=!1);var g=!1;e.length(u.declarations)&&(_||u.declarations&&u.declarations.length&&269===a.kind&&!a.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports,f=!1,g=!0);var m=[];e.isTypeAliasDeclaration(a)&&e.nodeIsMissing(a.type)&&e.hasSyntacticModifier(a,1)&&2887656&u.flags&&m.push(R(a,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(a.name.escapedText)+" }"));var y=e.getNameOfDeclaration(a)||a;e.forEach(u.declarations,(function(r,n){var i=e.getNameOfDeclaration(r)||r,a=R(i,p,f?V(r):void 0);t.bindDiagnostics.push(g?e.addRelatedInfo(a,R(y,0===n?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),g&&m.push(R(i,e.Diagnostics.The_first_export_default_is_here))}));var h=R(y,p,f?V(a):void 0);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,i([h],m,!1))),u=B(0,d)}}else r.set(d,u=B(0,d)),c&&(u.isReplaceableByMethod=!0);return j(u,a,o),u.parent?e.Debug.assert(u.parent===n,"Existing symbol parent should match new one"):u.parent=n,u}function K(t,r,n){var i=!!(1&e.getCombinedModifierFlags(t))||function(t){if(t.parent&&e.isModuleDeclaration(t)&&(t=t.parent),!e.isJSDocTypeAlias(t))return!1;if(!e.isJSDocEnumTag(t)&&t.fullName)return!0;var r=e.getNameOfDeclaration(t);return!!(r&&(e.isPropertyAccessEntityNameExpression(r.parent)&&Qe(r.parent)||e.isDeclaration(r.parent)&&1&e.getCombinedModifierFlags(r.parent)))}(t);if(2097152&r)return 273===t.kind||263===t.kind&&i?U(l.symbol.exports,l.symbol,t,r,n):U(l.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&l.flags)){if(!l.locals||e.hasSyntacticModifier(t,512)&&!J(t))return U(l.symbol.exports,l.symbol,t,r,n);var a=111551&r?1048576:0,o=U(l.locals,void 0,t,a,n);return o.exportSymbol=U(l.symbol.exports,l.symbol,t,r,n),t.localSymbol=o,o}return U(l.locals,void 0,t,r,n)}function z(e){G(e,(function(e){return 254===e.kind?Me(e):void 0})),G(e,(function(e){return 254!==e.kind?Me(e):void 0}))}function G(t,r){void 0===r&&(r=Me),void 0!==t&&e.forEach(t,r)}function W(t){e.forEachChild(t,Me,G)}function q(t){var i=P;if(P=!1,function(t){if(!(1&h.flags))return!1;if(h===O){var i=e.isStatementButNotDeclaration(t)&&234!==t.kind||255===t.kind||259===t.kind&&function(t){var i=n(t);return 1===i||2===i&&e.shouldPreserveConstEnums(r)}(t);if(i&&(h=L,!r.allowUnreachableCode)){var a=e.unreachableCodeIsError(r)&&!(8388608&t.flags)&&(!e.isVariableStatement(t)||!!(3&e.getCombinedNodeFlags(t.declarationList))||t.declarationList.declarations.some((function(e){return!!e.initializer})));!function(t,r){if(e.isStatement(t)&&u(t)&&e.isBlock(t.parent)){var n=t.parent.statements,i=e.sliceAfter(n,t);e.getRangesWhere(i,u,(function(e,t){return r(i[e],i[t-1])}))}else r(t,t)}(t,(function(t,r){return Le(a,t,r,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(t))return W(t),Re(t),void(P=i);switch(t.kind>=235&&t.kind<=251&&!r.allowUnreachableCode&&(t.flowNode=h),t.kind){case 239:!function(e){var t=ge(e,ee()),r=Z(),n=Z();ne(t,h),h=t,pe(e.expression,r,n),h=ce(r),fe(e.statement,n,t),ne(t,h),h=ce(n)}(t);break;case 238:!function(e){var t=ee(),r=ge(e,Z()),n=Z();ne(t,h),h=t,fe(e.statement,n,r),ne(r,h),h=ce(r),pe(e.expression,t,n),h=ce(n)}(t);break;case 240:!function(e){var t=ge(e,ee()),r=Z(),n=Z();Me(e.initializer),ne(t,h),h=t,pe(e.condition,r,n),h=ce(r),fe(e.statement,n,t),Me(e.incrementor),ne(t,h),h=ce(n)}(t);break;case 241:case 242:!function(e){var t=ge(e,ee()),r=Z();Me(e.expression),ne(t,h),h=t,242===e.kind&&Me(e.awaitModifier),ne(r,h),Me(e.initializer),253!==e.initializer.kind&&ve(e.initializer),fe(e.statement,r,t),ne(t,h),h=ce(r)}(t);break;case 237:!function(e){var t=Z(),r=Z(),n=Z();pe(e.expression,t,r),h=ce(t),Me(e.thenStatement),ne(n,h),h=ce(r),Me(e.elseStatement),ne(n,h),h=ce(n)}(t);break;case 245:case 249:!function(e){Me(e.expression),245===e.kind&&(k=!0,x&&ne(x,h)),h=O}(t);break;case 244:case 243:!function(e){if(Me(e.label),e.label){var t=function(e){for(var t=C;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,me(e,t.breakTarget,t.continueTarget))}else me(e,v,b)}(t);break;case 250:!function(t){var r=x,n=E,i=Z(),a=Z(),o=Z();if(t.finallyBlock&&(x=a),ne(o,h),E=o,Me(t.tryBlock),ne(i,h),t.catchClause&&(h=ce(o),ne(o=Z(),h),E=o,Me(t.catchClause),ne(i,h)),x=r,E=n,t.finallyBlock){var s=Z();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),h=s,Me(t.finallyBlock),1&h.flags?h=O:(x&&a.antecedents&&ne(x,te(s,a.antecedents,h)),E&&o.antecedents&&ne(E,te(s,o.antecedents,h)),h=i.antecedents?te(s,i.antecedents,h):O)}else h=ce(i)}(t);break;case 247:!function(t){var r=Z();Me(t.expression);var n=v,i=T;v=r,T=h,Me(t.caseBlock),ne(r,h);var a=e.forEach(t.caseBlock.clauses,(function(e){return 288===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(T,t,0,0)),v=n,T=i,h=ce(r)}(t);break;case 261:!function(e){for(var t=e.clauses,n=H(e.parent.expression),i=O,a=0;a<t.length;a++){for(var o=a;!t[a].statements.length&&a+1<t.length;)Me(t[a]),a++;var s=Z();ne(s,n?ae(T,e.parent,o,a+1):T),ne(s,i),h=ce(s);var c=t[a];Me(c),i=h,1&h.flags||a===t.length-1||!r.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=h)}}(t);break;case 287:!function(e){var t=h;h=T,Me(e.expression),h=t,G(e.statements)}(t);break;case 236:!function(e){Me(e.expression),ye(e.expression)}(t);break;case 248:!function(t){var n=Z();C={next:C,name:t.label.escapedText,breakTarget:n,continueTarget:void 0,referenced:!1},Me(t.label),Me(t.statement),C.referenced||r.allowUnusedLabels||function(e,t,r){Le(e,t,t,r)}(e.unusedLabelIsError(r),t.label,e.Diagnostics.Unused_label),C=C.next,ne(n,h),h=ce(n)}(t);break;case 217:!function(e){if(53===e.operator){var t=D;D=S,S=t,W(e),S=D,D=t}else W(e),45!==e.operator&&46!==e.operator||ve(e.operand)}(t);break;case 218:!function(e){W(e),(45===e.operator||46===e.operator)&&ve(e.operand)}(t);break;case 219:if(e.isDestructuringAssignment(t))return P=i,void function(e){P?(P=!1,Me(e.operatorToken),Me(e.right),P=!0,Me(e.left)):(P=!0,Me(e.left),P=!1,Me(e.operatorToken),Me(e.right)),ve(e.left)}(t);M(t);break;case 213:!function(e){W(e),204===e.expression.kind&&ve(e.expression)}(t);break;case 220:!function(e){var t=Z(),r=Z(),n=Z();pe(e.condition,t,r),h=ce(t),Me(e.questionToken),Me(e.whenTrue),ne(n,h),h=ce(r),Me(e.colonToken),Me(e.whenFalse),ne(n,h),h=ce(n)}(t);break;case 252:!function(t){W(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&xe(t)}(t);break;case 204:case 205:!function(t){e.isOptionalChain(t)?Ee(t):W(t)}(t);break;case 206:!function(t){if(e.isOptionalChain(t))Ee(t);else{var r=e.skipParentheses(t.expression);211===r.kind||212===r.kind?(G(t.typeArguments),G(t.arguments),Me(t.expression)):(W(t),106===t.expression.kind&&(h=se(h,t)))}if(204===t.expression.kind){var n=t.expression;e.isIdentifier(n.name)&&$(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(h=oe(256,h,t))}}(t);break;case 228:!function(t){e.isOptionalChain(t)?Ee(t):W(t)}(t);break;case 340:case 333:case 334:!function(t){Me(t.tagName),334!==t.kind&&t.fullName&&(e.setParent(t.fullName,t),e.setParentRecursive(t.fullName,!1)),"string"!=typeof t.comment&&G(t.comment)}(t);break;case 300:z(t.statements),Me(t.endOfFileToken);break;case 233:case 260:z(t.statements);break;case 201:!function(t){e.isBindingPattern(t.name)?(G(t.decorators),G(t.modifiers),Me(t.dotDotDotToken),Me(t.propertyName),Me(t.initializer),Me(t.name)):W(t)}(t);break;case 203:case 202:case 291:case 223:P=i;default:W(t)}Re(t),P=i}function H(e){switch(e.kind){case 79:case 80:case 108:case 204:case 205:return X(e);case 206:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(X(r[t]))return!0;return!(204!==e.expression.kind||!X(e.expression.expression))}(e);case 210:case 228:case 214:return H(e.expression);case 219:return function(e){switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return X(e.left);case 34:case 35:case 36:case 37:return $(e.left)||$(e.right)||Q(e.right,e.left)||Q(e.left,e.right);case 102:return $(e.left);case 101:case 27:return H(e.right)}return!1}(e);case 217:return 53===e.operator&&H(e.operand)}return!1}function Y(t){return e.isDottedName(t)||(e.isPropertyAccessExpression(t)||e.isNonNullExpression(t)||e.isParenthesizedExpression(t))&&Y(t.expression)||e.isBinaryExpression(t)&&27===t.operatorToken.kind&&Y(t.right)||e.isElementAccessExpression(t)&&e.isStringOrNumericLiteralLike(t.argumentExpression)&&Y(t.expression)||e.isAssignmentExpression(t)&&Y(t.left)}function X(t){return Y(t)||e.isOptionalChain(t)&&X(t.expression)}function Q(t,r){return e.isTypeOfExpression(t)&&$(t.expression)&&e.isStringLiteralLike(r)}function $(e){switch(e.kind){case 210:return $(e.expression);case 219:switch(e.operatorToken.kind){case 63:return $(e.left);case 27:return $(e.right)}}return X(e)}function Z(){return c({flags:4,antecedents:void 0})}function ee(){return c({flags:8,antecedents:void 0})}function te(e,t,r){return c({flags:1024,target:e,antecedents:t,antecedent:r})}function re(e){e.flags|=2048&e.flags?4096:2048}function ne(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),re(r))}function ie(t,r,n){return 1&r.flags?r:n?!(110===n.kind&&64&t||95===n.kind&&32&t)||e.isExpressionOfOptionalChainRoot(n)||e.isNullishCoalesce(n.parent)?H(n)?(re(r),c({flags:t,antecedent:r,node:n})):r:O:32&t?r:O}function ae(e,t,r,n){return re(e),c({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function oe(e,t,r){re(t);var n=c({flags:e,antecedent:t,node:r});return E&&ne(E,n),n}function se(e,t){return re(e),c({flags:512,antecedent:e,node:t})}function ce(e){var t=e.antecedents;return t?1===t.length?t[0]:e:O}function le(e){for(;;)if(210===e.kind)e=e.expression;else{if(217!==e.kind||53!==e.operator)return 219===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function ue(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)&&e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)}function _e(t){for(;e.isParenthesizedExpression(t.parent)||e.isPrefixUnaryExpression(t.parent)&&53===t.parent.operator;)t=t.parent;return!(function(e){var t=e.parent;switch(t.kind){case 237:case 239:case 238:return t.expression===e;case 240:case 220:return t.condition===e}return!1}(t)||ue(t.parent)||le(t.parent)||e.isOptionalChain(t.parent)&&t.parent.expression===t)}function de(e,t,r,n){var i=D,a=S;D=r,S=n,e(t),D=i,S=a}function pe(t,r,n){de(Me,t,r,n),t&&(ue(t)||le(t)||e.isOptionalChain(t)&&e.isOutermostOptionalChain(t))||(ne(r,ie(32,h,t)),ne(n,ie(64,h,t)))}function fe(e,t,r){var n=v,i=b;v=t,b=r,Me(e),v=n,b=i}function ge(e,t){for(var r=C;r&&248===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function me(e,t,r){var n=244===e.kind?t:r;n&&(ne(n,h),h=O)}function ye(t){if(206===t.kind){var r=t;106!==r.expression.kind&&e.isDottedName(r.expression)&&(h=se(h,r))}}function he(e){219===e.kind&&63===e.operatorToken.kind?ve(e.left):ve(e)}function ve(e){if(Y(e))h=oe(16,h,e);else if(202===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];223===n.kind?ve(n.expression):he(n)}else if(203===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];291===o.kind?he(o.initializer):292===o.kind?ve(o.name):293===o.kind&&ve(o.expression)}}function be(t,r,n){var i=Z();55===t.operatorToken.kind||76===t.operatorToken.kind?pe(t.left,i,n):pe(t.left,r,i),h=ce(i),Me(t.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)?(de(Me,t.right,r,n),ve(t.left),ne(r,ie(32,h,t)),ne(n,ie(64,h,t))):pe(t.right,r,n)}function xe(t){var r=e.isOmittedExpression(t)?void 0:t.name;if(e.isBindingPattern(r))for(var n=0,i=r.elements;n<i.length;n++)xe(i[n]);else h=oe(16,h,t)}function De(e){switch(e.kind){case 204:Me(e.questionDotToken),Me(e.name);break;case 205:Me(e.questionDotToken),Me(e.argumentExpression);break;case 206:Me(e.questionDotToken),G(e.typeArguments),G(e.arguments)}}function Se(t,r,n){var i=e.isOptionalChainRoot(t)?Z():void 0;!function(t,r,n){de(Me,t,r,n),e.isOptionalChain(t)&&!e.isOutermostOptionalChain(t)||(ne(r,ie(32,h,t)),ne(n,ie(64,h,t)))}(t.expression,i||r,n),i&&(h=ce(i)),de(De,t,r,n),e.isOutermostOptionalChain(t)&&(ne(r,ie(32,h,t)),ne(n,ie(64,h,t)))}function Ee(e){if(_e(e)){var t=Z();Se(e,t,t),h=ce(t)}else Se(e,D,S)}function Te(t){switch(t.kind){case 224:case 255:case 258:case 203:case 180:case 317:case 284:return 1;case 256:return 65;case 259:case 257:case 193:return 33;case 300:return 37;case 167:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 169:case 254:case 166:case 170:case 171:case 172:case 318:case 312:case 177:case 173:case 174:case 178:case 168:return 45;case 211:case 212:return 61;case 260:return 4;case 165:return t.initializer?4:0;case 290:case 240:case 241:case 242:case 261:return 2;case 233:return e.isFunctionLike(t.parent)||e.isClassStaticBlockDeclaration(t.parent)?0:2}return 0}function Ce(e){g&&(g.nextContainer=e),g=e}function ke(r,n,i){switch(l.kind){case 259:return K(r,n,i);case 300:return function(r,n,i){return e.isExternalModule(t)?K(r,n,i):U(t.locals,void 0,r,n,i)}(r,n,i);case 224:case 255:return function(t,r,n){return e.isStatic(t)?U(l.symbol.exports,l.symbol,t,r,n):U(l.symbol.members,l.symbol,t,r,n)}(r,n,i);case 258:return U(l.symbol.exports,l.symbol,r,n,i);case 180:case 317:case 203:case 256:case 284:return U(l.symbol.members,l.symbol,r,n,i);case 177:case 178:case 172:case 173:case 318:case 174:case 167:case 166:case 169:case 170:case 171:case 254:case 211:case 212:case 312:case 340:case 333:case 168:case 257:case 193:return U(l.locals,void 0,r,n,i)}}function Ae(t){8388608&t.flags&&!function(t){var r=e.isSourceFile(t)?t:e.tryCast(t.body,e.isModuleBlock);return!!r&&r.statements.some((function(t){return e.isExportDeclaration(t)||e.isExportAssignment(t)}))}(t)?t.flags|=64:t.flags&=-65}function Ne(e){var t=n(e),r=0!==t;return ke(e,r?512:1024,r?110735:0),t}function Fe(e,t,r){var n=B(t,r);return 106508&t&&(n.parent=l.symbol),j(n,e,t),n}function we(t,r,n){switch(f.kind){case 259:K(t,r,n);break;case 300:if(e.isExternalOrCommonJsModule(l)){K(t,r,n);break}default:f.locals||(f.locals=e.createSymbolTable(),Ce(f)),U(f.locals,void 0,t,r,n)}}function Pe(r,n){if(n&&79===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}var o}function Ie(e){N&&Pe(e,e.name)}function Oe(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 Le(r,n,i,o){!function(r,n,i){var o=e.createFileDiagnostic(t,n.pos,n.end-n.pos,i);r?t.bindDiagnostics.push(o):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,a(a({},o),{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},o)}function Me(t){if(t){e.setParent(t,s);var r=N;if(je(t),t.kind>158){var n=s;s=t;var i=Te(t);0===i?q(t):function(t,r){var n=l,i=p,a=f;if(1&r?(212!==t.kind&&(p=l),l=f=t,32&r&&(l.locals=e.createSymbolTable()),Ce(l)):2&r&&((f=t).locals=void 0),4&r){var o=h,s=v,u=b,_=x,d=E,g=C,m=k,D=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);D||(h=c({flags:2}),144&r&&(h.node=t)),x=D||169===t.kind||168===t.kind||e.isInJSFile(t)&&(254===t.kind||211===t.kind)?Z():void 0,E=void 0,v=void 0,b=void 0,C=void 0,k=!1,q(t),t.flags&=-2817,!(1&h.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=h),300===t.kind&&(t.flags|=A,t.endFlowNode=h),x&&(ne(x,h),h=ce(x),(169===t.kind||168===t.kind||e.isInJSFile(t)&&(254===t.kind||211===t.kind))&&(t.returnFlowNode=h)),D||(h=o),v=s,b=u,x=_,E=d,C=g,k=m}else 64&r?(y=!1,q(t),t.flags=y?128|t.flags:-129&t.flags):q(t);l=n,p=i,f=a}(t,i),s=n}else n=s,1===t.kind&&(s=t),Re(t),s=n;N=r}}function Re(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r<n.length;r++)Me(o=n[r]);else for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];e.setParent(o,t),e.setParentRecursive(o,!1)}}function Be(r){if(!N)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(N=!0)}var o,s}function je(n){switch(n.kind){case 79:if(n.isInJSDocNamespace){for(var i=n.parent;i&&!e.isJSDocTypeAlias(i);)i=i.parent;we(i,524288,788968);break}case 108:return h&&(e.isExpression(n)||292===s.kind)&&(n.flowNode=h),function(r){t.parseDiagnostics.length||8388608&r.flags||4194304&r.flags||e.isIdentifierName(r)||(N&&r.originalKeywordKind>=117&&r.originalKeywordKind<=125?t.bindDiagnostics.push(R(r,function(r){return e.getContainingClass(r)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r))):131===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):125===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}(n);case 159:h&&e.isPartOfTypeQuery(n)&&(n.flowNode=h);break;case 229:case 106:n.flowNode=h;break;case 80:return function(r){"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(R(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))}(n);case 204:case 205:var a=n;h&&Y(a)&&(a.flowNode=h),e.isSpecialPropertyDeclaration(a)&&function(t){108===t.expression.kind?ze(t):e.isBindableStaticAccessExpression(t)&&300===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?qe(t,t.parent):He(t))}(a),e.isInJSFile(a)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(a)&&!d(f,"module")&&U(t.locals,void 0,a.expression,134217729,111550);break;case 219:switch(e.getAssignmentDeclarationKind(n)){case 1:Ue(n);break;case 2:!function(r){if(Ve(r)){var n=e.getRightMostAssignedExpression(r.right);if(!(e.isEmptyObjectLiteral(n)||l===t&&_(t,n)))if(e.isObjectLiteralExpression(n)&&e.every(n.properties,e.isShorthandPropertyAssignment))e.forEach(n.properties,Ke);else{var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=U(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}}}(n);break;case 3:qe(n.left,n);break;case 6:!function(t){e.setParent(t.left,t),e.setParent(t.right,t),$e(t.left.expression,t.left,!1,!0)}(n);break;case 4:ze(n);break;case 5:var c=n.left.expression;if(e.isInJSFile(n)&&e.isIdentifier(c)){var u=d(f,c.escapedText);if(e.isThisInitializedDeclaration(null==u?void 0:u.valueDeclaration)){ze(n);break}}!function(r){var n,i=Ze(r.left.expression,l)||Ze(r.left.expression,f);if(e.isInJSFile(r)||e.isFunctionSymbol(i)){var a=e.getLeftmostAccessExpression(r.left);e.isIdentifier(a)&&2097152&(null===(n=d(l,a.escapedText))||void 0===n?void 0:n.flags)||(e.setParent(r.left,r),e.setParent(r.right,r),e.isIdentifier(r.left.expression)&&l===t&&_(t,r.left.expression)?Ue(r):e.hasDynamicName(r)?(Fe(r,67108868,"__computed"),We(r,Ye(i,r.left.expression,Qe(r.left),!1,!1))):He(e.cast(r.left,e.isBindableStaticNameExpression)))}}(n);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){N&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Pe(t,t.left)}(n);case 290:return function(e){N&&e.variableDeclaration&&Pe(e,e.variableDeclaration.name)}(n);case 213:return function(r){if(N&&79===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 8:return function(r){N&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(n);case 218:return function(e){N&&Pe(e,e.operand)}(n);case 217:return function(e){N&&(45!==e.operator&&46!==e.operator||Pe(e,e.operand))}(n);case 246:return function(t){N&&Oe(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(n);case 248:return function(t){N&&r.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Oe(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(n);case 190:return void(y=!0);case 175:break;case 161:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),U(r.locals,void 0,t,262144,526824)):ke(t,262144,526824)}else if(188===t.parent.kind){var n=function(t){var r=e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t}));return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),U(n.locals,void 0,t,262144,526824)):Fe(t,262144,J(t))}else ke(t,262144,526824)}(n);case 162:return rt(n);case 252:return tt(n);case 201:return n.flowNode=h,tt(n);case 165:case 164:return function(e){return nt(e,4|(e.questionToken?16777216:0),0)}(n);case 291:case 292:return nt(n,4,0);case 294:return nt(n,8,900095);case 172:case 173:case 174:return ke(n,131072,0);case 167:case 166:return nt(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:103359);case 254:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(A|=2048),Ie(r),N?(function(r){if(o<2&&300!==f.kind&&259!==f.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(f)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}(r),we(r,16,110991)):ke(r,16,110991)}(n);case 169:return ke(n,16384,0);case 170:return nt(n,32768,46015);case 171:return nt(n,65536,78783);case 177:case 312:case 318:case 178:return function(t){var r=B(131072,J(t));j(r,t,131072);var n=B(2048,"__type");j(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(n);case 180:case 317:case 193:return function(e){return Fe(e,2048,"__type")}(n);case 327:return function(t){W(t);var r=e.getHostSignatureFromJSDoc(t);r&&167!==r.kind&&j(r.symbol,r,32)}(n);case 203:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),N&&!e.isAssignmentTarget(r))for(var i=new e.Map,a=0,o=r.properties;a<o.length;a++){var s=o[a];if(293!==s.kind&&79===s.name.kind){var c=s.name,l=291===s.kind||292===s.kind||167===s.kind?1:2,u=i.get(c.escapedText);if(u){if(1===l&&1===u){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,l)}}return Fe(r,4096,"__object")}(n);case 211:case 212:return function(r){return t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(A|=2048),h&&(r.flowNode=h),Ie(r),Fe(r,16,r.name?r.name.escapedText:"__function")}(n);case 206:switch(e.getAssignmentDeclarationKind(n)){case 7:return function(e){var t=Ze(e.arguments[0]),r=300===e.parent.parent.kind;Xe(e,t=Ye(t,e.arguments[0],r,!1,!1),!1)}(n);case 8:return function(e){if(Ve(e)){var t=et(e.arguments[0],void 0,(function(e,t){return t&&j(t,e,67110400),t}));if(t){U(t.exports,t,e,1048580,0)}}}(n);case 9:return function(e){var t=Ze(e.arguments[0].expression);t&&t.valueDeclaration&&j(t,t.valueDeclaration,32),Xe(e,t,!0)}(n);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(n)&&function(r){!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&Ve(r)}(n);break;case 224:case 255:return N=!0,function(r){255===r.kind?we(r,32,899503):(Fe(r,32,r.name?r.name.escapedText:"__class"),r.name&&w.add(r.name.escapedText));var n=r.symbol,i=B(4194308,"prototype"),a=n.exports.get(i.escapedName);a&&(r.name&&e.setParent(r.name,r),t.bindDiagnostics.push(R(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i)))),n.exports.set(i.escapedName,i),i.parent=n}(n);case 256:return we(n,64,788872);case 257:return we(n,524288,788968);case 258:return function(t){return e.isEnumConst(t)?we(t,128,899967):we(t,256,899327)}(n);case 259:return function(r){if(Ae(r),e.isAmbientModule(r))if(e.hasSyntacticModifier(r,1)&&Oe(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))Ne(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;void 0===(n=e.tryParsePattern(i))&&Oe(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=ke(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&!e.isString(n)?{pattern:n,symbol:a}:void 0)}else{var o=Ne(r);0!==o&&((a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}}(n);case 284:return function(e){return Fe(e,4096,"__jsxAttributes")}(n);case 283:return function(e,t,r){return ke(e,4,0)}(n);case 263:case 266:case 268:case 273:return ke(n,2097152,2097152);case 262:return function(r){r.modifiers&&r.modifiers.length&&t.bindDiagnostics.push(R(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;n?t.bindDiagnostics.push(R(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),U(t.symbol.globalExports,t.symbol,r,2097152,2097152))}(n);case 265:return function(e){e.name&&ke(e,2097152,2097152)}(n);case 270:return function(t){l.symbol&&l.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),U(l.symbol.exports,l.symbol,t.exportClause,2097152,2097152)):U(l.symbol.exports,l.symbol,t,8388608,0):Fe(t,8388608,J(t))}(n);case 269:return function(t){if(l.symbol&&l.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=U(l.symbol.exports,l.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else Fe(t,111551,J(t))}(n);case 300:return Be(n.statements),function(){if(Ae(t),e.isExternalModule(t))Je();else if(e.isJsonSourceFile(t)){Je();var r=t.symbol;U(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}}();case 233:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(n.parent))return;case 260:return Be(n.statements);case 335:if(318===n.parent.kind)return rt(n);if(317!==n.parent.kind)break;case 342:var p=n;return ke(p,p.isBracketed||p.typeExpression&&311===p.typeExpression.type.kind?16777220:4,0);case 340:case 333:case 334:return(m||(m=[])).push(n)}}function Je(){Fe(t,512,'"'+e.removeFileExtension(t.fileName)+'"')}function Ve(e){return!t.externalModuleIndicator&&(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,Je()),!0)}function Ue(t){if(Ve(t)){var r=et(t.left.expression,void 0,(function(e,t){return t&&j(t,e,67110400),t}));if(r){var n=e.isAliasableExpression(t.right)&&(e.isExportsIdentifier(t.left.expression)||e.isModuleExportsAccessExpression(t.left.expression))?2097152:1048580;e.setParent(t.left,t),U(r.exports,r,t.left,n,0)}}}function Ke(e){U(t.symbol.exports,t.symbol,e,69206016,0)}function ze(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var r=e.getThisContainer(t,!1);switch(r.kind){case 254:case 211:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind){var i=r.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=Ze(i.expression.expression,p))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?Ge(t,n,n.members):U(n.members,n,t,67108868,0),j(n,n.valueDeclaration,32));break;case 169:case 165:case 167:case 170:case 171:var a=r.parent,o=e.isStatic(r)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?Ge(t,a.symbol,o):U(o,a.symbol,t,67108868,0,!0);break;case 300:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?U(r.symbol.exports,r.symbol,t,1048580,0):ke(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function Ge(e,t,r){U(r,t,e,4,0,!0,!0),We(e,t)}function We(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function qe(t,r){var n=t.expression,i=n.expression;e.setParent(i,n),e.setParent(n,t),e.setParent(t,r),$e(i,t,!0,!0)}function He(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),$e(t.expression,t,!1,!1)}function Ye(r,n,i,a,o){if(2097152&(null==r?void 0:r.flags))return r;if(i&&!a){var s=67110400;r=et(n,r,(function(r,n,i){return n?(j(n,r,s),n):U(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,s,110735)}))}return o&&r&&r.valueDeclaration&&j(r,r.valueDeclaration,32),r}function Xe(t,r,n){if(r&&function(t){if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,i)}return!1}(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"set"===e.idText(r)}))&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"get"===e.idText(r)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),U(i,r,t,67108864|a,-67108865&o)}}function Qe(t){return e.isBinaryExpression(t.parent)?300===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(t.parent).parent.kind:300===t.parent.parent.kind}function $e(e,t,r,n){var i=Ze(e,l)||Ze(e,f),a=Qe(t);Xe(t,i=Ye(i,t.expression,a,r,n),r)}function Ze(t,r){if(void 0===r&&(r=l),e.isIdentifier(t))return d(r,t.escapedText);var n=Ze(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function et(r,n,i){if(_(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,Ze(r),n);var a=et(r.expression,n,i),o=e.getNameOrArgument(r);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(r)),a)}function tt(t){N&&Pe(t,t.name),e.isBindingPattern(t.name)||(e.isInJSFile(t)&&e.isRequireVariableDeclaration(t)&&!e.getJSDocTypeTag(t)?ke(t,2097152,2097152):e.isBlockOrCatchScoped(t)?we(t,2,111551):e.isParameterDeclaration(t)?ke(t,1,111551):ke(t,1,111550))}function rt(t){if((335!==t.kind||318===l.kind)&&(!N||8388608&t.flags||Pe(t,t.name),e.isBindingPattern(t.name)?Fe(t,1,"__"+t.parent.parameters.indexOf(t)):ke(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;U(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function nt(r,n,i){return t.isDeclarationFile||8388608&r.flags||!e.isAsyncFunction(r)||(A|=2048),h&&e.isObjectLiteralOrClassExpressionMethod(r)&&(r.flowNode=h),e.hasDynamicName(r)?Fe(r,n,"__computed"):ke(r,n,i)}}();function u(t){return!(e.isFunctionDeclaration(t)||function(t){switch(t.kind){case 256:case 257:return!0;case 259:return 1!==n(t);case 258:return e.hasSyntacticModifier(t,2048);default:return!1}}(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some((function(e){return!e.initializer})))}function _(t,r){for(var n=0,i=[r];i.length&&n<100;){if(n++,r=i.shift(),e.isExportsIdentifier(r)||e.isModuleExportsAccessExpression(r))return!0;if(e.isIdentifier(r)){var a=d(t,r.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.push(o),e.isAssignmentExpression(o,!0)&&(i.push(o.left),i.push(o.right))}}}return!1}function d(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}e.bindSourceFile=function(t,r){null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:t.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),l(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind"),null===e.tracing||void 0===e.tracing||e.tracing.pop()},e.isExportsOrModuleExportsOrAlias=_}(u||(u={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,l,u){return function(_){void 0===_&&(_=function(){return!0});var d=[],p=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}},walkSymbol:function(t){try{return y(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}}};function f(t){if(t&&!d[t.id]&&(d[t.id]=t,!y(t.symbol))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&function(t){f(t.target),e.forEach(u(t),f)}(t),32&n&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&n&&(m(a=t),e.forEach(a.typeParameters,f),e.forEach(i(a),f),f(a.thisType)),24&n&&m(r)}var a;262144&t.flags&&function(e){f(c(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,f)}(t),4194304&t.flags&&function(e){f(e.type)}(t),8388608&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}function g(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o<s.length;o++)y(s[o]);f(t(i)),f(n(i))}function m(e){for(var t=a(e),r=0,n=t.indexInfos;r<n.length;r++){var i=n[r];f(i.keyType),f(i.type)}for(var o=0,s=t.callSignatures;o<s.length;o++)g(s[o]);for(var c=0,l=t.constructSignatures;c<l.length;c++)g(l[c]);for(var u=0,_=t.properties;u<_.length;u++)y(_[u])}function y(t){if(!t)return!1;var r=e.getSymbolId(t);return!p[r]&&(p[r]=t,!_(t)||(f(o(t)),t.exports&&t.exports.forEach(y),e.forEach(t.declarations,(function(e){if(e.type&&179===e.type.kind){var t=e.type;y(s(l(t.exprName)))}})),!1))}}}}(u||(u={})),function(e){var t,r,n,o,c=/^".+"$/,l="(anonymous)",u=1,_=1,d=1,p=1;!function(e){e[e.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",e[e.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",e[e.AllowsStringInputFlag=4]="AllowsStringInputFlag",e[e.ForOfFlag=8]="ForOfFlag",e[e.YieldStarFlag=16]="YieldStarFlag",e[e.SpreadFlag=32]="SpreadFlag",e[e.DestructuringFlag=64]="DestructuringFlag",e[e.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",e[e.Element=1]="Element",e[e.Spread=33]="Spread",e[e.Destructuring=65]="Destructuring",e[e.ForOf=13]="ForOf",e[e.ForAwaitOf=15]="ForAwaitOf",e[e.YieldStar=17]="YieldStar",e[e.AsyncYieldStar=19]="AsyncYieldStar",e[e.GeneratorReturnType=1]="GeneratorReturnType",e[e.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"}(t||(t={})),function(e){e[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next"}(r||(r={})),function(e){e[e.Normal=0]="Normal",e[e.FunctionReturn=1]="FunctionReturn",e[e.GeneratorNext=2]="GeneratorNext",e[e.GeneratorYield=3]="GeneratorYield"}(n||(n={})),function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts"}(o||(o={}));var f,g,m,y,h,v,b,x,D=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),S=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}));!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.ResolvedTypeArguments=6]="ResolvedTypeArguments",e[e.ResolvedBaseTypes=7]="ResolvedBaseTypes"}(f||(f={})),function(e){e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp"}(g||(g={})),function(e){e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.Callback=3]="Callback"}(m||(m={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.PropertyCheck=4]="PropertyCheck",e[e.UnionIntersectionCheck=8]="UnionIntersectionCheck",e[e.InPropertyCheck=16]="InPropertyCheck"}(y||(y={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(h||(h={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(v||(v={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(b||(b={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(x||(x={}));var E,T,C,k,A=e.and(M,(function(t){return!e.isAccessor(t)}));!function(e){e[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.PrivateStatic=16]="PrivateStatic",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"}(E||(E={})),function(e){e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"}(T||(T={})),function(e){e[e.None=0]="None",e[e.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",e[e.VoidIsNonOptional=2]="VoidIsNonOptional"}(C||(C={})),function(e){e[e.Uppercase=0]="Uppercase",e[e.Lowercase=1]="Lowercase",e[e.Capitalize=2]="Capitalize",e[e.Uncapitalize=3]="Uncapitalize"}(k||(k={}));var N,F=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function w(){}function P(){this.flags=0}function I(e){return e.id||(e.id=_,_++),e.id}function O(e){return e.id||(e.id=u,u++),e.id}function L(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function M(e){return 254!==e.kind&&167!==e.kind||!!e.body}function R(t){switch(t.parent.kind){case 268:case 273:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function B(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function j(e){return!!(1&e.flags)}function J(e){return!!(2&e.flags)}e.getNodeId=I,e.getSymbolId=O,e.isInstantiatedModule=L,e.createTypeChecker=function(t,r){var n,o,u,_,f=e.memoize((function(){var r=new e.Set;return t.getSourceFiles().forEach((function(t){t.resolvedModules&&e.forEachEntry(t.resolvedModules,(function(e){e&&e.packageId&&r.add(e.packageId.name)}))})),r})),g=e.objectAllocator.getSymbolConstructor(),m=e.objectAllocator.getTypeConstructor(),y=e.objectAllocator.getSignatureConstructor(),h=0,v=0,b=0,x=0,E=0,T=0,C=e.createSymbolTable(),k=[1],V=t.getCompilerOptions(),U=e.getEmitScriptTarget(V),K=e.getEmitModuleKind(V),z=e.getUseDefineForClassFields(V),G=e.getAllowSyntheticDefaultImports(V),W=e.getStrictOptionValue(V,"strictNullChecks"),q=e.getStrictOptionValue(V,"strictFunctionTypes"),H=e.getStrictOptionValue(V,"strictBindCallApply"),Y=e.getStrictOptionValue(V,"strictPropertyInitialization"),X=e.getStrictOptionValue(V,"noImplicitAny"),Q=e.getStrictOptionValue(V,"noImplicitThis"),$=e.getStrictOptionValue(V,"useUnknownInCatchVariables"),Z=!!V.keyofStringsOnly,ee=V.suppressExcessPropertyErrors?0:16384,te=V.exactOptionalPropertyTypes,re=function(){var t=e.createBinaryExpressionTrampoline((function(t,r,i){return r?(r.stackIndex++,r.skip=!1,n(r,void 0),a(r,void 0)):r={checkMode:i,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)?(r.skip=!0,a(r,kb(t.right,i)),r):(function(t){var r=t.left,n=t.operatorToken,i=t.right;60===n.kind&&(!e.isBinaryExpression(r)||56!==r.operatorToken.kind&&55!==r.operatorToken.kind||pE(r,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(r.operatorToken.kind),e.tokenToString(n.kind)),!e.isBinaryExpression(i)||56!==i.operatorToken.kind&&55!==i.operatorToken.kind||pE(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))}(t),63!==t.operatorToken.kind||203!==t.left.kind&&202!==t.left.kind||(r.skip=!0,a(r,tb(t.left,kb(t.right,i),i,108===t.right.kind))),r)}),(function(e,t,n){if(!t.skip)return r(t,e)}),(function(t,r,o){if(!r.skip){var s=i(r);e.Debug.assertIsDefined(s),n(r,s),a(r,void 0);var c=t.kind;if(55===c||56===c||60===c){if(55===c){var l=e.walkUpParenthesizedExpressions(o.parent);Ix(o.left,s,e.isIfStatement(l)?l.thenStatement:void 0)}Ox(s,o.left)}}}),(function(e,t,n){if(!t.skip)return r(t,e)}),(function(t,r){var o;if(r.skip)o=i(r);else{var s=function(e){return e.typeStack[e.stackIndex]}(r);e.Debug.assertIsDefined(s);var c=i(r);e.Debug.assertIsDefined(c),o=ib(t.left,t.operatorToken,t.right,s,c,t)}return r.skip=!1,n(r,void 0),a(r,void 0),r.stackIndex--,o}),(function(e,t,r){return a(e,t),e}));return function(r,n){var i=t(r,n);return e.Debug.assertIsDefined(i),i};function r(t,r){if(e.isBinaryExpression(r))return r;a(t,kb(r,t.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function i(e){return e.typeStack[e.stackIndex+1]}function a(e,t){e.typeStack[e.stackIndex+1]=t}}(),ne=function(){var r,n=t.getResolvedTypeReferenceDirectives();return n&&(r=new e.Map,n.forEach((function(e,r){if(e&&e.resolvedFileName){var n=t.getSourceFile(e.resolvedFileName);n&&a(n,r)}}))),{getReferencedExportContainer:sS,getReferencedImportDeclaration:cS,getReferencedDeclarationWithCollidingName:uS,isDeclarationWithCollidingName:_S,isValueAliasDeclaration:function(t){var r=e.getParseTreeNode(t);return!r||dS(r)},hasGlobalName:wS,isReferencedAliasDeclaration:function(t,r){var n=e.getParseTreeNode(t);return!n||mS(n,r)},getNodeCheckFlags:function(t){var r=e.getParseTreeNode(t);return r?DS(r):0},isTopLevelValueImportEqualsWithEntityName:pS,isDeclarationVisible:Pa,isImplementationOfOverload:yS,isRequiredInitializedParameter:hS,isOptionalUninitializedParameterProperty:vS,isExpandoFunctionDeclaration:bS,getPropertiesOfContainerFunction:xS,createTypeOfDeclaration:AS,createReturnTypeOfSignatureDeclaration:NS,createTypeOfExpression:FS,createLiteralConstValue:LS,isSymbolAccessible:_a,isEntityNameVisible:ya,getConstantValue:function(t){var r=e.getParseTreeNode(t,ES);return r?TS(r):void 0},collectLinkedAliases:Ia,getReferencedValueDeclaration:IS,getTypeReferenceSerializationKind:kS,isOptionalParameter:Jc,moduleExportsSomeValue:oS,isArgumentsLocalBinding:aS,getExternalModuleFileFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.hasPossibleExternalModuleReference);return r&&BS(r)},getTypeReferenceDirectivesForEntityName:function(e){if(r){var t=790504;(79===e.kind&&Qf(e)||204===e.kind&&!function(e){return e.parent&&226===e.parent.kind&&e.parent.parent&&289===e.parent.parent.kind}(e))&&(t=1160127);var n=Di(e,t,!0);return n&&n!==ke?i(n,t):void 0}},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:OS,isLateBound:function(t){var r=e.getParseTreeNode(t,e.isDeclaration),n=r&&ji(r);return!!(n&&4096&e.getCheckFlags(n))},getJsxFactoryEntity:MS,getJsxFragmentFactoryEntity:RS,getAllAccessorDeclarations:function(t){var r=171===(t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration)).kind?170:171,n=e.getDeclarationOfKind(ji(t),r);return{firstAccessor:n&&n.pos<t.pos?n:t,secondAccessor:n&&n.pos<t.pos?t:n,setAccessor:171===t.kind?t:n,getAccessor:170===t.kind?t:n}},getSymbolOfExternalModuleSpecifier:function(e){return Ti(e,e,void 0)},isBindingCapturedByNode:function(t,r){var n=e.getParseTreeNode(t),i=e.getParseTreeNode(r);return!!n&&!!i&&(e.isVariableDeclaration(i)||e.isBindingElement(i))&&function(t,r){var n=jn(t);return!!n&&e.contains(n.capturedBlockScopeBindings,ji(r))}(n,i)},getDeclarationStatementsForSourceFile:function(t,r,n,i){var a=e.getParseTreeNode(t);e.Debug.assert(a&&300===a.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=ji(t);return o?o.exports?ie.symbolTableToDeclarationStatements(o.exports,t,r,n,i):[]:t.locals?ie.symbolTableToDeclarationStatements(t.locals,t,r,n,i):[]},isImportRequiredByAugmentation:function(t){var r=e.getSourceFileOfNode(t);if(!r.symbol)return!1;var n=BS(t);if(!n)return!1;if(n===r)return!1;for(var i=Li(r.symbol),a=0,o=e.arrayFrom(i.values());a<o.length;a++){var s=o[a];if(s.mergeId){var c=Bi(s);if(c.declarations)for(var l=0,u=c.declarations;l<u.length;l++){var _=u[l];if(e.getSourceFileOfNode(_)===n)return!0}}}return!1}};function i(t,n){if(r&&function(t){if(!t.declarations)return!1;for(var n=t;;){var i=Ji(n);if(!i)break;n=i}if(n.valueDeclaration&&300===n.valueDeclaration.kind&&512&n.flags)return!1;for(var a=0,o=t.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(r.has(c.path))return!0}return!1}(t)){for(var i,a=0,o=t.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&n){var c=e.getSourceFileOfNode(s),l=r.get(c.path);if(!l)return;(i||(i=[])).push(l)}}return i}}function a(n,i){if(!r.has(n.path)){r.set(n.path,i);for(var o=0,s=n.referencedFiles;o<s.length;o++){var c=s[o].fileName,l=e.resolveTripleslashReference(c,n.fileName),u=t.getSourceFile(l);u&&a(u,i)}}}}(),ie=function(){return{typeToTypeNode:function(e,t,n,i){return r(t,n,i,(function(t){return l(e,t)}))},indexInfoToIndexSignatureDeclaration:function(e,t,n,i){return r(t,n,i,(function(t){return f(e,t,void 0)}))},signatureToSignatureDeclaration:function(e,t,n,i,a){return r(n,i,a,(function(r){return g(e,t,r)}))},symbolToEntityName:function(e,t,n,i,a){return r(n,i,a,(function(r){return N(e,r,t,!1)}))},symbolToExpression:function(e,t,n,i,a){return r(n,i,a,(function(r){return F(e,r,t)}))},symbolToTypeParameterDeclarations:function(e,t,n,i){return r(t,n,i,(function(t){return D(e,t)}))},symbolToParameterDeclaration:function(e,t,n,i){return r(t,n,i,(function(t){return h(e,t)}))},typeParameterToDeclaration:function(e,t,n,i){return r(t,n,i,(function(t){return y(e,t)}))},symbolTableToDeclarationStatements:function(t,n,s,c,u){return r(n,s,c,(function(r){return function(t,r,n){var s=X(e.factory.createPropertyDeclaration,167,!0),c=X((function(t,r,n,i,a){return e.factory.createPropertySignature(r,n,i,a)}),166,!1),u=r.enclosingDeclaration,_=[],d=new e.Set,p=[],m=r;(r=a(a({},m),{usedSymbolNames:new e.Set(m.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:a(a({},m.tracker),{trackSymbol:function(e,t,n){if(0===_a(e,t,n,!1).accessibility){var i=x(e,r,n);4&e.flags||w(i[0])}else if(m.tracker&&m.tracker.trackSymbol)return m.tracker.trackSymbol(e,t,n);return!1}})})).tracker=o(r,r.tracker),e.forEachEntry(t,(function(t,r){ne(t,e.unescapeLeadingUnderscores(r))}));var h,v=!n,b=t.get("export=");return b&&t.size>1&&2097152&b.flags&&(t=e.createSymbolTable()).set("export=",b),k(t),h=function(t){var r=e.findIndex(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(r>=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(function(n){return e.nodeHasName(t[n],r.name)}));if(e.length(i)&&e.every(i,(function(e){return S(t[e])}))){for(var a=0,o=i;a<o.length;a++){var s=o[a];t[s]=E(t[s])}return}}return r}));e.length(i)?t[r]=e.factory.updateExportDeclaration(n,n.decorators,n.modifiers,n.isTypeOnly,e.factory.updateNamedExports(n.exportClause,i),n.moduleSpecifier):e.orderedRemoveItemAt(t,r)}return t}(h=function(t){var r=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(r)>1){var n=e.filter(t,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));t=i(i([],n,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var a=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(a)>1){var o=e.group(a,(function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"}));if(o.length!==a.length)for(var s=function(r){r.length>1&&(t=i(i([],e.filter(t,(function(e){return-1===r.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),r[0].moduleSpecifier)],!1))},c=0,l=o;c<l.length;c++)s(l[c])}return t}(h=function(t){var r=e.find(t,e.isExportAssignment),n=e.findIndex(t,e.isModuleDeclaration),a=-1!==n?t[n]:void 0;if(a&&r&&r.isExportEquals&&e.isIdentifier(r.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(r.expression)&&a.body&&e.isModuleBlock(a.body)){var o=e.filter(t,(function(t){return!!(1&e.getEffectiveModifierFlags(t))})),s=a.name,c=a.body;if(e.length(o)&&(a=e.factory.updateModuleDeclaration(a,a.decorators,a.modifiers,a.name,c=e.factory.updateModuleBlock(c,e.factory.createNodeArray(i(i([],a.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(o,(function(t){return r=t,e.isVariableStatement(r)?e.filter(e.map(r.declarationList.declarations,e.getNameOfDeclaration),D):e.filter([e.getNameOfDeclaration(r)],D);var r})),(function(t){return e.factory.createExportSpecifier(void 0,t)}))),void 0)],!1)))),t=i(i(i([],t.slice(0,n),!0),[a],!1),t.slice(n+1),!0)),!e.find(t,(function(t){return t!==a&&e.nodeHasName(t,s)}))){_=[];var l=!e.some(c.statements,(function(t){return e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)}));e.forEach(c.statements,(function(e){P(e,l?1:0)})),t=i(i([],e.filter(t,(function(e){return e!==a&&e!==r})),!0),_,!0)}}return t}(h=_))),u&&(e.isSourceFile(u)&&e.isExternalOrCommonJsModule(u)||e.isModuleDeclaration(u))&&(!e.some(h,e.isExternalModuleIndicator)||!e.hasScopeMarker(h)&&e.some(h,e.needsScopeMarker))&&h.push(e.createEmptyExports(e.factory)),h;function D(e){return!!e&&79===e.kind}function S(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t)&&!e.isExternalModuleAugmentation(t)&&!e.isGlobalScopeAugmentation(t)||e.isInterfaceDeclaration(t)||zD(t)}function E(t){var r=-3&(1|e.getEffectiveModifierFlags(t));return e.factory.updateModifiers(t,r)}function C(t){var r=-2&e.getEffectiveModifierFlags(t);return e.factory.updateModifiers(t,r)}function k(t,r,n){r||p.push(new e.Map),t.forEach((function(e){A(e,!1,!!n)})),r||(p[p.length-1].forEach((function(e){A(e,!0,!!n)})),p.pop())}function A(t,_,p){var f=Bi(t);if(!d.has(O(f))&&(d.add(O(f)),!_||e.length(t.declarations)&&e.some(t.declarations,(function(t){return!!e.findAncestor(t,(function(e){return e===u}))})))){var g=r;r=function(t){var r=a({},t);return r.typeParameterNames&&(r.typeParameterNames=new e.Map(r.typeParameterNames)),r.typeParameterNamesByText&&(r.typeParameterNamesByText=new e.Set(r.typeParameterNamesByText)),r.typeParameterSymbolList&&(r.typeParameterSymbolList=new e.Set(r.typeParameterSymbolList)),r.tracker=o(r,r.tracker),r}(r);var h=function(t,a,o){var _,d,p=e.unescapeLeadingUnderscores(t.escapedName),f="default"===t.escapedName;if(!a||131072&r.flags||!e.isStringANonContextualKeyword(p)||f){var g=f&&!!(-113&t.flags||16&t.flags&&e.length(ec(Co(t))))&&!(2097152&t.flags),m=!g&&!a&&e.isStringANonContextualKeyword(p)&&!f;(g||m)&&(a=!0);var h=(a?0:1)|(f&&!g?512:0),v=1536&t.flags&&7&t.flags&&"export="!==t.escapedName,b=v&&Y(Co(t),t);if((8208&t.flags||b)&&M(Co(t),t,ne(t,p),h),524288&t.flags&&function(t,i,a){var o,s=Wo(t),c=Bn(t).typeParameters,u=e.map(c,(function(e){return y(e,r)})),_=null===(o=t.declarations)||void 0===o?void 0:o.find(e.isJSDocTypeAlias),d=e.getTextOfJSDocComment(_?_.comment||_.parent.comment:void 0),p=r.flags;r.flags|=8388608;var f=r.enclosingDeclaration;r.enclosingDeclaration=_;var g=_&&_.typeExpression&&e.isJSDocTypeExpression(_.typeExpression)&&K(r,_.typeExpression.type,w,n)||l(s,r);P(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,ne(t,i),u,g),d?[{kind:3,text:"*\n * "+d.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),a),r.flags=p,r.enclosingDeclaration=f}(t,p,h),7&t.flags&&"export="!==t.escapedName&&!(4194304&t.flags)&&!(32&t.flags)&&!b)if(o)H(t)&&(m=!1,g=!1);else{var x=Co(t),D=ne(t,p);if(16&t.flags||!Y(x,t)){var S=2&t.flags?lm(t)?2:1:void 0,E=!g&&4&t.flags?te(D,t):D,C=t.declarations&&e.find(t.declarations,(function(t){return e.isVariableDeclaration(t)}));C&&e.isVariableDeclarationList(C.parent)&&1===C.parent.declarations.length&&(C=C.parent.parent);var k=null===(_=t.declarations)||void 0===_?void 0:_.find(e.isPropertyAccessExpression);if(k&&e.isBinaryExpression(k.parent)&&e.isIdentifier(k.parent.right)&&(null===(d=x.symbol)||void 0===d?void 0:d.valueDeclaration)&&e.isSourceFile(x.symbol.valueDeclaration)){var A=D===k.parent.right.escapedText?void 0:k.parent.right;P(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(A,D)])),0),r.tracker.trackSymbol(x.symbol,r.enclosingDeclaration,111551)}else P(e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(E,void 0,j(r,x,t,u,w,n))],S)),C),E!==D?-2&h:h),E===D||a||(P(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(E,D)])),0),m=!1,g=!1)}else M(x,t,D,h)}if(384&t.flags&&function(t,r,n){P(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags($v(t)?2048:0),ne(t,r),e.map(e.filter(ec(Co(t)),(function(e){return!!(8&e.flags)})),(function(t){var r=t.declarations&&t.declarations[0]&&e.isEnumMember(t.declarations[0])?TS(t.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(t.escapedName),void 0===r?void 0:"string"==typeof r?e.factory.createStringLiteral(r):e.factory.createNumericLiteral(r))}))),n)}(t,p,h),32&t.flags&&(4&t.flags&&t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration.parent)&&e.isClassExpression(t.valueDeclaration.parent.right)?W(t,ne(t,p),h):function(t,a,o){var c,u,_=null===(c=t.declarations)||void 0===c?void 0:c.find(e.isClassLike),d=r.enclosingDeclaration;r.enclosingDeclaration=_||d;var p=Oo(t),f=e.map(p,(function(e){return y(e,r)})),g=Go(t),m=Uo(g),h=_&&e.getEffectiveImplementsTypeNodes(_),v=h&&function(t){var i=e.mapDefined(t,(function(t){var i,a=r.enclosingDeclaration;r.enclosingDeclaration=t;var o=t.expression;if(e.isEntityNameExpression(o)){if(e.isIdentifier(o)&&""===e.idText(o))return c(void 0);var s=void 0;if(s=(i=J(o,r,w)).introducesError,o=i.node,s)return c(void 0)}return c(e.factory.createExpressionWithTypeArguments(o,e.map(t.typeArguments,(function(e){return K(r,e,w,n)||l(V_(e),r)}))));function c(e){return r.enclosingDeclaration=a,e}}));if(i.length===t.length)return i}(h)||e.mapDefined(function(t){var r=e.emptyArray;if(t.symbol.declarations)for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n],o=e.getEffectiveImplementsTypeNodes(a);if(o)for(var s=0,c=o;s<c.length;s++){var l=V_(c[s]);l!==Pe&&(r===e.emptyArray?r=[l]:r.push(l))}}return r}(g),ee),b=Co(t),x=!!(null===(u=b.symbol)||void 0===u?void 0:u.valueDeclaration)&&e.isClassLike(b.symbol.valueDeclaration),D=x?Jo(b):Ne,S=i(i([],e.length(m)?[e.factory.createHeritageClause(94,e.map(m,(function(t){return function(t,n,i){var a=Z(t,111551);if(a)return a;var o=te(i+"_base");return P(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(o,void 0,l(n,r))],2)),0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(o),void 0)}(t,D,a)})))]:[],!0),e.length(v)?[e.factory.createHeritageClause(117,v)]:[],!0),E=function(t,r,n){if(!e.length(r))return n;var i=new e.Map;e.forEach(n,(function(e){i.set(e.escapedName,e)}));for(var a=0,o=r;a<o.length;a++)for(var s=0,c=ec(bs(o[a],t.thisType));s<c.length;s++){var l=c[s],u=i.get(l.escapedName);u&&!gp(u,l)&&i.delete(l.escapedName)}return e.arrayFrom(i.values())}(g,m,ec(g)),T=e.filter(E,(function(t){var r=t.valueDeclaration;return!(!r||e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name))})),C=e.some(E,(function(t){var r=t.valueDeclaration;return!!r&&e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name)}))?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,k=e.flatMap(T,(function(e){return s(e,!1,m[0])})),A=e.flatMap(e.filter(ec(b),(function(e){return!(4194304&e.flags||"prototype"===e.escapedName||G(e))})),(function(e){return s(e,!0,D)})),N=!x&&t.valueDeclaration&&e.isInJSFile(t.valueDeclaration)&&!e.some(Tc(b,1))?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:Q(1,b,D,169),F=$(g,m[0]);r.enclosingDeclaration=d,P(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,a,f,S,i(i(i(i(i([],F,!0),A,!0),N,!0),k,!0),C,!0)),t.declarations&&e.filter(t.declarations,(function(t){return e.isClassDeclaration(t)||e.isClassExpression(t)}))[0]),o)}(t,ne(t,p),h)),(1536&t.flags&&(!v||function(t){return e.every(I(t),(function(e){return!(111551&pi(e).flags)}))}(t))||b)&&function(t,n,i){var a=I(t),o=e.arrayToMultiMap(a,(function(e){return e.parent&&e.parent===t?"real":"merged"})),s=o.get("real")||e.emptyArray,c=o.get("merged")||e.emptyArray;if(e.length(s)&&z(s,u=ne(t,n),i,!!(67108880&t.flags)),e.length(c)){var l=e.getSourceFileOfNode(r.enclosingDeclaration),u=ne(t,n),_=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(c,(function(e){return"export="!==e.escapedName})),(function(n){var i,a,o=e.unescapeLeadingUnderscores(n.escapedName),s=ne(n,o),c=n.declarations&&ti(n);if(!l||(c?l===e.getSourceFileOfNode(c):e.some(n.declarations,(function(t){return e.getSourceFileOfNode(t)===l})))){var u=c&&_i(c,!0);w(u||n);var _=u?ne(u,e.unescapeLeadingUnderscores(u.escapedName)):s;return e.factory.createExportSpecifier(o===_?void 0:_,o)}null===(a=null===(i=r.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)||void 0===a||a.call(i,l,t,n)}))))]);P(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(u),_,16),0)}}(t,p,h),64&t.flags&&!(32&t.flags)&&function(t,n,a){var o=Go(t),s=Oo(t),l=e.map(s,(function(e){return y(e,r)})),u=Uo(o),_=e.length(u)?Fu(u):void 0,d=e.flatMap(ec(o),(function(e){return function(e,t){return c(e,!1,t)}(e,_)})),p=Q(0,o,_,172),f=Q(1,o,_,173),g=$(o,_),m=e.length(u)?[e.factory.createHeritageClause(94,e.mapDefined(u,(function(e){return Z(e,111551)})))]:void 0;P(e.factory.createInterfaceDeclaration(void 0,void 0,ne(t,n),l,m,i(i(i(i([],g,!0),f,!0),p,!0),d,!0)),a)}(t,p,h),2097152&t.flags&&W(t,ne(t,p),h),4&t.flags&&"export="===t.escapedName&&H(t),8388608&t.flags&&t.declarations)for(var N=0,F=t.declarations;N<F.length;N++){var O=F[N],L=Ei(O,O.moduleSpecifier);L&&P(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(T(L,r))),0)}g?P(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(ne(t,p))),0):m&&P(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(ne(t,p),p)])),0)}else r.encounteredError=!0}(t,_,p);return r.reportedDiagnostic&&(m.reportedDiagnostic=r.reportedDiagnostic),r=g,h}}function w(t){if(!e.some(t.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(p[p.length-1]),te(e.unescapeLeadingUnderscores(t.escapedName),t);var r=!!(2097152&t.flags)&&!e.some(t.declarations,(function(t){return!!e.findAncestor(t,e.isExportDeclaration)||e.isNamespaceExport(t)||e.isImportEqualsDeclaration(t)&&!e.isExternalModuleReference(t.moduleReference)}));p[r?0:p.length-1].set(O(t),t)}}function P(t,n){if(e.canHaveModifiers(t)){var i=0,a=r.enclosingDeclaration&&(e.isJSDocTypeAlias(r.enclosingDeclaration)?e.getSourceFileOfNode(r.enclosingDeclaration):r.enclosingDeclaration);1&n&&a&&(function(t){return e.isSourceFile(t)&&(e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t))||e.isAmbientModule(t)&&!e.isGlobalScopeAugmentation(t)}(a)||e.isModuleDeclaration(a))&&S(t)&&(i|=1),!v||1&i||a&&8388608&a.flags||!(e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t))||(i|=2),512&n&&(e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionDeclaration(t))&&(i|=512),i&&(t=e.factory.updateModifiers(t,i|e.getEffectiveModifierFlags(t)))}_.push(t)}function I(t){return t.exports?e.filter(e.arrayFrom(t.exports.values()),G):[]}function M(t,i,a,o){for(var s=0,c=Tc(t,0);s<c.length;s++){var l=c[s],u=g(l,254,r,{name:e.factory.createIdentifier(a),privateSymbolVisitor:w,bundledImports:n});P(e.setTextRange(u,B(l)),o)}1536&i.flags&&i.exports&&i.exports.size||z(e.filter(ec(t),G),a,o,!0)}function B(t){if(t.declaration&&t.declaration.parent){if(e.isBinaryExpression(t.declaration.parent)&&5===e.getAssignmentDeclarationKind(t.declaration.parent))return t.declaration.parent;if(e.isVariableDeclaration(t.declaration.parent)&&t.declaration.parent.parent)return t.declaration.parent.parent}return t.declaration}function z(t,n,i,o){if(e.length(t)){var s=e.arrayToMultiMap(t,(function(t){return!e.length(t.declarations)||e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(r.enclosingDeclaration)}))?"local":"remote"})).get("local")||e.emptyArray,c=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(n),e.factory.createModuleBlock([]),16);e.setParent(c,u),c.locals=e.createSymbolTable(t),c.symbol=t[0].parent;var l=_;_=[];var d=v;v=!1;var p=a(a({},r),{enclosingDeclaration:c}),f=r;r=p,k(e.createSymbolTable(s),o,!0),r=f,v=d;var g=_;_=l;var m=e.map(g,(function(t){return e.isExportAssignment(t)&&!t.isExportEquals&&e.isIdentifier(t.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(t.expression,e.factory.createIdentifier("default"))])):t})),y=e.every(m,(function(t){return e.hasSyntacticModifier(t,1)}))?e.map(m,C):m;P(c=e.factory.updateModuleDeclaration(c,c.decorators,c.modifiers,c.name,e.factory.createModuleBlock(y)),i)}}function G(t){return!!(2887656&t.flags)||!(4194304&t.flags||"prototype"===t.escapedName||t.valueDeclaration&&e.isStatic(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent))}function W(t,n,i){var a,o,s,c,l,u=ti(t);if(!u)return e.Debug.fail();var _=Bi(_i(u,!0));if(_){var d=e.unescapeLeadingUnderscores(_.escapedName);"export="===d&&(V.esModuleInterop||V.allowSyntheticDefaultImports)&&(d="default");var p=ne(_,d);switch(w(_),u.kind){case 201:if(252===(null===(o=null===(a=u.parent)||void 0===a?void 0:a.parent)||void 0===o?void 0:o.kind)){var f=T(_.parent||_,r),g=u.propertyName;P(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(g&&e.isIdentifier(g)?e.factory.createIdentifier(e.idText(g)):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(f)),0);break}e.Debug.failBadSyntaxKind((null===(s=u.parent)||void 0===s?void 0:s.parent)||u,"Unhandled binding element grandparent kind in declaration serialization");break;case 292:219===(null===(l=null===(c=u.parent)||void 0===c?void 0:c.parent)||void 0===l?void 0:l.kind)&&q(e.unescapeLeadingUnderscores(t.escapedName),p);break;case 252:if(e.isPropertyAccessExpression(u.initializer)){var m=u.initializer,y=e.factory.createUniqueName(n),h=T(_.parent||_,r);P(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,y,e.factory.createExternalModuleReference(e.factory.createStringLiteral(h))),0),P(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(n),e.factory.createQualifiedName(y,m.name)),i);break}case 263:if("export="===_.escapedName&&e.some(_.declarations,e.isJsonSourceFile)){H(t);break}var v=!(512&_.flags||e.isVariableDeclaration(u));P(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(n),v?N(_,r,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(T(_,r)))),v?i:0);break;case 262:P(e.factory.createNamespaceExportDeclaration(e.idText(u.name)),0);break;case 265:P(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(n),void 0),e.factory.createStringLiteral(T(_.parent||_,r))),0);break;case 266:P(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(n))),e.factory.createStringLiteral(T(_,r))),0);break;case 272:P(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(n)),e.factory.createStringLiteral(T(_,r))),0);break;case 268:P(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(n!==d?e.factory.createIdentifier(d):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(T(_.parent||_,r))),0);break;case 273:var b=u.parent.parent.moduleSpecifier;q(e.unescapeLeadingUnderscores(t.escapedName),b?d:p,b&&e.isStringLiteralLike(b)?e.factory.createStringLiteral(b.text):void 0);break;case 269:H(t);break;case 219:case 204:case 205:"default"===t.escapedName||"export="===t.escapedName?H(t):q(n,p);break;default:return e.Debug.failBadSyntaxKind(u,"Unhandled alias declaration kind in symbol serializer!")}}}function q(t,r,n){P(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(t!==r?r:void 0,t)]),n),0)}function H(t){if(4194304&t.flags)return!1;var i=e.unescapeLeadingUnderscores(t.escapedName),a="export="===i,o=a||"default"===i,s=t.declarations&&ti(t),c=s&&_i(s,!0);if(c&&e.length(c.declarations)&&e.some(c.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(u)}))){var l=s&&(e.isExportAssignment(s)||e.isBinaryExpression(s)?e.getExportAssignmentExpression(s):e.getPropertyAssignmentAliasLikeExpression(s)),d=l&&e.isEntityNameExpression(l)?function(t){switch(t.kind){case 79:return t;case 159:do{t=t.left}while(79!==t.kind);return t;case 204:do{if(e.isModuleExportsAccessExpression(t.expression)&&!e.isPrivateIdentifier(t.name))return t.name;t=t.expression}while(79!==t.kind);return t}}(l):void 0,p=d&&Di(d,67108863,!0,!0,u);(p||c)&&w(p||c);var f=r.tracker.trackSymbol;if(r.tracker.trackSymbol=function(){return!1},o)_.push(e.factory.createExportAssignment(void 0,void 0,a,F(c,r,67108863)));else if(d===l&&d)q(i,e.idText(d));else if(l&&e.isClassExpression(l))q(i,ne(c,e.symbolName(c)));else{var g=te(i,t);P(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(g),N(c,r,67108863,!1)),0),q(i,g)}return r.tracker.trackSymbol=f,!0}g=te(i,t);var m=pf(Co(Bi(t)));return Y(m,t)?M(m,t,g,o?0:1):P(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(g,void 0,j(r,m,t,u,w,n))],2)),c&&4&c.flags&&"export="===c.escapedName?2:i===g?1:0),o?(_.push(e.factory.createExportAssignment(void 0,void 0,a,e.factory.createIdentifier(g))),!0):i!==g&&(q(i,g),!0)}function Y(t,n){var i=e.getSourceFileOfNode(r.enclosingDeclaration);return 48&e.getObjectFlags(t)&&!e.length(Fc(t))&&!Ta(t)&&!(!e.length(e.filter(ec(t),G))&&!e.length(Tc(t,0)))&&!e.length(Tc(t,1))&&!R(n,u)&&!(t.symbol&&e.some(t.symbol.declarations,(function(t){return e.getSourceFileOfNode(t)!==i})))&&!e.some(ec(t),(function(e){return ds(e.escapedName)}))&&!e.some(ec(t),(function(t){return e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)!==i}))}))&&e.every(ec(t),(function(t){return e.isIdentifierText(e.symbolName(t),U)}))}function X(t,i,a){return function(o,s,c){var l,_,d,p,f,m=e.getDeclarationModifierFlagsFromSymbol(o),y=!!(8&m);if(s&&2887656&o.flags)return[];if(4194304&o.flags||c&&Sc(c,o.escapedName)&&zv(Sc(c,o.escapedName))===zv(o)&&(16777216&o.flags)==(16777216&Sc(c,o.escapedName).flags)&&xd(Co(o),ja(c,o.escapedName)))return[];var h=-257&m|(s?32:0),v=L(o,r),b=null===(l=o.declarations)||void 0===l?void 0:l.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(98304&o.flags&&a){var x=[];if(65536&o.flags&&x.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(h),v,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,y?void 0:j(r,Co(o),o,u,w,n))],void 0),(null===(_=o.declarations)||void 0===_?void 0:_.find(e.isSetAccessor))||b)),32768&o.flags){var D=8&m;x.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(h),v,[],D?void 0:j(r,Co(o),o,u,w,n),void 0),(null===(d=o.declarations)||void 0===d?void 0:d.find(e.isGetAccessor))||b))}return x}if(98311&o.flags)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((zv(o)?64:0)|h),v,16777216&o.flags?e.factory.createToken(57):void 0,y?void 0:j(r,Co(o),o,u,w,n),void 0),(null===(p=o.declarations)||void 0===p?void 0:p.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||b);if(8208&o.flags){var S=Tc(Co(o),0);if(8&h)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((zv(o)?64:0)|h),v,16777216&o.flags?e.factory.createToken(57):void 0,void 0,void 0),(null===(f=o.declarations)||void 0===f?void 0:f.find(e.isFunctionLikeDeclaration))||S[0]&&S[0].declaration||o.declarations&&o.declarations[0]);for(var E=[],T=0,C=S;T<C.length;T++){var k=C[T],A=g(k,i,r,{name:v,questionToken:16777216&o.flags?e.factory.createToken(57):void 0,modifiers:h?e.factory.createModifiersFromModifierFlags(h):void 0}),N=k.declaration&&e.isPrototypePropertyAssignment(k.declaration.parent)?k.declaration.parent:k.declaration;E.push(e.setTextRange(A,N))}return E}return e.Debug.fail("Unhandled class member kind! "+(o.__debugFlags||o.flags))}}function Q(t,n,i,a){var o=Tc(n,t);if(1===t){if(!i&&e.every(o,(function(t){return 0===e.length(t.parameters)})))return[];if(i){var s=Tc(i,1);if(!e.length(s)&&e.every(o,(function(t){return 0===e.length(t.parameters)})))return[];if(s.length===o.length){for(var c=!1,l=0;l<s.length;l++)if(!yp(o[l],s[l],!1,!1,!0,Dd)){c=!0;break}if(!c)return[]}}for(var u=0,_=0,d=o;_<d.length;_++){var p=d[_];p.declaration&&(u|=e.getSelectedEffectiveModifierFlags(p.declaration,24))}if(u)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(u),[],void 0),o[0].declaration)]}for(var f=[],m=0,y=o;m<y.length;m++){var h=y[m],v=g(h,a,r);f.push(e.setTextRange(v,h.declaration))}return f}function $(e,t){for(var n=[],i=0,a=Fc(e);i<a.length;i++){var o=a[i];if(t){var s=wc(t,o.keyType);if(s&&xd(o.type,s.type))continue}n.push(f(o,r,void 0))}return n}function Z(t,n){var i,a;if(t.target&&la(t.target.symbol,u,n)?(i=e.map(El(t),(function(e){return l(e,r)})),a=F(t.target.symbol,r,788968)):t.symbol&&la(t.symbol,u,n)&&(a=F(t.symbol,r,788968)),a)return e.factory.createExpressionWithTypeArguments(a,i)}function ee(t){return Z(t,788968)||(t.symbol?e.factory.createExpressionWithTypeArguments(F(t.symbol,r,788968),void 0):void 0)}function te(e,t){var n,i,a=t?O(t):void 0;if(a&&r.remappedSymbolNames.has(a))return r.remappedSymbolNames.get(a);t&&(e=re(t,e));for(var o=0,s=e;null===(n=r.usedSymbolNames)||void 0===n?void 0:n.has(e);)e=s+"_"+ ++o;return null===(i=r.usedSymbolNames)||void 0===i||i.add(e),a&&r.remappedSymbolNames.set(a,e),e}function re(t,n){if("default"===n||"__class"===n||"__function"===n){var i=r.flags;r.flags|=16777216;var a=wa(t,r);r.flags=i,n=a.length>0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),e.isIdentifierText(n,U)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function ne(e,t){var n=O(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=re(e,t),r.remappedSymbolNames.set(n,t),t)}}(t,r,u)}))}};function r(r,n,i,a){var s,c;e.Debug.assert(void 0===r||0==(8&r.flags));var l={enclosingDeclaration:r,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:function(){return!1},moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)},getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=o(l,l.tracker);var u=a(l);return l.truncating&&1&l.flags&&(null===(c=null===(s=l.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),l.encounteredError?void 0:u}function o(e,t){var r=t.trackSymbol;return a(a({},t),{reportCyclicStructureError:n(t.reportCyclicStructureError),reportInaccessibleThisError:n(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:n(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:n(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:n(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:n(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:n(t.reportNonSerializableProperty),trackSymbol:r&&function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(void 0,t);return i&&(e.reportedDiagnostic=!0),i}});function n(t){return t?function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.reportedDiagnostic=!0,t.apply(void 0,r)}:t}}function s(t){return t.truncating?t.truncating:t.truncating=t.approximateLength>(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function l(t,r){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var i=8388608&r.flags;if(r.flags&=-8388609,!t)return 262144&r.flags?(r.approximateLength+=3,e.factory.createKeywordTypeNode(129)):void(r.encounteredError=!0);if(536870912&r.flags||(t=hc(t)),1&t.flags)return r.approximateLength+=3,e.factory.createKeywordTypeNode(t===Oe?137:129);if(2&t.flags)return e.factory.createKeywordTypeNode(153);if(4&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(8&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(145);if(64&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(156);if(16&t.flags&&!t.aliasSymbol)return r.approximateLength+=7,e.factory.createKeywordTypeNode(132);if(1024&t.flags&&!(1048576&t.flags)){var a=Ji(t.symbol),o=C(a,r,788968);if(es(a)===t)return o;var c=e.symbolName(t.symbol);return e.isIdentifierText(c,0)?j(o,e.factory.createTypeReferenceNode(c,void 0)):e.isImportTypeNode(o)?(o.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(o,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c)))):e.isTypeReferenceNode(o)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(o.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return C(t.symbol,r,788968);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&r.flags)),16777216));if(256&t.flags){var _=t.value;return r.approximateLength+=(""+_).length,e.factory.createLiteralTypeNode(_<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-_)):e.factory.createNumericLiteral(_))}if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&r.flags)){if(ca(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,C(t.symbol,r,111551);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.factory.createTypeOperatorNode(152,e.factory.createKeywordTypeNode(149))}if(16384&t.flags)return r.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&t.flags)return r.approximateLength+=9,e.factory.createKeywordTypeNode(151);if(65536&t.flags)return r.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return r.approximateLength+=5,e.factory.createKeywordTypeNode(142);if(4096&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(67108864&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(Zu(t))return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&t.aliasSymbol&&(16384&r.flags||sa(t.aliasSymbol,r.enclosingDeclaration))){var y=p(t.aliasTypeArguments,r);return!Zi(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?C(t.aliasSymbol,r,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var h=e.getObjectFlags(t);if(4&h)return e.Debug.assert(!!(524288&t.flags)),t.node?M(t,B):B(t);if(262144&t.flags||3&h){if(262144&t.flags&&e.contains(r.inferTypeParameters,t))return r.approximateLength+=e.symbolName(t.symbol).length+6,e.factory.createInferTypeNode(m(t,r,void 0));if(4&r.flags&&262144&t.flags&&!sa(t.symbol,r.enclosingDeclaration)){var v=A(t,r);return r.approximateLength+=e.idText(v).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(v)),void 0)}return t.symbol?C(t.symbol,r,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(1048576&t.flags&&t.origin&&(t=t.origin),3145728&t.flags){var b=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?Ye:Xo(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&w_(e[n+o-1])===w_(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}return 65536&r&&t.push(Je),32768&r&&t.push(Me),t||e}(t.types):t.types;if(1===e.length(b))return l(b[0],r);var x=p(b,r,!0);return x&&x.length>0?1048576&t.flags?e.factory.createUnionTypeNode(x):e.factory.createIntersectionTypeNode(x):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&h)return e.Debug.assert(!!(524288&t.flags)),L(t);if(4194304&t.flags){var D=t.type;r.approximateLength+=6;var S=l(D,r);return e.factory.createTypeOperatorNode(139,S)}if(134217728&t.flags){var E=t.texts,T=t.types,k=e.factory.createTemplateHead(E[0]),N=e.factory.createNodeArray(e.map(T,(function(t,n){return e.factory.createTemplateLiteralTypeSpan(l(t,r),(n<T.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(E[n+1]))})));return r.approximateLength+=2,e.factory.createTemplateLiteralType(k,N)}if(268435456&t.flags){var F=l(t.type,r);return C(t.symbol,r,788968,[F])}if(8388608&t.flags){var w=l(t.objectType,r);return S=l(t.indexType,r),r.approximateLength+=2,e.factory.createIndexedAccessTypeNode(w,S)}return 16777216&t.flags?M(t,(function(t){return function(t){var n=l(t.checkType,r),i=r.inferTypeParameters;r.inferTypeParameters=t.root.inferTypeParameters;var a=l(t.extendsType,r);r.inferTypeParameters=i;var o=P(f_(t)),s=P(g_(t));return r.approximateLength+=15,e.factory.createConditionalTypeNode(n,a,o,s)}(t)})):33554432&t.flags?l(t.baseType,r):e.Debug.fail("Should be unreachable.");function P(e){var t,n,i;return 1048576&e.flags?(null===(t=r.visitedTypes)||void 0===t?void 0:t.has(mu(e)))?(131072&r.flags||(r.encounteredError=!0,null===(i=null===(n=r.tracker)||void 0===n?void 0:n.reportCyclicStructureError)||void 0===i||i.call(n)),u(r)):M(e,(function(e){return l(e,r)})):l(e,r)}function L(t){var n,i=t.id,a=t.symbol;if(a){var o=Ta(t)?788968:111551;if(Zh(a.valueDeclaration))return C(a,r,o);if(32&a.flags&&!Do(a)&&!(a.valueDeclaration&&224===a.valueDeclaration.kind&&2048&r.flags)||896&a.flags||function(){var t,n=!!(8192&a.flags)&&e.some(a.declarations,(function(t){return e.isStatic(t)})),o=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,(function(e){return 300===e.parent.kind||260===e.parent.kind})));if(n||o)return(!!(4096&r.flags)||(null===(t=r.visitedTypes)||void 0===t?void 0:t.has(i)))&&(!(8&r.flags)||ca(a,r.enclosingDeclaration))}())return C(a,r,o);if(null===(n=r.visitedTypes)||void 0===n?void 0:n.has(i)){var s=function(t){if(t.symbol&&2048&t.symbol.flags&&t.symbol.declarations){var r=e.walkUpParenthesizedTypes(t.symbol.declarations[0].parent);if(257===r.kind)return ji(r)}}(t);return s?C(s,r,788968):u(r)}return M(t,R)}return R(t)}function M(t,n){var i,a,o=t.id,s=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags,c=4&e.getObjectFlags(t)&&t.node?"N"+I(t.node):16777216&t.flags?"N"+I(t.root.node):t.symbol?(s?"+":"")+O(t.symbol):void 0;r.visitedTypes||(r.visitedTypes=new e.Set),c&&!r.symbolDepth&&(r.symbolDepth=new e.Map);var l=r.enclosingDeclaration&&jn(r.enclosingDeclaration),_=mu(t)+"|"+r.flags;l&&(l.serializedTypes||(l.serializedTypes=new e.Map));var d,p=null===(i=null==l?void 0:l.serializedTypes)||void 0===i?void 0:i.get(_);if(p)return p.truncating&&(r.truncating=!0),r.approximateLength+=p.addedLength,function t(r){return e.nodeIsSynthesized(r)||e.getParseTreeNode(r)!==r?e.setTextRange(e.factory.cloneNode(e.visitEachChild(r,t,e.nullTransformationContext)),r):r}(p);if(c){if((d=r.symbolDepth.get(c)||0)>10)return u(r);r.symbolDepth.set(c,d+1)}r.visitedTypes.add(o);var f=r.approximateLength,g=n(t),m=r.approximateLength-f;return r.reportedDiagnostic||r.encounteredError||(r.truncating&&(g.truncating=!0),g.addedLength=m,null===(a=null==l?void 0:l.serializedTypes)||void 0===a||a.set(_,g)),r.visitedTypes.delete(o),c&&r.symbolDepth.set(c,d),g}function R(t){if(Ys(t)||t.containsError)return function(t){e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;n=zs(t)?e.factory.createTypeOperatorNode(139,l(Gs(t),r)):l(Js(t),r);var o=m(js(t),r,n),s=t.declaration.nameType?l(Vs(t),r):void 0,c=l(tf(Us(t),!!(4&Ws(t))),r),u=e.factory.createMappedTypeNode(i,o,s,a,c);return r.approximateLength+=10,e.setEmitFlags(u,1)}(t);var n=Xs(t);if(!n.properties.length&&!n.indexInfos.length){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length)return g(n.callSignatures[0],177,r);if(1===n.constructSignatures.length&&!n.callSignatures.length)return g(n.constructSignatures[0],178,r)}var i=e.filter(n.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(i)){var a=e.map(i,cl);return n.callSignatures.length+(n.constructSignatures.length-i.length)+n.indexInfos.length+(2048&r.flags?e.countWhere(n.properties,(function(e){return!(4194304&e.flags)})):e.length(n.properties))&&a.push(function(t){if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(function(e){return!(4&e.flags)}));if(t.constructSignatures===r)return t;var n=ra(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(n)),l(Fu(a),r)}var o=r.flags;r.flags|=4194304;var c=function(t){if(s(r))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var n=[],i=0,a=t.callSignatures;i<a.length;i++){var o=a[i];n.push(g(o,172,r))}for(var c=0,l=t.constructSignatures;c<l.length;c++)4&(o=l[c]).flags||n.push(g(o,173,r));for(var _=0,p=t.indexInfos;_<p.length;_++){var m=p[_];n.push(f(m,r,1024&t.objectFlags?u(r):void 0))}var y=t.properties;if(!y)return n;for(var h=0,v=0,b=y;v<b.length;v++){var x=b[v];if(h++,2048&r.flags){if(4194304&x.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(x)&&r.tracker.reportPrivateInBaseOfClassExpression&&r.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(x.escapedName))}if(s(r)&&h+2<y.length-1){n.push(e.factory.createPropertySignature(void 0,"... "+(y.length-h)+" more ...",void 0,void 0)),d(y[y.length-1],r,n);break}d(x,r,n)}return n.length?n:void 0}(n);r.flags=o;var _=e.factory.createTypeLiteralNode(c);return r.approximateLength+=2,e.setEmitFlags(_,1024&r.flags?0:1),_}function B(t){var n=El(t);if(t.target===Ft||t.target===wt){if(2&r.flags){var i=l(n[0],r);return e.factory.createTypeReferenceNode(t.target===Ft?"Array":"ReadonlyArray",[i])}var a=l(n[0],r),o=e.factory.createArrayTypeNode(a);return t.target===Ft?o:e.factory.createTypeOperatorNode(143,o)}if(!(8&t.target.objectFlags)){if(2048&r.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!ca(t.symbol,r.enclosingDeclaration))return L(t);var s=t.target.outerTypeParameters,c=void(D=0);if(s)for(var u=s.length;D<u;){var _=D,d=yl(s[D]);do{D++}while(D<u&&yl(s[D])===d);if(!e.rangeEquals(s,n,_,D)){var f=p(n.slice(_,D),r),g=r.flags;r.flags|=16;var m=C(d,r,788968,f);r.flags=g,c=c?j(c,m):m}}var y=void 0;if(n.length>0){var h=(t.target.typeParameters||e.emptyArray).length;y=p(n.slice(D,h),r)}S=r.flags,r.flags|=16;var v=C(t.symbol,r,788968,y);return r.flags=S,c?j(c,v):v}if(n=e.sameMap(n,(function(e,r){return tf(e,!!(2&t.target.elementFlags[r]))})),n.length>0){var b=Tl(t),x=p(n.slice(0,b),r);if(x){if(t.target.labeledElementDeclarations)for(var D=0;D<x.length;D++){var S=t.target.elementFlags[D];x[D]=e.factory.createNamedTupleMember(12&S?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(dv(t.target.labeledElementDeclarations[D]))),2&S?e.factory.createToken(57):void 0,4&S?e.factory.createArrayTypeNode(x[D]):x[D])}else for(D=0;D<Math.min(b,x.length);D++){S=t.target.elementFlags[D];x[D]=12&S?e.factory.createRestTypeNode(4&S?e.factory.createArrayTypeNode(x[D]):x[D]):2&S?e.factory.createOptionalTypeNode(x[D]):x[D]}var E=e.setEmitFlags(e.factory.createTupleTypeNode(x),1);return t.target.readonly?e.factory.createTypeOperatorNode(143,E):E}}if(r.encounteredError||524288&r.flags)return E=e.setEmitFlags(e.factory.createTupleTypeNode([]),1),t.target.readonly?e.factory.createTypeOperatorNode(143,E):E;r.encounteredError=!0}function j(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments,i=t.qualifier;i&&(i=e.isIdentifier(i)?e.factory.updateIdentifier(i,n):e.factory.updateQualifiedName(i,i.left,e.factory.updateIdentifier(i.right,n))),n=r.typeArguments;for(var a=0,o=J(r);a<o.length;a++){var s=o[a];i=i?e.factory.createQualifiedName(i,s):s}return e.factory.updateImportTypeNode(t,t.argument,i,n,t.isTypeOf)}n=t.typeArguments;var c=t.typeName;c=e.isIdentifier(c)?e.factory.updateIdentifier(c,n):e.factory.updateQualifiedName(c,c.left,e.factory.updateIdentifier(c.right,n)),n=r.typeArguments;for(var l=0,u=J(r);l<u.length;l++)s=u[l],c=e.factory.createQualifiedName(c,s);return e.factory.updateTypeReferenceNode(t,c,n)}function J(t){for(var r=t.typeName,n=[];!e.isIdentifier(r);)n.unshift(r.right),r=r.left;return n.unshift(r),n}}function u(t){return t.approximateLength+=3,1&t.flags?e.factory.createKeywordTypeNode(129):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function _(t,r){var n;return!!(8192&e.getCheckFlags(t))&&(e.contains(r.reverseMappedStack,t)||(null===(n=r.reverseMappedStack)||void 0===n?void 0:n[0])&&!(16&e.getObjectFlags(e.last(r.reverseMappedStack).propertyType)))}function d(t,r,n){var i,a,o=!!(8192&e.getCheckFlags(t)),s=_(t,r)?Ne:ko(t),c=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,r.tracker.trackSymbol&&4096&e.getCheckFlags(t)&&ds(t.escapedName))if(t.declarations){var l=e.first(t.declarations);if(ps(l))if(e.isBinaryExpression(l)){var d=e.getNameOfDeclaration(l);d&&e.isElementAccessExpression(d)&&e.isPropertyAccessEntityNameExpression(d.argumentExpression)&&v(d.argumentExpression,c,r)}else v(l.name.expression,c,r)}else(null===(i=r.tracker)||void 0===i?void 0:i.reportNonSerializableProperty)&&r.tracker.reportNonSerializableProperty(ha(t));r.enclosingDeclaration=t.valueDeclaration||(null===(a=t.declarations)||void 0===a?void 0:a[0])||c;var p=L(t,r);r.enclosingDeclaration=c,r.approximateLength+=e.symbolName(t).length+1;var f=16777216&t.flags?e.factory.createToken(57):void 0;if(8208&t.flags&&!Qs(s).length&&!zv(t))for(var m=0,y=Tc(Og(s,(function(e){return!(32768&e.flags)})),0);m<y.length;m++){var h=g(y[m],166,r,{name:p,questionToken:f});n.push(S(h))}else{var b=void 0;_(t,r)?b=u(r):(o&&(r.reverseMappedStack||(r.reverseMappedStack=[]),r.reverseMappedStack.push(t)),b=s?j(r,s,t,c):e.factory.createKeywordTypeNode(129),o&&r.reverseMappedStack.pop());var x=zv(t)?[e.factory.createToken(143)]:void 0;x&&(r.approximateLength+=9);var D=e.factory.createPropertySignature(x,p,f,b);n.push(S(D))}function S(r){var n;if(e.some(t.declarations,(function(e){return 342===e.kind}))){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(e){return 342===e.kind})),a=e.getTextOfJSDocComment(i.comment);a&&e.setSyntheticLeadingComments(r,[{kind:3,text:"*\n * "+a.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else t.valueDeclaration&&e.setCommentRange(r,t.valueDeclaration);return r}}function p(t,r,n){if(e.some(t)){if(s(r)){if(!n)return[e.factory.createTypeReferenceNode("...",void 0)];if(t.length>2)return[l(t[0],r),e.factory.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),l(t[t.length-1],r)]}for(var i=64&r.flags?void 0:e.createUnderscoreEscapedMultiMap(),a=[],o=0,c=0,u=t;c<u.length;c++){var _=u[c];if(o++,s(r)&&o+2<t.length-1){a.push(e.factory.createTypeReferenceNode("... "+(t.length-o)+" more ...",void 0));var d=l(t[t.length-1],r);d&&a.push(d);break}r.approximateLength+=2;var p=l(_,r);p&&(a.push(p),i&&e.isIdentifierTypeReference(p)&&i.add(p.typeName.escapedText,[_,a.length-1]))}if(i){var f=r.flags;r.flags|=64,i.forEach((function(t){if(!e.arrayIsHomogeneous(t,(function(e,t){return r=e[0],n=t[0],r===n||!!r.symbol&&r.symbol===n.symbol||!!r.aliasSymbol&&r.aliasSymbol===n.aliasSymbol;var r,n})))for(var n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],c=o[1];a[c]=l(s,r)}})),r.flags=f}return a}}function f(t,r,n){var i=e.getNameFromIndexInfo(t)||"x",a=l(t.keyType,r),o=e.factory.createParameterDeclaration(void 0,void 0,void 0,i,void 0,a,void 0);return n||(n=l(t.type||Ne,r)),t.type||2097152&r.flags||(r.encounteredError=!0),r.approximateLength+=i.length+4,e.factory.createIndexSignature(void 0,t.isReadonly?[e.factory.createToken(143)]:void 0,[o],n)}function g(t,r,n,i){var a,o,s,c,u,_,d=256&n.flags;d&&(n.flags&=-257),n.approximateLength+=3,32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?_=t.target.typeParameters.map((function(e){return l(dd(e,t.mapper),n)})):u=t.typeParameters&&t.typeParameters.map((function(e){return y(e,n)}));var p,f=Cs(t,!0)[0],g=(e.some(f,(function(t){return t!==f[f.length-1]&&!!(32768&e.getCheckFlags(t))}))?t.parameters:f).map((function(e){return h(e,n,169===r,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}));if(t.thisParameter){var m=h(t.thisParameter,n);g.unshift(m)}var v=Qc(t);if(v){var b=2===v.kind||3===v.kind?e.factory.createToken(128):void 0,x=1===v.kind||3===v.kind?e.setEmitFlags(e.factory.createIdentifier(v.parameterName),16777216):e.factory.createThisTypeNode(),D=v.type&&l(v.type,n);p=e.factory.createTypePredicateNode(b,x,D)}else{var S=Zc(t);!S||d&&Ja(S)?d||(p=e.factory.createKeywordTypeNode(129)):p=function(t,r,n,i,a){if(r!==Pe&&t.enclosingDeclaration){var o=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration);if(e.findAncestor(o,(function(e){return e===t.enclosingDeclaration}))&&o){var s=V_(o);if((262144&s.flags&&s.isThisType?dd(s,n.mapper):s)===r&&B(o,r)){var c=K(t,o,i,a);if(c)return c}}}return l(r,t)}(n,S,t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}var E=null==i?void 0:i.modifiers;if(178===r&&4&t.flags){var T=e.modifiersToFlags(E);E=e.factory.createModifiersFromModifierFlags(128|T)}var C=172===r?e.factory.createCallSignature(u,g,p):173===r?e.factory.createConstructSignature(u,g,p):166===r?e.factory.createMethodSignature(E,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:e.factory.createIdentifier(""),null==i?void 0:i.questionToken,u,g,p):167===r?e.factory.createMethodDeclaration(void 0,E,void 0,null!==(o=null==i?void 0:i.name)&&void 0!==o?o:e.factory.createIdentifier(""),void 0,u,g,p,void 0):169===r?e.factory.createConstructorDeclaration(void 0,E,g,void 0):170===r?e.factory.createGetAccessorDeclaration(void 0,E,null!==(s=null==i?void 0:i.name)&&void 0!==s?s:e.factory.createIdentifier(""),g,p,void 0):171===r?e.factory.createSetAccessorDeclaration(void 0,E,null!==(c=null==i?void 0:i.name)&&void 0!==c?c:e.factory.createIdentifier(""),g,void 0):174===r?e.factory.createIndexSignature(void 0,E,g,p):312===r?e.factory.createJSDocFunctionType(g,p):177===r?e.factory.createFunctionTypeNode(u,g,null!=p?p:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):178===r?e.factory.createConstructorTypeNode(E,u,g,null!=p?p:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):254===r?e.factory.createFunctionDeclaration(void 0,E,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),u,g,p,void 0):211===r?e.factory.createFunctionExpression(E,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),u,g,p,e.factory.createBlock([])):212===r?e.factory.createArrowFunction(E,u,g,p,void 0,e.factory.createBlock([])):e.Debug.assertNever(r);return _&&(C.typeArguments=e.factory.createNodeArray(_)),C}function m(t,r,n){var i=r.flags;r.flags&=-513;var a=A(t,r),o=dc(t),s=o&&l(o,r);return r.flags=i,e.factory.createTypeParameterDeclaration(a,n,s)}function y(e,t,r){return void 0===r&&(r=rc(e)),m(e,t,r&&l(r,t))}function h(t,r,n,i,a){var o=e.getDeclarationOfKind(t,162);o||e.isTransientSymbol(t)||(o=e.getDeclarationOfKind(t,335));var s,c=Co(t);o&&hS(o)&&(c=Yp(c)),1073741824&r.flags&&o&&!e.isJSDocParameterTag(o)&&(s=o,W&&Jc(s)&&!s.initializer)&&(c=fg(c,524288));var l=j(r,c,t,r.enclosingDeclaration,i,a),u=!(8192&r.flags)&&n&&o&&o.modifiers?o.modifiers.map(e.factory.cloneNode):void 0,_=o&&e.isRestParameter(o)||32768&e.getCheckFlags(t)?e.factory.createToken(25):void 0,d=o&&o.name?79===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name),16777216):159===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name.right),16777216):function t(n){r.tracker.trackSymbol&&e.isComputedPropertyName(n)&&_s(n)&&v(n.expression,r.enclosingDeclaration,r);var i=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t);return e.isBindingElement(i)&&(i=e.factory.updateBindingElement(i,i.dotDotDotToken,i.propertyName,i.name,void 0)),e.nodeIsSynthesized(i)||(i=e.factory.cloneNode(i)),e.setEmitFlags(i,16777217)}(o.name):e.symbolName(t),p=o&&Jc(o)||16384&e.getCheckFlags(t)?e.factory.createToken(57):void 0,f=e.factory.createParameterDeclaration(void 0,u,_,d,p,l,void 0);return r.approximateLength+=e.symbolName(t).length+3,f}function v(t,r,n){if(n.tracker.trackSymbol){var i=e.getFirstIdentifier(t),a=zn(i,i.escapedText,1160127,void 0,void 0,!0);a&&n.tracker.trackSymbol(a,r,111551)}}function b(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),x(e,t,r,n)}function x(t,r,n,i){var a;return 262144&t.flags||!(r.enclosingDeclaration||64&r.flags)||134217728&r.flags?a=[t]:(a=e.Debug.checkDefined(function t(n,a,o){var s,c=aa(n,r.enclosingDeclaration,a,!!(128&r.flags));if(!c||oa(c[0],r.enclosingDeclaration,1===c.length?a:ia(a))){var l=Vi(c?c[0]:n,r.enclosingDeclaration,a);if(e.length(l)){s=l.map((function(t){return e.some(t.declarations,ga)?T(t,r):void 0}));var u=l.map((function(e,t){return t}));u.sort((function(t,r){var n=s[t],i=s[r];if(n&&i){var a=e.pathIsRelative(i);return e.pathIsRelative(n)===a?e.moduleSpecifiers.countPathComponents(n)-e.moduleSpecifiers.countPathComponents(i):a?-1:1}return 0}));for(var _=u.map((function(e){return l[e]})),d=0,p=_;d<p.length;d++){var f=p[d],g=t(f,ia(a),!1);if(g){if(f.exports&&f.exports.get("export=")&&zi(f.exports.get("export="),n)){c=g;break}c=g.concat(c||[Ki(f,n)||n]);break}}}}if(c)return c;if(o||!(6144&n.flags)){if(!o&&!i&&e.forEach(n.declarations,ga))return;return[n]}}(t,n,!0)),e.Debug.assert(a&&a.length>0)),a}function D(t,r){var n;return 524384&hD(t).flags&&(n=e.factory.createNodeArray(e.map(Oo(t),(function(e){return y(e,r)})))),n}function S(t,r,n){var i;e.Debug.assert(t&&0<=r&&r<t.length);var a=t[r],o=O(a);if(!(null===(i=n.typeParameterSymbolList)||void 0===i?void 0:i.has(o))){var s;if((n.typeParameterSymbolList||(n.typeParameterSymbolList=new e.Set)).add(o),512&n.flags&&r<t.length-1){var c=a,l=t[r+1];if(1&e.getCheckFlags(l)){var u=function(t){return e.concatenate(Io(t),Oo(t))}(2097152&c.flags?fi(c):c);s=p(e.map(u,(function(e){return H_(e,l.mapper)})),n)}else s=D(a,n)}return s}}function E(t){return e.isIndexedAccessTypeNode(t.objectType)?E(t.objectType):t}function T(t,r){var n,i=e.getDeclarationOfKind(t,300);if(!i){var o=e.firstDefined(t.declarations,(function(e){return Ui(e,t)}));o&&(i=e.getDeclarationOfKind(o,300))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i){if(r.tracker.trackReferencedAmbientModule){var s=e.filter(t.declarations,e.isAmbientModule);if(e.length(s))for(var l=0,u=s;l<u.length;l++){var _=u[l];r.tracker.trackReferencedAmbientModule(_,t)}}if(c.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!r.enclosingDeclaration||!r.tracker.moduleResolverHost)return c.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(t)).fileName;var d=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),p=Bn(t),f=p.specifierCache&&p.specifierCache.get(d.path);if(!f){var g=!!e.outFile(V),m=r.tracker.moduleResolverHost,y=g?a(a({},V),{baseUrl:m.getCommonSourceDirectory()}):V;f=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,_e,y,d,m,{importModuleSpecifierPreference:g?"non-relative":"project-relative",importModuleSpecifierEnding:g?"minimal":void 0})),null!==(n=p.specifierCache)&&void 0!==n||(p.specifierCache=new e.Map),p.specifierCache.set(d.path,f)}return f}function C(t,r,n,i){var a=b(t,r,n,!(16384&r.flags)),o=111551===n;if(e.some(a[0].declarations,ga)){var s=a.length>1?m(a,a.length-1,1):void 0,c=i||S(a,0,r),l=T(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs&&l.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(l));var u=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(l));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=l.length+10,!s||e.isEntityName(s))return s&&((f=e.isIdentifier(s)?s:s.right).typeArguments=void 0),e.factory.createImportTypeNode(u,s,c,o);var _=E(s),d=_.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(u,d,c,o),_.indexType)}var p=m(a,a.length-1,0);if(e.isIndexedAccessTypeNode(p))return p;if(o)return e.factory.createTypeQueryNode(p);var f,g=(f=e.isIdentifier(p)?p:p.right).typeArguments;return f.typeArguments=void 0,e.factory.createTypeReferenceNode(p,g);function m(t,n,a){var o,s=n===t.length-1?i:S(t,n,r),c=t[n],l=t[n-1];if(0===n)r.flags|=16777216,o=wa(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(l&&Oi(l)){var u=Oi(l);e.forEachEntry(u,(function(t,r){if(zi(t,c)&&!ds(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(o||(o=wa(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&l&&hs(l)&&hs(l).get(c.escapedName)&&zi(hs(l).get(c.escapedName),c)){var _=m(t,n-1,a);return e.isIndexedAccessTypeNode(_)?e.factory.createIndexedAccessTypeNode(_,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(_,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var d=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);return d.symbol=c,n>a?(_=m(t,n-1,a),e.isEntityName(_)?e.factory.createQualifiedName(_,d):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):d}}function k(e,t,r){var n=zn(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!n||262144&n.flags&&n===r.symbol)}function A(t,r){var n,i;if(4&r.flags&&r.typeParameterNames){var a=r.typeParameterNames.get(mu(t));if(a)return a}var o=N(t.symbol,r,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var s=o.escapedText,c=(null===(n=r.typeParameterNamesByTextNextNameCount)||void 0===n?void 0:n.get(s))||0,l=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||k(l,r,t);)l=s+"_"+ ++c;l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(mu(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function N(t,r,n,i){var a=b(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=S(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=wa(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function F(t,r,n){var i=b(t,r,n);return function t(n,i){var a=S(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=wa(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,ga))return e.factory.createStringLiteral(T(o,r));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),U):e.isIdentifierStart(c,U);if(0===i||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return u.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),u):u}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var _=void 0;return e.isSingleOrDoubleQuote(c)?_=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,(function(e){return e.substring(1)})),39===c):""+ +s===s&&(_=e.factory.createNumericLiteral(+s)),_||((_=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),_)}(i,i.length-1)}function w(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function P(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function L(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,P),i=function(t,r,n){var i=Bn(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,V.target)||ty(a)?ty(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):M(a):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(F(i.symbol,r,111551))}}(t,r,n);return i||M(e.unescapeLeadingUnderscores(t.escapedName),!!e.length(t.declarations)&&e.every(t.declarations,w),n)}function M(t,r,n){return e.isIdentifierText(t,V.target)?e.factory.createIdentifier(t):!r&&ty(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)}function R(t,r){return t.declarations&&e.find(t.declarations,(function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(function(e){return e===r})))}))}function B(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=Kc(r.target.typeParameters)}function j(t,r,n,i,a,o){if(r!==Pe&&i){var s=R(n,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(V_(c)===r&&B(c,r)){var u=K(t,c,a,o);if(u)return u}}}var _=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(function(r){return e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration)})))&&(t.flags|=1048576);var d=l(r,t);return t.flags=_,d}function J(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=Di(s,67108863,!0,!0);if(c&&(0!==_a(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var l=262144&c.flags?A(es(c),r):e.factory.cloneNode(t);return l.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(l,t),16777216)}}return{introducesError:o,node:t}}function K(r,i,a,o){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(i),u=e.visitNode(i,(function n(i){if(e.isJSDocAllType(i)||314===i.kind)return e.factory.createKeywordTypeNode(129);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(153);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,n),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,n),e.factory.createKeywordTypeNode(151)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,n);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,n));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,o=ja(V_(i),a.escapedText),s=o&&t.typeExpression&&V_(t.typeExpression.type)!==o?l(o,r):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,s||t.typeExpression&&e.visitNode(t.typeExpression.type,n)||e.factory.createKeywordTypeNode(129))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(129),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],n))],e.visitNode(i.typeArguments[1],n))]);var u;if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(i.modifiers,e.visitNodes(i.typeParameters,n),e.mapDefined(i.parameters,(function(t,r){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(u=t.type):e.factory.createParameterDeclaration(void 0,void 0,g(t),m(t,r),t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(u||i.type,n)||e.factory.createKeywordTypeNode(129)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,n),e.map(i.parameters,(function(t,r){return e.factory.createParameterDeclaration(void 0,void 0,g(t),m(t,r),t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(i.type,n)||e.factory.createKeywordTypeNode(129));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!B(i,V_(i))||Bl(i)||ke===Fl(Nl(i),788968,!0)))return e.setOriginalNode(l(V_(i),r),i);if(e.isLiteralImportTypeNode(i)){var _=jn(i).resolvedSymbol;return!e.isInJSDoc(i)||!_||(i.isTypeOf||788968&_.flags)&&e.length(i.typeArguments)>=Kc(Oo(_))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(n,i){if(o){if(r.tracker&&r.tracker.moduleResolverHost){var a=BS(n);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return r.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return r.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(r.tracker&&r.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=Ti(i,i,void 0);l&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i}(i,i.argument.literal)),i.qualifier,e.visitNodes(i.typeArguments,n,e.isTypeNode),i.isTypeOf):e.setOriginalNode(l(V_(i),r),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var d=J(i,r,a),p=d.introducesError,f=d.node;if(s=s||p,f!==i)return f}return c&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(c,i.pos).line===e.getLineAndCharacterOfPosition(c,i.end).line&&e.setEmitFlags(i,1),e.visitEachChild(i,n,e.nullTransformationContext);function g(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function m(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":g(t)?"args":"arg"+r}}));if(!s)return u===i?e.setTextRange(e.factory.cloneNode(i),i):u}}(),ae=e.createSymbolTable(),oe=Nn(4,"undefined");oe.declarations=[];var se=Nn(1536,"globalThis",8);se.exports=ae,se.declarations=[],ae.set(se.escapedName,se);var ce,le=Nn(4,"arguments"),ue=Nn(4,"require"),_e={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+v},getTypeCount:function(){return h},getInstantiationCount:function(){return x},getRelationCacheSizes:function(){return{assignable:gn.size,identity:yn.size,subtype:pn.size,strictSubtype:fn.size}},isUndefinedSymbol:function(e){return e===oe},isArgumentsSymbol:function(e){return e===le},isUnknownSymbol:function(e){return e===ke},getMergedSymbol:Bi,getDiagnostics:UD,getGlobalDiagnostics:function(){return KD(),ln.getGlobalDiagnostics()},getRecursionIdentity:fp,getUnmatchedProperties:If,getTypeOfSymbolAtLocation:function(t,r){var n=e.getParseTreeNode(r);return n?function(t,r){if(t=t.exportSymbol||t,(79===r.kind||80===r.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var n=Eb(r);if(Gi(jn(r).resolvedSymbol)===t)return n}return e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&yo(r.parent)?xo(r.parent.symbol,!0):ko(t)}(t,n):Pe},getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=Vn(n.locals,r,111551),o=Vn(hs(i.symbol),r,111551);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:es,getPropertiesOfType:ec,getPropertyOfType:function(t,r){return Sc(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=Uy(e.escapeLeadingUnderscores(r),i);return a?Ky(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return ja(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:function(e,t){return wc(e,0===t?Ue:Ke)},getIndexInfosOfType:Fc,getSignaturesOfType:Tc,getIndexTypeOfType:function(e,t){return Pc(e,0===t?Ue:Ke)},getBaseTypes:Uo,getBaseTypeOfLiteralType:Ip,getWidenedType:pf,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?V_(r):Pe},getParameterType:yv,getParameterIdentifierNameAtPosition:function(e,t){var r=e.parameters.length-(j(e)?1:0);if(t<r){var n=e.parameters[t];return fv(n)?[n.escapedName,!1]:void 0}var i=e.parameters[r]||ke;if(fv(i)){var a=Co(i);if(Bp(a)){var o=a.target.labeledElementDeclarations,s=null==o?void 0:o[t-r],c=!!(null==s?void 0:s.dotDotDotToken);return s?[dv(s),c]:void 0}return t===r?[i.escapedName,!0]:void 0}},getPromisedTypeOfPromise:qb,getAwaitedType:function(e){return Yb(e)},getReturnTypeOfSignature:Zc,isNullableType:Py,getNullableType:Hp,getNonNullableType:Xp,getNonOptionalType:$p,getTypeArguments:El,typeToTypeNode:ie.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ie.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ie.signatureToSignatureDeclaration,symbolToEntityName:ie.symbolToEntityName,symbolToExpression:ie.symbolToExpression,symbolToTypeParameterDeclarations:ie.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ie.symbolToParameterDeclaration,typeParameterToDeclaration:ie.typeParameterToDeclaration,getSymbolsInScope:function(t,r){var n=e.getParseTreeNode(t);return n?function(t,r){if(16777216&t.flags)return[];var n=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!Jn(t)&&o(t.locals,r),t.kind){case 300:if(!e.isExternalModule(t))break;case 259:s(ji(t).exports,2623475&r);break;case 258:o(ji(t).exports,8&r);break;case 224:t.name&&a(t.symbol,r);case 255:case 256:i||o(hs(ji(t)),788968&r);break;case 211:t.name&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(le,r),i=e.isStatic(t),t=t.parent}o(ae,r)}(),n.delete("this"),Rc(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach((function(e){a(e,t)}))}function s(t,r){r&&t.forEach((function(t){e.getDeclarationOfKind(t,273)||e.getDeclarationOfKind(t,272)||a(t,r)}))}}(n,r):[]},getSymbolAtLocation:function(t){var r=e.getParseTreeNode(t);return r?QD(r,!0):void 0},getIndexInfosAtLocation:function(t){var r=e.getParseTreeNode(t);return r?function(t){if(e.isIdentifier(t)&&e.isPropertyAccessExpression(t.parent)&&t.parent.name===t){var r=Lu(t),n=Eb(t.parent.expression),i=1048576&n.flags?n.types:[n];return e.flatMap(i,(function(t){return e.filter(Fc(t),(function(e){return Ac(r,e.keyType)}))}))}}(r):void 0},getShorthandAssignmentValueSymbol:function(t){var r=e.getParseTreeNode(t);return r?function(e){if(e&&292===e.kind)return Di(e.name,2208703)}(r):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(t){return e.isExportSpecifier(t)?t.parent.parent.moduleSpecifier?si(t.parent.parent,t):Di(t.propertyName||t.name,2998271):Di(t,2998271)}(r):void 0},getExportSymbolOfSymbol:function(e){return Bi(e.exportSymbol||e)},getTypeAtLocation:function(t){var r=e.getParseTreeNode(t);return r?$D(r):Pe},getTypeOfAssignmentPattern:function(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&ZD(r)||Pe},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=ZD(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&Sc(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return va(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return ba(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return ha(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return Ca(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return va(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return ba(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return ha(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return Ca(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:nS,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(Bn(t).containingType.types,(function(e){return Sc(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=Bn(r).target;)t=r;return t}(t))}}(r);return n?e.flatMap(n,t):[r]},getSymbolOfExpando:tv,getContextualType:function(t,r){var n=e.getParseTreeNode(t,e.isExpression);if(n){var i=e.findAncestor(n,e.isCallLikeExpression),a=i&&jn(i).resolvedSignature;if(4&r&&i){var o=n;do{jn(o).skipDirectInference=!0,o=o.parent}while(o&&o!==i);jn(i).resolvedSignature=void 0}var s=Km(n,r);if(4&r&&i){o=n;do{jn(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==i);jn(i).resolvedSignature=a}return s}},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?Mm(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&Pm(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&Bm(r)},isContextSensitive:yd,getTypeOfPropertyOfContextualType:Lm,getFullyQualifiedName:xi,getResolvedSignature:function(e,t,r){return de(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return de(e,t,r,16)},getExpandedParameters:Cs,hasEffectiveRestParameter:Dv,containsArgumentsReference:qc,getConstantValue:function(t){var r=e.getParseTreeNode(t,ES);return r?TS(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 204:return sh(e,106===e.expression.kind,t,pf(kb(e.expression)));case 159:return sh(e,!1,t,pf(kb(e.left)));case 198:return sh(e,!1,t,V_(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&oh(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?Gc(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?yS(r):void 0},getImmediateAliasedSymbol:ay,getAliasedSymbol:fi,getEmitResolver:function(e,t){return UD(e,t),ne},getExportsOfModule:wi,getExportsAndPropertiesOfModule:function(t){var r=wi(t),n=Ai(t);if(n!==t){var i=Co(n);Ii(i)&&e.addRange(r,ec(i))}return r},forEachExportAndPropertyOfModule:function(e,t){Li(e).forEach((function(e,r){Zi(r)||t(e,r)}));var r=Ai(e);if(r!==e){var n=Co(r);Ii(n)&&ec(n).forEach((function(e){t(e,e.escapedName)}))}},getSymbolWalker:e.createGetSymbolWalker((function(e){return rl(e)||Ne}),Qc,Zc,Uo,Xs,Co,Xf,rc,e.getFirstIdentifier,El),getAmbientModules:function(){return St||(St=[],ae.forEach((function(e,t){c.test(t)&&St.push(e)}))),St},getJsxIntrinsicTagNamesAt:function(t){var r=dy(N.IntrinsicElements,t);return r?ec(r):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&Jc(r)},tryGetMemberInModuleExports:function(t,r){return Pi(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(e,t){var r=Pi(e,t);if(r)return r;var n=Ai(t);if(n!==t){var i=Co(n);return Ii(i)?Sc(i,e):void 0}}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModule:function(e){return jc(e,!0)},tryFindAmbientModuleWithoutAugmentations:function(e){return jc(e,!1)},getApparentType:pc,getUnionType:Su,isTypeAssignableTo:Cd,createAnonymousType:ra,createSignature:Ds,createSymbol:Nn,createIndexInfo:_l,getAnyType:function(){return Ne},getStringType:function(){return Ue},getNumberType:function(){return Ke},createPromiseType:Fv,createArrayType:ru,getElementTypeOfArrayType:Dp,getBooleanType:function(){return Ye},getFalseType:function(e){return e?Ge:We},getTrueType:function(e){return e?qe:He},getVoidType:function(){return Qe},getUndefinedType:function(){return Me},getNullType:function(){return Je},getESSymbolType:function(){return Xe},getNeverType:function(){return $e},getOptionalType:function(){return Be},isSymbolAccessible:_a,isArrayType:vp,isTupleType:Bp,isArrayLikeType:Sp,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((function(t){var r=t.name&&Lu(t.name),n=r&&us(r)?gs(r):void 0,i=void 0===n?void 0:ja(e,n);return!!i&&Pp(i)&&!Cd($D(t),i)}))},getAllPossiblePropertiesOfTypes:function(t){var r=Su(t);if(!(1048576&r.flags))return nS(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=0,s=nS(a[i]);o<s.length;o++){var c=s[o].escapedName;if(!n.has(c)){var l=gc(r,c);l&&n.set(c,l)}}return e.arrayFrom(n.values())},getSuggestedSymbolForNonexistentProperty:$y,getSuggestionForNonexistentProperty:eh,getSuggestedSymbolForNonexistentJSXAttribute:Zy,getSuggestedSymbolForNonexistentSymbol:function(t,r,n){return th(t,e.escapeLeadingUnderscores(r),n)},getSuggestionForNonexistentSymbol:function(t,r,n){return function(t,r,n){var i=th(t,r,n);return i&&e.symbolName(i)}(t,e.escapeLeadingUnderscores(r),n)},getSuggestedSymbolForNonexistentModule:rh,getSuggestionForNonexistentExport:function(t,r){var n=rh(t,r);return n&&e.symbolName(n)},getSuggestedSymbolForNonexistentClassMember:Qy,getBaseConstraintOfType:sc,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?dc(e):void 0},resolveName:function(t,r,n,i){return zn(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(bn(t))},getJsxFragmentFactory:function(t){var r=RS(t);return r&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(r).escapedText)},getAccessibleSymbolChain:aa,getTypePredicateOfSignature:Qc,resolveExternalModuleName:function(t){var r=e.getParseTreeNode(t,e.isExpression);return r&&Ei(r,r,!0)},resolveExternalModuleSymbol:Ai,tryGetThisTypeAt:function(t,r){var n=e.getParseTreeNode(t);return n&&bm(n,r)},getTypeArgumentConstraint:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r&&function(t){var r=e.tryCast(t.parent,e.isTypeReferenceType);if(r){var n=jb(r),i=rc(n[r.typeArguments.indexOf(t)]);return i&&dd(i,q_(n,Rb(r,n)))}}(r)},getSuggestionDiagnostics:function(r,i){var o,s=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(s,V,t))return e.emptyArray;try{return n=i,jD(s),e.Debug.assert(!!(1&jn(s).flags)),o=e.addRange(o,un.getDiagnostics(s.fileName)),sx(VD(s),(function(t,r,n){e.containsParseError(t)||JD(r,!!(8388608&t.flags))||(o||(o=[])).push(a(a({},n),{category:e.DiagnosticCategory.Suggestion}))})),o||e.emptyArray}finally{n=void 0}},runWithCancellationToken:function(e,t){try{return n=e,t(_e)}finally{n=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Oo,isDeclarationVisible:Pa};function de(t,r,n,i){var a=e.getParseTreeNode(t,e.isCallLikeExpression);ce=n;var o=a?$h(a,r,i):void 0;return ce=void 0,o}var pe=new e.Map,fe=new e.Map,ge=new e.Map,me=new e.Map,ye=new e.Map,he=new e.Map,ve=new e.Map,be=new e.Map,xe=new e.Map,De=new e.Map,Se=new e.Map,Ee=new e.Map,Te=[],Ce=new e.Map,ke=Nn(4,"unknown"),Ae=Nn(0,"__resolving__"),Ne=Xi(1,"any"),Fe=Xi(1,"any"),we=Xi(1,"any"),Pe=Xi(1,"error"),Ie=Xi(1,"any",131072),Oe=Xi(1,"intrinsic"),Le=Xi(2,"unknown"),Me=Xi(32768,"undefined"),Re=W?Me:Xi(32768,"undefined",131072),Be=Xi(32768,"undefined"),je=te?Xi(32768,"undefined"):Me,Je=Xi(65536,"null"),Ve=W?Je:Xi(65536,"null",131072),Ue=Xi(4,"string"),Ke=Xi(8,"number"),ze=Xi(64,"bigint"),Ge=Xi(512,"false"),We=Xi(512,"false"),qe=Xi(512,"true"),He=Xi(512,"true");qe.regularType=He,qe.freshType=qe,He.regularType=He,He.freshType=qe,Ge.regularType=We,Ge.freshType=Ge,We.regularType=We,We.freshType=Ge;var Ye=Su([We,He]),Xe=Xi(4096,"symbol"),Qe=Xi(16384,"void"),$e=Xi(131072,"never"),Ze=Xi(131072,"never"),et=Xi(131072,"never",524288),tt=Xi(131072,"never"),rt=Xi(131072,"never"),nt=Xi(67108864,"object"),it=Su([Ue,Ke]),at=Su([Ue,Ke,Xe]),ot=Z?Ue:at,st=Su([Ke,ze]),ct=Su([Ue,Ke,Ye,ze,Je,Me]),lt=X_((function(e){return 262144&e.flags?(t=e).constraint===Le?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=$i(t.symbol),t.restrictiveInstantiation.constraint=Le,t.restrictiveInstantiation):e;var t})),ut=X_((function(e){return 262144&e.flags?we:e})),_t=ra(void 0,C,e.emptyArray,e.emptyArray,e.emptyArray),dt=ra(void 0,C,e.emptyArray,e.emptyArray,e.emptyArray);dt.objectFlags|=2048;var pt=Nn(2048,"__type");pt.members=e.createSymbolTable();var ft=ra(pt,C,e.emptyArray,e.emptyArray,e.emptyArray),gt=ra(void 0,C,e.emptyArray,e.emptyArray,e.emptyArray);gt.instantiations=new e.Map;var mt=ra(void 0,C,e.emptyArray,e.emptyArray,e.emptyArray);mt.objectFlags|=524288;var yt=ra(void 0,C,e.emptyArray,e.emptyArray,e.emptyArray),ht=ra(void 0,C,e.emptyArray,e.emptyArray,e.emptyArray),vt=ra(void 0,C,e.emptyArray,e.emptyArray,e.emptyArray),bt=$i(),xt=$i();xt.constraint=bt;var Dt,St,Et,Tt,Ct,kt,At,Nt,Ft,wt,Pt,It,Ot,Lt,Mt,Rt,Bt,jt,Jt,Vt,Ut,Kt,zt,Gt,Wt,qt,Ht,Yt,Xt,Qt,$t,Zt,er,tr,rr,nr,ir,ar,or,sr,cr,lr,ur,_r,dr,pr,fr,gr,mr,yr=$i(),hr=Uc(1,"<<unresolved>>",0,Ne),vr=Ds(void 0,void 0,void 0,e.emptyArray,Ne,void 0,0,0),br=Ds(void 0,void 0,void 0,e.emptyArray,Pe,void 0,0,0),xr=Ds(void 0,void 0,void 0,e.emptyArray,Ne,void 0,0,0),Dr=Ds(void 0,void 0,void 0,e.emptyArray,Ze,void 0,0,0),Sr=_l(Ke,Ue,!0),Er=new e.Map,Tr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Cr=Vx(Ne,Ne,Ne),kr=Vx(Ne,Ne,Le),Ar=Vx($e,Ne,Me),Nr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return rr||(rr=Wl("AsyncIterator",3,e))||gt},getGlobalIterableType:function(e){return tr||(tr=Wl("AsyncIterable",1,e))||gt},getGlobalIterableIteratorType:function(e){return nr||(nr=Wl("AsyncIterableIterator",1,e))||gt},getGlobalGeneratorType:function(e){return ir||(ir=Wl("AsyncGenerator",3,e))||gt},resolveIterationType:Yb,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Fr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Xt||(Xt=Wl("Iterator",3,e))||gt},getGlobalIterableType:$l,getGlobalIterableIteratorType:function(e){return Qt||(Qt=Wl("IterableIterator",1,e))||gt},getGlobalGeneratorType:function(e){return $t||($t=Wl("Generator",3,e))||gt},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},wr=new e.Map,Pr=!1,Ir=new e.Map,Or=0,Lr=0,Mr=0,Rr=!1,Br=0,jr=I_(""),Jr=O_(0),Vr=L_({negative:!1,base10Value:"0"}),Ur=[],Kr=[],zr=[],Gr=0,Wr=[],qr=[],Hr=[],Yr=[],Xr=[],Qr=[],$r=[],Zr=[],en=[],tn=[],rn=[],nn=[],an=[],on=[],sn=[],cn=[],ln=e.createDiagnosticCollection(),un=e.createDiagnosticCollection(),_n=new e.Map(e.getEntries({string:Ue,number:Ke,bigint:ze,boolean:Ye,symbol:Xe,undefined:Me})),dn=Su(e.arrayFrom(D.keys(),I_)),pn=new e.Map,fn=new e.Map,gn=new e.Map,mn=new e.Map,yn=new e.Map,hn=new e.Map,vn=e.createSymbolTable();return vn.set(oe.escapedName,oe),function(){for(var r=0,n=t.getSourceFiles();r<n.length;r++){var i=n[r];e.bindSourceFile(i,V)}var a,o,s,c;Dt=new e.Map;for(var l=0,u=t.getSourceFiles();l<u.length;l++)if(!(i=u[l]).redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var _=i.locals.get("globalThis");if(null==_?void 0:_.declarations)for(var d=0,p=_.declarations;d<p.length;d++){var f=p[d];ln.add(e.createDiagnosticForNode(f,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}Mn(ae,i.locals)}i.jsGlobalAugmentations&&Mn(ae,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(Et=e.concatenate(Et,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports&&i.symbol.globalExports.forEach((function(e,t){ae.has(t)||ae.set(t,e)}))}if(a)for(var g=0,m=a;g<m.length;g++)for(var y=m[g],h=0,v=y;h<v.length;h++){var b=v[h];e.isGlobalScopeAugmentation(b.parent)&&Rn(b)}if(o=ae,s=vn,c=e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,s.forEach((function(t,r){var n=o.get(r);n?e.forEach(n.declarations,function(t,r){return function(n){return ln.add(e.createDiagnosticForNode(n,r,t))}}(e.unescapeLeadingUnderscores(r),c)):o.set(r,t)})),Bn(oe).type=Re,Bn(le).type=Wl("IArguments",0,!0),Bn(ke).type=Pe,Bn(se).type=Qi(16,se),Ft=Wl("Array",1,!0),Ct=Wl("Object",0,!0),kt=Wl("Function",0,!0),At=H&&Wl("CallableFunction",0,!0)||kt,Nt=H&&Wl("NewableFunction",0,!0)||kt,Pt=Wl("String",0,!0),It=Wl("Number",0,!0),Ot=Wl("Boolean",0,!0),Lt=Wl("RegExp",0,!0),Rt=ru(Ne),(Bt=ru(Fe))===_t&&(Bt=ra(void 0,C,e.emptyArray,e.emptyArray,e.emptyArray)),wt=Zl("ReadonlyArray",1)||Ft,jt=wt?eu(wt,[Ne]):Rt,Mt=Zl("ThisType",1),a)for(var x=0,D=a;x<D.length;x++)for(var S=0,E=y=D[x];S<E.length;S++)b=E[S],e.isGlobalScopeAugmentation(b.parent)||Rn(b);Dt.forEach((function(t){var r=t.firstFile,n=t.secondFile,i=t.conflictingSymbols;if(i.size<8)i.forEach((function(t,r){for(var n=t.isBlockScoped,i=t.firstFileLocations,a=t.secondFileLocations,o=n?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,c=i;s<c.length;s++)Ln(c[s],o,r,a);for(var l=0,u=a;l<u.length;l++)Ln(u[l],o,r,i)}));else{var a=e.arrayFrom(i.keys()).join(", ");ln.add(e.addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(n,e.Diagnostics.Conflicts_are_in_this_file))),ln.add(e.addRelatedInfo(e.createDiagnosticForNode(n,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file)))}})),Dt=void 0}(),_e;function bn(t){if(t){var r=e.getSourceFileOfNode(t);if(r)if(e.isJsxOpeningFragment(t)){if(r.localJsxFragmentNamespace)return r.localJsxFragmentNamespace;var n=r.pragmas.get("jsxfrag");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,U),e.visitNode(r.localJsxFragmentFactory,s),r.localJsxFragmentFactory)return r.localJsxFragmentNamespace=e.getFirstIdentifier(r.localJsxFragmentFactory).escapedText}var a=RS(t);if(a)return r.localJsxFragmentFactory=a,r.localJsxFragmentNamespace=e.getFirstIdentifier(a).escapedText}else{if(r.localJsxNamespace)return r.localJsxNamespace;var o=r.pragmas.get("jsx");if(o&&(i=e.isArray(o)?o[0]:o,r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,U),e.visitNode(r.localJsxFactory,s),r.localJsxFactory))return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}return fr||(fr="React",V.jsxFactory?(gr=e.parseIsolatedEntityName(V.jsxFactory,U),e.visitNode(gr,s),gr&&(fr=e.getFirstIdentifier(gr).escapedText)):V.reactNamespace&&(fr=e.escapeLeadingUnderscores(V.reactNamespace))),gr||(gr=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(fr)),"createElement")),fr;function s(t){return e.setTextRangePosEnd(t,-1,-1),e.visitEachChild(t,s,e.nullTransformationContext)}}function xn(e,t,r,n,i,a,o){var s=Sn(t,r,n,i,a,o);return s.skippedOn=e,s}function Dn(t,r,n,i,a,o){return t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o)}function Sn(e,t,r,n,i,a){var o=Dn(e,t,r,n,i,a);return ln.add(o),o}function En(t,r){t?ln.add(r):un.add(a(a({},r),{category:e.DiagnosticCategory.Suggestion}))}function Tn(t,r,n,i,a,o,s){if(r.pos<0||r.end<0){if(!t)return;var c=e.getSourceFileOfNode(r);En(t,"message"in n?e.createFileDiagnostic(c,0,0,n,i,a,o,s):e.createDiagnosticForFileFromMessageChain(c,n))}else En(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function Cn(t,r,n,i,a,o,s){var c=Sn(t,n,i,a,o,s);if(r){var l=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,l)}return c}function kn(t,r){var n=Array.isArray(t)?e.forEach(t,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(t);return n&&e.addRelatedInfo(r,e.createDiagnosticForNode(n,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),un.add(r),r}function An(t,r,n){return kn(r,e.createDiagnosticForNode(t,e.Diagnostics._0_is_deprecated,n))}function Nn(e,t,r){v++;var n=new g(33554432|e,t);return n.checkFlags=r||0,n}function Fn(e){var t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function wn(e,t){t.mergeId||(t.mergeId=d,d++),Wr[t.mergeId]=e}function Pn(t){var r=Nn(t.flags,t.escapedName);return r.declarations=t.declarations?t.declarations.slice():[],r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=new e.Map(t.members)),t.exports&&(r.exports=new e.Map(t.exports)),wn(r,t),r}function In(t,r,n){if(void 0===n&&(n=!1),!(t.flags&Fn(r.flags))||67108864&(r.flags|t.flags)){if(r===t)return t;if(!(33554432&t.flags)){var i=pi(t);if(i===ke)return r;t=Pn(i)}512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&e.setValueDeclaration(t,r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),Mn(t.members,r.members,n)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),Mn(t.exports,r.exports,n)),n||wn(t,r)}else if(1024&t.flags)t!==se&&Sn(r.declarations&&e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ha(t));else{var a=!!(384&t.flags||384&r.flags),o=!!(2&t.flags||2&r.flags),s=a?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:o?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,c=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),l=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),u=ha(r);if(c&&l&&Dt&&!a&&c!==l){var _=-1===e.comparePaths(c.path,l.path)?c:l,d=_===c?l:c,p=e.getOrUpdate(Dt,_.path+"|"+d.path,(function(){return{firstFile:_,secondFile:d,conflictingSymbols:new e.Map}})),f=e.getOrUpdate(p.conflictingSymbols,u,(function(){return{isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]}}));g(f.firstFileLocations,r),g(f.secondFileLocations,t)}else On(r,s,u,t),On(t,s,u,r)}return t;function g(t,r){if(r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];e.pushIfUnique(t,a)}}}function On(t,r,n,i){e.forEach(t.declarations,(function(e){Ln(e,r,n,i.declarations)}))}function Ln(t,r,n,i){for(var a=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t,o=function(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);return ln.lookup(s)||(ln.add(s),s)}(a,r,n),s=function(t){var r=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t;if(r===a)return"continue";o.relatedInformation=o.relatedInformation||[];var i=e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,n),s=e.createDiagnosticForNode(r,e.Diagnostics.and_here);if(e.length(o.relatedInformation)>=5||e.some(o.relatedInformation,(function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c<l.length;c++)s(l[c])}function Mn(e,t,r){void 0===r&&(r=!1),t.forEach((function(t,n){var i=e.get(n);e.set(n,i?In(i,t,r):t)}))}function Rn(t){var r,n,i,a=t.parent;if((null===(r=a.symbol.declarations)||void 0===r?void 0:r[0])===a)if(e.isGlobalScopeAugmentation(a))Mn(ae,a.symbol.exports);else{var o=Ti(t,t,8388608&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!o)return;if(1920&(o=Ai(o)).flags)if(e.some(Et,(function(e){return o===e.symbol}))){var s=In(a.symbol,o,!0);Tt||(Tt=new e.Map),Tt.set(t.text,s)}else{if((null===(n=o.exports)||void 0===n?void 0:n.get("__export"))&&(null===(i=a.symbol.exports)||void 0===i?void 0:i.size))for(var c=ys(o,"resolvedExports"),l=0,u=e.arrayFrom(a.symbol.exports.entries());l<u.length;l++){var _=u[l],d=_[0],p=_[1];c.has(d)&&!o.exports.has(d)&&In(c.get(d),p)}In(o,a.symbol)}else Sn(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(a.symbol.declarations.length>1)}function Bn(e){if(33554432&e.flags)return e;var t=O(e);return qr[t]||(qr[t]=new w)}function jn(e){var t=I(e);return Hr[t]||(Hr[t]=new P)}function Jn(t){return 300===t.kind&&!e.isExternalOrCommonJsModule(t)}function Vn(t,r,n){if(n){var i=Bi(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=fi(i);if(a===ke||a.flags&n)return i}}}}function Un(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(K&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(V)||Qf(n)||8388608&r.flags)return!0;if(l(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(201===r.kind){var c=e.getAncestor(n,201);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<c.pos:Un(e.getAncestor(r,252),n)}return 252===r.kind?!function(t,r){switch(t.parent.parent.kind){case 235:case 240:case 242:if(Zn(r,t,o))return!0}var n=t.parent.parent;return e.isForInOrOfStatement(n)&&Zn(r,n.expression,o)}(r,n):e.isClassDeclaration(r)?!e.findAncestor(n,(function(t){return e.isComputedPropertyName(t)&&t.parent.parent===r})):e.isPropertyDeclaration(r)?!u(r,n,!1):!e.isParameterPropertyDeclaration(r,r.parent)||!(99===V.target&&z&&e.getContainingClass(r)===e.getContainingClass(n)&&l(n,r))}return!(!(273===n.parent.kind||269===n.parent.kind&&n.parent.isExportEquals)&&(269!==n.kind||!n.isExportEquals)&&!(4194304&n.flags||Qf(n)||e.findAncestor(n,(function(t){return e.isInterfaceDeclaration(t)||e.isTypeAliasDeclaration(t)})))&&(!l(n,r)||99===V.target&&z&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))&&u(r,n,!0)));function l(t,r){return!!e.findAncestor(t,(function(n){if(n===o)return"quit";if(e.isFunctionLike(n))return!0;if(e.isClassStaticBlockDeclaration(n))return r.pos<t.pos;var i=e.tryCast(n.parent,e.isPropertyDeclaration);if(i&&i.initializer===n)if(e.isStatic(n.parent)){if(167===r.kind)return!0;if(e.isPropertyDeclaration(r)&&e.getContainingClass(t)===e.getContainingClass(r)){var a=r.name;if((e.isIdentifier(a)||e.isPrivateIdentifier(a))&&function(t,r,n,i,a){for(var o=0,s=n;o<s.length;o++){var c=s[o];if(c.pos>=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!(32768&Gp(am(l,r,Yp(r)))))return!0}}return!1}(a,Co(ji(r)),e.filter(r.parent.members,e.isClassStaticBlockDeclaration),r.parent.pos,n.pos))return!0}}else if(165!==r.kind||e.isStatic(r)||e.getContainingClass(t)!==e.getContainingClass(r))return!0;return!1}))}function u(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(function(r){if(r===t)return"quit";switch(r.kind){case 212:return!0;case 165:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 233:switch(r.parent.kind){case 170:case 167:case 171:return!0;default:return!1}default:return!1}}))}}function Kn(t,r,n){var i=e.getEmitScriptTarget(V),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=jn(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 212:case 211:case 254:case 169:return!1;case 167:case 170:case 171:case 291:return s(t.name);case 165:return e.hasStaticModifier(t)?i<99||!z:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function zn(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),Gn(e,t,r,n,i,a,o,Vn,s)}function Gn(t,r,n,i,a,o,s,c,l){var u,_,d,p,f,g,m,y=t,h=!1,v=t,b=!1;e:for(;t;){if(t.locals&&!Jn(t)&&(_=c(t.locals,r,n))){var x=!0;if(e.isFunctionLike(t)&&d&&d!==t.body?(n&_.flags&788968&&315!==d.kind&&(x=!!(262144&_.flags)&&(d===t.type||162===d.kind||161===d.kind)),n&_.flags&3&&(Kn(_,t,d)?x=!1:1&_.flags&&(x=162===d.kind||d===t.type&&!!e.findAncestor(_.valueDeclaration,e.isParameter)))):187===t.kind&&(x=d===t.trueType),x)break e;_=void 0}switch(h=h||Wn(t,d),t.kind){case 300:if(!e.isExternalOrCommonJsModule(t))break;b=!0;case 259:var D=ji(t).exports||C;if(300===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(_=D.get("default")){var S=e.getLocalSymbolForExportDefault(_);if(S&&_.flags&n&&S.escapedName===r)break e;_=void 0}var E=D.get(r);if(E&&2097152===E.flags&&(e.getDeclarationOfKind(E,273)||e.getDeclarationOfKind(E,272)))break}if("default"!==r&&(_=c(D,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(u=_.declarations)||void 0===u?void 0:u.some(e.isJSDocTypeAlias)))break e;_=void 0}break;case 258:if(_=c(ji(t).exports,r,8&n))break e;break;case 165:if(!e.isStatic(t)){var T=qi(t.parent);T&&T.locals&&c(T.locals,r,111551&n)&&(f=t)}break;case 255:case 224:case 256:if(_=c(ji(t).members||C,r,788968&n)){if(!Yn(_,t)){_=void 0;break}if(d&&e.isStatic(d))return void Sn(v,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(224===t.kind&&32&n){var k=t.name;if(k&&r===k.escapedText){_=t.symbol;break e}}break;case 226:if(d===t.expression&&94===t.parent.token){var A=t.parent.parent;if(e.isClassLike(A)&&(_=c(ji(A).members,r,788968&n)))return void(i&&Sn(v,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 160:if(m=t.parent.parent,(e.isClassLike(m)||256===m.kind)&&(_=c(ji(m).members,r,788968&n)))return void Sn(v,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 212:if(V.target>=2)break;case 167:case 169:case 170:case 171:case 254:if(3&n&&"arguments"===r){_=le;break e}break;case 211:if(3&n&&"arguments"===r){_=le;break e}if(16&n){var N=t.name;if(N&&r===N.escapedText){_=t.symbol;break e}}break;case 163:t.parent&&162===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||255===t.parent.kind)&&(t=t.parent);break;case 340:case 333:case 334:(L=e.getJSDocRoot(t))&&(t=L.parent);break;case 162:d&&(d===t.initializer||d===t.name&&e.isBindingPattern(d))&&(g||(g=t));break;case 201:d&&(d===t.initializer||d===t.name&&e.isBindingPattern(d))&&e.isParameterDeclaration(t)&&!g&&(g=t);break;case 188:if(262144&n){var F=t.typeParameter.name;if(F&&r===F.escapedText){_=t.typeParameter.symbol;break e}}}qn(t)&&(p=t),d=t,t=t.parent}if(!o||!_||p&&_===p.symbol||(_.isReferenced|=n),!_){if(d&&(e.Debug.assert(300===d.kind),d.commonJsModuleIndicator&&"exports"===r&&n&d.symbol.flags))return d.symbol;s||(_=c(ae,r,n))}if(!_&&y&&e.isInJSFile(y)&&y.parent&&e.isRequireCall(y.parent,!1))return ue;if(_){if(i){if(f&&(99!==V.target||!z)){var w=f.name;return void Sn(v,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(w),Hn(a))}if(v&&(2&n||(32&n||384&n)&&111551==(111551&n))){var P=Gi(_);(2&P.flags||32&P.flags||384&P.flags)&&function(t,r){var n;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),!(67108881&t.flags&&32&t.flags)){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||258===t.kind}));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&i.flags||Un(i,r))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=Sn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=Sn(r,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=Sn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(V)&&(a=Sn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}}(P,v)}if(_&&b&&111551==(111551&n)&&!(4194304&y.flags)){var I=Bi(_);e.length(I.declarations)&&e.every(I.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&Tn(!V.allowUmdGlobalAccess,v,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(_&&g&&!h&&111551==(111551&n)){var O=Bi(vs(_)),L=e.getRootDeclaration(g);O===ji(g)?Sn(v,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(g.name)):O.valueDeclaration&&O.valueDeclaration.pos>g.pos&&L.parent.locals&&c(L.parent.locals,O.escapedName,n)===O&&Sn(v,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(g.name),e.declarationNameToString(v))}_&&v&&111551&n&&2097152&_.flags&&function(t,r,n){if(!e.isValidTypeOnlyAliasUseSite(n)){var i=yi(t);if(i){var a=e.typeOnlyDeclarationIsExport(i),o=a?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,s=a?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,c=e.unescapeLeadingUnderscores(r);e.addRelatedInfo(Sn(n,o,c),e.createDiagnosticForNode(i,s,c))}}}(_,r,v)}return _}if(i&&(!v||!(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||GD(t)||Qf(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=ji(a.parent);if(!o)break;if(Sc(Co(o),r))return Sn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Hn(n),ha(o)),!0;if(a===i&&!e.isStatic(a)&&Sc(es(o).thisType,r))return Sn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Hn(n)),!0}a=a.parent}return!1}(v,r,a)||Xn(v)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=pi(zn(t,r,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Sc(es(a),s))return Sn(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 Sn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(v,r,n)||function(t,r){return!(!$n(r)||273!==t.parent.kind)&&(Sn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0)}(v,r)||function(t,r,n){if(111551&n){if($n(r))return Sn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=pi(zn(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=e.unescapeLeadingUnderscores(r);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?Sn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,a):function(t,r){var n=e.findAncestor(t.parent,(function(t){return!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")}));if(n&&1===n.members.length){var i=es(r);return!!(1048576&i.flags)&&Xv(i,384,!0)}return!1}(t,i)?Sn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,a,"K"===a?"P":"K"):Sn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,a),!0}}return!1}(v,r,n)||function(t,r,n){if(111127&n){if(pi(zn(t,r,1024,void 0,void 0,!1)))return Sn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n&&pi(zn(t,r,1536,void 0,void 0,!1)))return Sn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0;return!1}(v,r,n)||function(t,r,n){if(788584&n){var i=pi(zn(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Sn(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}(v,r,n)))){var M=void 0;if(l&&Gr<10&&((null==(M=th(y,r,n))?void 0:M.valueDeclaration)&&e.isAmbientModule(M.valueDeclaration)&&e.isGlobalScopeAugmentation(M.valueDeclaration)&&(M=void 0),M)){var R=ha(M),B=Wy(y,M,!1),j=Dn(v,B?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,Hn(a),R);En(!B,j),M.valueDeclaration&&e.addRelatedInfo(j,e.createDiagnosticForNode(M.valueDeclaration,e.Diagnostics._0_is_declared_here,R))}if(!M&&a){var J=function(t){for(var r=Hn(t),n=e.getScriptTargetFeatures(),i=0,a=e.getOwnKeys(n);i<a.length;i++){var o=a[i],s=e.getOwnKeys(n[o]);if(void 0!==s&&e.contains(s,r))return o}}(a);J?Sn(v,i,Hn(a),J):Sn(v,i,Hn(a))}Gr++}}function Wn(t,r){return 212!==t.kind&&211!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||165===t.kind&&!e.isStatic(t))&&(!r||r!==t.name):!(r&&r===t.name||!t.asteriskToken&&!e.hasSyntacticModifier(t,256)&&e.getImmediatelyInvokedFunctionExpression(t))}function qn(e){switch(e.kind){case 254:case 255:case 256:case 258:case 257:case 259:return!0;default:return!1}}function Hn(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function Yn(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(161===a.kind&&(e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent)===r)return!(e.isJSDocTemplateTag(a.parent)&&e.find(a.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function Xn(t){var r=Qn(t);return!(!r||!Di(r,64,!0)||(Sn(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),0))}function Qn(t){switch(t.kind){case 79:case 204:return t.parent?Qn(t.parent):void 0;case 226:if(e.isEntityNameExpression(t.expression))return t.expression;default:return}}function $n(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function Zn(t,r,n){return!!r&&!!e.findAncestor(t,(function(t){return t===n||e.isFunctionLike(t)?"quit":t===r}))}function ei(e){switch(e.kind){case 263:return e;case 265:return e.parent;case 266:return e.parent.parent;case 268:return e.parent.parent.parent;default:return}}function ti(t){return t.declarations&&e.findLast(t.declarations,ri)}function ri(t){return 263===t.kind||262===t.kind||265===t.kind&&!!t.name||266===t.kind||272===t.kind||268===t.kind||273===t.kind||269===t.kind&&e.exportAssignmentIsAlias(t)||e.isBinaryExpression(t)&&2===e.getAssignmentDeclarationKind(t)&&e.exportAssignmentIsAlias(t)||e.isAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&ni(t.parent.right)||292===t.kind||291===t.kind&&ni(t.initializer)||e.isRequireVariableDeclaration(t)}function ni(t){return e.isAliasableExpression(t)||e.isFunctionExpression(t)&&Zh(t)}function ii(e,t,r,n){var i=e.exports.get("export="),a=i?Sc(Co(i),t):e.exports.get(t),o=pi(a,n);return gi(r,a,o,!1),o}function ai(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasSyntacticModifier(t,512)||e.isExportSpecifier(t)}function oi(t,r,n){if(!G)return!1;if(!t||t.isDeclarationFile){var i=ii(r,"default",void 0,!0);return!(i&&e.some(i.declarations,ai)||ii(r,e.escapeLeadingUnderscores("__esModule"),void 0,n))}return e.isSourceFileJS(t)?!t.externalModuleIndicator&&!ii(r,e.escapeLeadingUnderscores("__esModule"),void 0,n):Fi(r)}function si(t,r,n){var a,o;void 0===n&&(n=!1);var s=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,c=Ei(t,s),l=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(l)){var u=Ni(c,s,!1,"default"===l.escapedText&&!(!V.allowSyntheticDefaultImports&&!V.esModuleInterop));if(u&&l.escapedText){if(e.isShorthandAmbientModuleSymbol(c))return c;var _=void 0;_=c&&c.exports&&c.exports.get("export=")?Sc(Co(u),l.escapedText,!0):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return pi(Sc(V_(r),t))}}(u,l.escapedText),_=pi(_,n);var d=function(e,t,r,n){if(1536&e.flags){var i=Oi(e).get(t.escapedText),a=pi(i,n);return gi(r,i,a,!1),a}}(u,l,r,n);void 0===d&&"default"===l.escapedText&&oi(null===(a=c.declarations)||void 0===a?void 0:a.find(e.isSourceFile),c,n)&&(d=Ai(c,n)||pi(c,n));var p=d&&_&&d!==_?function(t,r){if(t===ke&&r===ke)return ke;if(790504&t.flags)return t;var n=Nn(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n}(_,d):d||_;if(!p){var f=xi(c,t),g=e.declarationNameToString(l),m=rh(l,u);if(void 0!==m){var y=ha(m),h=Sn(l,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,f,g,y);m.valueDeclaration&&e.addRelatedInfo(h,e.createDiagnosticForNode(m.valueDeclaration,e.Diagnostics._0_is_declared_here,y))}else(null===(o=c.exports)||void 0===o?void 0:o.has("default"))?Sn(l,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,f,g):function(t,r,n,a,o){var s,c,l=null===(c=null===(s=a.valueDeclaration)||void 0===s?void 0:s.locals)||void 0===c?void 0:c.get(r.escapedText),u=a.exports;if(l){var _=null==u?void 0:u.get("export=");if(_)zi(_,l)?function(t,r,n,i){K>=e.ModuleKind.ES2015?Sn(r,V.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):e.isInJSFile(t)?Sn(r,V.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Sn(r,V.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)}(t,r,n,o):Sn(r,e.Diagnostics.Module_0_has_no_exported_member_1,o,n);else{var d=u?e.find(Rc(u),(function(e){return!!zi(e,l)})):void 0,p=d?Sn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,n,ha(d)):Sn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,n);l.declarations&&e.addRelatedInfo.apply(void 0,i([p],e.map(l.declarations,(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,n)})),!1))}}else Sn(r,e.Diagnostics.Module_0_has_no_exported_member_1,o,n)}(t,l,g,c,f)}return p}}}function ci(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function li(e,t,r){var n=e.parent.parent.moduleSpecifier?si(e.parent.parent,e,r):Di(e.propertyName||e.name,t,!1,r);return gi(e,void 0,n,!1),n}function ui(t,r){return e.isClassExpression(t)?lb(t).symbol:e.isEntityName(t)||e.isEntityNameExpression(t)?Di(t,901119,!0,r)||(lb(t),jn(t).resolvedSymbol):void 0}function _i(t,r){switch(void 0===r&&(r=!1),t.kind){case 263:case 252:return function(t,r){var n=ci(t);if(n){var i=e.getLeftmostAccessExpression(n.expression).arguments[0];return e.isIdentifier(n.name)?pi(Sc(Yc(i),n.name.escapedText)):void 0}if(e.isVariableDeclaration(t)||275===t.moduleReference.kind){var a=Ei(t,e.getExternalModuleRequireArgument(t)||e.getExternalModuleImportEqualsDeclarationExpression(t)),o=Ai(a);return gi(t,a,o,!1),o}var s=bi(t.moduleReference,r);return function(t,r){if(gi(t,void 0,r,!1)&&!t.isTypeOnly){var n=yi(ji(t)),i=e.typeOnlyDeclarationIsExport(n),a=i?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,s=e.unescapeLeadingUnderscores(n.name.escapedText);e.addRelatedInfo(Sn(t.moduleReference,a),e.createDiagnosticForNode(n,o,s))}}(t,s),s}(t,r);case 265:return function(t,r){var n,i=Ei(t,t.parent.moduleSpecifier);if(i){var a;a=e.isShorthandAmbientModuleSymbol(i)?i:ii(i,"default",t,r);var o=oi(null===(n=i.declarations)||void 0===n?void 0:n.find(e.isSourceFile),i,r);if(a||o){if(o){var s=Ai(i,r)||pi(i,r);return gi(t,i,s,!1),s}}else if(Fi(i)){var c=K>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",l=i.exports.get("export=").valueDeclaration,u=Sn(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,ha(i),c);l&&e.addRelatedInfo(u,e.createDiagnosticForNode(l,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,c))}else!function(t,r){var n,i,a;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))Sn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ha(t),ha(r.symbol));else{var o=Sn(r.name,e.Diagnostics.Module_0_has_no_default_export,ha(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=Ei(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(i,t);return gi(t,a,void 0,!1),a}}(t,r);case 266:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=Ei(e,r),i=Ni(n,r,t,!1);return gi(e,n,i,!1),i}(t,r);case 272:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&Ei(e,r),i=r&&Ni(n,r,t,!1);return gi(e,n,i,!1),i}(t,r);case 268:case 201:return function(t,r){var n=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,i=ci(n),a=si(n,i||t,r),o=t.propertyName||t.name;return i&&a&&e.isIdentifier(o)?pi(Sc(Co(a),o.escapedText),r):(gi(t,void 0,a,!1),a)}(t,r);case 273:return li(t,901119,r);case 269:case 219:return function(t,r){var n=ui(e.isExportAssignment(t)?t.expression:t.right,r);return gi(t,void 0,n,!1),n}(t,r);case 262:return function(e,t){var r=Ai(e.parent.symbol,t);return gi(e,void 0,r,!1),r}(t,r);case 292:return Di(t.name,901119,!0,r);case 291:return function(e,t){return ui(e.initializer,t)}(t,r);case 205:case 204:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return ui(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function di(e,t){return void 0===t&&(t=901119),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function pi(e,t){return!t&&di(e)?fi(e):e}function fi(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Bn(t);if(r.target)r.target===Ae&&(r.target=ke);else{r.target=Ae;var n=ti(t);if(!n)return e.Debug.fail();var i=_i(n);r.target===Ae?r.target=i||ke:Sn(n,e.Diagnostics.Circular_definition_of_import_alias_0,ha(t))}return r.target}function gi(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=ji(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return Bn(a).typeOnlyDeclaration=t,!0;var o=Bn(a);return mi(o,r,i)||mi(o,n,i)}function mi(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:Bn(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function yi(e){if(2097152&e.flags)return Bn(e).typeOnlyDeclaration||void 0}function hi(e){var t=ji(e),r=fi(t);r&&(r===ke||111551&r.flags&&!gS(r)&&!yi(t))&&vi(t)}function vi(t){var r=Bn(t);if(!r.referenced){r.referenced=!0;var n=ti(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=pi(t);(i===ke||111551&i.flags)&&lb(n.moduleReference)}}}function bi(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||159===t.parent.kind?Di(t,1920,!1,r):(e.Debug.assert(263===t.parent.kind),Di(t,901119,!1,r))}function xi(e,t){return e.parent?xi(e.parent,t)+"."+ha(e):ha(e,t,void 0,20)}function Di(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(79===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:Yf(e.getFirstIdentifier(t)),l=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(Ml(t.parent)){var n=function(t){var r=e.findAncestor(t,(function(t){return e.isJSDocNode(t)||4194304&t.flags?e.isJSDocTypeAlias(t):"quit"}));if(!r){var n=e.getJSDocHost(t);if(n&&e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&3===e.getAssignmentDeclarationKind(n.expression)&&(i=ji(n.expression.left)))return Si(i);if(n&&(e.isObjectLiteralMethod(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent)&&(i=ji(n.parent.parent.left)))return Si(i);var i,a=e.getEffectiveJSDocHost(t);if(a&&e.isFunctionLike(a))return(i=ji(a))&&i.valueDeclaration}}(t.parent);if(n)return zn(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=Bi(zn(a||t,t.escapedText,r,n||l?void 0:c,t,!0))))return Bi(l)}else{if(159!==t.kind&&204!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var u=159===t.kind?t.left:t.expression,_=159===t.kind?t.right:t.name,d=Di(u,s,n,!1,a);if(!d||e.nodeIsMissing(_))return;if(d===ke)return d;if(d.valueDeclaration&&e.isInJSFile(d.valueDeclaration)&&e.isVariableDeclaration(d.valueDeclaration)&&d.valueDeclaration.initializer&&ov(d.valueDeclaration.initializer)){var p=d.valueDeclaration.initializer.arguments[0],f=Ei(p,p);if(f){var g=Ai(f);g&&(d=g)}}if(!(o=Bi(Vn(Oi(d),_.escapedText,r)))){if(!n){var m=xi(d),y=e.declarationNameToString(_),h=rh(_,d);h?Sn(_,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,y,ha(h)):Sn(_,e.Diagnostics.Namespace_0_has_no_exported_member_1,m,y)}return}}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||269===t.parent.kind)&&gi(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:fi(o)}}function Si(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function Ei(t,r,n){var i=e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return Ti(t,r,n?void 0:i)}function Ti(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?Ci(t,r.text,n,r,i):void 0}function Ci(r,n,i,a,o){void 0===o&&(o=!1),e.startsWith(n,"@types/")&&Sn(a,m=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var s=jc(n,!0);if(s)return s;var c=e.getSourceFileOfNode(r),l=e.getResolvedModule(c,n),u=l&&e.getResolutionDiagnostic(V,l),_=l&&!u&&t.getSourceFile(l.resolvedFileName);if(_)return _.symbol?(l.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(l.extension)&&ki(!1,a,l,n),Bi(_.symbol)):void(i&&Sn(a,e.Diagnostics.File_0_is_not_a_module,_.fileName));if(Et){var d=e.findBestPatternMatch(Et,(function(e){return e.pattern}),n);if(d){var p=Tt&&Tt.get(n);return Bi(p||d.symbol)}}if(l&&!e.resolutionExtensionIsTSOrJson(l.extension)&&void 0===u||u===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Sn(a,m=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,l.resolvedFileName):ki(X&&!!i,a,l,n);else if(i){if(l){var f=t.getProjectReferenceRedirect(l.resolvedFileName);if(f)return void Sn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,l.resolvedFileName)}if(u)Sn(a,u,n,l.resolvedFileName);else{var g=e.tryExtractTSExtension(n);if(g){var m=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,y=e.removeExtension(n,g);e.getEmitModuleKind(V)>=e.ModuleKind.ES2015&&(y+=".js"),Sn(a,m,g,y)}else!V.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(V)?Sn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n):Sn(a,i,n)}}}function ki(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;Tn(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function Ai(t,r){if(null==t?void 0:t.exports){var n=function(t,r){if(!t||t===ke||t===r||1===r.exports.size||2097152&t.flags)return t;var n=Bn(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:Pn(t);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),r.exports.forEach((function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?In(i.exports.get(t),e):e)})),Bn(i).cjsExportMerged=i,n.cjsExportMerged=i}(Bi(pi(t.exports.get("export="),r)),Bi(t));return Bi(n)||t}}function Ni(t,r,n,i){var a=Ai(t,n);if(!n&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,300))){var o=K>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Sn(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,o),a}if(V.esModuleInterop){var s=r.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=Co(a),l=Ec(c,0);if(l&&l.length||(l=Ec(c,1)),l&&l.length){var u=av(c,a,t),_=Nn(a.flags,a.escapedName);_.declarations=a.declarations?a.declarations.slice():[],_.parent=a.parent,_.target=a,_.originatingImport=s,a.valueDeclaration&&(_.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),a.members&&(_.members=new e.Map(a.members)),a.exports&&(_.exports=new e.Map(a.exports));var d=Xs(u);return _.type=ra(_,d.members,e.emptyArray,e.emptyArray,d.indexInfos),_}}}}return a}function Fi(e){return void 0!==e.exports.get("export=")}function wi(e){return Rc(Li(e))}function Pi(e,t){var r=Li(t);if(r)return r.get(e)}function Ii(t){return!(131068&t.flags||1&e.getObjectFlags(t)||vp(t)||Bp(t))}function Oi(e){return 6256&e.flags?ys(e,"resolvedExports"):1536&e.flags?Li(e):e.exports||C}function Li(e){var t=Bn(e);return t.resolvedExports||(t.resolvedExports=Ri(e))}function Mi(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&pi(o)!==pi(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 Ri(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,l=a.declarations;c<l.length;c++){var u=l[c];Mi(o,t(Ei(u,u.moduleSpecifier)),s,u)}s.forEach((function(t,r){var n=t.exportsWithDuplicate;if("export="!==r&&n&&n.length&&!i.has(r))for(var a=0,o=n;a<o.length;a++){var c=o[a];ln.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)))}})),Mi(i,o)}return i}}(t=Ai(t))||C}function Bi(e){var t;return e&&e.mergeId&&(t=Wr[e.mergeId])?t:e}function ji(e){return Bi(e.symbol&&vs(e.symbol))}function Ji(e){return Bi(e.parent&&vs(e.parent))}function Vi(r,n,a){var o=Ji(r);if(o&&!(262144&r.flags)){var s=e.mapDefined(o.declarations,(function(e){return o&&Ui(e,o)})),c=n&&function(r,n){var i,a=e.getSourceFileOfNode(n),o=I(a),s=Bn(r);if(s.extendedContainersByFile&&(i=s.extendedContainersByFile.get(o)))return i;if(a&&a.imports){for(var c=0,l=a.imports;c<l.length;c++){var u=l[c];if(!e.nodeIsSynthesized(u)){var _=Ei(n,u,!0);_&&Ki(_,r)&&(i=e.append(i,_))}}if(e.length(i))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,i),i}if(s.extendedContainers)return s.extendedContainers;for(var d=0,p=t.getSourceFiles();d<p.length;d++){var f=p[d];if(e.isExternalModule(f)){var g=ji(f);Ki(g,r)&&(i=e.append(i,g))}}return s.extendedContainers=i||e.emptyArray}(r,n),l=function(t,r){var n=!!e.length(t.declarations)&&e.first(t.declarations);if(111551&r&&n&&n.parent&&e.isVariableDeclaration(n.parent)&&(e.isObjectLiteralExpression(n)&&n===n.parent.initializer||e.isTypeLiteralNode(n)&&n===n.parent.type))return ji(n.parent)}(o,a);if(n&&o.flags&ia(a)&&aa(o,n,1920,!1))return e.append(e.concatenate(e.concatenate([o],s),c),l);var u=!(o.flags&ia(a))&&788968&o.flags&&524288&es(o).flags&&111551===a?na(n,(function(t){return e.forEachEntry(t,(function(e){if(e.flags&ia(a)&&Co(e)===es(o))return e}))})):void 0,_=i(i(u?[u]:[],s,!0),[o],!1);return _=e.append(_,l),e.addRange(_,c)}var d=e.mapDefined(r.declarations,(function(t){return!e.isAmbientModule(t)&&t.parent&&ga(t.parent)?ji(t.parent):e.isClassExpression(t)&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&e.isAccessExpression(t.parent.left)&&e.isEntityNameExpression(t.parent.left.expression)?e.isModuleExportsAccessExpression(t.parent.left)||e.isExportsIdentifier(t.parent.left.expression)?ji(e.getSourceFileOfNode(t)):(lb(t.parent.left.expression),jn(t.parent.left.expression).resolvedSymbol):void 0}));if(e.length(d))return e.mapDefined(d,(function(e){return Ki(e,r)?e:void 0}))}function Ui(e,t){var r=pa(e),n=r&&r.exports&&r.exports.get("export=");return n&&zi(n,t)?r:void 0}function Ki(t,r){if(t===Ji(r))return r;var n=t.exports&&t.exports.get("export=");if(n&&zi(n,r))return t;var i=Oi(t),a=i.get(r.escapedName);return a&&zi(a,r)?a:e.forEachEntry(i,(function(e){if(zi(e,r))return e}))}function zi(e,t){if(Bi(pi(Bi(e)))===Bi(pi(Bi(t))))return e}function Gi(e){return Bi(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function Wi(e){return!!(111551&e.flags||2097152&e.flags&&111551&fi(e).flags&&!yi(e))}function qi(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(169===i.kind&&e.nodeIsPresent(i.body))return i}}function Hi(t){var n=new m(_e,t);return h++,n.id=h,r&&(null===e.tracing||void 0===e.tracing||e.tracing.recordType(n)),n}function Yi(e){return new m(_e,e)}function Xi(e,t,r){void 0===r&&(r=0);var n=Hi(e);return n.intrinsicName=t,n.objectFlags=r,n}function Qi(e,t){var r=Hi(524288);return r.objectFlags=e,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.indexInfos=void 0,r}function $i(e){var t=Hi(262144);return e&&(t.symbol=e),t}function Zi(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function ea(t){var r;return t.forEach((function(e,t){!Zi(t)&&Wi(e)&&(r||(r=[])).push(e)})),r||e.emptyArray}function ta(t,r,n,i,a){var o=t;return o.members=r,o.properties=e.emptyArray,o.callSignatures=n,o.constructSignatures=i,o.indexInfos=a,r!==C&&(o.properties=ea(r)),o}function ra(e,t,r,n,i){return ta(Qi(16,e),t,r,n,i)}function na(t,r){for(var n,i=function(t){if(t.locals&&!Jn(t)&&(n=r(t.locals,void 0,!0,t)))return{value:n};switch(t.kind){case 300:if(!e.isExternalOrCommonJsModule(t))break;case 259:var i=ji(t);if(n=r((null==i?void 0:i.exports)||C,void 0,!0,t))return{value:n};break;case 255:case 224:case 256:var a;if((ji(t).members||C).forEach((function(t,r){788968&t.flags&&(a||(a=e.createSymbolTable())).set(r,t)})),a&&(n=r(a,void 0,!1,t)))return{value:n}}},a=t;a;a=a.parent){var o=i(a);if("object"==typeof o)return o.value}return r(ae,void 0,!0)}function ia(e){return 111551===e?111551:1920}function aa(t,r,n,i,a){if(void 0===a&&(a=new e.Map),t&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++)switch(r[t].kind){case 165:case 167:case 170:case 171:continue;default:return!1}return!0}return!1}(t)){var o=Bn(t),s=o.accessibleChainCache||(o.accessibleChainCache=new e.Map),c=na(r,(function(e,t,r,n){return n})),l=(i?0:1)+"|"+(c&&I(c))+"|"+n;if(s.has(l))return s.get(l);var u=O(t),_=a.get(u);_||a.set(u,_=[]);var d=na(r,p);return s.set(l,d),d}function p(n,a,o){if(e.pushIfUnique(_,n)){var s=function(n,a,o){return g(n.get(t.escapedName),void 0,a)?[t]:e.forEachEntry(n,(function(n){if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(e.isUMDExportSymbol(n)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(n.declarations,e.isExternalModuleImportEqualsDeclaration))&&(!o||!e.some(n.declarations,e.isNamespaceReexportDeclaration))&&(a||!e.getDeclarationOfKind(n,273))){var s=m(n,fi(n),a);if(s)return s}if(n.escapedName===t.escapedName&&n.exportSymbol&&g(Bi(n.exportSymbol),void 0,a))return[t]}))||(n===ae?m(se,se,a):void 0)}(n,a,o);return _.pop(),s}}function f(e,t){return!oa(e,r,t)||!!aa(e.parent,r,ia(t),i,a)}function g(r,i,a){return(t===(i||r)||Bi(t)===Bi(i||r))&&!e.some(r.declarations,ga)&&(a||f(Bi(r),n))}function m(e,t,r){if(g(e,t,r))return[e];var i=Oi(t),a=i&&p(i,!0);return a&&f(e,ia(n))?[e].concat(a):void 0}}function oa(t,r,n){var i=!1;return na(r,(function(r){var a=Bi(r.get(t.escapedName));return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,273)?fi(a):a).flags&n)&&(i=!0,!0))})),i}function sa(e,t){return 0===da(e,t,788968,!1,!0).accessibility}function ca(e,t){return 0===da(e,t,111551,!1,!0).accessibility}function la(e,t,r){return 0===da(e,t,r,!1,!1).accessibility}function ua(t,r,n,i,a,o){if(e.length(t)){for(var s,c=!1,l=0,u=t;l<u.length;l++){var _=u[l],d=aa(_,r,i,!1);if(d){s=_;var p=ma(d[0],a);if(p)return p}if(o&&e.some(_.declarations,ga)){if(a){c=!0;continue}return{accessibility:0}}var f=ua(Vi(_,r,i),r,n,n===_?ia(i):i,a,o);if(f)return f}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:ha(n,r,i),errorModuleName:s!==n?ha(s,r,1920):void 0}:void 0}}function _a(e,t,r,n){return da(e,t,r,n,!0)}function da(t,r,n,i,a){if(t&&r){var o=ua([t],r,t,n,i,a);if(o)return o;var s=e.forEach(t.declarations,pa);return s&&s!==pa(r)?{accessibility:2,errorSymbolName:ha(t,r,n),errorModuleName:ha(s),errorNode:e.isInJSFile(r)?r:void 0}:{accessibility:1,errorSymbolName:ha(t,r,n)}}return{accessibility:0}}function pa(t){var r=e.findAncestor(t,fa);return r&&ji(r)}function fa(t){return e.isAmbientModule(t)||300===t.kind&&e.isExternalOrCommonJsModule(t)}function ga(t){return e.isModuleWithStringLiteralName(t)||300===t.kind&&e.isExternalOrCommonJsModule(t)}function ma(t,r){var n;if(e.every(e.filter(t.declarations,(function(e){return 79!==e.kind})),(function(r){var n,a;if(!Pa(r)){var o=ei(r);return o&&!e.hasSyntacticModifier(o,1)&&Pa(o.parent)?i(r,o):e.isVariableDeclaration(r)&&e.isVariableStatement(r.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent,1)&&Pa(r.parent.parent.parent)?i(r,r.parent.parent):e.isLateVisibilityPaintedStatement(r)&&!e.hasSyntacticModifier(r,1)&&Pa(r.parent)?i(r,r):!!(2097152&t.flags&&e.isBindingElement(r)&&e.isInJSFile(r)&&(null===(n=r.parent)||void 0===n?void 0:n.parent)&&e.isVariableDeclaration(r.parent.parent)&&(null===(a=r.parent.parent.parent)||void 0===a?void 0:a.parent)&&e.isVariableStatement(r.parent.parent.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent.parent.parent,1)&&r.parent.parent.parent.parent.parent&&Pa(r.parent.parent.parent.parent.parent))&&i(r,r.parent.parent.parent.parent)}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(jn(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function ya(t,r){var n;n=179===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||160===t.parent.kind?1160127:159===t.kind||204===t.kind||263===t.parent.kind?1920:788968;var i=e.getFirstIdentifier(t),a=zn(r,i.escapedText,n,void 0,void 0,!1);return a&&262144&a.flags&&788968&n?{accessibility:0}:a&&ma(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function ha(t,r,n,i,a){void 0===i&&(i=4);var o=70221824;2&i&&(o|=128),1&i&&(o|=512),8&i&&(o|=16384),16&i&&(o|=134217728);var s=4&i?ie.symbolToExpression:ie.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,n,r,o),c=300===(null==r?void 0:r.kind)?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),l=r&&e.getSourceFileOfNode(r);return c.writeNode(4,a,l,i),i}}function va(t,r,n,i,a){return void 0===n&&(n=0),a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o;o=262144&n?1===i?178:177:1===i?173:172;var s=ie.signatureToSignatureDeclaration(t,o,r,70222336|Ea(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),l=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,l,e.getTrailingSemicolonDeferringWriter(a)),a}}function ba(t,r,n,i){void 0===n&&(n=1064960),void 0===i&&(i=e.createTextWriter(""));var a=V.noErrorTruncation||1&n,o=ie.typeToTypeNode(t,r,70221824|Ea(n)|(a?1:0),i);if(void 0===o)return e.Debug.fail("should always get typenode");var s=e.createPrinter({removeComments:!0}),c=r&&e.getSourceFileOfNode(r);s.writeNode(4,o,c,i);var l=i.getText(),u=a?2*e.noTruncationMaximumTruncationLength:2*e.defaultMaximumTruncationLength;return u&&l&&l.length>=u?l.substr(0,u-"...".length)+"...":l}function xa(e,t){var r=Sa(e.symbol)?ba(e,e.symbol.valueDeclaration):ba(e),n=Sa(t.symbol)?ba(t,t.symbol.valueDeclaration):ba(t);return r===n&&(r=Da(e),n=Da(t)),[r,n]}function Da(e){return ba(e,void 0,64)}function Sa(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!yd(t.valueDeclaration)}function Ea(e){return void 0===e&&(e=0),814775659&e}function Ta(t){return!!(t.symbol&&32&t.symbol.flags&&(t===Go(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function Ca(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(128):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&ie.typeToTypeNode(t.type,r,70222336|Ea(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function ka(e){return 8===e?"private":16===e?"protected":"public"}function Aa(t){return t&&t.parent&&260===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function Na(t){return 300===t.kind||e.isAmbientModule(t)}function Fa(t,r){var n=Bn(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,V.target)||ty(i)?ty(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+wa(n.symbol,r)+"]"}}function wa(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],Na)!==e.findAncestor(r.enclosingDeclaration,Na)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(function(t){return e.getNameOfDeclaration(t)?t:void 0})),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=Bn(t).nameType;if(a&&384&a.flags){var o=Fa(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&252===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 224:case 211:case 212:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),224===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=Fa(t,r);return void 0!==s?s:e.symbolName(t)}function Pa(t){if(t){var r=jn(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 333:case 340:case 334:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 201:return Pa(t.parent.parent);case 252:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 259:case 255:case 256:case 257:case 254:case 258:case 263:if(e.isExternalModuleAugmentation(t))return!0;var r=Ba(t);return 1&e.getCombinedModifierFlags(t)||263!==t.kind&&300!==r.kind&&8388608&r.flags?Pa(r):Jn(r);case 165:case 164:case 170:case 171:case 167:case 166:if(e.hasEffectiveModifier(t,24))return!1;case 169:case 173:case 172:case 174:case 162:case 260:case 177:case 178:case 180:case 176:case 181:case 182:case 185:case 186:case 189:case 195:return Pa(t.parent);case 265:case 266:case 268:return!1;case 161:case 300:case 262:return!0;default:return!1}}()),r.isVisible}return!1}function Ia(t,r){var n,i,a;return t.parent&&269===t.parent.kind?n=zn(t,t.escapedText,2998271,void 0,t,!1):273===t.parent.kind&&(n=li(t.parent,2998271)),n&&((a=new e.Set).add(O(n)),function t(n){e.forEach(n,(function(n){var o=ei(n)||n;if(r?jn(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=zn(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,O(c))&&t(c.declarations)}}))}(n.declarations)),i}function Oa(e,t){var r=La(e,t);if(r>=0){for(var n=Ur.length,i=r;i<n;i++)Kr[i]=!1;return!1}return Ur.push(e),Kr.push(!0),zr.push(t),!0}function La(e,t){for(var r=Ur.length-1;r>=0;r--){if(Ma(Ur[r],zr[r]))return-1;if(Ur[r]===e&&zr[r]===t)return r}return-1}function Ma(t,r){switch(r){case 0:return!!Bn(t).type;case 5:return!!jn(t).resolvedEnumType;case 2:return!!Bn(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved}return e.Debug.assertNever(r)}function Ra(){return Ur.pop(),zr.pop(),Kr.pop()}function Ba(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 252:case 253:case 268:case 267:case 266:case 265:return!1;default:return!0}})).parent}function ja(e,t){var r=Sc(e,t);return r?Co(r):void 0}function Ja(e){return e&&0!=(1&e.flags)}function Va(e){var t=ji(e);return t&&Bn(t).type||Za(e,!1)}function Ua(t,r,n){if(131072&(t=Og(t,(function(e){return!(98304&e.flags)}))).flags)return _t;if(1048576&t.flags)return Rg(t,(function(e){return Ua(e,r,n)}));var i=Su(e.map(r,Lu));if(Xu(t)||Qu(i)){if(131072&i.flags)return t;var a=lr||(lr=Gl("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?kl(a,[t,i]):Pe}for(var o=e.createSymbolTable(),s=0,c=ec(t);s<c.length;s++){var l=c[s];Cd(Mu(l,8576),i)||24&e.getDeclarationModifierFlagsFromSymbol(l)||!k_(l)||o.set(l.escapedName,A_(l,!1))}var u=ra(n,o,e.emptyArray,e.emptyArray,Fc(t));return u.objectFlags|=8388608,u}function Ka(e){return!!(465829888&e.flags)&&Hv(sc(e)||Le,32768)}function za(e){return fg(Pg(e,Ka)?Rg(e,(function(e){return 465829888&e.flags?cc(e):e})):e,524288)}function Ga(e,t){var r=Wa(e);return r?am(r,t):t}function Wa(t){var r=function(e){var t=e.parent.parent;switch(t.kind){case 201:case 291:return Wa(t);case 202:return Wa(e.parent);case 252:return t.initializer;case 219:return t.right}}(t);if(r&&r.flowNode){var n=qa(t);if(n){var i=e.setTextRange(e.parseNodeFactory.createStringLiteral(n),t),a=e.isLeftHandSideExpression(r)?r:e.parseNodeFactory.createParenthesizedExpression(r),o=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(a,i),t);return e.setParent(i,o),e.setParent(o,t),a!==r&&e.setParent(a,o),o.flowNode=r.flowNode,o}}}function qa(e){var t=e.parent;return 201===e.kind&&199===t.kind?Ha(e.propertyName||e.name):291===e.kind||292===e.kind?Ha(e.name):""+t.elements.indexOf(e)}function Ha(e){var t=Lu(e);return 384&t.flags?""+t.value:void 0}function Ya(t){var r,n=t.parent,i=Va(n.parent);if(!i||Ja(i))return i;if(W&&8388608&t.flags&&e.isParameterDeclaration(t)?i=Xp(i):!W||!n.parent.initializer||65536&pg(Sg(n.parent.initializer))||(i=fg(i,524288)),199===n.kind)if(t.dotDotDotToken){if(2&(i=hc(i)).flags||!oy(i))return Sn(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Pe;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=Ua(i,a,t.symbol)}else{var l=t.propertyName||t.name;r=Ga(t,i_(i,Lu(l),32,l))}else{var u=Bx(65|(t.dotDotDotToken?0:128),i,Me,n),_=n.elements.indexOf(t);r=t.dotDotDotToken?Ig(i,Bp)?Rg(i,(function(e){return du(e,_)})):ru(u):Sp(i)?Ga(t,o_(i,O_(_),32|(Qm(t)?16:0),t.name)||Pe):u}return t.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?!W||32768&Gp(_b(t))?r:za(r):db(t,Su([za(r),_b(t)],2)):r}function Xa(t){var r=e.getJSDocType(t);if(r)return V_(r)}function Qa(t){var r=e.skipParentheses(t);return 202===r.kind&&0===r.elements.length}function $a(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),W&&r?Yp(e,t):e}function Za(t,r){if(e.isVariableDeclaration(t)&&241===t.parent.parent.kind){var n=Ru(Iy(kb(t.parent.parent.expression)));return 4456448&n.flags?Bu(n):Ue}if(e.isVariableDeclaration(t)&&242===t.parent.parent.kind)return Rx(t.parent.parent)||Ne;if(e.isBindingPattern(t.parent))return Ya(t);var i,a,o=e.isPropertyDeclaration(t)||e.isPropertySignature(t),s=r&&(o&&!!t.questionToken||e.isParameter(t)&&(!!t.questionToken||Bc(t))||Vc(t)),c=mo(t);if(c)return $a(c,o,s);if((X||e.isInJSFile(t))&&e.isVariableDeclaration(t)&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(8388608&t.flags)){if(!(2&e.getCombinedNodeFlags(t)||t.initializer&&(i=t.initializer,a=e.skipParentheses(i),104!==a.kind&&(79!==a.kind||Xf(a)!==oe))))return Fe;if(t.initializer&&Qa(t.initializer))return Bt}if(e.isParameter(t)){var l=t.parent;if(171===l.kind&&fs(l)){var u=e.getDeclarationOfKind(ji(t.parent),170);if(u){var _=Gc(u),d=tE(l);return d&&t===d?(e.Debug.assert(!d.type),Co(_.thisParameter)):Zc(_)}}if(e.isInJSFile(t)){var p=e.getJSDocType(l);if(p&&e.isFunctionTypeNode(p)){var f=Gc(p),g=l.parameters.indexOf(t);return t.dotDotDotToken?vv(f,g):yv(f,g)}}if(h="this"===t.symbol.escapedName?Tm(l):Cm(t))return $a(h,!1,s)}if(e.hasOnlyExpressionInitializer(t)&&t.initializer){if(e.isInJSFile(t)&&!e.isParameter(t)){var m=oo(t,ji(t),e.getDeclaredExpandoInitializer(t));if(m)return m}return $a(h=db(t,_b(t)),o,s)}if(e.isPropertyDeclaration(t)&&(X||e.isInJSFile(t))){if(e.hasStaticModifier(t)){var y=e.filter(t.parent.members,e.isClassStaticBlockDeclaration);return h=y.length?function(t,r){for(var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=0,a=r;i<a.length;i++){var o=a[i],s=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(s.expression,s),e.setParent(s,o),s.flowNode=o.returnFlowNode;var c=io(s,t);if(!X||c!==Fe&&c!==Bt||Sn(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,ha(t),ba(c)),!Ig(c,Py))return kx(c)}}(t.symbol,y):2&e.getEffectiveModifierFlags(t)?dp(t.symbol):void 0,h&&$a(h,!0,s)}var h,v=qi(t.parent);return(h=v?no(t.symbol,v):2&e.getEffectiveModifierFlags(t)?dp(t.symbol):void 0)&&$a(h,!0,s)}return e.isJsxAttribute(t)?qe:e.isBindingPattern(t.name)?_o(t.name,!1,!0):void 0}function eo(t){if(t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration)){var r=Bn(t);return void 0===r.isConstructorDeclaredProperty&&(r.isConstructorDeclaredProperty=!1,r.isConstructorDeclaredProperty=!!ro(t)&&e.every(t.declarations,(function(r){return e.isBinaryExpression(r)&&Im(r)&&(205!==r.left.kind||e.isStringOrNumericLiteralLike(r.left.argumentExpression))&&!so(void 0,r,t,r)}))),r.isConstructorDeclaredProperty}return!1}function to(t){var r=t.valueDeclaration;return r&&e.isPropertyDeclaration(r)&&!e.getEffectiveTypeAnnotationNode(r)&&!r.initializer&&(X||e.isInJSFile(r))}function ro(t){if(t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=e.getThisContainer(i,!1);if(a&&(169===a.kind||Zh(a)))return a}}function no(t,r){var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(i.expression,i),e.setParent(i,r),i.flowNode=r.returnFlowNode;var a=io(i,t);return!X||a!==Fe&&a!==Bt||Sn(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,ha(t),ba(a)),Ig(a,Py)?void 0:kx(a)}function io(t,r){var n=(null==r?void 0:r.valueDeclaration)&&(!to(r)||2&e.getEffectiveModifierFlags(r.valueDeclaration))&&dp(r)||Me;return am(t,Fe,n)}function ao(t,r){var n,i=e.getAssignedExpandoInitializer(t.valueDeclaration);if(i){var a=e.getJSDocTypeTag(i);return a&&a.typeExpression?V_(a.typeExpression):t.valueDeclaration&&oo(t.valueDeclaration,t,i)||Op(lb(i))}var o=!1,s=!1;if(eo(t)&&(n=no(t,ro(t))),!n){var c=void 0;if(t.declarations){for(var l=void 0,u=0,_=t.declarations;u<_.length;u++){var d=_[u],p=e.isBinaryExpression(d)||e.isCallExpression(d)?d:e.isAccessExpression(d)?e.isBinaryExpression(d.parent)?d.parent:d:void 0;if(p){var f=e.isAccessExpression(p)?e.getAssignmentDeclarationPropertyAccessKind(p):e.getAssignmentDeclarationKind(p);(4===f||e.isBinaryExpression(p)&&Im(p,f))&&(lo(p)?o=!0:s=!0),e.isCallExpression(p)||(l=so(l,p,t,d)),l||(c||(c=[])).push(e.isBinaryExpression(p)||e.isCallExpression(p)?co(t,r,p,f):$e)}}n=l}if(!n){if(!e.length(c))return Pe;var g=o&&t.declarations?function(t,r){return e.Debug.assert(t.length===r.length),t.filter((function(t,n){var i=r[n],a=e.isBinaryExpression(i)?i:e.isBinaryExpression(i.parent)?i.parent:void 0;return a&&lo(a)}))}(c,t.declarations):void 0;if(s){var m=dp(t);m&&((g||(g=[])).push(m),o=!0)}n=Su(e.some(g,(function(e){return!!(-98305&e.flags)}))?g:c,2)}}var y=pf($a(n,!1,s&&!o));return t.valueDeclaration&&Og(y,(function(e){return!!(-98305&e.flags)}))===$e?(mf(t.valueDeclaration,Ne),Ne):y}function oo(t,r,n){var i,a;if(e.isInJSFile(t)&&n&&e.isObjectLiteralExpression(n)&&!n.properties.length){for(var o=e.createSymbolTable();e.isBinaryExpression(t)||e.isPropertyAccessExpression(t);){var s=ji(t);(null===(i=null==s?void 0:s.exports)||void 0===i?void 0:i.size)&&Mn(o,s.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var c=ji(t);(null===(a=null==c?void 0:c.exports)||void 0===a?void 0:a.size)&&Mn(o,c.exports);var l=ra(r,o,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=8192,l}}function so(t,r,n,i){var a,o=e.getEffectiveTypeAnnotationNode(r.parent);if(o){var s=pf(V_(o));if(!t)return s;t===Pe||s===Pe||xd(t,s)||Nx(void 0,t,i,s)}if(null===(a=n.parent)||void 0===a?void 0:a.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(n.parent.valueDeclaration);if(c){var l=Sc(V_(c),n.escapedName);if(l)return ko(l)}}return t}function co(t,r,n,i){if(e.isCallExpression(n)){if(r)return Co(r);var a=lb(n.arguments[2]),o=ja(a,"value");if(o)return o;var s=ja(a,"get");if(s){var c=vh(s);if(c)return Zc(c)}var l=ja(a,"set");if(l){var u=vh(l);if(u)return Tv(u)}return Ne}if(function(t,r){return e.isPropertyAccessExpression(t)&&108===t.expression.kind&&e.forEachChildRecursively(r,(function(e){return Zf(t,e)}))}(n.left,n.right))return Ne;var _=r?Co(r):Op(lb(n.right));if(524288&_.flags&&2===i&&"export="===t.escapedName){var d=Xs(_),p=e.createSymbolTable();e.copyEntries(d.members,p);var f=p.size;r&&!r.exports&&(r.exports=e.createSymbolTable()),(r||t).exports.forEach((function(t,r){var n,i=p.get(r);if(i&&i!==t)if(111551&t.flags&&111551&i.flags){if(t.valueDeclaration&&i.valueDeclaration&&e.getSourceFileOfNode(t.valueDeclaration)!==e.getSourceFileOfNode(i.valueDeclaration)){var a=e.unescapeLeadingUnderscores(t.escapedName),o=(null===(n=e.tryCast(i.valueDeclaration,e.isNamedDeclaration))||void 0===n?void 0:n.name)||i.valueDeclaration;e.addRelatedInfo(Sn(t.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(o,e.Diagnostics._0_was_also_declared_here,a)),e.addRelatedInfo(Sn(o,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_was_also_declared_here,a))}var s=Nn(t.flags|i.flags,r);s.type=Su([Co(t),Co(i)]),s.valueDeclaration=i.valueDeclaration,s.declarations=e.concatenate(i.declarations,t.declarations),p.set(r,s)}else p.set(r,In(t,i));else p.set(r,t)}));var g=ra(f!==p.size?void 0:d.symbol,p,d.callSignatures,d.constructSignatures,d.indexInfos);return g.objectFlags|=8192&e.getObjectFlags(_),g.symbol&&32&g.symbol.flags&&_===Go(g.symbol)&&(g.objectFlags|=16777216),g}return Cp(_)?(mf(n,Rt),Rt):_}function lo(t){var r=e.getThisContainer(t,!1);return 169===r.kind||254===r.kind||211===r.kind&&!e.isPrototypePropertyAssignment(r.parent)}function uo(t,r,n){return t.initializer?$a(db(t,_b(t,e.isBindingPattern(t.name)?_o(t.name,!0,!1):Le))):e.isBindingPattern(t.name)?_o(t.name,r,n):(n&&!go(t)&&mf(t,Ne),r?Ie:Ne)}function _o(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),199===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=262272;e.forEach(t.elements,(function(e){var t=e.propertyName||e.name;if(e.dotDotDotToken)i=_l(Ue,Ne,!1);else{var s=Lu(t);if(us(s)){var c=gs(s),l=Nn(4|(e.initializer?16777216:0),c);l.type=uo(e,r,n),l.bindingElement=e,a.set(l.escapedName,l)}else o|=512}}));var s=ra(void 0,a,e.emptyArray,e.emptyArray,i?[i]:e.emptyArray);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=262144),s}(t,r,n):function(t,r,n){var i,a=t.elements,o=e.lastOrUndefined(a),s=o&&201===o.kind&&o.dotDotDotToken?o:void 0;if(0===a.length||1===a.length&&s)return U>=2?(i=Ne,eu($l(!0),[i])):Rt;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?Ne:uo(t,r,n)})),l=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||Qm(t))}),a.length-1)+1,u=e.map(a,(function(e,t){return e===s?4:t>=l?2:1})),_=cu(c,u);return r&&((_=Dl(_)).pattern=t,_.objectFlags|=262144),_}(t,r,n)}function po(e,t){return fo(Za(e,!0),e,t)}function fo(t,r,n){return t?(4096&t.flags&&(i=r.parent,a=ji(i),(o=Ut||(Ut=zl("SymbolConstructor",!1)))&&a&&a===o)&&(t=R_(r)),n&&yf(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==ji(r)&&(t=Xe),pf(t)):(t=e.isParameter(r)&&r.dotDotDotToken?Rt:Ne,n&&(go(r)||mf(r,t)),t);var i,a,o}function go(t){var r=e.getRootDeclaration(t);return Ub(162===r.kind?r.parent:r)}function mo(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return V_(r)}function yo(t){if(t)return 170===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function ho(e){var t=yo(e);return t&&V_(t)}function vo(t){var r=Bn(t);return r.type||(r.type=bo(t)||e.Debug.fail("Read type of accessor must always produce a type"))}function bo(t,r){if(void 0===r&&(r=!1),!Oa(t,0))return Pe;var n=xo(t,r);return Ra()||(n=Ne,X&&Sn(e.getDeclarationOfKind(t,170),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,ha(t))),n}function xo(t,r){void 0===r&&(r=!1);var n=e.getDeclarationOfKind(t,170),i=e.getDeclarationOfKind(t,171),a=ho(i);if(r&&a)return c(a,t);if(n&&e.isInJSFile(n)){var o=Xa(n);if(o)return c(o,t)}var s=ho(n);return s?c(s,t):a||(n&&n.body?c(Iv(n),t):i?(Ub(i)||Tn(X,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ha(t)),Ne):n?(e.Debug.assert(!!n,"there must exist a getter as we are current checking either setter or getter in this function"),Ub(n)||Tn(X,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ha(t)),Ne):void 0);function c(t,r){return 1&e.getCheckFlags(r)?dd(t,Bn(r).mapper):t}}function Do(t){var r=Jo(Go(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function So(t){var r=Bn(t),n=r;if(!r.type){var i=t.valueDeclaration&&tv(t.valueDeclaration,!1);if(i){var a=ev(t,i);a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Ne;if(r&&(219===r.kind||e.isAccessExpression(r)&&219===r.parent.kind))return ao(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=Ai(t);if(n!==t){if(!Oa(t,0))return Pe;var i=Bi(t.exports.get("export=")),a=ao(i,i===n?void 0:n);return Ra()?a:To(t)}}var o=Qi(16,t);if(32&t.flags){var s=Do(t);return s?Fu([o,s]):o}return W&&16777216&t.flags?Yp(o):o}(t)}return r.type}function Eo(e){var t=Bn(e);return t.type||(t.type=$o(e))}function To(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Sn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ha(t)),Pe):(X&&(162!==r.kind||r.initializer)&&Sn(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,ha(t)),Ne)}function Co(t){var r=e.getCheckFlags(t);return 65536&r?function(t){var r=Bn(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?Su(r.deferralConstituents):Fu(r.deferralConstituents)),r.type}(t):1&r?function(e){var t=Bn(e);if(!t.type){if(!Oa(e,0))return t.type=Pe;var r=dd(Co(t.target),t.mapper);Ra()||(r=To(e)),t.type=r}return t.type}(t):262144&r?function(t){if(!t.type){var r=t.mappedType;if(!Oa(t,0))return r.containsError=!0,Pe;var n=dd(Us(r.target||r),td(r.mapper,js(r),t.keyType)),i=W&&16777216&t.flags&&!Hv(n,49152)?Yp(n,!0):524288&t.checkFlags?nf(n):n;Ra()||(Sn(_,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ha(t),ba(r)),i=Pe),t.type=i}return t.type}(t):8192&r?function(e){var t=Bn(e);return t.type||(t.type=Pf(e.propertyType,e.mappedType,e.constraintType)),t.type}(t):7&t.flags?function(t){var r=Bn(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=es(Ji(t))).typeParameters?xl(r,e.map(r.typeParameters,(function(e){return Ne}))):r;var r;if(t===ue)return Ne;if(134217728&t.flags&&t.valueDeclaration){var n=ji(e.getSourceFileOfNode(t.valueDeclaration)),i=Nn(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),ra(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return $?Le:Ne;var l=$D(c);return Ja(l)||l===Le?l:Pe}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?pf(Op(kb(s.statements[0].expression))):_t;if(!Oa(t,0))return 512&t.flags&&!(67108864&t.flags)?So(t):To(t);if(269===s.kind)o=fo(lb(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=ao(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return So(t);o=e.isBinaryExpression(s.parent)?ao(t):mo(s)||Ne}else if(e.isPropertyAssignment(s))o=mo(s)||mb(s);else if(e.isJsxAttribute(s))o=mo(s)||ly(s);else if(e.isShorthandPropertyAssignment(s))o=mo(s)||gb(s.name,0);else if(e.isObjectLiteralMethod(s))o=mo(s)||yb(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=po(s,!0);else if(e.isEnumDeclaration(s))o=So(t);else if(e.isEnumMember(s))o=Eo(t);else{if(!e.isAccessor(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=xo(t)||e.Debug.fail("Non-write accessor resolution must always produce a type")}return Ra()?o:512&t.flags&&!(67108864&t.flags)?So(t):To(t)}(t);r.type||(r.type=n)}return r.type}(t):9136&t.flags?So(t):8&t.flags?Eo(t):98304&t.flags?vo(t):2097152&t.flags?function(t){var r=Bn(t);if(!r.type){var n=fi(t),i=t.declarations&&_i(ti(t),!0);r.type=(null==i?void 0:i.declarations)&&OD(i.declarations)&&t.declarations.length?function(t){var r=e.getSourceFileOfNode(t.declarations[0]),n=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression)})),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),n):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),n);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.endFlowNode,am(a,Fe,Me)}(i):OD(t.declarations)?Fe:111551&n.flags?Co(n):Pe}return r.type}(t):Pe}function ko(e){return tf(Co(e),!!(16777216&e.flags))}function Ao(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function No(t){return 4&e.getObjectFlags(t)?t.target:t}function Fo(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=No(n);return i===r||e.some(Uo(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function wo(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,Zo(ji(a)))}return t}function Po(t,r){for(;;){if((t=t.parent)&&e.isBinaryExpression(t)){var n=e.getAssignmentDeclarationKind(t);if(6===n||3===n){var i=ji(t.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,(function(e){return t===e}))&&(t=i.parent.valueDeclaration)}}if(!t)return;switch(t.kind){case 255:case 224:case 256:case 172:case 173:case 166:case 177:case 178:case 312:case 254:case 167:case 211:case 212:case 257:case 339:case 340:case 334:case 333:case 193:case 187:var a=Po(t,r);if(193===t.kind)return e.append(a,Zo(ji(t.typeParameter)));if(187===t.kind)return e.concatenate(a,m_(t));var o=wo(a,e.getEffectiveTypeParameterDeclarations(t)),s=r&&(255===t.kind||224===t.kind||256===t.kind||Zh(t))&&Go(ji(t)).thisType;return s?e.append(o,s):o;case 335:var c=e.getParameterSymbolFromJSDoc(t);c&&(t=c.valueDeclaration);break;case 315:return a=Po(t,r),t.tags?wo(a,e.flatMap(t.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}))):a}}}function Io(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,256);return e.Debug.assert(!!r,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Po(r)}function Oo(t){if(t.declarations){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(256===a.kind||255===a.kind||224===a.kind||Zh(a)||e.isTypeAlias(a)){var o=a;r=wo(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}}function Lo(e){var t=Tc(e,1);if(1===t.length){var r=t[0];if(!r.typeParameters&&1===r.parameters.length&&j(r)){var n=_v(r.parameters[0]);return Ja(n)||Dp(n)===Ne}}return!1}function Mo(e){if(Tc(e,1).length>0)return!0;if(8650752&e.flags){var t=sc(e);return!!t&&Lo(t)}return!1}function Ro(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function Bo(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(Tc(t,1),(function(t){return(a||i>=Kc(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function jo(t,r,n){var i=Bo(t,r,n),a=e.map(r,V_);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?nl(t,a,e.isInJSFile(n)):t}))}function Jo(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=Ro(t);if(!i)return t.resolvedBaseConstructorType=Me;if(!Oa(t,1))return Pe;var a=kb(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),kb(n.expression)),2621440&a.flags&&Xs(a),!Ra())return Sn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ha(t.symbol)),t.resolvedBaseConstructorType=Pe;if(!(1&a.flags||a===Ve||Mo(a))){var o=Sn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,ba(a));if(262144&a.flags){var s=ml(a),c=Le;if(s){var l=Tc(s,1);l[0]&&(c=Zc(l[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ha(a.symbol),ba(c)))}return t.resolvedBaseConstructorType=Pe}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function Vo(t,r){Sn(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ba(r,void 0,2))}function Uo(t){if(!t.baseTypesResolved){if(Oa(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[Ko(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=pc(Jo(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=Ro(t),a=r.symbol?es(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=El(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=Cl(i,r.symbol);else if(1&r.flags)n=r;else{var o=jo(r,i.typeArguments,i);if(!o.length)return Sn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=Zc(o[0])}if(n===Pe)return t.resolvedBaseTypes=e.emptyArray;var s=hc(n);if(!zo(s)){var c=Dc(void 0,n),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ba(s));return ln.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),t.resolvedBaseTypes=e.emptyArray}if(t===s||Fo(s,t))return Sn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ba(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];if(256===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=hc(V_(s));c!==Pe&&(zo(c)?t===c||Fo(c,t)?Vo(i,t):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):Sn(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(t)):e.Debug.fail("type must be class or interface"),!Ra()&&t.symbol.declarations))for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];255!==i.kind&&256!==i.kind||Vo(i,t)}t.baseTypesResolved=!0}return t.resolvedBaseTypes}function Ko(t){var r=e.sameMap(t.typeParameters,(function(e,r){return 8&t.elementFlags[r]?i_(e,Ke):e}));return ru(Su(r||e.emptyArray),t.readonly)}function zo(t){if(262144&t.flags){var r=sc(t);if(r)return zo(r)}return!!(67633153&t.flags&&!Ys(t)||2097152&t.flags&&e.every(t.types,zo))}function Go(t){var r,n,i,a,o,s=Bn(t),c=s;if(!s.declaredType){var l=32&t.flags?1:2,u=ev(t,t.valueDeclaration&&((o=(null==(a=null===(n=null==(i=(r=t.valueDeclaration)&&tv(r,!0))?void 0:i.exports)||void 0===n?void 0:n.get("prototype"))?void 0:a.valueDeclaration)&&function(t){if(!t.parent)return!1;for(var r=t.parent;r&&204===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&63===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}}(a.valueDeclaration))?ji(o):void 0));u&&(t=s=u);var _=c.declaredType=s.declaredType=Qi(l,t),d=Io(t),p=Oo(t);(d||p||1===l||!function(t){if(!t.declarations)return!0;for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(256===i.kind){if(128&i.flags)return!1;var a=e.getInterfaceBaseTypeNodes(i);if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var l=Di(c.expression,788968,!0);if(!l||!(64&l.flags)||Go(l).thisType)return!1}}}}return!0}(t))&&(_.objectFlags|=4,_.typeParameters=e.concatenate(d,p),_.outerTypeParameters=d,_.localTypeParameters=p,_.instantiations=new e.Map,_.instantiations.set(hl(_.typeParameters),_),_.target=_,_.resolvedTypeArguments=_.typeParameters,_.thisType=$i(t),_.thisType.isThisType=!0,_.thisType.constraint=_)}return s.declaredType}function Wo(t){var r,n=Bn(t);if(!n.declaredType){if(!Oa(t,2))return Pe;var i=e.Debug.checkDefined(null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),a=e.isJSDocTypeAlias(i)?i.typeExpression:i.type,o=a?V_(a):Pe;if(Ra()){var s=Oo(t);s&&(n.typeParameters=s,n.instantiations=new e.Map,n.instantiations.set(hl(s),o))}else o=Pe,334===i.kind?Sn(i.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,ha(t)):Sn(e.isNamedDeclaration(i)?i.name:i||i,e.Diagnostics.Type_alias_0_circularly_references_itself,ha(t));n.declaredType=o}return n.declaredType}function qo(t){return!!e.isStringLiteralLike(t)||219===t.kind&&qo(t.left)&&qo(t.right)}function Ho(t){var r=t.initializer;if(!r)return!(8388608&t.flags);switch(r.kind){case 10:case 8:case 14:return!0;case 217:return 40===r.operator&&8===r.operand.kind;case 79:return e.nodeIsMissing(r)||!!ji(t.parent).exports.get(r.escapedText);case 219:return qo(r);default:return!1}}function Yo(t){var r=Bn(t);if(void 0!==r.enumKind)return r.enumKind;var n=!1;if(t.declarations)for(var i=0,a=t.declarations;i<a.length;i++){var o=a[i];if(258===o.kind)for(var s=0,c=o.members;s<c.length;s++){var l=c[s];if(l.initializer&&e.isStringLiteralLike(l.initializer))return r.enumKind=1;Ho(l)||(n=!0)}}return r.enumKind=n?0:1}function Xo(e){return 1024&e.flags&&!(1048576&e.flags)?es(Ji(e.symbol)):e}function Qo(e){var t=Bn(e);if(t.declaredType)return t.declaredType;if(1===Yo(e)){b++;var r=[];if(e.declarations)for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(258===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],l=SS(c),u=F_(M_(void 0!==l?l:0,b,ji(c)));Bn(ji(c)).declaredType=u,r.push(w_(u))}}if(r.length){var _=Su(r,1,e,void 0);return 1048576&_.flags&&(_.flags|=1024,_.symbol=e),t.declaredType=_}}var d=Hi(32);return d.symbol=e,t.declaredType=d}function $o(e){var t=Bn(e);if(!t.declaredType){var r=Qo(Ji(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function Zo(e){var t=Bn(e);return t.declaredType||(t.declaredType=$i(e))}function es(e){return ts(e)||Pe}function ts(e){return 96&e.flags?Go(e):524288&e.flags?Wo(e):262144&e.flags?Zo(e):384&e.flags?Qo(e):8&e.flags?$o(e):2097152&e.flags?function(e){var t=Bn(e);return t.declaredType||(t.declaredType=es(fi(e)))}(e):void 0}function rs(e){switch(e.kind){case 129:case 153:case 148:case 145:case 156:case 132:case 149:case 146:case 114:case 151:case 142:case 194:return!0;case 181:return rs(e.elementType);case 176:return!e.typeArguments||e.typeArguments.every(rs)}return!1}function ns(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||rs(r)}function is(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?rs(r):!e.hasInitializer(t)}function as(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 165:case 164:return is(r);case 167:case 166:case 169:case 170:case 171:return n=r,i=e.getEffectiveReturnTypeNode(n),a=e.getEffectiveTypeParameterDeclarations(n),(169===n.kind||!!i&&rs(i))&&n.parameters.every(is)&&a.every(ns)}}var n,i,a;return!1}function os(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&&as(s)?s:id(s,r))}return i}function ss(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||cs(i)||e.set(i.escapedName,i)}}function cs(t){return!!t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration)&&e.isStatic(t.valueDeclaration)}function ls(t){if(!t.declaredProperties){var r=t.symbol,n=hs(r);t.declaredProperties=ea(n),t.declaredCallSignatures=e.emptyArray,t.declaredConstructSignatures=e.emptyArray,t.declaredIndexInfos=e.emptyArray,t.declaredCallSignatures=Hc(n.get("__call")),t.declaredConstructSignatures=Hc(n.get("__new")),t.declaredIndexInfos=dl(r)}return t}function us(e){return!!(8576&e.flags)}function _s(t){if(!e.isComputedPropertyName(t)&&!e.isElementAccessExpression(t))return!1;var r=e.isComputedPropertyName(t)?t.expression:t.argumentExpression;return e.isEntityNameExpression(r)&&us(e.isComputedPropertyName(t)?ry(t):lb(r))}function ds(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function ps(t){var r=e.getNameOfDeclaration(t);return!!r&&_s(r)}function fs(t){return!e.hasDynamicName(t)||ps(t)}function gs(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):e.Debug.fail()}function ms(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=jn(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=e.isBinaryExpression(i)?i.left:i.name,s=e.isElementAccessExpression(o)?lb(o.argumentExpression):ry(o);if(us(s)){var c=gs(s),l=i.symbol.flags,u=n.get(c);u||n.set(c,u=Nn(0,c,4096));var _=r&&r.get(c);if(u.flags&Fn(l)||_){var d=_?e.concatenate(_.declarations,u.declarations):u.declarations,p=!(8192&s.flags)&&e.unescapeLeadingUnderscores(c)||e.declarationNameToString(o);e.forEach(d,(function(t){return Sn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Property_0_was_also_declared_here,p)})),Sn(o||i,e.Diagnostics.Duplicate_property_0,p),u=Nn(0,c,4096)}return u.nameType=s,function(t,r,n){e.Debug.assert(!!(4096&e.getCheckFlags(t)),"Expected a late-bound symbol."),t.flags|=n,Bn(r.symbol).lateSymbol=t,t.declarations?r.symbol.isReplaceableByMethod||t.declarations.push(r):t.declarations=[r],111551&n&&(t.valueDeclaration&&t.valueDeclaration.kind===r.kind||(t.valueDeclaration=r))}(u,i,l),u.parent?e.Debug.assert(u.parent===t,"Existing symbol parent should match new one"):u.parent=t,a.resolvedSymbol=u}}return a.resolvedSymbol}function ys(t,r){var n=Bn(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?Ri(t):t.exports:t.members;n[r]=a||C;for(var o=e.createSymbolTable(),s=0,c=t.declarations||e.emptyArray;s<c.length;s++){var l=c[s],u=e.getMembersOfDeclaration(l);if(u)for(var _=0,d=u;_<d.length;_++){var p=d[_];i===e.hasStaticModifier(p)&&ps(p)&&ms(t,a,o,p)}}var f=t.assignmentDeclarationMembers;if(f)for(var g=0,m=e.arrayFrom(f.values());g<m.length;g++){p=m[g];var y=e.getAssignmentDeclarationKind(p);i===!(3===y||e.isBinaryExpression(p)&&Im(p,y)||9===y||6===y)&&ps(p)&&ms(t,a,o,p)}n[r]=function(t,r){if(!(null==t?void 0:t.size))return r;if(!(null==r?void 0:r.size))return t;var n=e.createSymbolTable();return Mn(n,t),Mn(n,r),n}(a,o)||C}return n[r]}function hs(e){return 6256&e.flags?ys(e,"resolvedMembers"):e.members||C}function vs(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=Bn(t);if(!r.lateSymbol&&e.some(t.declarations,ps)){var n=Bi(t.parent);e.some(t.declarations,e.hasStaticModifier)?Oi(n):hs(n)}return r.lateSymbol||(r.lateSymbol=t)}return t}function bs(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=El(t);if(e.length(i.typeParameters)===e.length(a)){var o=xl(i,e.concatenate(a,[r||i.thisType]));return n?pc(o):o}}else if(2097152&t.flags){var s=e.sameMap(t.types,(function(e){return bs(e,r,n)}));return s!==t.types?Fu(s):t}return n?pc(t):t}function xs(t,r,n,i){var a,o,s,c,l;e.rangeEquals(n,i,0,n.length)?(o=r.symbol?hs(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,l=r.declaredIndexInfos):(a=q_(n,i),o=os(r.declaredProperties,a,1===n.length),s=G_(r.declaredCallSignatures,a),c=G_(r.declaredConstructSignatures,a),l=W_(r.declaredIndexInfos,a));var u=Uo(r);if(u.length){r.symbol&&o===hs(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),ta(t,o,s,c,l);for(var _=e.lastOrUndefined(i),d=0,p=u;d<p.length;d++){var f=p[d],g=_?bs(dd(f,a),_):f;ss(o,ec(g)),s=e.concatenate(s,Tc(g,0)),c=e.concatenate(c,Tc(g,1));var m=g!==Ne?Fc(g):[_l(Ue,Ne,!1)];l=e.concatenate(l,e.filter(m,(function(e){return!Cc(l,e.keyType)})))}}ta(t,o,s,c,l)}function Ds(e,t,r,n,i,a,o,s){var c=new y(_e,s);return c.declaration=e,c.typeParameters=t,c.parameters=n,c.thisParameter=r,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function Ss(e){var t=Ds(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function Es(e,t){var r=Ss(e);return r.compositeSignatures=t,r.compositeKind=1048576,r.target=void 0,r.mapper=void 0,r}function Ts(t,r){if((24&t.flags)===r)return t;t.optionalCallSignatureCache||(t.optionalCallSignatureCache={});var n=8===r?"inner":"outer";return t.optionalCallSignatureCache[n]||(t.optionalCallSignatureCache[n]=function(t,r){e.Debug.assert(8===r||16===r,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var n=Ss(t);return n.flags|=r,n}(t,r))}function Cs(t,r){if(j(t)){var n=t.parameters.length-1,i=Co(t.parameters[n]);if(Bp(i))return[a(i,n)];if(!r&&1048576&i.flags&&e.every(i.types,Bp))return e.map(i.types,(function(e){return a(e,n)}))}return[t.parameters];function a(r,n){var i=El(r),a=r.target.labeledElementDeclarations,o=e.map(i,(function(e,i){var o=!!a&&dv(a[i])||pv(t,n+i,r),s=r.target.elementFlags[i],c=Nn(1,o,12&s?32768:2&s?16384:0);return c.type=4&s?ru(e):e,c}));return e.concatenate(t.parameters.slice(0,n),o)}}function ks(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(yp(s,t,r,n,i,r?Ed:Dd))return s}}function As(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!ks(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:ks(t[i],r,!0,!1,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function Ns(t){for(var r,n,i=0;i<t.length;i++){if(0===t[i].length)return e.emptyArray;t[i].length>1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a<o.length;a++){var s=o[a];if(!r||!ks(r,s,!1,!1,!0)){var c=As(t,s,i);if(c){var l=s;if(c.length>1){var u=s.thisParameter,_=e.forEach(c,(function(e){return e.thisParameter}));_&&(u=of(_,Fu(e.mapDefined(c,(function(e){return e.thisParameter&&Co(e.thisParameter)}))))),(l=Es(s,c)).thisParameter=u}(r||(r=[])).push(l)}}}}if(!e.length(r)&&-1!==n){for(var d=t[void 0!==n?n:0],p=d.slice(),f=function(t){if(t!==d){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),p=r.typeParameters&&e.some(p,(function(e){return!!e.typeParameters&&!Fs(r.typeParameters,e.typeParameters)}))?void 0:e.map(p,(function(t){return function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=q_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=bv(e),i=bv(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Dv(e)||Dv(t),l=c&&!Dv(a),u=new Array(s+(l?1:0)),_=0;_<s;_++){var d=hv(a,_);a===t&&(d=dd(d,r));var p=hv(o,_)||Le;o===t&&(p=dd(p,r));var f=Fu([d,p]),g=c&&!l&&_===s-1,m=_>=xv(a)&&_>=xv(o),y=_>=n?void 0:pv(e,_),h=_>=i?void 0:pv(t,_),v=Nn(1|(m&&!g?16777216:0),(y===h?y:y?h?void 0:y:h)||"arg"+_);v.type=g?ru(f):f,u[_]=v}if(l){var b=Nn(1,"args");b.type=ru(yv(o,s)),o===t&&(b.type=dd(b.type,r)),u[s]=b}return u}(t,r,n),s=function(e,t,r){return e&&t?of(e,Fu([Co(e),dd(Co(t),r)])):e||t}(t.thisParameter,r.thisParameter,n),c=Ds(a,i,s,o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return c.compositeKind=1048576,c.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(c.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?Z_(t.mapper,n):n),c}(t,r)})),!p)return"break"}},g=0,m=t;g<m.length&&"break"!==f(m[g]);g++);r=p}return r||e.emptyArray}function Fs(t,r){if(e.length(t)!==e.length(r))return!1;if(!t||!r)return!0;for(var n=q_(r,t),i=0;i<t.length;i++){var a=t[i],o=r[i];if(a!==o&&!xd(ml(a)||Le,dd(ml(o)||Le,n)))return!1}return!0}function ws(t){var r=Fc(t[0]);if(r){for(var n=[],i=function(r){var i=r.keyType;e.every(t,(function(e){return!!wc(e,i)}))&&n.push(_l(i,Su(e.map(t,(function(e){return Pc(e,i)}))),e.some(t,(function(e){return wc(e,i).isReadonly}))))},a=0,o=r;a<o.length;a++)i(o[a]);return n}return e.emptyArray}function Ps(e,t){return e?t?Fu([e,t]):e:t}function Is(t){var r=e.countWhere(t,(function(e){return Tc(e,1).length>0})),n=e.map(t,Lo);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function Os(t,r){for(var n=function(r){t&&!e.every(t,(function(e){return!yp(e,r,!1,!1,!1,Dd)}))||(t=e.append(t,r))},i=0,a=r;i<a.length;i++)n(a[i]);return t}function Ls(t,r,n){if(t)for(var i=0;i<t.length;i++){var a=t[i];if(a.keyType===r.keyType)return t[i]=_l(a.keyType,n?Su([a.type,r.type]):Fu([a.type,r.type]),n?a.isReadonly||r.isReadonly:a.isReadonly&&r.isReadonly),t}return e.append(t,r)}function Ms(e,t,r){return dd(e,q_([t.indexType,t.objectType],[O_(0),cu([r])]))}function Rs(t){if(4194304&t.flags){var r=pc(t.type);return jp(r)?pu(r):Ru(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=Rs(n);if(i!==n)return _d(t,ed(t.root.checkType,i,t.mapper))}return t}return 1048576&t.flags?Rg(t,Rs):2097152&t.flags?Fu(e.sameMap(t.types,Rs)):t}function Bs(t){return 4096&e.getCheckFlags(t)}function js(e){return e.typeParameter||(e.typeParameter=Zo(ji(e.declaration.typeParameter)))}function Js(e){return e.constraintType||(e.constraintType=rc(js(e))||Pe)}function Vs(e){return e.declaration.nameType?e.nameType||(e.nameType=dd(V_(e.declaration.nameType),e.mapper)):void 0}function Us(e){return e.templateType||(e.templateType=e.declaration.type?dd($a(V_(e.declaration.type),!0,!!(4&Ws(e))),e.mapper):Pe)}function Ks(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function zs(e){var t=Ks(e);return 191===t.kind&&139===t.operator}function Gs(e){if(!e.modifiersType)if(zs(e))e.modifiersType=dd(V_(Ks(e).type),e.mapper);else{var t=Js(c_(e.declaration)),r=t&&262144&t.flags?rc(t):t;e.modifiersType=r&&4194304&r.flags?dd(r.type,e.mapper):Le}return e.modifiersType}function Ws(e){var t=e.declaration;return(t.readonlyToken?40===t.readonlyToken.kind?2:1:0)|(t.questionToken?40===t.questionToken.kind?8:4:0)}function qs(e){var t=Ws(e);return 8&t?-1:4&t?1:0}function Hs(e){var t=qs(e),r=Gs(e);return t||(Ys(r)?qs(r):0)}function Ys(t){return!!(32&e.getObjectFlags(t))&&Qu(Js(t))}function Xs(t){return t.members||(524288&t.flags?4&t.objectFlags?function(t){var r=ls(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),i=El(t);xs(t,r,n,i.length===n.length?i:e.concatenate(i,[t]))}(t):3&t.objectFlags?function(t){xs(t,ls(t),e.emptyArray,e.emptyArray)}(t):1024&t.objectFlags?function(t){for(var r=wc(t.source,Ue),n=Ws(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r?[_l(Ue,Pf(r.type,t.mappedType,t.constraintType),i&&r.isReadonly)]:e.emptyArray,s=e.createSymbolTable(),c=0,l=ec(t.source);c<l.length;c++){var u=l[c],_=8192|(i&&zv(u)?8:0),d=Nn(4|u.flags&a,u.escapedName,_);if(d.declarations=u.declarations,d.nameType=Bn(u).nameType,d.propertyType=Co(u),8388608&t.constraintType.type.flags&&262144&t.constraintType.type.objectType.flags&&262144&t.constraintType.type.indexType.flags){var p=t.constraintType.type.objectType,f=Ms(t.mappedType,t.constraintType.type,p);d.mappedType=f,d.constraintType=Ru(p)}else d.mappedType=t.mappedType,d.constraintType=t.constraintType;s.set(u.escapedName,d)}ta(t,s,e.emptyArray,e.emptyArray,o)}(t):16&t.objectFlags?function(t){var r=Bi(t.symbol);if(t.target)ta(t,C,e.emptyArray,e.emptyArray,e.emptyArray),ta(t,a=os(Qs(t.target),t.mapper,!1),n=G_(Tc(t.target,0),t.mapper),i=G_(Tc(t.target,1),t.mapper),o=W_(Fc(t.target),t.mapper));else if(2048&r.flags){ta(t,C,e.emptyArray,e.emptyArray,e.emptyArray);var n=Hc((a=hs(r)).get("__call")),i=Hc(a.get("__new"));ta(t,a,n,i,o=dl(r))}else{var a=C,o=void 0;if(r.exports&&(a=Oi(r),r===se)){var s=new e.Map;a.forEach((function(e){418&e.flags||s.set(e.escapedName,e)})),a=s}var c=void 0;if(ta(t,a,e.emptyArray,e.emptyArray,e.emptyArray),32&r.flags){var l=Jo(Go(r));11272192&l.flags?ss(a=e.createSymbolTable(function(t){var r=ea(t),n=ul(t);return n?e.concatenate(r,[n]):r}(a)),ec(l)):l===Ne&&(c=_l(Ue,Ne,!1))}var u=ul(a);if(u?o=pl(u):(c&&(o=e.append(o,c)),384&r.flags&&(32&es(r).flags||e.some(t.properties,(function(e){return!!(296&Co(e).flags)})))&&(o=e.append(o,Sr))),ta(t,a,e.emptyArray,e.emptyArray,o||e.emptyArray),8208&r.flags&&(t.callSignatures=Hc(r)),32&r.flags){var _=Go(r);i=r.members?Hc(r.members.get("__constructor")):e.emptyArray,16&r.flags&&(i=e.addRange(i.slice(),e.mapDefined(t.callSignatures,(function(e){return Zh(e.declaration)?Ds(e.declaration,e.typeParameters,e.thisParameter,e.parameters,_,void 0,e.minArgumentCount,39&e.flags):void 0})))),i.length||(i=function(t){var r=Tc(Jo(t),1),n=e.getClassLikeDeclarationOfSymbol(t.symbol),i=!!n&&e.hasSyntacticModifier(n,128);if(0===r.length)return[Ds(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,i?4:0)];for(var a=Ro(t),o=e.isInJSFile(a),s=Jl(a),c=e.length(s),l=[],u=0,_=r;u<_.length;u++){var d=_[u],p=Kc(d.typeParameters),f=e.length(d.typeParameters);if(o||c>=p&&c<=f){var g=f?al(d,zc(s,d.typeParameters,p,o)):Ss(d);g.typeParameters=t.localTypeParameters,g.resolvedReturnType=t,g.flags=i?4|g.flags:-5&g.flags,l.push(g)}}return l}(_)),t.constructSignatures=i}}}(t):32&t.objectFlags&&function(t){var r,n=e.createSymbolTable();ta(t,C,e.emptyArray,e.emptyArray,e.emptyArray);var i=js(t),a=Js(t),o=Vs(t.target||t),s=Us(t.target||t),c=pc(Gs(t)),l=Ws(t),u=Z?128:8576;if(zs(t)){for(var _=0,d=ec(c);_<d.length;_++)m(Mu(d[_],u));if(1&c.flags)m(Ue);else for(var p=0,f=Fc(c);p<f.length;p++){var g=f[p];(!Z||134217732&g.keyType.flags)&&m(g.keyType)}}else wg(Rs(a),m);function m(e){wg(o?dd(o,td(t.mapper,i,e)):e,(function(a){return function(e,a){if(us(a)){var u=gs(a),_=n.get(u);if(_)_.nameType=Su([_.nameType,a]),_.keyType=Su([_.keyType,e]);else{var d=us(e)?Sc(c,gs(e)):void 0,p=!!(4&l||!(8&l)&&d&&16777216&d.flags),f=!!(1&l||!(2&l)&&d&&zv(d)),g=W&&!p&&d&&16777216&d.flags,m=Nn(4|(p?16777216:0),u,262144|(d?Bs(d):0)|(f?8:0)|(g?524288:0));m.mappedType=t,m.nameType=a,m.keyType=e,d&&(m.syntheticOrigin=d,m.declarations=o?void 0:d.declarations),n.set(u,m)}}else if(fl(a)||33&a.flags){var y=_l(5&a.flags?Ue:40&a.flags?Ke:a,dd(s,td(t.mapper,i,e)),!!(1&l));r=Ls(r,y,!0)}}(e,a)}))}ta(t,n,e.emptyArray,e.emptyArray,r||e.emptyArray)}(t):1048576&t.flags?function(t){var r=Ns(e.map(t.types,(function(e){return e===kt?[br]:Tc(e,0)}))),n=Ns(e.map(t.types,(function(e){return Tc(e,1)}))),i=ws(t.types);ta(t,C,r,n,i)}(t):2097152&t.flags&&function(t){for(var r,n,i,a=t.types,o=Is(a),s=e.countWhere(o,(function(e){return e})),c=function(c){var l=t.types[c];if(!o[c]){var u=Tc(l,1);u.length&&s>0&&(u=e.map(u,(function(e){var t=Ss(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a<t.length;a++)a===n?i.push(e):r[a]&&i.push(Zc(Tc(t[a],1)[0]));return Fu(i)}(Zc(e),a,o,c),t}))),n=Os(n,u)}r=Os(r,Tc(l,0)),i=e.reduceLeft(Fc(l),(function(e,t){return Ls(e,t,!1)}),i)},l=0;l<a.length;l++)c(l);ta(t,C,r||e.emptyArray,n||e.emptyArray,i||e.emptyArray)}(t)),t}function Qs(t){return 524288&t.flags?Xs(t).properties:e.emptyArray}function $s(e,t){if(524288&e.flags){var r=Xs(e).members.get(t);if(r&&Wi(r))return r}}function Zs(t){if(!t.resolvedProperties){for(var r=e.createSymbolTable(),n=0,i=t.types;n<i.length;n++){for(var a=i[n],o=0,s=ec(a);o<s.length;o++){var c=s[o];if(!r.has(c.escapedName)){var l=yc(t,c.escapedName);l&&r.set(c.escapedName,l)}}if(1048576&t.flags&&0===Fc(a).length)break}t.resolvedProperties=ea(r)}return t.resolvedProperties}function ec(e){return 3145728&(e=fc(e)).flags?Zs(e):Qs(e)}function tc(e){return 262144&e.flags?rc(e):8388608&e.flags?function(e){return lc(e)?function(e){var t=nc(e.indexType);if(t&&t!==e.indexType){var r=o_(e.objectType,t,e.accessFlags);if(r)return r}var n=nc(e.objectType);if(n&&n!==e.objectType)return o_(n,e.indexType,e.accessFlags)}(e):void 0}(e):16777216&e.flags?function(e){return lc(e)?oc(e):void 0}(e):sc(e)}function rc(e){return lc(e)?ml(e):void 0}function nc(e){var t=e_(e,!1);return t!==e?t:tc(e)}function ic(e){if(!e.resolvedDefaultConstraint){var t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?dd(V_(e.root.node.trueType),e.combinedMapper):f_(e))}(e),r=g_(e);e.resolvedDefaultConstraint=Ja(t)?r:Ja(r)?t:Su([t,r])}return e.resolvedDefaultConstraint}function ac(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=e_(e.checkType,!1),r=t===e.checkType?tc(t):t;if(r&&r!==e.checkType){var n=_d(e,ed(e.root.checkType,r,e.mapper));if(!(131072&n.flags))return n}}}function oc(e){return ac(e)||ic(e)}function sc(e){if(464781312&e.flags){var t=uc(e);return t!==yt&&t!==ht?t:void 0}return 4194304&e.flags?ot:void 0}function cc(e){return sc(e)||e}function lc(e){return uc(e)!==ht}function uc(t){if(t.resolvedBaseConstraint)return t.resolvedBaseConstraint;var r=[];return t.resolvedBaseConstraint=bs(n(t),t);function n(t){if(!t.immediateBaseConstraint){if(!Oa(t,4))return ht;var n=void 0;if((r.length<10||r.length<50&&!pp(t,r,r.length))&&(r.push(t),n=function(t){if(262144&t.flags){var r=ml(t);return t.isThisType||!r?r:i(r)}if(3145728&t.flags){for(var n=[],a=!1,o=0,s=u=t.types;o<s.length;o++){var c=s[o],l=i(c);l?(l!==c&&(a=!0),n.push(l)):a=!0}return a?1048576&t.flags&&n.length===u.length?Su(n):2097152&t.flags&&n.length?Fu(n):void 0:t}if(4194304&t.flags)return ot;if(134217728&t.flags){var u=t.types,_=e.mapDefined(u,i);return _.length===u.length?ju(t.texts,_):Ue}if(268435456&t.flags)return(r=i(t.type))?Vu(t.symbol,r):Ue;if(8388608&t.flags){var d=i(t.objectType),p=i(t.indexType),f=d&&p&&o_(d,p,t.accessFlags);return f&&i(f)}return 16777216&t.flags?(r=oc(t))&&i(r):33554432&t.flags?i(t.substitute):t}(e_(t,!1)),r.pop()),!Ra()){if(262144&t.flags){var a=gl(t);if(a){var o=Sn(a,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,ba(t));!_||e.isNodeDescendantOf(a,_)||e.isNodeDescendantOf(_,a)||e.addRelatedInfo(o,e.createDiagnosticForNode(_,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}n=ht}t.immediateBaseConstraint=n||yt}return t.immediateBaseConstraint}function i(e){var t=n(e);return t!==yt&&t!==ht?t:void 0}}function _c(t){if(t.default)t.default===vt&&(t.default=ht);else if(t.target){var r=_c(t.target);t.default=r?dd(r,t.mapper):yt}else{t.default=vt;var n=t.symbol&&e.forEach(t.symbol.declarations,(function(t){return e.isTypeParameterDeclaration(t)&&t.default})),i=n?V_(n):yt;t.default===vt&&(t.default=i)}return t.default}function dc(e){var t=_c(e);return t!==yt&&t!==ht?t:void 0}function pc(t){var r=465829888&t.flags?sc(t)||Le:t;return 32&e.getObjectFlags(r)?function(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=od(e);if(t&&!e.declaration.nameType){var r=rc(t);if(r&&(vp(r)||Bp(r)))return dd(e,ed(t,r,e.mapper))}return e}(e))}(r):2097152&r.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=bs(e,e,!0))}(r):402653316&r.flags?Pt:296&r.flags?It:2112&r.flags?ur||(ur=Wl("BigInt",0,U>=7))||_t:528&r.flags?Ot:12288&r.flags?Yl(U>=2):67108864&r.flags?_t:4194304&r.flags?ot:2&r.flags&&!W?_t:r}function fc(e){return hc(pc(hc(e)))}function gc(t,r,n){for(var i,a,o,s,c,l=1048576&t.flags,u=l?0:16777216,_=4,d=0,p=!1,f=0,g=t.types;f<g.length;f++)if(!((N=pc(g[f]))===Pe||131072&N.flags)){var m=(A=Sc(N,r,n))?e.getDeclarationModifierFlagsFromSymbol(A):0;if(A){if(l?u|=16777216&A.flags:u&=A.flags,o){if(A!==o)if((hD(A)||A)===(hD(o)||o)&&-1===mp(o,A,(function(e,t){return e===t?-1:0})))p=!!o.parent&&!!e.length(Oo(o.parent));else{s||(s=new e.Map).set(O(o),o);var y=O(A);s.has(y)||s.set(y,A)}}else o=A;d|=(zv(A)?8:0)|(24&m?0:256)|(16&m?512:0)|(8&m?1024:0)|(32&m?2048:0),Ay(A)||(_=2)}else if(l){var h=!ds(r)&&Lc(N,r);h?(d|=32|(h.isReadonly?8:0),c=e.append(c,Bp(N)?Vp(N)||Me:h.type)):!zf(N)||4194304&e.getObjectFlags(N)?d|=16:(d|=32,c=e.append(c,Me))}}if(o&&!(l&&(s||48&d)&&1536&d)){if(!(s||16&d||c)){if(p){var v=of(o,o.type);return v.parent=null===(a=null===(i=o.valueDeclaration)||void 0===i?void 0:i.symbol)||void 0===a?void 0:a.parent,v.containingType=t,v.mapper=o.mapper,v}return o}for(var b,x,D,S,E=[],T=!1,C=0,k=s?e.arrayFrom(s.values()):[o];C<k.length;C++){var A=k[C];S?A.valueDeclaration&&A.valueDeclaration!==S&&(T=!0):S=A.valueDeclaration,b=e.addRange(b,A.declarations);var N=Co(A);x?N!==x&&(d|=64):(x=N,D=Bn(A).nameType),Pp(N)&&(d|=128),131072&N.flags&&(d|=131072),E.push(N)}e.addRange(E,c);var F=Nn(4|u,r,_|d);return F.containingType=t,!T&&S&&(F.valueDeclaration=S,S.symbol.parent&&(F.parent=S.symbol.parent)),F.declarations=b,F.nameType=D,E.length>2?(F.checkFlags|=65536,F.deferralParent=t,F.deferralConstituents=E):F.type=l?Su(E):Fu(E),F}}function mc(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;return o||(o=gc(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o),o}function yc(t,r,n){var i=mc(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function hc(t){return 1048576&t.flags&&33554432&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,hc);if(r===t.types)return t;var n=Su(r);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(t)):2097152&t.flags?(33554432&t.objectFlags||(t.objectFlags|=33554432|(e.some(Zs(t),vc)?67108864:0)),67108864&t.objectFlags?$e:t):t}function vc(e){return bc(e)||xc(e)}function bc(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&Co(t).flags))}function xc(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Dc(t,r){if(2097152&r.flags&&67108864&e.getObjectFlags(r)){var n=e.find(Zs(r),bc);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ba(r,void 0,536870912),ha(n));var i=e.find(Zs(r),xc);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ba(r,void 0,536870912),ha(i))}return t}function Sc(e,t,r){if(524288&(e=fc(e)).flags){var n=Xs(e),i=n.members.get(t);if(i&&Wi(i))return i;if(r)return;var a=n===mt?kt:n.callSignatures.length?At:n.constructSignatures.length?Nt:void 0;if(a){var o=$s(a,t);if(o)return o}return $s(Ct,t)}if(3145728&e.flags)return yc(e,t,r)}function Ec(t,r){if(3670016&t.flags){var n=Xs(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function Tc(e,t){return Ec(fc(e),t)}function Cc(t,r){return e.find(t,(function(e){return e.keyType===r}))}function kc(t,r){for(var n,i,a,o=0,s=t;o<s.length;o++){var c=s[o];c.keyType===Ue?n=c:Ac(r,c.keyType)&&(i?(a||(a=[i])).push(c):i=c)}return a?_l(Le,Fu(e.map(a,(function(e){return e.type}))),e.reduceLeft(a,(function(e,t){return e&&t.isReadonly}),!0)):i||(n&&Ac(r,Ue)?n:void 0)}function Ac(e,t){return Cd(e,t)||t===Ue&&Cd(e,Ke)||t===Ke&&!!(128&e.flags)&&ty(e.value)}function Nc(t){return 3670016&t.flags?Xs(t).indexInfos:e.emptyArray}function Fc(e){return Nc(fc(e))}function wc(e,t){return Cc(Fc(e),t)}function Pc(e,t){var r;return null===(r=wc(e,t))||void 0===r?void 0:r.type}function Ic(e,t){return Fc(e).filter((function(e){return Ac(t,e.keyType)}))}function Oc(e,t){return kc(Fc(e),t)}function Lc(t,r){return Oc(t,ds(r)?Xe:I_(e.unescapeLeadingUnderscores(r)))}function Mc(t){for(var r,n=0,i=e.getEffectiveTypeParameterDeclarations(t);n<i.length;n++){var a=i[n];r=e.appendIfUnique(r,Zo(a.symbol))}return r}function Rc(e){var t=[];return e.forEach((function(e,r){Zi(r)||t.push(e)})),t}function Bc(t){return e.isInJSFile(t)&&(t.type&&311===t.type.kind||e.getJSDocParameterTags(t).some((function(e){var t=e.isBracketed,r=e.typeExpression;return t||!!r&&311===r.type.kind})))}function jc(t,r){if(!e.isExternalModuleNameRelative(t)){var n=Vn(ae,'"'+t+'"',512);return n&&r?Bi(n):n}}function Jc(t){if(e.hasQuestionToken(t)||Vc(t)||Bc(t))return!0;if(t.initializer){var r=Gc(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=xv(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function Vc(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&311===n.type.kind}function Uc(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Kc(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 zc(t,r,n,i){var a=e.length(r);if(!a)return[];var o=e.length(t);if(i||o>=n&&o<=a){for(var s=t?t.slice():[],c=o;c<a;c++)s[c]=Pe;var l=qf(i);for(c=o;c<a;c++){var u=dc(r[c]);i&&u&&(xd(u,Le)||xd(u,_t))&&(u=Ne),s[c]=u?dd(u,q_(r,s)):l}return s.length=r.length,s}return t&&t.slice()}function Gc(t){var r,n=jn(t);if(!n.resolvedSignature){var i=[],a=0,o=0,s=void 0,c=!1,l=e.getImmediatelyInvokedFunctionExpression(t),u=e.isJSDocConstructSignature(t);!l&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t)&&(a|=32);for(var _=u?1:0;_<t.parameters.length;_++){var d=t.parameters[_],p=d.symbol,f=e.isJSDocParameterTag(d)?d.typeExpression&&d.typeExpression.type:d.type;p&&4&p.flags&&!e.isBindingPattern(d.name)&&(p=zn(d,p.escapedName,111551,void 0,void 0,!1)),0===_&&"this"===p.escapedName?(c=!0,s=d.symbol):i.push(p),f&&194===f.kind&&(a|=2),Vc(d)||d.initializer||d.questionToken||e.isRestParameter(d)||l&&i.length>l.arguments.length&&!f||Bc(d)||(o=i.length)}if((170===t.kind||171===t.kind)&&fs(t)&&(!c||!s)){var g=170===t.kind?171:170,m=e.getDeclarationOfKind(ji(t),g);m&&(s=(r=tE(m))&&r.symbol)}var y=169===t.kind?Go(Bi(t.parent.symbol)):void 0,h=y?y.localTypeParameters:Mc(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!qc(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=Nn(3,"args",32768);return o.type=a?ru(V_(a.type)):Rt,a&&r.pop(),r.push(o),!0}(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,128)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,128))&&(a|=4),n.resolvedSignature=Ds(t,h,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function Wc(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&vh(V_(r.typeExpression))}}function qc(t){var r=jn(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 79:return r.escapedText===le.escapedName&&Xf(r)===le;case 165:case 167:case 170:case 171:return 160===r.name.kind&&t(r.name);case 204:case 205:return t(r.expression);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Hc(t){if(!t||!t.declarations)return e.emptyArray;for(var r=[],n=0;n<t.declarations.length;n++){var i=t.declarations[n];if(e.isFunctionLike(i)){if(n>0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(Gc(i))}}return r}function Yc(e){var t=Ei(e,e);if(t){var r=Ai(t);if(r)return Co(r)}return Ne}function Xc(e){if(e.thisParameter)return Co(e.thisParameter)}function Qc(t){if(!t.resolvedTypePredicate){if(t.target){var r=Qc(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,Uc(o.kind,o.parameterName,o.parameterIndex,dd(o.type,s))):hr}else if(t.compositeSignatures)t.resolvedTypePredicate=function(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=Qc(a[i]);if(!o||2===o.kind||3===o.kind){if(2097152!==t)continue;return}if(r){if(!Eu(r,o))return}else r=o;n.push(o.type)}if(r){var s=$c(n,t);return Uc(r.kind,r.parameterName,r.parameterIndex,s)}}(t.compositeSignatures,t.compositeKind)||hr;else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration),i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=Wc(t.declaration);a&&t!==a&&(i=Qc(a))}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?function(t,r){var n=t.parameterName,i=t.type&&V_(t.type);return 190===n.kind?Uc(t.assertsModifier?2:0,void 0,void 0,i):Uc(t.assertsModifier?3:1,n.escapedText,e.findIndex(r.parameters,(function(e){return e.escapedName===n.escapedText})),i)}(n,t):i||hr}e.Debug.assert(!!t.resolvedTypePredicate)}var o,s;return t.resolvedTypePredicate===hr?void 0:t.resolvedTypePredicate}function $c(e,t,r){return 2097152!==t?Su(e,r):Fu(e)}function Zc(t){if(!t.resolvedReturnType){if(!Oa(t,3))return Pe;var r=t.target?dd(Zc(t.target),t.mapper):t.compositeSignatures?dd($c(e.map(t.compositeSignatures,Zc),t.compositeKind,2),t.mapper):el(t.declaration)||(e.nodeIsMissing(t.declaration.body)?Ne:Iv(t.declaration));if(8&t.flags?r=Qp(r):16&t.flags&&(r=Yp(r)),!Ra()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n)Sn(n,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(X){var i=t.declaration,a=e.getNameOfDeclaration(i);a?Sn(a,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(a)):Sn(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}r=Ne}t.resolvedReturnType=r}return t.resolvedReturnType}function el(t){if(169===t.kind)return Go(Bi(t.parent.symbol));if(e.isJSDocConstructSignature(t))return V_(t.parameters[0].type);var r,n=e.getEffectiveReturnTypeNode(t);if(n)return V_(n);if(170===t.kind&&fs(t)){var i=e.isInJSFile(t)&&Xa(t);if(i)return i;var a=ho(e.getDeclarationOfKind(ji(t),171));if(a)return a}return(r=Wc(t))&&Zc(r)}function tl(e){return!e.resolvedReturnType&&La(e,3)>=0}function rl(e){if(j(e)){var t=Co(e.parameters[e.parameters.length-1]),r=Bp(t)?Vp(t):t;return r&&Pc(r,Ke)}}function nl(e,t,r,n){var i=il(e,zc(t,e.typeParameters,Kc(e.typeParameters),r));if(n){var a=bh(Zc(i));if(a){var o=Ss(a);o.typeParameters=n;var s=Ss(i);return s.resolvedReturnType=cl(o),s}}return i}function il(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=hl(r),a=n.get(i);return a||n.set(i,a=al(t,r)),a}function al(e,t){return nd(e,function(e,t){return q_(e.typeParameters,t)}(e,t),!0)}function ol(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return nd(e,$_(e.typeParameters),!0)}(e)):e}function sl(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=$_(r),i=q_(r,e.map(r,(function(e){return rc(e)||Le}))),a=e.map(r,(function(e){return dd(e,i)||Le})),o=0;o<r.length-1;o++)a=z_(a,i);return a=z_(a,n),t.baseSignatureCache=nd(t,q_(r,a),!0)}return t}function cl(t){if(!t.isolatedSignatureType){var r=t.declaration?t.declaration.kind:0,n=169===r||173===r||178===r,i=Qi(16);i.members=C,i.properties=e.emptyArray,i.callSignatures=n?e.emptyArray:[t],i.constructSignatures=n?[t]:e.emptyArray,i.indexInfos=e.emptyArray,t.isolatedSignatureType=i}return t.isolatedSignatureType}function ll(e){return e.members?ul(e.members):void 0}function ul(e){return e.get("__index")}function _l(e,t,r,n){return{keyType:e,type:t,isReadonly:r,declaration:n}}function dl(t){var r=ll(t);return r?pl(r):e.emptyArray}function pl(t){if(t.declarations){for(var r=[],n=function(t){if(1===t.parameters.length){var n=t.parameters[0];n.type&&wg(V_(n.type),(function(n){fl(n)&&!Cc(r,n)&&r.push(_l(n,t.type?V_(t.type):Ne,e.hasEffectiveModifier(t,64),t))}))}},i=0,a=t.declarations;i<a.length;i++)n(a[i]);return r}return e.emptyArray}function fl(t){return!!(4108&t.flags)||Hu(t)||!!(2097152&t.flags)&&!Qu(t)&&!Xu(t)&&e.some(t.types,fl)}function gl(t){return e.mapDefined(e.filter(t.symbol&&t.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function ml(t){if(!t.constraint)if(t.target){var r=rc(t.target);t.constraint=r?dd(r,t.mapper):yt}else{var n=gl(t);if(n){var i=V_(n);1&i.flags&&i!==Pe&&(i=193===n.parent.parent.kind?ot:Le),t.constraint=i}else t.constraint=function(t){var r,n;if(null===(r=t.symbol)||void 0===r?void 0:r.declarations)for(var i=0,a=t.symbol.declarations;i<a.length;i++){var o=a[i];if(188===o.parent.kind){var s=e.walkUpParenthesizedTypesAndGetParentAndChild(o.parent.parent),c=s[0],l=void 0===c?o.parent:c,u=s[1];if(176===u.kind){var _=u,d=jb(_);if(d){var p=_.typeArguments.indexOf(l);if(p<d.length){var f=rc(d[p]);if(f){var g=dd(f,q_(d,Rb(_,d)));g!==t&&(n=e.append(n,g))}}}}else if(162===u.kind&&u.dotDotDotToken||184===u.kind||195===u.kind&&u.dotDotDotToken)n=e.append(n,ru(Le));else if(197===u.kind)n=e.append(n,Ue);else if(161===u.kind&&193===u.parent.kind)n=e.append(n,ot);else if(193===u.kind&&u.type&&e.skipParentheses(u.type)===o.parent&&187===u.parent.kind&&u.parent.extendsType===u&&193===u.parent.checkType.kind&&u.parent.checkType.type){var m=u.parent.checkType,y=V_(m.type);n=e.append(n,dd(y,Y_(Zo(ji(m.typeParameter)),m.typeParameter.constraint?V_(m.typeParameter.constraint):ot)))}}}return n&&Fu(n)}(t)||yt}return t.constraint===yt?void 0:t.constraint}function yl(t){var r=e.getDeclarationOfKind(t.symbol,161),n=e.isJSDocTemplateTag(r.parent)?e.getHostSignatureFromJSDoc(r.parent):r.parent;return n&&ji(n)}function hl(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 vl(e,t){return e?"@"+O(e)+(t?":"+hl(t):""):""}function bl(t,r){for(var n=0,i=0,a=t;i<a.length;i++){var o=a[i];o.flags&r||(n|=e.getObjectFlags(o))}return 917504&n}function xl(e,t){var r=hl(t),n=e.instantiations.get(r);return n||(n=Qi(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?bl(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function Dl(e){var t=Hi(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Sl(e,t,r,n,i){if(!n){var a=D_(n=x_(t));i=r?z_(a,r):a}var o=Qi(4,e.symbol);return o.target=e,o.node=t,o.mapper=r,o.aliasSymbol=n,o.aliasTypeArguments=i,o}function El(t){var r,n;if(!t.resolvedTypeArguments){if(!Oa(t,6))return(null===(r=t.target.localTypeParameters)||void 0===r?void 0:r.map((function(){return Pe})))||e.emptyArray;var i=t.node,a=i?176===i.kind?e.concatenate(t.target.outerTypeParameters,Rb(i,t.target.localTypeParameters)):181===i.kind?[V_(i.elementType)]:e.map(i.elements,V_):e.emptyArray;Ra()?t.resolvedTypeArguments=t.mapper?z_(a,t.mapper):a:(t.resolvedTypeArguments=(null===(n=t.target.localTypeParameters)||void 0===n?void 0:n.map((function(){return Pe})))||e.emptyArray,Sn(t.node||_,t.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,t.target.symbol&&ha(t.target.symbol)))}return t.resolvedTypeArguments}function Tl(t){return e.length(t.target.typeParameters)}function Cl(t,r){var n=es(Bi(r)),i=n.localTypeParameters;if(i){var a=e.length(t.typeArguments),o=Kc(i),s=e.isInJSFile(t);if((X||!s)&&(a<o||a>i.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Sn(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ba(n,void 0,2),o,i.length),!s)return Pe}return 176===t.kind&&au(t,e.length(t.typeArguments)!==i.length)?Sl(n,t,void 0):xl(n,e.concatenate(n.outerTypeParameters,zc(Jl(t),i,o,s)))}return Rl(t,r)?n:Pe}function kl(t,r,n,i){var a=es(t);if(a===Oe&&F.has(t.escapedName)&&r&&1===r.length)return Vu(t,r[0]);var o=Bn(t),s=o.typeParameters,c=hl(r)+vl(n,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=pd(a,q_(s,zc(r,s,Kc(s),e.isInJSFile(t.valueDeclaration))),n,i)),l}function Al(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function Nl(t){switch(t.kind){case 176:return t.typeName;case 226:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function Fl(e,t,r){return e&&Di(e,t,r)||ke}function wl(t,r){if(r===ke)return Pe;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=ji(n);if(i)return ev(i,t)}}}(r)||r).flags)return Cl(t,r);if(524288&r.flags)return function(t,r){var n=es(r),i=Bn(r).typeParameters;if(i){var a=e.length(t.typeArguments),o=Kc(i);if(a<o||a>i.length)return Sn(t,o===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ha(r),o,i.length),Pe;var s=x_(t),c=!s||!Al(r)&&Al(s)?void 0:s;return kl(r,Jl(t),c,D_(c))}return Rl(t,r)?n:Pe}(t,r);var n=ts(r);if(n)return Rl(t,r)?w_(n):Pe;if(111551&r.flags&&Ml(t)){var i=function(e,t){var r=jn(e);if(!r.resolvedJSDocType){var n=Co(t),i=n;if(t.valueDeclaration){var a=198===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=wl(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(t,r);return i||(Fl(Nl(t),788968),Co(r))}return Pe}function Pl(e,t){if(3&t.flags||t===e)return e;var r=mu(e)+">"+mu(t),n=Se.get(r);if(n)return n;var i=Hi(33554432);return i.baseType=e,i.substitute=t,Se.set(r,i),i}function Il(e){return 182===e.kind&&1===e.elements.length}function Ol(e,t,r){return Il(t)&&Il(r)?Ol(e,t.elements[0],r.elements[0]):l_(V_(t))===e?V_(r):void 0}function Ll(t,r){for(var n,i=!0;r&&!e.isStatement(r)&&315!==r.kind;){var a=r.parent;if(162===a.kind&&(i=!i),(i||8650752&t.flags)&&187===a.kind&&r===a.trueType){var o=Ol(t,a.checkType,a.extendsType);o&&(n=e.append(n,o))}r=a}return n?Pl(t,Fu(e.append(n,t))):t}function Ml(e){return!!(4194304&e.flags)&&(176===e.kind||198===e.kind)}function Rl(t,r){return!t.typeArguments||(Sn(t,e.Diagnostics.Type_0_is_not_generic,r?ha(r):t.typeName?e.declarationNameToString(t.typeName):l),!1)}function Bl(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Rl(t),Ue;case"Number":return Rl(t),Ke;case"Boolean":return Rl(t),Ye;case"Void":return Rl(t),Qe;case"Undefined":return Rl(t),Me;case"Null":return Rl(t),Je;case"Function":case"function":return Rl(t),kt;case"array":return r&&r.length||X?void 0:Rt;case"promise":return r&&r.length||X?void 0:Fv(Ne);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=V_(r[0]),i=V_(r[1]),a=n===Ue||n===Ke?[_l(n,i,!1)]:e.emptyArray;return ra(void 0,C,e.emptyArray,e.emptyArray,a)}return Ne}return Rl(t),X?void 0:Ne}}}function jl(t){var r=jn(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=ke,r.resolvedType=lb(t.parent.expression);var n=void 0,i=void 0,a=788968;Ml(t)&&((i=Bl(t))||((n=Fl(Nl(t),a,!0))===ke?n=Fl(Nl(t),900095):Fl(Nl(t),a),i=wl(t,n))),i||(i=wl(t,n=Fl(Nl(t),a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Jl(t){return e.map(t.typeArguments,V_)}function Vl(t){var r=jn(t);if(!r.resolvedType){var n=e.isThisIdentifier(t.exprName)?vm(t.exprName):kb(t.exprName);r.resolvedType=w_(pf(n))}return r.resolvedType}function Ul(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];switch(i.kind){case 255:case 256:case 258:return i}}}if(!t)return r?gt:_t;var i=es(t);return 524288&i.flags?e.length(i.typeParameters)!==r?(Sn(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?gt:_t):i:(Sn(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?gt:_t)}function Kl(t,r){return Gl(t,111551,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function zl(t,r){return Gl(t,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}function Gl(e,t,r){return zn(void 0,e,t,r,e,!1)}function Wl(e,t,r){var n=zl(e,r);return n||r?Ul(n,t):void 0}function ql(){return or||(or=Wl("ImportMeta",0,!0))||_t}function Hl(e){return Vt||(Vt=Kl("Symbol",e))}function Yl(e){return Kt||(Kt=Wl("Symbol",0,e))||_t}function Xl(e){return Gt||(Gt=Wl("Promise",1,e))||gt}function Ql(e){return qt||(qt=Kl("Promise",e))}function $l(e){return Yt||(Yt=Wl("Iterable",1,e))||gt}function Zl(e,t){void 0===t&&(t=0);var r=Gl(e,788968,void 0);return r&&Ul(r,t)}function eu(e,t){return e!==gt?xl(e,t):_t}function tu(e){return eu(zt||(zt=Wl("TypedPropertyDescriptor",1,!0))||gt,[e])}function ru(e,t){return eu(t?wt:Ft,[e])}function nu(e){switch(e.kind){case 183:return 2;case 184:return iu(e);case 195:return e.questionToken?2:e.dotDotDotToken?iu(e):1;default:return 1}}function iu(e){return J_(e.type)?4:8}function au(t,r){return!!x_(t)||ou(t)&&(181===t.kind?su(t.elementType):182===t.kind?e.some(t.elements,su):r||e.some(t.typeArguments,su))}function ou(e){var t=e.parent;switch(t.kind){case 189:case 195:case 176:case 185:case 186:case 192:case 187:case 191:case 181:case 182:return ou(t);case 257:return!0}return!1}function su(t){switch(t.kind){case 176:return Ml(t)||!!(524288&Fl(t.typeName,788968).flags);case 179:return!0;case 191:return 152!==t.operator&&su(t.type);case 189:case 183:case 195:case 311:case 309:case 310:case 304:return su(t.type);case 184:return 181!==t.type.kind||su(t.type.elementType);case 185:case 186:return e.some(t.types,su);case 192:return su(t.objectType)||su(t.indexType);case 187:return su(t.checkType)||su(t.extendsType)||su(t.trueType)||su(t.falseType)}return!1}function cu(t,r,n,i){void 0===n&&(n=!1);var a=lu(r||e.map(t,(function(e){return 1})),n,i);return a===gt?_t:t.length?uu(a,t):a}function lu(t,r,n){if(1===t.length&&4&t[0])return r?wt:Ft;var i=e.map(t,(function(e){return 1&e?"#":2&e?"?":4&e?".":"*"})).join()+(r?"R":"")+(n&&n.length?","+e.map(n,I).join(","):""),a=pe.get(i);return a||pe.set(i,a=function(t,r,n){var i,a=t.length,o=e.countWhere(t,(function(e){return!!(9&e)})),s=[],c=0;if(a){i=new Array(a);for(var l=0;l<a;l++){var u=i[l]=$i(),_=t[l];if(!(12&(c|=_))){var d=Nn(4|(2&_?16777216:0),""+l,r?8:0);d.tupleLabelDeclaration=null==n?void 0:n[l],d.type=u,s.push(d)}}}var p=s.length,f=Nn(4,"length");if(12&c)f.type=Ke;else{var g=[];for(l=o;l<=a;l++)g.push(O_(l));f.type=Su(g)}s.push(f);var m=Qi(12);return m.typeParameters=i,m.outerTypeParameters=void 0,m.localTypeParameters=i,m.instantiations=new e.Map,m.instantiations.set(hl(m.typeParameters),m),m.target=m,m.resolvedTypeArguments=m.typeParameters,m.thisType=$i(),m.thisType.isThisType=!0,m.thisType.constraint=m,m.declaredProperties=s,m.declaredCallSignatures=e.emptyArray,m.declaredConstructSignatures=e.emptyArray,m.declaredIndexInfos=e.emptyArray,m.elementFlags=t,m.minLength=o,m.fixedLength=p,m.hasRestElement=!!(12&c),m.combinedFlags=c,m.readonly=r,m.labeledElementDeclarations=n,m}(t,r,n)),a}function uu(e,t){return 8&e.objectFlags?_u(e,t):xl(e,t)}function _u(t,r){var n,i,a;if(!(14&t.combinedFlags))return xl(t,r);if(8&t.combinedFlags){var o=e.findIndex(r,(function(e,r){return!!(8&t.elementFlags[r]&&1179648&e.flags)}));if(o>=0)return Pu(e.map(r,(function(e,r){return 8&t.elementFlags[r]?e:Le})))?Rg(r[o],(function(n){return _u(t,e.replaceElement(r,o,n))})):Pe}for(var s=[],c=[],l=[],u=-1,d=-1,p=-1,f=function(o){var c=r[o],l=t.elementFlags[o];if(8&l)if(58982400&c.flags||Ys(c))h(c,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(Bp(c)){var u=El(c);if(u.length+s.length>=1e4)return Sn(_,e.isPartOfTypeNode(_)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Pe};e.forEach(u,(function(e,t){var r;return h(e,c.target.elementFlags[t],null===(r=c.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else h(Sp(c)&&Pc(c,Ke)||Pe,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else h(c,l,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},g=0;g<r.length;g++){var m=f(g);if("object"==typeof m)return m.value}for(g=0;g<u;g++)2&c[g]&&(c[g]=1);d>=0&&d<p&&(s[d]=Su(e.sameMap(s.slice(d,p+1),(function(e,t){return 8&c[d+t]?i_(e,Ke):e}))),s.splice(d+1,p-d),c.splice(d+1,p-d),null==l||l.splice(d+1,p-d));var y=lu(c,t.readonly,l);return y===gt?_t:c.length?xl(y,s):y;function h(e,t,r){1&t&&(u=c.length),4&t&&d<0&&(d=c.length),6&t&&(p=c.length),s.push(e),c.push(t),l&&r?l.push(r):l=void 0}}function du(t,r,n){void 0===n&&(n=0);var i=t.target,a=Tl(t)-n;return r>i.fixedLength?function(e){var t=Vp(e);return t&&ru(t)}(t)||cu(e.emptyArray):cu(El(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function pu(t){return Su(e.append(e.arrayOf(t.target.fixedLength,(function(e){return I_(""+e)})),Ru(t.target.readonly?wt:Ft)))}function fu(t,r){var n=e.findIndex(t.elementFlags,(function(e){return!(e&r)}));return n>=0?n:t.elementFlags.length}function gu(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(function(e){return!(e&r)}))-1}function mu(e){return e.id}function yu(t,r){return e.binarySearch(t,r,mu,e.compareValues)>=0}function hu(t,r){var n=e.binarySearch(t,r,mu,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function vu(t,r,n){var i=n.flags;if(1048576&i)return bu(t,r|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,469499904&i&&(r|=262144),n===we&&(r|=8388608),!W&&98304&i)131072&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,mu,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function bu(e,t,r){for(var n=0,i=r;n<i.length;n++)t=vu(e,t,i[n]);return t}function xu(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(1048576&a.flags){var o=a.origin;a.aliasSymbol||o&&!(1048576&o.flags)?e.pushIfUnique(t,a):o&&1048576&o.flags&&xu(t,o.types)}}}function Du(e,t){var r=Yi(e);return r.types=t,r}function Su(t,r,n,i,a){if(void 0===r&&(r=1),0===t.length)return $e;if(1===t.length)return t[0];var o=[],s=bu(o,0,t);if(0!==r){if(3&s)return 1&s?8388608&s?we:Ne:Le;if(te&&32768&s){var c=e.binarySearch(o,je,mu,e.compareValues);c>=0&&yu(o,Me)&&e.orderedRemoveItemAt(o,c)}if((402664320&s||16384&s&&32768&s)&&function(t,r,n){for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||P_(a)&&yu(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}}(o,s,!!(2&r)),128&s&&134217728&s&&function(t){var r=e.filter(t,Hu);if(r.length)for(var n=t.length,i=function(){n--;var i=t[n];128&i.flags&&e.some(r,(function(e){return Td(i,e)}))&&e.orderedRemoveItemAt(t,n)};n>0;)i()}(o),2===r&&(o=function(t,r){var n=hl(t),i=Ee.get(n);if(i)return i;for(var a=r&&e.some(t,(function(e){return!!(524288&e.flags)&&!Ys(e)&&Ud(Xs(e))})),o=t.length,s=o,c=0;s>0;){var l=t[--s];if(a||469499904&l.flags)for(var u=61603840&l.flags?e.find(ec(l),(function(e){return Fp(Co(e))})):void 0,d=u&&w_(Co(u)),p=0,f=t;p<f.length;p++){var g=f[p];if(l!==g){if(1e5===c&&c/(o-s)*o>1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((function(e){return e.id}))}),void Sn(_,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,u&&61603840&g.flags){var m=ja(g,u.escapedName);if(m&&Fp(m)&&w_(m)!==d)continue}if(Hd(l,g,fn)&&(!(1&e.getObjectFlags(No(l)))||!(1&e.getObjectFlags(No(g)))||kd(l,g))){e.orderedRemoveItemAt(t,s);break}}}}return Ee.set(n,t),t}(o,!!(524288&s)),!o))return Pe;if(0===o.length)return 65536&s?4194304&s?Je:Ve:32768&s?4194304&s?Me:Re:$e}if(!a&&1048576&s){var l=[];xu(l,t);for(var u=[],d=function(t){e.some(l,(function(e){return yu(e.types,t)}))||u.push(t)},p=0,f=o;p<f.length;p++)d(f[p]);if(!n&&1===l.length&&0===u.length)return l[0];if(e.reduceLeft(l,(function(e,t){return e+t.types.length}),0)+u.length===o.length){for(var g=0,m=l;g<m.length;g++)hu(u,m[g]);a=Du(1048576,u)}}return Tu(o,(468598819&s?0:65536)|(2097152&s?33554432:0),n,i,a)}function Eu(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Tu(e,t,r,n,i){if(0===e.length)return $e;if(1===e.length)return e[0];var a=(i?1048576&i.flags?"|"+hl(i.types):2097152&i.flags?"&"+hl(i.types):"#"+i.type.id+"|"+hl(e):hl(e))+vl(r,n),o=fe.get(a);return o||((o=Hi(1048576)).objectFlags=t|bl(e,98304),o.types=e,o.origin=i,o.aliasSymbol=r,o.aliasTypeArguments=n,2===e.length&&512&e[0].flags&&512&e[1].flags&&(o.flags|=16,o.intrinsicName="boolean"),fe.set(a,o)),o}function Cu(e,t,r){var n=r.flags;return 2097152&n?ku(e,t,r.types):(zd(r)?16777216&t||(t|=16777216,e.set(r.id.toString(),r)):(3&n?r===we&&(t|=8388608):!W&&98304&n||e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r)),t|=205258751&n),t)}function ku(e,t,r){for(var n=0,i=r;n<i.length;n++)t=Cu(e,t,w_(i[n]));return t}function Au(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!yu(i.types,t)){var a=128&t.flags?Ue:256&t.flags?Ke:2048&t.flags?ze:8192&t.flags?Xe:void 0;if(!a||!yu(i.types,a))return!1}}return!0}function Nu(t,r){if(e.every(t,(function(t){return!!(1048576&t.flags)&&e.some(t.types,(function(e){return!!(e.flags&r)}))}))){for(var n=0;n<t.length;n++)t[n]=Og(t[n],(function(e){return!(e.flags&r)}));return!0}return!1}function Fu(t,r,n){var i=new e.Map,a=ku(i,0,t),o=e.arrayFrom(i.values());if(131072&a)return e.contains(o,Ze)?Ze:$e;if(W&&98304&a&&84410368&a||67108864&a&&402783228&a||402653316&a&&67238776&a||296&a&&469891796&a||2112&a&&469889980&a||12288&a&&469879804&a||49152&a&&469842940&a)return $e;if(134217728&a&&128&a&&function(t){for(var r=t.length,n=e.filter(t,(function(e){return!!(128&e.flags)}));r>0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a<o.length;a++){if(Td(o[a],i)){e.orderedRemoveItemAt(t,r);break}if(Hu(i))return!0}}return!1}(o))return $e;if(1&a)return 8388608&a?we:Ne;if(!W&&98304&a)return 32768&a?Me:Je;if((4&a&&128&a||8&a&&256&a||64&a&&2048&a||4096&a&&8192&a)&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,zd)),0===o.length)return Le;if(1===o.length)return o[0];var s=hl(o)+vl(r,n),c=ge.get(s);if(!c){if(1048576&a)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(65536&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i<t.length;){var a=t[i];65536&e.getObjectFlags(a)?((r||(r=[t[n]])).push(a),e.orderedRemoveItemAt(t,i)):i++}if(!r)return!1;for(var o=[],s=[],c=0,l=r;c<l.length;c++)for(var u=0,_=l[c].types;u<_.length;u++)hu(o,a=_[u])&&Au(r,a)&&hu(s,a);return t[n]=Tu(s,65536),!0}(o))c=Fu(o,r,n);else if(Nu(o,32768))c=Su([Fu(o),Me],1,r,n);else if(Nu(o,65536))c=Su([Fu(o),Je],1,r,n);else{if(!Pu(o))return Pe;var l=function(e){for(var t=wu(e),r=[],n=0;n<t;n++){for(var i=e.slice(),a=n,o=e.length-1;o>=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var l=Fu(i);131072&l.flags||r.push(l)}return r}(o);c=Su(l,1,r,n,e.some(l,(function(e){return!!(2097152&e.flags)}))?Du(2097152,o):void 0)}else c=function(e,t,r){var n=Hi(2097152);return n.objectFlags=bl(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(o,r,n);ge.set(s,c)}return c}function wu(t){return e.reduceLeft(t,(function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e}),1)}function Pu(t){var r=wu(t);return!(r>=1e5&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((function(e){return e.id})),size:r}),Sn(_,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function Iu(e,t){var r=Hi(4194304);return r.type=e,r.stringsOnly=t,r}function Ou(e,t,r){return dd(e,td(t.mapper,js(t),r))}function Lu(t){return e.isPrivateIdentifier(t)?$e:e.isIdentifier(t)?I_(e.unescapeLeadingUnderscores(t.escapedText)):w_(e.isComputedPropertyName(t)?ry(t):kb(t))}function Mu(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=Bn(vs(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?I_("default"):a&&Lu(a)||(e.isKnownSymbol(t)?void 0:I_(e.symbolName(t)))}if(i&&i.flags&r)return i}return $e}function Ru(t,r,n){return void 0===r&&(r=Z),1048576&(t=hc(t)).flags?Fu(e.map(t.types,(function(e){return Ru(e,r,n)}))):2097152&t.flags?Su(e.map(t.types,(function(e){return Ru(e,r,n)}))):58982400&t.flags||jp(t)||Ys(t)&&(a=js(i=t),!function t(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===a:137363456&r.flags?e.every(r.types,t):8388608&r.flags?t(r.objectType)&&t(r.indexType):33554432&r.flags?t(r.substitute):!!(268435456&r.flags)&&t(r.type))}(Vs(i)||a))?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Iu(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Iu(e,!1))}(t,r):32&e.getObjectFlags(t)?function(t,r){var n=Og(Js(t),(function(e){return!(r&&5&e.flags)})),i=t.declaration.nameType&&V_(t.declaration.nameType),a=i&&Ig(n,(function(e){return!!(131084&e.flags)}))&&ec(pc(Gs(t)));return i?Su([Rg(n,(function(e){return Ou(i,t,e)})),Rg(Su(e.map(a||e.emptyArray,(function(e){return Mu(e,8576)}))),(function(e){return Ou(i,t,e)}))]):n}(t,n):t===we?we:2&t.flags?$e:131073&t.flags?ot:function(t,r,n){var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?function(e){var t=Yi(4194304);return t.type=e,t}(t):void 0,a=e.map(ec(t),(function(e){return Mu(e,r)})),o=e.map(Fc(t),(function(e){return e!==Sr&&e.keyType.flags&r?e.keyType===Ue&&8&r?it:e.keyType:$e}));return Su(e.concatenate(a,o),1,void 0,void 0,i)}(t,(n?128:402653316)|(r?0:12584),r===Z&&!n);var i,a}function Bu(t){if(Z)return t;var r=cr||(cr=Gl("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?kl(r,[t,Ue]):Ue}function ju(t,r){var n=e.findIndex(r,(function(e){return!!(1179648&e.flags)}));if(n>=0)return Pu(r)?Rg(r[n],(function(i){return ju(t,e.replaceElement(r,n,i))})):Pe;if(e.contains(r,we))return we;var i=[],a=[],o=t[0];if(!function e(t,r){for(var n=0;n<r.length;n++){var s=r[n];if(101248&s.flags)o+=Ju(s)||"",o+=t[n+1];else if(134217728&s.flags){if(o+=s.texts[0],!e(s.texts,s.types))return!1;o+=t[n+1]}else{if(!Qu(s)&&!qu(s))return!1;i.push(s),a.push(o),o=t[n+1]}}return!0}(t,r))return Ue;if(0===i.length)return I_(o);if(a.push(o),e.every(a,(function(e){return""===e}))&&e.every(i,(function(e){return!!(4&e.flags)})))return Ue;var s=hl(i)+"|"+e.map(a,(function(e){return e.length})).join(",")+"|"+a.join(""),c=xe.get(s);return c||xe.set(s,c=function(e,t){var r=Hi(134217728);return r.texts=e,r.types=t,r}(a,i)),c}function Ju(t){return 128&t.flags?t.value:256&t.flags?""+t.value:2048&t.flags?e.pseudoBigIntToString(t.value):98816&t.flags?t.intrinsicName:void 0}function Vu(e,t){return 1179648&t.flags?Rg(t,(function(t){return Vu(e,t)})):Qu(t)?function(e,t){var r=O(e)+","+mu(t),n=De.get(r);return n||De.set(r,n=function(e,t){var r=Hi(268435456);return r.symbol=e,r.type=t,r}(e,t)),n}(e,t):128&t.flags?I_(function(e,t){switch(F.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}(e,t.value)):t}function Uu(t){if(X)return!1;if(8192&e.getObjectFlags(t))return!0;if(1048576&t.flags)return e.every(t.types,Uu);if(2097152&t.flags)return e.some(t.types,Uu);if(465829888&t.flags){var r=uc(t);return r!==t&&Uu(r)}return!1}function Ku(t,r){return us(t)?gs(t):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function zu(t,r){if(8208&r.flags){var n=e.findAncestor(t.parent,(function(t){return!e.isAccessExpression(t)}))||t.parent;return e.isCallLikeExpression(n)?e.isCallOrNewExpression(n)&&e.isIdentifier(t)&&ug(n,t):e.every(r.declarations,(function(t){return!e.isFunctionLike(t)||!!(134217728&e.getCombinedNodeFlags(t))}))}return!0}function Gu(t,r,n,i,a,o){var s,c=a&&205===a.kind?a:void 0,l=a&&e.isPrivateIdentifier(a)?void 0:Ku(n,a);if(void 0!==l){if(256&o)return Lm(r,l)||Ne;var u=Sc(r,l);if(u){if(64&o&&a&&u.declarations&&134217728&ky(u)&&zu(a,u)&&An(null!==(s=null==c?void 0:c.argumentExpression)&&void 0!==s?s:e.isIndexedAccessTypeNode(a)?a.indexType:a,u.declarations,l),c){if(ih(u,c,ah(c.expression,r.symbol)),Gv(c,u,e.getAssignmentTargetKind(c)))return void Sn(c.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ha(u));if(8&o&&(jn(a).resolvedSymbol=u),zy(c,u))return Fe}var _=Co(u);return c&&1!==e.getAssignmentTargetKind(c)?am(c,_):_}if(Ig(r,Bp)&&ty(l)&&+l>=0){if(a&&Ig(r,(function(e){return!e.target.hasRestElement}))&&!(16&o)){var d=Wu(a);Bp(r)?Sn(d,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,ba(r),Tl(r),e.unescapeLeadingUnderscores(l)):Sn(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),ba(r))}return b(wc(r,Ke)),Rg(r,(function(e){var t=Vp(e)||Me;return 1&o?Su([t,Me]):t}))}}if(!(98304&n.flags)&&Yv(n,402665900)){if(131073&r.flags)return r;var p=Oc(r,n)||wc(r,Ue);if(p)return 2&o&&p.keyType!==Ke?void(c&&Sn(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ba(n),ba(t))):a&&p.keyType===Ue&&!Yv(n,12)?(Sn(d=Wu(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ba(n)),1&o?Su([p.type,Me]):p.type):(b(p),1&o?Su([p.type,Me]):p.type);if(131072&n.flags)return $e;if(Uu(r))return Ne;if(c&&!Qv(r)){if(zf(r)){if(X&&384&n.flags)return ln.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,ba(r))),Me;if(12&n.flags){var f=e.map(r.properties,(function(e){return Co(e)}));return Su(e.append(f,Me))}}if(r.symbol===se&&void 0!==l&&se.exports.has(l)&&418&se.exports.get(l).flags)Sn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),ba(r));else if(X&&!V.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&Xy(l,r)){var g=ba(r);Sn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,g,g+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(Pc(r,Ke))Sn(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var m=void 0;if(void 0!==l&&(m=eh(l,r)))void 0!==m&&Sn(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,ba(r),m);else{var y=function(t,r,n){var i=e.isAssignmentTarget(r)?"set":"get";if(function(e){var r=$s(t,e);if(r){var i=vh(Co(r));return!!i&&xv(i)>=1&&Cd(n,yv(i,0))}return!1}(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(r.expression);return void 0===a?a=i:a+="."+i,a}}(r,c,n);if(void 0!==y)Sn(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ba(r),y);else{var h=void 0;if(1024&n.flags)h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+ba(n)+"]",ba(r));else if(8192&n.flags){var v=xi(n.symbol,c);h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+v+"]",ba(r))}else 128&n.flags||256&n.flags?h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,ba(r)):12&n.flags&&(h=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ba(n),ba(r)));h=e.chainDiagnosticMessages(h,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ba(i),ba(r)),ln.add(e.createDiagnosticForNodeFromMessageChain(c,h))}}}return}}return Uu(r)?Ne:(a&&(d=Wu(a),384&n.flags?Sn(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,ba(r)):12&n.flags?Sn(d,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,ba(r),ba(n)):Sn(d,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ba(n))),Ja(n)?n:void 0);function b(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Sn(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ba(r))}}function Wu(e){return 205===e.kind?e.argumentExpression:192===e.kind?e.indexType:160===e.kind?e.expression:e}function qu(e){return!!(77&e.flags)}function Hu(t){return!!(134217728&t.flags)&&e.every(t.types,qu)}function Yu(e){return!!$u(e)}function Xu(e){return!!(8388608&$u(e))}function Qu(e){return!!(16777216&$u(e))}function $u(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|e.reduceLeft(t.types,(function(e,t){return e|$u(t)}),0)),25165824&t.objectFlags):33554432&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|$u(t.substitute)|$u(t.baseType)),25165824&t.objectFlags):(58982400&t.flags||Ys(t)||jp(t)?8388608:0)|(465829888&t.flags&&!Hu(t)?16777216:0)}function Zu(e){return!!(262144&e.flags&&e.isThisType)}function e_(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===ht?t:t[n];t[n]=ht;var i=e_(t.objectType,r),a=e_(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return e_(i_(t,e),n)}));return n?Fu(i):Su(i)}}(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=t_(i,a,r);if(s)return t[n]=s}if(jp(i)&&296&a.flags){var c=Up(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}return Ys(i)?t[n]=Rg(n_(i,t.indexType),(function(e){return e_(e,r)})):t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=f_(e),a=g_(e);if(131072&a.flags&&l_(i)===l_(r)){if(1&r.flags||Cd(gd(r),gd(n)))return e_(i,t);if(r_(r,n))return $e}else if(131072&i.flags&&l_(a)===l_(r)){if(!(1&r.flags)&&Cd(gd(r),gd(n)))return $e;if(1&r.flags||r_(r,n))return e_(a,t)}return e}(t,r):t}function t_(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(function(e){return e_(i_(e,r),n)}));return 2097152&t.flags||n?Fu(i):Su(i)}}function r_(e,t){return!!(131072&Su([Ps(e,t),$e]).flags)}function n_(e,t){var r=q_([js(e)],[t]),n=Z_(e.mapper,r);return dd(Us(e),n)}function i_(e,t,r,n,i,a){return void 0===r&&(r=0),o_(e,t,r,n,i,a)||(n?Pe:Le)}function a_(e,t){return Ig(e,(function(e){if(384&e.flags){var r=gs(e);if(ty(r)){var n=+r;return n>=0&&n<t}}return!1}))}function o_(e,t,r,n,i,a){if(void 0===r&&(r=0),e===we||t===we)return we;if(!Gd(e)||98304&t.flags||!Yv(t,12)||(t=Ue),V.noUncheckedIndexedAccess&&32&r&&(r|=1),Qu(t)||(n&&192!==n.kind?jp(e)&&!a_(t,e.target.fixedLength):Xu(e)&&(!Bp(e)||!a_(t,e.target.fixedLength)))){if(3&e.flags)return e;var o=1&r,s=e.id+","+t.id+","+o+vl(i,a),c=be.get(s);return c||be.set(s,c=function(e,t,r,n,i){var a=Hi(8388608);return a.objectType=e,a.indexType=t,a.accessFlags=r,a.aliasSymbol=n,a.aliasTypeArguments=i,a}(e,t,o,i,a)),c}var l=fc(e);if(1048576&t.flags&&!(16&t.flags)){for(var u=[],_=!1,d=0,p=t.types;d<p.length;d++){var f=Gu(e,l,p[d],t,n,r|(_?128:0));if(f)u.push(f);else{if(!n)return;_=!0}}if(_)return;return 4&r?Fu(u,i,a):Su(u,1,i,a)}return Gu(e,l,t,t,n,72|r)}function s_(e){var t=jn(e);if(!t.resolvedType){var r=V_(e.objectType),n=V_(e.indexType),i=x_(e),a=i_(r,n,0,e,i,D_(i));t.resolvedType=8388608&a.flags&&a.objectType===r&&a.indexType===n?Ll(a,e):a}return t.resolvedType}function c_(e){var t=jn(e);if(!t.resolvedType){var r=Qi(32,e.symbol);r.declaration=e,r.aliasSymbol=x_(e),r.aliasTypeArguments=D_(r.aliasSymbol),t.resolvedType=r,Js(r)}return t.resolvedType}function l_(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?i_(l_(e.objectType),l_(e.indexType)):e}function u_(e){return!e.isDistributive&&__(e.node.checkType)&&__(e.node.extendsType)}function __(t){return e.isTupleTypeNode(t)&&1===e.length(t.elements)&&!e.isOptionalTypeNode(t.elements[0])&&!e.isRestTypeNode(t.elements[0])}function d_(e,t){return u_(e)&&Bp(t)?El(t)[0]:t}function p_(t,r,n,i){for(var a,o;;){var s=u_(t),c=dd(d_(t,l_(t.checkType)),r),l=Yu(c),u=dd(d_(t,t.extendsType),r);if(c===we||u===we)return we;var _=void 0;if(t.inferTypeParameters){var d=bf(t.inferTypeParameters,void 0,0);l||Vf(d.inferences,c,u,1536),_=r?Z_(d.mapper,r):d.mapper}var p=_?dd(d_(t,t.extendsType),_):u;if(!l&&!Yu(p)){if(!(3&p.flags)&&(1&c.flags&&!s||!Cd(fd(c),fd(p)))){1&c.flags&&!s&&(o||(o=[])).push(dd(V_(t.node.trueType),_||r));var f=V_(t.node.falseType);if(16777216&f.flags){var g=f.root;if(g.node.parent===t.node&&(!g.isDistributive||g.checkType===t.checkType)){t=g;continue}}a=dd(f,r);break}if(3&p.flags||Cd(gd(c),gd(p))){a=dd(V_(t.node.trueType),_||r);break}}(a=Hi(16777216)).root=t,a.checkType=dd(t.checkType,r),a.extendsType=dd(t.extendsType,r),a.mapper=r,a.combinedMapper=_,a.aliasSymbol=n||t.aliasSymbol,a.aliasTypeArguments=n?i:z_(t.aliasTypeArguments,r);break}return o?Su(e.append(o,a)):a}function f_(e){return e.resolvedTrueType||(e.resolvedTrueType=dd(V_(e.root.node.trueType),e.mapper))}function g_(e){return e.resolvedFalseType||(e.resolvedFalseType=dd(V_(e.root.node.falseType),e.mapper))}function m_(t){var r;return t.locals&&t.locals.forEach((function(t){262144&t.flags&&(r=e.append(r,es(t)))})),r}function y_(t){return e.isIdentifier(t)?[t]:e.append(y_(t.left),t.right)}function h_(t){var r=jn(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return Sn(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=ke,r.resolvedType=Pe;if(!e.isLiteralImportTypeNode(t))return Sn(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=ke,r.resolvedType=Pe;var n=t.isTypeOf?111551:4194304&t.flags?900095:788968,i=Ei(t,t.argument.literal);if(!i)return r.resolvedSymbol=ke,r.resolvedType=Pe;var a=Ai(i,!1);if(e.nodeIsMissing(t.qualifier))a.flags&n?r.resolvedType=v_(t,r,a,n):(Sn(t,111551===n?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,t.argument.literal.text),r.resolvedSymbol=ke,r.resolvedType=Pe);else{for(var o=y_(t.qualifier),s=a,c=void 0;c=o.shift();){var l=o.length?1920:n,u=Bi(pi(s)),_=t.isTypeOf?Sc(Co(u),c.escapedText):Vn(Oi(u),c.escapedText,l);if(!_)return Sn(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,xi(s),e.declarationNameToString(c)),r.resolvedType=Pe;jn(c).resolvedSymbol=_,jn(c.parent).resolvedSymbol=_,s=_}r.resolvedType=v_(t,r,s,n)}}return r.resolvedType}function v_(e,t,r,n){var i=pi(r);return t.resolvedSymbol=i,111551===n?Co(r):wl(e,i)}function b_(t){var r=jn(t);if(!r.resolvedType){var n=x_(t);if(0!==hs(t.symbol).size||n){var i=Qi(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=D_(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=ru(i)),r.resolvedType=i}else r.resolvedType=ft}return r.resolvedType}function x_(t){for(var r=t.parent;e.isParenthesizedTypeNode(r)||e.isJSDocTypeExpression(r)||e.isTypeOperatorNode(r)&&143===r.operator;)r=r.parent;return e.isTypeAlias(r)?ji(r):void 0}function D_(e){return e?Oo(e):void 0}function S_(e){return!!(524288&e.flags)&&!Ys(e)}function E_(e){return Kd(e)||!!(474058748&e.flags)}function T_(t,r){if(!(1048576&t.flags))return t;if(e.every(t.types,E_))return e.find(t.types,Kd)||_t;var n=e.find(t.types,(function(e){return!E_(e)}));return n?e.find(t.types,(function(e){return e!==n&&!E_(e)}))?t:function(t){for(var n=e.createSymbolTable(),i=0,a=ec(t);i<a.length;i++){var o=a[i];if(24&e.getDeclarationModifierFlagsFromSymbol(o));else if(k_(o)){var s=65536&o.flags&&!(32768&o.flags),c=Nn(16777220,o.escapedName,Bs(o)|(r?8:0));c.type=s?Me:$a(Co(o),!0),c.declarations=o.declarations,c.nameType=Bn(o).nameType,c.syntheticOrigin=o,n.set(o.escapedName,c)}}var l=ra(t.symbol,n,e.emptyArray,e.emptyArray,Fc(t));return l.objectFlags|=262272,l}(n):t}function C_(t,r,n,i,a){if(1&t.flags||1&r.flags)return Ne;if(2&t.flags||2&r.flags)return Le;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&(t=T_(t,a)).flags)return Pu([t,r])?Rg(t,(function(e){return C_(e,r,n,i,a)})):Pe;if(1048576&(r=T_(r,a)).flags)return Pu([t,r])?Rg(r,(function(e){return C_(t,e,n,i,a)})):Pe;if(473960444&r.flags)return t;if(Xu(t)||Xu(r)){if(Kd(t))return r;if(2097152&t.flags){var o=t.types,s=o[o.length-1];if(S_(s)&&S_(r))return Fu(e.concatenate(o.slice(0,o.length-1),[C_(s,r,n,i,a)]))}return Fu([t,r])}for(var c=e.createSymbolTable(),l=new e.Set,u=t===_t?Fc(r):ws([t,r]),_=0,d=ec(r);_<d.length;_++){var p=d[_];24&e.getDeclarationModifierFlagsFromSymbol(p)?l.add(p.escapedName):k_(p)&&c.set(p.escapedName,A_(p,a))}for(var f=0,g=ec(t);f<g.length;f++){var m=g[f];if(!l.has(m.escapedName)&&k_(m))if(c.has(m.escapedName)){var y=Co(p=c.get(m.escapedName));if(16777216&p.flags){var h=e.concatenate(m.declarations,p.declarations),v=Nn(4|16777216&m.flags,m.escapedName);v.type=Su([Co(m),nf(y)]),v.leftSpread=m,v.rightSpread=p,v.declarations=h,v.nameType=Bn(m).nameType,c.set(m.escapedName,v)}}else c.set(m.escapedName,A_(m,a))}var b=ra(n,c,e.emptyArray,e.emptyArray,e.sameMap(u,(function(e){return function(e,t){return e.isReadonly!==t?_l(e.keyType,e.type,t,e.declaration):e}(e,a)})));return b.objectFlags|=4456576|i,b}function k_(t){var r;return!(e.some(t.declarations,e.isPrivateIdentifierClassElementDeclaration)||106496&t.flags&&(null===(r=t.declarations)||void 0===r?void 0:r.some((function(t){return e.isClassLike(t.parent)}))))}function A_(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===zv(e))return e;var n=Nn(4|16777216&e.flags,e.escapedName,Bs(e)|(t?8:0));return n.type=r?Me:Co(e),n.declarations=e.declarations,n.nameType=Bn(e).nameType,n.syntheticOrigin=e,n}function N_(e,t,r,n){var i=Hi(e);return i.symbol=r,i.value=t,i.regularType=n||i,i}function F_(e){if(2944&e.flags){if(!e.freshType){var t=N_(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function w_(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=Rg(e,w_)):e}function P_(e){return!!(2944&e.flags)&&e.freshType===e}function I_(e){var t;return me.get(e)||(me.set(e,t=N_(128,e)),t)}function O_(e){var t;return ye.get(e)||(ye.set(e,t=N_(256,e)),t)}function L_(t){var r,n=e.pseudoBigIntToString(t);return he.get(n)||(he.set(n,r=N_(2048,t)),r)}function M_(e,t,r){var n,i=t+("string"==typeof e?"@":"#")+e,a=1024|("string"==typeof e?128:256);return ve.get(i)||(ve.set(i,n=N_(a,e,r)),n)}function R_(t){if(e.isValidESSymbolDeclaration(t)){var r=ji(t),n=Bn(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=function(e){var t=Hi(8192);return t.symbol=e,t.escapedName="__@"+t.symbol.escapedName+"@"+O(t.symbol),t}(r))}return Xe}function B_(t){var r=jn(t);return r.resolvedType||(r.resolvedType=function(t){var r=e.getThisContainer(t,!1),n=r&&r.parent;if(n&&(e.isClassLike(n)||256===n.kind)&&!e.isStatic(r)&&(!e.isConstructorDeclaration(r)||e.isNodeDescendantOf(t,r.body)))return Go(ji(n)).thisType;if(n&&e.isObjectLiteralExpression(n)&&e.isBinaryExpression(n.parent)&&6===e.getAssignmentDeclarationKind(n.parent))return Go(ji(n.parent.left).parent).thisType;var i=4194304&t.flags?e.getHostSignatureFromJSDoc(t):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&3===e.getAssignmentDeclarationKind(i.parent)?Go(ji(i.parent.left).parent).thisType:Zh(r)&&e.isNodeDescendantOf(t,r.body)?Go(ji(r)).thisType:(Sn(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Pe)}(t)),r.resolvedType}function j_(e){return V_(J_(e.type)||e.type)}function J_(e){switch(e.kind){case 189:return J_(e.type);case 182:if(1===e.elements.length&&(184===(e=e.elements[0]).kind||195===e.kind&&e.dotDotDotToken))return J_(e.type);break;case 181:return e.elementType}}function V_(e){return Ll(U_(e),e)}function U_(t){switch(t.kind){case 129:case 307:case 308:return Ne;case 153:return Le;case 148:return Ue;case 145:return Ke;case 156:return ze;case 132:return Ye;case 149:return Xe;case 114:return Qe;case 151:return Me;case 104:return Je;case 142:return $e;case 146:return 131072&t.flags&&!X?Ne:nt;case 137:return Oe;case 190:case 108:return B_(t);case 194:return function(e){if(104===e.literal.kind)return Je;var t=jn(e);return t.resolvedType||(t.resolvedType=w_(kb(e.literal))),t.resolvedType}(t);case 176:case 226:return jl(t);case 175:return t.assertsModifier?Qe:Ye;case 179:return Vl(t);case 181:case 182:return function(t){var r=jn(t);if(!r.resolvedType){var n=function(t){var r=function(t){return e.isTypeOperatorNode(t)&&143===t.operator}(t.parent);return J_(t)?r?wt:Ft:lu(e.map(t.elements,nu),r,e.some(t.elements,(function(e){return 195!==e.kind}))?void 0:t.elements)}(t);if(n===gt)r.resolvedType=_t;else if(182===t.kind&&e.some(t.elements,(function(e){return!!(8&nu(e))}))||!au(t)){var i=181===t.kind?[V_(t.elementType)]:e.map(t.elements,V_);r.resolvedType=uu(n,i)}else r.resolvedType=182===t.kind&&0===t.elements.length?n:Sl(n,t,void 0)}return r.resolvedType}(t);case 183:return function(e){return $a(V_(e.type),!0)}(t);case 185:return function(t){var r=jn(t);if(!r.resolvedType){var n=x_(t);r.resolvedType=Su(e.map(t.types,V_),1,n,D_(n))}return r.resolvedType}(t);case 186:return function(t){var r=jn(t);if(!r.resolvedType){var n=x_(t);r.resolvedType=Fu(e.map(t.types,V_),n,D_(n))}return r.resolvedType}(t);case 309:return function(e){var t=V_(e.type);return W?Hp(t,65536):t}(t);case 311:return $a(V_(t.type));case 195:return function(e){var t=jn(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?j_(e):$a(V_(e.type),!0,!!e.questionToken))}(t);case 189:case 310:case 304:return V_(t.type);case 184:return j_(t);case 313:return function(t){var r=V_(t.type),n=t.parent,i=t.parent.parent;if(e.isJSDocTypeExpression(t.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i),o=e.isJSDocCallbackTag(i.parent.parent);if(a||o){var s=o?e.lastOrUndefined(i.parent.parent.typeExpression.parameters):e.lastOrUndefined(a.parameters),c=e.getParameterSymbolFromJSDoc(i);if(!s||c&&s.symbol===c&&e.isRestParameter(s))return ru(r)}}return e.isParameter(n)&&e.isJSDocFunctionType(n.parent)?ru(r):$a(r)}(t);case 177:case 178:case 180:case 317:case 312:case 318:return b_(t);case 191:return function(t){var r=jn(t);if(!r.resolvedType)switch(t.operator){case 139:r.resolvedType=Ru(V_(t.type));break;case 152:r.resolvedType=149===t.type.kind?R_(e.walkUpParenthesizedTypes(t.parent)):Pe;break;case 143:r.resolvedType=V_(t.type);break;default:throw e.Debug.assertNever(t.operator)}return r.resolvedType}(t);case 192:return s_(t);case 193:return c_(t);case 187:return function(t){var r=jn(t);if(!r.resolvedType){var n=V_(t.checkType),i=x_(t),a=D_(i),o=Po(t,!0),s=a?o:e.filter(o,(function(e){return ad(e,t)})),c={node:t,checkType:n,extendsType:V_(t.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:m_(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=p_(c,void 0),s&&(c.instantiations=new e.Map,c.instantiations.set(hl(s),r.resolvedType))}return r.resolvedType}(t);case 188:return function(e){var t=jn(e);return t.resolvedType||(t.resolvedType=Zo(ji(e.typeParameter))),t.resolvedType}(t);case 196:return function(t){var r=jn(t);return r.resolvedType||(r.resolvedType=ju(i([t.head.text],e.map(t.templateSpans,(function(e){return e.literal.text})),!0),e.map(t.templateSpans,(function(e){return V_(e.type)})))),r.resolvedType}(t);case 198:return h_(t);case 79:case 159:case 204:var r=QD(t);return r?es(r):Pe;default:return Pe}}function K_(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 z_(e,t){return K_(e,t,dd)}function G_(e,t){return K_(e,t,nd)}function W_(e,t){return K_(e,t,md)}function q_(e,t){return 1===e.length?Y_(e[0],t?t[0]:Ne):function(e,t){return{kind:1,sources:e,targets:t}}(e,t)}function H_(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:for(var r=t.sources,n=t.targets,i=0;i<r.length;i++)if(e===r[i])return n?n[i]:Ne;return e;case 2:return t.func(e);case 3:case 4:var a=H_(e,t.mapper1);return a!==e&&3===t.kind?dd(a,t.mapper2):H_(a,t.mapper2)}}function Y_(e,t){return{kind:0,source:e,target:t}}function X_(e){return{kind:2,func:e}}function Q_(e,t,r){return{kind:e,mapper1:t,mapper2:r}}function $_(e){return q_(e,void 0)}function Z_(e,t){return e?Q_(3,e,t):t}function ed(e,t,r){return r?Q_(4,Y_(e,t),r):Y_(e,t)}function td(e,t,r){return e?Q_(4,e,Y_(t,r)):Y_(t,r)}function rd(e){var t=$i(e.symbol);return t.target=e,t}function nd(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,rd),r=Z_(q_(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++)o[a].mapper=r}var s=Ds(t.declaration,i,t.thisParameter&&id(t.thisParameter,r),K_(t.parameters,r,id),void 0,void 0,t.minArgumentCount,39&t.flags);return s.target=t,s.mapper=r,s}function id(t,r){var n=Bn(t);if(n.type&&!kf(n.type))return t;1&e.getCheckFlags(t)&&(t=n.target,r=Z_(n.mapper,r));var i=Nn(t.flags,t.escapedName,1|53256&e.getCheckFlags(t));return i.declarations=t.declarations,i.parent=t.parent,i.target=t,i.mapper=r,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),n.nameType&&(i.nameType=n.nameType),i}function ad(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){for(var n=t.symbol.declarations[0].parent,i=r;i!==n;i=i.parent)if(!i||233===i.kind||187===i.kind&&e.forEachChild(i.extendsType,a))return!0;return a(r)}return!0;function a(r){switch(r.kind){case 190:return!!t.isThisType;case 79:return!t.isThisType&&e.isPartOfTypeNode(r)&&function(e){return!(176===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||198===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(r)&&U_(r)===t;case 179:return!0;case 167:case 166:return!r.type&&!!r.body||e.some(r.typeParameters,a)||e.some(r.parameters,a)||!!r.type&&a(r.type)}return!!e.forEachChild(r,a)}}function od(e){var t=Js(e);if(4194304&t.flags){var r=l_(t.type);if(262144&r.flags)return r}}function sd(t,r,n,i){var a=od(t);if(a){var o=dd(a,r);if(a!==o)return Bg(hc(o),(function(n){if(61603843&n.flags&&n!==we&&n!==Pe){if(!t.declaration.nameType){if(vp(n))return function(e,t,r){var n=ld(t,Ke,!0,r);return n===Pe?Pe:ru(n,cd(bp(e),Ws(t)))}(n,t,ed(a,n,r));if(jp(n))return function(t,r,n,i){var a=t.target.elementFlags,o=e.map(El(t),(function(e,t){var o=8&a[t]?e:4&a[t]?ru(e):cu([e],[a[t]]);return sd(r,ed(n,o,i))})),s=cd(t.target.readonly,Ws(r));return cu(o,e.map(o,(function(e){return 8})),s)}(n,t,a,r);if(Bp(n))return function(t,r,n){var i=t.target.elementFlags,a=e.map(El(t),(function(e,t){return ld(r,I_(""+t),!!(2&i[t]),n)})),o=Ws(r),s=4&o?e.map(i,(function(e){return 1&e?2:e})):8&o?e.map(i,(function(e){return 2&e?1:e})):i,c=cd(t.target.readonly,o);return e.contains(a,Pe)?Pe:cu(a,s,c,t.target.labeledElementDeclarations)}(n,t,ed(a,n,r))}return ud(t,ed(a,n,r))}return n}),n,i)}return dd(Js(t),r)===we?we:ud(t,r,n,i)}function cd(e,t){return!!(1&t)||!(2&t)&&e}function ld(e,t,r,n){var i=td(n,js(e),t),a=dd(Us(e.target||e),i),o=Ws(e);return W&&4&o&&!Hv(a,49152)?Yp(a,!0):W&&8&o&&r?fg(a,524288):a}function ud(e,t,r,n){var i=Qi(64|e.objectFlags,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;var a=js(e),o=rd(a);i.typeParameter=o,t=Z_(Y_(a,o),t),o.mapper=t}return i.target=e,i.mapper=t,i.aliasSymbol=r||e.aliasSymbol,i.aliasTypeArguments=r?n:z_(e.aliasTypeArguments,t),i}function _d(t,r,n,i){var a=t.root;if(a.outerTypeParameters){var o=e.map(a.outerTypeParameters,(function(e){return H_(e,r)})),s=hl(o)+vl(n,i),c=a.instantiations.get(s);return c||(c=function(e,t,r,n){if(e.isDistributive){var i=e.checkType,a=H_(i,t);if(i!==a&&1179648&a.flags)return Bg(a,(function(r){return p_(e,ed(i,r,t))}),r,n)}return p_(e,t,r,n)}(a,q_(a.outerTypeParameters,o),n,i),a.instantiations.set(s,c)),c}return t}function dd(e,t){return e&&t?pd(e,t,void 0,void 0):e}function pd(t,r,n,i){if(!kf(t))return t;if(50===T||E>=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:T,instantiationCount:E}),Sn(_,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Pe;x++,E++,T++;var a=function(t,r,n,i){var a=t.flags;if(262144&a)return H_(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=z_(s,r);return c!==s?uu(t.target,c):t}return 1024&o?function(t,r){var n=dd(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=dd(t.constraintType,r);if(!(4194304&i.flags))return t;var a=Ff(dd(t.source,r),n,i);return a||t}(t,r):function(t,r,n,i){var a=4&t.objectFlags?t.node:t.symbol.declarations[0],o=jn(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var l=Po(a,!0);if(Zh(a)){var u=Mc(a);l=e.addRange(l,u)}c=l||e.emptyArray;var _=4&t.objectFlags?[a]:t.symbol.declarations;c=(4&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(t){return e.some(_,(function(e){return ad(t,e)}))})):c,o.outerTypeParameters=c}if(c.length){var d=Z_(t.mapper,r),p=e.map(c,(function(e){return H_(e,d)})),f=n||t.aliasSymbol,g=n?i:z_(t.aliasTypeArguments,r),m=hl(p)+vl(f,g);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(hl(c)+vl(s.aliasSymbol,s.aliasTypeArguments),s));var y=s.instantiations.get(m);if(!y){var h=q_(c,p);y=4&s.objectFlags?Sl(t.target,t.node,h,f,g):32&s.objectFlags?sd(s,h,f,g):ud(s,h,f,g),s.instantiations.set(m,y)}return y}return t}(t,r,n,i)}return t}if(3145728&a){var l=1048576&t.flags?t.origin:void 0,u=l&&3145728&l.flags?l.types:t.types,_=z_(u,r);if(_===u&&n===t.aliasSymbol)return t;var d=n||t.aliasSymbol,p=n?i:z_(t.aliasTypeArguments,r);return 2097152&a||l&&2097152&l.flags?Fu(_,d,p):Su(_,1,d,p)}if(4194304&a)return Ru(dd(t.type,r));if(134217728&a)return ju(t.texts,z_(t.types,r));if(268435456&a)return Vu(t.symbol,dd(t.type,r));if(8388608&a)return d=n||t.aliasSymbol,p=n?i:z_(t.aliasTypeArguments,r),i_(dd(t.objectType,r),dd(t.indexType,r),t.accessFlags,void 0,d,p);if(16777216&a)return _d(t,Z_(t.mapper,r),n,i);if(33554432&a){var f=dd(t.baseType,r);if(8650752&f.flags)return Pl(f,dd(t.substitute,r));var g=dd(t.substitute,r);return 3&g.flags||Cd(gd(f),gd(g))?f:g}return t}(t,r,n,i);return T--,a}function fd(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=dd(e,ut))}function gd(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=dd(e,lt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function md(e,t){return _l(e.keyType,dd(e.type,t),e.isReadonly,e.declaration)}function yd(t){switch(e.Debug.assert(167!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 211:case 212:case 167:case 254:return hd(t);case 203:return e.some(t.properties,yd);case 202:return e.some(t.elements,yd);case 220:return yd(t.whenTrue)||yd(t.whenFalse);case 219:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(yd(t.left)||yd(t.right));case 291:return yd(t.initializer);case 210:return yd(t.expression);case 284:return e.some(t.properties,yd)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,yd);case 283:var r=t.initializer;return!!r&&yd(r);case 286:var n=t.expression;return!!n&&yd(n)}return!1}function hd(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!Xa(t))&&(e.hasContextSensitiveParameters(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&233!==t.body.kind&&yd(t.body)}(t))}function vd(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||Hm(t)||e.isObjectLiteralMethod(t))&&hd(t)}function bd(t){if(524288&t.flags){var r=Xs(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Qi(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n.indexInfos=e.emptyArray,n}}else if(2097152&t.flags)return Fu(e.map(t.types,bd));return t}function xd(e,t){return Hd(e,t,yn)}function Dd(e,t){return Hd(e,t,yn)?-1:0}function Sd(e,t){return Hd(e,t,gn)?-1:0}function Ed(e,t){return Hd(e,t,pn)?-1:0}function Td(e,t){return Hd(e,t,pn)}function Cd(e,t){return Hd(e,t,gn)}function kd(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return kd(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return kd(t,e)})):58982400&t.flags?kd(sc(t)||Le,r):r===Ct?!!(67633152&t.flags):r===kt?!!(524288&t.flags)&&dg(t):Fo(t,No(r))||vp(r)&&!bp(r)&&kd(t,wt)}function Ad(e,t){return Hd(e,t,mn)}function Nd(e,t){return Ad(e,t)||Ad(t,e)}function Fd(e,t,r,n,i,a){return Qd(e,t,gn,r,n,i,a)}function wd(e,t,r,n,i,a){return Pd(e,t,gn,r,n,i,a,void 0)}function Pd(e,t,r,n,i,a,o,s){return!!Hd(e,t,r)||(!n||!Od(i,e,t,r,a,o,s))&&Qd(e,t,r,n,a,o,s)}function Id(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,Id))}function Od(t,r,n,i,o,c,l){if(!t||Id(n))return!1;if(!Qd(r,n,i,void 0)&&function(t,r,n,i,a,o,s){for(var c=Tc(r,0),l=Tc(r,1),u=0,_=[l,c];u<_.length;u++){var d=_[u];if(e.some(d,(function(e){var t=Zc(e);return!(131073&t.flags)&&Qd(t,n,i,void 0)}))){var p=s||{};Fd(r,n,t,a,o,p);var f=p.errors[p.errors.length-1];return e.addRelatedInfo(f,e.createDiagnosticForNode(t,d===l?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(t,r,n,i,o,c,l))return!0;switch(t.kind){case 286:case 210:return Od(t.expression,r,n,i,o,c,l);case 219:switch(t.operatorToken.kind){case 63:case 27:return Od(t.right,r,n,i,o,c,l)}break;case 203:return function(t,r,n,i,a,o){return!(131068&n.flags)&&Rd(function(t){var r,n,i,a;return s(this,(function(o){switch(o.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,o.label=1;case 1:if(!(r<n.length))return[3,8];if(i=n[r],e.isSpreadAssignment(i))return[3,7];if(!(a=Mu(ji(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 171:case 170:case 167:case 292:return[3,2];case 291:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:a}];case 3:return o.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:a,errorMessage:e.isComputedNonLiteralName(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return o.sent(),[3,7];case 6:e.Debug.assertNever(i),o.label=7;case 7:return r++,[3,1];case 8:return[2]}}))}(t),r,n,i,a,o)}(t,r,n,i,c,l);case 202:return function(e,t,r,n,i,a){if(131068&r.flags)return!1;if(kp(t))return Rd(jd(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=$m(e,1,!0);return e.contextualType=o,!!kp(s)&&Rd(jd(e,r),s,r,n,i,a)}finally{e.contextualType=o}}(t,r,n,i,c,l);case 284:return function(t,r,n,i,o,c){var l,u=Rd(function(t){var r,n,i;return s(this,(function(a){switch(a.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,a.label=1;case 1:return r<n.length?(i=n[r],e.isJsxSpreadAttribute(i)||sy(e.idText(i.name))?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:I_(e.idText(i.name))}]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}(t),r,n,i,o,c);if(e.isJsxOpeningElement(t.parent)&&e.isJsxElement(t.parent.parent)){var _=t.parent.parent,d=yy(gy(t)),p=void 0===d?"children":e.unescapeLeadingUnderscores(d),f=I_(p),g=i_(n,f),m=e.getSemanticJsxChildren(_.children);if(!e.length(m))return u;var y=e.length(m)>1,h=Og(g,Ap),v=Og(g,(function(e){return!Ap(e)}));if(y){if(h!==$e){var b=cu(uy(_,0)),x=function(t,r){var n,i,a,o,c;return s(this,(function(s){switch(s.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,s.label=1;case 1:return i<t.children.length?(a=t.children[i],o=O_(i-n),(c=Bd(a,o,r))?[4,c]:[3,3]):[3,5];case 2:return s.sent(),[3,4];case 3:n++,s.label=4;case 4:return i++,[3,1];case 5:return[2]}}))}(_,E);u=Rd(x,b,h,i,o,c)||u}else if(!Hd(i_(r,f),g,i)){u=!0;var D=Sn(_.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,p,ba(g));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(D)}}else if(v!==$e){var S=Bd(m[0],f,E);S&&(u=Rd(function(){return s(this,(function(e){switch(e.label){case 0:return[4,S];case 1:return e.sent(),[2]}}))}(),r,n,i,o,c)||u)}else Hd(i_(r,f),g,i)||(u=!0,D=Sn(_.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,p,ba(g)),c&&c.skipLogging&&(c.errors||(c.errors=[])).push(D))}return u;function E(){if(!l){var r=e.getTextOfNode(t.parent.tagName),i=yy(gy(t)),o=void 0===i?"children":e.unescapeLeadingUnderscores(i),s=i_(n,I_(o)),c=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;l=a(a({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,r,o,ba(s))})}return l}}(t,r,n,i,c,l);case 212:return function(t,r,n,i,a,o){if(e.isBlock(t.body))return!1;if(e.some(t.parameters,e.hasType))return!1;var s=vh(r);if(!s)return!1;var c=Tc(n,0);if(!e.length(c))return!1;var l=t.body,u=Zc(s),_=Su(e.map(c,Zc));if(!Qd(u,_,i,void 0)){var d=l&&Od(l,u,_,i,void 0,a,o);if(d)return d;var p=o||{};if(Qd(u,_,i,l,void 0,a,p),p.errors)return n.symbol&&e.length(n.symbol.declarations)&&e.addRelatedInfo(p.errors[p.errors.length-1],e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&e.getFunctionFlags(t))&&!ja(u,"then")&&Qd(Fv(u),_,i,void 0)&&e.addRelatedInfo(p.errors[p.errors.length-1],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(t,r,n,i,c,l)}return!1}function Ld(e,t,r){var n=o_(t,r);if(n)return n;if(1048576&t.flags){var i=Zd(e,t);if(i)return o_(i,r)}}function Md(e,t){e.contextualType=t;try{return gb(e,1,t)}finally{e.contextualType=void 0}}function Rd(t,r,n,i,a,o){for(var s=!1,c=t.next();!c.done;c=t.next()){var l=c.value,u=l.errorNode,_=l.innerExpression,d=l.nameType,p=l.errorMessage,f=Ld(r,n,d);if(f&&!(8388608&f.flags)){var g=o_(r,d);if(g){var m=Ku(d,void 0),y=!!(m&&16777216&(Sc(n,m)||ke).flags),h=!!(m&&16777216&(Sc(r,m)||ke).flags);if(f=tf(f,y),!Qd(g=tf(g,y&&h),f,i,void 0))if(_&&Od(_,g,f,i,void 0,a,o))s=!0;else{var v=o||{},b=_?Md(_,g):g;if(Qd(b,f,i,u,p,a,v)&&b!==g&&Qd(g,f,i,u,p,a,v),v.errors){var x=v.errors[v.errors.length-1],D=us(d)?gs(d):void 0,S=void 0!==D?Sc(n,D):void 0,E=!1;if(!S){var T=Oc(n,d);T&&T.declaration&&!e.getSourceFileOfNode(T.declaration).hasNoDefaultLib&&(E=!0,e.addRelatedInfo(x,e.createDiagnosticForNode(T.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!E&&(S&&e.length(S.declarations)||n.symbol&&e.length(n.symbol.declarations))){var C=S&&e.length(S.declarations)?S.declarations[0]:n.symbol.declarations[0];e.getSourceFileOfNode(C).hasNoDefaultLib||e.addRelatedInfo(x,e.createDiagnosticForNode(C,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!D||8192&d.flags?ba(d):e.unescapeLeadingUnderscores(D),ba(n)))}}s=!0}}}}return s}function Bd(t,r,n){switch(t.kind){case 286:return{errorNode:t,innerExpression:t.expression,nameType:r};case 11:if(t.containsOnlyTriviaWhiteSpaces)break;return{errorNode:t,innerExpression:void 0,nameType:r,errorMessage:n()};case 276:case 277:case 280:return{errorNode:t,innerExpression:t,nameType:r};default:return e.Debug.assertNever(t,"Found invalid jsx child")}}function jd(t,r){var n,i,a,o;return s(this,(function(s){switch(s.label){case 0:if(!(n=e.length(t.elements)))return[2];i=0,s.label=1;case 1:return i<n?kp(r)&&!Sc(r,""+i)?[3,3]:(a=t.elements[i],e.isOmittedExpression(a)?[3,3]:(o=O_(i),[4,{errorNode:a,innerExpression:a,nameType:o}])):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}function Jd(e,t,r,n,i){return Qd(e,t,mn,r,n,i)}function Vd(t,r,n,i,a,o,s,c){if(t===r)return-1;if(!(l=r).typeParameters&&(!l.thisParameter||Ja(_v(l.thisParameter)))&&1===l.parameters.length&&j(l)&&(_v(l.parameters[0])===Rt||Ja(_v(l.parameters[0])))&&Ja(Zc(l)))return-1;var l,u,_=bv(r);if(!Dv(r)&&(8&n?Dv(t)||bv(t)>_:xv(t)>_))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Dh(t,r=(u=r).typeParameters?u.canonicalSignatureCache||(u.canonicalSignatureCache=function(t){return nl(t,e.map(t.typeParameters,(function(e){return e.target&&!rc(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(u)):u,void 0,s));var d=bv(t),p=Ev(t),f=Ev(r);if((p||f)&&dd(p||f,c),p&&f&&d!==_)return 0;var g=r.declaration?r.declaration.kind:0,m=!(3&n)&&q&&167!==g&&166!==g&&169!==g,y=-1,h=Xc(t);if(h&&h!==Qe){var v=Xc(r);if(v){if(!(T=!m&&s(h,v,!1)||s(v,h,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;y&=T}}for(var b=p||f?Math.min(d,_):Math.max(d,_),x=p||f?b-1:-1,D=0;D<b;D++){var S=D===x?vv(t,D):hv(t,D),E=D===x?vv(r,D):hv(r,D);if(S&&E){var T,C=3&n?void 0:vh(Xp(S)),k=3&n?void 0:vh(Xp(E));if((T=C&&k&&!Qc(C)&&!Qc(k)&&(98304&Gp(S))==(98304&Gp(E))?Vd(k,C,8&n|(m?2:1),i,a,o,s,c):!(3&n)&&!m&&s(S,E,!1)||s(E,S,i))&&8&n&&D>=xv(t)&&D<xv(r)&&s(S,E,!1)&&(T=0),!T)return i&&a(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(pv(t,D)),e.unescapeLeadingUnderscores(pv(r,D))),0;y&=T}}if(!(4&n)){var A=tl(r)?Ne:r.declaration&&Zh(r.declaration)?Go(Bi(r.declaration.symbol)):Zc(r);if(A===Qe)return y;var N=tl(t)?Ne:t.declaration&&Zh(t.declaration)?Go(Bi(t.declaration.symbol)):Zc(t),F=Qc(r);if(F){var w=Qc(t);if(w)y&=function(t,r,n,i,a){if(t.kind!==r.kind)return n&&(i(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ca(t),Ca(r))),0;if((1===t.kind||3===t.kind)&&t.parameterIndex!==r.parameterIndex)return n&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,r.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ca(t),Ca(r))),0;var o=t.type===r.type?-1:t.type&&r.type?a(t.type,r.type,n):0;return 0===o&&n&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Ca(t),Ca(r)),o}(w,F,i,a,s);else if(e.isIdentifierTypePredicate(F))return i&&a(e.Diagnostics.Signature_0_must_be_a_type_predicate,va(t)),0}else!(y&=1&n&&s(A,N,!1)||s(N,A,i))&&i&&o&&o(N,A)}return y}function Ud(e){return e!==mt&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function Kd(t){return 524288&t.flags?!Ys(t)&&Ud(Xs(t)):!!(67108864&t.flags)||(1048576&t.flags?e.some(t.types,Kd):!!(2097152&t.flags)&&e.every(t.types,Kd))}function zd(t){return!!(16&e.getObjectFlags(t)&&(t.members&&Ud(t)||t.symbol&&2048&t.symbol.flags&&0===hs(t.symbol).size))}function Gd(t){return 524288&t.flags&&!Ys(t)&&0===ec(t).length&&1===Fc(t).length&&!!wc(t,Ue)||3145728&t.flags&&e.every(t.types,Gd)||!1}function Wd(t,r,n){if(t===r)return!0;var i=O(t)+","+O(r),a=hn.get(i);if(void 0!==a&&(4&a||!(2&a)||!n))return!!(1&a);if(!(t.escapedName===r.escapedName&&256&t.flags&&256&r.flags))return hn.set(i,6),!1;for(var o=Co(r),s=0,c=ec(Co(t));s<c.length;s++){var l=c[s];if(8&l.flags){var u=Sc(o,l.escapedName);if(!(u&&8&u.flags))return n?(n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(l),ba(es(r),void 0,64)),hn.set(i,6)):hn.set(i,2),!1}}return hn.set(i,1),!0}function qd(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===we)return!0;if(131072&a)return!1;if(402653316&i&&4&a)return!0;if(128&i&&1024&i&&128&a&&!(1024&a)&&e.value===t.value)return!0;if(296&i&&8&a)return!0;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===t.value)return!0;if(2112&i&&64&a)return!0;if(528&i&&16&a)return!0;if(12288&i&&4096&a)return!0;if(32&i&&32&a&&Wd(e.symbol,t.symbol,n))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&Wd(e.symbol,t.symbol,n))return!0;if(2944&i&&2944&a&&e.value===t.value&&Wd(Ji(e.symbol),Ji(t.symbol),n))return!0}if(32768&i&&(!W||49152&a))return!0;if(65536&i&&(!W||65536&a))return!0;if(524288&i&&67108864&a)return!0;if(r===gn||r===mn){if(1&i)return!0;if(264&i&&!(1024&i)&&(32&a||r===gn&&256&a&&1024&a))return!0}return!1}function Hd(e,t,r){if(P_(e)&&(e=e.regularType),P_(t)&&(t=t.regularType),e===t)return!0;if(r!==yn){if(r===mn&&!(131072&t.flags)&&qd(t,e,r)||qd(e,t,r))return!0}else{if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){var n=r.get(lp(e,t,0,r));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&Qd(e,t,r,void 0)}function Yd(t,r){return 2048&e.getObjectFlags(t)&&sy(r.escapedName)}function Xd(t,r){for(;;){var n=P_(t)?t.regularType:4&e.getObjectFlags(t)&&t.node?xl(t.target,El(t)):3145728&t.flags?hc(t):33554432&t.flags?r?t.baseType:t.substitute:25165824&t.flags?e_(t,r):t;if((n=Ep(n)||n)===t)break;t=n}return t}function Qd(t,r,n,a,o,s,c){var u,d,p,f,g,m,y=0,h=0,v=0,b=!1,x=0,D=[],S=!1;e.Debug.assert(n!==yn||!a,"no error reporting in identity checking");var E=B(t,r,!!a,o);if(D.length&&O(),b){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:h});var T=Sn(a||_,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,ba(t),ba(r));c&&(c.errors||(c.errors=[])).push(T)}else if(u){if(s){var C=s();C&&(e.concatenateDiagnosticMessageChains(C,u),u=C)}var k=void 0;if(o&&a&&!E&&t.symbol){var A=Bn(t.symbol);if(A.originatingImport&&!e.isImportCall(A.originatingImport)&&Qd(Co(A.target),r,n,void 0)){var F=e.createDiagnosticForNode(A.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);k=e.append(k,F)}}T=e.createDiagnosticForNodeFromMessageChain(a,u,k),d&&e.addRelatedInfo.apply(void 0,i([T],d,!1)),c&&(c.errors||(c.errors=[])).push(T),c&&c.skipLogging||ln.add(T)}return a&&c&&c.skipLogging&&0===E&&e.Debug.assert(!!c.errors,"missed opportunity to interact with error."),0!==E;function w(e){u=e.errorInfo,m=e.lastSkippedInfo,D=e.incompatibleStack,x=e.overrideNextErrorInfo,d=e.relatedInfo}function P(){return{errorInfo:u,lastSkippedInfo:m,incompatibleStack:D.slice(),overrideNextErrorInfo:x,relatedInfo:d?d.slice():void 0}}function I(e,t,r,n,i){x++,m=void 0,D.push([e,t,r,n,i])}function O(){var t=D;D=[];var r=m;if(m=void 0,1===t.length)return L.apply(void 0,t[0]),void(r&&M.apply(void 0,i([void 0],r,!1)));for(var n="",a=[];t.length;){var o=t.pop(),s=o[0],c=o.slice(1);switch(s.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===n.indexOf("new ")&&(n="("+n+")");var l=""+c[0];n=0===n.length?""+l:e.isIdentifierText(l,V.target)?n+"."+l:"["===l[0]&&"]"===l[l.length-1]?""+n+l:n+"["+l+"]";break;case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){var u=s;s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?u=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(u=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),a.unshift([u,c[0],c[1]])}else n=(s.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"")+n+"("+(s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...")+")";break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:a.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,c[0],c[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:a.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,c[0],c[1],c[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: "+s.code)}}n?L(")"===n[n.length-1]?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,n):a.shift();for(var _=0,d=a;_<d.length;_++){var p=d[_],f=(s=p[0],c=p.slice(1),s.elidedInCompatabilityPyramid);s.elidedInCompatabilityPyramid=!1,L.apply(void 0,i([s],c,!1)),s.elidedInCompatabilityPyramid=f}r&&M.apply(void 0,i([void 0],r,!1))}function L(t,r,n,i,o){e.Debug.assert(!!a),D.length&&O(),t.elidedInCompatabilityPyramid||(u=e.chainDiagnosticMessages(u,t,r,n,i,o))}function M(t,r,i){D.length&&O();var a=xa(r,i),o=a[0],s=a[1],c=r,l=o;if(Pp(r)&&!$d(i)&&(c=Ip(r),e.Debug.assert(!Cd(c,i),"generalized source shouldn't be assignable"),l=Da(c)),262144&i.flags){var _=sc(i),d=void 0;_&&(Cd(c,_)||(d=Cd(r,_)))?L(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,d?o:l,s,ba(_)):(u=void 0,L(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,s,l))}t||(t=n===mn?e.Diagnostics.Type_0_is_not_comparable_to_type_1:o===s?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),L(t,l,s)}function R(t,r,n){return Bp(t)?t.target.readonly&&xp(r)?(n&&L(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ba(t),ba(r)),!1):Bp(r)||vp(r):bp(t)&&xp(r)?(n&&L(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ba(t),ba(r)),!1):!Bp(r)||vp(t)}function B(t,r,i,o,s){if(void 0===i&&(i=!1),void 0===s&&(s=0),524288&t.flags&&131068&r.flags)return qd(t,r,n,i?L:void 0)?-1:(T(t,r,0,!!(2048&e.getObjectFlags(t))),0);var c=Xd(t,!1),l=Xd(r,!0);if(c===l)return-1;if(n===yn)return function(e,t){if(e.flags!==t.flags)return 0;if(67358815&e.flags)return-1;if(j(e,t),3145728&e.flags){var r=J(e,t);return r&&(r&=J(t,e)),r}return z(e,t,!1,0)}(c,l);if(262144&c.flags&&tc(c)===l)return-1;if(1048576&l.flags&&524288&c.flags&&l.types.length<=3&&Hv(l,98304)){var _=Jg(l,-98305);if(1179648&_.flags||(l=Xd(_,!0)),c===_)return-1}if(n===mn&&!(131072&l.flags)&&qd(l,c,n)||qd(c,l,n,i?L:void 0))return-1;var d=!!(2048&e.getObjectFlags(c)),p=!(2&s)&&zf(c)&&16384&e.getObjectFlags(c);if(p&&function(t,r,i){var o;if(!Cy(r)||!X&&8192&e.getObjectFlags(r))return!1;var s=!!(2048&e.getObjectFlags(t));if((n===gn||n===mn)&&(Fg(Ct,r)||!s&&Kd(r)))return!1;var c,l=r;1048576&r.flags&&(l=yE(t,r,B)||function(e){if(Hv(e,67108864)){var t=Og(e,(function(e){return!(131068&e.flags)}));if(!(131072&t.flags))return t}return e}(r),c=1048576&l.flags?l.types:[l]);for(var u=function(r){if(function(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}(r,t.symbol)&&!Yd(t,r)){if(!Ty(l,r.escapedName,s)){if(i){var n=Og(l,Cy);if(!a)return{value:e.Debug.fail()};if(e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a)||e.isJsxOpeningLikeElement(a.parent)){r.valueDeclaration&&e.isJsxAttribute(r.valueDeclaration)&&e.getSourceFileOfNode(a)===e.getSourceFileOfNode(r.valueDeclaration.name)&&(a=r.valueDeclaration.name);var u=ha(r),_=Zy(u,n);(p=_?ha(_):void 0)?L(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,ba(n),p):L(e.Diagnostics.Property_0_does_not_exist_on_type_1,u,ba(n))}else{var d=(null===(o=t.symbol)||void 0===o?void 0:o.declarations)&&e.firstOrUndefined(t.symbol.declarations),p=void 0;if(r.valueDeclaration&&e.findAncestor(r.valueDeclaration,(function(e){return e===d}))&&e.getSourceFileOfNode(d)===e.getSourceFileOfNode(a)){var f=r.valueDeclaration;e.Debug.assertNode(f,e.isObjectLiteralElementLike),a=f;var g=f.name;e.isIdentifier(g)&&(p=eh(g,n))}void 0!==p?L(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ha(r),ba(n),p):L(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ha(r),ba(n))}}return{value:!0}}if(c&&!B(Co(r),function(t,r){return Su(e.reduceLeft(t,(function(t,n){var i,a=3145728&(n=pc(n)).flags?yc(n,r):$s(n,r),o=a&&Co(a)||(null===(i=Lc(n,r))||void 0===i?void 0:i.type)||Me;return e.append(t,o)}),void 0)||e.emptyArray)}(c,r.escapedName),i))return i&&I(e.Diagnostics.Types_of_property_0_are_incompatible,ha(r)),{value:!0}}},_=0,d=ec(t);_<d.length;_++){var p=u(d[_]);if("object"==typeof p)return p.value}return!1}(c,l,i))return i&&M(o,c,r.aliasSymbol?r:l),0;var f=n!==mn&&!(2&s)&&2752508&c.flags&&c!==Ct&&2621440&l.flags&&tp(l)&&(ec(c).length>0||iS(c));if(f&&!function(e,t,r){for(var n=0,i=ec(e);n<i.length;n++)if(Ty(t,i[n].escapedName,r))return!0;return!1}(c,l,d)){if(i){var g=ba(t.aliasSymbol?t:c),y=ba(r.aliasSymbol?r:l),h=Tc(c,0),v=Tc(c,1);h.length>0&&B(Zc(h[0]),l,!1)||v.length>0&&B(Zc(v[0]),l,!1)?L(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,g,y):L(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,g,y)}return 0}j(c,l);var b=0,D=P();if((3145728&c.flags||3145728&l.flags)&&(b=jg(c)*jg(l)>=4?z(c,l,i,8|s):G(c,l,i,8|s)),b||1048576&c.flags||!(469499904&c.flags||469499904&l.flags)||(b=z(c,l,i,s))&&w(D),!b&&2359296&c.flags){var E=function(t,r){for(var n,i=!1,a=0,o=t;a<o.length;a++)if(465829888&(u=o[a]).flags){for(var s=tc(u);s&&21233664&s.flags;)s=tc(s);s&&(n=e.append(n,s),r&&(n=e.append(n,u)))}else 469892092&u.flags&&(i=!0);if(n&&(r||i)){if(i)for(var c=0,l=t;c<l.length;c++){var u;469892092&(u=l[c]).flags&&(n=e.append(n,u))}return Fu(n)}}(2097152&c.flags?c.types:[c],!!(1048576&l.flags));E&&(2097152&c.flags||1048576&l.flags)&&Ig(E,(function(e){return e!==c}))&&(b=B(E,l,!1,void 0,s))&&w(D)}return b&&!S&&(2097152&l.flags&&(p||f)||S_(l)&&!vp(l)&&!Bp(l)&&2097152&c.flags&&3670016&pc(c).flags&&!e.some(c.types,(function(t){return!!(524288&e.getObjectFlags(t))})))&&(S=!0,b&=z(c,l,i,4),S=!1),T(c,l,b,d),b;function T(n,s,c,l){if(!c&&i){var _=!!Ep(t),d=!!Ep(r);n=t.aliasSymbol||_?t:n,s=r.aliasSymbol||d?r:s;var p=x>0;if(p&&x--,524288&n.flags&&524288&s.flags){var f=u;R(n,s,i),u!==f&&(p=!!u)}if(524288&n.flags&&131068&s.flags)!function(t,r){var n=Sa(t.symbol)?ba(t,t.symbol.valueDeclaration):ba(t),i=Sa(r.symbol)?ba(r,r.symbol.valueDeclaration):ba(r);(Pt===t&&Ue===r||It===t&&Ke===r||Ot===t&&Ye===r||Yl(!1)===t&&Xe===r)&&L(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(n,s);else if(n.symbol&&524288&n.flags&&Ct===n)L(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(l&&2097152&s.flags){var g=s.types,y=dy(N.IntrinsicAttributes,a),h=dy(N.IntrinsicClassAttributes,a);if(y!==Pe&&h!==Pe&&(e.contains(g,y)||e.contains(g,h)))return c}else u=Dc(u,r);if(!o&&p)return m=[n,s],c;M(o,n,s)}}}function j(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,i=r;if(n.objectFlags&i.objectFlags&65536)return;var o=n.types.length,s=i.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==a?void 0:a.pos,end:null==a?void 0:a.end})}}function J(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=U(i[n],t,!1);if(!a)return 0;r&=a}return r}function U(e,t,r){var n=t.types;if(1048576&t.flags){if(yu(n,e))return-1;var i=cg(t,e);if(i&&(s=B(e,i,!1)))return s}for(var a=0,o=n;a<o.length;a++){var s;if(s=B(e,o[a],!1))return s}return r&&B(e,Zd(e,t,B)||n[n.length-1],!0),0}function K(e,t,r,n){var i=e.types;if(1048576&e.flags&&yu(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=B(i[o],t,r&&o===a-1,void 0,n);if(s)return s}return 0}function z(t,r,i,a){if(b)return 0;var o=lp(t,r,a|(S?16:0),n),s=n.get(o);if(void 0!==s&&(!(i&&2&s)||4&s)){if(mr){var c=24&s;8&c&&dd(t,X_(q)),16&c&&dd(t,X_(H))}return 1&s?-1:0}if(p){for(var l=o.split(",").map((function(t){return t.replace(/-\d+/g,(function(t,r){return"="+e.length(o.slice(0,r).match(/[-=]/g)||void 0)}))})).join(","),u=0;u<y;u++)if(o===p[u]||l===p[u])return 3;if(100===h)return b=!0,0}else p=[],f=[],g=[];var _=y;p[y]=o,y++,f[h]=t,g[h]=r,h++;var d,m=v;1&v||!pp(t,f,h)||(v|=1),2&v||!pp(r,g,h)||(v|=2);var x=0;mr&&(d=mr,mr=function(e){return x|=e?16:8,d(e)}),3===v&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:t.id,sourceIdStack:f.map((function(e){return e.id})),targetId:r.id,targetIdStack:g.map((function(e){return e.id})),depth:h}));var D=3!==v?G(t,r,i,a):3;if(mr&&(mr=d),v=m,h--,D){if(-1===D||0===h){if(-1===D||3===D)for(u=_;u<y;u++)n.set(p[u],1|x);y=_}}else n.set(o,2|(i?4:0)|x),y=_;return D}function G(t,r,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:t.id,targetId:r.id});var o=function(t,r,i,a){if(4&a)return $(t,r,i,void 0,0);if(8&a){if(1048576&t.flags)return n===mn?K(t,r,i&&!(131068&t.flags),-9&a):function(e,t,r,n){for(var i=-1,a=e.types,o=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?Jg(t,-32769):t}(e,t),s=0;s<a.length;s++){var c=a[s];if(1048576&o.flags&&a.length>=o.types.length&&a.length%o.types.length==0){var l=B(c,o.types[s%o.types.length],!1,void 0,n);if(l){i&=l;continue}}var u=B(c,t,r,void 0,n);if(!u)return 0;i&=u}return i}(t,r,i&&!(131068&t.flags),-9&a);if(1048576&r.flags)return U(sf(t),r,i&&!(131068&t.flags)&&!(131068&r.flags));if(2097152&r.flags)return function(e,t,r,n){for(var i=-1,a=0,o=t.types;a<o.length;a++){var s=B(e,o[a],r,void 0,2);if(!s)return 0;i&=s}return i}(sf(t),r,i);if(n===mn&&131068&r.flags){var o=e.sameMap(t.types,cc);if(o!==t.types&&!(2097152&(t=Fu(o)).flags))return B(t,r,!1)}return K(t,r,!1,1)}var s,c,l=t.flags&r.flags;if(n===yn&&!(524288&l)){if(4194304&l)return B(t.type,r.type,!1);var _=0;return 8388608&l&&(_=B(t.objectType,r.objectType,!1))&&(_&=B(t.indexType,r.indexType,!1))||16777216&l&&t.root.isDistributive===r.root.isDistributive&&(_=B(t.checkType,r.checkType,!1))&&(_&=B(t.extendsType,r.extendsType,!1))&&(_&=B(f_(t),f_(r),!1))&&(_&=B(g_(t),g_(r),!1))?_:33554432&l?B(t.substitute,r.substitute,!1):0}var d,p,f,g,m=!1,y=P();if(17301504&t.flags&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!t.aliasTypeArgumentsContainsMarker&&!r.aliasTypeArgumentsContainsMarker){if((ce=np(t.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(le=fe(t.aliasTypeArguments,r.aliasTypeArguments,ce,a)))return le}if(Jp(t)&&!t.target.readonly&&(s=B(El(t)[0],r))||Jp(r)&&(r.target.readonly||xp(sc(t)||t))&&(s=B(t,El(r)[0])))return s;if(262144&r.flags){if(32&e.getObjectFlags(t)&&!t.declaration.nameType&&B(Ru(r),Js(t))&&!(4&Ws(t))){var h=Us(t),v=i_(r,js(t));if(s=B(h,v,i))return s}}else if(4194304&r.flags){var b=r.type;if(4194304&t.flags&&(s=B(b,t.type,!1)))return s;if(Bp(b)){if(s=B(t,pu(b),i))return s}else if((X=nc(b))&&-1===B(t,Ru(X,r.stringsOnly),i))return-1}else if(8388608&r.flags){if(8388608&t.flags){if((s=B(t.objectType,r.objectType,i))&&(s&=B(t.indexType,r.indexType,i)),s)return w(y),s;i&&(c=u)}if(n===gn||n===mn){var x=r.objectType,D=r.indexType,S=sc(x)||x,E=sc(D)||D;if(!Xu(S)&&!Qu(E)&&(X=o_(S,E,4|(S!==x?2:0)))){if(i&&c&&w(y),s=B(t,X,i))return s;i&&c&&u&&(u=pe([c])<=pe([u])?c:u)}}i&&(c=void 0)}else if(Ys(r)&&!r.declaration.nameType){var T=Us(r),C=Ws(r);if(!(8&C)){if(8388608&T.flags&&T.objectType===t&&T.indexType===js(r))return-1;if(!Ys(t)){var k=Js(r),A=Ru(t,void 0,!0),N=4&C,F=N?Ps(k,A):void 0;if(N?!(131072&F.flags):B(k,A)){h=Us(r);var I=js(r),O=Jg(h,-98305);if(8388608&O.flags&&O.indexType===I){if(s=B(t,O.objectType,i))return s}else if(v=i_(t,F?Fu([F,I]):I),s=B(v,h,i))return s}c=u,w(y)}}}else if(16777216&r.flags){var L=r,M=!Cd(fd(L.checkType),fd(L.extendsType)),R=!M&&(p=(d=L).root.inferTypeParameters&&q_(d.root.inferTypeParameters,e.map(d.root.inferTypeParameters,(function(){return we}))),f=d.checkType,g=d.extendsType,Cd(gd(f),gd(dd(g,p)))),j=void 0,J=l_(L.root.checkType);if(L.root.isDistributive&&262144&J.flags){var V=rd(J);j=ed(J,V,L.mapper),V.mapper=j}var z=void 0;if((M||(z=B(t,j?dd(V_(L.root.node.trueType),j):f_(L),!1)))&&(R||(z=(z||3)&B(t,j?dd(V_(L.root.node.falseType),j):g_(L),!1))),z)return w(y),z}else if(134217728&r.flags){134217728&t.flags&&dd(t,X_(H));var G=Bf(t,r);if(G&&e.every(G,(function(t,n){return function(t,r){if(t===r||5&r.flags)return!0;if(128&t.flags){var n=t.value;return!!(8&r.flags&&""!==n&&isFinite(+n)||64&r.flags&&""!==n&&function(t){var r=e.createScanner(99,!1),n=!0;r.setOnError((function(){return n=!1})),r.setText(t+"n");var i=r.scan();40===i&&(i=r.scan());var a=r.getTokenFlags();return n&&9===i&&r.getTextPos()===t.length+1&&!(512&a)}(n)||98816&r.flags&&n===r.intrinsicName)}if(134217728&t.flags){var i=t.texts;return 2===i.length&&""===i[0]&&""===i[1]&&Cd(t.types[0],r)}return Cd(t,r)}(t,r.types[n])})))return-1}if(8650752&t.flags){if(!(8388608&t.flags&&8388608&r.flags))if(!(X=tc(t))||262144&t.flags&&1&X.flags){if(s=B(_t,Jg(r,-67108865)))return w(y),s}else{if(s=B(X,r,!1,void 0,a))return w(y),s;if(s=B(bs(X,t),r,i&&!(r.flags&t.flags&262144),void 0,a))return w(y),s}}else if(4194304&t.flags){if(s=B(ot,r,i))return w(y),s}else if(134217728&t.flags){if(!(134217728&r.flags)){var Y=sc(t);if(s=B(X=Y&&Y!==t?Y:Ue,r,i))return w(y),s}}else if(268435456&t.flags){var X;if(268435456&r.flags&&t.symbol===r.symbol){if(s=B(t.type,r.type,i))return w(y),s}else if((X=sc(t))&&(s=B(X,r,i)))return w(y),s}else if(16777216&t.flags){if(16777216&r.flags){var ee=t.root.inferTypeParameters,te=t.extendsType,re=void 0;if(ee){var ne=bf(ee,void 0,0,B);Vf(ne.inferences,r.extendsType,te,1536),te=dd(te,ne.mapper),re=ne.mapper}if(xd(te,r.extendsType)&&(B(t.checkType,r.checkType)||B(r.checkType,t.checkType))&&((s=B(dd(f_(t),re),f_(r),i))&&(s&=B(g_(t),g_(r),i)),s))return w(y),s}else{var ie=ac(t);if(ie&&(s=B(ie,r,i)))return w(y),s}var oe=ic(t);if(oe&&(s=B(oe,r,i)))return w(y),s}else{if(n!==pn&&n!==fn&&function(t){return!!(32&e.getObjectFlags(t)&&4&Ws(t))}(r)&&Kd(t))return-1;if(Ys(r))return Ys(t)&&(s=function(e,t,r){var i;if((n===mn||(n===yn?Ws(e)===Ws(t):Hs(e)<=Hs(t)))&&(i=B(Js(t),dd(Js(e),X_(Hs(e)<0?q:H)),r))){var a=q_([js(e)],[js(t)]);if(dd(Vs(e),a)===dd(Vs(t),a))return i&B(dd(Us(e),a),Us(t),r)}return 0}(t,r,i))?(w(y),s):0;var se=!!(131068&t.flags);if(n!==yn)t=pc(t);else if(Ys(t))return 0;if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target&&!Bp(t)&&!(4096&e.getObjectFlags(t)||4096&e.getObjectFlags(r))){var ce,le;if((ce=ap(t.target))===e.emptyArray)return 1;if(void 0!==(le=fe(El(t),El(r),ce,a)))return le}else{if(bp(r)?vp(t)||Bp(t):vp(r)&&Bp(t)&&!t.target.readonly)return n!==yn?B(Pc(t,Ke)||Ne,Pc(r,Ke)||Ne,i):0;if((n===pn||n===fn)&&Kd(r)&&16384&e.getObjectFlags(r)&&!Kd(t))return 0}if(2621440&t.flags&&524288&r.flags){var ue=i&&u===y.errorInfo&&!se;if((s=$(t,r,ue,void 0,a))&&(s&=Z(t,r,0,ue))&&(s&=Z(t,r,1,ue))&&(s&=ae(t,r,se,ue,a)),m&&s)u=c||u||y.errorInfo;else if(s)return s}if(2621440&t.flags&&1048576&r.flags){var _e=Jg(r,36175872);if(1048576&_e.flags){var de=function(t,r){var i=ag(ec(t),r);if(!i)return 0;for(var a=1,o=0,s=i;o<s.length;o++)if((a*=Mg(ko(_=s[o])))>25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:a}),0;for(var c=new Array(i.length),l=new e.Set,u=0;u<i.length;u++){var _,d=ko(_=i[u]);c[u]=1048576&d.flags?d.types:[d],l.add(_.escapedName)}for(var p=e.cartesianProduct(c),f=[],g=function(a){var o=!1;e:for(var s=0,c=r.types;s<c.length;s++){for(var l=c[s],u=function(e){var o=i[e],s=Sc(l,o.escapedName);return s?o===s?"continue":Q(t,r,o,s,(function(t){return a[e]}),!1,0,W||n===mn)?void 0:"continue-outer":"continue-outer"},_=0;_<i.length;_++)if("continue-outer"===u(_))continue e;e.pushIfUnique(f,l,e.equateValues),o=!0}if(!o)return{value:0}},m=0,y=p;m<y.length;m++){var h=g(y[m]);if("object"==typeof h)return h.value}for(var v=-1,b=0,x=f;b<x.length;b++){var D=x[b];if((v&=$(t,D,!1,l,0))&&(v&=Z(t,D,0,!1))&&(!(v&=Z(t,D,1,!1))||Bp(t)&&Bp(D)||(v&=ae(t,D,!1,!1,0))),!v)return v}return v}(t,_e);if(de)return de}}}return 0;function pe(t){return t?e.reduceLeft(t,(function(e,t){return e+1+pe(t.next)}),0):0}function fe(t,r,a,o){if(s=function(t,r,i,a,o){if(void 0===t&&(t=e.emptyArray),void 0===r&&(r=e.emptyArray),void 0===i&&(i=e.emptyArray),t.length!==r.length&&n===yn)return 0;for(var s=t.length<=r.length?t.length:r.length,c=-1,l=0;l<s;l++){var u=l<i.length?i[l]:1,_=7&u;if(4!==_){var d=t[l],p=r[l],f=-1;if(8&u?f=n===yn?B(d,p,!1):Dd(d,p):1===_?f=B(d,p,a,void 0,o):2===_?f=B(p,d,a,void 0,o):3===_?(f=B(p,d,!1))||(f=B(d,p,a,void 0,o)):(f=B(d,p,a,void 0,o))&&(f&=B(p,d,a,void 0,o)),!f)return 0;c&=f}}return c}(t,r,a,i,o))return s;if(e.some(a,(function(e){return!!(24&e)})))return c=void 0,void w(y);var l=r&&function(e,t){for(var r=0;r<t.length;r++)if(1==(7&t[r])&&16384&e[r].flags)return!0;return!1}(r,a);if(m=!l,a!==e.emptyArray&&!l){if(m&&(!i||!e.some(a,(function(e){return 0==(7&e)}))))return 0;c=u,w(y)}}}(t,r,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function q(e){return!mr||e!==bt&&e!==xt&&e!==yr||mr(!1),e}function H(e){return!mr||e!==bt&&e!==xt&&e!==yr||mr(!0),e}function Y(e,t){if(!t||0===e.length)return e;for(var r,n=0;n<e.length;n++)t.has(e[n].escapedName)?r||(r=e.slice(0,n)):r&&r.push(e[n]);return r||e}function Q(t,r,n,i,a,o,s,c){var l=e.getDeclarationModifierFlagsFromSymbol(n),u=e.getDeclarationModifierFlagsFromSymbol(i);if(8&l||8&u){if(n.valueDeclaration!==i.valueDeclaration)return o&&(8&l&&8&u?L(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,ha(i)):L(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,ha(i),ba(8&l?t:r),ba(8&l?r:t))),0}else if(16&u){if(!function(t,r){return!up(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=_p(r),!up(n,(function(e){var t=_p(e);return!!t&&Fo(t,i)})));var n,i}))}(n,i))return o&&L(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,ha(i),ba(_p(n)||t),ba(_p(i)||r)),0}else if(16&l)return o&&L(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,ha(i),ba(t),ba(r)),0;var _=function(t,r,n,i,a){var o=W&&!!(48&e.getCheckFlags(r)),s=$a(ko(r),!1,o);return B(n(t),s,i,void 0,a)}(n,i,a,o,s);return _?c||!(16777216&n.flags)||16777216&i.flags?_:(o&&L(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,ha(i),ba(t),ba(r)),0):(o&&I(e.Diagnostics.Types_of_property_0_are_incompatible,ha(i)),0)}function $(t,r,a,s,c){if(n===yn)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;var n=Y(Qs(e),r),i=Y(Qs(t),r);if(n.length!==i.length)return 0;for(var a=-1,o=0,s=n;o<s.length;o++){var c=s[o],l=$s(t,c.escapedName);if(!l)return 0;var u=mp(c,l,B);if(!u)return 0;a&=u}return a}(t,r,s);var _=-1;if(Bp(r)){if(vp(t)||Bp(t)){if(!r.target.readonly&&(bp(t)||Bp(t)&&t.target.readonly))return 0;var p=Tl(t),f=Tl(r),g=Bp(t)?4&t.target.combinedFlags:4,m=4&r.target.combinedFlags,y=Bp(t)?t.target.minLength:0,h=r.target.minLength;if(!g&&p<h)return a&&L(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,p,h),0;if(!m&&f<y)return a&&L(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,y,f),0;if(!m&&(g||f<p))return a&&(y<h?L(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,h):L(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,f)),0;for(var v=El(t),b=El(r),D=Math.min(Bp(t)?fu(t.target,11):0,fu(r.target,11)),S=Math.min(Bp(t)?gu(t.target,11):0,m?gu(r.target,11):0),E=!!s,T=0;T<f;T++){var C=T<f-S?T:T+p-f,k=Bp(t)&&(T<D||T>=f-S)?t.target.elementFlags[C]:4,A=r.target.elementFlags[T];if(8&A&&!(8&k))return a&&L(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,T),0;if(8&k&&!(12&A))return a&&L(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,C,T),0;if(1&A&&!(1&k))return a&&L(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,T),0;if(!(E&&((12&k||12&A)&&(E=!1),E&&(null==s?void 0:s.has(""+T))))){var N=Bp(t)?T<D||T>=f-S?tf(v[C],!!(k&A&2)):Up(t,D,S)||$e:v[0],F=b[T];if(!(W=B(N,8&k&&4&A?ru(F):tf(F,!!(2&A)),a,void 0,c)))return a&&(f>1||p>1)&&(T<D||T>=f-S||p-D-S==1?I(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,C,T):I(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,D,p-S-1,T)),0;_&=W}}return _}if(12&r.target.combinedFlags)return 0}var w=!(n!==pn&&n!==fn||zf(t)||Cp(t)||Bp(t)),P=Of(t,r,w,!1);if(P)return a&&function(t,r,n,a){var s=!1;if(n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var c=n.valueDeclaration.name.escapedText,_=e.getSymbolNameForPrivateIdentifier(t.symbol,c);if(_&&Sc(t,_)){var p=e.factory.getDeclarationName(t.symbol.valueDeclaration),f=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void L(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Hn(c),Hn(""===p.escapedText?l:p),Hn(""===f.escapedText?l:f))}}var g,m=e.arrayFrom(If(t,r,a,!1));if((!o||o.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&o.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===m.length){var y=ha(n);L.apply(void 0,i([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,y],xa(t,r),!1)),e.length(n.declarations)&&(g=e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,y),e.Debug.assert(!!u),d?d.push(g):d=[g]),s&&u&&x++}else R(t,r,!1)&&(m.length>5?L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ba(t),ba(r),e.map(m.slice(0,4),(function(e){return ha(e)})).join(", "),m.length-4):L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ba(t),ba(r),e.map(m,(function(e){return ha(e)})).join(", ")),s&&u&&x++)}(t,r,P,w),0;if(zf(r))for(var O=0,M=Y(ec(t),s);O<M.length;O++)if(!($s(r,(K=M[O]).escapedName)||32768&(N=Co(K)).flags))return a&&L(e.Diagnostics.Property_0_does_not_exist_on_type_1,ha(K),ba(r)),0;for(var j=ec(r),J=Bp(t)&&Bp(r),V=0,U=Y(j,s);V<U.length;V++){var K,z=U[V],G=z.escapedName;if(!(4194304&z.flags)&&(!J||ty(G)||"length"===G)&&(K=Sc(t,G))&&K!==z){var W;if(!(W=Q(t,r,K,z,ko,a,c,n===mn)))return 0;_&=W}}return _}function Z(t,r,i,a){var o,s;if(n===yn)return function(e,t,r){var n=Tc(e,r),i=Tc(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=yp(n[o],i[o],!1,!1,!1,B);if(!s)return 0;a&=s}return a}(t,r,i);if(r===mt||t===mt)return-1;var c=t.symbol&&Zh(t.symbol.valueDeclaration),l=r.symbol&&Zh(r.symbol.valueDeclaration),u=Tc(t,c&&1===i?0:i),_=Tc(r,l&&1===i?0:i);if(1===i&&u.length&&_.length){var d=!!(4&u[0].flags),p=!!(4&_[0].flags);if(d&&!p)return a&&L(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(t,r,n){if(!t.declaration||!r.declaration)return!0;var i=e.getSelectedEffectiveModifierFlags(t.declaration,24),a=e.getSelectedEffectiveModifierFlags(r.declaration,24);return 8===a||(16===a&&8!==i||(16!==a&&!i||(n&&L(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,ka(i),ka(a)),!1)))}(u[0],_[0],a))return 0}var f=-1,g=P(),m=1===i?re:ee,y=e.getObjectFlags(t),h=e.getObjectFlags(r);if(64&y&&64&h&&t.symbol===r.symbol)for(var v=0;v<_.length;v++){if(!(F=ne(u[v],_[v],!0,a,m(u[v],_[v]))))return 0;f&=F}else if(1===u.length&&1===_.length){var b=n===mn||!!V.noStrictGenericChecks,x=e.first(u),D=e.first(_);if(!(f=ne(x,D,b,a,m(x,D)))&&a&&1===i&&y&h&&(169===(null===(o=D.declaration)||void 0===o?void 0:o.kind)||169===(null===(s=x.declaration)||void 0===s?void 0:s.kind))){var S=function(e){return va(e,void 0,262144,i)};return L(e.Diagnostics.Type_0_is_not_assignable_to_type_1,S(x),S(D)),L(e.Diagnostics.Types_of_construct_signatures_are_incompatible),f}}else e:for(var E=0,T=_;E<T.length;E++){for(var C=T[E],k=a,A=0,N=u;A<N.length;A++){var F,I=N[A];if(F=ne(I,C,!0,k,m(I,C))){f&=F,w(g);continue e}k=!1}return k&&L(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,ba(t),va(C,void 0,void 0,i)),0}return f}function ee(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return I(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ba(t),ba(r))}:function(t,r){return I(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,ba(t),ba(r))}}function re(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return I(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ba(t),ba(r))}:function(t,r){return I(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,ba(t),ba(r))}}function ne(e,t,r,i,a){return Vd(r?ol(e):e,r?ol(t):t,n===fn?8:0,i,L,a,B,X_(H))}function ie(t,r,n){var i=B(t.type,r.type,n);return!i&&n&&(t.keyType===r.keyType?L(e.Diagnostics._0_index_signatures_are_incompatible,ba(t.keyType)):L(e.Diagnostics._0_and_1_index_signatures_are_incompatible,ba(t.keyType),ba(r.keyType))),i}function ae(t,r,i,a,o){if(n===yn)return function(e,t){var r=Fc(e),n=Fc(t);if(r.length!==n.length)return 0;for(var i=0,a=n;i<a.length;i++){var o=a[i],s=wc(e,o.keyType);if(!s||!B(s.type,o.type)||s.isReadonly!==o.isReadonly)return 0}return-1}(t,r);for(var s=Fc(r),c=e.some(s,(function(e){return e.keyType===Ue})),l=-1,u=0,_=s;u<_.length;u++){var d=_[u],p=!i&&c&&1&d.type.flags?-1:Ys(t)&&c?B(Us(t),d.type,a):oe(t,d,a,o);if(!p)return 0;l&=p}return l}function oe(t,r,n,i){var a=Oc(t,r.keyType);return a?ie(a,r,n):1&i||!af(t)?(n&&L(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,ba(r.keyType),ba(t)),0):function(t,r,n){for(var i=-1,a=r.keyType,o=0,s=2097152&t.flags?Zs(t):Qs(t);o<s.length;o++){var c=s[o];if(!Yd(t,c)&&Ac(Mu(c,8576),a)){var l=ko(c);if(!(p=B(te||32768&l.flags||a===Ke||!(16777216&c.flags)?l:fg(l,524288),r.type,n)))return n&&L(e.Diagnostics.Property_0_is_incompatible_with_index_signature,ha(c)),0;i&=p}}for(var u=0,_=Fc(t);u<_.length;u++){var d=_[u];if(Ac(d.keyType,a)){var p;if(!(p=ie(d,r,n)))return 0;i&=p}}return i}(t,r,n)}}function $d(t){if(16&t.flags)return!1;if(3145728&t.flags)return!!e.forEach(t.types,$d);if(465829888&t.flags){var r=tc(t);if(r&&r!==t)return $d(r)}return Fp(t)||!!(134217728&t.flags)}function Zd(t,r,n){return void 0===n&&(n=Sd),yE(t,r,n,!0)||function(t,r){var n=e.getObjectFlags(t);if(20&n&&1048576&r.flags)return e.find(r.types,(function(r){if(524288&r.flags){var i=n&e.getObjectFlags(r);if(4&i)return t.target===r.target;if(16&i)return!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol}return!1}))}(t,r)||function(t,r){if(128&e.getObjectFlags(t)&&Pg(r,Sp))return e.find(r.types,(function(e){return!Sp(e)}))}(t,r)||function(t,r){var n=0;if(Tc(t,n).length>0||Tc(t,n=1).length>0)return e.find(r.types,(function(e){return Tc(e,n).length>0}))}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a<o.length;a++){var s=o[a],c=Fu([Ru(t),Ru(s)]);if(4194304&c.flags)n=s,i=1/0;else if(1048576&c.flags){var l=e.length(e.filter(c.types,Fp));l>=i&&(n=s,i=l)}else Fp(c)&&1>=i&&(n=s,i=1)}return n}(t,r)}function ep(t,r,n,i,a){for(var o=t.types.map((function(e){})),s=0,c=r;s<c.length;s++){var l=c[s],u=l[0],_=l[1],d=mc(t,_);if(!(a&&d&&16&e.getCheckFlags(d)))for(var p=0,f=0,g=t.types;f<g.length;f++){var m=ja(g[f],_);m&&n(u(),m)?o[p]=void 0===o[p]||o[p]:o[p]=!1,p++}}var y=o.indexOf(!0);if(-1===y)return i;for(var h=o.indexOf(!0,y+1);-1!==h;){if(!xd(t.types[y],t.types[h]))return i;h=o.indexOf(!0,h+1)}return t.types[y]}function tp(t){if(524288&t.flags){var r=Xs(t);return 0===r.callSignatures.length&&0===r.constructSignatures.length&&0===r.indexInfos.length&&r.properties.length>0&&e.every(r.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&t.flags)&&e.every(t.types,tp)}function rp(t,r,n){var i=xl(t,e.map(t.typeParameters,(function(e){return e===r?n:e})));return i.objectFlags|=4096,i}function np(e){var t=Bn(e);return ip(t.typeParameters,t,(function(r,n,i){var a=kl(e,z_(t.typeParameters,Y_(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function ip(t,r,n){var i,a,o;void 0===t&&(t=e.emptyArray);var s=r.variances;if(!s){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:t.length,id:null!==(o=null!==(i=r.id)&&void 0!==i?i:null===(a=r.declaredType)||void 0===a?void 0:a.id)&&void 0!==o?o:-1}),r.variances=e.emptyArray,s=[];for(var c=function(e){var t=!1,i=!1,a=mr;mr=function(e){return e?i=!0:t=!0};var o=n(r,e,bt),c=n(r,e,xt),l=(Cd(c,o)?1:0)|(Cd(o,c)?2:0);3===l&&Cd(n(r,e,yr),o)&&(l=4),mr=a,(t||i)&&(t&&(l|=8),i&&(l|=16)),s.push(l)},l=0,u=t;l<u.length;l++)c(u[l]);r.variances=s,null===e.tracing||void 0===e.tracing||e.tracing.pop()}return s}function ap(e){return e===Ft||e===wt||8&e.objectFlags?k:ip(e.typeParameters,e,rp)}function op(e){return 262144&e.flags&&!rc(e)}function sp(t){return function(t){return!!(4&e.getObjectFlags(t))&&!t.node}(t)&&e.some(El(t),(function(e){return!!(262144&e.flags)||sp(e)}))}function cp(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,i=0,a=El(e);i<a.length;i++){var o=a[i];if(op(o)){var s=t.indexOf(o);s<0&&(s=t.length,t.push(o)),n+="="+s}else r<4&&sp(o)?n+="<"+cp(o,t,r+1)+">":n+="-"+o.id}return n}function lp(e,t,r,n){if(n===yn&&e.id>t.id){var i=e;e=t,t=i}var a=r?":"+r:"";if(sp(e)&&sp(t)){var o=[];return cp(e,o)+","+cp(t,o)+a}return e.id+","+t.id+a}function up(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=Sc(i[n],t.escapedName),o=a&&up(a,r);if(o)return o}}function _p(e){return e.parent&&32&e.parent.flags?es(Ji(e)):void 0}function dp(e){var t=_p(e),r=t&&Uo(t)[0];return r&&ja(r,e.escapedName)}function pp(e,t,r){if(r>=5)for(var n=fp(e),i=0,a=0;a<r;a++)if(fp(t[a])===n&&++i>=5)return!0;return!1}function fp(t){if(524288&t.flags&&!Gf(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(Bp(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function gp(e,t){return 0!==mp(e,t,Dd)}function mp(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(hD(t)!==hD(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return zv(t)!==zv(r)?0:n(Co(t),Co(r))}function yp(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=bv(e),i=bv(t),a=xv(e),o=xv(t),s=Dv(e),c=Dv(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var s=q_(t.typeParameters,r.typeParameters),c=0;c<r.typeParameters.length;c++)if(!((g=t.typeParameters[c])===(p=r.typeParameters[c])||o(dd(ml(g),s)||Le,ml(p)||Le)&&o(dd(dc(g),s)||Le,dc(p)||Le)))return 0;t=nd(t,s,!0)}var l=-1;if(!i){var u=Xc(t);if(u){var _=Xc(r);if(_){if(!(f=o(u,_)))return 0;l&=f}}}var d=bv(r);for(c=0;c<d;c++){var p,f,g=yv(t,c);if(!(f=o(p=yv(r,c),g)))return 0;l&=f}if(!a){var m=Qc(t),y=Qc(r);l&=m||y?function(e,t,r){return e&&t&&Eu(e,t)?e.type===t.type?-1:e.type&&t.type?r(e.type,t.type):0:0}(m,y,o):o(Zc(t),Zc(r))}return l}function hp(t){return 1===t.length?t[0]:function(e){for(var t,r=0,n=e;r<n.length;r++){var i=n[r],a=Ip(i);if(t||(t=a),a===i||a!==t)return!1}return!0}(t)?Su(t):e.reduceLeft(t,(function(e,t){return Td(e,t)?t:e}))}function vp(t){return!!(4&e.getObjectFlags(t))&&(t.target===Ft||t.target===wt)}function bp(t){return!!(4&e.getObjectFlags(t))&&t.target===wt}function xp(e){return vp(e)&&!bp(e)||Bp(e)&&!e.target.readonly}function Dp(e){return vp(e)?El(e)[0]:void 0}function Sp(e){return vp(e)||!(98304&e.flags)&&Cd(e,jt)}function Ep(t){if(4&e.getObjectFlags(t)&&3&e.getObjectFlags(t.target)){if(33554432&e.getObjectFlags(t))return 67108864&e.getObjectFlags(t)?t.cachedEquivalentBaseType:void 0;t.objectFlags|=33554432;var r=t.target;if(1&e.getObjectFlags(r)){var n=Ro(r);if(n&&79!==n.expression.kind&&204!==n.expression.kind)return}var i=Uo(r);if(1===i.length&&!hs(t.symbol).size){var a=e.length(r.typeParameters)?dd(i[0],q_(r.typeParameters,El(t).slice(0,r.typeParameters.length))):i[0];return e.length(El(t))>e.length(r.typeParameters)&&(a=bs(a,e.last(El(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function Tp(e){return W?e===tt:e===Re}function Cp(e){var t=Dp(e);return!!t&&Tp(t)}function kp(e){return Bp(e)||!!Sc(e,"0")}function Ap(e){return Sp(e)||kp(e)}function Np(e){return!(240512&e.flags)}function Fp(e){return!!(109440&e.flags)}function wp(t){return 2097152&t.flags?e.some(t.types,Fp):!!(109440&t.flags)}function Pp(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,Fp):Fp(t))}function Ip(e){return 1024&e.flags?Xo(e):128&e.flags?Ue:256&e.flags?Ke:2048&e.flags?ze:512&e.flags?Ye:1048576&e.flags?Rg(e,Ip):e}function Op(e){return 1024&e.flags&&P_(e)?Xo(e):128&e.flags&&P_(e)?Ue:256&e.flags&&P_(e)?Ke:2048&e.flags&&P_(e)?ze:512&e.flags&&P_(e)?Ye:1048576&e.flags?Rg(e,Op):e}function Lp(e){return 8192&e.flags?Xe:1048576&e.flags?Rg(e,Lp):e}function Mp(e,t){return pb(e,t)||(e=Lp(Op(e))),e}function Rp(e,t,r,n){return e&&Fp(e)&&(e=Mp(e,t?oD(r,t,n):void 0)),e}function Bp(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function jp(e){return Bp(e)&&!!(8&e.target.combinedFlags)}function Jp(e){return jp(e)&&1===e.target.elementFlags.length}function Vp(e){return Up(e,e.target.fixedLength)}function Up(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=Tl(e)-r;if(t<i){for(var a=El(e),o=[],s=t;s<i;s++){var c=a[s];o.push(8&e.target.elementFlags[s]?i_(c,Ke):c)}return n?Fu(o):Su(o)}}function Kp(e){return"0"===e.value.base10Value}function zp(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=Gp(n[r]);return t}function Gp(e){return 1048576&e.flags?zp(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?Kp(e)?2048:0:512&e.flags?e===Ge||e===We?512:0:117724&e.flags}function Wp(e){return 117632&Gp(e)?Og(e,(function(e){return!(117632&Gp(e))})):e}function qp(e){return 4&e.flags?jr:8&e.flags?Jr:64&e.flags?Vr:e===We||e===Ge||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&Kp(e)?e:$e}function Hp(e,t){var r=t&~e.flags&98304;return 0===r?e:Su(32768===r?[e,Me]:65536===r?[e,Je]:[e,Me,Je])}function Yp(t,r){return void 0===r&&(r=!1),e.Debug.assert(W),32768&t.flags?t:Su([t,r?je:Me])}function Xp(e){return W?function(e){var t=fg(e,2097152);return Jt||(Jt=Gl("NonNullable",524288,void 0)||ke),Jt!==ke?kl(Jt,[t]):t}(e):e}function Qp(e){return W?Su([e,Be]):e}function $p(e){return W?Lg(e,Be):e}function Zp(t,r,n){return n?e.isOutermostOptionalChain(r)?Yp(t):Qp(t):t}function ef(t,r){return e.isExpressionOfOptionalChainRoot(r)?Xp(t):e.isOptionalChain(r)?$p(t):t}function tf(e,t){return te&&t?Lg(e,je):e}function rf(e){return te&&(e===je||1048576&e.flags&&yu(e.types,je))}function nf(e){return te?Lg(e,je):fg(e,524288)}function af(t){return 2097152&t.flags?e.every(t.types,af):!(!t.symbol||0==(7040&t.symbol.flags)||iS(t))||!!(1024&e.getObjectFlags(t)&&af(t.source))}function of(t,r){var n=Nn(t.flags,t.escapedName,8&e.getCheckFlags(t));n.declarations=t.declarations,n.parent=t.parent,n.type=r,n.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration);var i=Bn(t).nameType;return i&&(n.nameType=i),n}function sf(t){if(!(zf(t)&&16384&e.getObjectFlags(t)))return t;var r=t.regularType;if(r)return r;var n=t,i=function(t,r){for(var n=e.createSymbolTable(),i=0,a=Qs(t);i<a.length;i++){var o=a[i],s=Co(o),c=r(s);n.set(o.escapedName,c===s?o:of(o,c))}return n}(t,sf),a=ra(n.symbol,i,n.callSignatures,n.constructSignatures,n.indexInfos);return a.flags=n.flags,a.objectFlags|=-16385&n.objectFlags,t.regularType=a,a}function cf(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function lf(e){if(!e.siblings){for(var t=[],r=0,n=lf(e.parent);r<n.length;r++){var i=n[r];if(zf(i)){var a=$s(i,e.propertyName);a&&wg(Co(a),(function(e){t.push(e)}))}}e.siblings=t}return e.siblings}function uf(t){if(!t.resolvedProperties){for(var r=new e.Map,n=0,i=lf(t);n<i.length;n++){var a=i[n];if(zf(a)&&!(4194304&e.getObjectFlags(a)))for(var o=0,s=ec(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function _f(e,t){if(!(4&e.flags))return e;var r=Co(e),n=ff(r,t&&cf(t,e.escapedName,void 0));return n===r?e:of(e,n)}function df(e){var t=Ce.get(e.escapedName);if(t)return t;var r=of(e,je);return r.flags|=16777216,Ce.set(e.escapedName,r),r}function pf(e){return ff(e,void 0)}function ff(t,r){if(393216&e.getObjectFlags(t)){if(void 0===r&&t.widened)return t.widened;var n=void 0;if(98305&t.flags)n=Ne;else if(zf(t))n=function(t,r){for(var n=e.createSymbolTable(),i=0,a=Qs(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,_f(o,r))}if(r)for(var s=0,c=uf(r);s<c.length;s++)o=c[s],n.has(o.escapedName)||n.set(o.escapedName,df(o));var l=ra(t.symbol,n,e.emptyArray,e.emptyArray,e.sameMap(Fc(t),(function(e){return _l(e.keyType,pf(e.type),e.isReadonly)})));return l.objectFlags|=532480&e.getObjectFlags(t),l}(t,r);else if(1048576&t.flags){var i=r||cf(void 0,void 0,t.types),a=e.sameMap(t.types,(function(e){return 98304&e.flags?e:ff(e,i)}));n=Su(a,e.some(a,Kd)?2:1)}else 2097152&t.flags?n=Fu(e.sameMap(t.types,pf)):(vp(t)||Bp(t))&&(n=xl(t.target,e.sameMap(El(t),pf)));return n&&void 0===r&&(t.widened=n),n||t}return t}function gf(t){var r=!1;if(131072&e.getObjectFlags(t)){if(1048576&t.flags)if(e.some(t.types,Kd))r=!0;else for(var n=0,i=t.types;n<i.length;n++)gf(u=i[n])&&(r=!0);if(vp(t)||Bp(t))for(var a=0,o=El(t);a<o.length;a++)gf(u=o[a])&&(r=!0);if(zf(t))for(var s=0,c=Qs(t);s<c.length;s++){var l=c[s],u=Co(l);131072&e.getObjectFlags(u)&&(gf(u)||Sn(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,ha(l),ba(pf(u))),r=!0)}}return r}function mf(t,r,n){var i=ba(pf(r));if(!e.isInJSFile(t)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),V)){var a;switch(t.kind){case 219:case 165:case 164:a=X?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 162:var o=t;if(e.isIdentifier(o.name)&&(e.isCallSignatureDeclaration(o.parent)||e.isMethodSignature(o.parent)||e.isFunctionTypeNode(o.parent))&&o.parent.parameters.indexOf(o)>-1&&(zn(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o);return void Tn(X,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=t.dotDotDotToken?X?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:X?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!X)return;break;case 312:return void Sn(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 254:case 167:case 166:case 170:case 171:case 211:case 212:if(X&&!t.name)return void Sn(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=X?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 193:return void(X&&Sn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=X?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Tn(X,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function yf(t,n,i){!(r&&X&&131072&e.getObjectFlags(n))||i&&Ym(t)||gf(n)||mf(t,n,i)}function hf(e,t,r){var n=bv(e),i=bv(t),a=Sv(e),o=Sv(t),s=o?i-1:i,c=a?s:Math.min(n,s),l=Xc(e);if(l){var u=Xc(t);u&&r(l,u)}for(var _=0;_<c;_++)r(yv(e,_),yv(t,_));o&&r(vv(e,c),o)}function vf(e,t,r){var n=Qc(e),i=Qc(t);n&&i&&Eu(n,i)&&n.type&&i.type?r(n.type,i.type):r(Zc(e),Zc(t))}function bf(e,t,r,n){return xf(e.map(Ef),t,r,n||Sd)}function xf(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:X_((function(e){return Df(i,e,!0)})),nonFixingMapper:X_((function(e){return Df(i,e,!1)}))};return i}function Df(e,t,r){for(var n=e.inferences,i=0;i<n.length;i++){var a=n[i];if(t===a.typeParameter)return r&&!a.isFixed&&(Sf(n),a.isFixed=!0),Wf(e,i)}return t}function Sf(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function Ef(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Tf(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function Cf(e){return e&&e.mapper}function kf(t){var r=e.getObjectFlags(t);if(1048576&r)return!!(2097152&r);var n=!!(465829888&t.flags||524288&t.flags&&!Af(t)&&(4&r&&(t.node||e.forEach(El(t),kf))||16&r&&t.symbol&&14384&t.symbol.flags&&t.symbol.declarations||8389664&r)||3145728&t.flags&&!(1024&t.flags)&&!Af(t)&&e.some(t.types,kf));return 3899393&t.flags&&(t.objectFlags|=1048576|(n?2097152:0)),n}function Af(t){if(t.aliasSymbol&&!t.aliasTypeArguments){var r=e.getDeclarationOfKind(t.aliasSymbol,257);return!(!r||!e.findAncestor(r.parent,(function(e){return 300===e.kind||259!==e.kind&&"quit"})))}return!1}function Nf(t,r){return!!(t===r||3145728&t.flags&&e.some(t.types,(function(e){return Nf(e,r)}))||16777216&t.flags&&(f_(t)===r||g_(t)===r))}function Ff(t,r,n){if(!Pr){var i=t.id+","+r.id+","+n.id;if(wr.has(i))return wr.get(i);Pr=!0;var a=function(t,r,n){if(wc(t,Ue)||0!==ec(t).length&&wf(t)){if(vp(t))return ru(Pf(El(t)[0],r,n),bp(t));if(Bp(t))return cu(e.map(El(t),(function(e){return Pf(e,r,n)})),4&Ws(r)?e.sameMap(t.target.elementFlags,(function(e){return 2&e?1:e})):t.target.elementFlags,t.target.readonly,t.target.labeledElementDeclarations);var i=Qi(1040,void 0);return i.source=t,i.mappedType=r,i.constraintType=n,i}}(t,r,n);return Pr=!1,wr.set(i,a),a}}function wf(t){return!(524288&e.getObjectFlags(t))||zf(t)&&e.some(ec(t),(function(e){return wf(Co(e))}))||Bp(t)&&e.some(El(t),wf)}function Pf(e,t,r){var n=i_(r.type,js(t)),i=Us(t),a=Ef(n);return Vf([a],e,i),Lf(a)||Le}function If(t,r,n,i){var a,o,c,l,u,_,d;return s(this,(function(s){switch(s.label){case 0:a=ec(r),o=0,c=a,s.label=1;case 1:return o<c.length?cs(l=c[o])||!n&&(16777216&l.flags||48&e.getCheckFlags(l))?[3,5]:(u=Sc(t,l.escapedName))?[3,3]:[4,l]:[3,6];case 2:return s.sent(),[3,5];case 3:return i&&109440&(_=Co(l)).flags?1&(d=Co(u)).flags||w_(d)===w_(_)?[3,5]:[4,l]:[3,5];case 4:s.sent(),s.label=5;case 5:return o++,[3,1];case 6:return[2]}}))}function Of(e,t,r,n){var i=If(e,t,r,n).next();if(!i.done)return i.value}function Lf(e){return e.candidates?Su(e.candidates,2):e.contraCandidates?Fu(e.contraCandidates):void 0}function Mf(e){return!!jn(e).skipDirectInference}function Rf(t){return!(!t.symbol||!e.some(t.symbol.declarations,Mf))}function Bf(t,r){return 128&t.flags?Jf([t.value],e.emptyArray,r):134217728&t.flags?e.arraysEqual(t.texts,r.texts)?e.map(t.types,jf):Jf(t.texts,t.types,r):void 0}function jf(e){return 402653317&e.flags?e:ju(["",""],[e])}function Jf(e,t,r){var n=e.length-1,a=e[0],o=e[n],s=r.texts,c=s.length-1,l=s[0],u=s[c];if(!(0===n&&a.length<l.length+u.length)&&a.startsWith(l)&&o.endsWith(u)){for(var _=o.slice(0,o.length-u.length),d=[],p=0,f=l.length,g=1;g<c;g++){var m=s[g];if(m.length>0){for(var y=p,h=f;!((h=v(y).indexOf(m,h))>=0);){if(++y===e.length)return;h=0}b(y,h),f+=m.length}else if(f<v(p).length)b(p,f+1);else{if(!(p<n))return;b(p+1,0)}}return b(n,v(n).length),d}function v(t){return t<n?e[t]:_}function b(r,n){var a=r===p?I_(v(r).slice(f,n)):ju(i(i([e[p].slice(f)],e.slice(p+1,r),!0),[v(r).slice(0,n)],!1),t.slice(p,r));d.push(a),p=r,f=n}}function Vf(t,r,n,i,a){void 0===i&&(i=0),void 0===a&&(a=!1);var o,s,c,l,u=!1,_=2048,d=!0,p=0;function f(r,s){if(kf(s)){if(r===we){var c=o;return o=r,f(s,s),void(o=c)}if(r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===s.aliasSymbol)h(r.aliasTypeArguments,s.aliasTypeArguments,np(r.aliasSymbol));else if(r===s&&3145728&r.flags)for(var l=0,p=r.types;l<p.length;l++){var v=p[l];f(v,v)}else{if(1048576&s.flags){var D=y(1048576&r.flags?r.types:[r],s.types,Uf),T=y(D[0],D[1],Kf),C=T[0];if(0===(A=T[1]).length)return;if(s=Su(A),0===C.length)return void g(r,s,1);r=Su(C)}else if(2097152&s.flags&&e.some(s.types,(function(e){return!!b(e)||Ys(e)&&!!b(od(e)||$e)}))){if(!(1048576&r.flags)){var k=y(2097152&r.flags?r.types:[r],s.types,xd),A=(C=k[0],k[1]);if(0===C.length||0===A.length)return;r=Fu(C),s=Fu(A)}}else 41943040&s.flags&&(s=l_(s));if(8650752&s.flags){if(524288&e.getObjectFlags(r)||r===Ie||r===Ze||128&i&&(r===Fe||r===Bt)||Rf(r))return;var N=b(s);if(N){if(!N.isFixed){if((void 0===N.priority||i<N.priority)&&(N.candidates=void 0,N.contraCandidates=void 0,N.topLevel=!0,N.priority=i),i===N.priority){var F=o||r;a&&!u?e.contains(N.contraCandidates,F)||(N.contraCandidates=e.append(N.contraCandidates,F),Sf(t)):e.contains(N.candidates,F)||(N.candidates=e.append(N.candidates,F),Sf(t))}!(128&i)&&262144&s.flags&&N.topLevel&&!Nf(n,s)&&(N.topLevel=!1,Sf(t))}return void(_=Math.min(_,i))}var w=e_(s,!1);if(w!==s)m(r,w,f);else if(8388608&s.flags){var P=e_(s.indexType,!1);if(465829888&P.flags){var I=t_(e_(s.objectType,!1),P,!1);I&&I!==s&&m(r,I,f)}}}if(!(4&e.getObjectFlags(r)&&4&e.getObjectFlags(s)&&(r.target===s.target||vp(r)&&vp(s)))||r.node&&s.node)if(4194304&r.flags&&4194304&s.flags)a=!a,f(r.type,s.type),a=!a;else if((Pp(r)||4&r.flags)&&4194304&s.flags){var O=function(t){var r=e.createSymbolTable();wg(t,(function(t){if(128&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=Nn(4,n);i.type=Ne,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),r.set(n,i)}}));var n=4&t.flags?[_l(Ue,_t,!1)]:e.emptyArray;return ra(void 0,r,e.emptyArray,e.emptyArray,n)}(r);a=!a,g(O,s.type,256),a=!a}else if(8388608&r.flags&&8388608&s.flags)f(r.objectType,s.objectType),f(r.indexType,s.indexType);else if(268435456&r.flags&&268435456&s.flags)r.symbol===s.symbol&&f(r.type,s.type);else if(33554432&r.flags){f(r.baseType,s);var L=i;i|=4,f(r.substitute,s),i=L}else if(16777216&s.flags)m(r,s,S);else if(3145728&s.flags)x(r,s.types,s.flags);else if(1048576&r.flags)for(var M=0,R=r.types;M<R.length;M++)f(R[M],s);else if(134217728&s.flags)!function(e,t){for(var r=Bf(e,t),n=t.types,i=0;i<n.length;i++)f(r?r[i]:$e,n[i])}(r,s);else{if(r=hc(r),!(512&i&&467927040&r.flags)){var B=pc(r);if(B!==r&&d&&!(2621440&B.flags))return d=!1,f(B,s);r=B}2621440&r.flags&&m(r,s,E)}else h(El(r),El(s),ap(r.target))}}}function g(e,t,r){var n=i;i|=r,f(e,t),i=n}function m(t,r,n){var i=t.id+","+r.id,a=s&&s.get(i);if(void 0===a){(s||(s=new e.Map)).set(i,-1);var o=_;_=2048;var u=p,d=fp(t),f=fp(r);e.contains(c,d)&&(p|=1),e.contains(l,f)&&(p|=2),3!==p?((c||(c=[])).push(d),(l||(l=[])).push(f),n(t,r),l.pop(),c.pop()):_=-1,p=u,s.set(i,_),_=Math.min(_,o)}else _=Math.min(_,a)}function y(t,r,n){for(var i,a,o=0,s=r;o<s.length;o++)for(var c=s[o],l=0,u=t;l<u.length;l++){var _=u[l];n(_,c)&&(f(_,c),i=e.appendIfUnique(i,_),a=e.appendIfUnique(a,c))}return[i?e.filter(t,(function(t){return!e.contains(i,t)})):t,a?e.filter(r,(function(t){return!e.contains(a,t)})):r]}function h(e,t,r){for(var n=e.length<t.length?e.length:t.length,i=0;i<n;i++)i<r.length&&2==(7&r[i])?v(e[i],t[i]):f(e[i],t[i])}function v(e,t){q||1024&i?(a=!a,f(e,t),a=!a):f(e,t)}function b(e){if(8650752&e.flags)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e===i.typeParameter)return i}}function x(t,r,n){var a=0;if(1048576&n){for(var o=void 0,s=1048576&t.flags?t.types:[t],c=new Array(s.length),l=!1,u=0,d=r;u<d.length;u++)if(b(E=d[u]))o=E,a++;else for(var p=0;p<s.length;p++){var m=_;_=2048,f(s[p],E),_===i&&(c[p]=!0),l=l||-1===_,_=Math.min(_,m)}if(0===a){var y=function(t){for(var r,n=0,i=t;n<i.length;n++){var a=i[n],o=2097152&a.flags&&e.find(a.types,(function(e){return!!b(e)}));if(!o||r&&o!==r)return;r=o}return r}(r);return void(y&&g(t,y,1))}if(1===a&&!l){var h=e.flatMap(s,(function(e,t){return c[t]?void 0:e}));if(h.length)return void f(Su(h),o)}}else for(var v=0,x=r;v<x.length;v++)b(E=x[v])?a++:f(t,E);if(2097152&n?1===a:a>0)for(var D=0,S=r;D<S.length;D++){var E;b(E=S[D])&&g(t,E,1)}}function D(t,r,n){if(1048576&n.flags){for(var i=!1,a=0,o=n.types;a<o.length;a++)i=D(t,r,o[a])||i;return i}if(4194304&n.flags){var s=b(n.type);if(s&&!s.isFixed&&!Rf(t)){var c=Ff(t,r,n);c&&g(c,s.typeParameter,524288&e.getObjectFlags(t)?16:8)}return!0}if(262144&n.flags){g(Ru(t),n,32);var l=tc(n);if(l&&D(t,r,l))return!0;var u=e.map(ec(t),Co),_=e.map(Fc(t),(function(e){return e!==Sr?e.type:$e}));return f(Su(e.concatenate(u,_)),Us(r)),!0}return!1}function S(e,t){if(16777216&e.flags)f(e.checkType,t.checkType),f(e.extendsType,t.extendsType),f(f_(e),f_(t)),f(g_(e),g_(t));else{var r=i;i|=a?64:0,x(e,[f_(t),g_(t)],t.flags),i=r}}function E(t,r){if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&(t.target===r.target||vp(t)&&vp(r)))h(El(t),El(r),ap(t.target));else{if(Ys(t)&&Ys(r)){f(Js(t),Js(r)),f(Us(t),Us(r));var n=Vs(t),i=Vs(r);n&&i&&f(n,i)}var a,o;if(32&e.getObjectFlags(r)&&!r.declaration.nameType&&D(t,r,Js(r)))return;if(!function(e,t){return Bp(e)&&Bp(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength<e.target.fixedLength)}(e,t):!!Of(e,t,!1,!0)&&!!Of(t,e,!1,!1)}(t,r)){if(vp(t)||Bp(t)){if(Bp(r)){var s=Tl(t),c=Tl(r),l=El(r),u=r.target.elementFlags;if(Bp(t)&&(o=r,Tl(a=t)===Tl(o)&&e.every(a.target.elementFlags,(function(e,t){return(12&e)==(12&o.target.elementFlags[t])})))){for(var _=0;_<c;_++)f(El(t)[_],l[_]);return}var d=Bp(t)?Math.min(t.target.fixedLength,r.target.fixedLength):0,p=Math.min(Bp(t)?gu(t.target,3):0,r.target.hasRestElement?gu(r.target,3):0);for(_=0;_<d;_++)f(El(t)[_],l[_]);if(!Bp(t)||s-d-p==1&&4&t.target.elementFlags[d]){var m=El(t)[d];for(_=d;_<c-p;_++)f(8&u[_]?ru(m):m,l[_])}else{var y=c-d-p;if(2===y&&u[d]&u[d+1]&8&&Bp(t)){var v=b(l[d]);v&&void 0!==v.impliedArity&&(f(du(t,d,p+s-v.impliedArity),l[d]),f(du(t,d+v.impliedArity,p),l[d+1]))}else if(1===y&&8&u[d]){var x=2&r.target.elementFlags[c-1];g(Bp(t)?du(t,d,p):ru(El(t)[0]),l[d],x?2:0)}else 1===y&&4&u[d]&&(m=Bp(t)?Up(t,d,p):El(t)[0])&&f(m,l[d])}for(_=0;_<p;_++)f(El(t)[s-_-1],l[c-_-1]);return}if(vp(r))return void k(t,r)}!function(e,t){for(var r=0,n=Qs(t);r<n.length;r++){var i=n[r],a=Sc(e,i.escapedName);a&&f(Co(a),Co(i))}}(t,r),T(t,r,0),T(t,r,1),k(t,r)}}}function T(t,r,n){for(var i=Tc(t,n),a=Tc(r,n),o=i.length,s=a.length,c=o<s?o:s,l=!!(524288&e.getObjectFlags(t)),u=0;u<c;u++)C(sl(i[o-c+u]),ol(a[s-c+u]),l)}function C(e,t,r){if(!r){var n=u,i=t.declaration?t.declaration.kind:0;u=u||167===i||166===i||169===i,hf(e,t,v),u=n}vf(e,t,f)}function k(t,r){var n=e.getObjectFlags(t)&e.getObjectFlags(r)&32?8:0,i=Fc(r);if(af(t))for(var a=0,o=i;a<o.length;a++){for(var s=o[a],c=[],l=0,u=ec(t);l<u.length;l++){var _=u[l];if(Ac(Mu(_,8576),s.keyType)){var d=Co(_);c.push(16777216&_.flags?nf(d):d)}}for(var p=0,f=Fc(t);p<f.length;p++){var m=f[p];Ac(m.keyType,s.keyType)&&c.push(m.type)}c.length&&g(Su(c),s.type,n)}for(var y=0,h=i;y<h.length;y++){var v=Oc(t,(s=h[y]).keyType);v&&g(v.type,s.type,n)}}f(r,n)}function Uf(e,t){return te&&t===je?e===t:xd(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function Kf(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function zf(t){return!!(128&e.getObjectFlags(t))}function Gf(t){return!!(32896&e.getObjectFlags(t))}function Wf(t,r){var n,i,a=t.inferences[r];if(!a.inferredType){var o=void 0,s=t.signature;if(s){var c=a.candidates?function(t,r){var n,i=function(t){if(t.length>1){var r=e.filter(t,Gf);if(r.length){var n=Su(r,2);return e.concatenate(e.filter(t,(function(e){return!Gf(e)})),[n])}}return t}(t.candidates),a=!!(n=rc(t.typeParameter))&&Hv(16777216&n.flags?ic(n):n,406978556),o=!a&&t.topLevel&&(t.isFixed||!Nf(Zc(r),t.typeParameter)),s=a?e.sameMap(i,w_):o?e.sameMap(i,Op):i;return pf(416&t.priority?Su(s,2):function(t){if(!W)return hp(t);var r=e.filter(t,(function(e){return!(98304&e.flags)}));return r.length?Hp(hp(r),98304&zp(t)):Su(t,2)}(s))}(a,s):void 0;if(a.contraCandidates){var l=function(t){return 416&t.priority?Fu(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,(function(e,t){return Td(t,e)?t:e})));var r}(a);o=!c||131072&c.flags||!Td(c,l)?l:c}else if(c)o=c;else if(1&t.flags)o=Ze;else{var u=dc(a.typeParameter);u&&(o=dd(u,(n=function(t,r){return X_((function(n){return e.findIndex(t.inferences,(function(e){return e.typeParameter===n}))>=r?Le:n}))}(t,r),i=t.nonFixingMapper,n?Q_(4,n,i):i)))}}else o=Lf(a);a.inferredType=o||qf(!!(2&t.flags));var _=rc(a.typeParameter);if(_){var d=dd(_,t.nonFixingMapper);o&&t.compareTypes(o,bs(d,o))||(a.inferredType=o=d)}}return a.inferredType}function qf(e){return e?Ne:Le}function Hf(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(Wf(e,r));return t}function Yf(t){switch(t.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return V.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return V.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return V.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;default:return 292===t.parent.kind?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function Xf(t){var r=jn(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&zn(t,t.escapedText,1160127,Yf(t),t,!e.isWriteOnlyAccess(t),!1,!0)||ke),r.resolvedSymbol}function Qf(t){return!!e.findAncestor(t,(function(e){return 179===e.kind||79!==e.kind&&159!==e.kind&&"quit"}))}function $f(e,t,r,n){switch(e.kind){case 79:var i=Xf(e);return i!==ke?(n?I(n):"-1")+"|"+mu(t)+"|"+mu(r)+"|"+O(i):void 0;case 108:return"0|"+(n?I(n):"-1")+"|"+mu(t)+"|"+mu(r);case 228:case 210:return $f(e.expression,t,r,n);case 159:var a=$f(e.left,t,r,n);return a&&a+"."+e.right.escapedText;case 204:case 205:var o=tg(e);if(void 0!==o){var s=$f(e.expression,t,r,n);return s&&s+"."+o}}}function Zf(t,r){switch(r.kind){case 210:case 228:return Zf(t,r.expression);case 219:return e.isAssignmentExpression(r)&&Zf(t,r.left)||e.isBinaryExpression(r)&&27===r.operatorToken.kind&&Zf(t,r.right)}switch(t.kind){case 229:return 229===r.kind&&t.keywordToken===r.keywordToken&&t.name.escapedText===r.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(t)?108===r.kind:79===r.kind&&Xf(t)===Xf(r)||(252===r.kind||201===r.kind)&&Gi(Xf(t))===ji(r);case 108:return 108===r.kind;case 106:return 106===r.kind;case 228:case 210:return Zf(t.expression,r);case 204:case 205:return e.isAccessExpression(r)&&tg(t)===tg(r)&&Zf(t.expression,r.expression);case 159:return e.isAccessExpression(r)&&t.right.escapedText===tg(r)&&Zf(t.left,r.expression);case 219:return e.isBinaryExpression(t)&&27===t.operatorToken.kind&&Zf(t.right,r)}return!1}function eg(e,t){return Zf(e,t)||219===t.kind&&55===t.operatorToken.kind&&(eg(e,t.left)||eg(e,t.right))}function tg(t){var r;return 204===t.kind?t.name.escapedText:205===t.kind&&e.isStringOrNumericLiteralLike(t.argumentExpression)?e.escapeLeadingUnderscores(t.argumentExpression.text):201===t.kind&&(r=qa(t))?e.escapeLeadingUnderscores(r):void 0}function rg(t,r){for(;e.isAccessExpression(t);)if(Zf(t=t.expression,r))return!0;return!1}function ng(t,r){for(;e.isOptionalChain(t);)if(Zf(t=t.expression,r))return!0;return!1}function ig(t,r){if(t&&1048576&t.flags){var n=mc(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=192==(192&n.checkFlags)&&!Hv(Co(n),331612160)),!!n.isDiscriminantProperty}return!1}function ag(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(ig(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}function og(t){var r=t.types;if(!(r.length<10||65536&e.getObjectFlags(t))){if(void 0===t.keyPropertyName){var n=e.forEach(r,(function(t){return 59506688&t.flags?e.forEach(ec(t),(function(e){return Fp(Co(e))?e.escapedName:void 0})):void 0})),i=n&&function(t,r){for(var n=new e.Map,i=0,a=function(e){if(61603840&e.flags){var t=ja(e,r);if(t){if(!Pp(t))return{value:void 0};var a=!1;wg(t,(function(t){var r=mu(w_(t)),i=n.get(r);i?i!==Le&&(n.set(r,Le),a=!0):n.set(r,e)})),a||i++}}},o=0,s=t;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return i>=10&&2*i>=t.length?n:void 0}(r,n);t.keyPropertyName=i?n:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function sg(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(mu(w_(t)));return n!==Le?n:void 0}function cg(e,t){var r=og(e),n=r&&ja(t,r);return n&&sg(e,n)}function lg(e,t){return Zf(e,t)||rg(e,t)}function ug(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(lg(t,n[r]))return!0;return!(204!==e.expression.kind||!lg(t,e.expression.expression))}function _g(e){return(!e.id||e.id<0)&&(e.id=p,p++),e.id}function dg(e){var t=Xs(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Td(e,kt))}function pg(t,r){void 0===r&&(r=!1);var n=t.flags;if(4&n)return W?16317953:16776705;if(128&n){var i=""===t.value;return W?i?12123649:7929345:i?12582401:16776705}if(40&n)return W?16317698:16776450;if(256&n){var a=0===t.value;return W?a?12123394:7929090:a?12582146:16776450}return 64&n?W?16317188:16775940:2048&n?(a=Kp(t),W?a?12122884:7928580:a?12581636:16775940):16&n?W?16316168:16774920:528&n?W?t===Ge||t===We?12121864:7927560:t===Ge||t===We?12580616:16774920:524288&n&&!r?16&e.getObjectFlags(t)&&Kd(t)?W?16318463:16777215:dg(t)?W?7880640:16728e3:W?7888800:16736160:49152&n?9830144:65536&n?9363232:12288&n?W?7925520:16772880:67108864&n?W?7888800:16736160:131072&n?0:465829888&n?Hu(t)?W?7929345:16776705:pg(sc(t)||Le,r):1048576&n?e.reduceLeft(t.types,(function(e,t){return e|pg(t,r)}),0):2097152&n?(r||(r=Hv(t,131068)),e.reduceLeft(t.types,(function(e,t){return e&pg(t,r)}),16777215)):16777215}function fg(e,t){return Og(e,(function(e){return 0!=(pg(e)&t)}))}function gg(e,t){return t?Su([za(e),Eb(t)]):e}function mg(e,t){var r,n=Lu(t);if(!us(n))return Pe;var i=gs(n);return ja(e,i)||hg(null===(r=Lc(e,i))||void 0===r?void 0:r.type)||Pe}function yg(e,t){return Ig(e,kp)&&function(e,t){return ja(e,""+t)||(Ig(e,Bp)?Rg(e,(function(e){return Vp(e)||Me})):void 0)}(e,t)||hg(Bx(65,e,Me,void 0))||Pe}function hg(e){return e&&V.noUncheckedIndexedAccess?Su([e,Me]):e}function vg(e){return ru(Bx(65,e,Me,void 0)||Pe)}function bg(e){return 219===e.parent.kind&&e.parent.left===e||242===e.parent.kind&&e.parent.initializer===e}function xg(e){return mg(Dg(e.parent),e.name)}function Dg(e){var t=e.parent;switch(t.kind){case 241:return Ue;case 242:return Rx(t)||Pe;case 219:return function(e){return 202===e.parent.kind&&bg(e.parent)||291===e.parent.kind&&bg(e.parent.parent)?gg(Dg(e),e.right):Eb(e.right)}(t);case 213:return Me;case 202:return function(e,t){return yg(Dg(e),e.elements.indexOf(t))}(t,e);case 223:return function(e){return vg(Dg(e.parent))}(t);case 291:return xg(t);case 292:return function(e){return gg(xg(e),e.objectAssignmentInitializer)}(t)}return Pe}function Sg(e){return jn(e).resolvedType||Eb(e)}function Eg(e){return 252===e.kind?function(e){return e.initializer?Sg(e.initializer):241===e.parent.parent.kind?Ue:242===e.parent.parent.kind&&Rx(e.parent.parent)||Pe}(e):function(e){var t=e.parent,r=Eg(t.parent);return gg(199===t.kind?mg(r,e.propertyName||e.name):e.dotDotDotToken?vg(r):yg(r,t.elements.indexOf(e)),e.initializer)}(e)}function Tg(e){switch(e.kind){case 210:return Tg(e.expression);case 219:switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return Tg(e.left);case 27:return Tg(e.right)}}return e}function Cg(e){var t=e.parent;return 210===t.kind||219===t.kind&&63===t.operatorToken.kind&&t.left===e||219===t.kind&&27===t.operatorToken.kind&&t.right===e?Cg(t):e}function kg(e){return 287===e.kind?w_(Eb(e.expression)):$e}function Ag(e){var t=jn(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var i=n[r];t.switchTypes.push(kg(i))}}return t.switchTypes}function Ng(t,r){for(var n=[],i=0,a=t.caseBlock.clauses;i<a.length;i++){var o=a[i];if(287===o.kind){if(e.isStringLiteralLike(o.expression)){n.push(o.expression.text);continue}return e.emptyArray}r&&n.push(void 0)}return n}function Fg(e,t){return e===t||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!yu(t.types,i))return!1}return!0}return!!(1024&e.flags&&Xo(e)===t)||yu(t.types,e)}(e,t)}function wg(t,r){return 1048576&t.flags?e.forEach(t.types,r):r(t)}function Pg(t,r){return 1048576&t.flags?e.some(t.types,r):r(t)}function Ig(t,r){return 1048576&t.flags?e.every(t.types,r):r(t)}function Og(t,r){if(1048576&t.flags){var n=t.types,i=e.filter(n,r);if(i===n)return t;var a=t.origin,o=void 0;if(a&&1048576&a.flags){var s=a.types,c=e.filter(s,(function(e){return!!(1048576&e.flags)||r(e)}));if(s.length-c.length==n.length-i.length){if(1===c.length)return c[0];o=Du(1048576,c)}}return Tu(i,t.objectFlags,void 0,void 0,o)}return 131072&t.flags||r(t)?t:$e}function Lg(e,t){return Og(e,(function(e){return e!==t}))}function Mg(e){return 1048576&e.flags?e.types.length:1}function Rg(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=e.origin,a=!1,o=0,s=i&&1048576&i.flags?i.types:e.types;o<s.length;o++){var c=s[o],l=1048576&c.flags?Rg(c,t,r):t(c);a||(a=c!==l),l&&(n?n.push(l):n=[l])}return a?n&&Su(n,r?0:1):e}function Bg(t,r,n,i){return 1048576&t.flags&&n?Su(e.map(t.types,r),1,n,i):Rg(t,r)}function jg(e){return 3145728&e.flags?e.types.length:1}function Jg(e,t){return Og(e,(function(e){return 0!=(e.flags&t)}))}function Vg(e,t){return Fg(Ue,e)&&Hv(t,128)||Fg(Ke,e)&&Hv(t,256)||Fg(ze,e)&&Hv(t,2048)?Rg(e,(function(e){return 4&e.flags?Jg(t,132):8&e.flags?Jg(t,264):64&e.flags?Jg(t,2112):e})):e}function Ug(e){return 0===e.flags}function Kg(e){return 0===e.flags?e.type:e}function zg(e,t){return t?{flags:0,type:131072&e.flags?Ze:e}:e}function Gg(e){return Te[e.id]||(Te[e.id]=function(e){var t=Qi(256);return t.elementType=e,t}(e))}function Wg(e,t){var r=sf(Ip(Cb(t)));return Fg(r,e.elementType)?e:Gg(Su([e.elementType,r]))}function qg(t){return 256&e.getObjectFlags(t)?(r=t).finalArrayType||(r.finalArrayType=131072&(n=r.elementType).flags?Bt:ru(1048576&n.flags?Su(n.types,2):n)):t;var r,n}function Hg(t){return 256&e.getObjectFlags(t)?t.elementType:$e}function Yg(t){var r=Cg(t),n=r.parent,i=e.isPropertyAccessExpression(n)&&("length"===n.name.escapedText||206===n.parent.kind&&e.isIdentifier(n.name)&&e.isPushOrUnshiftIdentifier(n.name)),a=205===n.kind&&n.expression===r&&219===n.parent.kind&&63===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&Yv(Eb(n.argumentExpression),296);return i||a}function Xg(t,r){if(8752&t.flags)return Co(t);if(7&t.flags){if(262144&e.getCheckFlags(t)){var n=t.syntheticOrigin;if(n&&Xg(n))return Co(t)}var i=t.valueDeclaration;if(i){if(function(t){return(252===t.kind||162===t.kind||165===t.kind||164===t.kind)&&!!e.getEffectiveTypeAnnotationNode(t)}(i))return Co(t);if(e.isVariableDeclaration(i)&&242===i.parent.parent.kind){var a=i.parent.parent,o=Qg(a.expression,void 0);if(o)return Bx(a.awaitModifier?15:13,o,Me,void 0)}r&&e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics._0_needs_an_explicit_type_annotation,ha(t)))}}}function Qg(t,r){if(!(16777216&t.flags))switch(t.kind){case 79:var n=Gi(Xf(t));return Xg(2097152&n.flags?fi(n):n,r);case 108:return function(t){var r=e.getThisContainer(t,!1);if(e.isFunctionLike(r)){var n=Gc(r);if(n.thisParameter)return Xg(n.thisParameter)}if(e.isClassLike(r.parent)){var i=ji(r.parent);return e.isStatic(r)?Co(i):es(i).thisType}}(t);case 106:return Dm(t);case 204:var i=Qg(t.expression,r);if(i){var a=t.name,o=void 0;if(e.isPrivateIdentifier(a)){if(!i.symbol)return;o=Sc(i,e.getSymbolNameForPrivateIdentifier(i.symbol,a.escapedText))}else o=Sc(i,a.escapedText);return o&&Xg(o,r)}return;case 210:return Qg(t.expression,r)}}function $g(t){var r=jn(t),n=r.effectsSignature;if(void 0===n){var i=void 0;236===t.parent.kind?i=Qg(t.expression,void 0):106!==t.expression.kind&&(i=e.isOptionalChain(t)?Ry(ef(kb(t.expression),t.expression),t.expression):wy(t.expression));var a=Tc(i&&pc(i)||Le,0),o=1!==a.length||a[0].typeParameters?e.some(a,Zg)?$h(t):void 0:a[0];n=r.effectsSignature=o&&Zg(o)?o:br}return n===br?void 0:n}function Zg(e){return!!(Qc(e)||e.declaration&&131072&(el(e.declaration)||Le).flags)}function em(e){var t=rm(e,!1);return _r=e,dr=t,t}function tm(t){var r=e.skipParentheses(t);return 95===r.kind||219===r.kind&&(55===r.operatorToken.kind&&(tm(r.left)||tm(r.right))||56===r.operatorToken.kind&&tm(r.left)&&tm(r.right))}function rm(t,r){for(;;){if(t===_r)return dr;var n=t.flags;if(4096&n){if(!r){var i=_g(t),a=tn[i];return void 0!==a?a:tn[i]=rm(t,!0)}r=!1}if(368&n)t=t.antecedent;else if(512&n){var o=$g(t.node);if(o){var s=Qc(o);if(s&&3===s.kind&&!s.type){var c=t.node.arguments[s.parameterIndex];if(c&&tm(c))return!1}if(131072&Zc(o).flags)return!1}t=t.antecedent}else{if(4&n)return e.some(t.antecedents,(function(e){return rm(e,!1)}));if(8&n){var l=t.antecedents;if(void 0===l||0===l.length)return!1;t=l[0]}else{if(!(128&n)){if(1024&n){_r=void 0;var u=t.target,_=u.antecedents;u.antecedents=t.antecedents;var d=rm(t.antecedent,!1);return u.antecedents=_,d}return!(1&n)}if(t.clauseStart===t.clauseEnd&&Rv(t.switchStatement))return!1;t=t.antecedent}}}}function nm(t,r){for(;;){var n=t.flags;if(4096&n){if(!r){var i=_g(t),a=rn[i];return void 0!==a?a:rn[i]=nm(t,!0)}r=!1}if(496&n)t=t.antecedent;else if(512&n){if(106===t.node.expression.kind)return!0;t=t.antecedent}else{if(4&n)return e.every(t.antecedents,(function(e){return nm(e,!1)}));if(!(8&n)){if(1024&n){var o=t.target,s=o.antecedents;o.antecedents=t.antecedents;var c=nm(t.antecedent,!1);return o.antecedents=s,c}return!!(1&n)}t=t.antecedents[0]}}}function im(t){switch(t.kind){case 79:var r=Xf(t);return lm(r)||!!r.valueDeclaration&&162===e.getRootDeclaration(r.valueDeclaration).kind&&!sm(r);case 204:case 205:return im(t.expression)&&zv(jn(t).resolvedSymbol||ke)}return!1}function am(t,r,n,i){var a;void 0===n&&(n=r);var o=!1,s=0,c=0;if(Rr)return Pe;if(!t.flowNode)return r;Br++;var l=Mr,u=Kg(p(t.flowNode));Mr=l;var _=256&e.getObjectFlags(u)&&Yg(t)?Bt:qg(u);return _===rt||t.parent&&228===t.parent.kind&&!(131072&_.flags)&&131072&fg(_,2097152).flags?r:_;function d(){return o?a:(o=!0,a=$f(t,r,n,i))}function p(a){if(2e3===s)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:a.id}),Rr=!0,o=t,c=e.findAncestor(o,e.isFunctionOrModuleBlock),u=e.getSourceFileOfNode(o),_=e.getSpanOfTokenAtPosition(u,c.statements.pos),ln.add(e.createFileDiagnostic(u,_.start,_.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),Pe;var o,c,u,_,d;for(s++;;){var f=a.flags;if(4096&f){for(var m=l;m<Mr;m++)if(Zr[m]===a)return s--,en[m];d=a}var D=void 0;if(16&f){if(!(D=g(a))){a=a.antecedent;continue}}else if(512&f){if(!(D=y(a))){a=a.antecedent;continue}}else if(96&f)D=v(a);else if(128&f)D=b(a);else if(12&f){if(1===a.antecedents.length){a=a.antecedents[0];continue}D=4&f?x(a):E(a)}else if(256&f){if(!(D=h(a))){a=a.antecedent;continue}}else if(1024&f){var S=a.target,T=S.antecedents;S.antecedents=a.antecedents,D=p(a.antecedent),S.antecedents=T}else if(2&f){var C=a.node;if(C&&C!==i&&204!==t.kind&&205!==t.kind&&108!==t.kind){a=C.flowNode;continue}D=n}else D=kx(r);return d&&(Zr[Mr]=d,en[Mr]=D,Mr++),s--,D}}function f(e){var r=e.node;return _m(252===r.kind||201===r.kind?Eg(r):Dg(r),t)}function g(n){var i=n.node;if(Zf(t,i)){if(!em(n))return rt;if(2===e.getAssignmentTargetKind(i)){var a=p(n.antecedent);return zg(Ip(Kg(a)),Ug(a))}if(r===Fe||r===Bt){if(function(e){return 252===e.kind&&e.initializer&&Qa(e.initializer)||201!==e.kind&&219===e.parent.kind&&Qa(e.parent.right)}(i))return Gg($e);var o=Op(f(n));return Cd(o,r)?o:Rt}return 1048576&r.flags?function(e,t){if(e!==t){if(131072&t.flags)return t;var r=Og(e,(function(e){return function(e,t){if(!(1048576&e.flags))return Cd(e,t);for(var r=0,n=e.types;r<n.length;r++)if(Cd(n[r],t))return!0;return!1}(t,e)}));if(512&t.flags&&P_(t)&&(r=Rg(r,F_)),Cd(t,r))return r}return e}(r,f(n)):r}if(rg(t,i)){if(!em(n))return rt;if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(211===s.kind||212===s.kind))return p(n.antecedent)}return r}if(e.isVariableDeclaration(i)&&241===i.parent.parent.kind&&Zf(t,i.parent.parent.expression))return Iy(Kg(p(n.antecedent)))}function m(t,r){var n=e.skipParentheses(r);if(95===n.kind)return rt;if(219===n.kind){if(55===n.operatorToken.kind)return m(m(t,n.left),n.right);if(56===n.operatorToken.kind)return Su([m(t,n.left),m(t,n.right)])}return U(t,n,!0)}function y(e){var t=$g(e.node);if(t){var r=Qc(t);if(r&&(2===r.kind||3===r.kind)){var n=p(e.antecedent),i=qg(Kg(n)),a=r.type?V(i,r,e.node,!0):3===r.kind&&r.parameterIndex>=0&&r.parameterIndex<e.node.arguments.length?m(i,e.node.arguments[r.parameterIndex]):i;return a===i?n:zg(a,Ug(n))}if(131072&Zc(t).flags)return rt}}function h(n){if(r===Fe||r===Bt){var i=n.node,a=206===i.kind?i.expression.expression:i.left.expression;if(Zf(t,Tg(a))){var o=p(n.antecedent),s=Kg(o);if(256&e.getObjectFlags(s)){var c=s;if(206===i.kind)for(var l=0,u=i.arguments;l<u.length;l++)c=Wg(c,u[l]);else Yv(Cb(i.left.argumentExpression),296)&&(c=Wg(c,i.right));return c===s?o:zg(c,Ug(o))}return o}}}function v(e){var t=p(e.antecedent),r=Kg(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),i=qg(r),a=U(i,e.node,n);return a===i?t:zg(a,Ug(t))}function b(r){var n=r.switchStatement.expression,i=p(r.antecedent),a=Kg(i);if(Zf(t,n))a=L(a,r.switchStatement,r.clauseStart,r.clauseEnd);else if(214===n.kind&&Zf(t,n.expression))a=function(t,r,n,i){var a=Ng(r,!0);if(!a.length)return t;var o,s,c=e.findIndex(a,(function(e){return void 0===e})),l=n===i||c>=n&&c<i;if(c>-1){var u=a.filter((function(e){return void 0!==e})),_=c<n?n-1:n,d=c<i?i-1:i;o=u.slice(_,d),s=Mv(_,d,u,l)}else o=a.slice(n,i),s=Mv(n,i,a,l);if(l)return Og(t,(function(e){return(pg(e)&s)===s}));var p=fg(Su(o.map((function(e){return M(t,e)||t}))),s);return fg(Rg(t,R(p)),s)}(a,r.switchStatement,r.clauseStart,r.clauseEnd);else{W&&(ng(n,t)?a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(function(e){return!(163840&e.flags)})):214===n.kind&&ng(n.expression,t)&&(a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)}))));var o=C(n,a);o&&(a=function(t,r,n,i,a){if(i<a&&1048576&t.flags&&og(t)===tg(r)){var o=Ag(n).slice(i,a),s=Su(e.map(o,(function(e){return sg(t,e)||Le})));if(s!==Le)return s}return k(t,r,(function(e){return L(e,n,i,a)}))}(a,o,r.switchStatement,r.clauseStart,r.clauseEnd))}return zg(a,Ug(i))}function x(t){for(var i,a=[],o=!1,s=!1,c=0,l=t.antecedents;c<l.length;c++){var u=l[c];if(!i&&128&u.flags&&u.clauseStart===u.clauseEnd)i=u;else{if((d=Kg(_=p(u)))===r&&r===n)return d;e.pushIfUnique(a,d),Fg(d,r)||(o=!0),Ug(_)&&(s=!0)}}if(i){var _,d=Kg(_=p(i));if(!e.contains(a,d)&&!Rv(i.switchStatement)){if(d===r&&r===n)return d;a.push(d),Fg(d,r)||(o=!0),Ug(_)&&(s=!0)}}return zg(T(a,o?2:1),s)}function E(t){var n=_g(t),i=Yr[n]||(Yr[n]=new e.Map),a=d();if(!a)return r;var o=i.get(a);if(o)return o;for(var s=Or;s<Lr;s++)if(Xr[s]===t&&Qr[s]===a&&$r[s].length)return zg(T($r[s],1),!0);for(var c,l=[],u=!1,_=0,f=t.antecedents;_<f.length;_++){var g=f[_],m=void 0;if(c){Xr[Lr]=t,Qr[Lr]=a,$r[Lr]=l,Lr++;var y=pr;pr=void 0,m=p(g),pr=y,Lr--;var h=i.get(a);if(h)return h}else m=c=p(g);var v=Kg(m);if(e.pushIfUnique(l,v),Fg(v,r)||(u=!0),v===r)break}var b=T(l,u?2:1);return Ug(c)?zg(b,!0):(i.set(a,b),b)}function T(t,n){if(function(t){for(var r=!1,n=0,i=t;n<i.length;n++){var a=i[n];if(!(131072&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;r=!0}}return r}(t))return Gg(Su(e.map(t,Hg)));var i=Su(e.sameMap(t,qg),n);return i!==r&&i.flags&r.flags&1048576&&e.arraysEqual(i.types,r.types)?r:i}function C(n,i){var a,o,s=1048576&r.flags?r:i;return 1048576&s.flags&&(a=function(t){if(e.isAccessExpression(t))return t;if(e.isIdentifier(t)){var r=Xf(t);if(lm(r)){var n=r.valueDeclaration;if(e.isVariableDeclaration(n)&&!n.type&&n.initializer&&e.isAccessExpression(n.initializer))return n.initializer;if(e.isBindingElement(n)&&!n.initializer){var i=n.parent.parent;if(e.isVariableDeclaration(i)&&!i.type&&i.initializer&&(e.isIdentifier(i.initializer)||e.isAccessExpression(i.initializer)))return n}}}}(n))&&(o=tg(a))&&Zf(t,e.isAccessExpression(a)?a.expression:a.parent.parent.initializer)&&ig(s,o)?a:void 0}function k(t,r,n){var i=tg(r);if(void 0===i)return t;var a=W&&e.isOptionalChain(r)&&Hv(t,98304),o=ja(a?fg(t,2097152):t,i);if(!o)return t;var s=n(o=a?Yp(o):o);return Og(t,(function(e){var t=function(e,t){var r;return ja(e,t)||(null===(r=Lc(e,t))||void 0===r?void 0:r.type)||Le}(e,i);return!(131072&t.flags)&&Ad(t,s)}))}function A(e,t,r,n,i){if((36===r||37===r)&&1048576&e.flags){var a=og(e);if(a&&a===tg(t)){var o=sg(e,Eb(n));if(o)return r===(i?36:37)?o:Fp(ja(o,a)||Le)?Lg(e,o):e}}return k(e,t,(function(e){return P(e,r,n,i)}))}function N(e,r,n){if(Zf(t,r))return fg(e,n?4194304:8388608);W&&n&&ng(r,t)&&(e=fg(e,2097152));var i=C(r,e);return i?k(e,i,(function(e){return fg(e,n?4194304:8388608)})):e}function F(n,i,a){switch(i.operatorToken.kind){case 63:case 75:case 76:case 77:return N(U(n,i.right,a),i.left,a);case 34:case 35:case 36:case 37:var o=i.operatorToken.kind,s=Tg(i.left),c=Tg(i.right);if(214===s.kind&&e.isStringLiteralLike(c))return I(n,s,o,c,a);if(214===c.kind&&e.isStringLiteralLike(s))return I(n,c,o,s,a);if(Zf(t,s))return P(n,o,c,a);if(Zf(t,c))return P(n,o,s,a);W&&(ng(s,t)?n=w(n,o,c,a):ng(c,t)&&(n=w(n,o,s,a)));var l=C(s,n);if(l)return A(n,l,o,c,a);var u=C(c,n);if(u)return A(n,u,o,s,a);if(B(s))return j(n,o,c,a);if(B(c))return j(n,o,s,a);break;case 102:return function(r,n,i){var a=Tg(n.left);if(!Zf(t,a))return i&&W&&ng(a,t)?fg(r,2097152):r;var o,s=Eb(n.right);if(!kd(s,kt))return r;var c=Sc(s,"prototype");if(c){var l=Co(c);Ja(l)||(o=l)}if(Ja(r)&&(o===Ct||o===kt))return r;if(!o){var u=Tc(s,1);o=u.length?Su(e.map(u,(function(e){return Zc(ol(e))}))):_t}return!i&&1048576&s.flags&&!e.find(s.types,(function(e){return!Mo(e)}))?r:J(r,o,i,kd)}(n,i,a);case 101:var _=Tg(i.right),d=$D(i.left);if(128&d.flags){var p=e.escapeLeadingUnderscores(d.value);if(rf(n)&&e.isAccessExpression(t)&&Zf(t.expression,_)&&tg(t)===p)return fg(n,a?524288:65536);if(Zf(t,_))return function(t,n,i){return 1048576&t.flags||524288&t.flags&&r!==t||Zu(t)||2097152&t.flags&&e.every(t.types,(function(e){return e.symbol!==se}))?Og(t,(function(e){return function(e,t,r){var n=Sc(e,t);return n?!!(16777216&n.flags)||r:!!Lc(e,t)||!r}(e,n,i)})):t}(n,p,a)}break;case 27:return U(n,i.right,a);case 55:return a?U(U(n,i.left,!0),i.right,!0):Su([U(n,i.left,!1),U(n,i.right,!1)]);case 56:return a?Su([U(n,i.left,!0),U(n,i.right,!0)]):U(U(n,i.left,!1),i.right,!1)}return n}function w(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,o=Eb(r);return i!==n&&Ig(o,(function(e){return!!(e.flags&a)}))||i===n&&Ig(o,(function(e){return!(e.flags&(3|a))}))?fg(e,2097152):e}function P(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=Eb(r);return 2&e.flags&&n&&(36===t||37===t)?67239932&i.flags?i:524288&i.flags?nt:e:98304&i.flags?W?fg(e,34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288):e:n?Vg(Og(e,34===t?function(e){return Nd(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:function(e){return Nd(e,i)}),i):Fp(i)?Og(e,(function(e){return!(wp(e)&&Nd(e,i))})):e}function I(e,r,n,i,a){35!==n&&37!==n||(a=!a);var o=Tg(r.expression);if(!Zf(t,o))return W&&ng(o,t)&&a===("undefined"!==i.text)?fg(e,2097152):e;if(1&e.flags&&"function"===i.text)return e;if(a&&2&e.flags&&"object"===i.text){if(219===r.parent.parent.kind){var s=r.parent.parent;if(55===s.operatorToken.kind&&s.right===r.parent&&eg(t,s.left))return nt}return Su([nt,Je])}var c=a?D.get(i.text)||128:S.get(i.text)||32768,l=M(e,i.text);return fg(a&&l?Rg(e,R(l)):e,c)}function O(t,r,n,i,a){return n!==i&&e.every(Ag(r).slice(n,i),a)?fg(t,2097152):t}function L(t,r,n,i){var a=Ag(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,$e);if(2&t.flags&&!s){for(var c=void 0,l=0;l<o.length;l+=1){var u=o[l];if(67239932&u.flags)void 0!==c&&c.push(u);else{if(!(524288&u.flags))return t;void 0===c&&(c=o.slice(0,l)),c.push(nt)}}return Su(void 0===c?o:c)}var _=Su(o),d=131072&_.flags?$e:Vg(Og(t,(function(e){return Nd(_,e)})),_);if(!s)return d;var p=Og(t,(function(t){return!(wp(t)&&e.contains(a,w_(function(t){return 2097152&t.flags&&e.find(t.types,Fp)||t}(t))))}));return 131072&d.flags?p:Su([d,p])}function M(e,t){switch(t){case"function":return 1&e.flags?e:kt;case"object":return 2&e.flags?Su([nt,Je]):e;default:return _n.get(t)}}function R(e){return function(t){if(Td(t,e))return t;if(Td(e,t))return e;if(465829888&t.flags){var r=sc(t)||Ne;if(Td(e,r))return Fu([t,e])}return t}}function B(r){return(e.isPropertyAccessExpression(r)&&"constructor"===e.idText(r.name)||e.isElementAccessExpression(r)&&e.isStringLiteralLike(r.argumentExpression)&&"constructor"===r.argumentExpression.text)&&Zf(t,r.expression)}function j(t,r,n,i){if(i?34!==r&&36!==r:35!==r&&37!==r)return t;var a=Eb(n);if(!CS(a)&&!Mo(a))return t;var o=Sc(a,"prototype");if(!o)return t;var s=Co(o),c=Ja(s)?void 0:s;return c&&c!==Ct&&c!==kt?Ja(t)?c:Og(t,(function(t){return n=c,524288&(r=t).flags&&1&e.getObjectFlags(r)||524288&n.flags&&1&e.getObjectFlags(n)?r.symbol===n.symbol:Td(r,n);var r,n})):t}function J(e,t,r,n){if(!r)return Og(e,(function(e){if(!n(e,t))return!0;var r=sc(e);return!(!r||r===e||n(r,t))}));if(1048576&e.flags){var i=Og(e,(function(e){return n(e,t)}));if(!(131072&i.flags))return i}return Td(t,e)?t:Cd(e,t)?e:Cd(t,e)?t:Fu([e,t])}function V(r,n,i,a){if(n.type&&(!Ja(r)||n.type!==Ct&&n.type!==kt)){var o=function(t,r){if(1===t.kind||3===t.kind)return r.arguments[t.parameterIndex];var n=e.skipParentheses(r.expression);return e.isAccessExpression(n)?e.skipParentheses(n.expression):void 0}(n,i);if(o){if(Zf(t,o))return J(r,n.type,a,Td);W&&a&&ng(o,t)&&!(65536&pg(n.type))&&(r=fg(r,2097152));var s=C(o,r);if(s)return k(r,s,(function(e){return J(e,n.type,a,Td)}))}}return r}function U(r,n,i){if(e.isExpressionOfOptionalChainRoot(n)||e.isBinaryExpression(n.parent)&&60===n.parent.operatorToken.kind&&n.parent.left===n)return function(e,r,n){if(Zf(t,r))return fg(e,n?2097152:262144);var i=C(r,e);return i?k(e,i,(function(e){return fg(e,n?2097152:262144)})):e}(r,n,i);switch(n.kind){case 79:if(!Zf(t,n)&&c<5){var a=Xf(n);if(lm(a)){var o=a.valueDeclaration;if(o&&e.isVariableDeclaration(o)&&!o.type&&o.initializer&&im(t)){c++;var s=U(r,o.initializer,i);return c--,s}}}case 108:case 106:case 204:case 205:return N(r,n,i);case 206:return function(r,n,i){if(ug(n,t)){var a=i||!e.isCallChain(n)?$g(n):void 0,o=a&&Qc(a);if(o&&(0===o.kind||1===o.kind))return V(r,o,n,i)}if(rf(r)&&e.isAccessExpression(t)&&e.isPropertyAccessExpression(n.expression)){var s=n.expression;if(Zf(t.expression,Tg(s.expression))&&e.isIdentifier(s.name)&&"hasOwnProperty"===s.name.escapedText&&1===n.arguments.length){var c=n.arguments[0];if(e.isStringLiteralLike(c)&&tg(t)===e.escapeLeadingUnderscores(c.text))return fg(r,i?524288:65536)}}return r}(r,n,i);case 210:case 228:return U(r,n.expression,i);case 219:return F(r,n,i);case 217:if(53===n.operator)return U(r,n.operand,!i)}return r}}function om(t){return e.findAncestor(t.parent,(function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||260===t.kind||300===t.kind||165===t.kind}))}function sm(t){if(!t.valueDeclaration)return!1;var r,n=e.getRootDeclaration(t.valueDeclaration).parent,i=jn(n);return 8388608&i.flags||(i.flags|=8388608,r=n,e.findAncestor(r.parent,(function(t){return e.isFunctionLike(t)&&!!(8388608&jn(t).flags)}))||cm(n)),t.isAssigned||!1}function cm(t){if(79===t.kind){if(e.isAssignmentTarget(t)){var r=Xf(t);r.valueDeclaration&&162===e.getRootDeclaration(r.valueDeclaration).kind&&(r.isAssigned=!0)}}else e.forEachChild(t,cm)}function lm(e){return 3&e.flags&&0!=(2&ky(e))}function um(e){return!!(465829888&e.flags&&1146880&cc(e).flags)}function _m(t,r,n){var i,a;return n&&2&n||!Pg(t,um)||!function(e,t){var r=t.parent;return 204===r.kind||206===r.kind&&r.expression===t||205===r.kind&&r.expression===t&&!(function(e){return!(!(465829888&e.flags)||Hv(cc(e),98304))}(e)&&Qu(Eb(r.argumentExpression)))}(t,r)&&(i=r,!(a=(e.isIdentifier(i)||e.isPropertyAccessExpression(i)||e.isElementAccessExpression(i))&&!((e.isJsxOpeningElement(i.parent)||e.isJsxSelfClosingElement(i.parent))&&i.parent.tagName===i)&&Km(i,8))||Yu(a))?t:Rg(t,(function(e){return 465829888&e.flags?cc(e):e}))}function dm(t){return!!e.findAncestor(t,(function(t){return t.parent&&e.isExportAssignment(t.parent)&&t.parent.expression===t&&e.isEntityNameExpression(t)}))}function pm(t,r){if(di(t,111551)&&!Qf(r)&&!yi(t)){var n=fi(t);111551&n.flags&&(V.isolatedModules||e.shouldPreserveConstEnums(V)&&dm(r)||!gS(n)?vi(t):function(e){var t=Bn(e);t.constEnumReferenced||(t.constEnumReferenced=!0)}(t))}}function fm(t){return e.findAncestor(t,(function(t){return!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)}))}function gm(e,t){jn(e).flags|=2,165===t.kind||169===t.kind?jn(t.parent).flags|=4:jn(t).flags|=4}function mm(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,mm)}function ym(e){return Jo(es(ji(e)))===Ve}function hm(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!ym(i)&&t.flowNode&&!nm(t.flowNode,!1)&&Sn(t,n)}function vm(t){var r=Qf(t),n=e.getThisContainer(t,!0),i=!1;switch(169===n.kind&&hm(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),212===n.kind&&(n=e.getThisContainer(n,!1),i=!0),function(t,r){e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,t.pos)&&e.length(r.parent.decorators)&&Sn(t,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(t,n),n.kind){case 259:Sn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 258:Sn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 169:xm(t,n)&&Sn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 160:Sn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!r&&i&&U<2&&gm(t,n);var a=bm(t,!0,n);if(Q){var o=Co(se);if(a===o&&i)Sn(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=Sn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(n)){var c=bm(n);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(n,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Ne}function bm(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!Am(t)||e.getThisParameter(n))){var a=Xc(Gc(n))||i&&function(t){var r=e.getJSDocType(t);if(r&&312===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return V_(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return V_(i.typeExpression)}(n);if(!a){var o=function(t){return 211===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:167===t.kind&&203===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:211===t.kind&&291===t.parent.kind&&203===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:211===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0}(n);if(i&&o){var s=kb(o).symbol;s&&s.members&&16&s.flags&&(a=es(s).thisType)}else Zh(n)&&(a=es(Bi(n.symbol)).thisType);a||(a=Tm(n))}if(a)return am(t,a)}if(e.isClassLike(n.parent)){var c=ji(n.parent);return am(t,e.isStatic(n)?Co(c):es(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=ji(n);return l&&Co(l)}if(n.externalModuleIndicator)return Me;if(r)return Co(se)}}function xm(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":162===t.kind&&t.parent===r}))}function Dm(t){var r=206===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1;if(!r)for(;i&&212===i.kind;)i=e.getSuperContainer(i,!0),a=U<2;var o=function(t){return!!t&&(r?169===t.kind:!(!e.isClassLike(t.parent)&&203!==t.parent.kind)&&(e.isStatic(t)?167===t.kind||166===t.kind||170===t.kind||171===t.kind||165===t.kind||168===t.kind:167===t.kind||166===t.kind||170===t.kind||171===t.kind||165===t.kind||164===t.kind||169===t.kind))}(i),s=0;if(!o){var c=e.findAncestor(t,(function(e){return e===i?"quit":160===e.kind}));return c&&160===c.kind?Sn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Sn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||203===i.parent.kind)?Sn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Sn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Pe}if(r||169!==n.kind||hm(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||r?(s=512,!r&&U>=2&&U<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(function(t){e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(jn(t).flags|=134217728)}))):s=256,jn(t).flags|=s,167===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?jn(i).flags|=4096:jn(i).flags|=2048),a&&gm(t.parent,i),203===i.parent.kind)return U<2?(Sn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Pe):Ne;var l=i.parent;if(!e.getClassExtendsHeritageElement(l))return Sn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Pe;var u=es(ji(l)),_=u&&Uo(u)[0];return _?169===i.kind&&xm(t,i)?(Sn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Pe):512===s?Jo(u):bs(_,u.thisType):Pe}function Sm(t){return 4&e.getObjectFlags(t)&&t.target===Mt?El(t)[0]:void 0}function Em(t){return Rg(t,(function(t){return 2097152&t.flags?e.forEach(t.types,Sm):Sm(t)}))}function Tm(t){if(212!==t.kind){if(vd(t)){var r=Xm(t);if(r){var n=r.thisParameter;if(n)return Co(n)}}var i=e.isInJSFile(t);if(Q||i){var a=function(e){return 167!==e.kind&&170!==e.kind&&171!==e.kind||203!==e.parent.kind?211===e.kind&&291===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=Jm(a),s=a,c=o;c;){var l=Em(c);if(l)return dd(l,Cf(zm(a)));if(291!==s.parent.kind)break;c=Jm(s=s.parent.parent)}return pf(o?Xp(o):lb(a))}var u=e.walkUpParenthesizedExpressions(t.parent);if(219===u.kind&&63===u.operatorToken.kind){var _=u.left;if(e.isAccessExpression(_)){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(u);if(p.commonJsModuleIndicator&&Xf(d)===p.symbol)return}return pf(lb(d))}}}}}function Cm(t){var r=t.parent;if(vd(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Ph(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return Ch(i,a,i.length,Ne,void 0,0);var o=jn(n),s=o.resolvedSignature;o.resolvedSignature=vr;var c=a<i.length?Op(kb(i[a])):t.initializer?void 0:Re;return o.resolvedSignature=s,c}var l=Xm(r);if(l){var u=r.parameters.indexOf(t)-(e.getThisParameter(r)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(r.parameters)===t?vv(l,u):hv(l,u)}}}function km(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return V_(r);switch(t.kind){case 162:return Cm(t);case 201:return function(t){var r=t.parent.parent,n=t.propertyName||t.name,i=km(r)||201!==r.kind&&r.initializer&&_b(r);if(i&&!e.isBindingPattern(n)&&!e.isComputedNonLiteralName(n)){if(200===r.name.kind){var a=e.indexOfNode(t.parent.elements,t);if(a<0)return;return Rm(i,a)}var o=Lu(n);return us(o)?ja(i,gs(o)):void 0}}(t);case 165:if(e.isStatic(t))return function(t){var r=e.isExpression(t.parent)&&Km(t.parent);return r?Lm(r,ji(t).escapedName):void 0}(t)}}function Am(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 Nm(t,r){var n=!!(2&e.getFunctionFlags(r)),i=Fm(r);if(i)return oD(t,i,n)||void 0}function Fm(e){var t=el(e);if(t)return t;var r=Ym(e);return r&&!tl(r)?Zc(r):void 0}function wm(e,t){var r=Ph(e).indexOf(t);return-1===r?void 0:Pm(e,r)}function Pm(t,r){var n=jn(t).resolvedSignature===xr?xr:$h(t);if(e.isJsxOpeningLikeElement(t)&&0===r)return Gm(n,t);var i=n.parameters.length-1;return j(n)&&r>=i?i_(Co(n.parameters[i]),O_(r-i),256):yv(n,r)}function Im(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=zn(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function Om(t){if(!t.symbol)return Eb(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=V_(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=vm(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&Lm(a,o)||void 0}}function Lm(t,r){return Rg(t,(function(t){var n,i;if(Ys(t)){var a=Js(t),o=sc(a)||a,s=I_(e.unescapeLeadingUnderscores(r));if(Cd(s,o))return n_(t,s)}else if(3670016&t.flags){var c=Sc(t,r);if(c)return i=c,262144&e.getCheckFlags(i)&&!i.type&&La(i,0)>=0?void 0:Co(c);if(Bp(t)){var l=Vp(t);if(l&&ty(r)&&+r>=0)return l}return null===(n=kc(Nc(t),I_(e.unescapeLeadingUnderscores(r))))||void 0===n?void 0:n.type}}),!0)}function Mm(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&km(t);if(i)return i;var a=Jm(n,r);if(a){if(fs(t))return Lm(a,ji(t).escapedName);if(t.name){var o=Lu(t.name);return Rg(a,(function(e){var t;return null===(t=kc(Nc(e),o))||void 0===t?void 0:t.type}),!0)}}}function Rm(e,t){return e&&(Lm(e,""+t)||Rg(e,(function(e){return jx(1,e,Me,void 0,!1)}),!0))}function Bm(t){if(e.isJsxAttribute(t)){var r=Jm(t.parent);if(!r||Ja(r))return;return Lm(r,t.name.escapedText)}return Km(t.parent)}function jm(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 151:return!0;case 204:case 210:return jm(e.expression);case 286:return!e.expression||jm(e.expression)}return!1}function Jm(t,r){var n=Vm(e.isObjectLiteralMethod(t)?function(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return Mm(t,r)}(t,r):Km(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=Rg(n,pc,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?function(t,r){return function(t,r){var n=og(t),i=n&&e.find(r.properties,(function(e){return e.symbol&&291===e.kind&&e.symbol.escapedName===n&&jm(e.initializer)})),a=i&&Eb(i.initializer);return a&&sg(t,a)}(r,t)||ep(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&291===e.kind&&jm(e.initializer)&&ig(r,e.symbol.escapedName)})),(function(e){return[function(){return Cb(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(ec(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&ig(r,e.escapedName)})),(function(e){return[function(){return Me},e.escapedName]}))),Cd,r)}(t,i):1048576&i.flags&&e.isJsxAttributes(t)?function(t,r){return ep(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&283===e.kind&&ig(r,e.symbol.escapedName)&&(!e.initializer||jm(e.initializer))})),(function(e){return[e.initializer?function(){return kb(e.initializer)}:function(){return qe},e.symbol.escapedName]})),e.map(e.filter(ec(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&ig(r,e.escapedName)})),(function(e){return[function(){return Me},e.escapedName]}))),Cd,r)}(t,i):i}}function Vm(t,r,n){if(t&&Hv(t,465829888)){var i=zm(r);if(i&&e.some(i.inferences,bb)){if(n&&1&n)return Um(t,i.nonFixingMapper);if(i.returnMapper)return Um(t,i.returnMapper)}}return t}function Um(t,r){return 465829888&t.flags?dd(t,r):1048576&t.flags?Su(e.map(t.types,(function(e){return Um(e,r)})),0):2097152&t.flags?Fu(e.map(t.types,(function(e){return Um(e,r)}))):t}function Km(t,r){if(16777216&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 252:case 162:case 165:case 164:case 201:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=km(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return _o(n.name,!0,!1)}}(t,r);case 212:case 245:return function(t){var r=e.getContainingFunction(t);if(r){var n=Fm(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=Gx(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=Rg(n,Yb);return o&&Su([o,wv(o)])}return n}}}(t);case 222:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=Fm(r);if(i)return t.asteriskToken?i:oD(0,i,0!=(2&n))}}(n);case 216:return function(e,t){var r=Km(e,t);if(r){var n=Yb(r);return n&&Su([n,wv(n)])}}(n,r);case 206:if(100===n.expression.kind)return Ue;case 207:return wm(n,t);case 209:case 227:return e.isConstTypeReference(n.type)?function(e){return Km(e)}(n):V_(n.type);case 219:return function(t,r){var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?function(t){var r,n,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t))return Xf(t);if(e.isPropertyAccessExpression(t)){var r=Eb(t.expression);return e.isPrivateIdentifier(t.name)?function(e,t){var r=Uy(t.escapedText,t);return r&&Ky(e,r)}(r,t.name):Sc(r,t.name.escapedText)}}(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&dd(V_(c),Bn(a).mapper)||o.initializer&&Eb(t.left):0===i?Eb(t.left):Om(t);case 5:if(Im(t,i))return Om(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return V_(c);if(e.isIdentifier(l.expression)){var u=l.expression,_=zn(u,u.escapedText,111551,void 0,u.escapedText,!0);if(_){var d=_.valueDeclaration&&e.getEffectiveTypeAnnotationNode(_.valueDeclaration);if(d){var p=e.getElementOrPropertyAccessName(l);if(void 0!==p)return Lm(V_(d),p)}return}}return e.isInJSFile(s)?void 0:Eb(t.left)}return Eb(t.left);case 1:case 6:case 3:var f=null===(r=t.left.symbol)||void 0===r?void 0:r.valueDeclaration;case 2:f||(f=null===(n=t.symbol)||void 0===n?void 0:n.valueDeclaration);var g=f&&e.getEffectiveTypeAnnotationNode(f);return g?V_(g):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}(n):void 0;case 56:case 60:var s=Km(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?Eb(i):s;case 55:case 27:return t===o?Km(n,r):void 0;default:return}}(t,r);case 291:case 292:return Mm(n,r);case 293:return Km(n.parent,r);case 202:var i=n;return Rm(Jm(i,r),e.indexOfNode(i.elements,t));case 220:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?Km(r,t):void 0}(t,r);case 231:return e.Debug.assert(221===n.parent.kind),function(e,t){if(208===e.parent.kind)return wm(e.parent,t)}(n.parent,t);case 210:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?V_(a.typeExpression.type):Km(n,r);case 228:return Km(n,r);case 286:return function(t){var r=t.parent;return e.isJsxAttributeLike(r)?Km(t):e.isJsxElement(r)?function(t,r){var n=Jm(t.openingElement.tagName),i=yy(gy(t));if(n&&!Ja(n)&&i&&""!==i){var a=e.getSemanticJsxChildren(t.children),o=a.indexOf(r),s=Lm(n,i);return s&&(1===a.length?s:Rg(s,(function(e){return Sp(e)?i_(e,O_(o)):e}),!0))}}(r,t):void 0}(n);case 283:case 285:return Bm(n);case 278:case 277:return function(t,r){return e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r?t.parent.contextualType:Pm(t,0)}(n,r)}}}function zm(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function Gm(t,r){return 0!==Ah(r)?function(e,t){var r=Cv(e,Le);r=Wm(t,gy(t),r);var n=dy(N.IntrinsicAttributes,t);return n!==Pe&&(r=Ps(n,r)),r}(t,r):function(t,r){var n,i=gy(r),a=(n=i,my(N.ElementAttributesPropertyNameContainer,n)),o=void 0===a?Cv(t,Le):""===a?Zc(t):function(e,t){if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n<i.length;n++){var a=Zc(i[n]);if(Ja(a))return a;var o=ja(a,t);if(!o)return;r.push(o)}return Fu(r)}var s=Zc(e);return Ja(s)?s:ja(s,t)}(t,a);if(!o)return a&&e.length(r.attributes.properties)&&Sn(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(a)),Le;if(Ja(o=Wm(r,i,o)))return o;var s=o,c=dy(N.IntrinsicClassAttributes,r);if(c!==Pe){var l=Oo(c.symbol),u=Zc(t);s=Ps(l?xl(c,zc([u],l,Kc(l),e.isInJSFile(r))):c,s)}var _=dy(N.IntrinsicAttributes,r);return _!==Pe&&(s=Ps(_,s)),s}(t,r)}function Wm(t,r,n){var i,a=(i=r)&&Vn(i.exports,N.LibraryManagedAttributes,788968);if(a){var o=es(a),s=function(e){if(cy(e.tagName))return cl(Yh(e,t=by(e)));var t,r=lb(e.tagName);return 128&r.flags?(t=vy(r,e))?cl(Yh(e,t)):Pe:r}(t);if(524288&a.flags){var c=Bn(a).typeParameters;if(e.length(c)>=2)return kl(a,zc([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return xl(o,zc([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function qm(t,r){var n=Tc(t,0),i=e.filter(n,(function(t){return!function(t,r){for(var n=0;n<r.parameters.length;n++){var i=r.parameters[n];if(i.initializer||i.questionToken||i.dotDotDotToken||Bc(i))break}return r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--,!Dv(t)&&bv(t)<n}(t,r)}));return 1===i.length?i[0]:function(t){return e.getStrictOptionValue(V,"noImplicitAny")?e.reduceLeft(t,(function(t,r){return t!==r&&t?Fs(t.typeParameters,r.typeParameters)?function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=q_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=bv(e),i=bv(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Dv(e)||Dv(t),l=c&&!Dv(a),u=new Array(s+(l?1:0)),_=0;_<s;_++){var d=hv(a,_);a===t&&(d=dd(d,r));var p=hv(o,_)||Le;o===t&&(p=dd(p,r));var f=Su([d,p]),g=c&&!l&&_===s-1,m=_>=xv(a)&&_>=xv(o),y=_>=n?void 0:pv(e,_),h=_>=i?void 0:pv(t,_),v=Nn(1|(m&&!g?16777216:0),(y===h?y:y?h?void 0:y:h)||"arg"+_);v.type=g?ru(f):f,u[_]=v}if(l){var b=Nn(1,"args");b.type=ru(yv(o,s)),o===t&&(b.type=dd(b.type,r)),u[s]=b}return u}(t,r,n),s=function(e,t,r){return e&&t?of(e,Su([Co(e),dd(Co(t),r)])):e||t}(t.thisParameter,r.thisParameter,n),c=Ds(a,i,s,o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return c.compositeKind=2097152,c.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(c.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?Z_(t.mapper,n):n),c}(t,r):void 0:t})):void 0}(i)}function Hm(e){return 211===e.kind||212===e.kind}function Ym(t){return Hm(t)||e.isObjectLiteralMethod(t)?Xm(t):void 0}function Xm(t){e.Debug.assert(167!==t.kind||e.isObjectLiteralMethod(t));var r=Wc(t);if(r)return r;var n=Jm(t,1);if(n){if(!(1048576&n.flags))return qm(n,t);for(var i,a=0,o=n.types;a<o.length;a++){var s=qm(o[a],t);if(s)if(i){if(!yp(i[0],s,!1,!0,!0,Dd))return;i.push(s)}else i=[s]}return i?1===i.length?i[0]:Es(i[0],i):void 0}}function Qm(e){return 201===e.kind&&!!e.initializer||219===e.kind&&63===e.operatorToken.kind}function $m(t,r,n){for(var i=t.elements,a=i.length,o=[],s=[],c=Jm(t),l=e.isAssignmentTarget(t),u=fb(t),_=!1,d=0;d<a;d++){var p=i[d];if(223===p.kind){U<2&&jS(p,V.downlevelIteration?1536:1024);var f=kb(p.expression,r,n);if(Sp(f))o.push(f),s.push(8);else if(l){var g=Pc(f,Ke)||jx(65,f,Me,void 0,!1)||Le;o.push(g),s.push(4)}else o.push(Bx(33,f,Me,p.expression)),s.push(4)}else if(te&&225===p.kind)_=!0,o.push(je),s.push(2);else{var m=gb(p,r,Rm(c,o.length),n);o.push($a(m,!0,_)),s.push(_?2:1)}}return l?cu(o,s):n||u||c&&Pg(c,kp)?Zm(cu(o,s,u)):Zm(ru(o.length?Su(e.sameMap(o,(function(e,t){return 8&s[t]?o_(e,Ke)||Ne:e})),2):W?tt:Re,u))}function Zm(t){if(!(4&e.getObjectFlags(t)))return t;var r=t.literalType;return r||((r=t.literalType=Dl(t)).objectFlags|=294912),r}function ey(e){switch(e.kind){case 160:return function(e){return Yv(ry(e),296)}(e);case 79:return ty(e.escapedText);case 8:case 10:return ty(e.text);default:return!1}}function ty(e){return(+e).toString()===e}function ry(t){var r=jn(t.expression);if(!r.resolvedType){if(r.resolvedType=kb(t.expression),e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&e.isClassExpression(t.parent.parent)){var n=fm(e.getEnclosingBlockScopeContainer(t.parent.parent));n&&(jn(n).flags|=65536,jn(t).flags|=524288,jn(t.parent.parent).flags|=524288)}(98304&r.resolvedType.flags||!Yv(r.resolvedType,402665900)&&!Cd(r.resolvedType,at))&&Sn(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return r.resolvedType}function ny(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r[0];return e.isKnownSymbol(t)||n&&e.isNamedDeclaration(n)&&e.isComputedPropertyName(n.name)&&Yv(ry(n.name),4096)}function iy(t,r,n,i){for(var a,o,s,c=[],l=r;l<n.length;l++){var u=n[l];(i===Ue&&!ny(u)||i===Ke&&(void 0,void 0,s=null===(o=(a=u).declarations)||void 0===o?void 0:o[0],ty(a.escapedName)||s&&e.isNamedDeclaration(s)&&ey(s.name))||i===Xe&&ny(u))&&c.push(Co(n[l]))}return _l(i,c.length?Su(c,2):Me,fb(t))}function ay(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Bn(t);if(!r.immediateTarget){var n=ti(t);if(!n)return e.Debug.fail();r.immediateTarget=_i(n,!0)}return r.immediateTarget}function oy(t){if(465829888&t.flags){var r=sc(t);if(void 0!==r)return oy(r)}return!!(126615553&t.flags||117632&Gp(t)&&oy(Wp(t))||3145728&t.flags&&e.every(t.types,oy))}function sy(t){return e.stringContains(t,"-")}function cy(t){return 79===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function ly(e,t){return e.initializer?gb(e.initializer,t):qe}function uy(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];if(11===a.kind)a.containsOnlyTriviaWhiteSpaces||r.push(Ue);else{if(286===a.kind&&!a.expression)continue;r.push(gb(a,t))}}return r}function _y(t,r,n){for(var i=0,a=ec(t);i<a.length;i++){var o=a[i];if(!(16777216&o.flags)){var s=r.get(o.escapedName);if(s){var c=Sn(s.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(s.escapedName));e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function dy(e,t){var r=gy(t),n=r&&Oi(r),i=n&&Vn(n,e,788968);return i?es(i):Pe}function py(t){var r=jn(t);if(!r.resolvedSymbol){var n=dy(N.IntrinsicElements,t);if(n!==Pe){if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=Sc(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):Pc(n,Ue)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(Sn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+N.IntrinsicElements),r.resolvedSymbol=ke)}return X&&Sn(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(N.IntrinsicElements)),r.resolvedSymbol=ke}return r.resolvedSymbol}function fy(t){var r=t&&e.getSourceFileOfNode(t),n=r&&jn(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(V,r),V);if(i){var a=Ci(t,i,e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,t),o=a&&a!==ke?Bi(pi(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function gy(e){var t=e&&jn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=fy(e);if(!r||r===ke){var n=bn(e);r=zn(e,n,1920,void 0,n,!1)}if(r){var i=pi(Vn(Oi(pi(r)),N.JSX,1920));if(i&&i!==ke)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=pi(Gl(N.JSX,1920,void 0));return a!==ke?a:void 0}function my(t,r){var n=r&&Vn(r.exports,t,788968),i=n&&es(n),a=i&&ec(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&n.declarations&&Sn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function yy(e){return my(N.ElementChildrenAttributeNameContainer,e)}function hy(t,r){if(4&t.flags)return[vr];if(128&t.flags){var n=vy(t,r);return n?[Yh(r,n)]:(Sn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+N.IntrinsicElements),e.emptyArray)}var i=pc(t),a=Tc(i,1);return 0===a.length&&(a=Tc(i,0)),0===a.length&&1048576&i.flags&&(a=Ns(e.map(i.types,(function(e){return hy(e,r)})))),a}function vy(t,r){var n=dy(N.IntrinsicElements,r);if(n!==Pe){var i=t.value,a=Sc(n,e.escapeLeadingUnderscores(i));return a?Co(a):Pc(n,Ue)||void 0}return Ne}function by(t){e.Debug.assert(cy(t.tagName));var r=jn(t);if(!r.resolvedJsxElementAttributesType){var n=py(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=Co(n)||Pe:2&r.jsxFlags?r.resolvedJsxElementAttributesType=Pc(dy(N.IntrinsicElements,t),Ue)||Pe:r.resolvedJsxElementAttributesType=Pe}return r.resolvedJsxElementAttributesType}function xy(e){var t=dy(N.ElementClass,e);if(t!==Pe)return t}function Dy(e){return dy(N.Element,e)}function Sy(e){var t=Dy(e);if(t)return Su([t,Je])}function Ey(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&function(t){(function(t){if(e.isPropertyAccessExpression(t)){var r=t;do{var n=a(r.name);if(n)return n;r=r.expression}while(e.isPropertyAccessExpression(r));var i=a(r);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return pE(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),WS(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(285!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return pE(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&286===s.kind&&!s.expression)return pE(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(t),r=t,0===(V.jsx||0)&&Sn(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===Dy(r)&&X&&Sn(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!fy(t)){var i=ln&&2===V.jsx?e.Diagnostics.Cannot_find_name_0:void 0,a=bn(t),o=n?t.tagName:t,s=void 0;e.isJsxOpeningFragment(t)&&"null"===a||(s=zn(o,a,111551,i,a,!0)),s&&(s.isReferenced=67108863,2097152&s.flags&&!yi(s)&&vi(s))}if(n){var c=t,l=$h(c);rv(l,t),function(t,r,n){if(1===t)(i=Sy(n))&&Qd(r,i,gn,n.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,o);else if(0===t)(a=xy(n))&&Qd(r,a,gn,n.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,o);else{var i=Sy(n),a=xy(n);if(!i||!a)return;Qd(r,Su([i,a]),gn,n.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,o)}function o(){var t=e.getTextOfNode(n.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,t)}}(Ah(c),Zc(l),c)}}function Ty(e,t,r){if(524288&e.flags){if($s(e,t)||Lc(e,t)||ds(t)&&wc(e,Ue)||r&&sy(t))return!0}else if(3145728&e.flags&&Cy(e))for(var n=0,i=e.types;n<i.length;n++)if(Ty(i[n],t,r))return!0;return!1}function Cy(t){return!!(524288&t.flags&&!(512&e.getObjectFlags(t))||67108864&t.flags||1048576&t.flags&&e.some(t.types,Cy)||2097152&t.flags&&e.every(t.types,Cy))}function ky(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function Ay(t){if(8192&t.flags||4&e.getCheckFlags(t))return!0;if(e.isInJSFile(t.valueDeclaration)){var r=t.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&3===e.getAssignmentDeclarationKind(r)}}function Ny(t,r,n,i,a,o){void 0===o&&(o=!0);var s,c=e.getDeclarationModifierFlagsFromSymbol(a,n),l=159===t.kind?t.right:198===t.kind?t:201===t.kind&&t.propertyName?t.propertyName:t.name;if(r){if(U<2&&Fy(a))return o&&Sn(l,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&c)return o&&Sn(l,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ha(a),ba(_p(a))),!1}if(128&c&&Fy(a)&&(e.isThisProperty(t)||e.isThisInitializedObjectBindingExpression(t)||e.isObjectBindingPattern(t.parent)&&e.isThisInitializedDeclaration(t.parent.parent))&&(s=e.getClassLikeDeclarationOfSymbol(Ji(a)))&&function(t){return!!e.findAncestor(t,(function(t){return!!(e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t))||!(!e.isClassLike(t)&&!e.isFunctionLikeDeclaration(t))&&"quit"}))}(t))return o&&Sn(l,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ha(a),e.getTextOfIdentifierOrLiteral(s.name)),!1;if(!(24&c))return!0;if(8&c)return!!qD(t,s=e.getClassLikeDeclarationOfSymbol(Ji(a)))||(o&&Sn(l,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,ha(a),ba(_p(a))),!1);if(r)return!0;var u=WD(t,(function(t){var r=es(ji(t));return function(t,r,n){return up(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r,n))&&!Fo(t,_p(r))}))?void 0:t}(r,a,n)?r:void 0}));if(!u){var _=void 0;if(32&c||!(_=function(t){var r=e.getThisContainer(t,!1);return r&&e.isFunctionLike(r)?e.getThisParameter(r):void 0}(t))||!_.type)return o&&Sn(l,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ha(a),ba(_p(a)||i)),!1;var d=V_(_.type);u=(262144&d.flags?rc(d):d).target}return!!(32&c)||(262144&i.flags&&(i=i.isThisType?rc(i):sc(i)),!(!i||!Fo(i,u))||(o&&Sn(l,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ha(a),ba(u),ba(i)),!1))}function Fy(e){return!!up(e,(function(e){return!(8192&e.flags)}))}function wy(e){return Ry(kb(e),e)}function Py(e){return!!(98304&(W?Gp(e):e.flags))}function Iy(e){return Py(e)?Xp(e):e}function Oy(t,r){Sn(t,32768&r?65536&r?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function Ly(t,r){Sn(t,32768&r?65536&r?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function My(t,r,n){if(W&&2&t.flags)return Sn(r,e.Diagnostics.Object_is_of_type_unknown),Pe;var i=98304&(W?Gp(t):t.flags);if(i){n(r,i);var a=Xp(t);return 229376&a.flags?Pe:a}return t}function Ry(e,t){return My(e,t,Oy)}function By(t,r){var n=Ry(t,r);return n!==Pe&&16384&n.flags&&Sn(r,e.Diagnostics.Object_is_possibly_undefined),n}function jy(e,t){return 32&e.flags?function(e,t){var r=kb(e.expression),n=ef(r,e.expression);return Zp(Gy(e,e.expression,Ry(n,e.expression),e.name,t),e,n!==r)}(e,t):Gy(e,e.expression,wy(e.expression),e.name,t)}function Jy(t,r){var n=e.isPartOfTypeQuery(t)&&e.isThisIdentifier(t.left)?Ry(vm(t.left),t.left):wy(t.left);return Gy(t,t.left,n,t.right,r)}function Vy(t){for(;210===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function Uy(t,r){for(var n=e.getContainingClass(r);n;n=e.getContainingClass(n)){var i=n.symbol,a=e.getSymbolNameForPrivateIdentifier(i,t),o=i.members&&i.members.get(a)||i.exports&&i.exports.get(a);if(o)return o}}function Ky(e,t){return Sc(e,t.escapedName)}function zy(t,r){return(eo(r)||e.isThisProperty(t)&&to(r))&&e.getThisContainer(t,!0)===ro(r)}function Gy(t,r,n,i,a){var o,s,c=jn(r).resolvedSymbol,u=e.getAssignmentTargetKind(t),_=pc(0!==u||Vy(t)?pf(n):n),d=Ja(_)||_===Ze;if(e.isPrivateIdentifier(i)){U<99&&(0!==u&&jS(t,1048576),1!==u&&jS(t,524288));var p=Uy(i.escapedText,i);if(u&&p&&p.valueDeclaration&&e.isMethodDeclaration(p.valueDeclaration)&&pE(i,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(i)),(null==p?void 0:p.valueDeclaration)&&99===V.target&&!z){var f=e.getContainingClass(p.valueDeclaration),g=e.findAncestor(t,(function(t){return t===f?"quit":!(!e.isPropertyDeclaration(t.parent)||!e.hasStaticModifier(t.parent)||t.parent.initializer!==t||t.parent.parent!==f)}));if(g){var m=ji(g.parent);e.Debug.assert(m,"Initializer without declaration symbol");var y=Sn(t,e.Diagnostics.Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false,e.symbolName(p));e.addRelatedInfo(y,e.createDiagnosticForNode(g.parent,e.Diagnostics.Initializer_for_property_0,e.symbolName(m)))}}if(d){if(p)return _;if(!e.getContainingClass(i))return pE(i,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ne}if(!(o=p?Ky(n,p):void 0)&&function(t,r,n){var i,a=ec(t);a&&e.forEach(a,(function(t){var n=t.valueDeclaration;if(n&&e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name)&&n.name.escapedText===r.escapedText)return i=t,!0}));var o=Hn(r);if(i){var s=e.Debug.checkDefined(i.valueDeclaration),c=e.Debug.checkDefined(e.getContainingClass(s));if(null==n?void 0:n.valueDeclaration){var u=n.valueDeclaration,_=e.getContainingClass(u);if(e.Debug.assert(!!_),e.findAncestor(_,(function(e){return c===e}))){var d=Sn(r,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,ba(t));return e.addRelatedInfo(d,e.createDiagnosticForNode(u,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,o),e.createDiagnosticForNode(s,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}}return Sn(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,Hn(c.name||l)),!0}return!1}(n,i,p))return Pe;o&&65536&o.flags&&!(32768&o.flags)&&1!==u&&Sn(t,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(d)return e.isIdentifier(r)&&c&&pm(c,t),_;o=Sc(_,i.escapedText)}if(e.isIdentifier(r)&&c&&(V.isolatedModules||!o||!gS(o)||e.shouldPreserveConstEnums(V)&&dm(t))&&pm(c,t),o){o.declarations&&134217728&ky(o)&&zu(t,o)&&An(i,o.declarations,i.escapedText),function(t,r,n){var i,a=t.valueDeclaration;if(a&&!e.getSourceFileOfNode(r).isDeclarationFile){var o=e.idText(n);!Hy(r)||function(t){return e.isPropertyDeclaration(t)&&t.questionToken}(a)||e.isAccessExpression(r)&&e.isAccessExpression(r.expression)||Un(a,n)||!V.useDefineForClassFields&&function(e){if(!(32&e.parent.flags))return!1;for(var t=Co(e.parent);;){if(!(t=t.symbol&&Yy(t)))return!1;var r=Sc(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(t)?255!==a.kind||176===r.parent.kind||8388608&a.flags||Un(a,n)||(i=Sn(n,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=Sn(n,e.Diagnostics.Property_0_is_used_before_its_initialization,o),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}}(o,t,i),ih(o,t,ah(r,c)),jn(t).resolvedSymbol=o;var h=e.isWriteAccess(t);if(Ny(t,106===r.kind,h,_,o),Gv(t,o,u))return Sn(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),Pe;s=zy(t,o)?Fe:h?function(e){if(98304&e.flags){var t=function(e){var t=Bn(e);return t.writeType||(t.writeType=bo(e,!0))}(e);if(t)return t}return Co(e)}(o):Co(o)}else{var v=e.isPrivateIdentifier(i)||0!==u&&Xu(n)&&!Zu(n)?void 0:Lc(_,i.escapedText);if(!v||!v.type){var b=Wy(t,n.symbol,!0);return!b&&Uu(n)?Ne:n.symbol===se?(se.exports.has(i.escapedText)&&418&se.exports.get(i.escapedText).flags?Sn(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),ba(n)):X&&Sn(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,ba(n)),Ne):(i.escapedText&&!Xn(t)&&function(t,r,n){var i,a;if(!e.isPrivateIdentifier(t)&&1048576&r.flags&&!(131068&r.flags))for(var o=0,s=r.types;o<s.length;o++){var c=s[o];if(!Sc(c,t.escapedText)&&!Lc(c,t.escapedText)){i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),ba(c));break}}if(Xy(t.escapedText,r)){var l=e.declarationNameToString(t),u=ba(r);i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,u,u+"."+l)}else{var _=qb(r);if(_&&Sc(_,t.escapedText))i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),ba(r)),a=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);else{var d=e.declarationNameToString(t),p=ba(r),f=function(t,r){var n=pc(r).symbol;if(n)for(var i=e.getScriptTargetFeatures(),a=0,o=e.getOwnKeys(i);a<o.length;a++){var s=o[a],c=i[s][e.symbolName(n)];if(void 0!==c&&e.contains(c,t))return s}}(d,r);if(void 0!==f)i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,d,p,f);else{var g=$y(t,r);if(void 0!==g){var m=e.symbolName(g),y=n?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;i=e.chainDiagnosticMessages(i,y,d,p,m),a=g.valueDeclaration&&e.createDiagnosticForNode(g.valueDeclaration,e.Diagnostics._0_is_declared_here,m)}else{var h=function(t){return V.lib&&!V.lib.includes("dom")&&(n=function(t){return t.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(t.symbol.escapedName))},3145728&(r=t).flags?e.every(r.types,n):n(r))&&Kd(t);var r,n}(r)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;i=e.chainDiagnosticMessages(Dc(i,r),h,d,p)}}}}var v=e.createDiagnosticForNodeFromMessageChain(t,i);a&&e.addRelatedInfo(v,a),En(!n,v)}(i,Zu(n)?_:n,b),Pe)}v.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&Sn(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ba(_)),s=V.noUncheckedIndexedAccess&&!e.isAssignmentTarget(t)?Su([v.type,Me]):v.type,V.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(t)&&Sn(i,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(i.escapedText))}return qy(t,o,s,i,a)}function Wy(t,r,n){var i=e.getSourceFileOfNode(t);if(i&&void 0===V.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){var a=e.forEach(null==r?void 0:r.declarations,e.getSourceFileOfNode);return!(i!==a&&a&&Jn(a)||n&&r&&32&r.flags||t&&n&&e.isPropertyAccessExpression(t)&&108===t.expression.kind)}return!1}function qy(t,r,n,i,a){var o=e.getAssignmentTargetKind(t);if(1===o)return tf(n,!!(r&&16777216&r.flags));if(r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags)&&!OD(r.declarations))return n;if(n===Fe)return io(t,r);n=_m(n,t,a);var s=!1;if(W&&Y&&e.isAccessExpression(t)&&108===t.expression.kind){var c=r&&r.valueDeclaration;if(c&&vD(c)&&!e.isStatic(c)){var l=om(t);169!==l.kind||l.parent!==c.parent||8388608&c.flags||(s=!0)}}else W&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&om(t)===om(r.valueDeclaration)&&(s=!0);var u=am(t,n,s?Yp(n):n);return s&&!(32768&Gp(n))&&32768&Gp(u)?(Sn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,ha(r)),n):o?Ip(u):u}function Hy(t){return!!e.findAncestor(t,(function(t){switch(t.kind){case 165:return!0;case 291:case 167:case 170:case 171:case 293:case 160:case 231:case 286:case 283:case 284:case 285:case 278:case 226:case 289:return!1;case 212:case 236:return!(!e.isBlock(t.parent)||!e.isClassStaticBlockDeclaration(t.parent.parent))||"quit";default:return!e.isExpressionNode(t)&&"quit"}}))}function Yy(e){var t=Uo(e);if(0!==t.length)return Fu(t)}function Xy(t,r){var n=r.symbol&&Sc(Co(r.symbol),t);return void 0!==n&&!!n.valueDeclaration&&e.isStatic(n.valueDeclaration)}function Qy(e,t){return nh(e,ec(t),106500)}function $y(t,r){var n=ec(r);if("string"!=typeof t){var i=t.parent;e.isPropertyAccessExpression(i)&&(n=e.filter(n,(function(e){return oh(i,r,e)}))),t=e.idText(t)}return nh(t,n,111551)}function Zy(t,r){var n=e.isString(t)?t:e.idText(t),i=ec(r),a="for"===n?e.find(i,(function(t){return"htmlFor"===e.symbolName(t)})):"class"===n?e.find(i,(function(t){return"className"===e.symbolName(t)})):void 0;return null!=a?a:nh(n,i,111551)}function eh(t,r){var n=$y(t,r);return n&&e.symbolName(n)}function th(t,r,n){e.Debug.assert(void 0!==r,"outername should always be defined");var i=Gn(t,r,n,void 0,r,!1,!1,(function(t,n,i){return e.Debug.assertEqual(r,n,"name should equal outerName"),Vn(t,n,i)||nh(e.unescapeLeadingUnderscores(n),e.arrayFrom(t.values()),i)}));return i}function rh(t,r){return r.exports&&nh(e.idText(t),wi(r),2623475)}function nh(t,r,n){return e.getSpellingSuggestion(t,r,(function(t){var r=e.symbolName(t);if(!e.startsWith(r,'"')){if(t.flags&n)return r;if(2097152&t.flags){var i=function(e){if(Bn(e).target!==Ae)return fi(e)}(t);if(i&&i.flags&n)return r}}}))}function ih(t,r,n){var i=t&&106500&t.flags&&t.valueDeclaration;if(i){var a=e.hasEffectiveModifier(i,8),o=t.valueDeclaration&&e.isNamedDeclaration(t.valueDeclaration)&&e.isPrivateIdentifier(t.valueDeclaration.name);if((a||o)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags)){if(n){var s=e.findAncestor(r,e.isFunctionLikeDeclaration);if(s&&s.symbol===t)return}(1&e.getCheckFlags(t)?Bn(t).target:t).isReferenced=67108863}}}function ah(t,r){return 108===t.kind||!!r&&e.isEntityNameExpression(t)&&r===Xf(e.getFirstIdentifier(t))}function oh(e,t,r){return sh(e,204===e.kind&&106===e.expression.kind,r.escapedName,t)}function sh(t,r,n,i){if(i===Pe||Ja(i))return!0;var a=Sc(i,n);if(a){if(a.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(a.valueDeclaration)){var o=e.getContainingClass(a.valueDeclaration);return!e.isOptionalChain(t)&&!!e.findAncestor(t,(function(e){return e===o}))}return Ny(t,r,!1,i,a,!1)}return e.isInJSFile(t)&&0!=(1048576&i.flags)&&i.types.some((function(e){return sh(t,r,n,e)}))}function ch(t){var r=t.initializer;if(253===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return ji(n)}else if(79===r.kind)return Xf(r)}function lh(t,r,n){var i=0!==e.getAssignmentTargetKind(t)||Vy(t)?pf(r):r,a=t.argumentExpression,o=kb(a);if(i===Pe||i===Ze)return i;if(Qv(i)&&!e.isStringLiteralLike(a))return Sn(a,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Pe;var s=function(t){var r,n=e.skipParentheses(t);if(79===n.kind){var i=Xf(n);if(3&i.flags)for(var a=t,o=t.parent;o;){if(241===o.kind&&a===o.statement&&ch(o)===i&&1===Fc(r=Eb(o.expression)).length&&wc(r,Ke))return!0;a=o,o=o.parent}}return!1}(a)?Ke:o,c=o_(i,s,e.isAssignmentTarget(t)?4|(Xu(i)&&!Zu(i)?2:0):32,t)||Pe;return Vb(qy(t,jn(t).resolvedSymbol,c,a,n),t)}function uh(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function _h(t){return uh(t)&&e.forEach(t.typeArguments,LD),208===t.kind?kb(t.template):e.isJsxOpeningLikeElement(t)?kb(t.attributes):163!==t.kind&&e.forEach(t.arguments,(function(e){kb(e)})),vr}function dh(e){return _h(e),br}function ph(e){return!!e&&(223===e.kind||230===e.kind&&e.isSpread)}function fh(t){return e.findIndex(t,ph)}function gh(e){return!!(16384&e.flags)}function mh(e){return!!(49155&e.flags)}function yh(t,r,n,i){var a;void 0===i&&(i=!1);var o=!1,s=bv(n),c=xv(n);if(208===t.kind)if(a=r.length,221===t.template.kind){var l=e.last(t.template.templateSpans);o=e.nodeIsMissing(l.literal)||!!l.literal.isUnterminated}else{var u=t.template;e.Debug.assert(14===u.kind),o=!!u.isUnterminated}else if(163===t.kind)a=Ih(t,n);else if(e.isJsxOpeningLikeElement(t)){if(o=t.attributes.end===t.end)return!0;a=0===c?r.length:1,s=0===r.length?s:1,c=Math.min(c,1)}else{if(!t.arguments)return e.Debug.assert(207===t.kind),0===xv(n);a=i?r.length+1:r.length,o=t.arguments.end===t.end;var _=fh(r);if(_>=0)return _>=xv(n)&&(Dv(n)||_<bv(n))}if(!Dv(n)&&a>s)return!1;if(o||a>=c)return!0;for(var d=a;d<c;d++)if(131072&Og(yv(n,d),e.isInJSFile(t)&&!W?mh:gh).flags)return!1;return!0}function hh(t,r){var n=e.length(t.typeParameters),i=Kc(t.typeParameters);return!e.some(r)||r.length>=i&&r.length<=n}function vh(e){return xh(e,0,!1)}function bh(e){return xh(e,0,!1)||xh(e,1,!1)}function xh(e,t,r){if(524288&e.flags){var n=Xs(e);if(r||0===n.properties.length&&0===n.indexInfos.length){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function Dh(t,r,n,i){var a=bf(t.typeParameters,t,0,i),o=Sv(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return hf(s?nd(r,s):r,t,(function(e,t){Vf(a.inferences,e,t)})),n||vf(r,t,(function(e,t){Vf(a.inferences,e,t,128)})),nl(t,Hf(a),e.isInJSFile(r.declaration))}function Sh(t){if(!t)return Qe;var r=kb(t);return e.isOptionalChainRoot(t.parent)?Xp(r):e.isOptionalChain(t.parent)?$p(r):r}function Eh(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=Gm(t,e),a=cb(e.attributes,i,n,r);return Vf(n.inferences,a,i),Hf(n)}(t,r,i,a);if(163!==t.kind){var o=Km(t,e.every(r.typeParameters,(function(e){return!!dc(e)}))?8:0);if(o){var s=zm(t),c=Cf(function(t,r){return void 0===r&&(r=0),t&&xf(e.map(t.inferences,Tf),t.signature,t.flags|r,t.compareTypes)}(s,1)),l=dd(o,c),u=vh(l),_=u&&u.typeParameters?cl(il(u,u.typeParameters)):l,d=Zc(r);Vf(a.inferences,_,d,128);var p=bf(r.typeParameters,r,a.flags),f=dd(o,s&&s.returnMapper);Vf(p.inferences,f,d),a.returnMapper=e.some(p.inferences,bb)?Cf(function(t){var r=e.filter(t.inferences,bb);return r.length?xf(e.map(r,Tf),t.signature,t.flags,t.compareTypes):void 0}(p)):void 0}}var g=Ev(r),m=g?Math.min(bv(r)-1,n.length):n.length;if(g&&262144&g.flags){var y=e.find(a.inferences,(function(e){return e.typeParameter===g}));y&&(y.impliedArity=e.findIndex(n,ph,m)<0?n.length-m:void 0)}var h=Xc(r);if(h){var v=Fh(t);Vf(a.inferences,Sh(v),h)}for(var b=0;b<m;b++){var x=n[b];if(225!==x.kind){var D=yv(r,b),S=cb(x,D,a,i);Vf(a.inferences,S,D)}}if(g){var E=Ch(n,m,n.length,g,a,i);Vf(a.inferences,E,g)}return Hf(a)}function Th(e){return 1048576&e.flags?Rg(e,Th):1&e.flags||xp(sc(e)||e)?e:Bp(e)?cu(El(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):cu([e],[8])}function Ch(t,r,n,i,a,o){if(r>=n-1&&ph(_=t[n-1]))return Th(230===_.kind?_.type:cb(_.expression,i,a,o));for(var s=[],c=[],l=[],u=r;u<n;u++){var _;if(ph(_=t[u])){var d=230===_.kind?_.type:kb(_.expression);Sp(d)?(s.push(d),c.push(8)):(s.push(Bx(33,d,Me,223===_.kind?_.expression:_)),c.push(4))}else{var p=i_(i,O_(u-r),256),f=cb(_,p,a,o),g=Hv(p,406978556);s.push(g?w_(f):Op(f)),c.push(1)}230===_.kind&&_.tupleNameSource&&l.push(_.tupleNameSource)}return cu(s,c,!1,e.length(l)===e.length(s)?l:void 0)}function kh(t,r,n,i){for(var a,o=e.isInJSFile(t.declaration),s=t.typeParameters,c=zc(e.map(r,V_),s,Kc(s),o),l=0;l<r.length;l++){e.Debug.assert(void 0!==s[l],"Should not call checkTypeArguments with too many type arguments");var u=rc(s[l]);if(u){var _=n&&i?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,d=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=q_(s,c));var p=c[l];if(!Fd(p,bs(dd(u,a),p),n?r[l]:void 0,d,_))return}}return c}function Ah(t){if(cy(t.tagName))return 2;var r=pc(kb(t.tagName));return e.length(Tc(r,1))?0:e.length(Tc(r,0))?1:2}function Nh(t,r,n,i,a,o,s){var c={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(t))return function(t,r,n,i,a,o,s){var c=Gm(r,t),l=cb(t.attributes,c,void 0,i);return function(){var r;if(fy(t))return!0;var n=e.isJsxOpeningElement(t)||e.isJsxSelfClosingElement(t)&&!cy(t.tagName)?kb(t.tagName):void 0;if(!n)return!0;var i=Tc(n,0);if(!e.length(i))return!0;var o=MS(t);if(!o)return!0;var c=Di(o,111551,!0,!1,t);if(!c)return!0;var l=Tc(Co(c),0);if(!e.length(l))return!0;for(var u=!1,_=0,d=0,p=l;d<p.length;d++){var f=Tc(yv(p[d],0),0);if(e.length(f))for(var g=0,m=f;g<m.length;g++){var y=m[g];if(u=!0,Dv(y))return!0;var h=bv(y);h>_&&(_=h)}}if(!u)return!0;for(var v=1/0,b=0,x=i;b<x.length;b++){var D=xv(x[b]);D<v&&(v=D)}if(v<=_)return!0;if(a){var S=e.createDiagnosticForNode(t.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(t.tagName),v,e.entityNameToString(o),_),E=null===(r=QD(t.tagName))||void 0===r?void 0:r.valueDeclaration;E&&e.addRelatedInfo(S,e.createDiagnosticForNode(E,e.Diagnostics._0_is_declared_here,e.entityNameToString(t.tagName))),s&&s.skipLogging&&(s.errors||(s.errors=[])).push(S),s.skipLogging||ln.add(S)}return!1}()&&Pd(l,c,n,a?t.tagName:void 0,t.attributes,void 0,o,s)}(t,n,i,a,o,s,c)?void 0:(e.Debug.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||e.emptyArray);var l=Xc(n);if(l&&l!==Qe&&207!==t.kind){var u=Fh(t),_=Sh(u),d=o?u||t:void 0,p=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Qd(_,l,i,d,p,s,c))return e.Debug.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||e.emptyArray}for(var f=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,g=Ev(n),m=g?Math.min(bv(n)-1,r.length):r.length,y=0;y<m;y++){var h=r[y];if(225!==h.kind){var v=yv(n,y),b=cb(h,v,void 0,a),x=4&a?sf(b):b;if(!Pd(x,v,i,o?h:void 0,h,f,s,c))return e.Debug.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),E(h,x,v),c.errors||e.emptyArray}}if(g){var D=Ch(r,m,r.length,g,void 0,a),S=r.length-m;if(d=o?0===S?t:1===S?r[m]:e.setTextRangePosEnd(wh(t,D),r[m].pos,r[r.length-1].end):void 0,!Qd(D,g,i,d,f,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),E(d,D,g),c.errors||e.emptyArray}return;function E(t,r,n){if(t&&o&&c.errors&&c.errors.length){if(Wb(n))return;var a=Wb(r);a&&Hd(a,n,i)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await))}}}function Fh(t){var r=206===t.kind?t.expression:208===t.kind?t.tag:void 0;if(r){var n=e.skipOuterExpressions(r);if(e.isAccessExpression(n))return n.expression}}function wh(t,r,n,i){var a=e.parseNodeFactory.createSyntheticExpression(r,n,i);return e.setTextRange(a,t),e.setParent(a,t),a}function Ph(t){if(208===t.kind){var r=t.template,n=[wh(r,ar||(ar=Wl("TemplateStringsArray",0,!0))||_t)];return 221===r.kind&&e.forEach(r.templateSpans,(function(e){n.push(e.expression)})),n}if(163===t.kind)return function(t){var r=t.parent,n=t.expression;switch(r.kind){case 255:case 224:return[wh(n,Co(ji(r)))];case 162:var i=r.parent;return[wh(n,169===r.parent.kind?Co(ji(i)):Pe),wh(n,Ne),wh(n,Ke)];case 165:case 167:case 170:case 171:var a=165!==r.kind&&0!==U;return[wh(n,tS(r)),wh(n,rS(r)),wh(n,a?tu($D(r)):Ne)]}return e.Debug.fail()}(t);if(e.isJsxOpeningLikeElement(t))return t.attributes.properties.length>0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=fh(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=223===r.kind&&(Lr?kb(r.expression):lb(r.expression));n&&Bp(n)?e.forEach(El(n),(function(e,t){var i,a=n.target.elementFlags[t],s=wh(r,4&a?ru(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c<i.length;c++)s(c);return o}return i}function Ih(t,r){switch(t.parent.kind){case 255:case 224:return 1;case 165:return 2;case 167:case 170:case 171:return 0===U||r.parameters.length<=2?2:3;case 162:return 3;default:return e.Debug.fail()}}function Oh(t,r){var n,i,a=e.getSourceFileOfNode(t);if(e.isPropertyAccessExpression(t.expression)){var o=e.getErrorSpanForNode(a,t.expression.name);n=o.start,i=r?o.length:t.end-n}else{var s=e.getErrorSpanForNode(a,t.expression);n=s.start,i=r?s.length:t.end-n}return{start:n,length:i,sourceFile:a}}function Lh(t,r,n,i,a,o){if(e.isCallExpression(t)){var s=Oh(t),c=s.sourceFile,l=s.start,u=s.length;return e.createFileDiagnostic(c,l,u,r,n,i,a,o)}return e.createDiagnosticForNode(t,r,n,i,a,o)}function Mh(t,r,n){var i,a=fh(n);if(a>-1)return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,_=0,d=r;_<d.length;_++){var p=d[_],f=xv(p),g=bv(p);f<s&&(s=f,o=p),c=Math.max(c,g),f<n.length&&f>l&&(l=f),n.length<g&&g<u&&(u=g)}var m=e.some(r,Dv),y=m?s:s<c?s+"-"+c:s,h=m?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:1===y&&0===n.length&&function(t){if(!e.isCallExpression(t)||!e.isIdentifier(t.expression))return!1;var r=zn(t.expression,t.expression.escapedText,111551,void 0,void 0,!1),n=null==r?void 0:r.valueDeclaration;if(!(n&&e.isParameter(n)&&Hm(n.parent)&&e.isNewExpression(n.parent.parent)&&e.isIdentifier(n.parent.parent.expression)))return!1;var i=Ql(!1);return!!i&&QD(n.parent.parent.expression,!0)===i}(t)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(s<n.length&&n.length<c)return Lh(t,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,u);if(n.length<s){var v=Lh(t,h,y,n.length),b=null===(i=null==o?void 0:o.declaration)||void 0===i?void 0:i.parameters[o.thisParameter?n.length+1:n.length];if(b){var x=e.createDiagnosticForNode(b,e.isBindingPattern(b.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(b)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,b.name?e.isBindingPattern(b.name)?void 0:e.idText(e.getFirstIdentifier(b.name)):n.length);return e.addRelatedInfo(v,x)}return v}var D=e.factory.createNodeArray(n.slice(c)),S=e.first(D).pos,E=e.last(D).end;return E===S&&E++,e.setTextRangePosEnd(D,S,E),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),D,h,y,n.length)}function Rh(t,n,a,o,s,c){var l,u=208===t.kind,_=163===t.kind,d=e.isJsxOpeningLikeElement(t),p=!a&&r;_||(l=t.typeArguments,(u||d||106!==t.expression.kind)&&e.forEach(l,LD));var f=a||[];if(function(t,r,n){var i,a,o,s,c=0,l=-1;e.Debug.assert(!r.length);for(var u=0,_=t;u<_.length;u++){var d=_[u],p=d.declaration&&ji(d.declaration),f=d.declaration&&d.declaration.parent;a&&p!==a?(o=c=r.length,i=f):i&&f===i?o+=1:(i=f,o=c),a=p,J(d)?(s=++l,c++):s=o,r.splice(s,0,n?Ts(d,n):d)}}(n,f,s),!f.length)return p&&ln.add(Lh(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),dh(t);var g,m,y,h,v=Ph(t),b=1===f.length&&!f[0].typeParameters,x=_||b||!e.some(v,yd)?0:4,D=!!(16&o)&&206===t.kind&&t.arguments.hasTrailingComma;if(f.length>1&&(h=W(f,pn,b,D)),h||(h=W(f,gn,b,D)),h)return h;if(p)if(g)if(1===g.length||g.length>3){var S,E=g[g.length-1];g.length>3&&(S=e.chainDiagnosticMessages(S,e.Diagnostics.The_last_overload_gave_the_following_error),S=e.chainDiagnosticMessages(S,e.Diagnostics.No_overload_matches_this_call));var T=Nh(t,v,E,gn,0,!0,(function(){return S}));if(T)for(var C=0,k=T;C<k.length;C++){var A=k[C];E.declaration&&g.length>3&&e.addRelatedInfo(A,e.createDiagnosticForNode(E.declaration,e.Diagnostics.The_last_overload_is_declared_here)),G(E,A),ln.add(A)}else e.Debug.fail("No error for last overload signature")}else{for(var N=[],F=0,w=Number.MAX_VALUE,P=0,I=0,O=function(r){var n=Nh(t,v,r,gn,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,I+1,f.length,va(r))}));n?(n.length<=w&&(w=n.length,P=I),F=Math.max(F,n.length),N.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),I++},L=0,M=g;L<M.length;L++)O(M[L]);var R=F>1?N[P]:e.flatten(N);e.Debug.assert(R.length>0,"No errors reported for 3 or fewer overload signatures");var B=e.chainDiagnosticMessages(e.map(R,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),V=i([],e.flatMap(R,(function(e){return e.relatedInformation})),!0),U=void 0;if(e.every(R,(function(e){return e.start===R[0].start&&e.length===R[0].length&&e.file===R[0].file}))){var K=R[0];U={file:K.file,start:K.start,length:K.length,code:B.code,category:B.category,messageText:B,relatedInformation:V}}else U=e.createDiagnosticForNodeFromMessageChain(t,B,V);G(g[0],U),ln.add(U)}else if(m)ln.add(Mh(t,[m],v));else if(y)kh(y,t.typeArguments,!0,c);else{var z=e.filter(n,(function(e){return hh(e,l)}));0===z.length?ln.add(function(t,r,n){var i=n.length;if(1===r.length){var a=Kc((_=r[0]).typeParameters),o=e.length(_.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,a<o?a+"-"+o:a,i)}for(var s=-1/0,c=1/0,l=0,u=r;l<u.length;l++){var _,d=Kc((_=u[l]).typeParameters);o=e.length(_.typeParameters),d>i?c=Math.min(c,d):o<i&&(s=Math.max(s,o))}return s!==-1/0&&c!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,s,c):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,s===-1/0?c:s,i)}(t,n,l)):_?c&&ln.add(Lh(t,c)):ln.add(Mh(t,z,v))}return function(t,r,n,i){return e.Debug.assert(r.length>0),RD(t),i||1===r.length||r.some((function(e){return!!e.typeParameters}))?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=bv(a);if(Dv(a)||o>=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===ce?n.length:ce),a=r[i],o=a.typeParameters;if(!o)return a;var s=uh(t)?t.typeArguments:void 0,c=s?al(a,function(e,t,r){for(var n=e.map($D);n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(rc(t[n.length])||qf(r));return n}(s,o,e.isInJSFile(t))):function(t,r,n,i){return al(n,Eh(t,n,i,12,bf(r,n,e.isInJSFile(t)?2:0)))}(t,o,a,n);return r[i]=c,c}(t,r,n):function(t){var r,n=e.mapDefined(t,(function(e){return e.thisParameter}));n.length&&(r=jh(n,n.map(_v)));for(var i=e.minAndMax(t,Bh),a=i.min,o=i.max,s=[],c=function(r){var n=e.mapDefined(t,(function(t){return j(t)?r<t.parameters.length-1?t.parameters[r]:e.last(t.parameters):r<t.parameters.length?t.parameters[r]:void 0}));e.Debug.assert(0!==n.length),s.push(jh(n,e.mapDefined(t,(function(e){return hv(e,r)}))))},l=0;l<o;l++)c(l);var u=e.mapDefined(t,(function(t){return j(t)?e.last(t.parameters):void 0})),_=0;if(0!==u.length){var d=ru(Su(e.mapDefined(t,rl),2));s.push(Jh(u,d)),_|=1}return t.some(J)&&(_|=2),Ds(t[0].declaration,void 0,r,s,Fu(t.map(Zc)),void 0,a,_)}(r)}(t,f,v,!!a);function G(t,r){var n,i,a=g,o=m,s=y,c=(null===(i=null===(n=t.declaration)||void 0===n?void 0:n.symbol)||void 0===i?void 0:i.declarations)||e.emptyArray,l=c.length>1?e.find(c,(function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)})):void 0;if(l){var u=Gc(l),_=!u.typeParameters;W([u],gn,_)&&e.addRelatedInfo(r,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}g=a,m=o,y=s}function W(r,n,i,a){if(void 0===a&&(a=!1),g=void 0,m=void 0,y=void 0,i){var o=r[0];if(e.some(l)||!yh(t,v,o,a))return;return Nh(t,v,o,n,0,!1,void 0)?void(g=[o]):o}for(var s=0;s<r.length;s++)if(hh(o=r[s],l)&&yh(t,v,o,a)){var c=void 0,u=void 0;if(o.typeParameters){var _=void 0;if(e.some(l)){if(!(_=kh(o,l,!1))){y=o;continue}}else u=bf(o.typeParameters,o,e.isInJSFile(t)?2:0),_=Eh(t,o,v,8|x,u),x|=4&u.flags?8:0;if(c=nl(o,_,e.isInJSFile(o.declaration),u&&u.inferredTypeParameters),Ev(o)&&!yh(t,v,c,a)){m=c;continue}}else c=o;if(!Nh(t,v,c,n,x,!1,void 0)){if(x){if(x=0,u&&(c=nl(o,_=Eh(t,o,v,x,u),e.isInJSFile(o.declaration),u&&u.inferredTypeParameters),Ev(o)&&!yh(t,v,c,a))){m=c;continue}if(Nh(t,v,c,n,x,!1,void 0)){(g||(g=[])).push(c);continue}}return r[s]=c,c}(g||(g=[])).push(c)}}}function Bh(e){var t=e.parameters.length;return j(e)?t-1:t}function jh(e,t){return Jh(e,Su(t,2))}function Jh(t,r){return of(e.first(t),r)}function Vh(e){return!(!e.typeParameters||!CS(Zc(e)))}function Uh(e,t,r,n){return Ja(e)||Ja(t)&&!!(262144&e.flags)||!r&&!n&&!(1048576&t.flags)&&!(131072&hc(t).flags)&&Cd(e,kt)}function Kh(t,r,n){if(t.arguments&&U<1){var i=fh(t.arguments);i>=0&&Sn(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=wy(t.expression);if(a===Ze)return Dr;if((a=pc(a))===Pe)return dh(t);if(Ja(a))return t.typeArguments&&Sn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),_h(t);var o=Tc(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||169!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=es(n.parent.symbol);if(!qD(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=$D(s);if(zh(n.parent.symbol,c))return!0}return 8&i&&Sn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ba(o)),16&i&&Sn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ba(o)),!1}return!0}(t,o[0]))return dh(t);if(o.some((function(e){return 4&e.flags})))return Sn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),dh(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(Sn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),dh(t)):Rh(t,o,r,n,0)}var c=Tc(a,0);if(c.length){var l=Rh(t,c,r,n,0);return X||(l.declaration&&!Zh(l.declaration)&&Zc(l)!==Qe&&Sn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Xc(l)===Qe&&Sn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return Wh(t.expression,a,1),dh(t)}function zh(t,r){var n=Uo(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=Is(i.types),o=0,s=0,c=i.types;s<c.length;s++){var l=c[s];if(!a[o]&&3&e.getObjectFlags(l)){if(l.symbol===t)return!0;if(zh(t,l))return!0}o++}return!1}return i.symbol===t||zh(t,i)}function Gh(t,r,n){var i,a=0===n,o=Yb(r),s=o&&Tc(o,n).length>0;if(1048576&r.flags){for(var c=!1,l=0,u=r.types;l<u.length;l++){var _=u[l];if(0!==Tc(_,n).length){if(c=!0,i)break}else if(i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,ba(_)),i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,ba(r))),c)break}c||(i=e.chainDiagnosticMessages(void 0,a?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,ba(r))),i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,ba(r)))}else i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,ba(r));var d=a?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(t.parent)&&0===t.parent.arguments.length){var p=jn(t).resolvedSymbol;p&&32768&p.flags&&(d=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(i,d),relatedMessage:s?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function Wh(t,r,n,i){var a=Gh(t,r,n),o=a.messageChain,s=a.relatedMessage,c=e.createDiagnosticForNodeFromMessageChain(t,o);if(s&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,s)),e.isCallExpression(t.parent)){var l=Oh(t.parent,!0),u=l.start,_=l.length;c.start=u,c.length=_}ln.add(c),qh(r,n,i?e.addRelatedInfo(c,i):c)}function qh(t,r,n){if(t.symbol){var i=Bn(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=Tc(Co(Bn(t.symbol).target),r);if(!a||!a.length)return;e.addRelatedInfo(n,e.createDiagnosticForNode(i,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function Hh(t){switch(t.parent.kind){case 255:case 224:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 162:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 165:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 167:case 170:case 171:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function Yh(t,r){var n=gy(t),i=n&&Oi(n),a=i&&Vn(i,N.Element,788968),o=a&&ie.symbolToEntityName(a,788968,t),s=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,ie.typeToTypeNode(r,t))],o?e.factory.createTypeReferenceNode(o,void 0):e.factory.createKeywordTypeNode(129)),c=Nn(1,"props");return c.type=r,Ds(s,void 0,void 0,[c],a?es(a):Pe,void 0,1,0)}function Xh(t,r,n){if(cy(t.tagName)){var i=by(t),a=Yh(t,i);return wd(cb(t.attributes,Gm(a,t),void 0,0),i,t.tagName,t.attributes),e.length(t.typeArguments)&&(e.forEach(t.typeArguments,LD),ln.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),t.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(t.typeArguments)))),a}var o=kb(t.tagName),s=pc(o);if(s===Pe)return dh(t);var c=hy(o,t);return Uh(o,s,c.length,0)?_h(t):0===c.length?(Sn(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),dh(t)):Rh(t,c,r,n,0)}function Qh(t,r,n){switch(t.kind){case 206:return function(t,r,n){if(106===t.expression.kind){var i=Dm(t.expression);if(Ja(i)){for(var a=0,o=t.arguments;a<o.length;a++)kb(o[a]);return vr}if(i!==Pe){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(s)return Rh(t,jo(i,s.typeArguments,s),r,n,0)}return _h(t)}var c,l=kb(t.expression);if(e.isCallChain(t)){var u=ef(l,t.expression);c=u===l?0:e.isOutermostOptionalChain(t)?16:8,l=u}else c=0;if((l=My(l,t.expression,Ly))===Ze)return Dr;var _=pc(l);if(_===Pe)return dh(t);var d=Tc(_,0),p=Tc(_,1).length;if(Uh(l,_,d.length,p))return l!==Pe&&t.typeArguments&&Sn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),_h(t);if(!d.length){if(p)Sn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ba(l));else{var f=void 0;if(1===t.arguments.length){var g=e.getSourceFileOfNode(t).text;e.isLineBreak(g.charCodeAt(e.skipTrivia(g,t.expression.end,!0)-1))&&(f=e.createDiagnosticForNode(t.expression,e.Diagnostics.Are_you_missing_a_semicolon))}Wh(t.expression,_,0,f)}return dh(t)}return 8&n&&!t.typeArguments&&d.some(Vh)?(vb(t,n),xr):d.some((function(t){return e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)}))?(Sn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ba(l)),dh(t)):Rh(t,d,r,n,c)}(t,r,n);case 207:return Kh(t,r,n);case 208:return function(t,r,n){var i=kb(t.tag),a=pc(i);if(a===Pe)return dh(t);var o=Tc(a,0),s=Tc(a,1).length;if(Uh(i,a,o.length,s))return _h(t);if(!o.length){if(e.isArrayLiteralExpression(t.parent)){var c=e.createDiagnosticForNode(t.tag,e.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return ln.add(c),dh(t)}return Wh(t.tag,a,0),dh(t)}return Rh(t,o,r,n,0)}(t,r,n);case 163:return function(t,r,n){var i=kb(t.expression),a=pc(i);if(a===Pe)return dh(t);var o,s,c=Tc(a,0),l=Tc(a,1).length;if(Uh(i,a,c.length,l))return _h(t);if(o=t,(s=c).length&&e.every(s,(function(e){return 0===e.minArgumentCount&&!j(e)&&e.parameters.length<Ih(o,e)}))){var u=e.getTextOfNode(t.expression,!1);return Sn(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),dh(t)}var _=Hh(t);if(!c.length){var d=Gh(t.expression,a,0),p=e.chainDiagnosticMessages(d.messageChain,_),f=e.createDiagnosticForNodeFromMessageChain(t.expression,p);return d.relatedMessage&&e.addRelatedInfo(f,e.createDiagnosticForNode(t.expression,d.relatedMessage)),ln.add(f),qh(a,0,f),dh(t)}return Rh(t,c,r,n,0,_)}(t,r,n);case 278:case 277:return Xh(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function $h(e,t,r){var n=jn(e),i=n.resolvedSignature;if(i&&i!==xr&&!t)return i;n.resolvedSignature=xr;var a=Qh(e,t,r||0);return a!==xr&&(n.resolvedSignature=Or===Lr?a:i),a}function Zh(t){var r;if(!t||!e.isInJSFile(t))return!1;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?t:e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?t.initializer:void 0;if(n){if(e.getJSDocClassTag(t))return!0;var i=ji(n);return!!(null===(r=null==i?void 0:i.members)||void 0===r?void 0:r.size)}return!1}function ev(t,r){var n,i;if(r){var a=Bn(r);if(!a.inferredClassSymbol||!a.inferredClassSymbol.has(O(t))){var o=e.isTransientSymbol(t)?t:Pn(t);return o.exports=o.exports||e.createSymbolTable(),o.members=o.members||e.createSymbolTable(),o.flags|=32&r.flags,(null===(n=r.exports)||void 0===n?void 0:n.size)&&Mn(o.exports,r.exports),(null===(i=r.members)||void 0===i?void 0:i.size)&&Mn(o.members,r.members),(a.inferredClassSymbol||(a.inferredClassSymbol=new e.Map)).set(O(o),o),o}return a.inferredClassSymbol.get(O(t))}}function tv(t,r){if(t.parent){var n,i;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!(e.isInJSFile(t)||e.isVarConst(t.parent)&&e.isFunctionLikeDeclaration(t)))return;n=t.parent.name,i=t.parent}else if(e.isBinaryExpression(t.parent)){var a=t.parent,o=t.parent.operatorToken.kind;if(63!==o||!r&&a.right!==t){if(!(56!==o&&60!==o||(e.isVariableDeclaration(a.parent)&&a.parent.initializer===a?(n=a.parent.name,i=a.parent):e.isBinaryExpression(a.parent)&&63===a.parent.operatorToken.kind&&(r||a.parent.right===a)&&(i=n=a.parent.left),n&&e.isBindableStaticNameExpression(n)&&e.isSameEntityName(n,a.left))))return}else i=n=a.left}else r&&e.isFunctionDeclaration(t)&&(n=t.name,i=t);if(i&&n&&(r||e.getExpandoInitializer(t,e.isPrototypeAccess(n))))return ji(i)}}function rv(t,r){if(t.declaration&&134217728&t.declaration.flags){var n=nv(r),i=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(r));a=n,o=t.declaration,s=i,c=va(t),kn(o,s?e.createDiagnosticForNode(a,e.Diagnostics.The_signature_0_of_1_is_deprecated,c,s):e.createDiagnosticForNode(a,e.Diagnostics._0_is_deprecated,c))}var a,o,s,c}function nv(t){switch((t=e.skipParentheses(t)).kind){case 206:case 163:case 207:return nv(t.expression);case 208:return nv(t.tag);case 278:case 277:return nv(t.tagName);case 205:return t.argumentExpression;case 204:return t.name;case 176:var r=t;return e.isQualifiedName(r.typeName)?r.typeName.right:r;default:return t}}function iv(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=Hl(!1);return!!n&&n===zn(r,"Symbol",111551,void 0,void 0,!1)}function av(t,r,n){var i;if(G&&t&&t!==Pe){var a=t;if(!a.syntheticType)if(oi(null===(i=n.declarations)||void 0===i?void 0:i.find(e.isSourceFile),n,!1)){var o=e.createSymbolTable(),s=Nn(2097152,"default");s.parent=n,s.nameType=I_("default"),s.target=pi(r),o.set("default",s);var c=Nn(2048,"__type"),l=ra(c,o,e.emptyArray,e.emptyArray,e.emptyArray);c.type=l,a.syntheticType=oy(t)?C_(t,l,c,0,!1):l}else a.syntheticType=t;return a.syntheticType}return t}function ov(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=zn(t.expression,t.expression.escapedText,111551,void 0,void 0,!0);if(r===ue)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?254:3&r.flags?252:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(8388608&i.flags)}return!1}function sv(t){switch(t.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 202:case 203:case 221:return!0;case 210:return sv(t.expression);case 217:var r=t.operator,n=t.operand;return 40===r&&(8===n.kind||9===n.kind)||39===r&&8===n.kind;case 204:case 205:var i=t.expression;if(e.isIdentifier(i)){var a=QD(i);return a&&2097152&a.flags&&(a=fi(a)),!!(a&&384&a.flags&&1===Yo(a))}}return!1}function cv(t,n,i,a){var o=kb(i,a);if(e.isConstTypeReference(n))return sv(i)||Sn(i,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),w_(o);LD(n),o=sf(Ip(o));var s=V_(n);return r&&s!==Pe&&(Ad(s,pf(o))||Jd(o,s,t,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)),s}function lv(t){switch(t.keywordToken){case 100:return function(){if(!sr){var t=Nn(0,"ImportMetaExpression"),r=ql(),n=Nn(4,"meta",8);n.parent=t,n.type=r;var i=e.createSymbolTable([n]);t.members=i,sr=ra(t,i,e.emptyArray,e.emptyArray,e.emptyArray)}return sr}();case 103:var r=uv(t);return r===Pe?Pe:function(t){var r=Nn(0,"NewTargetExpression"),n=Nn(4,"target",8);n.parent=r,n.type=t;var i=e.createSymbolTable([n]);return r.members=i,ra(r,i,e.emptyArray,e.emptyArray,e.emptyArray)}(r);default:e.Debug.assertNever(t.keywordToken)}}function uv(t){var r=e.getNewTargetContainer(t);return r?169===r.kind?Co(ji(r.parent)):Co(ji(r)):(Sn(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Pe)}function _v(t){var r=Co(t);if(W){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return Yp(r)}return r}function dv(t){return e.Debug.assert(e.isIdentifier(t.name)),t.name.escapedText}function pv(e,t,r){var n=e.parameters.length-(j(e)?1:0);if(t<n)return e.parameters[t].escapedName;var i=e.parameters[n]||ke,a=r||Co(i);if(Bp(a)){var o=a.target.labeledElementDeclarations,s=t-n;return o&&dv(o[s])||i.escapedName+"_"+s}return i.escapedName}function fv(t){return t.valueDeclaration&&e.isParameter(t.valueDeclaration)&&e.isIdentifier(t.valueDeclaration.name)}function gv(t){return 195===t.kind||e.isParameter(t)&&t.name&&e.isIdentifier(t.name)}function mv(e,t){var r=e.parameters.length-(j(e)?1:0);if(t<r){var n=e.parameters[t].valueDeclaration;return n&&gv(n)?n:void 0}var i=e.parameters[r]||ke,a=Co(i);if(Bp(a)){var o=a.target.labeledElementDeclarations;return o&&o[t-r]}return i.valueDeclaration&&gv(i.valueDeclaration)?i.valueDeclaration:void 0}function yv(e,t){return hv(e,t)||Ne}function hv(e,t){var r=e.parameters.length-(j(e)?1:0);if(t<r)return _v(e.parameters[t]);if(j(e)){var n=Co(e.parameters[r]),i=t-r;if(!Bp(n)||n.target.hasRestElement||i<n.target.fixedLength)return i_(n,O_(i))}}function vv(t,r){var n=bv(t),i=xv(t),a=Sv(t);if(a&&r>=n-1)return r===n-1?a:ru(i_(a,Ke));for(var o=[],s=[],c=[],l=r;l<n;l++){!a||l<n-1?(o.push(yv(t,l)),s.push(l<i?1:2)):(o.push(a),s.push(8));var u=mv(t,l);u&&c.push(u)}return cu(o,s,!1,e.length(c)===e.length(o)?c:void 0)}function bv(e){var t=e.parameters.length;if(j(e)){var r=Co(e.parameters[t-1]);if(Bp(r))return t+r.target.fixedLength-(r.target.hasRestElement?0:1)}return t}function xv(t,r){var n=1&r,i=2&r;if(i||void 0===t.resolvedMinArgumentCount){var a=void 0;if(j(t)){var o=Co(t.parameters[t.parameters.length-1]);if(Bp(o)){var s=e.findIndex(o.target.elementFlags,(function(e){return!(1&e)})),c=s<0?o.target.fixedLength:s;c>0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var l=a-1;l>=0&&!(131072&Og(yv(t,l),gh).flags);l--)a=l;t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function Dv(e){if(j(e)){var t=Co(e.parameters[e.parameters.length-1]);return!Bp(t)||t.target.hasRestElement}return!1}function Sv(e){if(j(e)){var t=Co(e.parameters[e.parameters.length-1]);if(!Bp(t))return t;if(t.target.hasRestElement)return du(t,t.target.fixedLength)}}function Ev(e){var t=Sv(e);return!t||vp(t)||Ja(t)||0!=(131072&hc(t).flags)?void 0:t}function Tv(e){return Cv(e,$e)}function Cv(e,t){return e.parameters.length>0?yv(e,0):t}function kv(t,r){if(r.typeParameters){if(t.typeParameters)return;t.typeParameters=r.typeParameters}r.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=of(r.thisParameter,void 0)),Av(t.thisParameter,Co(r.thisParameter)));for(var n=t.parameters.length-(j(t)?1:0),i=0;i<n;i++){var a=t.parameters[i];e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Av(a,hv(r,i))}j(t)&&(a=e.last(t.parameters),!e.isTransientSymbol(a)&&e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Av(a,vv(r,n)))}function Av(e,t){var r=Bn(e);if(!r.type){var n=e.valueDeclaration;r.type=t||po(n,!0),79!==n.name.kind&&(r.type===Le&&(r.type=_o(n.name)),Nv(n.name))}}function Nv(t){for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];e.isOmittedExpression(i)||(79===i.name.kind?Bn(ji(i)).type=Ya(i):Nv(i.name))}}function Fv(e){var t=Xl(!0);return t!==gt?xl(t,[e=Yb(e)||Le]):Le}function wv(e){var t=(!0,Wt||(Wt=Wl("PromiseLike",1,true))||gt);return t!==gt?xl(t,[e=Yb(e)||Le]):Le}function Pv(t,r){var n=Fv(r);return n===Le?(Sn(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),Pe):(Ql(!0)||Sn(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 Iv(t,r){if(!t.body)return Pe;var n,i,a,o=e.getFunctionFlags(t),s=0!=(2&o),c=0!=(1&o),l=Qe;if(233!==t.body.kind)n=lb(t.body,r&&-9&r),s&&(n=Hb(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 if(c){var u=jv(t,r);u?u.length>0&&(n=Su(u,2)):l=$e;var _=function(t,r){var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(function(t){var o,s=t.expression?kb(t.expression,r):Re;if(e.pushIfUnique(n,Lv(t,s,Ne,a)),t.asteriskToken){var c=Gx(s,a?19:17,t.expression);o=c&&c.nextType}else o=Km(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),d=_.yieldTypes,p=_.nextTypes;i=e.some(d)?Su(d,2):void 0,a=e.some(p)?Fu(p):void 0}else{var f=jv(t,r);if(!f)return 2&o?Pv(t,$e):$e;if(0===f.length)return 2&o?Pv(t,Qe):Qe;n=Su(f,2)}if(n||i||a){if(i&&yf(t,i,3),n&&yf(t,n,1),a&&yf(t,a,2),n&&Fp(n)||i&&Fp(i)||a&&Fp(a)){var g=Ym(t),m=g?g===Gc(t)?c?void 0:n:Vm(Zc(g),t):void 0;c?(i=Rp(i,m,0,s),n=Rp(n,m,1,s),a=Rp(a,m,2,s)):n=function(e,t,r){return e&&Fp(e)&&(e=Mp(e,t?r?qb(t):t:void 0)),e}(n,m,s)}i&&(i=pf(i)),n&&(n=pf(n)),a&&(a=pf(a))}return c?Ov(i||$e,n||l,a||Nm(2,t)||Le,s):s?Fv(n||l):n||l}function Ov(e,t,r,n){var i=n?Nr:Fr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Le,t=i.resolveIterationType(t,void 0)||Le,r=i.resolveIterationType(r,void 0)||Le,a===gt){var o=i.getGlobalIterableIteratorType(!1),s=o!==gt?Yx(o,i):void 0,c=s?s.returnType:Ne,l=s?s.nextType:Me;return Cd(t,c)&&Cd(l,r)?o!==gt?eu(o,[e]):(i.getGlobalIterableIteratorType(!0),_t):(i.getGlobalGeneratorType(!0),_t)}return eu(a,[e,t,r])}function Lv(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?Bx(i?19:17,r,n,a):r;return i?Yb(o,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function Mv(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=S.get(r[a])||32768;for(a=e;a<t;a++)i&=~(S.get(r[a])||0);for(a=0;a<e;a++)i|=S.get(r[a])||32768}else{for(a=e;a<t;a++)i|=D.get(r[a])||128;for(a=0;a<e;a++)i&=~(D.get(r[a])||0)}return i}function Rv(t){var r=jn(t);return void 0!==r.isExhaustive?r.isExhaustive:r.isExhaustive=function(t){if(214===t.expression.kind){var r=Eb(t.expression.expression),n=Mv(0,0,Ng(t,!1),!0),i=sc(r)||r;return 3&i.flags?556800==(556800&n):!!(131072&Og(i,(function(e){return(pg(e)&n)===n})).flags)}var a=Eb(t.expression);if(!Pp(a))return!1;var o,s,c=Ag(t);return!(!c.length||e.some(c,Np))&&(o=Rg(a,w_),s=c,1048576&o.flags?!e.forEach(o.types,(function(t){return!e.contains(s,t)})):e.contains(s,o))}(t)}function Bv(e){return e.endFlowNode&&em(e.endFlowNode)}function jv(t,r){var n=e.getFunctionFlags(t),i=[],a=Bv(t),o=!1;if(e.forEachReturnStatement(t.body,(function(s){var c=s.expression;if(c){var l=lb(c,r&&-9&r);2&n&&(l=Hb(l,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),131072&l.flags&&(o=!0),e.pushIfUnique(i,l)}else a=!0})),0!==i.length||a||!o&&!function(e){switch(e.kind){case 211:case 212:return!0;case 167:return 203===e.parent.kind;default:return!1}}(t))return!(W&&i.length&&a)||Zh(t)&&i.some((function(e){return e.symbol===t.symbol}))||e.pushIfUnique(i,Me),i}function Jv(t,n){if(r){var i=e.getFunctionFlags(t),a=n&&cD(n,i);if((!a||!Hv(a,16385))&&166!==t.kind&&!e.nodeIsMissing(t.body)&&233===t.body.kind&&Bv(t)){var o=512&t.flags,s=e.getEffectiveReturnTypeNode(t)||t;if(a&&131072&a.flags)Sn(s,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(a&&!o)Sn(s,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(a&&W&&!Cd(Me,a))Sn(s,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!a){if(!o)return;if(lD(t,Zc(Gc(t))))return}Sn(s,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function Vv(t,r){if(e.Debug.assert(167!==t.kind||e.isObjectLiteralMethod(t)),RD(t),e.isFunctionExpression(t)&&Cx(t,t.name),r&&4&r&&yd(t)){if(!e.getEffectiveReturnTypeNode(t)&&!e.hasContextSensitiveParameters(t)){var n=Xm(t);if(n&&kf(Zc(n))){var i=jn(t);if(i.contextFreeType)return i.contextFreeType;var a=Iv(t,r),o=Ds(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=ra(t.symbol,C,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=524288,i.contextFreeType=s}}return mt}return GS(t)||211!==t.kind||QS(t),function(t,r){var n=jn(t);if(!(1024&n.flags)){var i=Xm(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(Tc(Co(ji(t)),0));if(!a)return;if(yd(t))if(i){var o=zm(t);r&&2&r&&function(t,r,n){for(var i=t.parameters.length-(j(t)?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&Vf(n.inferences,V_(s),yv(r,a))}}var c=Sv(r);if(c&&262144&c.flags){kv(t,nd(r,n.nonFixingMapper));var l=bv(r)-1;Vf(n.inferences,vv(t,l),c)}}(a,i,o),kv(a,o?nd(i,o.mapper):i)}else!function(e){e.thisParameter&&Av(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++)Av(r[t])}(a);if(i&&!el(t)&&!a.resolvedReturnType){var s=Iv(t,r);a.resolvedReturnType||(a.resolvedReturnType=s)}wb(t)}}}(t,r),Co(ji(t))}function Uv(e,t,r,n){if(void 0===n&&(n=!1),!Cd(t,st)){var i=n&&Wb(t);return Cn(e,!!i&&Cd(i,st),r),!1}return!0}function Kv(t){if(!e.isCallExpression(t))return!1;if(!e.isBindableObjectDefinePropertyCall(t))return!1;var r=lb(t.arguments[2]);if(ja(r,"value")){var n=Sc(r,"writable"),i=n&&Co(n);if(!i||i===Ge||i===We)return!0;if(n&&n.valueDeclaration&&e.isPropertyAssignment(n.valueDeclaration)){var a=kb(n.valueDeclaration.initializer);if(a===Ge||a===We)return!0}return!1}return!Sc(r,"set")}function zv(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&ky(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags||e.some(t.declarations,Kv))}function Gv(t,r,n){var i,a;if(0===n)return!1;if(zv(r)){if(4&r.flags&&e.isAccessExpression(t)&&108===t.expression.kind){var o=e.getContainingFunction(t);if(!o||169!==o.kind&&!Zh(o))return!0;if(r.valueDeclaration){var s=e.isBinaryExpression(r.valueDeclaration),c=o.parent===r.valueDeclaration.parent,l=o===r.valueDeclaration.parent,u=s&&(null===(i=r.parent)||void 0===i?void 0:i.valueDeclaration)===o.parent,_=s&&(null===(a=r.parent)||void 0===a?void 0:a.valueDeclaration)===o;return!(c||l||u||_)}}return!0}if(e.isAccessExpression(t)){var d=e.skipParentheses(t.expression);if(79===d.kind){var p=jn(d).resolvedSymbol;if(2097152&p.flags){var f=ti(p);return!!f&&266===f.kind}}}return!1}function Wv(t,r,n){var i=e.skipOuterExpressions(t,7);return 79===i.kind||e.isAccessExpression(i)?!(32&i.flags&&(Sn(t,n),1)):(Sn(t,r),!1)}function qv(e){return Hv(e,2112)?Yv(e,3)||Hv(e,296)?st:ze:Ke}function Hv(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(Hv(n[r],t))return!0;return!1}function Yv(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&Cd(e,Ke)||!!(2112&t)&&Cd(e,ze)||!!(402653316&t)&&Cd(e,Ue)||!!(528&t)&&Cd(e,Ye)||!!(16384&t)&&Cd(e,Qe)||!!(131072&t)&&Cd(e,$e)||!!(65536&t)&&Cd(e,Je)||!!(32768&t)&&Cd(e,Me)||!!(4096&t)&&Cd(e,Xe)||!!(67108864&t)&&Cd(e,nt))}function Xv(t,r,n){return 1048576&t.flags?e.every(t.types,(function(e){return Xv(e,r,n)})):Yv(t,r,n)}function Qv(t){return!!(16&e.getObjectFlags(t))&&!!t.symbol&&$v(t.symbol)}function $v(e){return 0!=(128&e.flags)}function Zv(t,r,n,i,a){void 0===a&&(a=!1);var o=t.properties,s=o[n];if(291===s.kind||292===s.kind){var c=s.name,l=Lu(c);if(us(l)){var u=Sc(r,gs(l));u&&(ih(u,s,a),Ny(s,!1,!0,r,u))}var _=Ga(s,i_(r,l,32,c));return tb(292===s.kind?s:s.initializer,_)}if(293===s.kind){if(!(n<o.length-1)){U<99&&jS(s,4);var d=[];if(i)for(var p=0,f=i;p<f.length;p++){var g=f[p];e.isSpreadAssignment(g)||d.push(g.name)}return _=Ua(r,d,r.symbol),KS(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),tb(s.expression,_)}Sn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Sn(s,e.Diagnostics.Property_assignment_expected)}function eb(t,r,n,i,a){var o=t.elements,s=o[n];if(225!==s.kind){if(223!==s.kind){var c=O_(n);if(Sp(r)){var l=o_(r,c,32|(Qm(s)?16:0),wh(s,c))||Pe;return tb(s,Ga(s,Qm(s)?fg(l,524288):l),a)}return tb(s,i,a)}if(n<o.length-1)Sn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var u=s.expression;if(219!==u.kind||63!==u.operatorToken.kind)return KS(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),tb(u,Ig(r,Bp)?Rg(r,(function(e){return du(e,n)})):ru(i),a);Sn(u.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function tb(t,r,n,i){var a;if(292===t.kind){var o=t;o.objectAssignmentInitializer&&(!W||32768&Gp(kb(o.objectAssignmentInitializer))||(r=fg(r,524288)),function(e,t,r,n,i){var a=t.kind;if(63===a&&(203===e.kind||202===e.kind))return tb(e,kb(r,n),n,108===r.kind);ib(e,t,r,55===a||56===a||60===a?Lx(e,n):kb(e,n),kb(r,n),void 0)}(o.name,o.equalsToken,o.objectAssignmentInitializer,n)),a=t.name}else a=t;return 219===a.kind&&63===a.operatorToken.kind&&(re(a,n),a=a.left),203===a.kind?function(e,t,r){var n=e.properties;if(W&&0===n.length)return Ry(t,e);for(var i=0;i<n.length;i++)Zv(e,t,i,n,r);return t}(a,r,i):202===a.kind?function(e,t,r){var n=e.elements;U<2&&V.downlevelIteration&&jS(e,512);for(var i=Bx(193,t,Me,e)||Pe,a=V.noUncheckedIndexedAccess?void 0:i,o=0;o<n.length;o++){var s=i;223===e.elements[o].kind&&(s=a=null!=a?a:Bx(65,t,Me,e)||Pe),eb(e,t,o,s,r)}return t}(a,r,n):function(t,r,n){var i=kb(t,n);return Wv(t,293===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,293===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&wd(r,i,t,t),e.isPrivateIdentifierPropertyAccessExpression(t)&&jS(t.parent,1048576),r}(a,r,n)}function rb(t){switch((t=e.skipParentheses(t)).kind){case 79:case 10:case 13:case 208:case 221:case 14:case 8:case 9:case 110:case 95:case 104:case 151:case 211:case 224:case 212:case 202:case 203:case 214:case 228:case 277:case 276:return!0;case 220:return rb(t.whenTrue)&&rb(t.whenFalse);case 219:return!e.isAssignmentOperator(t.operatorToken.kind)&&rb(t.left)&&rb(t.right);case 217:case 218:switch(t.operator){case 53:case 39:case 40:case 54:return!0}return!1;default:return!1}}function nb(e,t){return 0!=(98304&t.flags)||Ad(e,t)}function ib(t,n,i,a,o,s){var c,l,u=n.kind;switch(u){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(a===Ze||o===Ze)return Ze;a=Ry(a,t),o=Ry(o,i);var _=void 0;if(528&a.flags&&528&o.flags&&void 0!==(_=function(e){switch(e){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}(n.kind)))return Sn(s||n,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(n.kind),e.tokenToString(_)),Ke;var d,p=Uv(t,a,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),f=Uv(i,o,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(Yv(a,3)&&Yv(o,3)||!Hv(a,2112)&&!Hv(o,2112))d=Ke;else if(E(a,o)){switch(u){case 49:case 72:A();break;case 42:case 67:U<3&&Sn(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}d=ze}else A(E),d=Pe;return p&&f&&C(d),d;case 39:case 64:if(a===Ze||o===Ze)return Ze;Yv(a,402653316)||Yv(o,402653316)||(a=Ry(a,t),o=Ry(o,i));var g=void 0;if(Yv(a,296,!0)&&Yv(o,296,!0)?g=Ke:Yv(a,2112,!0)&&Yv(o,2112,!0)?g=ze:Yv(a,402653316,!0)||Yv(o,402653316,!0)?g=Ue:(Ja(a)||Ja(o))&&(g=a===Pe||o===Pe?Pe:Ne),g&&!T(u))return g;if(!g){var m=402655727;return A((function(e,t){return Yv(e,m)&&Yv(t,m)})),Ne}return 64===u&&C(g),g;case 29:case 31:case 32:case 33:return T(u)&&(a=Ip(Ry(a,t)),o=Ip(Ry(o,i)),k((function(e,t){return Ad(e,t)||Ad(t,e)||Cd(e,st)&&Cd(t,st)}))),Ye;case 34:case 35:case 36:case 37:return k((function(e,t){return nb(e,t)||nb(t,e)})),Ye;case 102:return function(t,r,n,i){return n===Ze||i===Ze?Ze:(!Ja(n)&&Xv(n,131068)&&Sn(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Ja(i)||iS(i)||Td(i,kt)||Sn(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),Ye)}(t,i,a,o);case 101:return function(t,r,n,i){if(n===Ze||i===Ze)return Ze;n=Ry(n,t),i=Ry(i,r),Xv(n,402665900)||Yv(n,407109632)||Sn(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);var a=tc(i);return(!Xv(i,126091264)||a&&(Yv(i,3145728)&&!Xv(a,126091264)||!Hv(a,126615552)))&&Sn(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),Ye}(t,i,a,o);case 55:case 76:var y=4194304&pg(a)?Su([(l=W?a:Ip(o),Rg(l,qp)),o]):a;return 76===u&&C(o),y;case 56:case 75:var h=8388608&pg(a)?Su([Wp(a),o],2):a;return 75===u&&C(o),h;case 60:case 77:var v=262144&pg(a)?Su([Xp(a),o],2):a;return 77===u&&C(o),v;case 63:var b=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return function(t,r){if(2===t)for(var n=0,i=Qs(r);n<i.length;n++){var a=i[n],o=Co(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=zn(a.valueDeclaration,s,788968,void 0,s,!1);(null==c?void 0:c.declarations)&&c.declarations.some(e.isJSDocTypedefTag)&&(On(c,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),a),On(a,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),c))}}}(b,o),function(r){var n;switch(r){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var a=ji(t),o=e.getAssignedExpandoInitializer(i);return!!o&&e.isObjectLiteralExpression(o)&&!!(null===(n=null==a?void 0:a.exports)||void 0===n?void 0:n.size);default:return!1}}(b)?(524288&o.flags&&(2===b||6===b||Kd(o)||dg(o)||1&e.getObjectFlags(o))||C(o),a):(C(o),sf(o));case 27:if(!V.allowUnreachableCode&&rb(t)&&(79!==(c=i).kind||"eval"!==c.escapedText)){var x=e.getSourceFileOfNode(t),D=x.text,S=e.skipTrivia(D,t.pos);x.parseDiagnostics.some((function(t){return t.code===e.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&e.textSpanContainsPosition(t,S)}))||Sn(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return o;default:return e.Debug.fail()}function E(e,t){return Yv(e,2112)&&Yv(t,2112)}function T(r){var n=Hv(a,12288)?t:Hv(o,12288)?i:void 0;return!n||(Sn(n,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function C(n){r&&e.isAssignmentOperator(u)&&(!Wv(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)||e.isIdentifier(t)&&"exports"===e.unescapeLeadingUnderscores(t.escapedText)||wd(n,a,t,i))}function k(e){return!e(a,o)&&(A(e),!0)}function A(t){var r,i=!1,c=s||n;if(t){var l=Yb(a),u=Yb(o);i=!(l===a&&u===o)&&!(!l||!u)&&t(l,u)}var _=a,d=o;!i&&t&&(r=function(e,t,r){var n=e,i=t,a=Ip(e),o=Ip(t);return r(a,o)||(n=a,i=o),[n,i]}(a,o,t),_=r[0],d=r[1]);var p=xa(_,d),f=p[0],g=p[1];(function(t,r,i,a){var o;switch(n.kind){case 36:case 34:o="false";break;case 37:case 35:o="true"}if(o)return Cn(t,r,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,i,a)})(c,i,f,g)||Cn(c,i,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(n.kind),f,g)}}function ab(t){var r=t.parent;return e.isParenthesizedExpression(r)&&ab(r)||e.isElementAccessExpression(r)&&r.argumentExpression===t}function ob(t){for(var r=[t.head.text],n=[],i=0,a=t.templateSpans;i<a.length;i++){var o=a[i],s=kb(o.expression);Hv(s,12288)&&Sn(o.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),r.push(o.literal.text),n.push(Cd(s,ct)?s:Ue)}return fb(t)||ab(t)||Pg(Km(t)||Le,sb)?ju(r,n):Ue}function sb(e){return!!(134217856&e.flags||58982400&e.flags&&Hv(sc(e)||Le,402653316))}function cb(t,r,n,i){var a=function(t){return 284!==t.kind||e.isJsxSelfClosingElement(t.parent)?t:t.parent.parent}(t),o=a.contextualType,s=a.inferenceContext;try{a.contextualType=r,a.inferenceContext=n;var c=kb(t,1|i|(n?2:0));return Hv(c,2944)&&pb(c,Vm(r,t))?w_(c):c}finally{a.contextualType=o,a.inferenceContext=s}}function lb(e,t){var r=jn(e);if(!r.resolvedType){if(t&&0!==t)return kb(e,t);var n=Or,i=pr;Or=Lr,pr=void 0,r.resolvedType=kb(e,t),pr=i,Or=n}return r.resolvedType}function ub(t){return 209===(t=e.skipParentheses(t)).kind||227===t.kind}function _b(t,r){var n=e.getEffectiveInitializer(t),i=Tb(n)||(r?cb(n,r,void 0,0):lb(n));return e.isParameter(t)&&200===t.name.kind&&Bp(i)&&!i.target.hasRestElement&&Tl(i)<t.name.elements.length?function(t,r){for(var n=r.elements,i=El(t).slice(),a=t.target.elementFlags.slice(),o=Tl(t);o<n.length;o++){var s=n[o];(o<n.length-1||201!==s.kind||!s.dotDotDotToken)&&(i.push(!e.isOmittedExpression(s)&&Qm(s)?uo(s,!1,!1):Ne),a.push(2),e.isOmittedExpression(s)||Qm(s)||mf(s,Ne))}return cu(i,a,t.target.readonly)}(i,t.name):i}function db(t,r){var n=2&e.getCombinedNodeFlags(t)||e.isDeclarationReadonly(t)?r:Op(r);if(e.isInJSFile(t)){if(Tp(n))return mf(t,Ne),Ne;if(Cp(n))return mf(t,Rt),Rt}return n}function pb(t,r){if(r){if(3145728&r.flags){var n=r.types;return e.some(n,(function(e){return pb(t,e)}))}if(58982400&r.flags){var i=sc(r)||Le;return Hv(i,4)&&Hv(t,128)||Hv(i,8)&&Hv(t,256)||Hv(i,64)&&Hv(t,2048)||Hv(i,4096)&&Hv(t,8192)||pb(t,i)}return!!(406847616&r.flags&&Hv(t,128)||256&r.flags&&Hv(t,256)||2048&r.flags&&Hv(t,2048)||512&r.flags&&Hv(t,512)||8192&r.flags&&Hv(t,8192))}return!1}function fb(t){var r=t.parent;return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||(e.isParenthesizedExpression(r)||e.isArrayLiteralExpression(r)||e.isSpreadElement(r))&&fb(r)||(e.isPropertyAssignment(r)||e.isShorthandPropertyAssignment(r)||e.isTemplateSpan(r))&&fb(r.parent)}function gb(e,t,r,n){var i=kb(e,t,n);return fb(e)?w_(i):ub(e)?i:Mp(i,Vm(2===arguments.length?Km(e):r,e))}function mb(e,t){return 160===e.name.kind&&ry(e.name),gb(e.initializer,t)}function yb(e,t){return nE(e),160===e.name.kind&&ry(e.name),hb(e,Vv(e,t),t)}function hb(t,r,n){if(n&&10&n){var i=xh(r,0,!0),a=xh(r,1,!0),o=i||a;if(o&&o.typeParameters){var s=Jm(t,2);if(s){var c=xh(Xp(s),i?0:1,!1);if(c&&!c.typeParameters){if(8&n)return vb(t,n),mt;var l=zm(t),u=l.signature&&Zc(l.signature),_=u&&bh(u);if(_&&!_.typeParameters&&!e.every(l.inferences,bb)){var d=function(t,r){for(var n,i,a=[],o=0,s=r;o<s.length;o++){var c=(p=s[o]).symbol.escapedName;if(xb(t.inferredTypeParameters,c)||xb(a,c)){var l=$i(Nn(262144,Db(e.concatenate(t.inferredTypeParameters,a),c)));l.target=p,n=e.append(n,p),i=e.append(i,l),a.push(l)}else a.push(p)}if(i)for(var u=q_(n,i),_=0,d=i;_<d.length;_++){var p;(p=d[_]).mapper=u}return a}(l,o.typeParameters),p=il(o,d),f=e.map(l.inferences,(function(e){return Ef(e.typeParameter)}));if(hf(p,c,(function(e,t){Vf(f,e,t,0,!0)})),e.some(f,bb)&&(vf(p,c,(function(e,t){Vf(f,e,t)})),!function(e,t){for(var r=0;r<e.length;r++)if(bb(e[r])&&bb(t[r]))return!0;return!1}(l.inferences,f)))return function(e,t){for(var r=0;r<e.length;r++)!bb(e[r])&&bb(t[r])&&(e[r]=t[r])}(l.inferences,f),l.inferredTypeParameters=e.concatenate(l.inferredTypeParameters,d),cl(p)}return cl(Dh(o,c,l))}}}}return r}function vb(e,t){2&t&&(zm(e).flags|=4)}function bb(e){return!(!e.candidates&&!e.contraCandidates)}function xb(t,r){return e.some(t,(function(e){return e.symbol.escapedName===r}))}function Db(e,t){for(var r=t.length;r>1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!xb(e,a))return a}}function Sb(e){var t=vh(e);if(t&&!t.typeParameters)return Zc(t)}function Eb(t){var r=Tb(t);if(r)return r;if(67108864&t.flags&&pr){var n=pr[I(t)];if(n)return n}var i=Br,a=kb(t);return Br!==i&&((pr||(pr=[]))[I(t)]=a,e.setNodeFlags(t,67108864|t.flags)),a}function Tb(t){var r=e.skipParentheses(t);if(!e.isCallExpression(r)||106===r.expression.kind||e.isRequireCall(r,!0)||iv(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return V_(r.type);if(8===t.kind||10===t.kind||110===t.kind||95===t.kind)return kb(t)}else{var n=e.isCallChain(r)?function(e){var t=kb(e.expression),r=ef(t,e.expression),n=Sb(t);return n&&Zp(n,e,r!==t)}(r):Sb(wy(r.expression));if(n)return n}}function Cb(e){var t=jn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Ne;try{return t.contextFreeType=kb(e,4)}finally{e.contextualType=r}}function kb(t,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end});var o=_;_=t,E=0;var s=function(t,i,a){var o=t.kind;if(n)switch(o){case 224:case 211:case 212:n.throwIfCancellationRequested()}switch(o){case 79:return function(t,r){var n=Xf(t);if(n===ke)return Pe;if(n===le){if(Hy(t))return Sn(t,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Pe;var i=e.getContainingFunction(t);return U<2&&(212===i.kind?Sn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(i,256)&&Sn(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)),jn(i).flags|=8192,Co(n)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||pm(n,t);var a=Gi(n),o=2097152&a.flags?fi(a):a;o.declarations&&134217728&ky(o)&&zu(t,o)&&An(t,o.declarations,t.escapedText);var s=a.valueDeclaration;if(s&&32&a.flags)if(255===s.kind&&e.nodeIsDecorated(s))for(i=e.getContainingClass(t);void 0!==i;){if(i===s&&i.name!==t){jn(s).flags|=16777216,jn(t).flags|=33554432;break}i=e.getContainingClass(i)}else if(224===s.kind)for(i=e.getThisContainer(t,!1);300!==i.kind;){if(i.parent===s){(e.isPropertyDeclaration(i)&&e.isStatic(i)||e.isClassStaticBlockDeclaration(i))&&(jn(s).flags|=16777216,jn(t).flags|=33554432);break}i=e.getThisContainer(i,!1)}!function(t,r){if(!(U>=2||0==(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||290===r.valueDeclaration.parent.kind)){var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,(function(t){return t===r?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t}))}(t,n),a=fm(n);if(a){if(i){var o=!0;if(e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,253))&&u.parent===n){var s=function(t,r){return e.findAncestor(t,(function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement}))}(t.parent,n);if(s){var c=jn(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),s===n.initializer&&(o=!1)}}o&&(jn(a).flags|=65536)}var u;e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,253))&&u.parent===n&&function(t,r){for(var n=t;210===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(217===n.parent.kind||218===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(n,(function(e){return e===r?"quit":e===r.statement}))}(t,n)&&(jn(r.valueDeclaration).flags|=4194304),jn(r.valueDeclaration).flags|=524288}i&&(jn(r.valueDeclaration).flags|=262144)}}(t,n);var c=Co(a),l=e.getAssignmentTargetKind(t);if(l){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return Sn(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,ha(n)),Pe;if(zv(a))return 3&a.flags?Sn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ha(n)):Sn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ha(n)),Pe}var u=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!u)return c;s=ti(n)}if(!s)return c;c=_m(c,t,r);for(var _=162===e.getRootDeclaration(s).kind,d=om(s),p=om(t),f=p!==d,g=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&bg(t.parent.parent),m=134217728&n.flags;p!==d&&(211===p.kind||212===p.kind||e.isObjectLiteralOrClassExpressionMethod(p))&&(lm(a)&&c!==Bt||_&&!sm(a));)p=om(p);var y=_||u||f||g||m||e.isBindingElement(s)||c!==Fe&&c!==Bt&&(!W||0!=(16387&c.flags)||Qf(t)||273===t.parent.kind)||228===t.parent.kind||252===s.kind&&s.exclamationToken||8388608&s.flags,h=y?_?function(e,t){if(Oa(t.symbol,2)){var r=W&&162===t.kind&&t.initializer&&32768&Gp(e)&&!(32768&Gp(kb(t.initializer)));return Ra(),r?fg(e,524288):e}return To(t.symbol),e}(c,s):c:c===Fe||c===Bt?Me:Yp(c),v=am(t,c,h,p);if(Yg(t)||c!==Fe&&c!==Bt){if(!y&&!(32768&Gp(c))&&32768&Gp(v))return Sn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,ha(n)),c}else if(v===Fe||v===Bt)return X&&(Sn(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ha(n),ba(v)),Sn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ha(n),ba(v))),kx(v);return l?Ip(v):v}(t,i);case 108:return vm(t);case 106:return Dm(t);case 104:return Ve;case 14:case 10:return F_(I_(t.text));case 8:return mE(t),F_(O_(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&U<7&&pE(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(t),F_(L_({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return qe;case 95:return Ge;case 221:return ob(t);case 13:return Lt;case 202:return $m(t,i,a);case 203:return function(t,r){var n=e.isAssignmentTarget(t);!function(t,r){for(var n=new e.Map,i=0,a=t.properties;i<a.length;i++){var o=a[i];if(293!==o.kind){var s=o.name;if(160===s.kind&&XS(s),292===o.kind&&!r&&o.objectAssignmentInitializer)return pE(o.equalsToken,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);if(80===s.kind&&pE(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),o.modifiers)for(var c=0,l=o.modifiers;c<l.length;c++){var u=l[c];130===u.kind&&167===o.kind||pE(u,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(u))}var _=void 0;switch(o.kind){case 292:ZS(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 291:$S(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&mE(s),_=4;break;case 167:_=8;break;case 170:_=1;break;case 171:_=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}if(!r){var d=e.getPropertyNameForPropertyNameNode(s);if(void 0===d)continue;var p=n.get(d);if(p)if(12&_&&12&p)pE(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else{if(!(3&_&&3&p))return pE(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===p||_===p)return pE(s,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(d,_|p)}else n.set(d,_)}}else if(r){var f=e.skipParentheses(o.expression);if(e.isArrayLiteralExpression(f)||e.isObjectLiteralExpression(f))return pE(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(t,n);for(var i=W?e.createSymbolTable():void 0,a=e.createSymbolTable(),o=[],s=_t,c=Jm(t),l=c&&c.pattern&&(199===c.pattern.kind||203===c.pattern.kind),u=fb(t),_=u?8:0,d=e.isInJSFile(t)&&!e.isInJsonFile(t),p=e.getJSDocEnumTag(t),f=!c&&d&&!p,g=ee,m=!1,y=!1,h=!1,v=!1,b=0,x=t.properties;b<x.length;b++){var D=x[b];D.name&&e.isComputedPropertyName(D.name)&&ry(D.name)}for(var S=0,E=0,T=t.properties;E<T.length;E++){var C=T[E],k=ji(C),A=C.name&&160===C.name.kind?ry(C.name):void 0;if(291===C.kind||292===C.kind||e.isObjectLiteralMethod(C)){var N=291===C.kind?mb(C,r):292===C.kind?gb(!n&&C.objectAssignmentInitializer?C.objectAssignmentInitializer:C.name,r):yb(C,r);if(d){var F=Xa(C);F?(Fd(N,F,C),N=F):p&&p.typeExpression&&Fd(N,V_(p.typeExpression),C)}g|=917504&e.getObjectFlags(N);var w=A&&us(A)?A:void 0,P=w?Nn(4|k.flags,gs(w),4096|_):Nn(4|k.flags,k.escapedName,_);if(w&&(P.nameType=w),n)(291===C.kind&&Qm(C.initializer)||292===C.kind&&C.objectAssignmentInitializer)&&(P.flags|=16777216);else if(l&&!(512&e.getObjectFlags(c))){var I=Sc(c,k.escapedName);I?P.flags|=16777216&I.flags:V.suppressExcessPropertyErrors||wc(c,Ue)||Sn(C.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ha(k),ba(c))}P.declarations=k.declarations,P.parent=k.parent,k.valueDeclaration&&(P.valueDeclaration=k.valueDeclaration),P.type=N,P.target=k,k=P,null==i||i.set(P.escapedName,P)}else{if(293===C.kind){if(U<2&&jS(C,2),o.length>0&&(s=C_(s,R(),t.symbol,g,u),o=[],a=e.createSymbolTable(),y=!1,h=!1,v=!1),oy(N=hc(kb(C.expression)))){var O=T_(N,u);if(i&&_y(O,i,C),S=o.length,s===Pe)continue;s=C_(s,O,t.symbol,g,u)}else Sn(C,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Pe;continue}e.Debug.assert(170===C.kind||171===C.kind),RD(C)}!A||8576&A.flags?a.set(k.escapedName,k):Cd(A,at)&&(Cd(A,Ke)?h=!0:Cd(A,Xe)?v=!0:y=!0,n&&(m=!0)),o.push(k)}if(l&&293!==t.parent.kind)for(var L=0,M=ec(c);L<M.length;L++)P=M[L],a.get(P.escapedName)||Sc(s,P.escapedName)||(16777216&P.flags||Sn(P.valueDeclaration||P.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(P.escapedName,P),o.push(P));return s===Pe?Pe:s!==_t?(o.length>0&&(s=C_(s,R(),t.symbol,g,u),o=[],a=e.createSymbolTable(),y=!1,h=!1),Rg(s,(function(e){return e===_t?R():e}))):R();function R(){var r=[];y&&r.push(iy(t,S,o,Ue)),h&&r.push(iy(t,S,o,Ke)),v&&r.push(iy(t,S,o,Xe));var i=ra(t.symbol,a,e.emptyArray,e.emptyArray,r);return i.objectFlags|=262272|g,f&&(i.objectFlags|=8192),m&&(i.objectFlags|=512),n&&(i.pattern=t),i}}(t,i);case 204:return jy(t,i);case 159:return Jy(t,i);case 205:return function(e,t){return 32&e.flags?function(e,t){var r=kb(e.expression),n=ef(r,e.expression);return Zp(lh(e,Ry(n,e.expression),t),e,n!==r)}(e,t):lh(e,wy(e.expression),t)}(t,i);case 206:if(100===t.expression.kind)return function(t){if(qS(t.arguments)||function(t){if(K===e.ModuleKind.ES2015)return pE(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(t.typeArguments)return pE(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;1!==r.length?pE(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(KS(r),e.isSpreadElement(r[0])&&pE(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element))}(t),0===t.arguments.length)return Pv(t,Ne);for(var r=t.arguments[0],n=lb(r),i=1;i<t.arguments.length;++i)lb(t.arguments[i]);(32768&n.flags||65536&n.flags||!Cd(n,Ue))&&Sn(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,ba(n));var a=Ei(t,r);if(a){var o=Ni(a,r,!0,!1);if(o)return Pv(t,av(Co(o),o,a))}return Pv(t,Ne)}(t);case 207:return function(t,r){var n;WS(t,t.typeArguments)||qS(t.arguments);var i=$h(t,void 0,r);if(i===xr)return et;if(rv(i,t),106===t.expression.kind)return Qe;if(207===t.kind){var a=i.declaration;if(a&&169!==a.kind&&173!==a.kind&&178!==a.kind&&!e.isJSDocConstructSignature(a)&&!Zh(a))return X&&Sn(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Ne}if(e.isInJSFile(t)&&ov(t))return Yc(t.arguments[0]);var o=Zc(i);if(12288&o.flags&&iv(t))return R_(e.walkUpParenthesizedExpressions(t.parent));if(206===t.kind&&!t.questionDotToken&&236===t.parent.kind&&16384&o.flags&&Qc(i))if(e.isDottedName(t.expression)){if(!$g(t)){var s=Sn(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Qg(t.expression,s)}}else Sn(t.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(t)){var c=tv(t,!1);if(null===(n=null==c?void 0:c.exports)||void 0===n?void 0:n.size){var l=ra(c,c.exports,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=8192,Fu([o,l])}}return o}(t,i);case 208:return function(t){(function(t){return!!(t.questionDotToken||32&t.flags)&&pE(t.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain)})(t)||WS(t,t.typeArguments),U<2&&jS(t,262144);var r=$h(t);return rv(r,t),Zc(r)}(t);case 210:return function(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;return n?cv(n.typeExpression.type,n.typeExpression.type,t.expression,r):kb(t.expression,r)}(t,i);case 224:return function(e){return mD(e),RD(e),Co(ji(e))}(t);case 211:case 212:return Vv(t,i);case 214:return function(e){return kb(e.expression),dn}(t);case 209:case 227:return function(e){return cv(e,e.type,e.expression)}(t);case 228:return function(e){return 32&e.flags?function(e){var t=kb(e.expression),r=ef(t,e.expression);return Zp(Xp(r),e,r!==t)}(e):Xp(kb(e.expression))}(t);case 229:return function(t){return function(t){var r=t.name.escapedText;switch(t.keywordToken){case 103:if("target"!==r)return pE(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target");break;case 100:"meta"!==r&&pE(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"meta")}}(t),103===t.keywordToken?uv(t):100===t.keywordToken?function(t){K!==e.ModuleKind.ES2020&&K!==e.ModuleKind.ESNext&&K!==e.ModuleKind.System&&Sn(t,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system);var r=e.getSourceFileOfNode(t);return e.Debug.assert(!!(2097152&r.flags),"Containing file is missing import meta node flag."),"meta"===t.name.escapedText?ql():Pe}(t):e.Debug.assertNever(t.keywordToken)}(t);case 213:return function(t){kb(t.expression);var r=e.skipParentheses(t.expression);if(!e.isAccessExpression(r))return Sn(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Ye;e.isPropertyAccessExpression(r)&&e.isPrivateIdentifier(r.name)&&Sn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var n=Gi(jn(r).resolvedSymbol);return n&&(zv(n)&&Sn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),function(t,r){var n=Co(r);!W||131075&n.flags||(te?16777216&r.flags:32768&Gp(n))||Sn(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}(r,n)),Ye}(t);case 215:return function(e){return kb(e.expression),Re}(t);case 216:return function(t){if(r){var n=e.getContainingFunctionOrClassStaticBlock(t);if(n&&e.isClassStaticBlockDeclaration(n))Sn(t,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&t.flags)){var i;if(e.isInTopLevelContext(t)){if(!uE(i=e.getSourceFileOfNode(t))){var a=void 0;if(!e.isEffectiveExternalModule(i,V)){a||(a=e.getSpanOfTokenAtPosition(i,t.pos));var o=e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);ln.add(o)}(K!==e.ModuleKind.ESNext&&K!==e.ModuleKind.System||U<4)&&(a=e.getSpanOfTokenAtPosition(i,t.pos),o=e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher),ln.add(o))}}else if(!uE(i=e.getSourceFileOfNode(t))){if(a=e.getSpanOfTokenAtPosition(i,t.pos),o=e.createFileDiagnostic(i,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n&&169!==n.kind&&0==(2&e.getFunctionFlags(n))){var s=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(o,s)}ln.add(o)}}Am(t)&&Sn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=kb(t.expression),l=Hb(c,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l!==c||l===Pe||3&c.flags||En(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),l}(t);case 217:return function(t){var r=kb(t.operand);if(r===Ze)return Ze;switch(t.operand.kind){case 8:switch(t.operator){case 40:return F_(O_(-t.operand.text));case 39:return F_(O_(+t.operand.text))}break;case 9:if(40===t.operator)return F_(L_({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return Ry(r,t.operand),Hv(r,12288)&&Sn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(Hv(r,2112)&&Sn(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),ba(Ip(r))),Ke):qv(r);case 53:Lx(t.operand);var n=12582912&pg(r);return 4194304===n?Ge:8388608===n?qe:Ye;case 45:case 46:return Uv(t.operand,Ry(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Wv(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),qv(r)}return Pe}(t);case 218:return function(t){var r=kb(t.operand);return r===Ze?Ze:(Uv(t.operand,Ry(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Wv(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),qv(r))}(t);case 219:return re(t,i);case 220:return function(e,t){var r=Lx(e.condition);return Ix(e.condition,r,e.whenTrue),Su([kb(e.whenTrue,t),kb(e.whenFalse,t)],2)}(t,i);case 223:return function(e,t){return U<2&&jS(e,V.downlevelIteration?1536:1024),Bx(33,kb(e.expression,t),Me,e.expression)}(t,i);case 225:return Re;case 222:return function(t){r&&(8192&t.flags||_E(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Am(t)&&Sn(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var n=e.getContainingFunction(t);if(!n)return Ne;var i=e.getFunctionFlags(n);if(!(1&i))return Ne;var a=0!=(2&i);t.asteriskToken&&(a&&U<99&&jS(t,26624),!a&&U<2&&V.downlevelIteration&&jS(t,256));var o=el(n),s=o&&sD(o,a),c=s&&s.yieldType||Ne,l=s&&s.nextType||Ne,u=a?Yb(l)||Ne:l,_=t.expression?kb(t.expression):Re,d=Lv(t,_,u,a);if(o&&d&&wd(d,c,t.expression||t,t.expression),t.asteriskToken)return Jx(a?19:17,1,_,t.expression)||Ne;if(o)return oD(2,o,a)||Ne;var p=Nm(2,n);if(!p&&(p=Ne,r&&X&&!e.expressionResultIsUnused(t))){var f=Km(t);f&&!Ja(f)||Sn(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return p}(t);case 230:return function(e){return e.isSpread?i_(e.type,Ke):e.type}(t);case 286:return function(t,r){if(function(t){t.expression&&e.isCommaSequence(t.expression)&&pE(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(t),t.expression){var n=kb(t.expression,r);return t.dotDotDotToken&&n!==Ne&&!vp(n)&&Sn(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return Pe}(t,i);case 276:case 277:return function(e,t){return RD(e),Dy(e)||Ne}(t);case 280:return function(t){Ey(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(V)||!V.jsxFactory&&!r.pragmas.has("jsx")||V.jsxFragmentFactory||r.pragmas.has("jsxfrag")||Sn(t,V.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),uy(t),Dy(t)||Ne}(t);case 284:return function(t,r){return function(t,r){for(var n,i=t.attributes,a=W?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=dt,c=!1,l=!1,u=2048,_=yy(gy(t)),d=0,p=i.properties;d<p.length;d++){var f=p[d],g=f.symbol;if(e.isJsxAttribute(f)){var m=ly(f,r);u|=917504&e.getObjectFlags(m);var y=Nn(4|g.flags,g.escapedName);y.declarations=g.declarations,y.parent=g.parent,g.valueDeclaration&&(y.valueDeclaration=g.valueDeclaration),y.type=m,y.target=g,o.set(y.escapedName,y),null==a||a.set(y.escapedName,y),f.name.escapedText===_&&(l=!0)}else e.Debug.assert(285===f.kind),o.size>0&&(s=C_(s,E(),i.symbol,u,!1),o=e.createSymbolTable()),Ja(m=hc(lb(f.expression,r)))&&(c=!0),oy(m)?(s=C_(s,m,i.symbol,u,!1),a&&_y(m,a,f)):n=n?Fu([n,m]):m}c||o.size>0&&(s=C_(s,E(),i.symbol,u,!1));var h=276===t.parent.kind?t.parent:void 0;if(h&&h.openingElement===t&&h.children.length>0){var v=uy(h,r);if(!c&&_&&""!==_){l&&Sn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(_));var b=Jm(t.attributes),x=b&&Lm(b,_),D=Nn(4,_);D.type=1===v.length?v[0]:x&&Pg(x,kp)?cu(v):ru(Su(v)),D.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(_),void 0,void 0),e.setParent(D.valueDeclaration,i),D.valueDeclaration.symbol=D;var S=e.createSymbolTable();S.set(_,D),s=C_(s,ra(i.symbol,S,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,u,!1)}}return c?Ne:n&&s!==dt?Fu([n,s]):n||(s===dt?E():s);function E(){u|=ee;var t=ra(i.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=262272|u,t}}(t.parent,r)}(t,i);case 278:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Pe}(t,i,a),c=hb(t,s,i);return Qv(c)&&function(t,r){204===t.parent.kind&&t.parent.expression===t||205===t.parent.kind&&t.parent.expression===t||(79===t.kind||159===t.kind)&&HD(t)||179===t.parent.kind&&t.parent.exprName===t||273===t.parent.kind||Sn(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),V.isolatedModules&&(e.Debug.assert(!!(128&r.symbol.flags)),8388608&r.symbol.valueDeclaration.flags&&Sn(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))}(t,c),_=o,null===e.tracing||void 0===e.tracing||e.tracing.pop(),c}function Ab(t){t.expression&&_E(t.expression,e.Diagnostics.Type_expected),LD(t.constraint),LD(t.default);var n=Zo(ji(t));sc(n),function(e){return _c(e)!==ht}(n)||Sn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,ba(n));var i=rc(n),a=dc(n);i&&a&&Fd(a,bs(dd(i,Y_(n,a)),a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),r&&pD(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Nb(t){VS(t),Ax(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(169===r.kind&&e.nodeIsPresent(r.body)||Sn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),169===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&Sn(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&Sn(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)&&Sn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),169!==r.kind&&173!==r.kind&&178!==r.kind||Sn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),212===r.kind&&Sn(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),170!==r.kind&&171!==r.kind||Sn(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||Cd(hc(Co(t.symbol)),jt)||Sn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Fb(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(79===s.kind&&s.escapedText===n)return Sn(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((200===s.kind||199===s.kind)&&Fb(s,r,n))return!0}}}function wb(t){174===t.kind?function(t){VS(t)||function(t){var r=t.parameters[0];if(1!==t.parameters.length)return pE(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(KS(t.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),r.dotDotDotToken)return pE(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(r))return pE(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return pE(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return pE(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return pE(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var n=V_(r.type);Pg(n,(function(e){return!!(8576&e.flags)}))||Yu(n)?pE(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Ig(n,fl)?t.type||pE(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation):pE(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(t)}(t):177!==t.kind&&254!==t.kind&&178!==t.kind&&172!==t.kind&&169!==t.kind&&173!==t.kind||GS(t);var n=e.getFunctionFlags(t);if(4&n||(3==(3&n)&&U<99&&jS(t,6144),2==(3&n)&&U<4&&jS(t,64),0!=(3&n)&&U<2&&jS(t,128)),fD(t.typeParameters),e.forEach(t.parameters,Nb),t.type&&LD(t.type),r){!function(t){U>=2||!e.hasRestParameter(t)||8388608&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,(function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===le.escapedName&&xn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var i=e.getEffectiveReturnTypeNode(t);if(X&&!i)switch(t.kind){case 173:Sn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 172:Sn(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(i){var a=e.getFunctionFlags(t);if(1==(5&a)){var o=V_(i);if(o===Qe)Sn(i,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=oD(0,o,0!=(2&a))||Ne;Fd(Ov(s,oD(1,o,0!=(2&a))||s,oD(2,o,0!=(2&a))||Le,!!(2&a)),o,i)}}else 2==(3&a)&&function(t,r){var n=V_(r);if(U>=2){if(n===Pe)return;var i=Xl(!0);if(i!==gt&&!Ao(n,i))return void Sn(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,ba(Yb(n)||Qe))}else{if(function(t){$b(t&&e.getEntityNameFromTypeNode(t))}(r),n===Pe)return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Sn(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,ba(n));var o=Di(a,111551,!0),s=o?Co(o):Pe;if(s===Pe)return void(79===a.kind&&"Promise"===a.escapedText&&No(n)===Xl(!1)?Sn(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):Sn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=(!0,Ht||(Ht=Wl("PromiseConstructorLike",0,true))||_t);if(c===_t)return void Sn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!Fd(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var l=a&&e.getFirstIdentifier(a),u=Vn(t.locals,l.escapedText,111551);if(u)return void Sn(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}Hb(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)}(t,i)}174!==t.kind&&312!==t.kind&&ox(t)}}function Pb(t){for(var r=new e.Map,n=0,i=t.members;n<i.length;n++){var a=i[n];if(164===a.kind){var o=void 0,s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 79:o=e.idText(s);break;default:continue}r.get(o)?(Sn(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),Sn(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function Ib(t){if(256===t.kind){var r=ji(t);if(r.declarations&&r.declarations.length>0&&r.declarations[0]!==t)return}var n=ll(ji(t));if(null==n?void 0:n.declarations){for(var i=new e.Map,a=function(e){1===e.parameters.length&&e.parameters[0].type&&wg(V_(e.parameters[0].type),(function(t){var r=i.get(mu(t));r?r.declarations.push(e):i.set(mu(t),{type:t,declarations:[e]})}))},o=0,s=n.declarations;o<s.length;o++)a(s[o]);i.forEach((function(t){if(t.declarations.length>1)for(var r=0,n=t.declarations;r<n.length;r++)Sn(n[r],e.Diagnostics.Duplicate_index_signature_for_type_0,ba(t.type))}))}}function Ob(t){VS(t)||function(t){if(e.isClassLike(t.parent)){if(e.isStringLiteral(t.name)&&"constructor"===t.name.text)return pE(t.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(rE(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(U<2&&e.isPrivateIdentifier(t.name))return pE(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(256===t.parent.kind){if(rE(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 pE(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(180===t.parent.kind){if(rE(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 pE(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(8388608&t.flags&&aE(t),e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||8388608&t.flags||e.isStatic(t)||e.hasAbstractModifier(t))){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return pE(t.exclamationToken,r)}}(t)||XS(t.name),Ax(t),Lb(t),e.isPrivateIdentifier(t.name)&&e.hasStaticModifier(t)&&t.initializer&&99===U&&!V.useDefineForClassFields&&Sn(t.initializer,e.Diagnostics.Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag),e.hasSyntacticModifier(t,128)&&165===t.kind&&t.initializer&&Sn(t,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(t.name))}function Lb(t){if(e.isPrivateIdentifier(t.name)&&U<99){for(var r=e.getEnclosingBlockScopeContainer(t);r;r=e.getEnclosingBlockScopeContainer(r))jn(r).flags|=67108864;if(e.isClassExpression(t.parent)){var n=fm(t.parent);n&&(jn(t.name).flags|=524288,jn(n).flags|=65536)}}}function Mb(t){if(r){if(GS(t)||function(t){if(!(8388608&t.flags)&&180!==t.parent.kind&&256!==t.parent.kind){if(U<1)return pE(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(U<2&&e.isPrivateIdentifier(t.name))return pE(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===t.body&&!e.hasSyntacticModifier(t,128))return dE(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(t.body){if(e.hasSyntacticModifier(t,128))return pE(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(180===t.parent.kind||256===t.parent.kind)return pE(t.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(t.typeParameters)return pE(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return tE(e)||e.parameters.length===(170===e.kind?0:1)}(t))return pE(t.name,170===t.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(171===t.kind){if(t.type)return pE(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.Debug.checkDefined(e.getSetAccessorValueParameter(t),"Return value does not match parameter count assertion.");if(r.dotDotDotToken)return pE(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return pE(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return pE(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(t)||XS(t.name),nx(t),wb(t),170===t.kind&&!(8388608&t.flags)&&e.nodeIsPresent(t.body)&&256&t.flags&&(512&t.flags||Sn(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),160===t.name.kind&&ry(t.name),fs(t)){var n=ji(t),i=e.getDeclarationOfKind(n,170),a=e.getDeclarationOfKind(n,171);if(i&&a&&!(1&DS(i))){jn(i).flags|=1;var o=e.getEffectiveModifierFlags(i),s=e.getEffectiveModifierFlags(a);(128&o)!=(128&s)&&(Sn(i.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Sn(a.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(16&o&&!(24&s)||8&o&&!(8&s))&&(Sn(i.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Sn(a.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var c=ho(i),l=ho(a);c&&l&&Fd(c,l,i,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var u=vo(ji(t));170===t.kind&&Jv(t,u)}LD(t.body),Lb(t)}function Rb(t,r){return zc(e.map(t.typeArguments,V_),r,Kc(r),e.isInJSFile(t))}function Bb(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=rc(r[o]);s&&(n||(i=q_(r,n=Rb(t,r))),a=a&&Fd(n[o],dd(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function jb(t){var r=jl(t);if(r!==Pe){var n=jn(t).resolvedSymbol;if(n)return 524288&n.flags&&Bn(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function Jb(t){WS(t,t.typeArguments),176!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJSFile(t)||e.isInJSDoc(t)||dE(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(t.typeArguments,LD);var n=jl(t);if(n!==Pe){if(t.typeArguments&&r){var i=jb(t);i&&Bb(t,i)}var a=jn(t).resolvedSymbol;a&&(e.some(a.declarations,(function(e){return zD(e)&&!!(134217728&e.flags)}))&&An(nv(t),a.declarations,a.escapedName),32&n.flags&&8&a.flags&&Sn(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,ba(n)))}}function Vb(t,r){if(!(8388608&t.flags))return t;var n=t.objectType,i=t.indexType;if(Cd(i,Ru(n,!1)))return 205===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&Ws(n)&&Sn(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ba(n)),t;var a=pc(n);if(wc(a,Ke)&&Yv(i,296))return t;if(Xu(n)){var o=Ku(i,r);if(o){var s=wg(a,(function(e){return Sc(e,o)}));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return Sn(r,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),Pe}}return Sn(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ba(i),ba(n)),Pe}function Ub(t){return(e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierClassElementDeclaration(t))&&!!(8388608&t.flags)}function Kb(t,r){var n=e.getCombinedModifierFlags(t);return 256!==t.parent.kind&&255!==t.parent.kind&&224!==t.parent.kind&&8388608&t.flags&&(2&n||e.isModuleBlock(t.parent)&&e.isModuleDeclaration(t.parent.parent)&&e.isGlobalScopeAugmentation(t.parent.parent)||(n|=1),n|=2),n&r}function zb(t){if(r){var n,a,o,s=0,c=155,l=!1,u=!0,_=!1,d=t.declarations,p=0!=(16384&t.flags),f=!1,g=!1,m=!1,y=[];if(d)for(var h=0,v=d;h<v.length;h++){var b=v[h],x=8388608&b.flags,D=b.parent&&(256===b.parent.kind||180===b.parent.kind)||x;if(D&&(o=void 0),255!==b.kind&&224!==b.kind||x||(m=!0),254===b.kind||167===b.kind||166===b.kind||169===b.kind){y.push(b);var S=Kb(b,155);s|=S,c&=S,l=l||e.hasQuestionToken(b),u=u&&e.hasQuestionToken(b);var E=e.nodeIsPresent(b.body);E&&n?p?g=!0:f=!0:(null==o?void 0:o.parent)===b.parent&&o.end!==b.pos&&R(o),E?n||(n=b):_=!0,o=b,D||(a=b)}}if(g&&e.forEach(y,(function(t){Sn(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),f&&e.forEach(y,(function(t){Sn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_function_implementation)})),m&&!p&&16&t.flags&&d){var T=e.filter(d,(function(e){return 255===e.kind})).map((function(t){return e.createDiagnosticForNode(t,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)}));e.forEach(d,(function(r){var n=255===r.kind?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:254===r.kind?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;n&&e.addRelatedInfo.apply(void 0,i([Sn(e.getNameOfDeclaration(r)||r,n,e.symbolName(t))],T,!1))}))}if(!a||a.body||e.hasSyntacticModifier(a,128)||a.questionToken||R(a),_&&(d&&(function(t,r,n,i,a){if(0!=(i^a)){var o=Kb(M(t,r),155);e.forEach(t,(function(t){var r=Kb(t,155)^o;1&r?Sn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?Sn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?Sn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&Sn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}(d,n,0,s,c),function(t,r,n,i){if(n!==i){var a=e.hasQuestionToken(M(t,r));e.forEach(t,(function(t){e.hasQuestionToken(t)!==a&&Sn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}}(d,n,l,u)),n))for(var C=Hc(t),k=Gc(n),A=0,N=C;A<N.length;A++){var F=N[A];if(w=F,P=void 0,I=void 0,O=void 0,L=void 0,P=ol(k),I=ol(w),O=Zc(P),(L=Zc(I))!==Qe&&!Hd(L,O,gn)&&!Hd(O,L,gn)||0===Vd(P,I,4,!1,void 0,void 0,Sd,void 0)){e.addRelatedInfo(Sn(F.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(n,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}var w,P,I,O,L;function M(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function R(t){if(!t.name||!e.nodeIsMissing(t.name)){var r=!1,n=e.forEachChild(t.parent,(function(e){if(r)return e;r=e===t}));if(n&&n.pos===t.end&&n.kind===t.kind){var i=n.name||n,a=n.name;if(t.name&&a&&(e.isPrivateIdentifier(t.name)&&e.isPrivateIdentifier(a)&&t.name.escapedText===a.escapedText||e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||e.isPropertyNameLiteral(t.name)&&e.isPropertyNameLiteral(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a)))return void(167!==t.kind&&166!==t.kind||e.isStatic(t)===e.isStatic(n)||Sn(i,e.isStatic(t)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(n.body))return void Sn(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;p?Sn(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(t,128)?Sn(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Sn(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function Gb(t){if(r){var n=t.localSymbol;if((n||(n=ji(t)).exportSymbol)&&e.getDeclarationOfKind(n,t.kind)===t){for(var i=0,a=0,o=0,s=0,c=n.declarations;s<c.length;s++){var l=y(g=c[s]),u=Kb(g,513);1&u?512&u?o|=l:i|=l:a|=l}var _=i&a,d=o&(i|a);if(_||d)for(var p=0,f=n.declarations;p<f.length;p++){l=y(g=f[p]);var g,m=e.getNameOfDeclaration(g);l&d?Sn(m,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(m)):l&_&&Sn(m,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(m))}}}function y(t){var r=t;switch(r.kind){case 256:case 257:case 340:case 333:case 334:return 2;case 259:return e.isAmbientModule(r)||0!==e.getModuleInstanceState(r)?5:4;case 255:case 258:case 294:return 3;case 300:return 7;case 269:case 219:var n=r,i=e.isExportAssignment(n)?n.expression:n.right;if(!e.isEntityNameExpression(i))return 1;r=i;case 263:case 266:case 265:var a=0,o=fi(ji(r));return e.forEach(o.declarations,(function(e){a|=y(e)})),a;case 252:case 201:case 254:case 268:case 79:return 1;default:return e.Debug.failBadSyntaxKind(r)}}}function Wb(e,t,r,n){var i=qb(e,t);return i&&Yb(i,t,r,n)}function qb(t,r){if(!Ja(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(Ao(t,Xl(!1)))return n.promisedTypeOfPromise=El(t)[0];var i=ja(t,"then");if(!Ja(i)){var a=i?Tc(i,0):e.emptyArray;if(0!==a.length){var o=fg(Su(e.map(a,Tv)),2097152);if(!Ja(o)){var s=Tc(o,0);if(0!==s.length)return n.promisedTypeOfPromise=Su(e.map(s,Tv),2);r&&Sn(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&Sn(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}function Hb(e,t,r,n){return Yb(e,t,r,n)||Pe}function Yb(e,t,r,n){if(Ja(e))return e;var i=e;return i.awaitedTypeOfType?i.awaitedTypeOfType:i.awaitedTypeOfType=Rg(e,t?function(e){return Xb(e,t,r,n)}:Xb)}function Xb(t,r,n,i){var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;var o=qb(t);if(o){if(t.id===o.id||cn.lastIndexOf(o.id)>=0)return void(r&&Sn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));cn.push(t.id);var s=Yb(o,r,n,i);if(cn.pop(),!s)return;return a.awaitedTypeOfType=s}if(!function(e){var t=ja(e,"then");return!!t&&Tc(fg(t,2097152),0).length>0}(t))return a.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();Sn(r,n,i)}}function Qb(t){var r=$h(t);rv(r,t);var n=Zc(r);if(!(1&n.flags)){var i,a,o=Hh(t);switch(t.parent.kind){case 255:i=Su([Co(ji(t.parent)),Qe]);break;case 162:i=Qe,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 165:i=Qe,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 167:case 170:case 171:i=Su([tu($D(t.parent)),Qe]);break;default:return e.Debug.fail()}Fd(n,i,t,o,(function(){return a}))}}function $b(t){if(t){var r=e.getFirstIdentifier(t),n=2097152|(79===t.kind?788968:1920),i=zn(r,r.escapedText,n,void 0,void 0,!0);i&&2097152&i.flags&&Wi(i)&&!gS(fi(i))&&!yi(i)&&vi(i)}}function Zb(t){var r=ex(t);r&&e.isEntityName(r)&&$b(r)}function ex(e){if(e)switch(e.kind){case 186:case 185:return tx(e.types);case 187:return tx([e.trueType,e.falseType]);case 189:case 195:return ex(e.type);case 176:return e.typeName}}function tx(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];189===a.kind||195===a.kind;)a=a.type;if(142!==a.kind&&(W||(194!==a.kind||104!==a.literal.kind)&&151!==a.kind)){var o=ex(a);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r}function rx(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function nx(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){V.experimentalDecorators||Sn(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var r=t.decorators[0];if(jS(r,8),162===t.kind&&jS(r,32),V.emitDecoratorMetadata)switch(jS(r,16),t.kind){case 255:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++)Zb(rx(a[i]));break;case 170:case 171:var o=170===t.kind?171:170,s=e.getDeclarationOfKind(ji(t),o);Zb(yo(t)||s&&yo(s));break;case 167:for(var c=0,l=t.parameters;c<l.length;c++)Zb(rx(l[c]));Zb(e.getEffectiveReturnTypeNode(t));break;case 165:Zb(e.getEffectiveTypeAnnotationNode(t));break;case 162:Zb(rx(t));for(var u=0,_=t.parent.parameters;u<_.length;u++)Zb(rx(_[u]))}e.forEach(t.decorators,Qb)}}function ix(e){switch(e.kind){case 79:return e;case 204:return e.name;default:return}}function ax(t){var n;nx(t),wb(t);var i=e.getFunctionFlags(t);if(t.name&&160===t.name.kind&&ry(t.name),fs(t)){var a=ji(t),o=t.localSymbol||a,s=null===(n=o.declarations)||void 0===n?void 0:n.find((function(e){return e.kind===t.kind&&!(131072&e.flags)}));t===s&&zb(o),a.parent&&zb(a)}var c=166===t.kind?void 0:t.body;if(LD(c),Jv(t,el(t)),r&&!e.getEffectiveReturnTypeNode(t)&&(e.nodeIsMissing(c)&&!Ub(t)&&mf(t,Ne),1&i&&e.nodeIsPresent(c)&&Zc(Gc(t))),e.isInJSFile(t)){var l=e.getJSDocTypeTag(t);l&&l.typeExpression&&!qm(V_(l.typeExpression),t)&&Sn(l.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function ox(t){if(r){var n=e.getSourceFileOfNode(t),i=Ir.get(n.path);i||(i=[],Ir.set(n.path,i)),i.push(t)}}function sx(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 255:case 224:ux(a,r),dx(a,r);break;case 300:case 259:case 233:case 261:case 240:case 241:case 242:yx(a,r);break;case 169:case 211:case 254:case 212:case 167:case 170:case 171:a.body&&yx(a,r),dx(a,r);break;case 166:case 172:case 173:case 177:case 178:case 257:case 256:dx(a,r);break;case 188:_x(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function cx(t,r,n){var i=e.getNameOfDeclaration(t)||t,a=zD(t)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;n(t,0,e.createDiagnosticForNode(i,a,r))}function lx(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function ux(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 167:case 165:case 170:case 171:if(171===a.kind&&32768&a.symbol.flags)break;var o=ji(a);o.isReferenced||!(e.hasEffectiveModifier(a,8)||e.isNamedDeclaration(a)&&e.isPrivateIdentifier(a.name))||8388608&a.flags||r(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,ha(o)));break;case 169:for(var s=0,c=a.parameters;s<c.length;s++){var l=c[s];!l.symbol.isReferenced&&e.hasSyntacticModifier(l,8)&&r(l,0,e.createDiagnosticForNode(l.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(l.symbol)))}break;case 174:case 232:case 168:break;default:e.Debug.fail("Unexpected class member")}}}function _x(t,r){var n=t.typeParameter;px(n)&&r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}function dx(t,r){var n=ji(t).declarations;if(n&&e.last(n)===t)for(var i=e.getEffectiveTypeParameterDeclarations(t),a=new e.Set,o=0,s=i;o<s.length;o++){var c=s[o];if(px(c)){var l=e.idText(c.name),u=c.parent;if(188!==u.kind&&u.typeParameters.every(px)){if(e.tryAddToSet(a,u)){var _=e.getSourceFileOfNode(u),d=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(_,u.typeParameters),p=1===u.typeParameters.length,f=p?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,g=p?l:void 0;r(c,1,e.createFileDiagnostic(_,d.pos,d.end-d.pos,f,g))}}else r(c,1,e.createDiagnosticForNode(c,e.Diagnostics._0_is_declared_but_its_value_is_never_read,l))}}}function px(e){return!(262144&Bi(e.symbol).isReferenced||lx(e.name))}function fx(e,t,r,n){var i=String(n(t)),a=e.get(i);a?a[1].push(r):e.set(i,[t,[r]])}function gx(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function mx(t){return e.isBindingElement(t)?e.isObjectBindingPattern(t.parent)?!(!t.propertyName||!lx(t.name)):lx(t.name):e.isAmbientModule(t)||(e.isVariableDeclaration(t)&&e.isForInOrOfStatement(t.parent.parent)||vx(t))&&lx(t.name)}function yx(t,r){var n=new e.Map,i=new e.Map,a=new e.Map;t.locals.forEach((function(t){var o;if(!(262144&t.flags?!(3&t.flags)||3&t.isReferenced:t.isReferenced||t.exportSymbol)&&t.declarations)for(var s=0,c=t.declarations;s<c.length;s++){var l=c[s];if(!mx(l))if(vx(l))fx(n,265===(o=l).kind?o:266===o.kind?o.parent:o.parent.parent,l,I);else if(e.isBindingElement(l)&&e.isObjectBindingPattern(l.parent))l!==e.last(l.parent.elements)&&e.last(l.parent.elements).dotDotDotToken||fx(i,l.parent,l,I);else if(e.isVariableDeclaration(l))fx(a,l.parent,l,I);else{var u=t.valueDeclaration&&gx(t.valueDeclaration),_=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);u&&_?e.isParameterPropertyDeclaration(u,u.parent)||e.parameterIsThisKeyword(u)||lx(_)||(e.isBindingElement(l)&&e.isArrayBindingPattern(l.parent)?fx(i,l.parent,l,I):r(u,1,e.createDiagnosticForNode(_,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t)))):cx(l,e.symbolName(t),r)}}})),n.forEach((function(t){var n=t[0],i=t[1],a=n.parent;if((n.name?1:0)+(n.namedBindings?266===n.namedBindings.kind?1:n.namedBindings.elements.length:0)===i.length)r(a,0,1===i.length?e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(i).name)):e.createDiagnosticForNode(a,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var o=0,s=i;o<s.length;o++){var c=s[o];cx(c,e.idText(c.name),r)}})),i.forEach((function(t){var n=t[0],i=t[1],o=gx(n.parent)?1:0;if(n.elements.length===i.length)1===i.length&&252===n.parent.kind&&253===n.parent.parent.kind?fx(a,n.parent.parent,n.parent,I):r(n,o,1===i.length?e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hx(e.first(i).name)):e.createDiagnosticForNode(n,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,c=i;s<c.length;s++){var l=c[s];r(l,o,e.createDiagnosticForNode(l,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hx(l.name)))}})),a.forEach((function(t){var n=t[0],i=t[1];if(n.declarations.length===i.length)r(n,0,1===i.length?e.createDiagnosticForNode(e.first(i).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hx(e.first(i).name)):e.createDiagnosticForNode(235===n.parent.kind?n.parent:n,e.Diagnostics.All_variables_are_unused));else for(var a=0,o=i;a<o.length;a++){var s=o[a];r(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,hx(s.name)))}}))}function hx(t){switch(t.kind){case 79:return e.idText(t);case 200:case 199:return hx(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function vx(e){return 265===e.kind||268===e.kind||266===e.kind}function bx(t){if(233===t.kind&&gE(t),e.isFunctionOrModuleBlock(t)){var r=Rr;e.forEach(t.statements,LD),Rr=r}else e.forEach(t.statements,LD);t.locals&&ox(t)}function xx(t,r,n){if((null==r?void 0:r.escapedText)!==n)return!1;if(165===t.kind||164===t.kind||167===t.kind||166===t.kind||170===t.kind||171===t.kind||291===t.kind)return!1;if(8388608&t.flags)return!1;if((e.isImportClause(t)||e.isImportEqualsDeclaration(t)||e.isImportSpecifier(t))&&e.isTypeOnlyImportOrExportDeclaration(t))return!1;var i=e.getRootDeclaration(t);return!e.isParameter(i)||!e.nodeIsMissing(i.parent.body)}function Dx(t){e.findAncestor(t,(function(r){return!!(4&DS(r))&&(79!==t.kind?Sn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Sn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)}))}function Sx(t){e.findAncestor(t,(function(r){return!!(8&DS(r))&&(79!==t.kind?Sn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Sn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)}))}function Ex(t){67108864&DS(e.getEnclosingBlockScopeContainer(t))&&(e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name)&&"string"==typeof t.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),xn("noEmit",t,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,t.name.escapedText))}function Tx(t){var r=!1;if(e.isClassExpression(t)){for(var n=0,i=t.members;n<i.length;n++)if(134217728&DS(i[n])){r=!0;break}}else if(e.isFunctionExpression(t))134217728&DS(t)&&(r=!0);else{var a=e.getEnclosingBlockScopeContainer(t);a&&134217728&DS(a)&&(r=!0)}r&&(e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name),"The target of a Reflect collision check should be an identifier"),xn("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(t.name),"Reflect"))}function Cx(t,r){r&&(function(t,r){if(!(K>=e.ModuleKind.ES2015)&&r&&(xx(t,r,"require")||xx(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ba(t);300===n.kind&&e.isExternalOrCommonJsModule(n)&&xn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(t,r){if(r&&!(U>=4)&&xx(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ba(t);300===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&xn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(e,t){U<=8&&(xx(e,t,"WeakMap")||xx(e,t,"WeakSet"))&&on.push(e)}(t,r),function(e,t){t&&U>=2&&U<=8&&xx(e,t,"Reflect")&&sn.push(e)}(t,r),e.isClassLike(t)?(pD(r,e.Diagnostics.Class_name_cannot_be_0),8388608&t.flags||function(t){1===U&&"Object"===t.escapedText&&K<e.ModuleKind.ES2015&&Sn(t,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[K])}(r)):e.isEnumDeclaration(t)&&pD(r,e.Diagnostics.Enum_name_cannot_be_0))}function kx(e){return e===Fe?Ne:e===Bt?Rt:e}function Ax(t){var r;if(nx(t),e.isBindingElement(t)||LD(t.type),t.name){if(160===t.name.kind&&(ry(t.name),t.initializer&&lb(t.initializer)),e.isBindingElement(t)){e.isObjectBindingPattern(t.parent)&&t.dotDotDotToken&&U<5&&jS(t,4),t.propertyName&&160===t.propertyName.kind&&ry(t.propertyName);var n=t.parent.parent,i=Va(n),a=t.propertyName||t.name;if(i&&!e.isBindingPattern(a)){var o=Lu(a);if(us(o)){var s=Sc(i,gs(o));s&&(ih(s,void 0,!1),Ny(t,!!n.initializer&&106===n.initializer.kind,!1,i,s))}}}if(e.isBindingPattern(t.name)&&(200===t.name.kind&&U<2&&V.downlevelIteration&&jS(t,512),e.forEach(t.name.elements,LD)),t.initializer&&e.isParameterDeclaration(t)&&e.nodeIsMissing(e.getContainingFunction(t).body))Sn(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){var c=t.initializer&&241!==t.parent.parent.kind,l=0===t.name.elements.length;if(c||l){var u=po(t);if(c){var _=lb(t.initializer);W&&l?By(_,t):wd(_,po(t),t,t.initializer)}l&&(e.isArrayBindingPattern(t.name)?Bx(65,u,Me,t):W&&By(u,t))}}else{var d=ji(t);if(2097152&d.flags&&e.isRequireVariableDeclaration(t))kD(t);else{var p=kx(Co(d));if(t===d.valueDeclaration){var f=e.getEffectiveInitializer(t);f&&(e.isInJSFile(t)&&e.isObjectLiteralExpression(f)&&(0===f.properties.length||e.isPrototypeAccess(t.name))&&(null===(r=d.exports)||void 0===r?void 0:r.size)||241===t.parent.parent.kind||wd(lb(f),p,t,f,void 0)),d.declarations&&d.declarations.length>1&&e.some(d.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!Fx(r,t)}))&&Sn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=kx(po(t));p===Pe||g===Pe||xd(p,g)||67108864&d.flags||Nx(d.valueDeclaration,p,t,g),t.initializer&&wd(lb(t.initializer),g,t,t.initializer,void 0),d.valueDeclaration&&!Fx(t,d.valueDeclaration)&&Sn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}165!==t.kind&&164!==t.kind&&(Gb(t),252!==t.kind&&201!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(252!==t.kind||t.initializer)){var r=ji(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=zn(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&ky(n)){var i=e.getAncestor(n.valueDeclaration,253),a=235===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(233===a.kind&&e.isFunctionLike(a.parent)||260===a.kind||259===a.kind||300===a.kind)){var o=ha(n);Sn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),Cx(t,t.name))}}}}function Nx(t,r,n,i){var a=e.getNameOfDeclaration(n),o=165===n.kind||164===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=Sn(a,o,s,ba(r),ba(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function Fx(t,r){return 162===t.kind&&252===r.kind||252===t.kind&&162===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function wx(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end}),function(t){if(241!==t.parent.parent.kind&&242!==t.parent.parent.kind)if(8388608&t.flags)aE(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return pE(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return pE(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(235!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return pE(t.exclamationToken,r)}var n=e.getEmitModuleKind(V);n<e.ModuleKind.ES2015&&n!==e.ModuleKind.System&&!(8388608&t.parent.parent.flags)&&e.hasSyntacticModifier(t.parent.parent,1)&&oE(t.name),(e.isLet(t)||e.isVarConst(t))&&sE(t.name)}(t),Ax(t),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function Px(t){VS(t)||cE(t.declarationList)||function(t){if(!lE(t.parent)){if(e.isLet(t.declarationList))return pE(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isVarConst(t.declarationList)&&pE(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(t),e.forEach(t.declarationList.declarations,LD)}function Ix(t,r,n){if(W&&!Gp(r)){var i=e.isBinaryExpression(t)?t.right:t;if(!e.isPropertyAccessExpression(i)||!e.isAssertionExpression(e.skipParentheses(i.expression))){var a=e.isIdentifier(i)?i:e.isPropertyAccessExpression(i)?i.name:e.isBinaryExpression(i)&&e.isIdentifier(i.right)?i.right:void 0,o=Tc(r,0),s=!!Wb(r);if(0!==o.length||s){var c=a&&QD(a);if(c||s){var l=c&&e.isBinaryExpression(t.parent)&&function(t,r){for(;e.isBinaryExpression(t)&&55===t.operatorToken.kind;){if(e.forEachChild(t.right,(function t(n){if(e.isIdentifier(n)){var i=QD(n);if(i&&i===r)return!0}return e.forEachChild(n,t)})))return!0;t=t.parent}return!1}(t.parent,c)||c&&n&&function(t,r,n,i){return!!e.forEachChild(r,(function r(a){if(e.isIdentifier(a)){var o=QD(a);if(o&&o===i){if(e.isIdentifier(t))return!0;for(var s=n.parent,c=a.parent;s&&c;){if(e.isIdentifier(s)&&e.isIdentifier(c)||108===s.kind&&108===c.kind)return QD(s)===QD(c);if(e.isPropertyAccessExpression(s)&&e.isPropertyAccessExpression(c)){if(QD(s.name)!==QD(c.name))return!1;c=c.expression,s=s.expression}else{if(!e.isCallExpression(s)||!e.isCallExpression(c))return!1;c=c.expression,s=s.expression}}}}return e.forEachChild(a,r)}))}(t,n,a,c);l||(s?Cn(i,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,Da(r)):Sn(i,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function Ox(t,r){return 16384&t.flags&&Sn(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),t}function Lx(e,t){return Ox(kb(e,t),e)}function Mx(e){var t=e.initializer;t.declarations.length>=1&&wx(t.declarations[0])}function Rx(e){return Bx(e.awaitModifier?15:13,wy(e.expression),Me,e.expression)}function Bx(e,t,r,n){return Ja(t)?t:jx(e,t,r,n,!0)||Ne}function jx(t,r,n,i,a){var o=0!=(2&t);if(r!==$e){var s=U>=2,c=!s&&V.downlevelIteration,l=V.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var u=Gx(r,t,s?i:void 0);if(a&&u){var _=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;_&&Fd(n,u.nextType,i,_)}if(u||s)return l?hg(u&&u.yieldType):u&&u.yieldType}var d=r,p=!1,f=!1;if(4&t){if(1048576&d.flags){var g=r.types,m=e.filter(g,(function(e){return!(402653316&e.flags)}));m!==g&&(d=Su(m,2))}else 402653316&d.flags&&(d=$e);if((f=d!==r)&&(U<1&&i&&(Sn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),p=!0),131072&d.flags))return l?hg(Ue):Ue}if(!Sp(d)){if(i&&!p){var y=function(n,i){var a;return i?n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Jx(t,0,r,void 0)?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(a=r.symbol)||void 0===a?void 0:a.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&t)&&!f,c),h=y[0];Cn(i,y[1]&&!!Wb(d),h,ba(d))}return f?l?hg(Ue):Ue:void 0}var v=Pc(d,Ke);return f&&v?402653316&v.flags&&!V.noUncheckedIndexedAccess?Ue:Su(l?[v,Ue,Me]:[v,Ue],2):128&t?hg(v):v}$x(i,r,o)}function Jx(e,t,r,n){if(!Ja(r)){var i=Gx(r,e,n);return i&&i[B(t)]}}function Vx(e,t,r){if(void 0===e&&(e=$e),void 0===t&&(t=$e),void 0===r&&(r=Le),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=hl([e,t,r]),i=Er.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},Er.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function Ux(t){for(var r,n,i,a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s&&s!==Tr){if(s===Cr)return Cr;r=e.append(r,s.yieldType),n=e.append(n,s.returnType),i=e.append(i,s.nextType)}}return r||n||i?Vx(r&&Su(r),n&&Su(n),i&&Fu(i)):Tr}function Kx(e,t){return e[t]}function zx(e,t,r){return e[t]=r}function Gx(t,r,n){if(Ja(t))return Cr;if(!(1048576&t.flags)){var i=qx(t,r,n);return i===Tr?void(n&&$x(n,t,!!(2&r))):i}var a,o=2&r?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=Kx(t,o);if(s)return s===Tr?void 0:s;for(var c=0,l=t.types;c<l.length;c++){var u=qx(l[c],r,n);if(u===Tr)return n&&$x(n,t,!!(2&r)),void zx(t,o,Tr);a=e.append(a,u)}var _=a?Ux(a):Tr;return zx(t,o,_),_===Tr?void 0:_}function Wx(e,t){if(e===Tr)return Tr;if(e===Cr)return Cr;var r=e.yieldType,n=e.returnType,i=e.nextType;return Vx(Yb(r,t)||Ne,Yb(n,t)||Ne,i)}function qx(e,t,r){if(Ja(e))return Cr;var n;if(2&t&&(n=Hx(e,Nr)||Xx(e,Nr)))return n;if(1&t&&(n=Hx(e,Fr)||Xx(e,Fr))){if(!(2&t))return n;if(n!==Tr)return zx(e,"iterationTypesOfAsyncIterable",Wx(n,r))}return 2&t&&(n=Qx(e,Nr,r))!==Tr?n:1&t&&(n=Qx(e,Fr,r))!==Tr?2&t?zx(e,"iterationTypesOfAsyncIterable",n?Wx(n,r):Tr):n:Tr}function Hx(e,t){return Kx(e,t.iterableCacheKey)}function Yx(e,t){var r=Hx(e,t)||Qx(e,t,void 0);return r===Tr?Ar:r}function Xx(e,t){var r;if(Ao(e,r=t.getGlobalIterableType(!1))||Ao(e,r=t.getGlobalIterableIteratorType(!1))){var n=El(e)[0],i=Yx(r,t),a=i.returnType,o=i.nextType;return zx(e,t.iterableCacheKey,Vx(n,a,o))}if(Ao(e,t.getGlobalGeneratorType(!1))){var s=El(e);return n=s[0],a=s[1],o=s[2],zx(e,t.iterableCacheKey,Vx(n,a,o))}}function Qx(t,r,n){var i,a,o,s,c=Sc(t,(a=r.iteratorSymbolName,(s=(o=Hl(!1))&&ja(Co(o),e.escapeLeadingUnderscores(a)))&&us(s)?gs(s):"__@"+a)),l=!c||16777216&c.flags?void 0:Co(c);if(Ja(l))return zx(t,r.iterableCacheKey,Cr);var u=l?Tc(l,0):void 0;if(!e.some(u))return zx(t,r.iterableCacheKey,Tr);var _=null!==(i=Zx(Fu(e.map(u,Zc)),r,n))&&void 0!==i?i:Tr;return zx(t,r.iterableCacheKey,_)}function $x(t,r,n){var i=n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;Cn(t,!!Wb(r),i,ba(r))}function Zx(e,t,r){if(Ja(e))return Cr;var n=eD(e,t)||function(e,t){var r=t.getGlobalIterableIteratorType(!1);if(Ao(e,r)){var n=El(e)[0],i=eD(r,t)||aD(r,t,void 0),a=i===Tr?Ar:i,o=a.returnType,s=a.nextType;return zx(e,t.iteratorCacheKey,Vx(n,o,s))}if(Ao(e,t.getGlobalIteratorType(!1))||Ao(e,t.getGlobalGeneratorType(!1))){var c=El(e);return n=c[0],o=c[1],s=c[2],zx(e,t.iteratorCacheKey,Vx(n,o,s))}}(e,t)||aD(e,t,r);return n===Tr?void 0:n}function eD(e,t){return Kx(e,t.iteratorCacheKey)}function tD(e,t){var r=ja(e,"done")||Ge;return Cd(0===t?Ge:qe,r)}function rD(e){return tD(e,0)}function nD(e){return tD(e,1)}function iD(t,r,n,i){var a,o,s,c,l=Sc(t,n);if(l||"next"===n){var u=!l||"next"===n&&16777216&l.flags?void 0:"next"===n?Co(l):fg(Co(l),2097152);if(Ja(u))return"next"===n?Cr:kr;var _,d,p,f,g,m=u?Tc(u,0):e.emptyArray;if(0===m.length)return i&&Sn(i,"next"===n?r.mustHaveANextMethodDiagnostic:r.mustBeAMethodDiagnostic,n),"next"===n?Cr:void 0;if((null==u?void 0:u.symbol)&&1===m.length){var y=r.getGlobalGeneratorType(!1),h=r.getGlobalIteratorType(!1),v=(null===(o=null===(a=y.symbol)||void 0===a?void 0:a.members)||void 0===o?void 0:o.get(n))===u.symbol,b=!v&&(null===(c=null===(s=h.symbol)||void 0===s?void 0:s.members)||void 0===c?void 0:c.get(n))===u.symbol;if(v||b){var x=v?y:h,D=u.mapper;return Vx(H_(x.typeParameters[0],D),H_(x.typeParameters[1],D),"next"===n?H_(x.typeParameters[2],D):void 0)}}for(var S=0,E=m;S<E.length;S++){var T=E[S];"throw"!==n&&e.some(T.parameters)&&(_=e.append(_,yv(T,0))),d=e.append(d,Zc(T))}if("throw"!==n){var C=_?Su(_):Le;if("next"===n)f=C;else if("return"===n){var k=r.resolveIterationType(C,i)||Ne;p=e.append(p,k)}}var A=d?Fu(d):$e,N=function(e){if(Ja(e))return Cr;var t=Kx(e,"iterationTypesOfIteratorResult");if(t)return t;if(Ao(e,Zt||(Zt=Wl("IteratorYieldResult",1,!1))||gt))return zx(e,"iterationTypesOfIteratorResult",Vx(El(e)[0],void 0,void 0));if(Ao(e,er||(er=Wl("IteratorReturnResult",1,!1))||gt))return zx(e,"iterationTypesOfIteratorResult",Vx(void 0,El(e)[0],void 0));var r=Og(e,rD),n=r!==$e?ja(r,"value"):void 0,i=Og(e,nD),a=i!==$e?ja(i,"value"):void 0;return zx(e,"iterationTypesOfIteratorResult",n||a?Vx(n,a||Qe,void 0):Tr)}(r.resolveIterationType(A,i)||Ne);return N===Tr?(i&&Sn(i,r.mustHaveAValueDiagnostic,n),g=Ne,p=e.append(p,Ne)):(g=N.yieldType,p=e.append(p,N.returnType)),Vx(g,Su(p),f)}}function aD(e,t,r){var n=Ux([iD(e,t,"next",r),iD(e,t,"return",r),iD(e,t,"throw",r)]);return zx(e,t.iteratorCacheKey,n)}function oD(e,t,r){if(!Ja(t)){var n=sD(t,r);return n&&n[B(e)]}}function sD(e,t){if(Ja(e))return Cr;var r=t?Nr:Fr;return Gx(e,t?2:1,void 0)||Zx(e,r,void 0)}function cD(e,t){var r,n,i=!!(2&t);return 1&t?null!==(r=oD(1,e,i))&&void 0!==r?r:Pe:i?null!==(n=Yb(e))&&void 0!==n?n:Pe:e}function lD(t,r){var n=cD(r,e.getFunctionFlags(t));return!!n&&Hv(n,16387)}function uD(t,r){var n=Fc(t);if(0!==n.length){for(var i=0,a=Qs(t);i<a.length;i++){var o=a[i];r&&4194304&o.flags||_D(t,o,Mu(o,8576,!0),ko(o))}var s=t.symbol.valueDeclaration;if(s&&e.isClassLike(s))for(var c=0,l=s.members;c<l.length;c++){var u=l[c];if(!e.isStatic(u)&&!fs(u)){var _=ji(u);_D(t,_,Eb(u.name.expression),ko(_))}}if(n.length>1)for(var d=0,p=n;d<p.length;d++)dD(t,p[d])}}function _D(t,r,n,i){var a=r.valueDeclaration,o=e.getNameOfDeclaration(a);if(!o||!e.isPrivateIdentifier(o))for(var s=Ic(t,n),c=2&e.getObjectFlags(t)?e.getDeclarationOfKind(t.symbol,256):void 0,l=a&&219===a.kind||o&&160===o.kind||Ji(r)===t.symbol?a:void 0,u=function(n){var a=n.declaration&&Ji(ji(n.declaration))===t.symbol?n.declaration:void 0,o=l||a||(c&&!e.some(Uo(t),(function(e){return!!$s(e,r.escapedName)&&!!Pc(e,n.keyType)}))?c:void 0);o&&!Cd(i,n.type)&&Sn(o,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ha(r),ba(i),ba(n.keyType),ba(n.type))},_=0,d=s;_<d.length;_++)u(d[_])}function dD(t,r){for(var n=r.declaration,i=Ic(t,r.keyType),a=2&e.getObjectFlags(t)?e.getDeclarationOfKind(t.symbol,256):void 0,o=n&&Ji(ji(n))===t.symbol?n:void 0,s=function(n){if(n===r)return"continue";var i=n.declaration&&Ji(ji(n.declaration))===t.symbol?n.declaration:void 0,s=o||i||(a&&!e.some(Uo(t),(function(e){return!!wc(e,r.keyType)&&!!Pc(e,n.keyType)}))?a:void 0);s&&!Cd(r.type,n.type)&&Sn(s,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,ba(r.keyType),ba(r.type),ba(n.keyType),ba(n.type))},c=0,l=i;c<l.length;c++)s(l[c])}function pD(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Sn(e,t,e.escapedText)}}function fD(t){if(t)for(var n=!1,i=0;i<t.length;i++){var a=t[i];if(Ab(a),r){a.default?(n=!0,s=a.default,c=t,l=i,function t(r){if(176===r.kind){var n=jl(r);if(262144&n.flags)for(var i=l;i<c.length;i++)n.symbol===ji(c[i])&&Sn(r,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(r,t)}(s)):n&&Sn(a,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<i;o++)t[o].symbol===a.symbol&&Sn(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}var s,c,l}function gD(t){if(!t.declarations||1!==t.declarations.length){var r=Bn(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=function(t){return e.filter(t.declarations,(function(e){return 255===e.kind||256===e.kind}))}(t);if(!n||n.length<=1)return;if(!function(t,r){for(var n=e.length(r),i=Kc(r),a=0,o=t;a<o.length;a++){var s=o[a],c=e.getEffectiveTypeParameterDeclarations(s),l=c.length;if(l<i||l>n)return!1;for(var u=0;u<l;u++){var _=c[u],d=r[u];if(_.name.escapedText!==d.symbol.escapedName)return!1;var p=e.getEffectiveConstraintOfTypeParameter(_),f=p&&V_(p),g=rc(d);if(f&&g&&!xd(f,g))return!1;var m=_.default&&V_(_.default),y=dc(d);if(m&&y&&!xd(m,y))return!1}}return!0}(n,es(t).localTypeParameters))for(var i=ha(t),a=0,o=n;a<o.length;a++)Sn(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}function mD(t){!function(t){var r=e.getSourceFileOfNode(t);(function(t){var r=!1,n=!1;if(!VS(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(94===o.token){if(r)return _E(o,e.Diagnostics.extends_clause_already_seen);if(n)return _E(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return _E(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(117===o.token),n)return _E(o,e.Diagnostics.implements_clause_already_seen);n=!0}HS(o)}})(t)||zS(t.typeParameters,r)}(t),nx(t),Cx(t,t.name),fD(e.getEffectiveTypeParameterDeclarations(t)),Gb(t);var n=ji(t),i=es(n),a=bs(i),o=Co(n);gD(n),zb(n),function(t){for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a<o.length;a++){var s=o[a];if(169===s.kind)for(var c=0,l=s.parameters;c<l.length;c++){var u=l[c];e.isParameterPropertyDeclaration(u,s)&&!e.isBindingPattern(u.name)&&y(r,u.name,u.name.escapedText,3)}else{var _=e.isStatic(s),d=s.name;if(!d)continue;var p=e.isPrivateIdentifier(d),f=p&&_?16:0,g=p?i:_?n:r,m=d&&e.getPropertyNameForPropertyNameNode(d);if(m)switch(s.kind){case 170:y(g,d,m,1|f);break;case 171:y(g,d,m,2|f);break;case 165:y(g,d,m,3|f);break;case 167:y(g,d,m,8|f)}}}function y(t,r,n,i){var a=t.get(n);if(a)if((16&a)!=(16&i))Sn(r,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(r));else{var o=!!(8&a),s=!!(8&i);o||s?o!==s&&Sn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i&-17?Sn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t.set(n,a|i)}else t.set(n,i)}}(t),8388608&t.flags||function(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r],a=i.name;if(e.isStatic(i)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":Sn(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,wa(ji(t)))}}}}(t);var s=e.getEffectiveBaseTypeNode(t);if(s){e.forEach(s.typeArguments,LD),U<2&&jS(s.parent,1);var c=e.getClassExtendsHeritageElement(t);c&&c!==s&&kb(c.expression);var l=Uo(i);if(l.length&&r){var u=l[0],_=Jo(i),d=pc(_);if(function(t,r){var n=Tc(t,1);if(n.length){var i=n[0].declaration;i&&e.hasEffectiveModifier(i,8)&&(qD(r,e.getClassLikeDeclarationOfSymbol(t.symbol))||Sn(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,xi(t.symbol)))}}(d,s),LD(s.expression),e.some(s.typeArguments)){e.forEach(s.typeArguments,LD);for(var p=0,f=Bo(d,s.typeArguments,s);p<f.length&&Bb(s,f[p].typeParameters);p++);}if(Fd(a,x=bs(u,i.thisType),void 0)?Fd(o,bd(d),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):yD(t,a,x,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&_.flags&&(Lo(o)?Tc(_,1).some((function(e){return 4&e.flags}))&&!e.hasSyntacticModifier(t,128)&&Sn(t.name||t,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Sn(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(d.symbol&&32&d.symbol.flags||8650752&_.flags)){var g=jo(d,s.typeArguments,s);e.forEach(g,(function(e){return!Zh(e.declaration)&&!xd(Zc(e),u)}))&&Sn(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(t,r){var n,i;e:for(var a=0,o=ec(r);a<o.length;a++){var s=o[a],c=hD(s);if(!(4194304&c.flags)){var l=$s(t,c.escapedName);if(l){var u=hD(l),_=e.getDeclarationModifierFlagsFromSymbol(c);if(e.Debug.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===c){var d=e.getClassLikeDeclarationOfSymbol(t.symbol);if(128&_&&(!d||!e.hasSyntacticModifier(d,128))){for(var p=0,f=Uo(t);p<f.length;p++){var g=f[p];if(g!==r){var m=$s(g,c.escapedName),y=m&&hD(m);if(y&&y!==c)continue e}}224===d.kind?Sn(d,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ha(s),ba(r)):Sn(d,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,ba(t),ha(s),ba(r))}}else{var h=e.getDeclarationModifierFlagsFromSymbol(u);if(8&_||8&h)continue;var v=void 0,b=98308&c.flags,x=98308&u.flags;if(b&&x){if(128&_&&!(c.valueDeclaration&&e.isPropertyDeclaration(c.valueDeclaration)&&c.valueDeclaration.initializer)||c.valueDeclaration&&256===c.valueDeclaration.parent.kind||u.valueDeclaration&&e.isBinaryExpression(u.valueDeclaration))continue;var D=4!==b&&4===x;if(D||4===b&&4!==x){var S=D?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Sn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,S,ha(c),ba(r),ba(t))}else if(z){var E=null===(n=u.declarations)||void 0===n?void 0:n.find((function(e){return 165===e.kind&&!e.initializer}));if(E&&!(33554432&u.flags)&&!(128&_)&&!(128&h)&&!(null===(i=u.declarations)||void 0===i?void 0:i.some((function(e){return!!(8388608&e.flags)})))){var T=qi(e.getClassLikeDeclarationOfSymbol(t.symbol)),C=E.name;if(E.exclamationToken||!T||!e.isIdentifier(C)||!W||!bD(C,t,T)){var k=e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Sn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,k,ha(c),ba(r))}}}continue}if(Ay(c)){if(Ay(u)||4&u.flags)continue;e.Debug.assert(!!(98304&u.flags)),v=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else v=98304&c.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Sn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,v,ba(r),ha(c),ba(t))}}}}}(i,u)}}!function(t,r,n,i){for(var a=!!(8388608&t.flags),o=e.getEffectiveBaseTypeNode(t)&&Uo(r),s=(null==o?void 0:o.length)?bs(e.first(o),r.thisType):void 0,c=Jo(r),l=function(t){if(e.hasAmbientModifier(t))return"continue";e.isConstructorDeclaration(t)&&e.forEach(t.parameters,(function(r){e.isParameterPropertyDeclaration(r,t)&&d(r,!0)})),d(t)},u=0,_=t.members;u<_.length;u++)l(_[u]);function d(t,o){var l=e.hasOverrideModifier(t),u=e.isStatic(t);if(s&&(l||V.noImplicitOverride)){var _=t.name&&QD(t.name)||QD(t);if(!_)return;var d=u?c:s,p=Sc(u?i:n,_.escapedName),f=Sc(d,_.escapedName),g=ba(s);if(p&&!f&&l){var m=Qy(e.symbolName(_),d);m?Sn(t,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,g,ha(m)):Sn(t,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,g)}else if(p&&(null==f?void 0:f.declarations)&&V.noImplicitOverride&&!a){var y=e.some(f.declarations,(function(t){return e.hasAbstractModifier(t)}));if(l)return;y?e.hasAbstractModifier(t)&&y&&Sn(t,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,g):Sn(t,o?e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,g)}}else if(l){var h=ba(r);Sn(t,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,h)}}}(t,i,a,o);var m=e.getEffectiveImplementsTypeNodes(t);if(m)for(var y=0,h=m;y<h.length;y++){var v=h[y];if(e.isEntityNameExpression(v.expression)&&!e.isOptionalChain(v.expression)||Sn(v.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Jb(v),r){var b=hc(V_(v));if(b!==Pe)if(zo(b)){var x,D=b.symbol&&32&b.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;Fd(a,x=bs(b,i.thisType),void 0)||yD(t,a,x,D)}else Sn(v,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}r&&(uD(i),uD(o,!0),Ib(t),function(t){if(W&&Y&&!(8388608&t.flags))for(var r=qi(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(!(2&e.getEffectiveModifierFlags(a))&&!e.isStatic(a)&&vD(a)){var o=a.name;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)){var s=Co(ji(a));3&s.flags||32768&Gp(s)||r&&bD(o,s,r)||Sn(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(t))}function yD(t,r,n,i){for(var a=!1,o=function(t){if(e.isStatic(t))return"continue";var i=t.name&&QD(t.name)||QD(t);if(i){var o=Sc(r,i.escapedName),s=Sc(n,i.escapedName);o&&s&&(Fd(Co(o),Co(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,ha(i),ba(r),ba(n))}))||(a=!0))}},s=0,c=t.members;s<c.length;s++)o(c[s]);a||Fd(r,n,t.name||t,i)}function hD(t){return 1&e.getCheckFlags(t)?t.target:t}function vD(t){return 165===t.kind&&!e.hasAbstractModifier(t)&&!t.exclamationToken&&!t.initializer}function bD(t,r,n){var i=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);return e.setParent(i.expression,i),e.setParent(i,n),i.flowNode=n.returnFlowNode,!(32768&Gp(am(i,r,Yp(r))))}function xD(e){var t=jn(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=DD(a,r);jn(a).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function DD(t,r){if(e.isComputedNonLiteralName(t.name))Sn(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);ty(n)&&!e.isInfinityOrNaNString(n)&&Sn(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return t.initializer?function(t){var r=Yo(ji(t.parent)),n=e.isEnumConst(t.parent),i=t.initializer,a=1!==r||Ho(t)?function r(n){switch(n.kind){case 217:var i=r(n.operand);if("number"==typeof i)switch(n.operator){case 39:return i;case 40:return-i;case 54:return~i}break;case 219:var a=r(n.left),o=r(n.right);if("number"==typeof a&&"number"==typeof o)switch(n.operatorToken.kind){case 51:return a|o;case 50:return a&o;case 48:return a>>o;case 49:return a>>>o;case 47:return a<<o;case 52:return a^o;case 41:return a*o;case 43:return a/o;case 39:return a+o;case 40:return a-o;case 44:return a%o;case 42:return Math.pow(a,o)}else if("string"==typeof a&&"string"==typeof o&&39===n.operatorToken.kind)return a+o;break;case 10:case 14:return n.text;case 8:return mE(n),+n.text;case 210:return r(n.expression);case 79:var c=n;return e.isInfinityOrNaNString(c.escapedText)?+c.escapedText:e.nodeIsMissing(n)?0:s(n,ji(t.parent),c.escapedText);case 205:case 204:var l=n;if(SD(l)){var u=Eb(l.expression);if(u.symbol&&384&u.symbol.flags){var _;return _=204===l.kind?l.name.escapedText:e.escapeLeadingUnderscores(e.cast(l.argumentExpression,e.isLiteralExpression).text),s(n,u.symbol,_)}}}}(i):void 0;if(void 0!==a)n&&"number"==typeof a&&!isFinite(a)&&Sn(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 Sn(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(n)Sn(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(8388608&t.parent.flags)Sn(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var o=kb(i);Yv(o,296)?Fd(o,es(ji(t.parent)),i,void 0):Sn(i,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,ba(o))}}return a;function s(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return o&&Un(o,t)?SS(o):(Sn(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Sn(r,e.Diagnostics.Property_0_is_used_before_being_assigned,ha(a))}}}(t):8388608&t.parent.flags&&!e.isEnumConst(t.parent)&&0===Yo(ji(t.parent))?void 0:void 0!==r?r:void Sn(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function SD(t){return 79===t.kind||204===t.kind&&SD(t.expression)||205===t.kind&&SD(t.expression)&&e.isStringLiteralLike(t.argumentExpression)}function ED(t){e.isPrivateIdentifier(t.name)&&Sn(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function TD(t,r){var n;switch(t.kind){case 235:for(var i=0,a=t.declarationList.declarations;i<a.length;i++)TD(a[i],r);break;case 269:case 270:_E(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 263:case 264:_E(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 201:case 252:var o=t.name;if(e.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++)TD(c[s],r);break}case 255:case 258:case 254:case 256:case 259:case 257:if(r)return;var l=ji(t);if(l){var u=!(33554432&l.flags);u||(u=!!(null===(n=l.parent)||void 0===n?void 0:n.declarations)&&e.isExternalModuleAugmentation(l.parent.declarations[0]))}}}function CD(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return Sn(r,e.Diagnostics.String_literal_expected),!1;var n=260===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 300===t.parent.kind||n?!(n&&e.isExternalModuleNameRelative(r.text)&&!Aa(t)&&(Sn(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),1)):(Sn(r,270===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 kD(t){var r,n=ji(t),i=fi(n);if(i!==ke){var a=(1160127&(n=Bi(n.exportSymbol||n)).flags?111551:0)|(788968&n.flags?788968:0)|(1920&n.flags?1920:0);i.flags&a&&Sn(t,273===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,ha(n)),!V.isolatedModules||273!==t.kind||t.parent.parent.isTypeOnly||111551&i.flags||8388608&t.flags||Sn(t,e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type),e.isImportSpecifier(t)&&(null===(r=i.declarations)||void 0===r?void 0:r.every((function(t){return!!(134217728&e.getCombinedNodeFlags(t))})))&&An(t.name,i.declarations,n.escapedName)}}function AD(t){Cx(t,t.name),kD(t),268===t.kind&&"default"===e.idText(t.propertyName||t.name)&&V.esModuleInterop&&K!==e.ModuleKind.System&&K<e.ModuleKind.ES2015&&jS(t,131072)}function ND(e,t){var r=300===e.parent.kind||260===e.parent.kind||259===e.parent.kind;return r||_E(e,t),!r}function FD(t){return e.isImportDeclaration(t)&&t.importClause&&!t.importClause.isTypeOnly&&(r=t.importClause,e.forEachImportClauseDeclaration(r,(function(e){return!!ji(e).isReferenced})))&&!mS(t.importClause,!0)&&!function(t){return e.forEachImportClauseDeclaration(t,(function(e){return!!Bn(ji(e)).constEnumReferenced}))}(t.importClause);var r}function wD(t){return e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&!t.isTypeOnly&&ji(t).isReferenced&&!mS(t,!1)&&!Bn(ji(t)).constEnumReferenced}function PD(t){if(kD(t),e.getEmitDeclarations(V)&&Ia(t.propertyName||t.name,!0),t.parent.parent.moduleSpecifier)V.esModuleInterop&&K!==e.ModuleKind.System&&K<e.ModuleKind.ES2015&&"default"===e.idText(t.propertyName||t.name)&&jS(t,131072);else{var r=t.propertyName||t.name,n=zn(r,r.escapedText,2998271,void 0,void 0,!0);if(n&&(n===oe||n===se||n.declarations&&Jn(Ba(n.declarations[0]))))Sn(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r));else{hi(t);var i=n&&(2097152&n.flags?fi(n):n);(!i||i===ke||111551&i.flags)&&lb(t.propertyName||t.name)}}}function ID(t){var r=ji(t),n=Bn(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=ti(i)||i.valueDeclaration;!a||Aa(a)||e.isInJSFile(a)||Sn(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=Li(r);o&&o.forEach((function(t,r){var n=t.declarations,i=t.flags;if("__export"!==r&&!(1984&i)){var a=e.countWhere(n,A);if(!(524288&i&&a<=2)&&a>1&&!OD(n))for(var o=0,s=n;o<s.length;o++){var c=s[o];M(c)&&ln.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}})),n.exportsChecked=!0}}function OD(t){return t&&t.length>1&&t.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))}))}function LD(t){if(t){var i=_;_=t,E=0,function(t){e.isInJSFile(t)&&e.forEach(t.jsDoc,(function(t){var r=t.tags;return e.forEach(r,LD)}));var i=t.kind;if(n)switch(i){case 259:case 255:case 256:case 254:n.throwIfCancellationRequested()}switch(i>=235&&i<=251&&t.flowNode&&!em(t.flowNode)&&Tn(!1===V.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected),i){case 161:return Ab(t);case 162:return Nb(t);case 165:return Ob(t);case 164:return function(t){return e.isPrivateIdentifier(t.name)&&Sn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ob(t)}(t);case 178:case 177:case 172:case 173:case 174:return wb(t);case 167:case 166:return function(t){nE(t)||XS(t.name),ax(t),e.hasSyntacticModifier(t,128)&&167===t.kind&&t.body&&Sn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&Sn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Lb(t)}(t);case 168:return function(t){VS(t),e.forEachChild(t,LD)}(t);case 169:return function(t){wb(t),function(t){var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return dE(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var r=e.getEffectiveReturnTypeNode(t);r&&pE(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),LD(t.body);var n=ji(t);if(t===e.getDeclarationOfKind(n,t.kind)&&zb(n),!e.nodeIsMissing(t.body)&&r){var i=t.parent;if(e.getClassExtendsHeritageElement(i)){gm(t.parent,i);var a=ym(i),o=mm(t.body);if(o){if(a&&Sn(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==V.target||!z)&&(e.some(t.parent.members,(function(t){return!!e.isPrivateIdentifierClassElementDeclaration(t)||165===t.kind&&!e.isStatic(t)&&!!t.initializer}))||e.some(t.parameters,(function(t){return e.hasSyntacticModifier(t,16476)})))){for(var s=void 0,c=0,l=t.body.statements;c<l.length;c++){var u=l[c];if(236===u.kind&&e.isSuperCall(u.expression)){s=u;break}if(!e.isPrologueDirective(u))break}s||Sn(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else a||Sn(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}(t);case 170:case 171:return Mb(t);case 176:return Jb(t);case 175:return function(t){var r=function(e){switch(e.parent.kind){case 212:case 172:case 254:case 211:case 177:case 167:case 166:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=Gc(r),i=Qc(n);if(i){LD(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)B_(a);else if(i.parameterIndex>=0)j(n)&&i.parameterIndex===n.parameters.length-1?Sn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&Fd(i.type,Co(n.parameters[i.parameterIndex]),t.type,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)}));else if(a){for(var o=!1,s=0,c=r.parameters;s<c.length;s++){var l=c[s].name;if(e.isBindingPattern(l)&&Fb(l,a,i.parameterName)){o=!0;break}}o||Sn(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}}else Sn(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(t);case 179:return function(e){Vl(e)}(t);case 180:return function(t){e.forEach(t.members,LD),r&&(uD(b_(t)),Ib(t),Pb(t))}(t);case 181:return function(e){LD(e.elementType)}(t);case 182:return function(t){for(var r=t.elements,n=!1,i=!1,a=e.some(r,e.isNamedTupleMember),o=0,s=r;o<s.length;o++){var c=s[o];if(195!==c.kind&&a){pE(c,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var l=nu(c);if(8&l){var u=V_(c.type);if(!Sp(u)){Sn(c,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(vp(u)||Bp(u)&&4&u.target.combinedFlags)&&(i=!0)}else if(4&l){if(i){pE(c,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}i=!0}else if(2&l){if(i){pE(c,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}n=!0}else if(n){pE(c,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(t.elements,LD),V_(t)}(t);case 185:case 186:return function(t){e.forEach(t.types,LD),V_(t)}(t);case 189:case 183:case 184:return LD(t.type);case 190:return function(e){B_(e)}(t);case 191:return function(t){!function(t){if(152===t.operator){if(149!==t.type.kind)return pE(t.type,e.Diagnostics._0_expected,e.tokenToString(149));var r=e.walkUpParenthesizedTypes(t.parent);switch(e.isInJSFile(r)&&e.isJSDocTypeExpression(r)&&(r=r.parent,e.isJSDocTypeTag(r)&&(r=r.parent.parent)),r.kind){case 252:var n=r;if(79!==n.name.kind)return pE(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(n))return pE(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return pE(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 165:if(!e.isStatic(r)||!e.hasEffectiveReadonlyModifier(r))return pE(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 164:if(!e.hasSyntacticModifier(r,64))return pE(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:pE(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else 143===t.operator&&181!==t.type.kind&&182!==t.type.kind&&_E(t,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(149))}(t),LD(t.type)}(t);case 187:return function(t){e.forEachChild(t,LD)}(t);case 188:return function(t){e.findAncestor(t,(function(e){return e.parent&&187===e.parent.kind&&e.parent.extendsType===e}))||pE(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),LD(t.typeParameter),ox(t)}(t);case 196:return function(e){for(var t=0,r=e.templateSpans;t<r.length;t++){var n=r[t];LD(n.type),Fd(V_(n.type),ct,n.type)}V_(e)}(t);case 198:return function(e){LD(e.argument),V_(e)}(t);case 195:return function(t){t.dotDotDotToken&&t.questionToken&&pE(t,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),183===t.type.kind&&pE(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),184===t.type.kind&&pE(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),LD(t.type),V_(t)}(t);case 323:return function(t){var r=e.getEffectiveJSDocHost(t);if(r&&(e.isClassDeclaration(r)||e.isClassExpression(r))){var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0),n.length>1&&Sn(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=ix(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=ix(a.expression);o&&i.escapedText!==o.escapedText&&Sn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Sn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 324:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||Sn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 340:case 333:case 334:return function(t){t.typeExpression||Sn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&pD(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),LD(t.typeExpression)}(t);case 339:return function(e){LD(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)LD(r[t])}(t);case 338:return function(e){LD(e.typeExpression)}(t);case 335:return function(t){if(LD(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;qc(r)?e.findLast(e.getJSDocTags(r),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!vp(V_(t.typeExpression.type))&&Sn(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(159===t.name.kind?t.name.right:t.name)):e.isQualifiedName(t.name)?Sn(t.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(t.name),e.entityNameToString(t.name.left)):Sn(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(t.name))}}}(t);case 342:return function(e){LD(e.typeExpression)}(t);case 312:!function(t){!r||t.type||e.isJSDocConstructSignature(t)||mf(t,Ne),wb(t)}(t);case 310:case 309:case 307:case 308:case 317:return MD(t),void e.forEachChild(t,LD);case 313:return void function(t){MD(t),LD(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))e.last(r.parent.parameters)!==r&&Sn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);else{e.isJSDocTypeExpression(r)||Sn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=t.parent.parent;if(e.isJSDocParameterTag(n)){var i=e.getParameterSymbolFromJSDoc(n);if(i){var a=e.getHostSignatureFromJSDoc(n);a&&e.last(a.parameters).symbol===i||Sn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else Sn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}}(t);case 304:return LD(t.type);case 192:return function(e){LD(e.objectType),LD(e.indexType),Vb(s_(e),e)}(t);case 193:return function(t){LD(t.typeParameter),LD(t.nameType),LD(t.type),t.type||mf(t,Ne);var r=c_(t),n=Vs(r);n?Fd(n,ot,t.nameType):Fd(Js(r),ot,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))}(t);case 254:return function(e){r&&(ax(e),QS(e),Cx(e,e.name))}(t);case 233:case 260:return bx(t);case 235:return Px(t);case 236:return function(e){gE(e),kb(e.expression)}(t);case 237:return function(t){gE(t);var r=Lx(t.expression);Ix(t.expression,r,t.thenStatement),LD(t.thenStatement),234===t.thenStatement.kind&&Sn(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),LD(t.elseStatement)}(t);case 238:return function(e){gE(e),LD(e.statement),Lx(e.expression)}(t);case 239:return function(e){gE(e),Lx(e.expression),LD(e.statement)}(t);case 240:return function(t){gE(t)||t.initializer&&253===t.initializer.kind&&cE(t.initializer),t.initializer&&(253===t.initializer.kind?e.forEach(t.initializer.declarations,wx):kb(t.initializer)),t.condition&&Lx(t.condition),t.incrementor&&kb(t.incrementor),LD(t.statement),t.locals&&ox(t)}(t);case 241:return function(t){eE(t);var r,n=Iy(kb(t.expression));if(253===t.initializer.kind){var i=t.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&Sn(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Mx(t)}else{var a=t.initializer,o=kb(a);202===a.kind||203===a.kind?Sn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Cd(131072&(r=Bu(Ru(n))).flags?Ue:r,o)?Wv(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Sn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}n!==$e&&Yv(n,126091264)||Sn(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,ba(n)),LD(t.statement),t.locals&&ox(t)}(t);case 242:return function(t){eE(t);var r=e.getContainingFunctionOrClassStaticBlock(t);if(t.awaitModifier?r&&e.isClassStaticBlockDeclaration(r)?pE(t.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&e.getFunctionFlags(r))&&U<99&&jS(t,16384):V.downlevelIteration&&U<2&&jS(t,256),253===t.initializer.kind)Mx(t);else{var n=t.initializer,i=Rx(t);if(202===n.kind||203===n.kind)tb(n,i||Pe);else{var a=kb(n);Wv(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),i&&wd(i,a,n,t.expression)}}LD(t.statement),t.locals&&ox(t)}(t);case 243:case 244:return function(t){gE(t)||function(t){for(var r=t;r;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(r))return pE(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 248:if(t.label&&r.label.escapedText===t.label.escapedText)return!(243!==t.kind||e.isIterationStatement(r.statement,!0))&&pE(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 247:if(244===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}t.label?pE(t,244===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):pE(t,244===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(t)}(t);case 245:return function(t){var r;if(!gE(t)){var n=e.getContainingFunctionOrClassStaticBlock(t);if(n&&e.isClassStaticBlockDeclaration(n))_E(t,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);else if(n){var i=Zc(Gc(n)),a=e.getFunctionFlags(n);if(W||t.expression||131072&i.flags){var o=t.expression?lb(t.expression):Me;if(171===n.kind)t.expression&&Sn(t,e.Diagnostics.Setters_cannot_return_a_value);else if(169===n.kind)t.expression&&!wd(o,i,t,t.expression)&&Sn(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(el(n)){var s=null!==(r=cD(i,a))&&void 0!==r?r:i,c=2&a?Hb(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):o;s&&wd(c,s,t,t.expression)}}else 169!==n.kind&&V.noImplicitReturns&&!lD(n,i)&&Sn(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else _E(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(t);case 246:return function(t){gE(t)||32768&t.flags&&_E(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),kb(t.expression);var r=e.getSourceFileOfNode(t);if(!uE(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;dE(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 247:return function(t){var n;gE(t);var i=!1,a=kb(t.expression),o=Pp(a);e.forEach(t.caseBlock.clauses,(function(t){if(288!==t.kind||i||(void 0===n?n=t:(pE(t,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),i=!0)),r&&287===t.kind){var s=kb(t.expression),c=Pp(s),l=a;c&&o||(s=c?Ip(s):s,l=Ip(a)),nb(l,s)||Jd(s,l,t.expression,void 0)}e.forEach(t.statements,LD),V.noFallthroughCasesInSwitch&&t.fallthroughFlowNode&&em(t.fallthroughFlowNode)&&Sn(t,e.Diagnostics.Fallthrough_case_in_switch)})),t.caseBlock.locals&&ox(t.caseBlock)}(t);case 248:return function(t){gE(t)||e.findAncestor(t.parent,(function(r){return e.isFunctionLike(r)?"quit":248===r.kind&&r.label.escapedText===t.label.escapedText&&(pE(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0)})),LD(t.statement)}(t);case 249:return function(t){gE(t)||e.isIdentifier(t.expression)&&!t.expression.escapedText&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!uE(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);ln.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,void 0,void 0,void 0))}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&kb(t.expression)}(t);case 250:return function(t){gE(t),bx(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration){var n=r.variableDeclaration,i=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(n));if(i){var a=Za(n,!1);!a||3&a.flags||_E(i,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(n.initializer)_E(n.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var o=r.block.locals;o&&e.forEachKey(r.locals,(function(t){var r=o.get(t);(null==r?void 0:r.valueDeclaration)&&0!=(2&r.flags)&&pE(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)}))}}bx(r.block)}t.finallyBlock&&bx(t.finallyBlock)}(t);case 252:return wx(t);case 201:return function(t){return function(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return pE(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(KS(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),t.propertyName)return pE(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}t.dotDotDotToken&&t.initializer&&dE(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}(t),Ax(t)}(t);case 255:return function(t){e.some(t.decorators)&&e.some(t.members,(function(t){return e.hasStaticModifier(t)&&e.isPrivateIdentifierClassElementDeclaration(t)}))&&pE(t.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),t.name||e.hasSyntacticModifier(t,512)||_E(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),mD(t),e.forEach(t.members,LD),ox(t)}(t);case 256:return function(t){if(VS(t)||function(t){var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n<i.length;n++){var a=i[n];if(94!==a.token)return e.Debug.assert(117===a.token),_E(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return _E(a,e.Diagnostics.extends_clause_already_seen);r=!0,HS(a)}}(t),fD(t.typeParameters),r){pD(t.name,e.Diagnostics.Interface_name_cannot_be_0),Gb(t);var n=ji(t);if(gD(n),t===e.getDeclarationOfKind(n,256)){var i=es(n),a=bs(i);if(function(t,r){var n=Uo(t);if(n.length<2)return!0;var i=new e.Map;e.forEach(ls(t).declaredProperties,(function(e){i.set(e.escapedName,{prop:e,containingType:t})}));for(var a=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],l=0,u=ec(bs(c,t.thisType));l<u.length;l++){var _=u[l],d=i.get(_.escapedName);if(d){if(d.containingType!==t&&!gp(d.prop,_)){a=!1;var p=ba(d.containingType),f=ba(c),g=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,ha(_),p,f);g=e.chainDiagnosticMessages(g,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,ba(t),p,f),ln.add(e.createDiagnosticForNodeFromMessageChain(r,g))}}else i.set(_.escapedName,{prop:_,containingType:c})}return a}(i,t.name)){for(var o=0,s=Uo(i);o<s.length;o++)Fd(a,bs(s[o],i.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);uD(i)}}Pb(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),(function(t){e.isEntityNameExpression(t.expression)&&!e.isOptionalChain(t.expression)||Sn(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Jb(t)})),e.forEach(t.members,LD),r&&(Ib(t),ox(t))}(t);case 257:return function(t){VS(t),pD(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Gb(t),fD(t.typeParameters),137===t.type.kind?F.has(t.name.escapedText)&&1===e.length(t.typeParameters)||Sn(t.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(LD(t.type),ox(t))}(t);case 258:return function(t){if(r){VS(t),Cx(t,t.name),Gb(t),t.members.forEach(ED),xD(t);var n=ji(t);if(t===e.getDeclarationOfKind(n,t.kind)){if(n.declarations&&n.declarations.length>1){var i=e.isEnumConst(t);e.forEach(n.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==i&&Sn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(n.declarations,(function(t){if(258!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?Sn(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)}))}}}(t);case 259:return function(t){if(r){var n=e.isGlobalScopeAugmentation(t),i=8388608&t.flags;n&&!i&&Sn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(t);if(ND(t,a?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;VS(t)||i||10!==t.name.kind||pE(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&Cx(t,t.name),Gb(t);var o=ji(t);if(512&o.flags&&!i&&o.declarations&&o.declarations.length>1&&L(t,e.shouldPreserveConstEnums(V))){var s=function(t){var r=t.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if((255===a.kind||254===a.kind&&e.nodeIsPresent(a.body))&&!(8388608&a.flags))return a}}(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?Sn(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&&Sn(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,255);c&&(_=t,d=c,p=e.getEnclosingBlockScopeContainer(_),f=e.getEnclosingBlockScopeContainer(d),Jn(p)?Jn(f):!Jn(f)&&p===f)&&(jn(t).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(t)){if((n||33554432&ji(t).flags)&&t.body)for(var l=0,u=t.body.statements;l<u.length;l++)TD(u[l],n)}else Jn(t.parent)?n?Sn(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))&&Sn(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):Sn(t.name,n?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;t.body&&(LD(t.body),e.isGlobalScopeAugmentation(t)||ox(t))}(t);case 264:return function(t){if(!ND(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!VS(t)&&e.hasEffectiveModifiers(t)&&_E(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),CD(t))){var r=t.importClause;r&&!function(t){return!!(t.isTypeOnly&&t.name&&t.namedBindings)&&pE(t,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both)}(r)&&(r.name&&AD(r),r.namedBindings&&(266===r.namedBindings.kind?(AD(r.namedBindings),K!==e.ModuleKind.System&&K<e.ModuleKind.ES2015&&V.esModuleInterop&&jS(t,65536)):Ei(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,AD)))}}(t);case 263:return function(t){if(!ND(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(VS(t),e.isInternalModuleImportEqualsDeclaration(t)||CD(t)))if(AD(t),e.hasSyntacticModifier(t,1)&&hi(t),275!==t.moduleReference.kind){var r=fi(ji(t));if(r!==ke){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&Di(n,112575).flags||Sn(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&pD(t.name,e.Diagnostics.Import_name_cannot_be_0)}t.isTypeOnly&&pE(t,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(K>=e.ModuleKind.ES2015)||t.isTypeOnly||8388608&t.flags||pE(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 270:return function(t){if(!ND(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!VS(t)&&e.hasEffectiveModifiers(t)&&_E(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===U&&jS(t,2097152),function(t){var r;t.isTypeOnly&&271!==(null===(r=t.exportClause)||void 0===r?void 0:r.kind)&&pE(t,e.Diagnostics.Only_named_exports_may_use_export_type)}(t),!t.moduleSpecifier||CD(t)))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,PD);var r=260===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&260===t.parent.kind&&!t.moduleSpecifier&&8388608&t.flags;300===t.parent.kind||r||n||Sn(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=Ei(t,t.moduleSpecifier);i&&Fi(i)?Sn(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ha(i)):t.exportClause&&kD(t.exportClause),K!==e.ModuleKind.System&&K<e.ModuleKind.ES2015&&(t.exportClause?V.esModuleInterop&&jS(t,65536):jS(t,32768))}}(t);case 269:return function(t){if(!ND(t,t.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)){var r=300===t.parent.kind?t.parent:t.parent.parent;if(259!==r.kind||e.isAmbientModule(r)){if(!VS(t)&&e.hasEffectiveModifiers(t)&&_E(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),79===t.expression.kind){var n=t.expression,i=Di(n,67108863,!0,!0,t);if(i){pm(i,n);var a=2097152&i.flags?fi(i):i;(a===ke||111551&a.flags)&&lb(t.expression)}else lb(t.expression);e.getEmitDeclarations(V)&&Ia(t.expression,!0)}else lb(t.expression);ID(r),8388608&t.flags&&!e.isEntityNameExpression(t.expression)&&pE(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||8388608&t.flags||(K>=e.ModuleKind.ES2015?pE(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):K===e.ModuleKind.System&&pE(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?Sn(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Sn(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 234:case 251:return void gE(t);case 274:!function(e){nx(e)}(t)}}(t),_=i}}function MD(t){e.isInJSFile(t)||pE(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function RD(t){var r=jn(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||new e.Map;var n=I(t);r.deferredNodes.set(n,t)}}function BD(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end});var r=_;switch(_=t,E=0,t.kind){case 206:case 207:case 208:case 163:case 278:_h(t);break;case 211:case 212:case 167:case 166:!function(t){e.Debug.assert(167!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=el(t);if(Jv(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||Zc(Gc(t)),233===t.body.kind)LD(t.body);else{var i=kb(t.body),a=n&&cD(n,r);a&&wd(2==(3&r)?Hb(i,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}}(t);break;case 170:case 171:Mb(t);break;case 224:!function(t){e.forEach(t.members,LD),ox(t)}(t);break;case 277:!function(e){Ey(e)}(t);break;case 276:!function(e){Ey(e.openingElement),cy(e.closingElement.tagName)?py(e.closingElement):kb(e.closingElement.tagName),uy(e)}(t)}_=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function jD(r){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),function(r){var n=jn(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,V,t))return;!function(t){8388608&t.flags&&function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if((e.isDeclaration(i)||235===i.kind)&&fE(i))return!0}}(t)}(r),e.clear(nn),e.clear(an),e.clear(on),e.clear(sn),e.forEach(r.statements,LD),LD(r.endOfFileToken),function(e){var t=jn(e);t.deferredNodes&&t.deferredNodes.forEach(BD)}(r),e.isExternalOrCommonJsModule(r)&&ox(r),r.isDeclarationFile||!V.noUnusedLocals&&!V.noUnusedParameters||sx(VD(r),(function(t,r,n){!e.containsParseError(t)&&JD(r,!!(8388608&t.flags))&&ln.add(n)})),2===V.importsNotUsedAsValues&&!r.isDeclarationFile&&e.isExternalModule(r)&&function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];(FD(i)||wD(i))&&Sn(i,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}(r),e.isExternalOrCommonJsModule(r)&&ID(r),nn.length&&(e.forEach(nn,Dx),e.clear(nn)),an.length&&(e.forEach(an,Sx),e.clear(an)),on.length&&(e.forEach(on,Ex),e.clear(on)),sn.length&&(e.forEach(sn,Tx),e.clear(sn)),n.flags|=1}}(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function JD(t,r){if(r)return!1;switch(t){case 0:return!!V.noUnusedLocals;case 1:return!!V.noUnusedParameters;default:return e.Debug.assertNever(t)}}function VD(t){return Ir.get(t.path)||e.emptyArray}function UD(r,i){try{return n=i,function(r){if(KD(),r){var n=ln.getGlobalDiagnostics(),i=n.length;jD(r);var a=ln.getDiagnostics(r.fileName),o=ln.getGlobalDiagnostics();if(o!==n){var s=e.relativeComplement(n,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),jD),ln.getDiagnostics()}(r)}finally{n=void 0}}function KD(){if(!r)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function zD(e){switch(e.kind){case 161:case 255:case 256:case 257:case 258:case 340:case 333:case 334:return!0;case 265:return e.isTypeOnly;case 268:case 273:return e.parent.parent.isTypeOnly;default:return!1}}function GD(e){for(;159===e.parent.kind;)e=e.parent;return 176===e.parent.kind}function WD(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function qD(e,t){return!!WD(e,(function(e){return e===t}))}function HD(e){return void 0!==function(e){for(;159===e.parent.kind;)e=e.parent;return 263===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:269===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function YD(t){if(e.isDeclarationName(t))return ji(t.parent);if(e.isInJSFile(t)&&204===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)&&!e.isJSDocMemberName(t)){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return ji(t.parent);case 4:case 2:case 5:return ji(t.parent.parent)}}(t);if(r)return r}if(269===t.parent.kind&&e.isEntityNameExpression(t)){var n=Di(t,2998271,!0);if(n&&n!==ke)return n}else if(e.isEntityName(t)&&HD(t)){var i=e.getAncestor(t,263);return e.Debug.assert(void 0!==i),bi(t,!0)}if(e.isEntityName(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&198===r.kind&&r.qualifier===t)return r}(t);if(a){V_(a);var o=jn(t).resolvedSymbol;return o===ke?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(t);)t=t.parent;if(function(e){for(;204===e.parent.kind;)e=e.parent;return 226===e.parent.kind}(t)){var s=0;226===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?Di(t,s):void 0;if(c)return c}if(335===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(161===t.parent.kind&&339===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var l=e.getTypeParameterFromJsDoc(t.parent);return l&&l.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;var u=e.findAncestor(t,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));if(s=u?901119:111551,79===t.kind){if(e.isJSXTagName(t)&&cy(t)){var _=py(t.parent);return _===ke?void 0:_}var d=Di(t,s,!1,!u,e.getHostSignatureFromJSDoc(t));if(!d&&u){var p=e.findAncestor(t,e.or(e.isClassLike,e.isInterfaceDeclaration));if(p)return XD(t,ji(p))}return d}if(204===t.kind||159===t.kind){var f=jn(t);return f.resolvedSymbol?f.resolvedSymbol:(204===t.kind?jy(t,0):Jy(t,0),!f.resolvedSymbol&&u&&e.isQualifiedName(t)?XD(t):f.resolvedSymbol)}if(e.isJSDocMemberName(t))return XD(t)}else if(GD(t))return Di(t,s=176===t.parent.kind?788968:1920,!1,!0);return 175===t.parent.kind?Di(t,1):void 0}function XD(t,r){if(e.isEntityName(t)){var n=901119,i=Di(t,n,!1,!0,e.getHostSignatureFromJSDoc(t));if(!i&&e.isIdentifier(t)&&r&&(i=Bi(Vn(Oi(r),t.escapedText,n))),i)return i}var a=e.isIdentifier(t)?r:XD(t.left),o=e.isIdentifier(t)?t.escapedText:t.right.escapedText;if(a){var s=111551&a.flags&&Sc(Co(a),"prototype");return Sc(s?Co(s):es(a),o)}}function QD(t,r){if(300===t.kind)return e.isExternalModule(t)?Bi(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(16777216&t.flags)){if(R(t)){var a=ji(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?ay(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return ji(n.parent);if(79===t.kind){if(HD(t))return YD(t);if(201===n.kind&&199===i.kind&&t===n.propertyName){if(o=Sc($D(i),t.escapedText))return o}else if(e.isMetaProperty(n)){var o;if(o=Sc($D(n),t.escapedText))return o;if(103===n.keywordToken)return uv(n).symbol}}switch(t.kind){case 79:case 80:case 204:case 159:return YD(t);case 108:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=Gc(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return kb(t).symbol;case 190:return B_(t).symbol;case 106:return kb(t).symbol;case 133:var l=t.parent;return l&&169===l.kind?l.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(264===t.parent.kind||270===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return Ei(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return ji(n);case 8:var u=e.isElementAccessExpression(n)?n.argumentExpression===t?Eb(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?V_(i.objectType):void 0;return u&&Sc(u,e.escapeLeadingUnderscores(t.text));case 88:case 98:case 38:case 84:return ji(t.parent);case 198:return e.isLiteralImportTypeNode(t)?QD(t.argument.literal,r):void 0;case 93:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(t.parent)?lv(t.parent).symbol:void 0;case 229:return kb(t).symbol;default:return}}}function $D(t){if(e.isSourceFile(t)&&!e.isExternalModule(t))return Pe;if(16777216&t.flags)return Pe;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&Go(ji(i.class));if(e.isPartOfTypeNode(t)){var o=V_(t);return a?bs(o,a.thisType):o}if(e.isExpressionNode(t))return eS(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(Uo(a));return s?bs(s,a.thisType):Pe}if(zD(t))return es(n=ji(t));if(79===(r=t).kind&&zD(r.parent)&&e.getNameOfDeclaration(r.parent)===r)return(n=QD(t))?es(n):Pe;if(e.isDeclaration(t))return Co(n=ji(t));if(R(t))return(n=QD(t))?Co(n):Pe;if(e.isBindingPattern(t))return Za(t.parent,!0)||Pe;if(HD(t)&&(n=QD(t))){var c=es(n);return c!==Pe?c:Co(n)}return e.isMetaProperty(t.parent)&&t.parent.keywordToken===t.kind?lv(t.parent):Pe}function ZD(t){if(e.Debug.assert(203===t.kind||202===t.kind),242===t.parent.kind)return tb(t,Rx(t.parent)||Pe);if(219===t.parent.kind)return tb(t,Eb(t.parent.right)||Pe);if(291===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return Zv(r,ZD(r)||Pe,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=ZD(n)||Pe,a=Bx(65,i,Me,t.parent)||Pe;return eb(n,i,n.elements.indexOf(t),a)}function eS(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),w_(Eb(t))}function tS(t){var r=ji(t.parent);return e.isStatic(t)?Co(r):es(r)}function rS(t){var r=t.name;switch(r.kind){case 79:return I_(e.idText(r));case 8:case 10:return I_(r.text);case 160:var n=ry(r);return Yv(n,12288)?n:Ue;default:return e.Debug.fail("Unsupported property name.")}}function nS(t){t=pc(t);var r=e.createSymbolTable(ec(t)),n=Tc(t,0).length?At:Tc(t,1).length?Nt:void 0;return n&&e.forEach(ec(n),(function(e){r.has(e.escapedName)||r.set(e.escapedName,e)})),ea(r)}function iS(t){return e.typeHasCallOrConstructSignatures(t,_e)}function aS(t){if(e.isGeneratedIdentifier(t))return!1;var r=e.getParseTreeNode(t,e.isIdentifier);if(!r)return!1;var n=r.parent;return!(!n||(e.isPropertyAccessExpression(n)||e.isPropertyAssignment(n))&&n.name===r||PS(r)!==le)}function oS(t){var r=Ei(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=Fi(r),i=Bn(r=Ai(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(Li(r),(function(e){return(e=pi(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function sS(t,r){var n,i=e.getParseTreeNode(t,e.isIdentifier);if(i){var a=PS(i,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(i));if(a){if(1048576&a.flags){var o=Bi(a.exportSymbol);if(!r&&944&o.flags&&!(3&o.flags))return;a=o}var s=Ji(a);if(s){if(512&s.flags&&300===(null===(n=s.valueDeclaration)||void 0===n?void 0:n.kind)){var c=s.valueDeclaration;return c!==e.getSourceFileOfNode(i)?void 0:c}return e.findAncestor(i.parent,(function(t){return e.isModuleOrEnumDeclaration(t)&&ji(t)===s}))}}}}function cS(t){if(t.generatedImportReference)return t.generatedImportReference;var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=PS(r);if(di(n,111551)&&!yi(n))return ti(n)}}function lS(t){if(418&t.flags&&t.valueDeclaration&&!e.isSourceFile(t.valueDeclaration)){var r=Bn(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||function(t){return t.valueDeclaration&&e.isBindingElement(t.valueDeclaration)&&290===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=jn(t.valueDeclaration);if(zn(n.parent,t.escapedName,111551,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=233===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 uS(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=PS(r);if(n&&lS(n))return n.valueDeclaration}}}function _S(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=ji(r);if(n)return lS(n)}return!1}function dS(t){switch(t.kind){case 263:return fS(ji(t)||ke);case 265:case 266:case 268:case 273:var r=ji(t)||ke;return fS(r)&&!yi(r);case 270:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,dS));case 269:return!t.expression||79!==t.expression.kind||fS(ji(t)||ke)}return!1}function pS(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||300!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&fS(ji(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function fS(t){var r=fi(t);return r===ke||!!(111551&r.flags)&&(e.shouldPreserveConstEnums(V)||!gS(r))}function gS(e){return $v(e)||!!e.constEnumOnlyModule}function mS(t,r){if(ri(t)){var n=ji(t),i=n&&Bn(n);if(null==i?void 0:i.referenced)return!0;var a=Bn(n).target;if(a&&1&e.getEffectiveModifierFlags(t)&&111551&a.flags&&(e.shouldPreserveConstEnums(V)||!gS(a)))return!0}return!!r&&!!e.forEachChild(t,(function(e){return mS(e,r)}))}function yS(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=Hc(ji(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function hS(t){return!(!W||Jc(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function vS(t){return W&&Jc(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function bS(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=ji(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(Oi(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function xS(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=ji(r);return n&&ec(Co(n))||e.emptyArray}function DS(e){var t,r=e.id||0;return r<0||r>=Hr.length?0:(null===(t=Hr[r])||void 0===t?void 0:t.flags)||0}function SS(e){return xD(e.parent),jn(e).enumMemberValue}function ES(e){switch(e.kind){case 294:case 204:case 205:return!0}return!1}function TS(t){if(294===t.kind)return SS(t);var r=jn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return SS(n)}}function CS(e){return!!(524288&e.flags)&&Tc(e,0).length>0}function kS(t,r){var n,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=Di(e.getFirstIdentifier(a),111551,!0,!0,r);o=!!(null===(n=null==s?void 0:s.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=Di(a,111551,!0,!0,r),l=c&&2097152&c.flags?fi(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=Di(a,788968,!0,!1,r);if(l&&l===u){var _=Ql(!1);if(_&&l===_)return e.TypeReferenceSerializationKind.Promise;var d=Co(l);if(d&&Mo(d))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var p=es(u);return p===Pe?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&p.flags?e.TypeReferenceSerializationKind.ObjectType:Yv(p,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Yv(p,528)?e.TypeReferenceSerializationKind.BooleanType:Yv(p,296)?e.TypeReferenceSerializationKind.NumberLikeType:Yv(p,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Yv(p,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Bp(p)?e.TypeReferenceSerializationKind.ArrayLikeType:Yv(p,12288)?e.TypeReferenceSerializationKind.ESSymbolType:CS(p)?e.TypeReferenceSerializationKind.TypeWithCallSignature:vp(p)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function AS(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(129);var s=ji(o),c=!s||133120&s.flags?Pe:Op(Co(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Yp(c)),ie.typeToTypeNode(c,r,1024|n,i)}function NS(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(129);var o=Gc(a);return ie.typeToTypeNode(Zc(o),r,1024|n,i)}function FS(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(129);var o=pf(eS(a));return ie.typeToTypeNode(o,r,1024|n,i)}function wS(t){return ae.has(e.escapeLeadingUnderscores(t))}function PS(t,r){var n=jn(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Ba(a))}return zn(i,t.escapedText,3257279,void 0,void 0,!0)}function IS(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=PS(r);if(n)return Gi(n).valueDeclaration}}}function OS(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&P_(Co(ji(t)))}function LS(t,r){return function(t,r,n){var i=1024&t.flags?ie.symbolToExpression(t.symbol,111551,r,void 0,n):t===qe?e.factory.createTrue():t===Ge&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(Co(ji(t)),t,r)}function MS(t){return t?(bn(t),e.getSourceFileOfNode(t).localJsxFactory||gr):gr}function RS(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,U),r.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return e.parseIsolatedEntityName(V.jsxFragmentFactory,U)}function BS(t){var r=259===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=Ti(r,r,void 0);if(n)return e.getDeclarationOfKind(n,300)}function jS(t,r){if((o&r)!==r&&V.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,V)&&!(8388608&t.flags)){var i=(_=n,d=t,u||(u=Ci(_,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,d)||ke),u);if(i!==ke)for(var a=r&~o,s=1;s<=2097152;s<<=1)if(a&s){var c=JS(s),l=Vn(i.exports,e.escapeLeadingUnderscores(c),111551);l?524288&s?e.some(Hc(l),(function(e){return bv(e)>3}))||Sn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,4):1048576&s?e.some(Hc(l),(function(e){return bv(e)>4}))||Sn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,5):1024&s&&(e.some(Hc(l),(function(e){return bv(e)>2}))||Sn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,3)):Sn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c)}o|=r}}var _,d}function JS(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function VS(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 167!==t.kind||e.nodeIsPresent(t.body)?_E(t,e.Diagnostics.Decorators_are_not_valid_here):_E(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(170===t.kind||171===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return _E(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,s=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 170:case 171:case 169:case 165:case 164:case 167:case 166:case 174:case 259:case 264:case 263:case 270:case 269:case 211:case 212:case 162:return!1;default:if(260===t.parent.kind||300===t.parent.kind)return!1;switch(t.kind){case 254:return US(t,130);case 255:case 178:return US(t,126);case 256:case 235:case 257:case 168:return!0;case 258:return US(t,85);default:e.Debug.fail()}}}(t)?_E(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==s)return s;for(var c=0,l=0,u=t.modifiers;l<u.length;l++){var _=u[l];if(143!==_.kind){if(164===t.kind||166===t.kind)return pE(_,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(_.kind));if(174===t.kind&&(124!==_.kind||!e.isClassLike(t.parent)))return pE(_,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(_.kind))}switch(_.kind){case 85:if(258!==t.kind)return pE(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 157:if(16384&c)return pE(_,e.Diagnostics._0_modifier_already_seen,"override");if(2&c)return pE(_,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(256&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");c|=16384,o=_;break;case 123:case 122:case 121:var d=ka(e.modifierToFlag(_.kind));if(28&c)return pE(_,e.Diagnostics.Accessibility_modifier_already_seen);if(16384&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"override");if(32&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"static");if(64&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"readonly");if(256&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"async");if(260===t.parent.kind||300===t.parent.kind)return pE(_,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(128&c)return 121===_.kind?pE(_,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(t))return pE(_,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);c|=e.modifierToFlag(_.kind);break;case 124:if(32&c)return pE(_,e.Diagnostics._0_modifier_already_seen,"static");if(64&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(260===t.parent.kind||300===t.parent.kind)return pE(_,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(162===t.kind)return pE(_,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&c)return pE(_,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");c|=32,r=_;break;case 143:if(64&c)return pE(_,e.Diagnostics._0_modifier_already_seen,"readonly");if(165!==t.kind&&164!==t.kind&&174!==t.kind&&162!==t.kind)return pE(_,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);c|=64,a=_;break;case 93:if(1&c)return pE(_,e.Diagnostics._0_modifier_already_seen,"export");if(2&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(t.parent))return pE(_,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(162===t.kind)return pE(_,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");c|=1;break;case 88:var p=300===t.parent.kind?t.parent:t.parent.parent;if(259===p.kind&&!e.isAmbientModule(p))return pE(_,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(1&c))return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");c|=512;break;case 134:if(2&c)return pE(_,e.Diagnostics._0_modifier_already_seen,"declare");if(256&c)return pE(_,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&c)return pE(_,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(t.parent)&&!e.isPropertyDeclaration(t))return pE(_,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(162===t.kind)return pE(_,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(8388608&t.parent.flags&&260===t.parent.kind)return pE(_,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(t))return pE(_,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");c|=2,n=_;break;case 126:if(128&c)return pE(_,e.Diagnostics._0_modifier_already_seen,"abstract");if(255!==t.kind&&178!==t.kind){if(167!==t.kind&&165!==t.kind&&170!==t.kind&&171!==t.kind)return pE(_,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(255!==t.parent.kind||!e.hasSyntacticModifier(t.parent,128))return pE(_,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&c)return pE(_,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&c)return pE(_,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(256&c&&i)return pE(i,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&c)return pE(_,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(t)&&80===t.name.kind)return pE(_,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");c|=128;break;case 130:if(256&c)return pE(_,e.Diagnostics._0_modifier_already_seen,"async");if(2&c||8388608&t.parent.flags)return pE(_,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(162===t.kind)return pE(_,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(128&c)return pE(_,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");c|=256,i=_}}return 169===t.kind?32&c?pE(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&c?pE(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):16384&c?pE(o,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):256&c?pE(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&c)&&pE(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):(264===t.kind||263===t.kind)&&2&c?pE(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):162===t.kind&&16476&c&&e.isBindingPattern(t.name)?pE(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):162===t.kind&&16476&c&&t.dotDotDotToken?pE(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(256&c)&&function(t,r){switch(t.kind){case 167:case 254:case 211:case 212:return!1}return pE(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(t,i)}(t)}function US(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function KS(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&dE(t[0],t.end-",".length,",".length,r)}function zS(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return dE(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function GS(t){var r=e.getSourceFileOfNode(t);return VS(t)||zS(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 pE(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(8388608&a.flags||KS(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.questionToken)return pE(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return pE(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(Jc(a)){if(r=!0,a.questionToken&&a.initializer)return pE(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return pE(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;return e.getLineAndCharacterOfPosition(r,n.pos).line!==e.getLineAndCharacterOfPosition(r,n.end).line&&pE(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&function(t){if(U>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(o=t.parameters,e.filter(o,(function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})));if(e.length(n)){e.forEach(n,(function(t){e.addRelatedInfo(Sn(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))}));var a=n.map((function(t,r){return 0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,i([Sn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}var o;return!1}(t)}function WS(t,r){return KS(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return dE(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function qS(t){return function(t){if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(225===i.kind)return dE(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}(t)}function HS(t){var r=t.types;if(KS(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return dE(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,YS)}function YS(e){return WS(e,e.typeArguments)}function XS(t){if(160!==t.kind)return!1;var r=t;return 219===r.expression.kind&&27===r.expression.operatorToken.kind&&pE(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function QS(t){if(t.asteriskToken){if(e.Debug.assert(254===t.kind||211===t.kind||167===t.kind),8388608&t.flags)return pE(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return pE(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function $S(e,t){return!!e&&pE(e,t)}function ZS(e,t){return!!e&&pE(e,t)}function eE(t){if(gE(t))return!0;if(242===t.kind&&t.awaitModifier&&!(32768&t.flags)){var r=e.getSourceFileOfNode(t);if(e.isInTopLevelContext(t))uE(r)||(e.isEffectiveExternalModule(r,V)||ln.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),(K!==e.ModuleKind.ESNext&&K!==e.ModuleKind.System||U<4)&&ln.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher)));else if(!uE(r)){var n=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(t);if(i&&169!==i.kind){e.Debug.assert(0==(2&e.getFunctionFlags(i)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(n,a)}return ln.add(n),!0}return!1}if(e.isForOfStatement(t)&&!(32768&t.flags)&&e.isIdentifier(t.initializer)&&"async"===t.initializer.escapedText)return pE(t.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(253===t.initializer.kind){var o=t.initializer;if(!cE(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1)return n=241===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,_E(o.declarations[1],n);var c=s[0];if(c.initializer){n=241===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 pE(c.name,n)}if(c.type)return pE(c,n=241===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 tE(t){if(t.parameters.length===(170===t.kind?1:2))return e.getThisParameter(t)}function rE(t,r){if(function(t){return e.isDynamicName(t)&&!_s(t)}(t))return pE(t,r)}function nE(t){if(GS(t))return!0;if(167===t.kind){if(203===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||130!==e.first(t.modifiers).kind))return _E(t,e.Diagnostics.Modifiers_cannot_appear_here);if($S(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(ZS(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return dE(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(QS(t))return!0}if(e.isClassLike(t.parent)){if(U<2&&e.isPrivateIdentifier(t.name))return pE(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(8388608&t.flags)return rE(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(167===t.kind&&!t.body)return rE(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(256===t.parent.kind)return rE(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(180===t.parent.kind)return rE(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 iE(t){return e.isStringOrNumericLiteralLike(t)||217===t.kind&&40===t.operator&&8===t.operand.kind}function aE(t){var r,n=t.initializer;if(n){var i=!(iE(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&iE(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&lb(t).flags)}(n)||110===n.kind||95===n.kind||(r=n,9===r.kind||217===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return pE(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return pE(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return pE(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function oE(t){if(79===t.kind){if("__esModule"===e.idText(t))return a=t,o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!uE(e.getSourceFileOfNode(a))&&(xn("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];if(!e.isOmittedExpression(i))return oE(i.name)}var a,o;return!1}function sE(t){if(79===t.kind){if(119===t.originalKeywordKind)return pE(t,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];e.isOmittedExpression(i)||sE(i.name)}return!1}function cE(t){var r=t.declarations;return!!KS(t.declarations)||!t.declarations.length&&dE(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function lE(e){switch(e.kind){case 237:case 238:case 239:case 246:case 240:case 241:case 242:return!1;case 248:return lE(e.parent)}return!0}function uE(e){return e.parseDiagnostics.length>0}function _E(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!uE(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return ln.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function dE(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!uE(c)&&(ln.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function pE(t,r,n,i,a){return!uE(e.getSourceFileOfNode(t))&&(ln.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function fE(t){return 256!==t.kind&&257!==t.kind&&264!==t.kind&&263!==t.kind&&270!==t.kind&&269!==t.kind&&262!==t.kind&&!e.hasSyntacticModifier(t,515)&&_E(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function gE(t){if(8388608&t.flags){if(!jn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return jn(t).hasReportedStatementInAmbientContext=_E(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(233===t.parent.kind||260===t.parent.kind||300===t.parent.kind){var r=jn(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=_E(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function mE(t){if(32&t.numericLiteralFlags){var r=void 0;if(U>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,194)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,294)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return pE(n?t.parent:t,r,i)}}return function(t){if(!(16&t.numericLiteralFlags||t.text.length<=15||-1!==t.text.indexOf("."))){var r=+e.getTextOfNode(t);r<=Math.pow(2,53)-1&&r+1>r||En(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}(t),!1}function yE(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=cg(r,t);if(a)return a;var o=ec(t);if(o){var s=ag(o,r);if(s)return ep(r,e.map(s,(function(e){return[function(){return Co(e)},e.escapedName]})),n,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(N||(N={})),e.signatureHasRestParameter=j,e.signatureHasLiteralTypes=J}(u||(u={})),function(e){function t(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,n),a):void 0}function r(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s,c=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var l=-1,u=-1;(i>0||a<c)&&(o=[],s=t.hasTrailingComma&&i+a===c);for(var _=0;_<a;_++){var d=t[_+i],p=void 0!==d?r(d):void 0;if((void 0!==o||void 0===p||p!==d)&&(void 0===o&&(o=t.slice(0,_),s=t.hasTrailingComma,l=t.pos,u=t.end),p))if(e.isArray(p))for(var f=0,g=p;f<g.length;f++){var m=g[f];e.Debug.assertNode(m,n),o.push(m)}else e.Debug.assertNode(p,n),o.push(p)}if(o){var y=e.factory.createNodeArray(o,s);return e.setTextRangePosEnd(y,l,u),y}return t}function n(t,n,i,a,o,s){return void 0===s&&(s=r),i.startLexicalEnvironment(),t=s(t,n,e.isStatement,a),o&&(t=i.factory.ensureUseStrict(t)),e.factory.mergeLexicalEnvironment(t,i.endLexicalEnvironment())}function i(t,n,i,o){var s;return void 0===o&&(o=r),i.startLexicalEnvironment(),t&&(i.setLexicalEnvironmentFlags(1,!0),s=o(t,n,e.isParameterDeclaration),2&i.getLexicalEnvironmentFlags()&&e.getEmitScriptTarget(i.getCompilerOptions())>=2&&(s=function(t,r){for(var n,i=0;i<t.length;i++){var o=t[i],s=a(o,r);(n||s!==o)&&(n||(n=t.slice(0,i)),n[i]=s)}return n?e.setTextRange(r.factory.createNodeArray(n,t.hasTrailingComma),t):t}(s,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),s}function a(t,r){return t.dotDotDotToken?t:e.isBindingPattern(t.name)?function(e,t){var r=t.factory;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(t,r):t.initializer?function(t,r,n,i){var a=i.factory;return i.addInitializationStatement(a.createIfStatement(a.createTypeCheck(a.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(a.createBlock([a.createExpressionStatement(e.setEmitFlags(e.setTextRange(a.createAssignment(e.setEmitFlags(a.cloneNode(r),48),e.setEmitFlags(n,1584|e.getEmitFlags(n))),t),1536))]),t),1953))),a.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,void 0)}(t,t.name,t.initializer,r):t}function o(r,n,i,a){void 0===a&&(a=t),i.resumeLexicalEnvironment();var o=a(r,n,e.isConciseBody),s=i.endLexicalEnvironment();if(e.some(s)){if(!o)return i.factory.createBlock(s);var c=i.factory.converters.convertToFunctionBlock(o),l=e.factory.mergeLexicalEnvironment(c.statements,s);return i.factory.updateBlock(c,l)}return o}function s(r,n,i){i.startBlockScope();var a=t(r,n,e.isStatement,i.factory.liftToBlock),o=i.endBlockScope();return e.some(o)?e.isBlock(a)?(o.push.apply(o,a.statements),i.factory.updateBlock(a,o)):(o.push(a),i.factory.createBlock(o)):a}function c(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=r,e.visitLexicalEnvironment=n,e.visitParameterList=i,e.visitFunctionBody=o,e.visitIterationBody=s,e.visitEachChild=function(a,c,l,u,_,d){if(void 0===u&&(u=r),void 0===d&&(d=t),void 0!==a){var p=a.kind;if(p>0&&p<=158||190===p)return a;var f=l.factory;switch(p){case 79:return e.Debug.type(a),f.updateIdentifier(a,u(a.typeArguments,c,e.isTypeNodeOrTypeParameterDeclaration));case 159:return e.Debug.type(a),f.updateQualifiedName(a,d(a.left,c,e.isEntityName),d(a.right,c,e.isIdentifier));case 160:return e.Debug.type(a),f.updateComputedPropertyName(a,d(a.expression,c,e.isExpression));case 161:return e.Debug.type(a),f.updateTypeParameterDeclaration(a,d(a.name,c,e.isIdentifier),d(a.constraint,c,e.isTypeNode),d(a.default,c,e.isTypeNode));case 162:return e.Debug.type(a),f.updateParameterDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.dotDotDotToken,_,e.isDotDotDotToken),d(a.name,c,e.isBindingName),d(a.questionToken,_,e.isQuestionToken),d(a.type,c,e.isTypeNode),d(a.initializer,c,e.isExpression));case 163:return e.Debug.type(a),f.updateDecorator(a,d(a.expression,c,e.isExpression));case 164:return e.Debug.type(a),f.updatePropertySignature(a,u(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),d(a.questionToken,_,e.isToken),d(a.type,c,e.isTypeNode));case 165:return e.Debug.type(a),f.updatePropertyDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),d(a.questionToken||a.exclamationToken,_,e.isQuestionOrExclamationToken),d(a.type,c,e.isTypeNode),d(a.initializer,c,e.isExpression));case 166:return e.Debug.type(a),f.updateMethodSignature(a,u(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),d(a.questionToken,_,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 167:return e.Debug.type(a),f.updateMethodDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.asteriskToken,_,e.isAsteriskToken),d(a.name,c,e.isPropertyName),d(a.questionToken,_,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),d(a.type,c,e.isTypeNode),o(a.body,c,l,d));case 169:return e.Debug.type(a),f.updateConstructorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),i(a.parameters,c,l,u),o(a.body,c,l,d));case 170:return e.Debug.type(a),f.updateGetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),d(a.type,c,e.isTypeNode),o(a.body,c,l,d));case 171:return e.Debug.type(a),f.updateSetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),o(a.body,c,l,d));case 168:return e.Debug.type(a),l.startLexicalEnvironment(),l.suspendLexicalEnvironment(),f.updateClassStaticBlockDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),o(a.body,c,l,d));case 172:return e.Debug.type(a),f.updateCallSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 173:return e.Debug.type(a),f.updateConstructSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 174:return e.Debug.type(a),f.updateIndexSignature(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),u(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 175:return e.Debug.type(a),f.updateTypePredicateNode(a,d(a.assertsModifier,c,e.isAssertsKeyword),d(a.parameterName,c,e.isIdentifierOrThisTypeNode),d(a.type,c,e.isTypeNode));case 176:return e.Debug.type(a),f.updateTypeReferenceNode(a,d(a.typeName,c,e.isEntityName),u(a.typeArguments,c,e.isTypeNode));case 177:return e.Debug.type(a),f.updateFunctionTypeNode(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 178:return e.Debug.type(a),f.updateConstructorTypeNode(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 179:return e.Debug.type(a),f.updateTypeQueryNode(a,d(a.exprName,c,e.isEntityName));case 180:return e.Debug.type(a),f.updateTypeLiteralNode(a,u(a.members,c,e.isTypeElement));case 181:return e.Debug.type(a),f.updateArrayTypeNode(a,d(a.elementType,c,e.isTypeNode));case 182:return e.Debug.type(a),f.updateTupleTypeNode(a,u(a.elements,c,e.isTypeNode));case 183:return e.Debug.type(a),f.updateOptionalTypeNode(a,d(a.type,c,e.isTypeNode));case 184:return e.Debug.type(a),f.updateRestTypeNode(a,d(a.type,c,e.isTypeNode));case 185:return e.Debug.type(a),f.updateUnionTypeNode(a,u(a.types,c,e.isTypeNode));case 186:return e.Debug.type(a),f.updateIntersectionTypeNode(a,u(a.types,c,e.isTypeNode));case 187:return e.Debug.type(a),f.updateConditionalTypeNode(a,d(a.checkType,c,e.isTypeNode),d(a.extendsType,c,e.isTypeNode),d(a.trueType,c,e.isTypeNode),d(a.falseType,c,e.isTypeNode));case 188:return e.Debug.type(a),f.updateInferTypeNode(a,d(a.typeParameter,c,e.isTypeParameterDeclaration));case 198:return e.Debug.type(a),f.updateImportTypeNode(a,d(a.argument,c,e.isTypeNode),d(a.qualifier,c,e.isEntityName),r(a.typeArguments,c,e.isTypeNode),a.isTypeOf);case 195:return e.Debug.type(a),f.updateNamedTupleMember(a,t(a.dotDotDotToken,c,e.isDotDotDotToken),t(a.name,c,e.isIdentifier),t(a.questionToken,c,e.isQuestionToken),t(a.type,c,e.isTypeNode));case 189:return e.Debug.type(a),f.updateParenthesizedType(a,d(a.type,c,e.isTypeNode));case 191:return e.Debug.type(a),f.updateTypeOperatorNode(a,d(a.type,c,e.isTypeNode));case 192:return e.Debug.type(a),f.updateIndexedAccessTypeNode(a,d(a.objectType,c,e.isTypeNode),d(a.indexType,c,e.isTypeNode));case 193:return e.Debug.type(a),f.updateMappedTypeNode(a,d(a.readonlyToken,_,e.isReadonlyKeywordOrPlusOrMinusToken),d(a.typeParameter,c,e.isTypeParameterDeclaration),d(a.nameType,c,e.isTypeNode),d(a.questionToken,_,e.isQuestionOrPlusOrMinusToken),d(a.type,c,e.isTypeNode));case 194:return e.Debug.type(a),f.updateLiteralTypeNode(a,d(a.literal,c,e.isExpression));case 196:return e.Debug.type(a),f.updateTemplateLiteralType(a,d(a.head,c,e.isTemplateHead),u(a.templateSpans,c,e.isTemplateLiteralTypeSpan));case 197:return e.Debug.type(a),f.updateTemplateLiteralTypeSpan(a,d(a.type,c,e.isTypeNode),d(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 199:return e.Debug.type(a),f.updateObjectBindingPattern(a,u(a.elements,c,e.isBindingElement));case 200:return e.Debug.type(a),f.updateArrayBindingPattern(a,u(a.elements,c,e.isArrayBindingElement));case 201:return e.Debug.type(a),f.updateBindingElement(a,d(a.dotDotDotToken,_,e.isDotDotDotToken),d(a.propertyName,c,e.isPropertyName),d(a.name,c,e.isBindingName),d(a.initializer,c,e.isExpression));case 202:return e.Debug.type(a),f.updateArrayLiteralExpression(a,u(a.elements,c,e.isExpression));case 203:return e.Debug.type(a),f.updateObjectLiteralExpression(a,u(a.properties,c,e.isObjectLiteralElementLike));case 204:return 32&a.flags?(e.Debug.type(a),f.updatePropertyAccessChain(a,d(a.expression,c,e.isExpression),d(a.questionDotToken,_,e.isQuestionDotToken),d(a.name,c,e.isMemberName))):(e.Debug.type(a),f.updatePropertyAccessExpression(a,d(a.expression,c,e.isExpression),d(a.name,c,e.isMemberName)));case 205:return 32&a.flags?(e.Debug.type(a),f.updateElementAccessChain(a,d(a.expression,c,e.isExpression),d(a.questionDotToken,_,e.isQuestionDotToken),d(a.argumentExpression,c,e.isExpression))):(e.Debug.type(a),f.updateElementAccessExpression(a,d(a.expression,c,e.isExpression),d(a.argumentExpression,c,e.isExpression)));case 206:return 32&a.flags?(e.Debug.type(a),f.updateCallChain(a,d(a.expression,c,e.isExpression),d(a.questionDotToken,_,e.isQuestionDotToken),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression))):(e.Debug.type(a),f.updateCallExpression(a,d(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression)));case 207:return e.Debug.type(a),f.updateNewExpression(a,d(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression));case 208:return e.Debug.type(a),f.updateTaggedTemplateExpression(a,d(a.tag,c,e.isExpression),r(a.typeArguments,c,e.isTypeNode),d(a.template,c,e.isTemplateLiteral));case 209:return e.Debug.type(a),f.updateTypeAssertion(a,d(a.type,c,e.isTypeNode),d(a.expression,c,e.isExpression));case 210:return e.Debug.type(a),f.updateParenthesizedExpression(a,d(a.expression,c,e.isExpression));case 211:return e.Debug.type(a),f.updateFunctionExpression(a,u(a.modifiers,c,e.isModifier),d(a.asteriskToken,_,e.isAsteriskToken),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),d(a.type,c,e.isTypeNode),o(a.body,c,l,d));case 212:return e.Debug.type(a),f.updateArrowFunction(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),d(a.type,c,e.isTypeNode),d(a.equalsGreaterThanToken,_,e.isEqualsGreaterThanToken),o(a.body,c,l,d));case 213:return e.Debug.type(a),f.updateDeleteExpression(a,d(a.expression,c,e.isExpression));case 214:return e.Debug.type(a),f.updateTypeOfExpression(a,d(a.expression,c,e.isExpression));case 215:return e.Debug.type(a),f.updateVoidExpression(a,d(a.expression,c,e.isExpression));case 216:return e.Debug.type(a),f.updateAwaitExpression(a,d(a.expression,c,e.isExpression));case 217:return e.Debug.type(a),f.updatePrefixUnaryExpression(a,d(a.operand,c,e.isExpression));case 218:return e.Debug.type(a),f.updatePostfixUnaryExpression(a,d(a.operand,c,e.isExpression));case 219:return e.Debug.type(a),f.updateBinaryExpression(a,d(a.left,c,e.isExpression),d(a.operatorToken,_,e.isBinaryOperatorToken),d(a.right,c,e.isExpression));case 220:return e.Debug.type(a),f.updateConditionalExpression(a,d(a.condition,c,e.isExpression),d(a.questionToken,_,e.isQuestionToken),d(a.whenTrue,c,e.isExpression),d(a.colonToken,_,e.isColonToken),d(a.whenFalse,c,e.isExpression));case 221:return e.Debug.type(a),f.updateTemplateExpression(a,d(a.head,c,e.isTemplateHead),u(a.templateSpans,c,e.isTemplateSpan));case 222:return e.Debug.type(a),f.updateYieldExpression(a,d(a.asteriskToken,_,e.isAsteriskToken),d(a.expression,c,e.isExpression));case 223:return e.Debug.type(a),f.updateSpreadElement(a,d(a.expression,c,e.isExpression));case 224:return e.Debug.type(a),f.updateClassExpression(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 226:return e.Debug.type(a),f.updateExpressionWithTypeArguments(a,d(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode));case 227:return e.Debug.type(a),f.updateAsExpression(a,d(a.expression,c,e.isExpression),d(a.type,c,e.isTypeNode));case 228:return 32&a.flags?(e.Debug.type(a),f.updateNonNullChain(a,d(a.expression,c,e.isExpression))):(e.Debug.type(a),f.updateNonNullExpression(a,d(a.expression,c,e.isExpression)));case 229:return e.Debug.type(a),f.updateMetaProperty(a,d(a.name,c,e.isIdentifier));case 231:return e.Debug.type(a),f.updateTemplateSpan(a,d(a.expression,c,e.isExpression),d(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 233:return e.Debug.type(a),f.updateBlock(a,u(a.statements,c,e.isStatement));case 235:return e.Debug.type(a),f.updateVariableStatement(a,u(a.modifiers,c,e.isModifier),d(a.declarationList,c,e.isVariableDeclarationList));case 236:return e.Debug.type(a),f.updateExpressionStatement(a,d(a.expression,c,e.isExpression));case 237:return e.Debug.type(a),f.updateIfStatement(a,d(a.expression,c,e.isExpression),d(a.thenStatement,c,e.isStatement,f.liftToBlock),d(a.elseStatement,c,e.isStatement,f.liftToBlock));case 238:return e.Debug.type(a),f.updateDoStatement(a,s(a.statement,c,l),d(a.expression,c,e.isExpression));case 239:return e.Debug.type(a),f.updateWhileStatement(a,d(a.expression,c,e.isExpression),s(a.statement,c,l));case 240:return e.Debug.type(a),f.updateForStatement(a,d(a.initializer,c,e.isForInitializer),d(a.condition,c,e.isExpression),d(a.incrementor,c,e.isExpression),s(a.statement,c,l));case 241:return e.Debug.type(a),f.updateForInStatement(a,d(a.initializer,c,e.isForInitializer),d(a.expression,c,e.isExpression),s(a.statement,c,l));case 242:return e.Debug.type(a),f.updateForOfStatement(a,d(a.awaitModifier,_,e.isAwaitKeyword),d(a.initializer,c,e.isForInitializer),d(a.expression,c,e.isExpression),s(a.statement,c,l));case 243:return e.Debug.type(a),f.updateContinueStatement(a,d(a.label,c,e.isIdentifier));case 244:return e.Debug.type(a),f.updateBreakStatement(a,d(a.label,c,e.isIdentifier));case 245:return e.Debug.type(a),f.updateReturnStatement(a,d(a.expression,c,e.isExpression));case 246:return e.Debug.type(a),f.updateWithStatement(a,d(a.expression,c,e.isExpression),d(a.statement,c,e.isStatement,f.liftToBlock));case 247:return e.Debug.type(a),f.updateSwitchStatement(a,d(a.expression,c,e.isExpression),d(a.caseBlock,c,e.isCaseBlock));case 248:return e.Debug.type(a),f.updateLabeledStatement(a,d(a.label,c,e.isIdentifier),d(a.statement,c,e.isStatement,f.liftToBlock));case 249:return e.Debug.type(a),f.updateThrowStatement(a,d(a.expression,c,e.isExpression));case 250:return e.Debug.type(a),f.updateTryStatement(a,d(a.tryBlock,c,e.isBlock),d(a.catchClause,c,e.isCatchClause),d(a.finallyBlock,c,e.isBlock));case 252:return e.Debug.type(a),f.updateVariableDeclaration(a,d(a.name,c,e.isBindingName),d(a.exclamationToken,_,e.isExclamationToken),d(a.type,c,e.isTypeNode),d(a.initializer,c,e.isExpression));case 253:return e.Debug.type(a),f.updateVariableDeclarationList(a,u(a.declarations,c,e.isVariableDeclaration));case 254:return e.Debug.type(a),f.updateFunctionDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.asteriskToken,_,e.isAsteriskToken),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),d(a.type,c,e.isTypeNode),o(a.body,c,l,d));case 255:return e.Debug.type(a),f.updateClassDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 256:return e.Debug.type(a),f.updateInterfaceDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isTypeElement));case 257:return e.Debug.type(a),f.updateTypeAliasDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),d(a.type,c,e.isTypeNode));case 258:return e.Debug.type(a),f.updateEnumDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),u(a.members,c,e.isEnumMember));case 259:return e.Debug.type(a),f.updateModuleDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isModuleName),d(a.body,c,e.isModuleBody));case 260:return e.Debug.type(a),f.updateModuleBlock(a,u(a.statements,c,e.isStatement));case 261:return e.Debug.type(a),f.updateCaseBlock(a,u(a.clauses,c,e.isCaseOrDefaultClause));case 262:return e.Debug.type(a),f.updateNamespaceExportDeclaration(a,d(a.name,c,e.isIdentifier));case 263:return e.Debug.type(a),f.updateImportEqualsDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),a.isTypeOnly,d(a.name,c,e.isIdentifier),d(a.moduleReference,c,e.isModuleReference));case 264:return e.Debug.type(a),f.updateImportDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.importClause,c,e.isImportClause),d(a.moduleSpecifier,c,e.isExpression));case 265:return e.Debug.type(a),f.updateImportClause(a,a.isTypeOnly,d(a.name,c,e.isIdentifier),d(a.namedBindings,c,e.isNamedImportBindings));case 266:return e.Debug.type(a),f.updateNamespaceImport(a,d(a.name,c,e.isIdentifier));case 272:return e.Debug.type(a),f.updateNamespaceExport(a,d(a.name,c,e.isIdentifier));case 267:return e.Debug.type(a),f.updateNamedImports(a,u(a.elements,c,e.isImportSpecifier));case 268:return e.Debug.type(a),f.updateImportSpecifier(a,d(a.propertyName,c,e.isIdentifier),d(a.name,c,e.isIdentifier));case 269:return e.Debug.type(a),f.updateExportAssignment(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.expression,c,e.isExpression));case 270:return e.Debug.type(a),f.updateExportDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),a.isTypeOnly,d(a.exportClause,c,e.isNamedExportBindings),d(a.moduleSpecifier,c,e.isExpression));case 271:return e.Debug.type(a),f.updateNamedExports(a,u(a.elements,c,e.isExportSpecifier));case 273:return e.Debug.type(a),f.updateExportSpecifier(a,d(a.propertyName,c,e.isIdentifier),d(a.name,c,e.isIdentifier));case 275:return e.Debug.type(a),f.updateExternalModuleReference(a,d(a.expression,c,e.isExpression));case 276:return e.Debug.type(a),f.updateJsxElement(a,d(a.openingElement,c,e.isJsxOpeningElement),u(a.children,c,e.isJsxChild),d(a.closingElement,c,e.isJsxClosingElement));case 277:return e.Debug.type(a),f.updateJsxSelfClosingElement(a,d(a.tagName,c,e.isJsxTagNameExpression),u(a.typeArguments,c,e.isTypeNode),d(a.attributes,c,e.isJsxAttributes));case 278:return e.Debug.type(a),f.updateJsxOpeningElement(a,d(a.tagName,c,e.isJsxTagNameExpression),u(a.typeArguments,c,e.isTypeNode),d(a.attributes,c,e.isJsxAttributes));case 279:return e.Debug.type(a),f.updateJsxClosingElement(a,d(a.tagName,c,e.isJsxTagNameExpression));case 280:return e.Debug.type(a),f.updateJsxFragment(a,d(a.openingFragment,c,e.isJsxOpeningFragment),u(a.children,c,e.isJsxChild),d(a.closingFragment,c,e.isJsxClosingFragment));case 283:return e.Debug.type(a),f.updateJsxAttribute(a,d(a.name,c,e.isIdentifier),d(a.initializer,c,e.isStringLiteralOrJsxExpression));case 284:return e.Debug.type(a),f.updateJsxAttributes(a,u(a.properties,c,e.isJsxAttributeLike));case 285:return e.Debug.type(a),f.updateJsxSpreadAttribute(a,d(a.expression,c,e.isExpression));case 286:return e.Debug.type(a),f.updateJsxExpression(a,d(a.expression,c,e.isExpression));case 287:return e.Debug.type(a),f.updateCaseClause(a,d(a.expression,c,e.isExpression),u(a.statements,c,e.isStatement));case 288:return e.Debug.type(a),f.updateDefaultClause(a,u(a.statements,c,e.isStatement));case 289:return e.Debug.type(a),f.updateHeritageClause(a,u(a.types,c,e.isExpressionWithTypeArguments));case 290:return e.Debug.type(a),f.updateCatchClause(a,d(a.variableDeclaration,c,e.isVariableDeclaration),d(a.block,c,e.isBlock));case 291:return e.Debug.type(a),f.updatePropertyAssignment(a,d(a.name,c,e.isPropertyName),d(a.initializer,c,e.isExpression));case 292:return e.Debug.type(a),f.updateShorthandPropertyAssignment(a,d(a.name,c,e.isIdentifier),d(a.objectAssignmentInitializer,c,e.isExpression));case 293:return e.Debug.type(a),f.updateSpreadAssignment(a,d(a.expression,c,e.isExpression));case 294:return e.Debug.type(a),f.updateEnumMember(a,d(a.name,c,e.isPropertyName),d(a.initializer,c,e.isExpression));case 300:return e.Debug.type(a),f.updateSourceFile(a,n(a.statements,c,l));case 345:return e.Debug.type(a),f.updatePartiallyEmittedExpression(a,d(a.expression,c,e.isExpression));case 346:return e.Debug.type(a),f.updateCommaListExpression(a,u(a.elements,c,e.isExpression));default:return a}}}}(u||(u={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=l.enter,_=l.exit,d=[],p=[],f=new e.Map,g=[],m=[],y="",h=0,v=0,b=0,x=0,D=0,S=0,E=!1,T=0,C=0,k=0,A=0,N=0,F=0,w=!1,P=!1,I=!1;return{getSources:function(){return d},addSource:O,setSourceContent:L,addName:M,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=T,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),u();for(var c,l=[],d=a(n.mappings),p=d.next();!p.done;p=d.next()){var f=p.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine<o.line||o.line===f.generatedLine&&f.generatedCharacter<o.character)){var g=void 0,m=void 0,y=void 0,h=void 0;if(void 0!==f.sourceIndex){if(void 0===(g=l[f.sourceIndex])){var v=n.sources[f.sourceIndex],b=n.sourceRoot?e.combinePaths(n.sourceRoot,v):v,x=e.combinePaths(e.getDirectoryPath(i),b);l[f.sourceIndex]=g=O(x),n.sourcesContent&&"string"==typeof n.sourcesContent[f.sourceIndex]&&L(g,n.sourcesContent[f.sourceIndex])}m=f.sourceLine,y=f.sourceCharacter,n.names&&void 0!==f.nameIndex&&(c||(c=[]),void 0===(h=c[f.nameIndex])&&(c[f.nameIndex]=h=M(n.names[f.nameIndex])))}var D=f.generatedLine-(o?o.line:0),S=D+t,E=o&&o.line===f.generatedLine?f.generatedCharacter-o.character:f.generatedCharacter;R(S,0===D?E+r:E,g,m,y,h)}}_()},toJSON:V,toString:function(){return JSON.stringify(V())}};function O(r){u();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,!0),a=f.get(n);return void 0===a&&(a=p.length,p.push(n),d.push(r),f.set(n,a)),_(),a}function L(e,t){if(u(),null!==t){for(s||(s=[]);s.length<e;)s.push(null);s[e]=t}_()}function M(t){u(),c||(c=new e.Map);var r=c.get(t);return void 0===r&&(r=g.length,g.push(t),c.set(t,r)),_(),r}function R(t,r,n,i,a,o){e.Debug.assert(t>=T,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),u(),(function(e,t){return!w||T!==e||C!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(A>t||A===t&&N>r)}(n,i,a))&&(j(),T=t,C=r,P=!1,I=!1,w=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,A=i,N=a,P=!0,void 0!==o&&(F=o,I=!0)),_()}function B(e){m.push(e),m.length>=1024&&J()}function j(){if(w&&(!E||h!==T||v!==C||b!==k||x!==A||D!==N||S!==F)){if(u(),h<T){do{B(59),h++}while(h<T);v=0}else e.Debug.assertEqual(h,T,"generatedLine cannot backtrack"),E&&B(44);U(C-v),v=C,P&&(U(k-b),b=k,U(A-x),x=A,U(N-D),D=N,I&&(U(F-S),S=F)),E=!0,_()}}function J(){m.length>0&&(y+=String.fromCharCode.apply(void 0,m),m.length=0)}function V(){return j(),J(),{version:3,file:r,sourceRoot:n,sources:p,names:g,mappings:y,sourcesContent:s}}function U(t){t<0?t=1+(-t<<1):t<<=1;do{var r=31&t;(t>>=5)>0&&(r|=32),B((n=r)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:e.Debug.fail(n+": not a base64 value"))}while(t>0);var n}};var t=/^\/\/[@#] source[M]appingURL=(.+)$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return n},get error(){return t},get state(){return u(!0,!0)},next:function(){for(;!r&&n<e.length;){var t=e.charCodeAt(n);if(59!==t){if(44!==t){var d=!1,y=!1;if(a+=m(),f())return _();if(a<0)return p("Invalid generatedCharacter found");if(!g()){if(d=!0,o+=m(),f())return _();if(o<0)return p("Invalid sourceIndex found");if(g())return p("Unsupported Format: No entries after sourceIndex");if(s+=m(),f())return _();if(s<0)return p("Invalid sourceLine found");if(g())return p("Unsupported Format: No entries after sourceLine");if(c+=m(),f())return _();if(c<0)return p("Invalid sourceCharacter found");if(!g()){if(y=!0,l+=m(),f())return _();if(l<0)return p("Invalid nameIndex found");if(!g())return p("Unsupported Error Format: Entries after nameIndex")}}return{value:u(d,y),done:r}}n++}else i++,a=0,n++}return _()}};function u(e,t){return{generatedLine:i,generatedCharacter:a,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?l:void 0}}function _(){return r=!0,{value:void 0,done:!0}}function d(e){void 0===t&&(t=e)}function p(e){return d(e),_()}function f(){return void 0!==t}function g(){return n===e.length||44===e.charCodeAt(n)||59===e.charCodeAt(n)}function m(){for(var t,r=!0,i=0,a=0;r;n++){if(n>=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return d("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<<i,i+=5}return 0==(1&a)?a>>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function u(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function _(e){return e.sourcePosition}function d(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(n){for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,p,f,g=e.getDirectoryPath(n),m=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,g):g,y=e.getNormalizedAbsolutePath(r.file,g),h=t.getSourceFileLike(y),v=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,m)})),b=new e.Map(v.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=E();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,d,e.compareValues);n<0&&(n=~n);var i=r[n];return void 0!==i&&s(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition:function(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,_,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==n?r:{fileName:y,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==h?e.getPositionOfLineAndCharacter(h,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function D(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: "+n.error),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=D();n<i.length;n++){var a=i[n];if(s(a)){var o=r[a.sourceIndex];o||(r[a.sourceIndex]=o=[]),o.push(a)}}f=r.map((function(t){return e.sortAndDeduplicate(t,l,c)}))}return f[t]}function E(){if(void 0===p){for(var t=[],r=0,n=D();r<n.length;r++){var i=n[r];t.push(i)}p=e.sortAndDeduplicate(t,u,c)}return p}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}}(u||(u={})),function(e){function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function r(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function n(t){if(e.getNamespaceDeclarationNode(t))return!0;var n=t.importClause&&t.importClause.namedBindings;if(!n)return!1;if(!e.isNamedImports(n))return!1;for(var i=0,a=0,o=n.elements;a<o.length;a++)r(o[a])&&i++;return i>0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(n=a(s,r,n))}else if(!e.isGeneratedIdentifier(t.name)){var c=e.idText(t.name);r.get(c)||(r.set(c,!0),n=e.append(n,t.name))}return n}function o(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}function s(t){return e.isStringLiteralLike(t)||8===t.kind||e.isKeyword(t.kind)||e.isIdentifier(t)}function c(t){return r=t,e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)||e.isClassStaticBlockDeclaration(t);var r}e.getOriginalNodeId=t,e.chainBundle=function(t,r){return function(n){return 300===n.kind?r(n):function(n){return t.factory.createBundle(e.map(n.sourceFiles,r),n.prepends)}(n)}},e.getExportNeedsImportStarHelper=function(t){return!!e.getNamespaceDeclarationNode(t)},e.getImportNeedsImportStarHelper=n,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=function(r,s,c,l){for(var u,_,d=[],p=e.createMultiMap(),f=[],g=new e.Map,m=!1,y=!1,h=!1,v=!1,b=0,x=s.statements;b<x.length;b++){var D=x[b];switch(D.kind){case 264:d.push(D),!h&&n(D)&&(h=!0),!v&&i(D)&&(v=!0);break;case 263:275===D.moduleReference.kind&&d.push(D);break;case 270:if(D.moduleSpecifier)if(D.exportClause)if(d.push(D),e.isNamedExports(D.exportClause))A(D);else{var S=D.exportClause.name;g.get(e.idText(S))||(o(f,t(D),S),g.set(e.idText(S),!0),u=e.append(u,S)),h=!0}else d.push(D),y=!0;else A(D);break;case 269:D.isExportEquals&&!_&&(_=D);break;case 235:if(e.hasSyntacticModifier(D,1))for(var E=0,T=D.declarationList.declarations;E<T.length;E++){var C=T[E];u=a(C,g,u)}break;case 254:e.hasSyntacticModifier(D,1)&&(e.hasSyntacticModifier(D,512)?m||(o(f,t(D),r.factory.getDeclarationName(D)),m=!0):(S=D.name,g.get(e.idText(S))||(o(f,t(D),S),g.set(e.idText(S),!0),u=e.append(u,S))));break;case 255:e.hasSyntacticModifier(D,1)&&(e.hasSyntacticModifier(D,512)?m||(o(f,t(D),r.factory.getDeclarationName(D)),m=!0):(S=D.name)&&!g.get(e.idText(S))&&(o(f,t(D),S),g.set(e.idText(S),!0),u=e.append(u,S)))}}var k=e.createExternalHelpersImportDeclarationIfNeeded(r.factory,r.getEmitHelperFactory(),s,l,y,h,v);return k&&d.unshift(k),{externalImports:d,exportSpecifiers:p,exportEquals:_,hasExportStarsToExportValues:y,exportedBindings:f,exportedNames:u,externalHelpersImportDeclaration:k};function A(r){for(var n=0,i=e.cast(r.exportClause,e.isNamedExports).elements;n<i.length;n++){var a=i[n];if(!g.get(e.idText(a.name))){var s=a.propertyName||a.name;r.moduleSpecifier||p.add(e.idText(s),a);var l=c.getReferencedImportDeclaration(s)||c.getReferencedValueDeclaration(s);l&&o(f,t(l),a.name),g.set(e.idText(a.name),!0),u=e.append(u,a.name)}}}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=function(t){return!e.isIdentifier(t)&&s(t)},e.isCompoundAssignment=function(e){return e>=64&&e<=78},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.addPrologueDirectivesAndInitialSuperCall=function(t,r,n,i){if(r.body){var a=r.body.statements,o=t.copyPrologue(a,n,!1,i);if(o===a.length)return o;var s=e.findIndex(a,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}),o);if(s>-1){for(var c=o;c<=s;c++)n.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0},e.getProperties=function(t,r,n){return e.filter(t.members,(function(t){return function(t,r,n){return e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n}(t,r,n)}))},e.getStaticPropertiesAndClassStaticBlock=function(t){return e.filter(t.members,c)},e.isInitializedProperty=function(e){return 165===e.kind&&void 0!==e.initializer},e.isNonStaticMethodOrAccessorWithPrivateName=function(t){return!e.isStatic(t)&&e.isMethodOrAccessor(t)&&e.isPrivateIdentifier(t.name)}}(u||(u={})),function(e){function t(r,n){var i=e.getTargetOfBindingOrAssignmentElement(r);return e.isBindingOrAssignmentPattern(i)?function(r,n){for(var i=0,a=e.getElementsOfBindingOrAssignmentPattern(r);i<a.length;i++)if(t(a[i],n))return!0;return!1}(i,n):!!e.isIdentifier(i)&&i.escapedText===n}function r(t){var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&e.isComputedPropertyName(n)&&!e.isLiteralExpression(n.expression))return!0;var i,a=e.getTargetOfBindingOrAssignmentElement(t);return!!a&&e.isBindingOrAssignmentPattern(a)&&(i=a,!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(i),r))}function n(t,r,s,c,l){var u=e.getTargetOfBindingOrAssignmentElement(r);if(!l){var _=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(r),t.visitor,e.isExpression);_?s?(s=function(e,t,r,n){return t=o(e,t,!0,n),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}(t,s,_,c),!e.isSimpleInlineableExpression(_)&&e.isBindingOrAssignmentPattern(u)&&(s=o(t,s,!0,c))):s=_:s||(s=t.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(u)?function(t,r,i,s,c){var l,u,_=e.getElementsOfBindingOrAssignmentPattern(i),d=_.length;1!==d&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==d,c));for(var p=0;p<d;p++){var f=_[p];if(e.getRestIndicatorOfBindingOrAssignmentElement(f))p===d-1&&(l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0),m=t.context.getEmitHelperFactory().createRestHelper(s,_,u,i),n(t,f,m,f));else{var g=e.getPropertyNameOfBindingOrAssignmentElement(f);if(!(t.level>=1)||49152&f.transformFlags||49152&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0);var m=a(t,s,g);e.isComputedPropertyName(g)&&(u=e.append(u,m.argumentExpression)),n(t,f,m,f)}else l=e.append(l,e.visitNode(f,t.visitor))}}l&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i)}(t,r,u,s,c):e.isArrayBindingOrAssignmentPattern(u)?function(t,r,a,s,c){var l,u,_=e.getElementsOfBindingOrAssignmentPattern(a),d=_.length;t.level<1&&t.downlevelIteration?s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,d>0&&e.getRestIndicatorOfBindingOrAssignmentElement(_[d-1])?void 0:d),c),!1,c):(1!==d&&(t.level<1||0===d)||e.every(_,e.isOmittedExpression))&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==d,c));for(var p=0;p<d;p++){var f=_[p];if(t.level>=1)if(32768&f.transformFlags||t.hasTransformedPriorElement&&!i(f)){t.hasTransformedPriorElement=!0;var g=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(g),u=e.append(u,[g,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(g))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f))p===d-1&&(m=t.context.factory.createArraySliceCall(s,p),n(t,f,m,f));else{var m=t.context.factory.createElementAccessExpression(s,p);n(t,f,m,f)}}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),s,c,a),u)for(var y=0,h=u;y<h.length;y++){var v=h[y],b=v[0];n(t,f=v[1],b,f)}}(t,r,u,s,c):t.emitBindingOrAssignment(u,s,c,r)}function i(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(!r||e.isOmittedExpression(r))return!0;var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&!e.isPropertyNameLiteral(n))return!1;var a=e.getInitializerOfBindingOrAssignmentElement(t);return!(a&&!e.isSimpleInlineableExpression(a))&&(e.isBindingOrAssignmentPattern(r)?e.every(e.getElementsOfBindingOrAssignmentPattern(r),i):e.isIdentifier(r))}function a(t,r,n){if(e.isComputedPropertyName(n)){var i=o(t,e.visitNode(n.expression,t.visitor),!1,n);return t.context.factory.createElementAccessExpression(r,i)}if(e.isStringOrNumericLiteralLike(n))return i=e.factory.cloneNode(n),t.context.factory.createElementAccessExpression(r,i);var a=t.context.factory.createIdentifier(e.idText(n));return t.context.factory.createPropertyAccessExpression(r,a)}function o(t,r,n,i){if(e.isIdentifier(r)&&n)return r;var a=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(t.context.factory.createAssignment(a,r),i))):t.emitBindingOrAssignment(a,r,i,void 0),a}function s(e){return e}var c;(c=e.FlattenLevel||(e.FlattenLevel={}))[c.All=0]="All",c[c.ObjectRest=1]="ObjectRest",e.flattenDestructuringAssignment=function(i,a,c,l,u,_){var d,p,f=i;if(e.isDestructuringAssignment(i))for(d=i.right;e.isEmptyArrayLiteral(i.left)||e.isEmptyObjectLiteral(i.left);){if(!e.isDestructuringAssignment(d))return e.visitNode(d,a,e.isExpression);f=i=d,d=i.right}var g={context:c,level:l,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:function(t,r,n,i){e.Debug.assertNode(t,_?e.isIdentifier:e.isExpression);var o=_?_(t,r,n):e.setTextRange(c.factory.createAssignment(e.visitNode(t,a,e.isExpression),r),n);o.original=i,m(o)},createArrayBindingOrAssignmentPattern:function(t){return function(t,r){return t.createArrayLiteralExpression(e.map(r,t.converters.convertToArrayAssignmentElement))}(c.factory,t)},createObjectBindingOrAssignmentPattern:function(t){return function(t,r){return t.createObjectLiteralExpression(e.map(r,t.converters.convertToObjectAssignmentElement))}(c.factory,t)},createArrayBindingOrAssignmentElement:s,visitor:a};if(d&&(d=e.visitNode(d,a,e.isExpression),e.isIdentifier(d)&&t(i,d.escapedText)||r(i)?d=o(g,d,!1,f):u?d=o(g,d,!0,f):e.nodeIsSynthesized(i)&&(f=d)),n(g,i,d,f,e.isDestructuringAssignment(i)),d&&u){if(!e.some(p))return d;p.push(d)}return c.factory.inlineExpressions(p)||c.factory.createOmittedExpression();function m(t){p=e.append(p,t)}},e.flattenDestructuringBinding=function(i,a,s,c,l,u,_){var d;void 0===u&&(u=!1);var p=[],f=[],g={context:s,level:c,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:u,emitExpression:function(t){d=e.append(d,t)},emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:function(t){return function(t,r){return e.Debug.assertEachNode(r,e.isArrayBindingElement),t.createArrayBindingPattern(r)}(s.factory,t)},createObjectBindingOrAssignmentPattern:function(t){return function(t,r){return e.Debug.assertEachNode(r,e.isBindingElement),t.createObjectBindingPattern(r)}(s.factory,t)},createArrayBindingOrAssignmentElement:function(e){return function(e,t){return e.createBindingElement(void 0,void 0,t)}(s.factory,e)},visitor:a};if(e.isVariableDeclaration(i)){var m=e.getInitializerOfBindingOrAssignmentElement(i);m&&(e.isIdentifier(m)&&t(i,m.escapedText)||r(i))&&(m=o(g,e.visitNode(m,g.visitor),!1,m),i=s.factory.updateVariableDeclaration(i,i.name,void 0,void 0,m))}if(n(g,i,l,i,_),d){var y=s.factory.createTempVariable(void 0);if(u){var h=s.factory.inlineExpressions(d);d=void 0,A(y,h,void 0,void 0)}else{s.hoistVariableDeclaration(y);var v=e.last(p);v.pendingExpressions=e.append(v.pendingExpressions,s.factory.createAssignment(y,v.value)),e.addRange(v.pendingExpressions,d),v.value=y}}for(var b=0,x=p;b<x.length;b++){var D=x[b],S=D.pendingExpressions,E=D.name,T=(h=D.value,D.location),C=D.original,k=s.factory.createVariableDeclaration(E,void 0,void 0,S?s.factory.inlineExpressions(e.append(S,h)):h);k.original=C,e.setTextRange(k,T),f.push(k)}return f;function A(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),d&&(r=s.factory.inlineExpressions(e.append(d,r)),d=void 0),p.push({pendingExpressions:d,name:t,value:r,location:n,original:i})}}}(u||(u={})),function(e){var t;function r(t){return t.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(t.text)}function n(t,r){var n=t.rawText;if(void 0===n){e.Debug.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),n=e.getSourceTextOfNodeFromSourceFile(r,t);var i=14===t.kind||17===t.kind;n=n.substring(1,n.length-(i?1:2))}return n=n.replace(/\r\n?/g,"\n"),e.setTextRange(e.factory.createStringLiteral(n),t)}!function(e){e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All"}(t=e.ProcessLevel||(e.ProcessLevel={})),e.processTaggedTemplateExpression=function(i,a,o,s,c,l){var u=e.visitNode(a.tag,o,e.isExpression),_=[void 0],d=[],p=[],f=a.template;if(l===t.LiftRestriction&&!e.hasInvalidEscape(f))return e.visitEachChild(a,o,i);if(e.isNoSubstitutionTemplateLiteral(f))d.push(r(f)),p.push(n(f,s));else{d.push(r(f.head)),p.push(n(f.head,s));for(var g=0,m=f.templateSpans;g<m.length;g++){var y=m[g];d.push(r(y.literal)),p.push(n(y.literal,s)),_.push(e.visitNode(y.expression,o,e.isExpression))}}var h=i.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(d),e.factory.createArrayLiteralExpression(p));if(e.isExternalModule(s)){var v=e.factory.createUniqueName("templateObject");c(v),_[0]=e.factory.createLogicalOr(v,e.factory.createAssignment(v,h))}else _[0]=h;return e.factory.createCallExpression(u,void 0,_)}}(u||(u={})),function(e){var t,r;!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"}(r||(r={})),e.transformTypeScript=function(t){var r,n,i,a,o,s,c,l,u,_,d=t.factory,p=t.getEmitHelperFactory,f=t.startLexicalEnvironment,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,y=t.hoistVariableDeclaration,h=t.getEmitResolver(),v=t.getCompilerOptions(),b=e.getStrictOptionValue(v,"strictNullChecks"),x=e.getEmitScriptTarget(v),D=e.getEmitModuleKind(v),S=t.onEmitNode,E=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){var a=_,o=r;e.isSourceFile(n)&&(r=n),2&l&&function(t){return 259===e.getOriginalNode(t).kind}(n)&&(_|=2),8&l&&function(t){return 258===e.getOriginalNode(t).kind}(n)&&(_|=8),S(t,n,i),_=a,r=o},t.onSubstituteNode=function(t,r){return r=E(t,r),1===t?function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&l&&33554432&h.getNodeCheckFlags(t)){var r=h.getReferencedValueDeclaration(t);if(r){var n=u[r.id];if(n){var i=d.cloneNode(n);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}}(t)||Pe(t)||t}(t);case 204:case 205:return function(t){return function(t){var r=function(t){if(!v.isolatedModules)return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?h.getConstantValue(t):void 0}(t);if(void 0!==r){e.setConstantValue(t,r);var n="string"==typeof r?d.createStringLiteral(r):d.createNumericLiteral(r);if(!v.removeComments){var i=e.getOriginalNode(t,e.isAccessExpression),a=e.isPropertyAccessExpression(i)?e.declarationNameToString(i.name):e.getTextOfNode(i.argumentExpression);e.addSyntheticTrailingComment(n,3," "+a+" ")}return n}return t}(t)}(t)}return t}(r):e.isShorthandPropertyAssignment(r)?function(t){if(2&l){var r=t.name,n=Pe(r);if(n){if(t.objectAssignmentInitializer){var i=d.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(d.createPropertyAssignment(r,i),t)}return e.setTextRange(d.createPropertyAssignment(r,n),t)}}return t}(r):r},t.enableSubstitution(204),t.enableSubstitution(205),function(t){return 301===t.kind?function(t){return d.createBundle(t.sourceFiles.map(T),e.mapDefined(t.prepends,(function(t){return 303===t.kind?e.createUnparsedSourceFile(t,"js"):t})))}(t):T(t)};function T(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=a,i=o,l=s,u=c;!function(t){switch(t.kind){case 300:case 261:case 260:case 233:a=t,o=void 0,s=void 0;break;case 255:case 254:if(e.hasSyntacticModifier(t,2))break;t.name?de(t):e.Debug.assert(255===t.kind||e.hasSyntacticModifier(t,512)),e.isClassDeclaration(t)&&(o=t)}}(t);var _=r(t);return a!==n&&(s=l),a=n,o=i,c=u,_}function k(e){return C(e,A)}function A(e){return 1&e.transformFlags?M(e):e}function N(e){return C(e,F)}function F(r){switch(r.kind){case 264:case 263:case 269:case 270:return function(r){if(e.getParseTreeNode(r)!==r)return 1&r.transformFlags?e.visitEachChild(r,k,t):r;switch(r.kind){case 264:return function(t){if(!t.importClause)return t;if(!t.importClause.isTypeOnly){var r=e.visitNode(t.importClause,ye,e.isImportClause);return r||1===v.importsNotUsedAsValues||2===v.importsNotUsedAsValues?d.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}}(r);case 263:return De(r);case 269:return function(r){return h.isValueAliasDeclaration(r)?e.visitEachChild(r,k,t):void 0}(r);case 270:return function(t){if(!t.isTypeOnly){if(!t.exportClause||e.isNamespaceExport(t.exportClause))return t;if(h.isValueAliasDeclaration(t)){var r=e.visitNode(t.exportClause,be,e.isNamedExportBindings);return r?d.updateExportDeclaration(t,void 0,void 0,t.isTypeOnly,r,t.moduleSpecifier):void 0}}}(r);default:e.Debug.fail("Unhandled ellided statement")}}(r);default:return A(r)}}function w(e){return C(e,P)}function P(t){if(270!==t.kind&&264!==t.kind&&265!==t.kind&&(263!==t.kind||275!==t.moduleReference.kind))return 1&t.transformFlags||e.hasSyntacticModifier(t,1)?M(t):t}function I(e){return C(e,O)}function O(t){switch(t.kind){case 169:return oe(t);case 165:return ae(t);case 174:case 170:case 171:case 167:case 168:return A(t);case 232:return t;default:return e.Debug.failBadSyntaxKind(t)}}function L(t){if(!(18654&e.modifierToFlag(t.kind)||n&&93===t.kind))return t}function M(o){if(e.isStatement(o)&&e.hasSyntacticModifier(o,2))return d.createNotEmittedStatement(o);switch(o.kind){case 93:case 88:return n?void 0:o;case 123:case 121:case 122:case 126:case 157:case 85:case 134:case 143:case 181:case 182:case 183:case 184:case 180:case 175:case 161:case 129:case 153:case 132:case 148:case 145:case 142:case 114:case 149:case 178:case 177:case 179:case 176:case 185:case 186:case 187:case 189:case 190:case 191:case 192:case 193:case 194:case 174:case 163:case 262:return;case 257:case 256:return d.createNotEmittedStatement(o);case 165:return ae(o);case 169:return oe(o);case 255:return function(i){if(!(j(i)||n&&e.hasSyntacticModifier(i,1)))return e.visitEachChild(i,k,t);var a=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);return i&&104!==e.skipOuterExpressions(i.expression).kind&&(n|=64),e.classOrConstructorParameterIsDecorated(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),Se(t)?n|=8:function(t){return Ee(t)&&e.hasSyntacticModifier(t,512)}(t)?n|=32:Te(t)&&(n|=16),x<=1&&7&n&&(n|=128),n}(i,e.getProperties(i,!0,!0));128&a&&t.startLexicalEnvironment();var o=i.name||(5&a?d.getGeneratedNameForNode(i):void 0),s=2&a?function(r,n){var i=e.moveRangePastDecorators(r),a=function(r){if(16777216&h.getNodeCheckFlags(r)){0==(1&l)&&(l|=1,t.enableSubstitution(79),u=[]);var n=d.createUniqueName(r.name&&!e.isGeneratedIdentifier(r.name)?e.idText(r.name):"default");return u[e.getOriginalNodeId(r)]=n,y(n),n}}(r),o=x<=2?d.getInternalName(r,!1,!0):d.getLocalName(r,!1,!0),s=e.visitNodes(r.heritageClauses,k,e.isHeritageClause),c=J(r),_=d.createClassExpression(void 0,void 0,n,void 0,s,c);e.setOriginalNode(_,r),e.setTextRange(_,i);var p=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(o,void 0,void 0,a?d.createAssignment(a,_):_)],1));return e.setOriginalNode(p,r),e.setTextRange(p,i),e.setCommentRange(p,r),p}(i,o):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,L,e.isModifier),a=d.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,k,e.isHeritageClause),J(t)),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(i,o,a),c=[s];if(z(c,i,!1),z(c,i,!0),function(t,r){var n=function(t){var r=function(t){var r=t.decorators,n=U(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}}(t),n=K(t,t,r);if(n){var i=u&&u[e.getOriginalNodeId(t)],a=x<=2?d.getInternalName(t,!1,!0):d.getLocalName(t,!1,!0),o=p().createDecorateHelper(n,a),s=d.createAssignment(a,i?d.createAssignment(i,o):o);return e.setEmitFlags(s,1536),e.setSourceMapRange(s,e.moveRangePastDecorators(t)),s}}(r);n&&t.push(e.setOriginalNode(d.createExpressionStatement(n),r))}(c,i),128&a){var _=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),f=d.getInternalName(i),g=d.createPartiallyEmittedExpression(f);e.setTextRangeEnd(g,_.end),e.setEmitFlags(g,1536);var m=d.createReturnStatement(g);e.setTextRangePos(m,_.pos),e.setEmitFlags(m,1920),c.push(m),e.insertStatementsAfterStandardPrologue(c,t.endLexicalEnvironment());var v=d.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(v,33554432);var b=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(i,!1,!1),void 0,void 0,v)]));e.setOriginalNode(b,i),e.setCommentRange(b,i),e.setSourceMapRange(b,e.moveRangePastDecorators(i)),e.startOnNewLine(b),c=[b]}return 8&a?ke(c,i):(128&a||2&a)&&(32&a?c.push(d.createExportDefault(d.getLocalName(i,!1,!0))):16&a&&c.push(d.createExternalModuleExport(d.getLocalName(i,!1,!0)))),c.length>1&&(c.push(d.createEndOfDeclarationMarker(i)),e.setEmitFlags(s,4194304|e.getEmitFlags(s))),e.singleOrMany(c)}(o);case 224:return function(r){if(!j(r))return e.visitEachChild(r,k,t);var n=d.createClassExpression(void 0,void 0,r.name,void 0,e.visitNodes(r.heritageClauses,k,e.isHeritageClause),J(r));return e.setOriginalNode(n,r),e.setTextRange(n,r),n}(o);case 289:return function(r){if(117!==r.token)return e.visitEachChild(r,k,t)}(o);case 226:return function(t){return d.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,k,e.isLeftHandSideExpression),void 0)}(o);case 167:return function(r){if(ie(r)){var n=d.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),r.asteriskToken,ne(r),void 0,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(o);case 170:return function(r){if(ce(r)){var n=d.updateGetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),ne(r),e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(o);case 171:return function(r){if(ce(r)){var n=d.updateSetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),ne(r),e.visitParameterList(r.parameters,k,t),e.visitFunctionBody(r.body,k,t)||d.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(o);case 254:return function(r){if(!ie(r))return d.createNotEmittedStatement(r);var n=d.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]));if(Se(r)){var i=[n];return ke(i,r),i}return n}(o);case 211:return function(r){return ie(r)?d.updateFunctionExpression(r,e.visitNodes(r.modifiers,L,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([])):d.createOmittedExpression()}(o);case 212:return function(r){return d.updateArrowFunction(r,e.visitNodes(r.modifiers,L,e.isModifier),void 0,e.visitParameterList(r.parameters,k,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,k,t))}(o);case 162:return function(t){if(!e.parameterIsThisKeyword(t)){var r=d.updateParameterDeclaration(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression));return r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32)),r}}(o);case 210:return function(n){var i=e.skipOuterExpressions(n.expression,-7);if(e.isAssertionExpression(i)){var a=e.visitNode(n.expression,k,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,r))?d.updateParenthesizedExpression(n,a):d.createPartiallyEmittedExpression(a,n)}return e.visitEachChild(n,k,t)}(o);case 209:case 227:return function(t){var r=e.visitNode(t.expression,k,e.isExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 206:return function(t){return d.updateCallExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 207:return function(t){return d.updateNewExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 208:return function(t){return d.updateTaggedTemplateExpression(t,e.visitNode(t.tag,k,e.isExpression),void 0,e.visitNode(t.template,k,e.isExpression))}(o);case 228:return function(t){var r=e.visitNode(t.expression,k,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 258:return function(t){if(!function(t){return!e.isEnumConst(t)||e.shouldPreserveConstEnums(v)}(t))return d.createNotEmittedStatement(t);var n=[],o=2,s=fe(n,t);s&&(D===e.ModuleKind.System&&a===r||(o|=512));var c=Fe(t),l=we(t),u=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(i,t,!1,!0):d.getLocalName(t,!1,!0),_=d.createLogicalOr(u,d.createAssignment(u,d.createObjectLiteralExpression()));if(_e(t)){var p=d.getLocalName(t,!1,!0);_=d.createAssignment(p,_)}var g=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(t,r){var n=i;i=r;var a=[];f();var o=e.map(t.members,ue);return e.insertStatementsAfterStandardPrologue(a,m()),e.addRange(a,o),i=n,d.createBlock(e.setTextRange(d.createNodeArray(a),t.members),!0)}(t,l)),void 0,[_]));return e.setOriginalNode(g,t),s&&(e.setSyntheticLeadingComments(g,void 0),e.setSyntheticTrailingComments(g,void 0)),e.setTextRange(g,t),e.addEmitFlags(g,o),n.push(g),n.push(d.createEndOfDeclarationMarker(t)),n}(o);case 235:return function(r){if(Se(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(n,le))),r)}return e.visitEachChild(r,k,t)}(o);case 252:return function(t){return d.updateVariableDeclaration(t,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression))}(o);case 259:return ge(o);case 263:return De(o);case 277:return function(t){return d.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);case 278:return function(t){return d.updateJsxOpeningElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,k,t)}}function R(r){var n=e.getStrictOptionValue(v,"alwaysStrict")&&!(e.isExternalModule(r)&&D>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return d.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,N,t,0,n))}function B(e){return!!(4096&e.transformFlags)}function j(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,B)||e.some(t.members,B)}function J(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];e.isIdentifier(s.name)&&r.push(e.setOriginalNode(d.createPropertyDeclaration(void 0,void 0,s.name,void 0,void 0,void 0),s))}return e.addRange(r,e.visitNodes(t.members,I,e.isClassElement)),e.setTextRange(d.createNodeArray(r),t.members)}function V(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.isStatic(t)}function U(t){var r;if(t)for(var n=t.parameters,i=n.length>0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s<o;s++){var c=n[s+a];(r||c.decorators)&&(r||(r=new Array(o)),r[s]=c.decorators)}return r}function K(t,r,n){if(n){var i=[];return e.addRange(i,e.map(n.decorators,W)),e.addRange(i,e.flatMap(n.parameters,q)),function(t,r,n){!function(t,r,n){v.emitDecoratorMetadata&&(function(e){var t=e.kind;return 167===t||170===t||171===t||165===t}(t)&&n.push(p().createMetadataHelper("design:type",H(t))),function(t){switch(t.kind){case 255:case 224:return void 0!==e.getFirstConstructorWithBody(t);case 167:case 170:case 171:return!0}return!1}(t)&&n.push(p().createMetadataHelper("design:paramtypes",function(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=function(t,r){if(r&&170===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(Y(e.getRestParameterElementType(c.type))):i.push(H(c)))}return d.createArrayLiteralExpression(i)}(t,r))),function(e){return 167===e.kind}(t)&&n.push(p().createMetadataHelper("design:returntype",function(t){return e.isFunctionLike(t)&&t.type?Y(t.type):e.isAsyncFunction(t)?d.createIdentifier("Promise"):d.createVoidZero()}(t))))}(t,r,n)}(t,r,i),i}}function z(t,r,n){e.addRange(t,e.map(function(t,r){for(var n,i=function(t,r){return e.filter(t.members,r?function(e){return V(e,!0,t)}:function(e){return V(e,!1,t)})}(t,r),a=0,o=i;a<o.length;a++){var s=G(t,o[a]);s&&(n?n.push(s):n=[s])}return n}(r,n),Ce))}function G(t,r){var n=K(r,t,function(t,r){switch(r.kind){case 170:case 171:return function(t,r){if(r.body){var n=e.getAllAccessorDeclarations(t.members,r),i=n.firstAccessor,a=n.secondAccessor,o=n.setAccessor,s=i.decorators?i:a&&a.decorators?a:void 0;if(s&&r===s){var c=s.decorators,l=U(o);if(c||l)return{decorators:c,parameters:l}}}}(t,r);case 167:return function(e){if(e.body){var t=e.decorators,r=U(e);if(t||r)return{decorators:t,parameters:r}}}(r);case 165:return function(e){var t=e.decorators;if(t)return{decorators:t}}(r);default:return}}(t,r));if(n){var i=function(t,r){return e.isStatic(r)?d.getDeclarationName(t):function(e){return d.createPropertyAccessExpression(d.getDeclarationName(e),"prototype")}(t)}(t,r),a=re(r,!0),o=x>0?165===r.kind?d.createVoidZero():d.createNull():void 0,s=p().createDecorateHelper(n,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(r)),e.setEmitFlags(s,1536),s}}function W(t){return e.visitNode(t.expression,k,e.isExpression)}function q(t,r){var n;if(t){n=[];for(var i=0,a=t;i<a.length;i++){var o=a[i],s=p().createParamHelper(W(o),r);e.setTextRange(s,o.expression),e.setEmitFlags(s,1536),n.push(s)}}return n}function H(t){switch(t.kind){case 165:case 162:return Y(t.type);case 171:case 170:return Y(function(t){var r=h.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}(t));case 255:case 224:case 167:return d.createIdentifier("Function");default:return d.createVoidZero()}}function Y(t){if(void 0===t)return d.createIdentifier("Object");switch(t.kind){case 114:case 151:case 142:return d.createVoidZero();case 189:return Y(t.type);case 177:case 178:return d.createIdentifier("Function");case 181:case 182:return d.createIdentifier("Array");case 175:case 132:return d.createIdentifier("Boolean");case 148:return d.createIdentifier("String");case 146:return d.createIdentifier("Object");case 194:switch(t.literal.kind){case 10:case 14:return d.createIdentifier("String");case 217:case 8:return d.createIdentifier("Number");case 9:return te();case 110:case 95:return d.createIdentifier("Boolean");case 104:return d.createVoidZero();default:return e.Debug.failBadSyntaxKind(t.literal)}case 145:return d.createIdentifier("Number");case 156:return te();case 149:return x<2?ee():d.createIdentifier("Symbol");case 176:return function(t){var r=h.getTypeReferenceSerializationKind(t.typeName,o||a);switch(r){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&(t.parent.trueType===t||t.parent.falseType===t)})))return d.createIdentifier("Object");var n=$(t.typeName),i=d.createTempVariable(y);return d.createConditionalExpression(d.createTypeCheck(d.createAssignment(i,n),"function"),void 0,i,void 0,d.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return Z(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return d.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return te();case e.TypeReferenceSerializationKind.BooleanType:return d.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return d.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return d.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return d.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return x<2?ee():d.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return d.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return d.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return d.createIdentifier("Object");default:return e.Debug.assertNever(r)}}(t);case 186:case 185:return X(t.types);case 187:return X([t.trueType,t.falseType]);case 191:if(143===t.operator)return Y(t.type);break;case 179:case 192:case 193:case 180:case 129:case 153:case 190:case 198:case 307:case 308:case 312:case 313:case 314:break;case 309:case 310:case 311:return Y(t.type);default:return e.Debug.failBadSyntaxKind(t)}return d.createIdentifier("Object")}function X(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];189===a.kind;)a=a.type;if(142!==a.kind&&(b||(194!==a.kind||104!==a.literal.kind)&&151!==a.kind)){var o=Y(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return d.createIdentifier("Object")}else r=o}}return r||d.createVoidZero()}function Q(e,t){return d.createLogicalAnd(d.createStrictInequality(d.createTypeOfExpression(e),d.createStringLiteral("undefined")),t)}function $(e){if(79===e.kind){var t=Z(e);return Q(t,t)}if(79===e.left.kind)return Q(Z(e.left),Z(e));var r=$(e.left),n=d.createTempVariable(y);return d.createLogicalAnd(d.createLogicalAnd(r.left,d.createStrictInequality(d.createAssignment(n,r.right),d.createVoidZero())),d.createPropertyAccessExpression(n,e.right))}function Z(t){switch(t.kind){case 79:var r=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(t),t),t.parent);return r.original=void 0,e.setParent(r,e.getParseTreeNode(a)),r;case 159:return function(e){return d.createPropertyAccessExpression(Z(e.left),e.right)}(t)}}function ee(){return d.createConditionalExpression(d.createTypeCheck(d.createIdentifier("Symbol"),"function"),void 0,d.createIdentifier("Symbol"),void 0,d.createIdentifier("Object"))}function te(){return x<99?d.createConditionalExpression(d.createTypeCheck(d.createIdentifier("BigInt"),"function"),void 0,d.createIdentifier("BigInt"),void 0,d.createIdentifier("Object")):d.createIdentifier("BigInt")}function re(t,r){var n=t.name;return e.isPrivateIdentifier(n)?d.createIdentifier(""):e.isComputedPropertyName(n)?r&&!e.isSimpleInlineableExpression(n.expression)?d.getGeneratedNameForNode(n):n.expression:e.isIdentifier(n)?d.createStringLiteral(e.idText(n)):d.cloneNode(n)}function ne(t){var r=t.name;if(e.isComputedPropertyName(r)&&(!e.hasStaticModifier(t)&&c||e.some(t.decorators))){var n=e.visitNode(r.expression,k,e.isExpression),i=e.skipPartiallyEmittedExpressions(n);if(!e.isSimpleInlineableExpression(i)){var a=d.getGeneratedNameForNode(r);return y(a),d.updateComputedPropertyName(r,d.createAssignment(a,n))}}return e.visitNode(r,k,e.isPropertyName)}function ie(t){return!e.nodeIsMissing(t.body)}function ae(t){if(!(8388608&t.flags||e.hasSyntacticModifier(t,128))){var r=d.updatePropertyDeclaration(t,void 0,e.visitNodes(t.modifiers,k,e.isModifier),ne(t),void 0,void 0,e.visitNode(t.initializer,k));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}function oe(r){if(ie(r))return d.updateConstructorDeclaration(r,void 0,void 0,e.visitParameterList(r.parameters,k,t),function(r,n){var i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(!e.some(i))return e.visitFunctionBody(r,k,t);var a,o=[];g(),a=e.addPrologueDirectivesAndInitialSuperCall(d,n,o,k),e.addRange(o,e.map(i,se)),e.addRange(o,e.visitNodes(r.statements,k,e.isStatement,a)),o=d.mergeLexicalEnvironment(o,m());var s=d.createBlock(e.setTextRange(d.createNodeArray(o),r.statements),!0);return e.setTextRange(s,r),e.setOriginalNode(s,r),s}(r.body,r))}function se(t){var r=t.name;if(e.isIdentifier(r)){var n=e.setParent(e.setTextRange(d.cloneNode(r),r),r.parent);e.setEmitFlags(n,1584);var i=e.setParent(e.setTextRange(d.cloneNode(r),r),r.parent);return e.setEmitFlags(i,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(d.createExpressionStatement(d.createAssignment(e.setTextRange(d.createPropertyAccessExpression(d.createThis(),n),t.name),i)),t),e.moveRangePos(t,-1))))}}function ce(t){return!(e.nodeIsMissing(t.body)&&e.hasSyntacticModifier(t,128))}function le(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,k,t,0,!1,Ae):e.setTextRange(d.createAssignment(Ne(n),e.visitNode(r.initializer,k,e.isExpression)),r)}function ue(r){var n=re(r,!1),a=function(r){var n=h.getConstantValue(r);return void 0!==n?"string"==typeof n?d.createStringLiteral(n):d.createNumericLiteral(n):(0==(8&l)&&(l|=8,t.enableSubstitution(79)),r.initializer?e.visitNode(r.initializer,k,e.isExpression):d.createVoidZero())}(r),o=d.createAssignment(d.createElementAccessExpression(i,n),a),s=10===a.kind?o:d.createAssignment(d.createElementAccessExpression(i,o),n);return e.setTextRange(d.createExpressionStatement(e.setTextRange(s,r)),r)}function _e(t){return Se(t)||Ee(t)&&D!==e.ModuleKind.ES2015&&D!==e.ModuleKind.ES2020&&D!==e.ModuleKind.ESNext&&D!==e.ModuleKind.System}function de(t){s||(s=new e.Map);var r=pe(t);s.has(r)||s.set(r,t)}function pe(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function fe(t,r){var n=d.createVariableStatement(e.visitNodes(r.modifiers,L,e.isModifier),d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(r,!1,!0))],300===a.kind?0:1));if(e.setOriginalNode(n,r),de(r),function(e){if(s){var t=pe(e);return s.get(t)===e}return!0}(r))return 258===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.addEmitFlags(n,4195328),t.push(n),!0;var i=d.createMergeDeclarationMarker(n);return e.setEmitFlags(i,4195840),t.push(i),!1}function ge(o){if(!function(t){var r=e.getParseTreeNode(t,e.isModuleDeclaration);return!r||e.isInstantiatedModule(r,e.shouldPreserveConstEnums(v))}(o))return d.createNotEmittedStatement(o);e.Debug.assertNode(o.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&l)&&(l|=2,t.enableSubstitution(79),t.enableSubstitution(292),t.enableEmitNotification(259));var c=[],u=2,_=fe(c,o);_&&(D===e.ModuleKind.System&&a===r||(u|=512));var p=Fe(o),g=we(o),y=e.hasSyntacticModifier(o,1)?d.getExternalModuleOrNamespaceExportName(i,o,!1,!0):d.getLocalName(o,!1,!0),h=d.createLogicalOr(y,d.createAssignment(y,d.createObjectLiteralExpression()));if(_e(o)){var b=d.getLocalName(o,!1,!0);h=d.createAssignment(b,h)}var x=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,p)],void 0,function(t,r){var a=i,o=n,c=s;i=r,n=t,s=void 0;var l,u,_=[];if(f(),t.body)if(260===t.body.kind)C(t.body,(function(t){return e.addRange(_,e.visitNodes(t.statements,w,e.isStatement))})),l=t.body.statements,u=t.body;else{var p=ge(t.body);p&&(e.isArray(p)?e.addRange(_,p):_.push(p));var g=me(t).body;l=e.moveRangePos(g.statements,-1)}e.insertStatementsAfterStandardPrologue(_,m()),i=a,n=o,s=c;var y=d.createBlock(e.setTextRange(d.createNodeArray(_),l),!0);return e.setTextRange(y,u),t.body&&260===t.body.kind||e.setEmitFlags(y,1536|e.getEmitFlags(y)),y}(o,g)),void 0,[h]));return e.setOriginalNode(x,o),_&&(e.setSyntheticLeadingComments(x,void 0),e.setSyntheticTrailingComments(x,void 0)),e.setTextRange(x,o),e.addEmitFlags(x,u),c.push(x),c.push(d.createEndOfDeclarationMarker(o)),c}function me(e){if(259===e.body.kind)return me(e.body)||e.body}function ye(t){if(!t.isTypeOnly){var r=h.isReferencedAliasDeclaration(t)?t.name:void 0,n=e.visitNode(t.namedBindings,he,e.isNamedImportBindings);return r||n?d.updateImportClause(t,!1,r,n):void 0}}function he(t){if(266===t.kind)return h.isReferencedAliasDeclaration(t)?t:void 0;var r=e.visitNodes(t.elements,ve,e.isImportSpecifier);return e.some(r)?d.updateNamedImports(t,r):void 0}function ve(e){return h.isReferencedAliasDeclaration(e)?e:void 0}function be(t){return e.isNamespaceExport(t)?function(t){return d.updateNamespaceExport(t,e.visitNode(t.name,k,e.isIdentifier))}(t):function(t){var r=e.visitNodes(t.elements,xe,e.isExportSpecifier);return e.some(r)?d.updateNamedExports(t,r):void 0}(t)}function xe(e){return h.isValueAliasDeclaration(e)?e:void 0}function De(n){if(!n.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(n)){var a=h.isReferencedAliasDeclaration(n);return a||1!==v.importsNotUsedAsValues?a?e.visitEachChild(n,k,t):void 0:e.setOriginalNode(e.setTextRange(d.createImportDeclaration(void 0,void 0,void 0,n.moduleReference.expression),n),n)}if(function(t){return h.isReferencedAliasDeclaration(t)||!e.isExternalModule(r)&&h.isTopLevelValueImportEqualsWithEntityName(t)}(n)){var o,s,c,l=e.createExpressionFromEntityName(d,n.moduleReference);return e.setEmitFlags(l,3584),Te(n)||!Se(n)?e.setOriginalNode(e.setTextRange(d.createVariableStatement(e.visitNodes(n.modifiers,L,e.isModifier),d.createVariableDeclarationList([e.setOriginalNode(d.createVariableDeclaration(n.name,void 0,void 0,l),n)])),n),n):e.setOriginalNode((o=n.name,s=l,c=n,e.setTextRange(d.createExpressionStatement(d.createAssignment(d.getNamespaceMemberName(i,o,!1,!0),s)),c)),n)}}}function Se(t){return void 0!==n&&e.hasSyntacticModifier(t,1)}function Ee(t){return void 0===n&&e.hasSyntacticModifier(t,1)}function Te(t){return Ee(t)&&!e.hasSyntacticModifier(t,512)}function Ce(e){return d.createExpressionStatement(e)}function ke(t,r){var n=d.createAssignment(d.getExternalModuleOrNamespaceExportName(i,r,!1,!0),d.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var a=d.createExpressionStatement(n);e.setSourceMapRange(a,e.createRange(-1,r.end)),t.push(a)}function Ae(t,r,n){return e.setTextRange(d.createAssignment(Ne(t),r),n)}function Ne(e){return d.getNamespaceMemberName(i,e,!1,!0)}function Fe(t){var r=d.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function we(e){return d.getGeneratedNameForNode(e)}function Pe(t){if(l&_&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=h.getReferencedExportContainer(t,!1);if(r&&300!==r.kind&&(2&_&&259===r.kind||8&_&&258===r.kind))return e.setTextRange(d.createPropertyAccessExpression(d.getGeneratedNameForNode(r),t),t)}}}}(u||(u={})),function(e){var t,r,n;!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"}(t||(t={})),(n=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={})).Field="f",n.Method="m",n.Accessor="a",function(e){e[e.None=0]="None",e[e.ClassWasDecorated=1]="ClassWasDecorated",e[e.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",e[e.NeedsClassSuperReference=4]="NeedsClassSuperReference",e[e.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"}(r||(r={})),e.transformClassFields=function(t){var r=t.factory,n=t.hoistVariableDeclaration,a=t.endLexicalEnvironment,o=t.startLexicalEnvironment,s=t.resumeLexicalEnvironment,c=t.addBlockScopedVariable,l=t.getEmitResolver(),u=t.getCompilerOptions(),_=e.getEmitScriptTarget(u),d=e.getUseDefineForClassFields(u),p=_<99,f=(_<=8||!d)&&_>=2,g=_<=8||!d,m=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=m(t,n),1===t?function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&y&&33554432&l.getNodeCheckFlags(t)){var n=l.getReferencedValueDeclaration(t);if(n){var i=h[n.id];if(i){var a=r.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}}(t)||t}(t);case 108:return function(t){if(2&y&&D){var n=D.facts,i=D.classConstructor;if(1&n)return r.createParenthesizedExpression(r.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(r.cloneNode(i),t),t)}return t}(t)}return t}(n):n};var y,h,v,b,x=t.onEmitNode;t.onEmitNode=function(t,r,n){var i=e.getOriginalNode(r);if(i.id){var a=C.get(i.id);if(a){var o=D,s=S;return D=a,S=a,x(t,r,n),D=o,void(S=s)}}switch(r.kind){case 211:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 254:case 169:return o=D,s=S,D=void 0,S=void 0,x(t,r,n),D=o,void(S=s);case 170:case 171:case 167:case 165:return o=D,s=S,S=D,D=void 0,x(t,r,n),D=o,void(S=s);case 160:return o=D,s=S,D=S,S=void 0,x(t,r,n),D=o,void(S=s)}x(t,r,n)};var D,S,E,T=[],C=new e.Map;return e.chainBundle(t,(function(r){var n=t.getCompilerOptions();if(r.isDeclarationFile||d&&99===n.target)return r;var i=e.visitEachChild(r,N,t);return e.addEmitHelpers(i,t.readEmitHelpers()),i}));function k(a,o){if(8388608&a.transformFlags)switch(a.kind){case 224:case 255:return function(i){if(!e.forEach(i.members,j))return e.visitEachChild(i,N,t);var a=v;if(v=void 0,T.push(D),D=void 0,p){var o=e.getNameOfDeclaration(i);o&&e.isIdentifier(o)&&(Y().className=e.idText(o));var s=J(i);e.some(s)&&(Y().weakSetName=$("instances",s[0].name))}var u=e.isClassDeclaration(i)?function(t){var i=V(t);i&&(H().facts=i),8&i&&W();var a,o=e.getStaticPropertiesAndClassStaticBlock(t);if(2&i){var s=r.createTempVariable(n,!0);H().classConstructor=r.cloneNode(s),a=r.createAssignment(s,r.getInternalName(t))}var c=e.getEffectiveBaseTypeNode(t),l=!(!c||104===e.skipOuterExpressions(c.expression).kind),u=[r.updateClassDeclaration(t,void 0,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,F,e.isHeritageClause),U(t,l))];return a&&X().unshift(a),e.some(v)&&u.push(r.createExpressionStatement(r.inlineExpressions(v))),e.some(o)&&z(u,o,r.getInternalName(t)),u}(i):function(i){var a=V(i);a&&(H().facts=a),8&a&&W();var o,s=!!(1&a),u=e.getStaticPropertiesAndClassStaticBlock(i),_=e.getEffectiveBaseTypeNode(i),d=!(!_||104===e.skipOuterExpressions(_.expression).kind),f=16777216&l.getNodeCheckFlags(i);function g(){var e=l.getNodeCheckFlags(i),t=16777216&e,a=524288&e;return r.createTempVariable(a?c:n,!!t)}2&a&&(o=g(),H().classConstructor=r.cloneNode(o));var m=r.updateClassExpression(i,e.visitNodes(i.decorators,N,e.isDecorator),i.modifiers,i.name,void 0,e.visitNodes(i.heritageClauses,F,e.isHeritageClause),U(i,d));if(e.some(u,(function(t){return e.isClassStaticBlockDeclaration(t)||!!t.initializer||p&&e.isPrivateIdentifier(t.name)}))||e.some(v)){if(s)return e.Debug.assertIsDefined(b,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),b&&v&&e.some(v)&&b.push(r.createExpressionStatement(r.inlineExpressions(v))),b&&e.some(u)&&z(b,u,r.getInternalName(i)),o?r.inlineExpressions([r.createAssignment(o,m),o]):m;var x=[];if(o||(o=g()),f){0==(1&y)&&(y|=1,t.enableSubstitution(79),h=[]);var D=r.cloneNode(o);D.autoGenerateFlags&=-9,h[e.getOriginalNodeId(i)]=D}return e.setEmitFlags(m,65536|e.getEmitFlags(m)),x.push(e.startOnNewLine(r.createAssignment(o,m))),e.addRange(x,e.map(v,e.startOnNewLine)),e.addRange(x,function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=e.isClassStaticBlockDeclaration(o)?R(o):G(o,r);s&&(e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),n.push(s))}return n}(u,o)),x.push(e.startOnNewLine(o)),r.inlineExpressions(x)}return m}(i);return D=T.pop(),v=a,u}(a);case 165:return I(a);case 235:return function(r){var n=b;b=[];var a=e.visitEachChild(r,N,t),o=e.some(b)?i([a],b,!0):a;return b=n,o}(a);case 80:return function(t){return p?e.setOriginalNode(r.createIdentifier(""),t):t}(a);case 168:return function(r){if(!p)return e.visitEachChild(r,P,t)}(a)}if(8388608&a.transformFlags||33554432&a.transformFlags&&f&&E&&D)switch(a.kind){case 217:case 218:return function(i,a){if(45===i.operator||46===i.operator)if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.operand)){var o;if(o=ee(i.operand.name)){var s=M(e.visitNode(i.operand.expression,N,e.isExpression)),c=s.readExpression,l=s.initializeExpression,u=O(o,c),_=e.isPrefixUnaryExpression(i)||a?void 0:r.createTempVariable(n);return u=B(o,l||c,u=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,u,n,_),63),e.setOriginalNode(u,i),e.setTextRange(u,i),_&&(u=r.createComma(u,_),e.setTextRange(u,i)),u}}else if(f&&e.isSuperProperty(i.operand)&&E&&D){var d=D.classConstructor,g=D.superClassReference;if(1&D.facts){var m=q(i.operand);return e.isPrefixUnaryExpression(i)?r.updatePrefixUnaryExpression(i,m):r.updatePostfixUnaryExpression(i,m)}if(d&&g){var y=void 0,h=void 0;if(e.isPropertyAccessExpression(i.operand)?e.isIdentifier(i.operand.name)&&(h=y=r.createStringLiteralFromNode(i.operand.name)):e.isSimpleInlineableExpression(i.operand.argumentExpression)?h=y=i.operand.argumentExpression:(h=r.createTempVariable(n),y=r.createAssignment(h,e.visitNode(i.operand.argumentExpression,N,e.isExpression))),y&&h)return u=r.createReflectGetCall(g,h,d),e.setTextRange(u,i.operand),_=a?void 0:r.createTempVariable(n),u=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,u,n,_),u=r.createReflectSetCall(g,y,u,d),e.setOriginalNode(u,i),e.setTextRange(u,i),_&&(u=r.createComma(u,_),e.setTextRange(u,i)),u}}return e.visitEachChild(i,N,t)}(a,o);case 219:return function(a,o){if(e.isDestructuringAssignment(a)){var s=v;v=void 0,a=r.updateBinaryExpression(a,e.visitNode(a.left,w),a.operatorToken,e.visitNode(a.right,N));var c=e.some(v)?r.inlineExpressions(e.compact(i(i([],v,!0),[a],!1))):a;return v=s,c}if(e.isAssignmentExpression(a))if(p&&e.isPrivateIdentifierPropertyAccessExpression(a.left)){var l=ee(a.left.name);if(l)return e.setTextRange(e.setOriginalNode(B(l,a.left.expression,a.right,a.operatorToken.kind),a),a)}else if(f&&e.isSuperProperty(a.left)&&E&&D){var u=D.classConstructor,_=D.superClassReference;if(1&D.facts)return r.updateBinaryExpression(a,q(a.left),a.operatorToken,e.visitNode(a.right,N,e.isExpression));if(u&&_){var d=e.isElementAccessExpression(a.left)?e.visitNode(a.left.argumentExpression,N,e.isExpression):e.isIdentifier(a.left.name)?r.createStringLiteralFromNode(a.left.name):void 0;if(d){var g=e.visitNode(a.right,N,e.isExpression);if(e.isCompoundAssignment(a.operatorToken.kind)){var m=d;e.isSimpleInlineableExpression(d)||(m=r.createTempVariable(n),d=r.createAssignment(m,d));var y=r.createReflectGetCall(_,m,u);e.setOriginalNode(y,a.left),e.setTextRange(y,a.left),g=r.createBinaryExpression(y,e.getNonAssignmentOperatorForCompoundAssignment(a.operatorToken.kind),g),e.setTextRange(g,a)}var h=o?void 0:r.createTempVariable(n);return h&&(g=r.createAssignment(h,g),e.setTextRange(h,a)),g=r.createReflectSetCall(_,d,g,u),e.setOriginalNode(g,a),e.setTextRange(g,a),h&&(g=r.createComma(g,h),e.setTextRange(g,a)),g}}}return e.visitEachChild(a,N,t)}(a,o);case 206:return function(a){if(p&&e.isPrivateIdentifierPropertyAccessExpression(a.expression)){var o=r.createCallBinding(a.expression,n,_),s=o.thisArg,c=o.target;return e.isCallChain(a)?r.updateCallChain(a,r.createPropertyAccessChain(e.visitNode(c,N),a.questionDotToken,"call"),void 0,void 0,i([e.visitNode(s,N,e.isExpression)],e.visitNodes(a.arguments,N,e.isExpression),!0)):r.updateCallExpression(a,r.createPropertyAccessExpression(e.visitNode(c,N),"call"),void 0,i([e.visitNode(s,N,e.isExpression)],e.visitNodes(a.arguments,N,e.isExpression),!0))}if(f&&e.isSuperProperty(a.expression)&&E&&(null==D?void 0:D.classConstructor)){var l=r.createFunctionCallCall(e.visitNode(a.expression,N,e.isExpression),D.classConstructor,e.visitNodes(a.arguments,N,e.isExpression));return e.setOriginalNode(l,a),e.setTextRange(l,a),l}return e.visitEachChild(a,N,t)}(a);case 208:return function(i){if(p&&e.isPrivateIdentifierPropertyAccessExpression(i.tag)){var a=r.createCallBinding(i.tag,n,_),o=a.thisArg,s=a.target;return r.updateTaggedTemplateExpression(i,r.createCallExpression(r.createPropertyAccessExpression(e.visitNode(s,N),"bind"),void 0,[e.visitNode(o,N,e.isExpression)]),void 0,e.visitNode(i.template,N,e.isTemplateLiteral))}if(f&&e.isSuperProperty(i.tag)&&E&&(null==D?void 0:D.classConstructor)){var c=r.createFunctionBindCall(e.visitNode(i.tag,N,e.isExpression),D.classConstructor,[]);return e.setOriginalNode(c,i),e.setTextRange(c,i),r.updateTaggedTemplateExpression(i,c,void 0,e.visitNode(i.template,N,e.isTemplateLiteral))}return e.visitEachChild(i,N,t)}(a);case 204:return function(n){if(p&&e.isPrivateIdentifier(n.name)){var i=ee(n.name);if(i)return e.setTextRange(e.setOriginalNode(O(i,n.expression),n),n)}if(f&&e.isSuperProperty(n)&&e.isIdentifier(n.name)&&E&&D){var a=D.classConstructor,o=D.superClassReference;if(1&D.facts)return q(n);if(a&&o){var s=r.createReflectGetCall(o,r.createStringLiteralFromNode(n.name),a);return e.setOriginalNode(s,n.expression),e.setTextRange(s,n.expression),s}}return e.visitEachChild(n,N,t)}(a);case 205:return function(n){if(f&&e.isSuperProperty(n)&&E&&D){var i=D.classConstructor,a=D.superClassReference;if(1&D.facts)return q(n);if(i&&a){var o=r.createReflectGetCall(a,e.visitNode(n.argumentExpression,N,e.isExpression),i);return e.setOriginalNode(o,n.expression),e.setTextRange(o,n.expression),o}}return e.visitEachChild(n,N,t)}(a);case 236:return function(t){return r.updateExpressionStatement(t,e.visitNode(t.expression,A,e.isExpression))}(a);case 240:return function(n){return r.updateForStatement(n,e.visitNode(n.initializer,A,e.isForInitializer),e.visitNode(n.condition,N,e.isExpression),e.visitNode(n.incrementor,A,e.isExpression),e.visitIterationBody(n.statement,N,t))}(a);case 254:case 211:case 169:case 167:case 170:case 171:var s=E;E=void 0;var u=e.visitEachChild(a,N,t);return E=s,u}return e.visitEachChild(a,N,t)}function A(e){return k(e,!0)}function N(e){return k(e,!1)}function F(i){switch(i.kind){case 289:return e.visitEachChild(i,F,t);case 226:return function(i){if(4&((null==D?void 0:D.facts)||0)){var a=r.createTempVariable(n,!0);return H().superClassReference=a,r.updateExpressionWithTypeArguments(i,r.createAssignment(a,e.visitNode(i.expression,N,e.isExpression)),void 0)}return e.visitEachChild(i,N,t)}(i)}return N(i)}function w(t){switch(t.kind){case 203:case 202:return function(t){return e.isArrayLiteralExpression(t)?r.updateArrayLiteralExpression(t,e.visitNodes(t.elements,re,e.isExpression)):r.updateObjectLiteralExpression(t,e.visitNodes(t.properties,ne,e.isObjectLiteralElementLike))}(t);default:return N(t)}}function P(n){switch(n.kind){case 169:return;case 170:case 171:case 167:return function(n){if(e.Debug.assert(!e.some(n.decorators)),!p||!e.isPrivateIdentifier(n.name))return e.visitEachChild(n,P,t);var i=ee(n.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return n;var a=function(t){e.Debug.assert(e.isPrivateIdentifier(t.name));var r=ee(t.name);if(e.Debug.assert(r,"Undeclared private name for property declaration."),"m"===r.kind)return r.methodName;if("a"===r.kind){if(e.isGetAccessor(t))return r.getterName;if(e.isSetAccessor(t))return r.setterName}}(n);a&&X().push(r.createAssignment(a,r.createFunctionExpression(e.filter(n.modifiers,(function(t){return!e.isStaticModifier(t)})),n.asteriskToken,a,void 0,e.visitParameterList(n.parameters,P,t),void 0,e.visitFunctionBody(n.body,P,t))))}(n);case 165:return I(n);case 160:return function(n){var i=e.visitEachChild(n,N,t);if(e.some(v)){var a=v;a.push(i.expression),v=[],i=r.updateComputedPropertyName(i,r.inlineExpressions(a))}return i}(n);case 232:return n;default:return N(n)}}function I(t){if(e.Debug.assert(!e.some(t.decorators)),e.isPrivateIdentifier(t.name)){if(!p)return r.updatePropertyDeclaration(t,void 0,e.visitNodes(t.modifiers,N,e.isModifier),t.name,void 0,void 0,void 0);var i=ee(t.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return t}var a=function(t,i){if(e.isComputedPropertyName(t)){var a=e.visitNode(t.expression,N,e.isExpression),o=e.skipPartiallyEmittedExpressions(a),s=e.isSimpleInlineableExpression(o);if((!e.isAssignmentExpression(o)||!e.isGeneratedIdentifier(o.left))&&!s&&i){var u=r.getGeneratedNameForNode(t);return 524288&l.getNodeCheckFlags(t)?c(u):n(u),r.createAssignment(u,a)}return s||e.isIdentifier(o)?void 0:a}}(t.name,!!t.initializer||d);a&&!e.isSimpleInlineableExpression(a)&&X().push(a)}function O(t,r){return L(t,e.visitNode(r,N,e.isExpression))}function L(r,n){switch(e.setCommentRange(n,e.moveRangePos(n,-1)),r.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.getterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.methodName);case"f":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function M(t){var i=e.nodeIsSynthesized(t)?t:r.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:i,initializeExpression:void 0};var a=r.createTempVariable(n);return{readExpression:a,initializeExpression:r.createAssignment(a,i)}}function R(t){if(p){D&&C.set(e.getOriginalNodeId(t),D),o();var n=E;E=t;var i=e.visitNodes(t.body.statements,N,e.isStatement);i=r.mergeLexicalEnvironment(i,a()),E=n;var s=r.createImmediatelyInvokedArrowFunction(i);return e.setOriginalNode(s,t),e.setTextRange(s,t),e.addEmitFlags(s,2),s}}function B(n,i,a,o){if(i=e.visitNode(i,N,e.isExpression),a=e.visitNode(a,N,e.isExpression),e.isCompoundAssignment(o)){var s=M(i),c=s.readExpression;i=s.initializeExpression||c,a=r.createBinaryExpression(L(n,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.setterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,void 0);case"f":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function j(t){return e.isPropertyDeclaration(t)||e.isClassStaticBlockDeclaration(t)||p&&t.name&&e.isPrivateIdentifier(t.name)}function J(t){return e.filter(t.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function V(t){var r=0,n=e.getOriginalNode(t);e.isClassDeclaration(n)&&e.classOrConstructorParameterIsDecorated(n)&&(r|=1);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.isStatic(o)&&(o.name&&e.isPrivateIdentifier(o.name)&&p&&(r|=2),(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&(g&&8192&o.transformFlags&&(1&(r|=8)||(r|=2)),f&&33554432&o.transformFlags&&(1&r||(r|=6))))}return r}function U(n,i){if(p){for(var o=0,c=n.members;o<c.length;o++){var l=c[o];e.isPrivateIdentifierClassElementDeclaration(l)&&Q(l)}e.some(J(n))&&(u=Y().weakSetName,e.Debug.assert(u,"weakSetName should be set in private identifier environment"),X().push(r.createAssignment(u,r.createNewExpression(r.createIdentifier("WeakSet"),void 0,[]))))}var u,_=[],f=function(n,i){var o=e.visitNode(e.getFirstConstructorWithBody(n),N,e.isConstructorDeclaration),c=n.members.filter(K);if(!e.some(c))return o;var l=e.visitParameterList(o?o.parameters:void 0,N,t),u=function(n,i,o){var c=e.getProperties(n,!1,!1);d||(c=e.filter(c,(function(t){return!!t.initializer||e.isPrivateIdentifier(t.name)})));var l=J(n),u=e.some(c)||e.some(l);if(!i&&!u)return e.visitFunctionBody(void 0,N,t);s();var _=0,f=[];if(!i&&o&&f.push(r.createExpressionStatement(r.createCallExpression(r.createSuper(),void 0,[r.createSpreadElement(r.createIdentifier("arguments"))]))),i&&(_=e.addPrologueDirectivesAndInitialSuperCall(r,i,f,N)),null==i?void 0:i.body){var g=e.findIndex(i.body.statements,(function(t){return!e.isParameterPropertyDeclaration(e.getOriginalNode(t),i)}),_);-1===g&&(g=i.body.statements.length),g>_&&(d||e.addRange(f,e.visitNodes(i.body.statements,N,e.isStatement,_,g-_)),_=g)}var m=r.createThis();return function(t,n,i){if(p&&e.some(n)){var a=Y().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(r.createExpressionStatement(function(t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t])}(i,a)))}}(f,l,m),z(f,c,m),i&&e.addRange(f,e.visitNodes(i.body.statements,N,e.isStatement,_)),f=r.mergeLexicalEnvironment(f,a()),e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(f),i?i.body.statements:n.members),!0),i?i.body:void 0)}(n,o,i);return u?e.startOnNewLine(e.setOriginalNode(e.setTextRange(r.createConstructorDeclaration(void 0,void 0,null!=l?l:[],u),o||n),o)):void 0}(n,i);return f&&_.push(f),e.addRange(_,e.visitNodes(n.members,P,e.isClassElement)),e.setTextRange(r.createNodeArray(_),n.members)}function K(t){return!e.isStatic(t)&&!e.hasSyntacticModifier(e.getOriginalNode(t),128)&&(d?_<99:e.isInitializedProperty(t)||p&&e.isPrivateIdentifierClassElementDeclaration(t))}function z(t,n,i){for(var a=0,o=n;a<o.length;a++){var s=o[a],c=e.isClassStaticBlockDeclaration(s)?R(s):G(s,i);if(c){var l=r.createExpressionStatement(c);e.setSourceMapRange(l,e.moveRangePastModifiers(s)),e.setCommentRange(l,s),e.setOriginalNode(l,s),t.push(l)}}}function G(t,n){var i=E,a=function(t,n){var i,a=!d,o=e.isComputedPropertyName(t.name)&&!e.isSimpleInlineableExpression(t.name.expression)?r.updateComputedPropertyName(t.name,r.getGeneratedNameForNode(t.name)):t.name;if(e.hasStaticModifier(t)&&(E=t),p&&e.isPrivateIdentifier(o)){var s=ee(o);if(s)return"f"===s.kind?s.isStatic?function(t,r){return e.factory.createAssignment(t,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",r||e.factory.createVoidZero())]))}(s.variableName,e.visitNode(t.initializer,N,e.isExpression)):function(t,r,n){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(n,"set"),void 0,[t,r||e.factory.createVoidZero()])}(n,e.visitNode(t.initializer,N,e.isExpression),s.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!e.isPrivateIdentifier(o)&&!e.hasStaticModifier(t)||t.initializer){var c=e.getOriginalNode(t);if(!e.hasSyntacticModifier(c,128)){var l=t.initializer||a?null!==(i=e.visitNode(t.initializer,N,e.isExpression))&&void 0!==i?i:r.createVoidZero():e.isParameterPropertyDeclaration(c,c.parent)&&e.isIdentifier(o)?o:r.createVoidZero();if(a||e.isPrivateIdentifier(o)){var u=e.createMemberAccessForPropertyName(r,n,o,o);return r.createAssignment(u,l)}var _=e.isComputedPropertyName(o)?o.expression:e.isIdentifier(o)?r.createStringLiteral(e.unescapeLeadingUnderscores(o.escapedText)):o,f=r.createPropertyDescriptor({value:l,configurable:!0,writable:!0,enumerable:!0});return r.createObjectDefinePropertyCall(n,_,f)}}}(t,n);return a&&e.hasStaticModifier(t)&&(null==D?void 0:D.facts)&&(e.setOriginalNode(a,t),e.addEmitFlags(a,2),C.set(e.getOriginalNodeId(a),D)),E=i,a}function W(){0==(2&y)&&(y|=2,t.enableSubstitution(108),t.enableEmitNotification(254),t.enableEmitNotification(211),t.enableEmitNotification(169),t.enableEmitNotification(170),t.enableEmitNotification(171),t.enableEmitNotification(167),t.enableEmitNotification(165),t.enableEmitNotification(160))}function q(t){return e.isPropertyAccessExpression(t)?r.updatePropertyAccessExpression(t,r.createVoidZero(),t.name):r.updateElementAccessExpression(t,r.createVoidZero(),e.visitNode(t.argumentExpression,N,e.isExpression))}function H(){return D||(D={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function Y(){var t=H();return t.privateIdentifierEnvironment||(t.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),t.privateIdentifierEnvironment}function X(){return v||(v=[])}function Q(t){var n,i=e.getTextOfPropertyName(t.name),a=H().classConstructor,o=Y(),s=o.weakSetName,c=[],l=t.name.escapedText,u=o.identifiers.get(l),_=!function(e){return"#constructor"===e.escapedText}(t.name)&&void 0===u;if(e.hasStaticModifier(t))if(e.Debug.assert(a,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(t)){var d=Z(i,t);o.identifiers.set(l,{kind:"f",variableName:d,brandCheckIdentifier:a,isStatic:!0,isValid:_})}else if(e.isMethodDeclaration(t)){var p=Z(i,t);o.identifiers.set(l,{kind:"m",methodName:p,brandCheckIdentifier:a,isStatic:!0,isValid:_})}else if(e.isGetAccessorDeclaration(t)){var f=Z(i+"_get",t);"a"===(null==u?void 0:u.kind)&&u.isStatic&&!u.getterName?u.getterName=f:o.identifiers.set(l,{kind:"a",getterName:f,setterName:void 0,brandCheckIdentifier:a,isStatic:!0,isValid:_})}else if(e.isSetAccessorDeclaration(t)){var g=Z(i+"_set",t);"a"===(null==u?void 0:u.kind)&&u.isStatic&&!u.setterName?u.setterName=g:o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:g,brandCheckIdentifier:a,isStatic:!0,isValid:_})}else e.Debug.assertNever(t,"Unknown class element type.");else if(e.isPropertyDeclaration(t)){var m=Z(i,t);o.identifiers.set(l,{kind:"f",brandCheckIdentifier:m,isStatic:!1,variableName:void 0,isValid:_}),c.push(r.createAssignment(m,r.createNewExpression(r.createIdentifier("WeakMap"),void 0,[])))}else e.isMethodDeclaration(t)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),o.identifiers.set(l,{kind:"m",methodName:Z(i,t),brandCheckIdentifier:s,isStatic:!1,isValid:_})):e.isAccessor(t)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),e.isGetAccessor(t)?(f=Z(i+"_get",t),"a"!==(null==u?void 0:u.kind)||u.isStatic||u.getterName?o.identifiers.set(l,{kind:"a",getterName:f,setterName:void 0,brandCheckIdentifier:s,isStatic:!1,isValid:_}):u.getterName=f):(g=Z(i+"_set",t),"a"!==(null==u?void 0:u.kind)||u.isStatic||u.setterName?o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:g,brandCheckIdentifier:s,isStatic:!1,isValid:_}):u.setterName=g)):e.Debug.assertNever(t,"Unknown class element type.");(n=X()).push.apply(n,c)}function $(e,t){var i=Y().className,a=i?"_"+i:"",o=r.createUniqueName(a+"_"+e,16);return 524288&l.getNodeCheckFlags(t)?c(o):n(o),o}function Z(e,t){return $(e.substring(1),t.name)}function ee(e){var t;if((null==D?void 0:D.privateIdentifierEnvironment)&&(n=D.privateIdentifierEnvironment.identifiers.get(e.escapedText)))return n;for(var r=T.length-1;r>=0;--r){var n,i=T[r];if(i&&(n=null===(t=i.privateIdentifierEnvironment)||void 0===t?void 0:t.identifiers.get(e.escapedText)))return n}}function te(i){var a=r.getGeneratedNameForNode(i),o=ee(i.name);if(!o)return e.visitEachChild(i,N,t);var s=i.expression;return(e.isThisProperty(i)||e.isSuperProperty(i)||!e.isSimpleCopiableExpression(i.expression))&&(s=r.createTempVariable(n,!0),X().push(r.createBinaryExpression(s,63,e.visitNode(i.expression,N,e.isExpression)))),r.createAssignmentTargetWrapper(a,B(o,s,a,63))}function re(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n))i=te(n);else if(f&&e.isSuperProperty(n)&&E&&D){var a=D.classConstructor,o=D.superClassReference;if(1&D.facts)i=q(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,N,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,N,e.isExpression)):e.isSpreadElement(t)?r.updateSpreadElement(t,i):i}return e.visitNode(t,w)}function ne(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(n)if(e.isPrivateIdentifierPropertyAccessExpression(n))i=te(n);else if(f&&e.isSuperProperty(n)&&E&&D){var a=D.classConstructor,o=D.superClassReference;if(1&D.facts)i=q(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,N,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,N,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,N)):i:e.visitNode(t.initializer,w,e.isExpression))}if(e.isSpreadAssignment(t))return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,w,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,N)}}}(u||(u={})),function(e){var t,r;function n(t,r,n,i){var a=0!=(4096&r.getNodeCheckFlags(n)),o=[];return i.forEach((function(r,n){var i=e.unescapeLeadingUnderscores(n),s=[];s.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4)))),a&&s.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v"))))),o.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(s)))})),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(o,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(r||(r={})),e.transformES2017=function(t){var r,a,o,s,c=t.factory,l=t.getEmitHelperFactory,u=t.resumeLexicalEnvironment,_=t.endLexicalEnvironment,d=t.hoistVariableDeclaration,p=t.getEmitResolver(),f=t.getCompilerOptions(),g=e.getEmitScriptTarget(f),m=0,y=[],h=0,v=t.onEmitNode,b=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){if(1&r&&function(e){var t=e.kind;return 255===t||169===t||167===t||170===t||171===t}(n)){var a=6144&p.getNodeCheckFlags(n);if(a!==m){var o=m;return m=a,v(t,n,i),void(m=o)}}else if(r&&y[e.getNodeId(n)])return o=m,m=0,v(t,n,i),void(m=o);v(t,n,i)},t.onSubstituteNode=function(t,r){return r=b(t,r),1===t&&m?function(t){switch(t.kind){case 204:return J(t);case 205:return V(t);case 206:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?J(r):V(r);return c.createCallExpression(c.createPropertyAccessExpression(n,"call"),void 0,i([c.createThis()],t.arguments,!0))}return t}(t)}return t}(r):r},e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;x(1,!1),x(2,!e.isEffectiveStrictModeSourceFile(r,f));var n=e.visitEachChild(r,C,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function x(e,t){h=t?h|e:h&~e}function D(e){return 0!=(h&e)}function S(){return D(2)}function E(e,t,r){var n=e&~h;if(n){x(n,!0);var i=t(r);return x(n,!1),i}return t(r)}function T(r){return e.visitEachChild(r,C,t)}function C(r){if(0==(128&r.transformFlags))return r;switch(r.kind){case 130:return;case 216:return function(r){return D(1)?e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(r.expression,C,e.isExpression)),r),r):e.visitEachChild(r,C,t)}(r);case 167:return E(3,A,r);case 254:return E(3,N,r);case 211:return E(3,F,r);case 212:return E(1,w,r);case 204:return o&&e.isPropertyAccessExpression(r)&&106===r.expression.kind&&o.add(r.name.escapedText),e.visitEachChild(r,C,t);case 205:return o&&106===r.expression.kind&&(s=!0),e.visitEachChild(r,C,t);case 170:case 171:case 169:case 255:case 224:return E(3,T,r);default:return e.visitEachChild(r,C,t)}}function k(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 235:return function(r){if(I(r.declarationList)){var n=O(r.declarationList,!1);return n?c.createExpressionStatement(n):void 0}return e.visitEachChild(r,C,t)}(r);case 240:return function(r){var n=r.initializer;return c.updateForStatement(r,I(n)?O(n,!1):e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.condition,C,e.isExpression),e.visitNode(r.incrementor,C,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 241:return function(r){return c.updateForInStatement(r,I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.expression,C,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 242:return function(r){return c.updateForOfStatement(r,e.visitNode(r.awaitModifier,C,e.isToken),I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,C,e.isForInitializer),e.visitNode(r.expression,C,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 290:return function(r){var n,i=new e.Set;if(P(r.variableDeclaration,i),i.forEach((function(t,r){a.has(r)&&(n||(n=new e.Set(a)),n.delete(r))})),n){var o=a;a=n;var s=e.visitEachChild(r,k,t);return a=o,s}return e.visitEachChild(r,k,t)}(r);case 233:case 247:case 261:case 287:case 288:case 250:case 238:case 239:case 237:case 246:case 248:return e.visitEachChild(r,k,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return C(r)}function A(r){return c.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function N(r){return c.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function F(r){return c.updateFunctionExpression(r,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function w(r){return c.updateArrowFunction(r,e.visitNodes(r.modifiers,C,e.isModifier),void 0,e.visitParameterList(r.parameters,C,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function P(t,r){var n=t.name;if(e.isIdentifier(n))r.add(n.escapedText);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||P(o,r)}}function I(t){return!!t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&t.declarations.some(R)}function O(t,r){!function(t){e.forEach(t.declarations,L)}(t);var n=e.getInitializedVariables(t);return 0===n.length?r?e.visitNode(c.converters.convertToAssignmentElementTarget(t.declarations[0].name),C,e.isExpression):void 0:c.inlineExpressions(e.map(n,M))}function L(t){var r=t.name;if(e.isIdentifier(r))d(r);else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||L(a)}}function M(t){var r=e.setSourceMapRange(c.createAssignment(c.converters.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,C,e.isExpression)}function R(t){var r=t.name;if(e.isIdentifier(r))return a.has(r.escapedText);for(var n=0,i=r.elements;n<i.length;n++){var o=i[n];if(!e.isOmittedExpression(o)&&R(o))return!0}return!1}function B(i){u();var d=e.getOriginalNode(i,e.isFunctionLike).type,f=g<2?function(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=p.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}}(d):void 0,m=212===i.kind,h=0!=(8192&p.getNodeCheckFlags(i)),v=a;a=new e.Set;for(var b=0,x=i.parameters;b<x.length;b++)P(x[b],a);var D,E=o,T=s;if(m||(o=new e.Set,s=!1),m){var k=l().createAwaiterHelper(S(),h,f,j(i.body)),A=_();e.some(A)?(O=c.converters.convertToFunctionBlock(k),D=c.updateBlock(O,e.setTextRange(c.createNodeArray(e.concatenate(A,O.statements)),O.statements))):D=k}else{var N=[],F=c.copyPrologue(i.body.statements,N,!1,C);N.push(c.createReturnStatement(l().createAwaiterHelper(S(),h,f,j(i.body,F)))),e.insertStatementsAfterStandardPrologue(N,_());var w=g>=2&&6144&p.getNodeCheckFlags(i);if(w&&(0==(1&r)&&(r|=1,t.enableSubstitution(206),t.enableSubstitution(204),t.enableSubstitution(205),t.enableEmitNotification(255),t.enableEmitNotification(167),t.enableEmitNotification(170),t.enableEmitNotification(171),t.enableEmitNotification(169),t.enableEmitNotification(235)),o.size)){var I=n(c,p,i,o);y[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(N,[I])}var O=c.createBlock(N,!0);e.setTextRange(O,i.body),w&&s&&(4096&p.getNodeCheckFlags(i)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(i)&&e.addEmitHelper(O,e.asyncSuperHelper)),D=O}return a=v,m||(o=E,s=T),D}function j(t,r){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):c.converters.convertToFunctionBlock(e.visitNode(t,k,e.isConciseBody))}function J(t){return 106===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function V(t){return 106===t.expression.kind?(r=t.argumentExpression,n=t,4096&m?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=n}(u||(u={})),function(e){var t,r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(r||(r={})),e.transformES2018=function(t){var r=t.factory,n=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),_=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&p&&function(e){var t=e.kind;return 255===t||169===t||167===t||170===t||171===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==b){var a=b;return b=i,_(t,r,n),void(b=a)}}else if(p&&D[e.getNodeId(r)])return a=b,b=0,_(t,r,n),void(b=a);_(t,r,n)};var d=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=d(t,n),1===t&&b?function(t){switch(t.kind){case 204:return W(t);case 205:return q(t);case 206:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var a=e.isPropertyAccessExpression(n)?W(n):q(n);return r.createCallExpression(r.createPropertyAccessExpression(a,"call"),void 0,i([r.createThis()],t.arguments,!0))}return t}(t)}return t}(n):n};var p,f,g,m,y,h,v=!1,b=0,x=0,D=[];return e.chainBundle(t,(function(n){if(n.isDeclarationFile)return n;g=n;var i=function(n){var i=S(2,e.isEffectiveStrictModeSourceFile(n,l)?0:1);v=!1;var a=e.visitEachChild(n,C,t),o=e.concatenate(a.statements,m&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(m))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return E(i),s}(n);return e.addEmitHelpers(i,t.readEmitHelpers()),g=void 0,m=void 0,i}));function S(e,t){var r=x;return x=3&(x&~e|t),r}function E(e){x=e}function T(t){m=e.append(m,r.createVariableDeclaration(t))}function C(e){return w(e,!1)}function k(e){return w(e,!0)}function A(e){if(130!==e.kind)return e}function N(e,t,r,n){if(function(e,t){return x!==(x&~e|t)}(r,n)){var i=S(r,n),a=e(t);return E(i),a}return e(t)}function F(r){return e.visitEachChild(r,C,t)}function w(a,o){if(0==(64&a.transformFlags))return a;switch(a.kind){case 216:return function(i){return 2&f&&1&f?e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,C,e.isExpression))),i),i):e.visitEachChild(i,C,t)}(a);case 222:return function(i){if(2&f&&1&f){if(i.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(i.expression),C,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(r.updateYieldExpression(i,i.asteriskToken,e.setTextRange(n().createAsyncDelegatorHelper(e.setTextRange(n().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,L(i.expression?e.visitNode(i.expression,C,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,C,t)}(a);case 245:return function(n){return 2&f&&1&f?r.updateReturnStatement(n,L(n.expression?e.visitNode(n.expression,C,e.isExpression):r.createVoidZero())):e.visitEachChild(n,C,t)}(a);case 248:return function(n){if(2&f){var i=e.unwrapInnermostStatementOfLabel(n);return 242===i.kind&&i.awaitModifier?O(i,n):r.restoreEnclosingLabel(e.visitNode(i,C,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,C,t)}(a);case 203:return function(i){if(32768&i.transformFlags){var a=function(t){for(var n,i=[],a=0,o=t;a<o.length;a++){var s=o[a];if(293===s.kind){n&&(i.push(r.createObjectLiteralExpression(n)),n=void 0);var c=s.expression;i.push(e.visitNode(c,C,e.isExpression))}else n=e.append(n,291===s.kind?r.createPropertyAssignment(s.name,e.visitNode(s.initializer,C,e.isExpression)):e.visitNode(s,C,e.isObjectLiteralElementLike))}return n&&i.push(r.createObjectLiteralExpression(n)),i}(i.properties);a.length&&203!==a[0].kind&&a.unshift(r.createObjectLiteralExpression());var o=a[0];if(a.length>1){for(var s=1;s<a.length;s++)o=n().createAssignHelper([o,a[s]]);return o}return n().createAssignHelper(a)}return e.visitEachChild(i,C,t)}(a);case 219:return function(n,i){return e.isDestructuringAssignment(n)&&32768&n.left.transformFlags?e.flattenDestructuringAssignment(n,C,t,1,!i):27===n.operatorToken.kind?r.updateBinaryExpression(n,e.visitNode(n.left,k,e.isExpression),n.operatorToken,e.visitNode(n.right,i?k:C,e.isExpression)):e.visitEachChild(n,C,t)}(a,o);case 346:return function(n,i){if(i)return e.visitEachChild(n,k,t);for(var a,o=0;o<n.elements.length;o++){var s=n.elements[o],c=e.visitNode(s,o<n.elements.length-1?k:C,e.isExpression);(a||c!==s)&&(a||(a=n.elements.slice(0,o)),a.push(c))}var l=a?e.setTextRange(r.createNodeArray(a),n.elements):n.elements;return r.updateCommaListExpression(n,l)}(a,o);case 290:return function(n){if(n.variableDeclaration&&e.isBindingPattern(n.variableDeclaration.name)&&32768&n.variableDeclaration.name.transformFlags){var a=r.getGeneratedNameForNode(n.variableDeclaration.name),o=r.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,void 0,a),s=e.flattenDestructuringBinding(o,C,t,1),c=e.visitNode(n.block,C,e.isBlock);return e.some(s)&&(c=r.updateBlock(c,i([r.createVariableStatement(void 0,s)],c.statements,!0))),r.updateCatchClause(n,r.updateVariableDeclaration(n.variableDeclaration,a,void 0,void 0,void 0),c)}return e.visitEachChild(n,C,t)}(a);case 235:return function(r){if(e.hasSyntacticModifier(r,1)){var n=v;v=!0;var i=e.visitEachChild(r,C,t);return v=n,i}return e.visitEachChild(r,C,t)}(a);case 252:return function(e){if(v){var t=v;v=!1;var r=P(e,!0);return v=t,r}return P(e,!1)}(a);case 238:case 239:case 241:return N(F,a,0,2);case 242:return O(a,void 0);case 240:return N(I,a,0,2);case 215:case 236:return function(r){return e.visitEachChild(r,k,t)}(a);case 169:return N(M,a,2,1);case 167:return N(j,a,2,1);case 170:return N(R,a,2,1);case 171:return N(B,a,2,1);case 254:return N(J,a,2,1);case 211:return N(U,a,2,1);case 212:return N(V,a,2,0);case 162:return function(n){return 32768&n.transformFlags?r.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,r.getGeneratedNameForNode(n),void 0,void 0,e.visitNode(n.initializer,C,e.isExpression)):e.visitEachChild(n,C,t)}(a);case 210:return function(r,n){return e.visitEachChild(r,n?k:C,t)}(a,o);case 208:return function(r){return e.processTaggedTemplateExpression(t,r,C,g,T,e.ProcessLevel.LiftRestriction)}(a);case 204:return y&&e.isPropertyAccessExpression(a)&&106===a.expression.kind&&y.add(a.name.escapedText),e.visitEachChild(a,C,t);case 205:return y&&106===a.expression.kind&&(h=!0),e.visitEachChild(a,C,t);case 255:case 224:return N(F,a,2,1);default:return e.visitEachChild(a,C,t)}}function P(r,n){return e.isBindingPattern(r.name)&&32768&r.name.transformFlags?e.flattenDestructuringBinding(r,C,t,1,void 0,n):e.visitEachChild(r,C,t)}function I(n){return r.updateForStatement(n,e.visitNode(n.initializer,k,e.isForInitializer),e.visitNode(n.condition,C,e.isExpression),e.visitNode(n.incrementor,k,e.isExpression),e.visitIterationBody(n.statement,C,t))}function O(i,a){var o=S(0,2);32768&i.initializer.transformFlags&&(i=function(t){var n=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(n)||e.isAssignmentPattern(n)){var i=void 0,a=void 0,o=r.createTempVariable(void 0),s=[e.createForOfBindingStatement(r,n,o)];return e.isBlock(t.statement)?(e.addRange(s,t.statement.statements),i=t.statement,a=t.statement.statements):t.statement&&(e.append(s,t.statement),i=t.statement,a=t.statement),r.updateForOfStatement(t,t.awaitModifier,e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(o),t.initializer)],1),t.initializer),t.expression,e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(s),a),!0),i))}return t}(i));var c=i.awaitModifier?function(i,a,o){var c=e.visitNode(i.expression,C,e.isExpression),l=e.isIdentifier(c)?r.getGeneratedNameForNode(c):r.createTempVariable(void 0),u=e.isIdentifier(c)?r.getGeneratedNameForNode(l):r.createTempVariable(void 0),_=r.createUniqueName("e"),d=r.getGeneratedNameForNode(_),p=r.createTempVariable(void 0),f=e.setTextRange(n().createAsyncValuesHelper(c),i.expression),g=r.createCallExpression(r.createPropertyAccessExpression(l,"next"),void 0,[]),m=r.createPropertyAccessExpression(u,"done"),y=r.createPropertyAccessExpression(u,"value"),h=r.createFunctionCallCall(p,l,[]);s(_),s(p);var v=2&o?r.inlineExpressions([r.createAssignment(_,r.createVoidZero()),f]):f,b=e.setEmitFlags(e.setTextRange(r.createForStatement(e.setEmitFlags(e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(l,void 0,void 0,v),i.expression),r.createVariableDeclaration(u)]),i.expression),2097152),r.createComma(r.createAssignment(u,L(g)),r.createLogicalNot(m)),void 0,function(n,i){var a,o,s=e.createForOfBindingStatement(r,n.initializer,i),c=[e.visitNode(s,C,e.isStatement)],l=e.visitIterationBody(n.statement,C,t);return e.isBlock(l)?(e.addRange(c,l.statements),a=l,o=l.statements):c.push(l),e.setEmitFlags(e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(c),o),!0),a),432)}(i,y)),i),256);return r.createTryStatement(r.createBlock([r.restoreEnclosingLabel(b,a)]),r.createCatchClause(r.createVariableDeclaration(d),e.setEmitFlags(r.createBlock([r.createExpressionStatement(r.createAssignment(_,r.createObjectLiteralExpression([r.createPropertyAssignment("error",d)])))]),1)),r.createBlock([r.createTryStatement(r.createBlock([e.setEmitFlags(r.createIfStatement(r.createLogicalAnd(r.createLogicalAnd(u,r.createLogicalNot(m)),r.createAssignment(p,r.createPropertyAccessExpression(l,"return"))),r.createExpressionStatement(L(h))),1)]),void 0,e.setEmitFlags(r.createBlock([e.setEmitFlags(r.createIfStatement(_,r.createThrowStatement(r.createPropertyAccessExpression(_,"error"))),1)]),1))]))}(i,a,o):r.restoreEnclosingLabel(e.visitEachChild(i,C,t),a);return E(o),c}function L(e){return 1&f?r.createYieldExpression(void 0,n().createAwaitHelper(e)):r.createAwaitExpression(e)}function M(n){var i=f;f=0;var a=r.updateConstructorDeclaration(n,void 0,n.modifiers,e.visitParameterList(n.parameters,C,t),z(n));return f=i,a}function R(n){var i=f;f=0;var a=r.updateGetAccessorDeclaration(n,void 0,n.modifiers,e.visitNode(n.name,C,e.isPropertyName),e.visitParameterList(n.parameters,C,t),void 0,z(n));return f=i,a}function B(n){var i=f;f=0;var a=r.updateSetAccessorDeclaration(n,void 0,n.modifiers,e.visitNode(n.name,C,e.isPropertyName),e.visitParameterList(n.parameters,C,t),z(n));return f=i,a}function j(n){var i=f;f=e.getFunctionFlags(n);var a=r.updateMethodDeclaration(n,void 0,1&f?e.visitNodes(n.modifiers,A,e.isModifier):n.modifiers,2&f?void 0:n.asteriskToken,e.visitNode(n.name,C,e.isPropertyName),e.visitNode(void 0,C,e.isToken),void 0,e.visitParameterList(n.parameters,C,t),void 0,2&f&&1&f?K(n):z(n));return f=i,a}function J(n){var i=f;f=e.getFunctionFlags(n);var a=r.updateFunctionDeclaration(n,void 0,1&f?e.visitNodes(n.modifiers,A,e.isModifier):n.modifiers,2&f?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,C,t),void 0,2&f&&1&f?K(n):z(n));return f=i,a}function V(n){var i=f;f=e.getFunctionFlags(n);var a=r.updateArrowFunction(n,n.modifiers,void 0,e.visitParameterList(n.parameters,C,t),void 0,n.equalsGreaterThanToken,z(n));return f=i,a}function U(n){var i=f;f=e.getFunctionFlags(n);var a=r.updateFunctionExpression(n,1&f?e.visitNodes(n.modifiers,A,e.isModifier):n.modifiers,2&f?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,C,t),void 0,2&f&&1&f?K(n):z(n));return f=i,a}function K(i){a();var s=[],l=r.copyPrologue(i.body.statements,s,!1,C);G(s,i);var _=y,d=h;y=new e.Set,h=!1;var f=r.createReturnStatement(n().createAsyncGeneratorHelper(r.createFunctionExpression(void 0,r.createToken(41),i.name&&r.getGeneratedNameForNode(i.name),void 0,[],void 0,r.updateBlock(i.body,e.visitLexicalEnvironment(i.body.statements,C,t,l))),!!(1&x))),g=u>=2&&6144&c.getNodeCheckFlags(i);if(g){0==(1&p)&&(p|=1,t.enableSubstitution(206),t.enableSubstitution(204),t.enableSubstitution(205),t.enableEmitNotification(255),t.enableEmitNotification(167),t.enableEmitNotification(170),t.enableEmitNotification(171),t.enableEmitNotification(169),t.enableEmitNotification(235));var m=e.createSuperAccessVariableStatement(r,c,i,y);D[e.getNodeId(m)]=!0,e.insertStatementsAfterStandardPrologue(s,[m])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var v=r.updateBlock(i.body,s);return g&&h&&(4096&c.getNodeCheckFlags(i)?e.addEmitHelper(v,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(i)&&e.addEmitHelper(v,e.asyncSuperHelper)),y=_,h=d,v}function z(t){var n;a();var i=0,s=[],c=null!==(n=e.visitNode(t.body,C,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(i=r.copyPrologue(c.statements,s,!1,C)),e.addRange(s,G(void 0,t));var l=o();if(i>0||e.some(s)||e.some(l)){var u=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(i)),r.updateBlock(u,e.setTextRange(r.createNodeArray(s),u.statements))}return c}function G(n,i){for(var a=0,o=i.parameters;a<o.length;a++){var s=o[a];if(32768&s.transformFlags){var c=r.getGeneratedNameForNode(s),l=e.flattenDestructuringBinding(s,C,t,1,c,!1,!0);if(e.some(l)){var u=r.createVariableStatement(void 0,r.createVariableDeclarationList(l));e.setEmitFlags(u,1048576),n=e.append(n,u)}}}return n}function W(t){return 106===t.expression.kind?e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",48),t.name),t):t}function q(t){return 106===t.expression.kind?(n=t.argumentExpression,i=t,4096&b?e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),"value"),i):e.setTextRange(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),i)):t;var n,i}}}(u||(u={})),function(e){e.transformES2019=function(t){var r=t.factory;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,n,t)}));function n(i){return 0==(32&i.transformFlags)?i:290===i.kind?function(i){return i.variableDeclaration?e.visitEachChild(i,n,t):r.updateCatchClause(i,r.createVariableDeclaration(r.createTempVariable(void 0)),e.visitNode(i.block,n,e.isBlock))}(i):e.visitEachChild(i,n,t)}}}(u||(u={})),function(e){e.transformES2020=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,i,t)}));function i(a){if(0==(16&a.transformFlags))return a;switch(a.kind){case 206:var u=o(a,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u;case 204:case 205:return e.isOptionalChain(a)?(u=c(a,!1,!1),e.Debug.assertNotNode(u,e.isSyntheticReference),u):e.visitEachChild(a,i,t);case 219:return 60===a.operatorToken.kind?function(t){var a=e.visitNode(t.left,i,e.isExpression),o=a;return e.isSimpleCopiableExpression(a)||(o=r.createTempVariable(n),a=r.createAssignment(o,a)),e.setTextRange(r.createConditionalExpression(l(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression)),t)}(a):e.visitEachChild(a,i,t);case 213:return function(t){return e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(s(t.expression,!1,!0),t):r.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression))}(a);default:return e.visitEachChild(a,i,t)}}function a(t,n,i){var a=s(t.expression,n,i);return e.isSyntheticReference(a)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(t,a.expression),a.thisArg):r.updateParenthesizedExpression(t,a)}function o(n,o){if(e.isOptionalChain(n))return c(n,o,!1);if(e.isParenthesizedExpression(n.expression)&&e.isOptionalChain(e.skipParentheses(n.expression))){var s=a(n.expression,!0,!1),l=e.visitNodes(n.arguments,i,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(r.createFunctionCallCall(s.expression,s.thisArg,l),n):r.updateCallExpression(n,s,void 0,l)}return e.visitEachChild(n,i,t)}function s(t,s,l){switch(t.kind){case 210:return a(t,s,l);case 204:case 205:return function(t,a,o){if(e.isOptionalChain(t))return c(t,a,o);var s,l=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(l)?s=l:(s=r.createTempVariable(n),l=r.createAssignment(s,l))),l=204===t.kind?r.updatePropertyAccessExpression(t,l,e.visitNode(t.name,i,e.isIdentifier)):r.updateElementAccessExpression(t,l,e.visitNode(t.argumentExpression,i,e.isExpression)),s?r.createSyntheticReferenceExpression(l,s):l}(t,s,l);case 206:return o(t,s);default:return e.visitNode(t,i,e.isExpression)}}function c(t,a,o){var c=function(t){e.Debug.assertNotNode(t,e.isNonNullChain);for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),r.unshift(t);return{expression:t.expression,chain:r}}(t),u=c.expression,_=c.chain,d=s(u,e.isCallChain(_[0]),!1),p=e.isSyntheticReference(d)?d.thisArg:void 0,f=e.isSyntheticReference(d)?d.expression:d,g=f;e.isSimpleCopiableExpression(f)||(g=r.createTempVariable(n),f=r.createAssignment(g,f));for(var m,y=g,h=0;h<_.length;h++){var v=_[h];switch(v.kind){case 204:case 205:h===_.length-1&&a&&(e.isSimpleCopiableExpression(y)?m=y:(m=r.createTempVariable(n),y=r.createAssignment(m,y))),y=204===v.kind?r.createPropertyAccessExpression(y,e.visitNode(v.name,i,e.isIdentifier)):r.createElementAccessExpression(y,e.visitNode(v.argumentExpression,i,e.isExpression));break;case 206:y=0===h&&p?r.createFunctionCallCall(y,106===p.kind?r.createThis():p,e.visitNodes(v.arguments,i,e.isExpression)):r.createCallExpression(y,void 0,e.visitNodes(v.arguments,i,e.isExpression))}e.setOriginalNode(y,v)}var b=o?r.createConditionalExpression(l(f,g,!0),void 0,r.createTrue(),void 0,r.createDeleteExpression(y)):r.createConditionalExpression(l(f,g,!0),void 0,r.createVoidZero(),void 0,y);return e.setTextRange(b,t),m?r.createSyntheticReferenceExpression(b,m):b}function l(e,t,n){return r.createBinaryExpression(r.createBinaryExpression(e,r.createToken(n?36:37),r.createNull()),r.createToken(n?56:55),r.createBinaryExpression(t,r.createToken(n?36:37),r.createVoidZero()))}}}(u||(u={})),function(e){e.transformES2021=function(t){var r=t.hoistVariableDeclaration,n=t.factory;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,i,t)}));function i(a){if(0==(8&a.transformFlags))return a;if(219===a.kind){var o=a;if(e.isLogicalOrCoalescingAssignmentExpression(o))return function(t){var a=t.operatorToken,o=e.getNonAssignmentOperatorForCompoundAssignment(a.kind),s=e.skipParentheses(e.visitNode(t.left,i,e.isLeftHandSideExpression)),c=s,l=e.skipParentheses(e.visitNode(t.right,i,e.isExpression));if(e.isAccessExpression(s)){var u=e.isSimpleCopiableExpression(s.expression),_=u?s.expression:n.createTempVariable(r),d=u?s.expression:n.createAssignment(_,s.expression);if(e.isPropertyAccessExpression(s))c=n.createPropertyAccessExpression(_,s.name),s=n.createPropertyAccessExpression(d,s.name);else{var p=e.isSimpleCopiableExpression(s.argumentExpression),f=p?s.argumentExpression:n.createTempVariable(r);c=n.createElementAccessExpression(_,f),s=n.createElementAccessExpression(d,p?s.argumentExpression:n.createAssignment(f,s.argumentExpression))}}return n.createBinaryExpression(s,o,n.createParenthesizedExpression(n.createAssignment(c,l)))}(o)}return e.visitEachChild(a,i,t)}}}(u||(u={})),function(e){e.transformESNext=function(t){return e.chainBundle(t,(function(n){return n.isDeclarationFile?n:e.visitEachChild(n,r,t)}));function r(n){return 0==(4&n.transformFlags)?n:(n.kind,e.visitEachChild(n,r,t))}}}(u||(u={})),function(e){e.transformJsx=function(r){var n,i,a=r.factory,o=r.getEmitHelperFactory,s=r.getCompilerOptions();return e.chainBundle(r,(function(t){if(t.isDeclarationFile)return t;n=t,(i={}).importSpecifier=e.getJSXImplicitImportBase(s,t);var o=e.visitEachChild(t,u,r);e.addEmitHelpers(o,r.readEmitHelpers());var c=o.statements;if(i.filenameDeclaration&&(c=e.insertStatementAfterCustomPrologue(c.slice(),a.createVariableStatement(void 0,a.createVariableDeclarationList([i.filenameDeclaration],2)))),i.utilizedImplicitRuntimeImports)for(var l=0,_=e.arrayFrom(i.utilizedImplicitRuntimeImports.entries());l<_.length;l++){var d=_[l],p=d[0],f=d[1];if(e.isExternalModule(t)){var g=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamedImports(e.arrayFrom(f.values()))),a.createStringLiteral(p));e.setParentRecursive(g,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),g)}else if(e.isExternalOrCommonJsModule(t)){var m=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.createObjectBindingPattern(e.map(e.arrayFrom(f.values()),(function(e){return a.createBindingElement(void 0,e.propertyName,e.name)}))),void 0,void 0,a.createCallExpression(a.createIdentifier("require"),void 0,[a.createStringLiteral(p)]))],2));e.setParentRecursive(m,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),m)}}return c!==o.statements&&(o=a.updateSourceFile(o,c)),i=void 0,o}));function c(){if(i.filenameDeclaration)return i.filenameDeclaration.name;var e=a.createVariableDeclaration(a.createUniqueName("_jsxFileName",48),void 0,void 0,a.createStringLiteral(n.fileName));return i.filenameDeclaration=e,i.filenameDeclaration.name}function l(t){var r,n,o="createElement"===t?i.importSpecifier:e.getJSXRuntimeImport(i.importSpecifier,s),c=null===(n=null===(r=i.utilizedImplicitRuntimeImports)||void 0===r?void 0:r.get(o))||void 0===n?void 0:n.get(t);if(c)return c.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=e.createMap());var l=i.utilizedImplicitRuntimeImports.get(o);l||(l=e.createMap(),i.utilizedImplicitRuntimeImports.set(o,l));var u=a.createUniqueName("_"+t,112),_=a.createImportSpecifier(a.createIdentifier(t),u);return u.generatedImportReference=_,l.set(t,_),u}function u(t){return 2&t.transformFlags?function(t){switch(t.kind){case 276:return p(t,!1);case 277:return f(t,!1);case 280:return g(t,!1);case 286:return N(t);default:return e.visitEachChild(t,u,r)}}(t):t}function _(t){switch(t.kind){case 11:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a<t.length;a++){var o=t.charCodeAt(a);e.isLineBreak(o)?(-1!==n&&-1!==i&&(r=C(r,t.substr(n,i-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===n&&(n=a))}return-1!==n?C(r,t.substr(n)):r}(t.text);return void 0===r?void 0:a.createStringLiteral(r)}(t);case 286:return N(t);case 276:return p(t,!0);case 277:return f(t,!0);case 280:return g(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function d(t){return void 0===i.importSpecifier||function(t){for(var r=!1,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(e.isJsxSpreadAttribute(a))r=!0;else if(r&&e.isJsxAttribute(a)&&"key"===a.name.escapedText)return!0}return!1}(t)}function p(e,t){return(d(e.openingElement)?v:y)(e.openingElement,e.children,t,e)}function f(e,t){return(d(e)?v:y)(e,void 0,t,e)}function g(e,t){return(void 0===i.importSpecifier?x:b)(e.openingFragment,e.children,t,e)}function m(t){var r=e.getSemanticJsxChildren(t);if(1===e.length(r)){var n=_(r[0]);return n&&a.createObjectLiteralExpression([a.createPropertyAssignment("children",n)])}var i=e.mapDefined(t,_);return i.length?a.createObjectLiteralExpression([a.createPropertyAssignment("children",a.createArrayLiteralExpression(i))]):void 0}function y(t,r,n,i){var s=A(t),c=e.find(t.attributes.properties,(function(t){return!!t.name&&e.isIdentifier(t.name)&&"key"===t.name.escapedText})),l=c?e.filter(t.attributes.properties,(function(e){return e!==c})):t.attributes.properties,u=[];if(l.length&&(u=e.flatten(e.spanMap(l,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,S):a.createObjectLiteralExpression(e.map(t,E))}))),e.isJsxSpreadAttribute(l[0])&&u.unshift(a.createObjectLiteralExpression())),r&&r.length){var _=m(r);_&&u.push(_)}return h(s,0===u.length?a.createObjectLiteralExpression([]):e.singleOrUndefined(u)||o().createAssignHelper(u),c,e.length(e.getSemanticJsxChildren(r||e.emptyArray)),n,i)}function h(t,r,i,o,u,_){var d=[t,r,i?T(i.initializer):a.createVoidZero()];if(5===s.jsx){var p=e.getOriginalNode(n);if(p&&e.isSourceFile(p)){d.push(o>1?a.createTrue():a.createFalse());var f=e.getLineAndCharacterOfPosition(p,_.pos);d.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(f.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(f.character+1))])),d.push(a.createThis())}}var g=e.setTextRange(a.createCallExpression(function(e){var t=function(e){return 5===s.jsx?"jsxDEV":e>1?"jsxs":"jsx"}(e);return l(t)}(o),void 0,d),_);return u&&e.startOnNewLine(g),g}function v(t,c,u,d){var p,f=A(t),g=t.attributes.properties;if(0===g.length)p=a.createNull();else{var m=s.target;if(m&&m>=5)p=a.createObjectLiteralExpression(e.flatten(e.spanMap(g,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,D):e.map(t,E)}))));else{var y=e.flatten(e.spanMap(g,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,S):a.createObjectLiteralExpression(e.map(t,E))})));e.isJsxSpreadAttribute(g[0])&&y.unshift(a.createObjectLiteralExpression()),(p=e.singleOrUndefined(y))||(p=o().createAssignHelper(y))}}var h=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),v=e.createExpressionForJsxElement(a,h,f,p,e.mapDefined(c,_),d);return u&&e.startOnNewLine(v),v}function b(t,r,n,i){var o;if(r&&r.length){var s=m(r);s&&(o=s)}return h(l("Fragment"),o||a.createObjectLiteralExpression([]),void 0,e.length(e.getSemanticJsxChildren(r)),n,i)}function x(t,i,o,c){var l=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,_),t,c);return o&&e.startOnNewLine(l),l}function D(t){return a.createSpreadAssignment(e.visitNode(t.expression,u,e.isExpression))}function S(t){return e.visitNode(t.expression,u,e.isExpression)}function E(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)}(t),n=T(t.initializer);return a.createPropertyAssignment(r,n)}function T(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral(((s=k(o=t.text))===o?void 0:s)||t.text,r);return e.setTextRange(i,t)}return 286===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,u,e.isExpression):e.Debug.failBadSyntaxKind(t);var o,s}function C(e,t){var r=k(t);return void 0===e?r:e+" "+r}function k(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(r,n,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=t.get(c);return l?e.utf16EncodeAsString(l):r}))}function A(t){if(276===t.kind)return A(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function N(t){return e.visitNode(t.expression,u,e.isExpression)}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(u||(u={})),function(e){e.transformES2016=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,i,t)}));function i(a){return 0==(256&a.transformFlags)?a:219===a.kind?function(a){switch(a.operatorToken.kind){case 67:return function(t){var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var l=r.createTempVariable(n),u=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),e.setTextRange(r.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(l,u),s)}else e.isPropertyAccessExpression(s)?(l=r.createTempVariable(n),a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(l,s.name),s)):(a=s,o=s);return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)}(a);case 42:return function(t){var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)}(a);default:return e.visitEachChild(a,i,t)}}(a):e.visitEachChild(a,i,t)}}}(u||(u={})),function(e){var t,r,n,a,o,s;function c(e,t){return{kind:e,expression:t}}!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(r||(r={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(n||(n={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"}(o||(o={})),function(e){e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"}(s||(s={})),e.transformES2015=function(t){var r,n,a,o,s,l,u=t.factory,_=t.getEmitHelperFactory,d=t.startLexicalEnvironment,p=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,g=t.hoistVariableDeclaration,m=t.getCompilerOptions(),y=t.getEmitResolver(),h=t.onSubstituteNode,v=t.onEmitNode;function b(t){o=e.append(o,u.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&l&&e.isFunctionLike(r)){var i=x(32670,8&e.getEmitFlags(r)?81:65);return v(t,r,n),void D(i,0,0)}v(t,r,n)},t.onSubstituteNode=function(t,r){return r=h(t,r),1===t?function(t){switch(t.kind){case 79:return function(t){if(2&l&&!e.isInternalName(t)){var r=y.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!function(t,r){var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(u.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 108:return function(t){return 1&l&&16&a?e.setTextRange(u.createUniqueName("_this",48),t):t}(t)}return t}(r):e.isIdentifier(r)?function(t){if(2&l&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 201:case 255:case 258:case 252:return e.parent.name===e&&y.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(u.getGeneratedNameForNode(r),t)}return t}(r):r},e.chainBundle(t,(function(i){if(i.isDeclarationFile)return i;r=i,n=i.text;var s=function(t){var r=x(8064,64),n=[],i=[];d();var a=u.copyPrologue(t.statements,n,!1,T);return e.addRange(i,e.visitNodes(t.statements,T,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o))),u.mergeLexicalEnvironment(n,f()),V(n,t),D(r,0,0),u.updateSourceFile(t,e.setTextRange(u.createNodeArray(e.concatenate(n,i)),t.statements))}(i);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,o=void 0,a=0,s}));function x(e,t){var r=a;return a=32767&(a&~e|t),r}function D(e,t,r){a=-32768&(a&~t|r)|e}function S(e){return 0!=(8192&a)&&245===e.kind&&!e.expression}function E(t){return 0!=(512&t.transformFlags)||void 0!==s||8192&a&&function(t){return 2097152&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&pe(t)||0!=(33554432&e.getEmitFlags(t))}function T(e){return E(e)?N(e,!1):e}function C(e){return E(e)?N(e,!0):e}function k(t){if(E(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=x(32670,16449),i=N(t,!1);return D(n,98304,0),i}return N(t,!1)}return t}function A(e){return 106===e.kind?Pe(!0):T(e)}function N(n,o){switch(n.kind){case 124:return;case 255:return function(t){var r=u.createVariableDeclaration(u.getLocalName(t,!0),void 0,void 0,P(t));e.setOriginalNode(r,t);var n=[],i=u.createVariableStatement(void 0,u.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,512)?u.createExportDefault(u.getLocalName(t)):u.createExternalModuleExport(u.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(u.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)}(n);case 224:return function(e){return P(e)}(n);case 162:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,u.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 254:return function(r){var n=s;s=void 0;var i=x(32670,65),o=e.visitParameterList(r.parameters,T,t),c=Y(r),l=32768&a?u.getLocalName(r):r.name;return D(i,98304,0),s=n,u.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,l,void 0,o,void 0,c)}(n);case 212:return function(r){8192&r.transformFlags&&!(16384&a)&&(a|=65536);var n=s;s=void 0;var i=x(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,T,t),void 0,Y(r));return e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),D(i,0,0),s=n,o}(n);case 211:return function(r){var n=262144&e.getEmitFlags(r)?x(32662,69):x(32670,65),i=s;s=void 0;var o=e.visitParameterList(r.parameters,T,t),c=Y(r),l=32768&a?u.getLocalName(r):r.name;return D(n,98304,0),s=i,u.updateFunctionExpression(r,void 0,r.asteriskToken,l,void 0,o,void 0,c)}(n);case 252:return $(n);case 79:return w(n);case 253:return function(r){if(3&r.flags||262144&r.transformFlags){3&r.flags&&Ie();var n=e.flatMap(r.declarations,1&r.flags?Q:$),i=u.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),262144&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i<a.length;i++){var o=a[i];r=-1===r?o.pos:-1===o.pos?r:Math.min(r,o.pos),n=Math.max(n,o.end)}return e.createRange(r,n)}(n)),i}return e.visitEachChild(r,T,t)}(n);case 247:return function(r){if(void 0!==s){var n=s.allowedNonLabeledJumps;s.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,T,t);return s.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,T,t)}(n);case 261:return function(r){var n=x(7104,0),i=e.visitEachChild(r,T,t);return D(n,0,0),i}(n);case 233:return function(r,n){var i=256&a?x(7104,512):x(6976,128),o=e.visitEachChild(r,T,t);return D(i,0,0),o}(n);case 244:case 243:return function(r){if(s){var n=244===r.kind?2:4;if(!(r.label&&s.labels&&s.labels.get(e.idText(r.label))||!r.label&&s.allowedNonLabeledJumps&n)){var i=void 0,a=r.label;a?244===r.kind?(i="break-"+a.escapedText,be(s,!0,e.idText(a),i)):(i="continue-"+a.escapedText,be(s,!1,e.idText(a),i)):244===r.kind?(s.nonLocalJumps|=2,i="break"):(s.nonLocalJumps|=4,i="continue");var o=u.createStringLiteral(i);if(s.loopOutParameters.length){for(var c=s.loopOutParameters,l=void 0,_=0;_<c.length;_++){var d=he(c[_],1);l=0===_?d:u.createBinaryExpression(l,27,d)}o=u.createBinaryExpression(l,27,o)}return u.createReturnStatement(o)}}return e.visitEachChild(r,T,t)}(n);case 248:return function(t){s&&!s.labels&&(s.labels=new e.Map);var r=e.unwrapInnermostStatementOfLabel(t,s&&Z);return e.isIterationStatement(r,!1)?function(e,t){switch(e.kind){case 238:case 239:return re(e,t);case 240:return ne(e,t);case 241:return ie(e,t);case 242:return ae(e,t)}}(r,t):u.restoreEnclosingLabel(e.visitNode(r,T,e.isStatement,u.liftToBlock),t,s&&ee)}(n);case 238:case 239:return re(n,void 0);case 240:return ne(n,void 0);case 241:return ie(n,void 0);case 242:return ae(n,void 0);case 236:case 215:return function(r){return e.visitEachChild(r,C,t)}(n);case 203:return function(r){for(var n=r.properties,i=-1,o=!1,s=0;s<n.length;s++){var c=n[s];if(524288&c.transformFlags&&4&a||(o=160===e.Debug.checkDefined(c.name).kind)){i=s;break}}if(i<0)return e.visitEachChild(r,T,t);var l=u.createTempVariable(g),_=[],d=u.createAssignment(l,e.setEmitFlags(u.createObjectLiteralExpression(e.visitNodes(n,T,e.isObjectLiteralElementLike,0,i),r.multiLine),o?65536:0));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 170:case 171:var l=e.getAllAccessorDeclarations(r.properties,c);c===l.firstAccessor&&t.push(q(n,l,r,!!r.multiLine));break;case 167:t.push(Te(c,n,r,r.multiLine));break;case 291:t.push(Se(c,n,r.multiLine));break;case 292:t.push(Ee(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}}(_,r,l,i),_.push(r.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(u.cloneNode(l),l),l.parent)):l),u.inlineExpressions(_)}(n);case 290:return function(r){var n,a,o,s,c=x(7104,0);if(e.Debug.assert(!!r.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(r.variableDeclaration.name)){var l=u.createTempVariable(void 0),_=u.createVariableDeclaration(l);e.setTextRange(_,r.variableDeclaration);var d=e.flattenDestructuringBinding(r.variableDeclaration,T,t,0,l),p=u.createVariableDeclarationList(d);e.setTextRange(p,r.variableDeclaration);var f=u.createVariableStatement(void 0,p);n=u.updateCatchClause(r,_,(a=r.block,o=f,s=e.visitNodes(a.statements,T,e.isStatement),u.updateBlock(a,i([o],s,!0))))}else n=e.visitEachChild(r,T,t);return D(c,0,0),n}(n);case 292:return function(t){return e.setTextRange(u.createPropertyAssignment(t.name,w(u.cloneNode(t.name))),t)}(n);case 160:case 222:return function(r){return e.visitEachChild(r,T,t)}(n);case 202:return function(r){return e.some(r.elements,e.isSpreadElement)?ke(r.elements,!1,!!r.multiLine,!!r.elements.hasTrailingComma):e.visitEachChild(r,T,t)}(n);case 206:return function(t){if(33554432&e.getEmitFlags(t))return function(t){var r=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock),n=function(t){return e.isVariableStatement(t)&&!!e.first(t.declarationList.declarations).initializer},i=s;s=void 0;var a=e.visitNodes(r.statements,k,e.isStatement);s=i;var o=e.filter(a,n),c=e.filter(a,(function(e){return!n(e)})),l=e.cast(e.first(o),e.isVariableStatement).declarationList.declarations[0],_=e.skipOuterExpressions(l.initializer),d=e.tryCast(_,e.isAssignmentExpression);!d&&e.isBinaryExpression(_)&&27===_.operatorToken.kind&&(d=e.tryCast(_.left,e.isAssignmentExpression));var p=e.cast(d?e.skipOuterExpressions(d.right):_,e.isCallExpression),f=e.cast(e.skipOuterExpressions(p.expression),e.isFunctionExpression),g=f.body.statements,m=0,y=-1,h=[];if(d){var v=e.tryCast(g[m],e.isExpressionStatement);v&&(h.push(v),m++),h.push(g[m]),m++,h.push(u.createExpressionStatement(u.createAssignment(d.left,e.cast(l.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(g,y));)y--;return e.addRange(h,g,m,y),y<-1&&e.addRange(h,g,y+1),e.addRange(h,c),e.addRange(h,o,1),u.restoreOuterExpressions(t.expression,u.restoreOuterExpressions(l.initializer,u.restoreOuterExpressions(d&&d.right,u.updateCallExpression(p,u.restoreOuterExpressions(p.expression,u.updateFunctionExpression(f,void 0,void 0,void 0,void 0,f.parameters,void 0,u.updateBlock(f.body,h))),void 0,p.arguments))))}(t);var r=e.skipOuterExpressions(t.expression);return 106===r.kind||e.isSuperProperty(r)||e.some(t.arguments,e.isSpreadElement)?Ce(t,!0):u.updateCallExpression(t,e.visitNode(t.expression,A,e.isExpression),void 0,e.visitNodes(t.arguments,T,e.isExpression))}(n);case 207:return function(r){if(e.some(r.arguments,e.isSpreadElement)){var n=u.createCallBinding(u.createPropertyAccessExpression(r.expression,"bind"),g),a=n.target,o=n.thisArg;return u.createNewExpression(u.createFunctionApplyCall(e.visitNode(a,T,e.isExpression),o,ke(u.createNodeArray(i([u.createVoidZero()],r.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(r,T,t)}(n);case 210:return function(r,n){return e.visitEachChild(r,n?C:T,t)}(n,o);case 219:return X(n,o);case 346:return function(r,n){if(n)return e.visitEachChild(r,C,t);for(var i,a=0;a<r.elements.length;a++){var o=r.elements[a],s=e.visitNode(o,a<r.elements.length-1?C:T,e.isExpression);(i||s!==o)&&(i||(i=r.elements.slice(0,a)),i.push(s))}var c=i?e.setTextRange(u.createNodeArray(i),r.elements):r.elements;return u.updateCommaListExpression(r,c)}(n,o);case 14:case 15:case 16:case 17:return function(t){return e.setTextRange(u.createStringLiteral(t.text),t)}(n);case 10:return function(t){return t.hasExtendedUnicodeEscape?e.setTextRange(u.createStringLiteral(t.text),t):t}(n);case 8:return function(t){return 384&t.numericLiteralFlags?e.setTextRange(u.createNumericLiteral(t.text),t):t}(n);case 208:return function(n){return e.processTaggedTemplateExpression(t,n,T,r,b,e.ProcessLevel.All)}(n);case 221: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(u.createStringLiteral(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,T,e.isExpression)),0!==a.literal.text.length&&t.push(u.createStringLiteral(a.literal.text))}}(r,t);var n=e.reduceLeft(r,u.createAdd);return e.nodeIsSynthesized(n)&&e.setTextRange(n,t),n}(n);case 223:return function(t){return e.visitNode(t.expression,T,e.isExpression)}(n);case 106:return Pe(!1);case 108:return function(e){return 2&a&&!(16384&a)&&(a|=65536),s?2&a?(s.containsLexicalThis=!0,e):s.thisName||(s.thisName=u.createUniqueName("this")):e}(n);case 229:return function(e){return 103===e.keywordToken&&"target"===e.name.escapedText?(a|=32768,u.createUniqueName("_newTarget",48)):e}(n);case 167:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=H(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(u.createPropertyAssignment(t.name,r),t)}(n);case 170:case 171:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=s;s=void 0;var i,a=x(32670,65),o=e.visitParameterList(r.parameters,T,t),c=Y(r);return i=170===r.kind?u.updateGetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,o,r.type,c):u.updateSetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,o,c),D(a,98304,0),s=n,i}(n);case 235:return function(r){var n,i=x(0,e.hasSyntacticModifier(r,1)?32:0);if(s&&0==(3&r.declarationList.flags)&&!function(t){return 1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer))}(r)){for(var a=void 0,o=0,c=r.declarationList.declarations;o<c.length;o++){var l=c[o];if(ge(s,l),l.initializer){var _=void 0;e.isBindingPattern(l.name)?_=e.flattenDestructuringAssignment(l,T,t,0):(_=u.createBinaryExpression(l.name,63,e.visitNode(l.initializer,T,e.isExpression)),e.setTextRange(_,l)),a=e.append(a,_)}}n=a?e.setTextRange(u.createExpressionStatement(u.inlineExpressions(a)),r):void 0}else n=e.visitEachChild(r,T,t);return D(i,0,0),n}(n);case 245:return function(r){return s?(s.nonLocalJumps|=8,S(r)&&(r=F(r)),u.createReturnStatement(u.createObjectLiteralExpression([u.createPropertyAssignment(u.createIdentifier("value"),r.expression?e.visitNode(r.expression,T,e.isExpression):u.createVoidZero())]))):S(r)?F(r):e.visitEachChild(r,T,t)}(n);default:return e.visitEachChild(n,T,t)}}function F(t){return e.setOriginalNode(u.createReturnStatement(u.createUniqueName("_this",48)),t)}function w(e){return s&&y.isArgumentsLocalBinding(e)?s.argumentsName||(s.argumentsName=u.createUniqueName("arguments")):e}function P(i){i.name&&Ie();var o=e.getClassExtendsHeritageElement(i),c=u.createFunctionExpression(void 0,void 0,void 0,void 0,o?[u.createParameterDeclaration(void 0,void 0,void 0,u.createUniqueName("_super",48))]:[],void 0,function(i,o){var c=[],l=u.getInternalName(i),g=e.isIdentifierANonContextualKeyword(l)?u.getGeneratedNameForNode(l):l;d(),function(t,r,n){n&&t.push(e.setTextRange(u.createExpressionStatement(_().createExtendsHelper(u.getInternalName(r))),n))}(c,i,o),function(r,n,i,o){var c=s;s=void 0;var l=x(32662,73),_=e.getFirstConstructorWithBody(n),d=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)||236!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||206!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||106!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||223!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(_,void 0!==o),g=u.createFunctionDeclaration(void 0,void 0,void 0,i,void 0,function(r,n){return e.visitParameterList(r&&!n?r.parameters:void 0,T,t)||[]}(_,d),void 0,function(t,r,n,i){var o=!!n&&104!==e.skipOuterExpressions(n.expression).kind;if(!t)return function(t,r){var n=[];p(),u.mergeLexicalEnvironment(n,f()),r&&n.push(u.createReturnStatement(L()));var i=u.createNodeArray(n);e.setTextRange(i,t.members);var a=u.createBlock(i,!0);return e.setTextRange(a,t),e.setEmitFlags(a,1536),a}(r,o);var s=[],c=[];p();var l,_=0;if(i||(_=u.copyStandardPrologue(t.body.statements,s,!1)),R(c,t),J(c,t,i),i||(_=u.copyCustomPrologue(t.body.statements,c,_,T)),i)l=L();else if(o&&_<t.body.statements.length){var d=t.body.statements[_];e.isExpressionStatement(d)&&e.isSuperCall(d.expression)&&(l=function(e){return Ce(e,!1)}(d.expression))}if(l&&(a|=8192,_++),e.addRange(c,e.visitNodes(t.body.statements,T,e.isStatement,_)),u.mergeLexicalEnvironment(s,f()),K(s,t,!1),o)if(!l||_!==t.body.statements.length||8192&t.body.transformFlags)U(c,t,l||O()),I(t.body)||c.push(u.createReturnStatement(u.createUniqueName("_this",48)));else{var g=e.cast(e.cast(l,e.isBinaryExpression).left,e.isCallExpression),m=u.createReturnStatement(l);e.setCommentRange(m,e.getCommentRange(g)),e.setEmitFlags(g,1536),c.push(m)}else V(s,t);var y=u.createBlock(e.setTextRange(u.createNodeArray(e.concatenate(s,c)),t.body.statements),!0);return e.setTextRange(y,t.body),y}(_,n,o,d));e.setTextRange(g,_||n),o&&e.setEmitFlags(g,8),r.push(g),D(l,98304,0),s=c}(c,i,g,o),function(t,n){for(var i=0,a=n.members;i<a.length;i++){var o=a[i];switch(o.kind){case 232:t.push(z(o));break;case 167:t.push(G(Oe(n,o),o,n));break;case 170:case 171:var s=e.getAllAccessorDeclarations(n.members,o);o===s.firstAccessor&&t.push(W(Oe(n,o),s,n));break;case 169:case 168:break;default:e.Debug.failBadSyntaxKind(o,r&&r.fileName)}}}(c,i);var m=e.createTokenRange(e.skipTrivia(n,i.members.end),19),y=u.createPartiallyEmittedExpression(g);e.setTextRangeEnd(y,m.end),e.setEmitFlags(y,1536);var h=u.createReturnStatement(y);e.setTextRangePos(h,m.pos),e.setEmitFlags(h,1920),c.push(h),e.insertStatementsAfterStandardPrologue(c,f());var v=u.createBlock(e.setTextRange(u.createNodeArray(c),i.members),!0);return e.setEmitFlags(v,1536),v}(i,o));e.setEmitFlags(c,65536&e.getEmitFlags(i)|524288);var l=u.createPartiallyEmittedExpression(c);e.setTextRangeEnd(l,i.end),e.setEmitFlags(l,1536);var g=u.createPartiallyEmittedExpression(l);e.setTextRangeEnd(g,e.skipTrivia(n,i.pos)),e.setEmitFlags(g,1536);var m=u.createParenthesizedExpression(u.createCallExpression(g,void 0,o?[e.visitNode(o.expression,T,e.isExpression)]:[]));return e.addSyntheticLeadingComment(m,3,"* @class "),m}function I(t){if(245===t.kind)return!0;if(237===t.kind){var r=t;if(r.elseStatement)return I(r.thenStatement)&&I(r.elseStatement)}else if(233===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&I(n))return!0}return!1}function O(){return e.setEmitFlags(u.createThis(),4)}function L(){return u.createLogicalOr(u.createLogicalAnd(u.createStrictInequality(u.createUniqueName("_super",48),u.createNull()),u.createFunctionApplyCall(u.createUniqueName("_super",48),O(),u.createIdentifier("arguments"))),O())}function M(t){return void 0!==t.initializer||e.isBindingPattern(t.name)}function R(t,r){if(!e.some(r.parameters,M))return!1;for(var n=!1,i=0,a=r.parameters;i<a.length;i++){var o=a[i],s=o.name,c=o.initializer;o.dotDotDotToken||(e.isBindingPattern(s)?n=B(t,o,s,c)||n:c&&(j(t,o,s,c),n=!0))}return n}function B(r,n,i,a){return i.elements.length>0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(n,T,t,0,u.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(n),e.visitNode(a,T,e.isExpression))),1048576)),!0)}function j(t,r,n,i){i=e.visitNode(i,T,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function J(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?u.cloneNode(o.name):s,l=n.parameters.length-1,_=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var d=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(_,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(_,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(_),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?_:u.createSubtract(_,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),_))),o))]));return e.setEmitFlags(d,1048576),e.startOnNewLine(d),a.push(d),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,T,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function V(e,t){return!!(65536&a&&212!==t.kind)&&(U(e,t,u.createThis()),!0)}function U(r,n,i){0==(1&l)&&(l|=1,t.enableSubstitution(108),t.enableEmitNotification(169),t.enableEmitNotification(167),t.enableEmitNotification(170),t.enableEmitNotification(171),t.enableEmitNotification(212),t.enableEmitNotification(211),t.enableEmitNotification(254));var a=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,i)]));e.setEmitFlags(a,1050112),e.setSourceMapRange(a,n),e.insertStatementAfterCustomPrologue(r,a)}function K(t,r,n){if(32768&a){var i=void 0;switch(r.kind){case 212:return t;case 167:case 170:case 171:i=u.createVoidZero();break;case 169:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 254:case 211:i=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),102,u.getLocalName(r))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function z(t){return e.setTextRange(u.createEmptyStatement(),t)}function G(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=H(n,n,void 0,i),l=e.visitNode(n.name,T,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var _=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(r,_,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var d=e.createMemberAccessForPropertyName(u,r,l,n.name);a=u.createAssignment(d,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var p=e.setTextRange(u.createExpressionStatement(a),n);return e.setOriginalNode(p,n),e.setCommentRange(p,o),e.setEmitFlags(p,48),p}function W(t,r,n){var i=u.createExpressionStatement(q(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function q(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,T,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var _=e.createExpressionForPropertyName(u,l);e.setEmitFlags(_,1552),e.setSourceMapRange(_,a.name);var d=[];if(o){var p=H(o,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(o)),e.setEmitFlags(p,512);var f=u.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(o)),d.push(f)}if(s){var g=H(s,void 0,void 0,n);e.setSourceMapRange(g,e.getSourceMapRange(s)),e.setEmitFlags(g,512);var m=u.createPropertyAssignment("set",g);e.setCommentRange(m,e.getCommentRange(s)),d.push(m)}d.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var y=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,_,u.createObjectLiteralExpression(d,!0)]);return i&&e.startOnNewLine(y),y}function H(r,n,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.isStatic(r)?x(32670,73):x(32670,65),_=e.visitParameterList(r.parameters,T,t),d=Y(r);return 32768&a&&!i&&(254===r.kind||211===r.kind)&&(i=u.getGeneratedNameForNode(r)),D(l,98304,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,r.asteriskToken,i,void 0,_,void 0,d),n),r)}function Y(t){var n,i,a,o=!1,s=!1,c=[],l=[],_=t.body;if(p(),e.isBlock(_)&&(a=u.copyStandardPrologue(_.statements,c,!1),a=u.copyCustomPrologue(_.statements,l,a,T,e.isHoistedFunction),a=u.copyCustomPrologue(_.statements,l,a,T,e.isHoistedVariableStatement)),o=R(l,t)||o,o=J(l,t,!1)||o,e.isBlock(_))a=u.copyCustomPrologue(_.statements,l,a,T),n=_.statements,e.addRange(l,e.visitNodes(_.statements,T,e.isStatement,a)),!o&&_.multiLine&&(o=!0);else{e.Debug.assert(212===t.kind),n=e.moveRangeEnd(_,-1);var d=t.equalsGreaterThanToken;e.nodeIsSynthesized(d)||e.nodeIsSynthesized(_)||(e.rangeEndIsOnSameLineAsRangeStart(d,_,r)?s=!0:o=!0);var g=e.visitNode(_,T,e.isExpression),m=u.createReturnStatement(g);e.setTextRange(m,_),e.moveSyntheticComments(m,_),e.setEmitFlags(m,1440),l.push(m),i=_}if(u.mergeLexicalEnvironment(c,f()),K(c,t,!1),V(c,t),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(_)&&e.arrayIsEqualTo(l,_.statements))return _;var y=u.createBlock(e.setTextRange(u.createNodeArray(l),n),o);return e.setTextRange(y,t.body),!o&&s&&e.setEmitFlags(y,1),i&&e.setTokenSourceMapRange(y,19,i),e.setOriginalNode(y,t.body),y}function X(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,T,t,0,!n):27===r.operatorToken.kind?u.updateBinaryExpression(r,e.visitNode(r.left,C,e.isExpression),r.operatorToken,e.visitNode(r.right,n?C:T,e.isExpression)):e.visitEachChild(r,T,t)}function Q(r){var n=r.name;return e.isBindingPattern(n)?$(r):!r.initializer&&function(e){var t=y.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&a)||r&&n&&0!=(512&a))&&0==(4096&a)&&(!y.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&a))}(r)?u.updateVariableDeclaration(r,r.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(r,T,t)}function $(r){var n,i=x(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,T,t,0,void 0,0!=(32&i)):e.visitEachChild(r,T,t),D(i,0,0),n}function Z(t){s.labels.set(e.idText(t.label),!0)}function ee(t){s.labels.set(e.idText(t.label),!1)}function te(r,n,i,o,c){var l=x(r,n),_=function(r,n,i,o){if(!pe(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(r,n,void 0,i):u.restoreEnclosingLabel(e.isForStatement(r)?function(t){return u.updateForStatement(t,e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.condition,T,e.isExpression),e.visitNode(t.incrementor,C,e.isExpression),e.visitNode(t.statement,T,e.isStatement,u.liftToBlock))}(r):e.visitEachChild(r,T,t),n,s&&ee);return s&&(s.allowedNonLabeledJumps=c),l}var _=function(t){var r;switch(t.kind){case 240:case 241:case 242:var n=t.initializer;n&&253===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=_e(t),c=0,l=r.declarations;c<l.length;c++)De(t,l[c],i,a,o);var u={loopParameters:i,loopOutParameters:a};return s&&(s.argumentsName&&(u.argumentsName=s.argumentsName),s.thisName&&(u.thisName=s.thisName),s.hoistedLocalVariables&&(u.hoistedLocalVariables=s.hoistedLocalVariables)),u}(r),p=[],g=s;s=_;var m,y,h,v,b,x=_e(r)?function(t,r){var n=u.createUniqueName("_loop_init"),i=0!=(524288&t.initializer.transformFlags),o=0;r.containsLexicalThis&&(o|=8),i&&4&a&&(o|=262144);var s=[];return s.push(u.createVariableStatement(void 0,t.initializer)),ve(r.loopOutParameters,2,1,s),{functionName:n,containsYield:i,functionDeclaration:u.createVariableStatement(void 0,e.setEmitFlags(u.createVariableDeclarationList([u.createVariableDeclaration(n,void 0,void 0,e.setEmitFlags(u.createFunctionExpression(void 0,i?u.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(u.createBlock(s,!0),T,e.isBlock)),o))]),2097152)),part:u.createVariableDeclarationList(e.map(r.loopOutParameters,ye))}}(r,_):void 0,D=fe(r)?function(t,r,n){var i=u.createUniqueName("_loop");d();var o=e.visitNode(t.statement,T,e.isStatement,u.liftToBlock),s=f(),c=[];(de(t)||function(t){return e.isForStatement(t)&&!!t.incrementor&&ue(t.incrementor)}(t))&&(r.conditionVariable=u.createUniqueName("inc"),t.incrementor?c.push(u.createIfStatement(r.conditionVariable,u.createExpressionStatement(e.visitNode(t.incrementor,T,e.isExpression)),u.createExpressionStatement(u.createAssignment(r.conditionVariable,u.createTrue())))):c.push(u.createIfStatement(u.createLogicalNot(r.conditionVariable),u.createExpressionStatement(u.createAssignment(r.conditionVariable,u.createTrue())))),de(t)&&c.push(u.createIfStatement(u.createPrefixUnaryExpression(53,e.visitNode(t.condition,T,e.isExpression)),e.visitNode(u.createBreakStatement(),T,e.isStatement)))),e.isBlock(o)?e.addRange(c,o.statements):c.push(o),ve(r.loopOutParameters,1,1,c),e.insertStatementsAfterStandardPrologue(c,s);var l=u.createBlock(c,!0);e.isBlock(o)&&e.setOriginalNode(l,o);var _=0!=(524288&t.statement.transformFlags),p=524288;r.containsLexicalThis&&(p|=8),_&&0!=(4&a)&&(p|=262144);var g=u.createVariableStatement(void 0,e.setEmitFlags(u.createVariableDeclarationList([u.createVariableDeclaration(i,void 0,void 0,e.setEmitFlags(u.createFunctionExpression(void 0,_?u.createToken(41):void 0,void 0,void 0,r.loopParameters,void 0,l),p))]),2097152)),m=function(t,r,n,i){var a=[],o=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),s=u.createCallExpression(t,void 0,e.map(r.loopParameters,(function(e){return e.name}))),c=i?u.createYieldExpression(u.createToken(41),e.setEmitFlags(s,8388608)):s;if(o)a.push(u.createExpressionStatement(c)),ve(r.loopOutParameters,1,0,a);else{var l=u.createUniqueName("state"),_=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(l,void 0,void 0,c)]));if(a.push(_),ve(r.loopOutParameters,1,0,a),8&r.nonLocalJumps){var d=void 0;n?(n.nonLocalJumps|=8,d=u.createReturnStatement(l)):d=u.createReturnStatement(u.createPropertyAccessExpression(l,"value")),a.push(u.createIfStatement(u.createTypeCheck(l,"object"),d))}if(2&r.nonLocalJumps&&a.push(u.createIfStatement(u.createStrictEquality(l,u.createStringLiteral("break")),u.createBreakStatement())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var p=[];xe(r.labeledNonLocalBreaks,!0,l,n,p),xe(r.labeledNonLocalContinues,!1,l,n,p),a.push(u.createSwitchStatement(l,u.createCaseBlock(p)))}}return a}(i,r,n,_);return{functionName:i,containsYield:_,functionDeclaration:g,part:m}}(r,_,g):void 0;if(s=g,x&&p.push(x.functionDeclaration),D&&p.push(D.functionDeclaration),function(e,t,r){var n;if(t.argumentsName&&(r?r.argumentsName=t.argumentsName:(n||(n=[])).push(u.createVariableDeclaration(t.argumentsName,void 0,void 0,u.createIdentifier("arguments")))),t.thisName&&(r?r.thisName=t.thisName:(n||(n=[])).push(u.createVariableDeclaration(t.thisName,void 0,void 0,u.createIdentifier("this")))),t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{n||(n=[]);for(var i=0,a=t.hoistedLocalVariables;i<a.length;i++){var o=a[i];n.push(u.createVariableDeclaration(o))}}if(t.loopOutParameters.length){n||(n=[]);for(var s=0,c=t.loopOutParameters;s<c.length;s++){var l=c[s];n.push(u.createVariableDeclaration(l.outParamName))}}t.conditionVariable&&(n||(n=[]),n.push(u.createVariableDeclaration(t.conditionVariable,void 0,void 0,u.createFalse()))),n&&e.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(n)))}(p,_,g),x&&p.push((y=x.functionName,h=x.containsYield,v=u.createCallExpression(y,void 0,[]),b=h?u.createYieldExpression(u.createToken(41),e.setEmitFlags(v,8388608)):v,u.createExpressionStatement(b))),D)if(o)m=o(r,n,D.part,i);else{var S=me(r,x,u.createBlock(D.part,!0));m=u.restoreEnclosingLabel(S,n,s&&ee)}else{var E=me(r,x,e.visitNode(r.statement,T,e.isStatement,u.liftToBlock));m=u.restoreEnclosingLabel(E,n,s&&ee)}return p.push(m),p}(i,o,l,c);return D(l,0,0),_}function re(e,t){return te(0,1280,e,t)}function ne(e,t){return te(5056,3328,e,t)}function ie(e,t){return te(3008,5376,e,t)}function ae(e,t){return te(3008,5376,e,t,m.downlevelIteration?le:ce)}function oe(r,n,i){var a=[],o=r.initializer;if(e.isVariableDeclarationList(o)){3&r.initializer.flags&&Ie();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,T,t,0,n),l=e.setTextRange(u.createVariableDeclarationList(c),r.initializer);e.setOriginalNode(l,r.initializer),e.setSourceMapRange(l,e.createRange(c[0].pos,e.last(c).end)),a.push(u.createVariableStatement(void 0,l))}else a.push(e.setTextRange(u.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(s?s.name:u.createTempVariable(void 0),void 0,void 0,n)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var _=u.createAssignment(o,n);e.isDestructuringAssignment(_)?a.push(u.createExpressionStatement(X(_,!0))):(e.setTextRangeEnd(_,o.end),a.push(e.setTextRange(u.createExpressionStatement(e.visitNode(_,T,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return se(e.addRange(a,i));var d=e.visitNode(r.statement,T,e.isStatement,u.liftToBlock);return e.isBlock(d)?u.updateBlock(d,e.setTextRange(u.createNodeArray(e.concatenate(a,d.statements)),d.statements)):(a.push(d),se(a))}function se(t){return e.setEmitFlags(u.createBlock(u.createNodeArray(t),!0),432)}function ce(t,r,n){var i=e.visitNode(t.expression,T,e.isExpression),a=u.createLoopVariable(),o=e.isIdentifier(i)?u.getGeneratedNameForNode(i):u.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var c=e.setTextRange(u.createForStatement(e.setEmitFlags(e.setTextRange(u.createVariableDeclarationList([e.setTextRange(u.createVariableDeclaration(a,void 0,void 0,u.createNumericLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(u.createVariableDeclaration(o,void 0,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(u.createLessThan(a,u.createPropertyAccessExpression(o,"length")),t.expression),e.setTextRange(u.createPostfixIncrement(a),t.expression),oe(t,u.createElementAccessExpression(o,a),n)),t);return e.setEmitFlags(c,256),e.setTextRange(c,t),u.restoreEnclosingLabel(c,r,s&&ee)}function le(t,r,n,i){var a=e.visitNode(t.expression,T,e.isExpression),o=e.isIdentifier(a)?u.getGeneratedNameForNode(a):u.createTempVariable(void 0),c=e.isIdentifier(a)?u.getGeneratedNameForNode(o):u.createTempVariable(void 0),l=u.createUniqueName("e"),d=u.getGeneratedNameForNode(l),p=u.createTempVariable(void 0),f=e.setTextRange(_().createValuesHelper(a),t.expression),m=u.createCallExpression(u.createPropertyAccessExpression(o,"next"),void 0,[]);g(l),g(p);var y=1024&i?u.inlineExpressions([u.createAssignment(l,u.createVoidZero()),f]):f,h=e.setEmitFlags(e.setTextRange(u.createForStatement(e.setEmitFlags(e.setTextRange(u.createVariableDeclarationList([e.setTextRange(u.createVariableDeclaration(o,void 0,void 0,y),t.expression),u.createVariableDeclaration(c,void 0,void 0,m)]),t.expression),2097152),u.createLogicalNot(u.createPropertyAccessExpression(c,"done")),u.createAssignment(c,m),oe(t,u.createPropertyAccessExpression(c,"value"),n)),t),256);return u.createTryStatement(u.createBlock([u.restoreEnclosingLabel(h,r,s&&ee)]),u.createCatchClause(u.createVariableDeclaration(d),e.setEmitFlags(u.createBlock([u.createExpressionStatement(u.createAssignment(l,u.createObjectLiteralExpression([u.createPropertyAssignment("error",d)])))]),1)),u.createBlock([u.createTryStatement(u.createBlock([e.setEmitFlags(u.createIfStatement(u.createLogicalAnd(u.createLogicalAnd(c,u.createLogicalNot(u.createPropertyAccessExpression(c,"done"))),u.createAssignment(p,u.createPropertyAccessExpression(o,"return"))),u.createExpressionStatement(u.createFunctionCallCall(p,o,[]))),1)]),void 0,e.setEmitFlags(u.createBlock([e.setEmitFlags(u.createIfStatement(l,u.createThrowStatement(u.createPropertyAccessExpression(l,"error"))),1)]),1))]))}function ue(e){return 0!=(131072&y.getNodeCheckFlags(e))}function _e(t){return e.isForStatement(t)&&!!t.initializer&&ue(t.initializer)}function de(t){return e.isForStatement(t)&&!!t.condition&&ue(t.condition)}function pe(e){return fe(e)||_e(e)}function fe(e){return 0!=(65536&y.getNodeCheckFlags(e))}function ge(t,r){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function r(n){if(79===n.kind)t.hoistedLocalVariables.push(n);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||r(o.name)}}(r.name)}function me(t,r,n){switch(t.kind){case 240:return function(t,r,n){var i=t.condition&&ue(t.condition),a=i||t.incrementor&&ue(t.incrementor);return u.updateForStatement(t,e.visitNode(r?r.part:t.initializer,C,e.isForInitializer),e.visitNode(i?void 0:t.condition,T,e.isExpression),e.visitNode(a?void 0:t.incrementor,C,e.isExpression),n)}(t,r,n);case 241:return function(t,r){return u.updateForInStatement(t,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),r)}(t,n);case 242:return function(t,r){return u.updateForOfStatement(t,void 0,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),r)}(t,n);case 238:return function(t,r){return u.updateDoStatement(t,r,e.visitNode(t.expression,T,e.isExpression))}(t,n);case 239:return function(t,r){return u.updateWhileStatement(t,e.visitNode(t.expression,T,e.isExpression),r)}(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function ye(e){return u.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function he(e,t){var r=0===t?e.outParamName:e.originalName,n=0===t?e.originalName:e.outParamName;return u.createBinaryExpression(n,63,r)}function ve(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&t&&n.push(u.createExpressionStatement(he(o,r)))}}function be(t,r,n,i){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=new e.Map),t.labeledNonLocalBreaks.set(n,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=new e.Map),t.labeledNonLocalContinues.set(n,i))}function xe(e,t,r,n,i){e&&e.forEach((function(e,a){var o=[];if(!n||n.labels&&n.labels.get(a)){var s=u.createIdentifier(a);o.push(t?u.createBreakStatement(s):u.createContinueStatement(s))}else be(n,t,a,e),o.push(u.createReturnStatement(r));i.push(u.createCaseClause(u.createStringLiteral(e),o))}))}function De(t,r,n,i,a){var o=r.name;if(e.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var l=c[s];e.isOmittedExpression(l)||De(t,l,n,i,a)}else{n.push(u.createParameterDeclaration(void 0,void 0,void 0,o));var _=y.getNodeCheckFlags(r);if(4194304&_||a){var d=u.createUniqueName("out_"+e.idText(o)),p=0;4194304&_&&(p|=1),e.isForStatement(t)&&t.initializer&&y.isBindingCapturedByNode(t.initializer,r)&&(p|=2),i.push({flags:p,originalName:o,outParamName:d})}}}function Se(t,r,n){var i=u.createAssignment(e.createMemberAccessForPropertyName(u,r,e.visitNode(t.name,T,e.isPropertyName)),e.visitNode(t.initializer,T,e.isExpression));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function Ee(t,r,n){var i=u.createAssignment(e.createMemberAccessForPropertyName(u,r,e.visitNode(t.name,T,e.isPropertyName)),u.cloneNode(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function Te(t,r,n,i){var a=u.createAssignment(e.createMemberAccessForPropertyName(u,r,e.visitNode(t.name,T,e.isPropertyName)),H(t,t,void 0,n));return e.setTextRange(a,t),i&&e.startOnNewLine(a),a}function Ce(r,n){if(16384&r.transformFlags||106===r.expression.kind||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=u.createCallBinding(r.expression,g),a=i.target,o=i.thisArg;106===r.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=16384&r.transformFlags?u.createFunctionApplyCall(e.visitNode(a,A,e.isExpression),106===r.expression.kind?o:e.visitNode(o,T,e.isExpression),ke(r.arguments,!0,!1,!1)):e.setTextRange(u.createFunctionCallCall(e.visitNode(a,A,e.isExpression),106===r.expression.kind?o:e.visitNode(o,T,e.isExpression),e.visitNodes(r.arguments,T,e.isExpression)),r),106===r.expression.kind){var c=u.createLogicalOr(s,O());s=n?u.createAssignment(u.createUniqueName("_this",48),c):c}return e.setOriginalNode(s,r)}return e.visitEachChild(r,T,t)}function ke(t,r,n,i){var a=t.length,o=e.flatten(e.spanMap(t,Ae,(function(e,t,r,o){return t(e,n,i&&o===a)})));if(1===o.length){var s=o[0];if(r&&!m.downlevelIteration||e.isPackedArrayLiteral(s.expression)||e.isCallToHelper(s.expression,"___spreadArray"))return s.expression}for(var c=_(),l=0!==o[0].kind,d=l?u.createArrayLiteralExpression():o[0].expression,p=l?0:1;p<o.length;p++){var f=o[p];d=c.createSpreadArrayHelper(d,f.expression,1===f.kind&&!r)}return d}function Ae(t){return e.isSpreadElement(t)?Ne:we}function Ne(t){return e.map(t,Fe)}function Fe(t){var r=e.visitNode(t.expression,T,e.isExpression),n=e.isCallToHelper(r,"___read"),i=n||e.isPackedArrayLiteral(r)?2:1;return!m.downlevelIteration||1!==i||e.isArrayLiteralExpression(r)||n||(r=_().createReadHelper(r,void 0),i=2),c(i,r)}function we(t,r,n){return c(0,u.createArrayLiteralExpression(e.visitNodes(u.createNodeArray(t,n),T,e.isExpression),r))}function Pe(e){return 8&a&&!e?u.createPropertyAccessExpression(u.createUniqueName("_super",48),"prototype"):u.createUniqueName("_super",48)}function Ie(){0==(2&l)&&(l|=2,t.enableSubstitution(79))}function Oe(t,r){return e.isStatic(r)?u.getInternalName(t):u.createPropertyAccessExpression(u.getInternalName(t),"prototype")}}}(u||(u={})),function(e){e.transformES5=function(t){var r,n,i=t.factory,a=t.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(r=t.onEmitNode,t.onEmitNode=function(t,i,a){switch(i.kind){case 278:case 279:case 277:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(278),t.enableEmitNotification(279),t.enableEmitNotification(277),n=[]);var o=t.onSubstituteNode;return t.onSubstituteNode=function(t,r){return r.id&&n&&n[r.id]?o(t,r):(r=o(t,r),e.isPropertyAccessExpression(r)?function(t){if(e.isPrivateIdentifier(t.name))return t;var r=s(t.name);return r?e.setTextRange(i.createElementAccessExpression(t.expression,r),t):t}(r):e.isPropertyAssignment(r)?function(t){var r=e.isIdentifier(t.name)&&s(t.name);return r?i.updatePropertyAssignment(t,r,t.initializer):t}(r):r)},t.enableSubstitution(204),t.enableSubstitution(291),e.chainBundle(t,(function(e){return e}));function s(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(void 0!==r&&r>=81&&r<=116)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(u||(u={})),function(e){var t,r,n,a,o;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(o||(o={})),e.transformGenerators=function(t){var r,n,a,o,s,c,l,u,_,d,p=t.factory,f=t.getEmitHelperFactory,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,y=t.hoistFunctionDeclaration,h=t.hoistVariableDeclaration,v=t.getCompilerOptions(),b=e.getEmitScriptTarget(v),x=t.getEmitResolver(),D=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=D(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=x.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(p.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var S,E,T,C,k,A,N,F,w,P,I,O,L=1,M=0,R=0;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||0==(1024&r.transformFlags))return r;var n=e.visitEachChild(r,B,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function B(r){var n=r.transformFlags;return o?function(r){switch(r.kind){case 238:case 239:return function(r){return o?(oe(),r=e.visitEachChild(r,B,t),ce(),r):e.visitEachChild(r,B,t)}(r);case 247:return function(r){return o&&re({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,B,t),o&&le(),r}(r);case 248:return function(r){return o&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,B,t),o&&ue(),r}(r);default:return j(r)}}(r):a?j(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 254:return J(t);case 211:return V(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):1024&n?e.visitEachChild(r,B,t):r}function j(r){switch(r.kind){case 254:return J(r);case 211:return V(r);case 170:case 171:return function(r){var n=a,i=o;return a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i,r}(r);case 235:return function(t){if(524288&t.transformFlags)H(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];h(i.name)}var a=e.getInitializedVariables(t.declarationList);if(0!==a.length)return e.setSourceMapRange(p.createExpressionStatement(p.inlineExpressions(e.map(a,Y))),t)}}(r);case 240:return function(r){o&&oe();var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i<a.length;i++){var s=a[i];h(s.name)}var c=e.getInitializedVariables(n);r=p.updateForStatement(r,c.length>0?p.inlineExpressions(e.map(c,Y)):void 0,e.visitNode(r.condition,B,e.isExpression),e.visitNode(r.incrementor,B,e.isExpression),e.visitIterationBody(r.statement,B,t))}else r=e.visitEachChild(r,B,t);return o&&ce(),r}(r);case 241:return function(r){o&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i<a.length;i++){var s=a[i];h(s.name)}r=p.updateForInStatement(r,n.declarations[0].name,e.visitNode(r.expression,B,e.isExpression),e.visitNode(r.statement,B,e.isStatement,p.liftToBlock))}else r=e.visitEachChild(r,B,t);return o&&ce(),r}(r);case 244:return function(r){if(o){var n=ge(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,B,t)}(r);case 243:return function(r){if(o){var n=me(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,B,t)}(r);case 245:return function(t){return r=e.visitNode(t.expression,B,e.isExpression),n=t,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(r?[he(2),r]:[he(2)])),n);var r,n}(r);default:return 524288&r.transformFlags?function(r){switch(r.kind){case 219:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){return X(r.right)?e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=ee(),n=Z();return De(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Te(r,n,t.left):Ee(r,n,t.left),De(n,e.visitNode(t.right,B,e.isExpression),t.right),te(r),n}(r):27===r.operatorToken.kind?K(r):p.updateBinaryExpression(r,$(e.visitNode(r.left,B,e.isExpression)),r.operatorToken,e.visitNode(r.right,B,e.isExpression)):e.visitEachChild(r,B,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if(X(i)){var a=void 0;switch(n.kind){case 204:a=p.updatePropertyAccessExpression(n,$(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 205:a=p.updateElementAccessExpression(n,$(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),$(e.visitNode(n.argumentExpression,B,e.isExpression)));break;default:a=e.visitNode(n,B,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(p.createAssignment(a,e.setTextRange(p.createBinaryExpression($(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,B,e.isExpression)),r)),r):p.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,B,e.isExpression))}return e.visitEachChild(r,B,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 346:return function(t){for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];e.isBinaryExpression(a)&&27===a.operatorToken.kind?r.push(K(a)):(X(a)&&r.length>0&&(Ce(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,B,e.isExpression)))}return p.inlineExpressions(r)}(r);case 220:return function(r){if(X(r.whenTrue)||X(r.whenFalse)){var n=ee(),i=ee(),a=Z();return Te(n,e.visitNode(r.condition,B,e.isExpression),r.condition),De(a,e.visitNode(r.whenTrue,B,e.isExpression),r.whenTrue),Se(i),te(n),De(a,e.visitNode(r.whenFalse,B,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,B,t)}(r);case 222:return function(t){var r,n=ee(),i=e.visitNode(t.expression,B,e.isExpression);return t.asteriskToken?function(e,t){Ce(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(f().createValuesHelper(i),t):i,t):function(e,t){Ce(6,[e],t)}(i,t),te(n),r=t,e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(C,"sent"),void 0,[]),r)}(r);case 202:return function(e){return z(e.elements,void 0,void 0,e.multiLine)}(r);case 203:return function(t){var r=t.properties,n=t.multiLine,i=Q(r),a=Z();De(a,p.createObjectLiteralExpression(e.visitNodes(r,B,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,(function(r,i){X(i)&&r.length>0&&(xe(p.createExpressionStatement(p.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(p,t,i,a),s=e.visitNode(o,B,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}),[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(a),a),a.parent)):a),p.inlineExpressions(o)}(r);case 205:return function(r){return X(r.argumentExpression)?p.updateElementAccessExpression(r,$(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,B,e.isExpression)):e.visitEachChild(r,B,t)}(r);case 206:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,X)){var n=p.createCallBinding(r.expression,h,b,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall($(e.visitNode(i,B,e.isLeftHandSideExpression)),a,z(r.arguments)),r),r)}return e.visitEachChild(r,B,t)}(r);case 207:return function(r){if(e.forEach(r.arguments,X)){var n=p.createCallBinding(p.createPropertyAccessExpression(r.expression,"bind"),h),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall($(e.visitNode(i,B,e.isExpression)),a,z(r.arguments,p.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,B,t)}(r);default:return e.visitEachChild(r,B,t)}}(r):2098176&r.transformFlags?e.visitEachChild(r,B,t):r}}function J(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,U(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return a?void y(r):r}function V(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,U(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return r}function U(t){var r=[],n=a,i=o,f=s,y=c,h=l,v=u,b=_,x=d,D=L,k=S,A=E,N=T,F=C;a=!0,o=!1,s=void 0,c=void 0,l=void 0,u=void 0,_=void 0,d=void 0,L=1,S=void 0,E=void 0,T=void 0,C=p.createTempVariable(void 0),g();var w=p.copyPrologue(t.statements,r,!1,B);G(t.statements,w);var P=ke();return e.insertStatementsAfterStandardPrologue(r,m()),r.push(p.createReturnStatement(P)),a=n,o=i,s=f,c=y,l=h,u=v,_=b,d=x,L=D,S=k,E=A,T=N,C=F,e.setTextRange(p.createBlock(r,t.multiLine),t)}function K(t){var r=[];return n(t.left),n(t.right),p.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(X(t)&&r.length>0&&(Ce(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,B,e.isExpression)))}}function z(t,r,n,a){var o,s=Q(t);if(s>0){o=Z();var c=e.visitNodes(t,B,e.isExpression,0,s);De(o,p.createArrayLiteralExpression(r?i([r],c,!0):c)),r=void 0}var l=e.reduceLeft(t,(function(t,n){if(X(n)&&t.length>0){var s=void 0!==o;o||(o=Z()),De(o,s?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(t,a)]):p.createArrayLiteralExpression(r?i([r],t,!0):t,a)),r=void 0,t=[]}return t.push(e.visitNode(n,B,e.isExpression)),t}),[],s);return o?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(l,a)]):e.setTextRange(p.createArrayLiteralExpression(r?i([r],l,!0):l,a),n)}function G(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)q(e[n])}function W(t){e.isBlock(t)?G(t.statements):q(t)}function q(i){var a=o;o||(o=X(i)),function(i){switch(i.kind){case 233:return function(t){X(t)?G(t.statements):xe(e.visitNode(t,B,e.isStatement))}(i);case 236:return function(t){xe(e.visitNode(t,B,e.isStatement))}(i);case 237:return function(t){if(X(t))if(X(t.thenStatement)||X(t.elseStatement)){var r=ee(),n=t.elseStatement?ee():void 0;Te(t.elseStatement?n:r,e.visitNode(t.expression,B,e.isExpression),t.expression),W(t.thenStatement),t.elseStatement&&(Se(r),te(n),W(t.elseStatement)),te(r)}else xe(e.visitNode(t,B,e.isStatement));else xe(e.visitNode(t,B,e.isStatement))}(i);case 238:return function(t){if(X(t)){var r=ee(),n=ee();se(r),te(n),W(t.statement),te(r),Ee(n,e.visitNode(t.expression,B,e.isExpression)),ce()}else xe(e.visitNode(t,B,e.isStatement))}(i);case 239:return function(t){if(X(t)){var r=ee(),n=se(r);te(r),Te(n,e.visitNode(t.expression,B,e.isExpression)),W(t.statement),Se(r),ce()}else xe(e.visitNode(t,B,e.isStatement))}(i);case 240:return function(t){if(X(t)){var r=ee(),n=ee(),i=se(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?H(a):xe(e.setTextRange(p.createExpressionStatement(e.visitNode(a,B,e.isExpression)),a))}te(r),t.condition&&Te(i,e.visitNode(t.condition,B,e.isExpression)),W(t.statement),te(n),t.incrementor&&xe(e.setTextRange(p.createExpressionStatement(e.visitNode(t.incrementor,B,e.isExpression)),t.incrementor)),Se(r),ce()}else xe(e.visitNode(t,B,e.isStatement))}(i);case 241:return function(t){if(X(t)){var r=Z(),n=Z(),i=p.createLoopVariable(),a=t.initializer;h(i),De(r,p.createArrayLiteralExpression()),xe(p.createForInStatement(n,e.visitNode(t.expression,B,e.isExpression),p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(r,"push"),void 0,[n])))),De(i,p.createNumericLiteral(0));var o=ee(),s=ee(),c=se(s);te(o),Te(c,p.createLessThan(i,p.createPropertyAccessExpression(r,"length")));var l=void 0;if(e.isVariableDeclarationList(a)){for(var u=0,_=a.declarations;u<_.length;u++){var d=_[u];h(d.name)}l=p.cloneNode(a.declarations[0].name)}else l=e.visitNode(a,B,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(l));De(l,p.createElementAccessExpression(r,i)),W(t.statement),te(s),xe(p.createExpressionStatement(p.createPostfixIncrement(i))),Se(o),ce()}else xe(e.visitNode(t,B,e.isStatement))}(i);case 243:return function(t){var r=me(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)}(i);case 244:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)}(i);case 245:return function(t){Ce(8,[e.visitNode(t.expression,B,e.isExpression)],t)}(i);case 246:return function(t){var r,n,i;X(t)?(r=$(e.visitNode(t.expression,B,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),W(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):xe(e.visitNode(t,B,e.isStatement))}(i);case 247:return function(t){if(X(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=$(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var l=r.clauses[c];o.push(ee()),288===l.kind&&-1===s&&(s=c)}for(var u=0,_=[];u<n;){var d=0;for(c=u;c<n;c++)if(287===(l=r.clauses[c]).kind){if(X(l.expression)&&_.length>0)break;_.push(p.createCaseClause(e.visitNode(l.expression,B,e.isExpression),[ve(o[c],l.expression)]))}else d++;_.length&&(xe(p.createSwitchStatement(a,p.createCaseBlock(_))),u+=_.length,_=[]),d>0&&(u+=d,d=0)}for(Se(s>=0?o[s]:i),c=0;c<n;c++)te(o[c]),G(r.clauses[c].statements);le()}else xe(e.visitNode(t,B,e.isStatement));var f}(i);case 248:return function(t){X(t)?(re({kind:4,isScript:!1,labelText:e.idText(t.label),breakLabel:ee()}),W(t.statement),ue()):xe(e.visitNode(t,B,e.isStatement))}(i);case 249:return function(t){var r;Ce(9,[e.visitNode(null!==(r=t.expression)&&void 0!==r?r:p.createVoidZero(),B,e.isExpression)],t)}(i);case 250:return function(i){var a,o;X(i)?(a=ee(),o=ee(),te(a),re({kind:0,state:0,startLabel:a,endLabel:o}),be(),W(i.tryBlock),i.catchClause&&(function(i){var a;if(e.Debug.assert(0===ae()),e.isGeneratedIdentifier(i.name))a=i.name,h(i.name);else{var o=e.idText(i.name);a=Z(o),r||(r=new e.Map,n=[],t.enableSubstitution(79)),r.set(o,!0),n[e.getOriginalNodeId(i)]=a}var s=ie();e.Debug.assert(s.state<1),Se(s.endLabel);var c=ee();te(c),s.state=1,s.catchVariable=a,s.catchLabel=c,De(a,p.createCallExpression(p.createPropertyAccessExpression(C,"sent"),void 0,[])),be()}(i.catchClause.variableDeclaration),W(i.catchClause.block)),i.finallyBlock&&(function(){e.Debug.assert(0===ae());var t=ie();e.Debug.assert(t.state<2),Se(t.endLabel);var r=ee();te(r),t.state=2,t.finallyLabel=r}(),W(i.finallyBlock)),function(){e.Debug.assert(0===ae());var t=ne();t.state<2?Se(t.endLabel):Ce(10),te(t.endLabel),be(),t.state=3}()):xe(e.visitEachChild(i,B,t))}(i);default:xe(e.visitNode(i,B,e.isStatement))}}(i),o=a}function H(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=p.cloneNode(i.name);e.setCommentRange(a,i.name),h(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,l=[];c<s;){for(var u=c;u<s&&!(X((i=o[u]).initializer)&&l.length>0);u++)l.push(Y(i));l.length&&(xe(p.createExpressionStatement(p.inlineExpressions(l))),c+=l.length,l=[])}}function Y(t){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(t.name),t.name),e.visitNode(t.initializer,B,e.isExpression)),t)}function X(e){return!!e&&0!=(524288&e.transformFlags)}function Q(e){for(var t=e.length,r=0;r<t;r++)if(X(e[r]))return r;return-1}function $(t){if(e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t))return t;var r=p.createTempVariable(h);return De(r,t,t),r}function Z(e){var t=e?p.createUniqueName(e):p.createTempVariable(void 0);return h(t),t}function ee(){_||(_=[]);var e=L;return L++,_[e]=-1,e}function te(t){e.Debug.assert(void 0!==_,"No labels were defined."),_[t]=S?S.length:0}function re(e){s||(s=[],l=[],c=[],u=[]);var t=l.length;return l[t]=0,c[t]=S?S.length:0,s[t]=e,u.push(e),t}function ne(){var t=ie();if(void 0===t)return e.Debug.fail("beginBlock was never called.");var r=l.length;return l[r]=1,c[r]=S?S.length:0,s[r]=t,u.pop(),t}function ie(){return e.lastOrUndefined(u)}function ae(){var e=ie();return e&&e.kind}function oe(){re({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function se(e){var t=ee();return re({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ce(){e.Debug.assert(3===ae());var t=ne(),r=t.breakLabel;t.isScript||te(r)}function le(){e.Debug.assert(2===ae());var t=ne(),r=t.breakLabel;t.isScript||te(r)}function ue(){e.Debug.assert(4===ae());var t=ne();t.isScript||te(t.breakLabel)}function _e(e){return 2===e.kind||3===e.kind}function de(e){return 4===e.kind}function pe(e){return 3===e.kind}function fe(e,t){for(var r=t;r>=0;r--){var n=u[r];if(!de(n))break;if(n.labelText===e)return!0}return!1}function ge(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(de(r=u[t])&&r.labelText===e)return r.breakLabel;if(_e(r)&&fe(e,t-1))return r.breakLabel}else for(t=u.length-1;t>=0;t--){var r;if(_e(r=u[t]))return r.breakLabel}return 0}function me(e){if(u)if(e){for(var t=u.length-1;t>=0;t--)if(pe(r=u[t])&&fe(e,t-1))return r.continueLabel}else for(t=u.length-1;t>=0;t--){var r;if(pe(r=u[t]))return r.continueLabel}return 0}function ye(e){if(void 0!==e&&e>0){void 0===d&&(d=[]);var t=p.createNumericLiteral(-1);return void 0===d[e]?d[e]=[t]:d[e].push(t),t}return p.createOmittedExpression()}function he(t){var r=p.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),r}function ve(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(3),ye(t)])),r)}function be(){Ce(0)}function xe(e){e?Ce(1,[e]):be()}function De(e,t,r){Ce(2,[e,t],r)}function Se(e,t){Ce(3,[e],t)}function Ee(e,t,r){Ce(4,[e,t],r)}function Te(e,t,r){Ce(5,[e,t],r)}function Ce(e,t,r){void 0===S&&(S=[],E=[],T=[]),void 0===_&&te(ee());var n=S.length;S[n]=e,E[n]=t,T[n]=r}function ke(){M=0,R=0,k=void 0,A=!1,N=!1,F=void 0,w=void 0,P=void 0,I=void 0,O=void 0;var t=function(){if(S){for(var t=0;t<S.length;t++)we(t);Ae(S.length)}else Ae(0);if(F){var r=p.createPropertyAccessExpression(C,"label"),n=p.createSwitchStatement(r,p.createCaseBlock(F));return[e.startOnNewLine(n)]}return w||[]}();return f().createGeneratorHelper(e.setEmitFlags(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,C)],void 0,p.createBlock(t,t.length>0)),524288))}function Ae(e){(function(e){if(!N)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(Fe(e),O=void 0,Ie(void 0,void 0)),w&&F&&Ne(!1),function(){if(void 0!==d&&void 0!==k)for(var e=0;e<k.length;e++){var t=k[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=d[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++)s[o].text=String(e)}}}()}function Ne(e){if(F||(F=[]),w){if(O)for(var t=O.length-1;t>=0;t--){var r=O[t];w=[p.createWithStatement(r.expression,p.createBlock(w))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;w.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(C,"trys"),"push"),void 0,[p.createArrayLiteralExpression([ye(n),ye(i),ye(a),ye(o)])]))),I=void 0}e&&w.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(C,"label"),p.createNumericLiteral(R+1))))}F.push(p.createCaseClause(p.createNumericLiteral(R),w||[])),w=void 0}function Fe(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(w&&(Ne(!A),A=!1,N=!1,R++),void 0===k&&(k=[]),void 0===k[R]?k[R]=[t]:k[R].push(t))}function we(t){if(Fe(t),function(e){if(s)for(;M<l.length&&c[M]<=e;M++){var t=s[M],r=l[M];switch(t.kind){case 0:0===r?(P||(P=[]),w||(w=[]),P.push(I),I=t):1===r&&(I=P.pop());break;case 1:0===r?(O||(O=[]),O.push(t)):1===r&&O.pop()}}}(t),!A){A=!1,N=!1;var r=S[t];if(0!==r){if(10===r)return A=!0,void Pe(p.createReturnStatement(p.createArrayLiteralExpression([he(7)])));var n=E[t];if(1===r)return Pe(n[0]);var i,a,o,u=T[t];switch(r){case 2:return i=n[0],a=n[1],o=u,void Pe(e.setTextRange(p.createExpressionStatement(p.createAssignment(i,a)),o));case 3:return function(t,r){A=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(3),ye(t)])),r),384))}(n[0],u);case 4:return function(t,r,n){Pe(e.setEmitFlags(p.createIfStatement(r,e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(3),ye(t)])),n),384)),1))}(n[0],n[1],u);case 5:return function(t,r,n){Pe(e.setEmitFlags(p.createIfStatement(p.createLogicalNot(r),e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(3),ye(t)])),n),384)),1))}(n[0],n[1],u);case 6:return function(t,r){A=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[he(4),t]:[he(4)])),r),384))}(n[0],u);case 7:return function(t,r){A=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(5),t])),r),384))}(n[0],u);case 8:return Ie(n[0],u);case 9:return function(t,r){A=!0,N=!0,Pe(e.setTextRange(p.createThrowStatement(t),r))}(n[0],u)}}}}function Pe(e){e&&(w?w.push(e):w=[e])}function Ie(t,r){A=!0,N=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[he(2),t]:[he(2)])),r),384))}}}(u||(u={})),function(e){e.transformModule=function(r){var n=r.factory,a=r.getEmitHelperFactory,o=r.startLexicalEnvironment,s=r.endLexicalEnvironment,c=r.hoistVariableDeclaration,l=r.getCompilerOptions(),u=r.getEmitResolver(),_=r.getEmitHost(),d=e.getEmitScriptTarget(l),p=e.getEmitModuleKind(l),f=r.onSubstituteNode,g=r.onEmitNode;r.onSubstituteNode=function(t,r){return(r=f(t,r)).id&&x[r.id]?r:1===t?function(t){switch(t.kind){case 79:return $(t);case 206:return function(t){if(e.isIdentifier(t.expression)){var r=$(t.expression);if(x[e.getNodeId(r)]=!0,!e.isIdentifier(r))return e.addEmitFlags(n.updateCallExpression(t,r,void 0,t.arguments),536870912)}return t}(t);case 208:return function(t){if(e.isIdentifier(t.tag)){var r=$(t.tag);if(x[e.getNodeId(r)]=!0,!e.isIdentifier(r))return e.addEmitFlags(n.updateTaggedTemplateExpression(t,r,void 0,t.template),536870912)}return t}(t);case 219: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=Z(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];x[e.getNodeId(n)]=!0,n=X(o,n,t)}return n}}return t}(t)}return t}(r):e.isShorthandPropertyAssignment(r)?function(t){var r=t.name,i=$(r);if(i!==r){if(t.objectAssignmentInitializer){var a=n.createAssignment(i,t.objectAssignmentInitializer);return e.setTextRange(n.createPropertyAssignment(r,a),t)}return e.setTextRange(n.createPropertyAssignment(r,i),t)}return t}(r):r},r.onEmitNode=function(t,r,n){300===r.kind?(m=r,y=v[e.getOriginalNodeId(m)],g(t,r,n),m=void 0,y=void 0):g(t,r,n)},r.enableSubstitution(206),r.enableSubstitution(208),r.enableSubstitution(79),r.enableSubstitution(219),r.enableSubstitution(292),r.enableEmitNotification(300);var m,y,h,v=[],b=[],x=[];return e.chainBundle(r,(function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,l)||4194304&t.transformFlags||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(l)&&e.outFile(l)))return t;m=t,y=e.collectExternalModuleInfo(r,t,u,l),v[e.getOriginalNodeId(t)]=y;var n=function(t){switch(t){case e.ModuleKind.AMD:return E;case e.ModuleKind.UMD:return T;default:return S}}(p)(t);return m=void 0,y=void 0,h=!1,n}));function D(){return!(y.exportEquals||!e.isExternalModule(m))}function S(t){o();var i=[],a=e.getStrictOptionValue(l,"alwaysStrict")||!l.noImplicitUseStrict&&e.isExternalModule(m),c=n.copyPrologue(t.statements,i,a&&!e.isJsonSourceFile(t),F);if(D()&&e.append(i,Y()),e.length(y.exportedNames))for(var u=0;u<y.exportedNames.length;u+=50)e.append(i,n.createExpressionStatement(e.reduceLeft(y.exportedNames.slice(u,u+50),(function(t,r){return n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)}),n.createVoidZero())));e.append(i,e.visitNode(y.externalHelpersImportDeclaration,F,e.isStatement)),e.addRange(i,e.visitNodes(t.statements,F,e.isStatement,c)),N(i,!1),e.insertStatementsAfterStandardPrologue(i,s());var _=n.updateSourceFile(t,e.setTextRange(n.createNodeArray(i),t.statements));return e.addEmitHelpers(_,r.readEmitHelpers()),_}function E(t){var a=n.createIdentifier("define"),o=e.tryGetModuleNameFromFile(n,t,_,l),s=e.isJsonSourceFile(t)&&t,c=C(t,!0),u=c.aliasedModuleNames,d=c.unaliasedModuleNames,p=c.importAliasNames,f=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(a,void 0,i(i([],o?[o]:[],!0),[n.createArrayLiteralExpression(s?e.emptyArray:i(i([n.createStringLiteral("require"),n.createStringLiteral("exports")],u,!0),d,!0)),s?s.statements.length?s.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,i([n.createParameterDeclaration(void 0,void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,void 0,"exports")],p,!0),void 0,A(t))],!1)))]),t.statements));return e.addEmitHelpers(f,r.readEmitHelpers()),f}function T(t){var a=C(t,!1),o=a.aliasedModuleNames,s=a.unaliasedModuleNames,c=a.importAliasNames,u=e.tryGetModuleNameFromFile(n,t,_,l),d=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),e.setEmitFlags(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,i(i([],u?[u]:[],!0),[n.createArrayLiteralExpression(i(i([n.createStringLiteral("require"),n.createStringLiteral("exports")],o,!0),s,!0)),n.createIdentifier("factory")],!1)))])))],!0),void 0)),p=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(d,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,i([n.createParameterDeclaration(void 0,void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,void 0,"exports")],c,!0),void 0,A(t))]))]),t.statements));return e.addEmitHelpers(p,r.readEmitHelpers()),p}function C(t,r){for(var i=[],a=[],o=[],s=0,c=t.amdDependencies;s<c.length;s++){var d=c[s];d.name?(i.push(n.createStringLiteral(d.path)),o.push(n.createParameterDeclaration(void 0,void 0,void 0,d.name))):a.push(n.createStringLiteral(d.path))}for(var p=0,f=y.externalImports;p<f.length;p++){var g=f[p],h=e.getExternalModuleNameLiteral(n,g,m,_,u,l),v=e.getLocalNameForExternalImport(n,g,m);h&&(r&&v?(e.setEmitFlags(v,4),i.push(h),o.push(n.createParameterDeclaration(void 0,void 0,void 0,v))):a.push(h))}return{aliasedModuleNames:i,unaliasedModuleNames:a,importAliasNames:o}}function k(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(n,t,m,_,u,l)){var r=e.getLocalNameForExternalImport(n,t,m),i=R(t,r);if(i!==r)return n.createExpressionStatement(n.createAssignment(r,i))}}function A(r){o();var i=[],a=n.copyPrologue(r.statements,i,!l.noImplicitUseStrict,F);D()&&e.append(i,Y()),e.length(y.exportedNames)&&e.append(i,n.createExpressionStatement(e.reduceLeft(y.exportedNames,(function(t,r){return n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)}),n.createVoidZero()))),e.append(i,e.visitNode(y.externalHelpersImportDeclaration,F,e.isStatement)),p===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(y.externalImports,k)),e.addRange(i,e.visitNodes(r.statements,F,e.isStatement,a)),N(i,!0),e.insertStatementsAfterStandardPrologue(i,s());var c=n.createBlock(i,!0);return h&&e.addEmitHelper(c,t),c}function N(t,r){if(y.exportEquals){var i=e.visitNode(y.exportEquals.expression,P);if(i)if(r){var a=n.createReturnStatement(i);e.setTextRange(a,y.exportEquals),e.setEmitFlags(a,1920),t.push(a)}else a=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),i)),e.setTextRange(a,y.exportEquals),e.setEmitFlags(a,1536),t.push(a)}}function F(t){switch(t.kind){case 264:return function(t){var r,i=e.getNamespaceDeclarationNode(t);if(p!==e.ModuleKind.AMD){if(!t.importClause)return e.setOriginalNode(e.setTextRange(n.createExpressionStatement(B(t)),t),t);var a=[];i&&!e.isDefaultImport(t)?a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,R(t,B(t)))):(a.push(n.createVariableDeclaration(n.getGeneratedNameForNode(t),void 0,void 0,R(t,B(t)))),i&&e.isDefaultImport(t)&&a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)))),r=e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList(a,d>=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(r=e.append(r,n.createVariableStatement(void 0,n.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)),t),t)],d>=2?2:0))));if(V(t)){var o=e.getOriginalNodeId(t);b[o]=U(b[o],t)}else r=U(r,t);return e.singleOrMany(r)}(t);case 263: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.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(t.name,B(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(t.name),void 0,void 0,B(t))],d>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(n.getExportName(t),n.getLocalName(t))),t),t))),V(t)){var i=e.getOriginalNodeId(t);b[i]=K(b[i],t)}else r=K(r,t);return e.singleOrMany(r)}(t);case 270:return function(t){if(t.moduleSpecifier){var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var i=[];p!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,B(t))])),t),t));for(var o=0,s=t.exportClause.elements;o<s.length;o++){var c=s[o];if(0===d)i.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(a().createCreateBindingHelper(r,n.createStringLiteralFromNode(c.propertyName||c.name),c.propertyName?n.createStringLiteralFromNode(c.name):void 0)),c),c));else{var u=!(!l.esModuleInterop||67108864&e.getEmitFlags(t)||"default"!==e.idText(c.propertyName||c.name)),_=n.createPropertyAccessExpression(u?a().createImportDefaultHelper(r):r,c.propertyName||c.name);i.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(n.getExportName(c),_,void 0,!0)),c),c))}}return e.singleOrMany(i)}return t.exportClause?((i=[]).push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(n.cloneNode(t.exportClause.name),function(t,r){return!l.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getExportNeedsImportStarHelper(t)?a().createImportStarHelper(r):r}(t,p!==e.ModuleKind.AMD?B(t):e.isExportNamespaceAsDefaultDeclaration(t)?r:n.createIdentifier(e.idText(t.exportClause.name))))),t),t)),e.singleOrMany(i)):e.setOriginalNode(e.setTextRange(n.createExpressionStatement(a().createExportStarHelper(p!==e.ModuleKind.AMD?B(t):r)),t),t)}}(t);case 269:return function(t){if(!t.isExportEquals){var r,i=t.original;if(i&&V(i)){var a=e.getOriginalNodeId(t);b[a]=H(b[a],n.createIdentifier("default"),e.visitNode(t.expression,P),t,!0)}else r=H(r,n.createIdentifier("default"),e.visitNode(t.expression,P),t,!0);return e.singleOrMany(r)}}(t);case 235:return function(t){var i,a,o;if(e.hasSyntacticModifier(t,1)){for(var s=void 0,c=!1,l=0,u=t.declarationList.declarations;l<u.length;l++){var _=u[l];if(e.isIdentifier(_.name)&&e.isLocalName(_.name))s||(s=e.visitNodes(t.modifiers,Q,e.isModifier)),a=e.append(a,_);else if(_.initializer)if(!e.isBindingPattern(_.name)&&(e.isArrowFunction(_.initializer)||e.isFunctionExpression(_.initializer)||e.isClassExpression(_.initializer))){var d=n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),_.name),_.name),n.createIdentifier(e.getTextOfIdentifierOrLiteral(_.name))),p=n.createVariableDeclaration(_.name,_.exclamationToken,_.type,e.visitNode(_.initializer,P));a=e.append(a,p),o=e.append(o,d),c=!0}else o=e.append(o,J(_))}if(a&&(i=e.append(i,n.updateVariableStatement(t,s,n.updateVariableDeclarationList(t.declarationList,a)))),o){var f=e.setOriginalNode(e.setTextRange(n.createExpressionStatement(n.inlineExpressions(o)),t),t);c&&e.removeAllComments(f),i=e.append(i,f)}}else i=e.append(i,e.visitEachChild(t,P,r));if(V(t)){var g=e.getOriginalNodeId(t);b[g]=z(b[g],t)}else i=z(i,t);return e.singleOrMany(i)}(t);case 254:return function(t){var i;if(i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,Q,e.isModifier),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,P),void 0,e.visitEachChild(t.body,P,r)),t),t)):e.append(i,e.visitEachChild(t,P,r)),V(t)){var a=e.getOriginalNodeId(t);b[a]=W(b[a],t)}else i=W(i,t);return e.singleOrMany(i)}(t);case 255:return function(t){var i;if(i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createClassDeclaration(void 0,e.visitNodes(t.modifiers,Q,e.isModifier),n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,P),e.visitNodes(t.members,P)),t),t)):e.append(i,e.visitEachChild(t,P,r)),V(t)){var a=e.getOriginalNodeId(t);b[a]=W(b[a],t)}else i=W(i,t);return e.singleOrMany(i)}(t);case 347:return function(t){if(V(t)&&235===t.original.kind){var r=e.getOriginalNodeId(t);b[r]=z(b[r],t.original)}return t}(t);case 348:return function(t){var r=e.getOriginalNodeId(t),n=b[r];return n?(delete b[r],e.append(n,t)):t}(t);default:return P(t)}}function w(t,i){if(!(71305216&t.transformFlags))return t;switch(t.kind){case 240:return function(t){return n.updateForStatement(t,e.visitNode(t.initializer,I,e.isForInitializer),e.visitNode(t.condition,P,e.isExpression),e.visitNode(t.incrementor,I,e.isExpression),e.visitIterationBody(t.statement,P,r))}(t);case 236:return function(t){return n.updateExpressionStatement(t,e.visitNode(t.expression,I,e.isExpression))}(t);case 210:return function(t,r){return n.updateParenthesizedExpression(t,e.visitNode(t.expression,r?I:P,e.isExpression))}(t,i);case 345:return function(t,r){return n.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,r?I:P,e.isExpression))}(t,i);case 206:if(e.isImportCall(t))return function(t){var r=e.getExternalModuleNameLiteral(n,t,m,_,u,l),i=e.visitNode(e.firstOrUndefined(t.arguments),P),a=!r||i&&e.isStringLiteral(i)&&i.text===r.text?i:r,o=!!(8192&t.transformFlags);switch(l.module){case e.ModuleKind.AMD:return L(a,o);case e.ModuleKind.UMD:return function(t,r){if(h=!0,e.isSimpleCopiableExpression(t)){var i=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?n.createStringLiteralFromNode(t):e.setEmitFlags(e.setTextRange(n.cloneNode(t),t),1536);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,M(t,r),void 0,L(i,r))}var a=n.createTempVariable(c);return n.createComma(n.createAssignment(a,t),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,M(a,r),void 0,L(a,r)))}(null!=a?a:n.createVoidZero(),o);case e.ModuleKind.CommonJS:default:return M(a,o)}}(t);break;case 219:if(e.isDestructuringAssignment(t))return function(t,n){return O(t.left)?e.flattenDestructuringAssignment(t,P,r,0,!n,j):e.visitEachChild(t,P,r)}(t,i);break;case 217:case 218:return function(t,i){if((45===t.operator||46===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var a=Z(t.operand);if(a){var o=void 0,s=e.visitNode(t.operand,P,e.isExpression);e.isPrefixUnaryExpression(t)?s=n.updatePrefixUnaryExpression(t,s):(s=n.updatePostfixUnaryExpression(t,s),i||(o=n.createTempVariable(c),s=n.createAssignment(o,s),e.setTextRange(s,t)),s=n.createComma(s,n.cloneNode(t.operand)),e.setTextRange(s,t));for(var l=0,u=a;l<u.length;l++){var _=u[l];x[e.getNodeId(s)]=!0,s=X(_,s),e.setTextRange(s,t)}return o&&(x[e.getNodeId(s)]=!0,s=n.createComma(s,o),e.setTextRange(s,t)),s}}return e.visitEachChild(t,P,r)}(t,i)}return e.visitEachChild(t,P,r)}function P(e){return w(e,!1)}function I(e){return w(e,!0)}function O(t){if(e.isObjectLiteralExpression(t))for(var r=0,n=t.properties;r<n.length;r++)switch((o=n[r]).kind){case 291:if(O(o.initializer))return!0;break;case 292:if(O(o.name))return!0;break;case 293:if(O(o.expression))return!0;break;case 167:case 170:case 171:return!1;default:e.Debug.assertNever(o,"Unhandled object member kind")}else if(e.isArrayLiteralExpression(t))for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(e.isSpreadElement(o)){if(O(o.expression))return!0}else if(O(o))return!0}else if(e.isIdentifier(t))return e.length(Z(t))>(e.isExportName(t)?1:0);return!1}function L(t,r){var i,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),c=[n.createParameterDeclaration(void 0,void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,void 0,s)],u=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);d>=2?i=n.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(i=n.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),r&&e.setEmitFlags(i,8));var _=n.createNewExpression(n.createIdentifier("Promise"),void 0,[i]);return l.esModuleInterop?n.createCallExpression(n.createPropertyAccessExpression(_,n.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):_}function M(t,r){var i,o=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),s=n.createCallExpression(n.createIdentifier("require"),void 0,t?[t]:[]);return l.esModuleInterop&&(s=a().createImportStarHelper(s)),d>=2?i=n.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(s)])),r&&e.setEmitFlags(i,8)),n.createCallExpression(n.createPropertyAccessExpression(o,"then"),void 0,[i])}function R(t,r){return!l.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(r):r}function B(t){var r=e.getExternalModuleNameLiteral(n,t,m,_,u,l),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function j(t,r,i){var a=Z(t);if(a){for(var o=e.isExportName(t)?r:n.createAssignment(t,r),s=0,c=a;s<c.length;s++){var l=c[s];e.setEmitFlags(o,4),o=X(l,o,i)}return o}return n.createAssignment(t,r)}function J(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,P),void 0,r,0,!1,j):n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),t.name),t.name),t.initializer?e.visitNode(t.initializer,P):n.createVoidZero())}function V(t){return 0!=(4194304&e.getEmitFlags(t))}function U(e,t){if(y.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=q(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 266:e=q(e,n);break;case 267:for(var i=0,a=n.elements;i<a.length;i++)e=q(e,a[i],!0)}return e}function K(e,t){return y.exportEquals?e:q(e,t)}function z(e,t){if(y.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++)e=G(e,n[r]);return e}function G(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=G(t,a))}else e.isGeneratedIdentifier(r.name)||(t=q(t,r));return t}function W(t,r){return y.exportEquals||(e.hasSyntacticModifier(r,1)&&(t=H(t,e.hasSyntacticModifier(r,512)?n.createIdentifier("default"):n.getDeclarationName(r),n.getLocalName(r),r)),r.name&&(t=q(t,r))),t}function q(t,r,i){var a=n.getDeclarationName(r),o=y.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];t=H(t,l.name,a,l.name,void 0,i)}return t}function H(t,r,i,a,o,s){return t=e.append(t,function(t,r,i,a,o){var s=e.setTextRange(n.createExpressionStatement(X(t,r,void 0,o)),i);return e.startOnNewLine(s),a||e.setEmitFlags(s,1536),s}(r,i,a,o,s)),t}function Y(){var t;return t=0===d?n.createExpressionStatement(X(n.createIdentifier("__esModule"),n.createTrue())):n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),e.setEmitFlags(t,1048576),t}function X(t,r,i,a){return e.setTextRange(a&&0!==d?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(t),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(r)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),r),i)}function Q(e){switch(e.kind){case 93:case 88:return}return e}function $(t){var r,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(m);return a?n.createPropertyAccessExpression(a,t):t}if((!e.isGeneratedIdentifier(t)||64&t.autoGenerateFlags)&&!e.isLocalName(t)){var o=u.getReferencedExportContainer(t,e.isExportName(t));if(o&&300===o.kind)return e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),t);var s=u.getReferencedImportDeclaration(t);if(s){if(e.isImportClause(s))return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode(s.parent),n.createIdentifier("default")),t);if(e.isImportSpecifier(s)){var c=s.propertyName||s.name;return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode((null===(i=null===(r=s.parent)||void 0===r?void 0:r.parent)||void 0===i?void 0:i.parent)||s),n.cloneNode(c)),t)}}}return t}function Z(t){if(!e.isGeneratedIdentifier(t)){var r=u.getReferencedImportDeclaration(t)||u.getReferencedValueDeclaration(t);if(r)return y&&y.exportedBindings[e.getOriginalNodeId(r)]}}};var t={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}(u||(u={})),function(e){e.transformSystemModule=function(t){var r=t.factory,n=t.startLexicalEnvironment,i=t.endLexicalEnvironment,a=t.hoistVariableDeclaration,o=t.getCompilerOptions(),s=t.getEmitResolver(),c=t.getEmitHost(),l=t.onSubstituteNode,u=t.onEmitNode;t.onSubstituteNode=function(t,n){return function(e){return y&&e.id&&y[e.id]}(n=l(t,n))?n:1===t?function(t){switch(t.kind){case 79:return function(t){var n,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(_);return a?r.createPropertyAccessExpression(a,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var o=s.getReferencedImportDeclaration(t);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default")),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name)),t)}}return t}(t);case 219: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++)n=V(a[i],Q(n));return n}}return t}(t);case 229:return function(t){return e.isImportMeta(t)?r.createPropertyAccessExpression(f,r.createIdentifier("meta")):t}(t)}return t}(n):4===t?function(t){return 292===t.kind?function(t){var n,i,a=t.name;if(!e.isGeneratedIdentifier(a)&&!e.isLocalName(a)){var o=s.getReferencedImportDeclaration(a);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default"))),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name))),t)}}return t}(t):t}(n):n},t.onEmitNode=function(t,r,n){if(300===r.kind){var i=e.getOriginalNodeId(r);_=r,d=h[i],p=b[i],y=x[i],f=D[i],y&&delete x[i],u(t,r,n),_=void 0,d=void 0,p=void 0,f=void 0,y=void 0}else u(t,r,n)},t.enableSubstitution(79),t.enableSubstitution(292),t.enableSubstitution(219),t.enableSubstitution(229),t.enableEmitNotification(300);var _,d,p,f,g,m,y,h=[],v=[],b=[],x=[],D=[];return e.chainBundle(t,(function(a){if(a.isDeclarationFile||!(e.isEffectiveExternalModule(a,o)||4194304&a.transformFlags))return a;var l=e.getOriginalNodeId(a);_=a,m=a,d=h[l]=e.collectExternalModuleInfo(t,a,s,o),p=r.createUniqueName("exports"),b[l]=p,f=D[l]=r.createUniqueName("context");var u=function(t){for(var n=new e.Map,i=[],a=0,l=t;a<l.length;a++){var u=l[a],d=e.getExternalModuleNameLiteral(r,u,_,c,s,o);if(d){var p=d.text,f=n.get(p);void 0!==f?i[f].externalImports.push(u):(n.set(p,i.length),i.push({name:d,externalImports:[u]}))}}return i}(d.externalImports),v=function(t,a){var s=[];n();var c=e.getStrictOptionValue(o,"alwaysStrict")||!o.noImplicitUseStrict&&e.isExternalModule(_),l=r.copyPrologue(t.statements,s,c,T);s.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration("__moduleName",void 0,void 0,r.createLogicalAnd(f,r.createPropertyAccessExpression(f,"id")))]))),e.visitNode(d.externalHelpersImportDeclaration,T,e.isStatement);var u=e.visitNodes(t.statements,T,e.isStatement,l);e.addRange(s,g),e.insertStatementsAfterStandardPrologue(s,i());var p=function(e){if(d.hasExportStarsToExportValues){if(!d.exportedNames&&0===d.exportSpecifiers.size){for(var t=!1,n=0,i=d.externalImports;n<i.length;n++){var a=i[n];if(270===a.kind&&a.exportClause){t=!0;break}}if(!t){var o=S(void 0);return e.push(o),o.name}}var s=[];if(d.exportedNames)for(var c=0,l=d.exportedNames;c<l.length;c++){var u=l[c];"default"!==u.escapedText&&s.push(r.createPropertyAssignment(r.createStringLiteralFromNode(u),r.createTrue()))}var _=r.createUniqueName("exportedNames");e.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(_,void 0,void 0,r.createObjectLiteralExpression(s,!0))])));var p=S(_);return e.push(p),p.name}}(s),m=1048576&t.transformFlags?r.createModifiersFromModifierFlags(256):void 0,y=r.createObjectLiteralExpression([r.createPropertyAssignment("setters",E(p,a)),r.createPropertyAssignment("execute",r.createFunctionExpression(m,void 0,void 0,void 0,[],void 0,r.createBlock(u,!0)))],!0);return s.push(r.createReturnStatement(y)),r.createBlock(s,!0)}(a,u),C=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,p),r.createParameterDeclaration(void 0,void 0,void 0,f)],void 0,v),k=e.tryGetModuleNameFromFile(r,a,c,o),A=r.createArrayLiteralExpression(e.map(u,(function(e){return e.name}))),N=e.setEmitFlags(r.updateSourceFile(a,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("System"),"register"),void 0,k?[k,A,C]:[A,C]))]),a.statements)),1024);return e.outFile(o)||e.moveEmitHelpers(N,v,(function(e){return!e.scoped})),y&&(x[l]=y,y=void 0),_=void 0,d=void 0,p=void 0,f=void 0,g=void 0,m=void 0,N}));function S(t){var n=r.createUniqueName("exportStar"),i=r.createIdentifier("m"),a=r.createIdentifier("n"),o=r.createIdentifier("exports"),s=r.createStrictInequality(a,r.createStringLiteral("default"));return t&&(s=r.createLogicalAnd(s,r.createLogicalNot(r.createCallExpression(r.createPropertyAccessExpression(t,"hasOwnProperty"),void 0,[a])))),r.createFunctionDeclaration(void 0,void 0,void 0,n,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,i)],void 0,r.createBlock([r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(o,void 0,void 0,r.createObjectLiteralExpression([]))])),r.createForInStatement(r.createVariableDeclarationList([r.createVariableDeclaration(a)]),i,r.createBlock([e.setEmitFlags(r.createIfStatement(s,r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(o,a),r.createElementAccessExpression(i,a)))),1)])),r.createExpressionStatement(r.createCallExpression(p,void 0,[o]))],!0))}function E(t,n){for(var i=[],a=0,o=n;a<o.length;a++){for(var s=o[a],c=e.forEach(s.externalImports,(function(t){return e.getLocalNameForExternalImport(r,t,_)})),l=c?r.getGeneratedNameForNode(c):r.createUniqueName(""),u=[],d=0,f=s.externalImports;d<f.length;d++){var g=f[d],m=e.getLocalNameForExternalImport(r,g,_);switch(g.kind){case 264:if(!g.importClause)break;case 263:e.Debug.assert(void 0!==m),u.push(r.createExpressionStatement(r.createAssignment(m,l)));break;case 270:if(e.Debug.assert(void 0!==m),g.exportClause)if(e.isNamedExports(g.exportClause)){for(var y=[],h=0,v=g.exportClause.elements;h<v.length;h++){var b=v[h];y.push(r.createPropertyAssignment(r.createStringLiteral(e.idText(b.name)),r.createElementAccessExpression(l,r.createStringLiteral(e.idText(b.propertyName||b.name)))))}u.push(r.createExpressionStatement(r.createCallExpression(p,void 0,[r.createObjectLiteralExpression(y,!0)])))}else u.push(r.createExpressionStatement(r.createCallExpression(p,void 0,[r.createStringLiteral(e.idText(g.exportClause.name)),l])));else u.push(r.createExpressionStatement(r.createCallExpression(t,void 0,[l])))}}i.push(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,l)],void 0,r.createBlock(u,!0)))}return r.createArrayLiteralExpression(i,!0)}function T(t){switch(t.kind){case 264:return function(t){var n;if(t.importClause&&a(e.getLocalNameForExternalImport(r,t,_)),P(t)){var i=e.getOriginalNodeId(t);v[i]=I(v[i],t)}else n=I(n,t);return e.singleOrMany(n)}(t);case 263:return function(t){var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),a(e.getLocalNameForExternalImport(r,t,_)),P(t)){var i=e.getOriginalNodeId(t);v[i]=O(v[i],t)}else n=O(n,t);return e.singleOrMany(n)}(t);case 270:return function(t){e.Debug.assertIsDefined(t)}(t);case 269:return function(t){if(!t.isExportEquals){var n=e.visitNode(t.expression,W,e.isExpression),i=t.original;if(!i||!P(i))return J(r.createIdentifier("default"),n,!0);var a=e.getOriginalNodeId(t);v[a]=j(v[a],r.createIdentifier("default"),n,!0)}}(t);default:return U(t)}}function C(t){if(e.isBindingPattern(t.name))for(var n=0,i=t.name.elements;n<i.length;n++){var o=i[n];e.isOmittedExpression(o)||C(o)}else a(r.cloneNode(t.name))}function k(t){return 0==(2097152&e.getEmitFlags(t))&&(300===m.kind||0==(3&e.getOriginalNode(t).flags))}function A(r,n){var i=n?N:F;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,W,t,0,!1,i):r.initializer?i(r.name,e.visitNode(r.initializer,W,e.isExpression)):r.name}function N(e,t,r){return w(e,t,r,!0)}function F(e,t,r){return w(e,t,r,!1)}function w(t,n,i,o){return a(r.cloneNode(t)),o?V(t,Q(e.setTextRange(r.createAssignment(t,n),i))):Q(e.setTextRange(r.createAssignment(t,n),i))}function P(t){return 0!=(4194304&e.getEmitFlags(t))}function I(e,t){if(d.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=B(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 266:e=B(e,n);break;case 267:for(var i=0,a=n.elements;i<a.length;i++)e=B(e,a[i])}return e}function O(e,t){return d.exportEquals?e:B(e,t)}function L(e,t,r){if(d.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=M(e,a,r))}return e}function M(t,n,i){if(d.exportEquals)return t;if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(t=M(t,s,i))}else if(!e.isGeneratedIdentifier(n.name)){var c=void 0;i&&(t=j(t,n.name,r.getLocalName(n)),c=e.idText(n.name)),t=B(t,n,c)}return t}function R(t,n){if(d.exportEquals)return t;var i;if(e.hasSyntacticModifier(n,1)){var a=e.hasSyntacticModifier(n,512)?r.createStringLiteral("default"):n.name;t=j(t,a,r.getLocalName(n)),i=e.getTextOfIdentifierOrLiteral(a)}return n.name&&(t=B(t,n,i)),t}function B(t,n,i){if(d.exportEquals)return t;var a=r.getDeclarationName(n),o=d.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];l.name.escapedText!==i&&(t=j(t,l.name,a))}return t}function j(t,r,n,i){return e.append(t,J(r,n,i))}function J(t,n,i){var a=r.createExpressionStatement(V(t,n));return e.startOnNewLine(a),i||e.setEmitFlags(a,1536),a}function V(t,n){var i=e.isIdentifier(t)?r.createStringLiteralFromNode(t):t;return e.setEmitFlags(n,1536|e.getEmitFlags(n)),e.setCommentRange(r.createCallExpression(p,void 0,[i,n]),n)}function U(n){switch(n.kind){case 235:return function(t){if(!k(t.declarationList))return e.visitNode(t,W,e.isStatement);for(var n,i,a=e.hasSyntacticModifier(t,1),o=P(t),s=0,c=t.declarationList.declarations;s<c.length;s++){var l=c[s];l.initializer?n=e.append(n,A(l,a&&!o)):C(l)}if(n&&(i=e.append(i,e.setTextRange(r.createExpressionStatement(r.inlineExpressions(n)),t))),o){var u=e.getOriginalNodeId(t);v[u]=L(v[u],t,a)}else i=L(i,t,!1);return e.singleOrMany(i)}(n);case 254:return function(n){if(g=e.hasSyntacticModifier(n,1)?e.append(g,r.updateFunctionDeclaration(n,n.decorators,e.visitNodes(n.modifiers,Y,e.isModifier),n.asteriskToken,r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,W,e.isParameterDeclaration),void 0,e.visitNode(n.body,W,e.isBlock))):e.append(g,e.visitEachChild(n,W,t)),P(n)){var i=e.getOriginalNodeId(n);v[i]=R(v[i],n)}else g=R(g,n)}(n);case 255:return function(t){var n,i=r.getLocalName(t);if(a(i),n=e.append(n,e.setTextRange(r.createExpressionStatement(r.createAssignment(i,e.setTextRange(r.createClassExpression(e.visitNodes(t.decorators,W,e.isDecorator),void 0,t.name,void 0,e.visitNodes(t.heritageClauses,W,e.isHeritageClause),e.visitNodes(t.members,W,e.isClassElement)),t))),t)),P(t)){var o=e.getOriginalNodeId(t);v[o]=R(v[o],t)}else n=R(n,t);return e.singleOrMany(n)}(n);case 240:return K(n,!0);case 241:return function(n){var i=m;return m=n,n=r.updateForInStatement(n,z(n.initializer),e.visitNode(n.expression,W,e.isExpression),e.visitIterationBody(n.statement,U,t)),m=i,n}(n);case 242:return function(n){var i=m;return m=n,n=r.updateForOfStatement(n,n.awaitModifier,z(n.initializer),e.visitNode(n.expression,W,e.isExpression),e.visitIterationBody(n.statement,U,t)),m=i,n}(n);case 238:return function(n){return r.updateDoStatement(n,e.visitIterationBody(n.statement,U,t),e.visitNode(n.expression,W,e.isExpression))}(n);case 239:return function(n){return r.updateWhileStatement(n,e.visitNode(n.expression,W,e.isExpression),e.visitIterationBody(n.statement,U,t))}(n);case 248:return function(t){return r.updateLabeledStatement(t,t.label,e.visitNode(t.statement,U,e.isStatement,r.liftToBlock))}(n);case 246:return function(t){return r.updateWithStatement(t,e.visitNode(t.expression,W,e.isExpression),e.visitNode(t.statement,U,e.isStatement,r.liftToBlock))}(n);case 247:return function(t){return r.updateSwitchStatement(t,e.visitNode(t.expression,W,e.isExpression),e.visitNode(t.caseBlock,U,e.isCaseBlock))}(n);case 261:return function(t){var n=m;return m=t,t=r.updateCaseBlock(t,e.visitNodes(t.clauses,U,e.isCaseOrDefaultClause)),m=n,t}(n);case 287:return function(t){return r.updateCaseClause(t,e.visitNode(t.expression,W,e.isExpression),e.visitNodes(t.statements,U,e.isStatement))}(n);case 288:case 250:return function(r){return e.visitEachChild(r,U,t)}(n);case 290:return function(t){var n=m;return m=t,t=r.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,U,e.isBlock)),m=n,t}(n);case 233:return function(r){var n=m;return m=r,r=e.visitEachChild(r,U,t),m=n,r}(n);case 347:return function(t){if(P(t)&&235===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasSyntacticModifier(t.original,1);v[r]=L(v[r],t.original,n)}return t}(n);case 348:return function(t){var r=e.getOriginalNodeId(t),n=v[r];if(n)return delete v[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(B(n,i),t):t}(n);default:return W(n)}}function K(n,i){var a=m;return m=n,n=r.updateForStatement(n,e.visitNode(n.initializer,i?z:q,e.isForInitializer),e.visitNode(n.condition,W,e.isExpression),e.visitNode(n.incrementor,q,e.isExpression),e.visitIterationBody(n.statement,i?U:W,t)),m=a,n}function z(t){if(function(t){return e.isVariableDeclarationList(t)&&k(t)}(t)){for(var n=void 0,i=0,a=t.declarations;i<a.length;i++){var o=a[i];n=e.append(n,A(o,!1)),o.initializer||C(o)}return n?r.inlineExpressions(n):r.createOmittedExpression()}return e.visitNode(t,q,e.isExpression)}function G(n,i){if(!(71305216&n.transformFlags))return n;switch(n.kind){case 240:return K(n,!1);case 236:return function(t){return r.updateExpressionStatement(t,e.visitNode(t.expression,q,e.isExpression))}(n);case 210:return function(t,n){return r.updateParenthesizedExpression(t,e.visitNode(t.expression,n?q:W,e.isExpression))}(n,i);case 345:return function(t,n){return r.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,n?q:W,e.isExpression))}(n,i);case 219:if(e.isDestructuringAssignment(n))return function(r,n){return H(r.left)?e.flattenDestructuringAssignment(r,W,t,0,!n):e.visitEachChild(r,W,t)}(n,i);break;case 206:if(e.isImportCall(n))return function(t){var n=e.getExternalModuleNameLiteral(r,t,_,c,s,o),i=e.visitNode(e.firstOrUndefined(t.arguments),W),a=!n||i&&e.isStringLiteral(i)&&i.text===n.text?i:n;return r.createCallExpression(r.createPropertyAccessExpression(f,r.createIdentifier("import")),void 0,a?[a]:[])}(n);break;case 217:case 218:return function(n,i){if((45===n.operator||46===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var o=X(n.operand);if(o){var s=void 0,c=e.visitNode(n.operand,W,e.isExpression);e.isPrefixUnaryExpression(n)?c=r.updatePrefixUnaryExpression(n,c):(c=r.updatePostfixUnaryExpression(n,c),i||(s=r.createTempVariable(a),c=r.createAssignment(s,c),e.setTextRange(c,n)),c=r.createComma(c,r.cloneNode(n.operand)),e.setTextRange(c,n));for(var l=0,u=o;l<u.length;l++)c=V(u[l],Q(c));return s&&(c=r.createComma(c,s),e.setTextRange(c,n)),c}}return e.visitEachChild(n,W,t)}(n,i)}return e.visitEachChild(n,W,t)}function W(e){return G(e,!1)}function q(e){return G(e,!0)}function H(t){if(e.isAssignmentExpression(t,!0))return H(t.left);if(e.isSpreadElement(t))return H(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,H);if(e.isArrayLiteralExpression(t))return e.some(t.elements,H);if(e.isShorthandPropertyAssignment(t))return H(t.name);if(e.isPropertyAssignment(t))return H(t.initializer);if(e.isIdentifier(t)){var r=s.getReferencedExportContainer(t);return void 0!==r&&300===r.kind}return!1}function Y(e){switch(e.kind){case 93:case 88:return}return e}function X(t){var n;if(!e.isGeneratedIdentifier(t)){var i=s.getReferencedImportDeclaration(t)||s.getReferencedValueDeclaration(t);if(i){var a=s.getReferencedExportContainer(t,!1);a&&300===a.kind&&(n=e.append(n,r.getDeclarationName(i))),n=e.addRange(n,d&&d.exportedBindings[e.getOriginalNodeId(i)])}}return n}function Q(t){return void 0===y&&(y=[]),y[e.getNodeId(t)]=!0,t}}}(u||(u={})),function(e){e.transformECMAScriptModule=function(t){var r,n=t.factory,a=t.getEmitHelperFactory,o=t.getCompilerOptions(),s=t.onEmitNode,c=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){e.isSourceFile(n)?((e.isExternalModule(n)||o.isolatedModules)&&o.importHelpers&&(r=new e.Map),s(t,n,i),r=void 0):s(t,n,i)},t.onSubstituteNode=function(t,i){return i=c(t,i),r&&e.isIdentifier(i)&&4096&e.getEmitFlags(i)?function(t){var i=e.idText(t),a=r.get(i);return a||r.set(i,a=n.createUniqueName(i,48)),a}(i):i},t.enableEmitNotification(300),t.enableSubstitution(79),e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;if(e.isExternalModule(r)||o.isolatedModules){var s=function(r){var i=e.createExternalHelpersImportDeclarationIfNeeded(n,a(),r,o);if(i){var s=[],c=n.copyPrologue(r.statements,s);return e.append(s,i),e.addRange(s,e.visitNodes(r.statements,l,e.isStatement,c)),n.updateSourceFile(r,e.setTextRange(n.createNodeArray(s),r.statements))}return e.visitEachChild(r,l,t)}(r);return!e.isExternalModule(r)||e.some(s.statements,e.isExternalModuleIndicator)?s:n.updateSourceFile(s,e.setTextRange(n.createNodeArray(i(i([],s.statements,!0),[e.createEmptyExports(n)],!1)),s.statements))}return r}));function l(t){switch(t.kind){case 263:return;case 269:return function(e){return e.isExportEquals?void 0:e}(t);case 270:return function(t){if(void 0!==o.module&&o.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,i=n.getGeneratedNameForNode(r),a=n.createImportDeclaration(void 0,void 0,n.createImportClause(!1,void 0,n.createNamespaceImport(i)),t.moduleSpecifier);e.setOriginalNode(a,t.exportClause);var s=e.isExportNamespaceAsDefaultDeclaration(t)?n.createExportDefault(i):n.createExportDeclaration(void 0,void 0,!1,n.createNamedExports([n.createExportSpecifier(i,r)]));return e.setOriginalNode(s,t),[a,s]}(t)}return t}}}(u||(u={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?function(r){return{diagnosticMessage:171===t.kind?e.isStatic(t)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(r){var n;switch(t.kind){case 173: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 172: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 174: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 167:case 166:n=e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:255===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 254:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 169: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 173:case 178: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 172: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 174: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 167:case 166:return e.isStatic(t.parent)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:255===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 254:case 177:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 171:case 170:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[t.parent.kind])}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var r;switch(t.parent.kind){case 255:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 256:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 193:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 178:case 173:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 172:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 167:case 166:r=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:255===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 177:case 254:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 257:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){return{diagnosticMessage:e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&117===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?function(r){return{diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[t.kind]);function r(r){var n=function(r){return 252===t.kind||201===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:165===t.kind||204===t.kind||164===t.kind||162===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:255===t.parent.kind||162===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:255===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:255===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(u||(u={})),function(e){function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function r(r,n){var i=e.getParseTreeNode(r);if(i&&162===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var l=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(l,(function(e){return t(e,n)}))}e.getDeclarationDiagnostics=function(t,r,n){var i=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,i,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[a],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function a(t){var a,c,l,u,_,d,p,f,g,m,y,h,v=function(){return e.Debug.fail("Diagnostic emitted without context")},b=v,x=!0,D=!1,S=!1,E=!1,T=!1,C=t.factory,k=t.getEmitHost(),A={trackSymbol:function(e,t,r){if(262144&e.flags)return!1;var n=O(N.isSymbolAccessible(e,t,r,!0));return I(N.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError:function(){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"this"))},reportInaccessibleUniqueSymbolError:function(){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"unique symbol"))},reportCyclicStructureError:function(){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,L()))},reportPrivateInBaseOfClassExpression:function(r){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,L(),r))},reportTruncationError:function(){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:k,trackReferencedAmbientModule:function(t,r){var n=N.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return I(n);var i=e.getSourceFileOfNode(t);m.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){D||(d||(d=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((function(t){return e.getSourceFileOfNode(t)===r})),s=e.filter(i.declarations,(function(t){return e.getSourceFileOfNode(t)!==r}));if(s)for(var c=0,l=s;c<l.length;c++){var u=l[c];t.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(u,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(o,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}},reportNonSerializableProperty:function(r){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,r))}},N=t.getEmitResolver(),F=t.getCompilerOptions(),w=F.noResolve,P=F.stripInternal;return function(r){if(300===r.kind&&r.isDeclarationFile)return r;if(301===r.kind){D=!0,m=new e.Map,y=new e.Map;var n=!1,o=C.createBundle(e.map(r.sourceFiles,(function(r){if(!r.isDeclarationFile){if(n=n||r.hasNoDefaultLib,g=r,a=r,l=void 0,_=!1,u=new e.Map,b=v,E=!1,T=!1,R(r,m),B(r,y),e.isExternalOrCommonJsModule(r)||e.isJsonSourceFile(r)){S=!1,x=!1;var i=e.isSourceFileJS(r)?C.createNodeArray(M(r,!0)):e.visitNodes(r.statements,te);return C.updateSourceFile(r,[C.createModuleDeclaration([],[C.createModifier(134)],C.createStringLiteral(e.getResolvedExternalModuleName(t.getEmitHost(),r)),C.createModuleBlock(e.setTextRange(C.createNodeArray(Z(i)),r.statements)))],!0,[],[],!1,[])}x=!0;var o=e.isSourceFileJS(r)?C.createNodeArray(M(r)):e.visitNodes(r.statements,te);return C.updateSourceFile(r,Z(o),!0,[],[],!1,[])}})),e.mapDefined(r.prepends,(function(t){if(303===t.kind){var r=e.createUnparsedSourceFile(t,"dts",P);return n=n||!!r.hasNoDefaultLib,R(r,m),I(r.typeReferenceDirectives),B(r,y),r}return t})));o.syntheticFileReferences=[],o.syntheticTypeReferences=j(),o.syntheticLibReferences=L(),o.hasNoDefaultLib=n;var s=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,k,!0).declarationFilePath)),p=V(o.syntheticFileReferences,s);return m.forEach(p),o}x=!0,E=!1,T=!1,a=r,g=r,b=v,D=!1,S=!1,_=!1,l=void 0,u=new e.Map,c=void 0,m=R(g,new e.Map),y=B(g,new e.Map);var f,A=[],N=V(A,e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,k,!0).declarationFilePath)));if(e.isSourceFileJS(g))f=C.createNodeArray(M(r)),m.forEach(N),h=e.filter(f,e.isAnyImportSyntax);else{var w=e.visitNodes(r.statements,te);f=e.setTextRange(C.createNodeArray(Z(w)),r.statements),m.forEach(N),h=e.filter(f,e.isAnyImportSyntax),e.isExternalModule(r)&&(!S||E&&!T)&&(f=e.setTextRange(C.createNodeArray(i(i([],f,!0),[e.createEmptyExports(C)],!1)),f))}var O=C.updateSourceFile(r,f,!0,A,j(),r.hasNoDefaultLib,L());return O.exportedModulesFromDeclarationEmit=d,O;function L(){return e.map(e.arrayFrom(y.keys()),(function(e){return{fileName:e,pos:-1,end:-1}}))}function j(){return c?e.mapDefined(e.arrayFrom(c.keys()),J):[]}function J(t){if(h)for(var r=0,n=h;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 V(t,n){return function(i){var a;if(i.isDeclarationFile)a=i.fileName;else{if(D&&e.contains(r.sourceFiles,i))return;var o=e.getOutputPathsFor(i,k,!0);a=o.declarationFilePath||o.jsFilePath||i.fileName}if(a){var s=e.moduleSpecifiers.getModuleSpecifier(F,g,e.toPath(n,k.getCurrentDirectory(),k.getCanonicalFileName),e.toPath(a,k.getCurrentDirectory(),k.getCanonicalFileName),k);if(!e.pathIsRelative(s))return void I([s]);var c=e.getRelativePathToDirectoryOrUrl(n,a,k.getCurrentDirectory(),k.getCanonicalFileName,!1);if(e.startsWith(c,"./")&&e.hasExtension(c)&&(c=c.substring(2)),e.startsWith(c,"node_modules/")||e.pathContainsNodeModules(c))return;t.push({pos:-1,end:-1,fileName:c})}}}};function I(t){if(t){c=c||new e.Set;for(var r=0,n=t;r<n.length;r++){var i=n[r];c.add(i)}}}function O(r){if(0===r.accessibility){if(r&&r.aliasesToMakeVisible)if(l)for(var n=0,i=r.aliasesToMakeVisible;n<i.length;n++){var a=i[n];e.pushIfUnique(l,a)}else l=r.aliasesToMakeVisible}else{var o=b(r);if(o)return o.typeName?t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),r.errorSymbolName,r.errorModuleName)):t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,r.errorSymbolName,r.errorModuleName)),!0}return!1}function L(){return p?e.declarationNameToString(p):f&&e.getNameOfDeclaration(f)?e.declarationNameToString(e.getNameOfDeclaration(f)):f&&e.isExportAssignment(f)?f.isExportEquals?"export=":"default":"(Missing)"}function M(t,r){var i=b;b=function(r){return r.errorNode&&e.canProduceDiagnostics(r.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(r.errorNode)(r):{diagnosticMessage:r.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:r.errorNode||t}};var a=N.getDeclarationStatementsForSourceFile(t,n,A,r);return b=i,a}function R(t,r){return w||!e.isUnparsedSource(t)&&e.isSourceFileJS(t)||e.forEach(t.referencedFiles,(function(n){var i=k.getSourceFileFromReference(t,n);i&&r.set(e.getOriginalNodeId(i),i)})),r}function B(t,r){return e.forEach(t.libReferenceDirectives,(function(t){k.getLibFileFromReference(t)&&r.set(e.toFileNameLowerCase(t.fileName),!0)})),r}function j(t){return 79===t.kind?t:200===t.kind?C.updateArrayBindingPattern(t,e.visitNodes(t.elements,r)):C.updateObjectBindingPattern(t,e.visitNodes(t.elements,r));function r(e){return 225===e.kind?e:C.updateBindingElement(e,e.dotDotDotToken,e.propertyName,j(e.name),V(e)?e.initializer:void 0)}}function J(t,r,n){var i;_||(i=b,b=e.createGetSymbolAccessibilityDiagnosticForNode(t));var a=C.updateParameterDeclaration(t,void 0,function(t,r,n){return e.factory.createModifiersFromModifierFlags(o(t,r,void 0))}(t,r),t.dotDotDotToken,j(t.name),N.isOptionalParameter(t)?t.questionToken||C.createToken(57):void 0,K(t,n||t.type,!0),U(t));return _||(b=i),a}function V(t){return function(t){switch(t.kind){case 165:case 164:return!e.hasEffectiveModifier(t,8);case 162:case 252:return!0}return!1}(t)&&N.isLiteralConstDeclaration(e.getParseTreeNode(t))}function U(t){if(V(t))return N.createLiteralConstValue(e.getParseTreeNode(t),A)}function K(t,r,i){if((i||!e.hasEffectiveModifier(t,8))&&!V(t)){var o,s=162===t.kind&&(N.isRequiredInitializedParameter(t)||N.isOptionalUninitializedParameterProperty(t));return r&&!s?e.visitNode(r,ee):e.getParseTreeNode(t)?171===t.kind?C.createKeywordTypeNode(129):(p=t.name,_||(o=b,b=e.createGetSymbolAccessibilityDiagnosticForNode(t)),252===t.kind||201===t.kind?c(N.createTypeOfDeclaration(t,a,n,A)):162===t.kind||165===t.kind||164===t.kind?t.initializer?c(N.createTypeOfDeclaration(t,a,n,A,s)||N.createTypeOfExpression(t.initializer,a,n,A)):c(N.createTypeOfDeclaration(t,a,n,A,s)):c(N.createReturnTypeOfSignatureDeclaration(t,a,n,A))):r?e.visitNode(r,ee):C.createKeywordTypeNode(129)}function c(e){return p=void 0,_||(b=o),e||C.createKeywordTypeNode(129)}}function z(t){switch((t=e.getParseTreeNode(t)).kind){case 254:case 259:case 256:case 255:case 257:case 258:return!N.isDeclarationVisible(t);case 252:return!G(t);case 263:case 264:case 270:case 269:return!1;case 168:return!0}return!1}function G(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.some(t.name.elements,G):N.isDeclarationVisible(t))}function W(t,r,n){if(!e.hasEffectiveModifier(t,8)){var i=e.map(r,(function(e){return J(e,n)}));if(i)return C.createNodeArray(i,r.hasTrailingComma)}}function q(t,r){var n;if(!r){var i=e.getThisParameter(t);i&&(n=[J(i)])}if(e.isSetAccessorDeclaration(t)){var a=void 0;if(!r){var o=e.getSetAccessorValueParameter(t);o&&(a=J(o,void 0,ce(t,N.getAllAccessorDeclarations(t))))}a||(a=C.createParameterDeclaration(void 0,void 0,void 0,"value")),n=e.append(n,a)}return C.createNodeArray(n||e.emptyArray)}function H(t,r){return e.hasEffectiveModifier(t,8)?void 0:e.visitNodes(r,ee)}function Y(t){return e.isSourceFile(t)||e.isTypeAliasDeclaration(t)||e.isModuleDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionLike(t)||e.isIndexSignatureDeclaration(t)||e.isMappedTypeNode(t)}function X(e,t){O(N.isEntityNameVisible(e,t)),I(N.getTypeReferenceDirectivesForEntityName(e))}function Q(t,r){return e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)&&(t.jsDoc=r.jsDoc),e.setCommentRange(t,e.getCommentRange(r))}function $(r,n){if(n){if(S=S||259!==r.kind&&198!==r.kind,e.isStringLiteralLike(n))if(D){var i=e.getExternalModuleNameFromDeclaration(t.getEmitHost(),N,r);if(i)return C.createStringLiteral(i)}else{var a=N.getSymbolOfExternalModuleSpecifier(n);a&&(d||(d=[])).push(a)}return n}}function Z(t){for(;e.length(l);){var r=l.shift();if(!e.isLateVisibilityPaintedStatement(r))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[r.kind]:r.kind));var n=x;x=r.parent&&e.isSourceFile(r.parent)&&!(e.isExternalModule(r.parent)&&D);var i=ne(r);x=n,u.set(e.getOriginalNodeId(r),i)}return e.visitNodes(t,(function(t){if(e.isLateVisibilityPaintedStatement(t)){var r=e.getOriginalNodeId(t);if(u.has(r)){var n=u.get(r);return u.delete(r),n&&((e.isArray(n)?e.some(n,e.needsScopeMarker):e.needsScopeMarker(n))&&(E=!0),e.isSourceFile(t.parent)&&(e.isArray(n)?e.some(n,e.isExternalModuleIndicator):e.isExternalModuleIndicator(n))&&(S=!0)),n}}return t}))}function ee(r){if(!ae(r)){if(e.isDeclaration(r)){if(z(r))return;if(e.hasDynamicName(r)&&!N.isLateBound(e.getParseTreeNode(r)))return}if(!(e.isFunctionLike(r)&&N.isImplementationOfOverload(r)||e.isSemicolonClassElement(r))){var n;Y(r)&&(n=a,a=r);var i=b,o=e.canProduceDiagnostics(r),s=_,c=(180===r.kind||193===r.kind)&&257!==r.parent.kind;if((e.isMethodDeclaration(r)||e.isMethodSignature(r))&&e.hasEffectiveModifier(r,8)){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations[0]!==r)return;return v(C.createPropertyDeclaration(void 0,se(r),r.name,void 0,void 0,void 0))}if(o&&!_&&(b=e.createGetSymbolAccessibilityDiagnosticForNode(r)),e.isTypeQueryNode(r)&&X(r.exprName,a),c&&(_=!0),function(e){switch(e.kind){case 173:case 169:case 167:case 170:case 171:case 165:case 164:case 166:case 172:case 174:case 252:case 161:case 226:case 176:case 187:case 177:case 178:case 198:return!0}return!1}(r))switch(r.kind){case 226:(e.isEntityName(r.expression)||e.isEntityNameExpression(r.expression))&&X(r.expression,a);var l=e.visitEachChild(r,ee,t);return v(C.updateExpressionWithTypeArguments(l,l.expression,l.typeArguments));case 176:return X(r.typeName,a),l=e.visitEachChild(r,ee,t),v(C.updateTypeReferenceNode(l,l.typeName,l.typeArguments));case 173:return v(C.updateConstructSignature(r,H(r,r.typeParameters),W(r,r.parameters),K(r,r.type)));case 169:return v(C.createConstructorDeclaration(void 0,se(r),W(r,r.parameters,0),void 0));case 167:return e.isPrivateIdentifier(r.name)?v(void 0):v(C.createMethodDeclaration(void 0,se(r),void 0,r.name,r.questionToken,H(r,r.typeParameters),W(r,r.parameters),K(r,r.type),void 0));case 170:if(e.isPrivateIdentifier(r.name))return v(void 0);var u=ce(r,N.getAllAccessorDeclarations(r));return v(C.updateGetAccessorDeclaration(r,void 0,se(r),r.name,q(r,e.hasEffectiveModifier(r,8)),K(r,u),void 0));case 171:return e.isPrivateIdentifier(r.name)?v(void 0):v(C.updateSetAccessorDeclaration(r,void 0,se(r),r.name,q(r,e.hasEffectiveModifier(r,8)),void 0));case 165:return e.isPrivateIdentifier(r.name)?v(void 0):v(C.updatePropertyDeclaration(r,void 0,se(r),r.name,r.questionToken,K(r,r.type),U(r)));case 164:return e.isPrivateIdentifier(r.name)?v(void 0):v(C.updatePropertySignature(r,se(r),r.name,r.questionToken,K(r,r.type)));case 166:return e.isPrivateIdentifier(r.name)?v(void 0):v(C.updateMethodSignature(r,se(r),r.name,r.questionToken,H(r,r.typeParameters),W(r,r.parameters),K(r,r.type)));case 172:return v(C.updateCallSignature(r,H(r,r.typeParameters),W(r,r.parameters),K(r,r.type)));case 174:return v(C.updateIndexSignature(r,void 0,se(r),W(r,r.parameters),e.visitNode(r.type,ee)||C.createKeywordTypeNode(129)));case 252:return e.isBindingPattern(r.name)?ie(r.name):(c=!0,_=!0,v(C.updateVariableDeclaration(r,r.name,void 0,K(r,r.type),U(r))));case 161:return function(t){return 167===t.parent.kind&&e.hasEffectiveModifier(t.parent,8)}(r)&&(r.default||r.constraint)?v(C.updateTypeParameterDeclaration(r,r.name,void 0,void 0)):v(e.visitEachChild(r,ee,t));case 187:var d=e.visitNode(r.checkType,ee),f=e.visitNode(r.extendsType,ee),m=a;a=r.trueType;var y=e.visitNode(r.trueType,ee);a=m;var h=e.visitNode(r.falseType,ee);return v(C.updateConditionalTypeNode(r,d,f,y,h));case 177:return v(C.updateFunctionTypeNode(r,e.visitNodes(r.typeParameters,ee),W(r,r.parameters),e.visitNode(r.type,ee)));case 178:return v(C.updateConstructorTypeNode(r,se(r),e.visitNodes(r.typeParameters,ee),W(r,r.parameters),e.visitNode(r.type,ee)));case 198:return e.isLiteralImportTypeNode(r)?v(C.updateImportTypeNode(r,C.updateLiteralTypeNode(r.argument,$(r,r.argument.literal)),r.qualifier,e.visitNodes(r.typeArguments,ee,e.isTypeNode),r.isTypeOf)):v(r);default:e.Debug.assertNever(r,"Attempted to process unhandled node kind: "+e.SyntaxKind[r.kind])}return e.isTupleTypeNode(r)&&e.getLineAndCharacterOfPosition(g,r.pos).line===e.getLineAndCharacterOfPosition(g,r.end).line&&e.setEmitFlags(r,1),v(e.visitEachChild(r,ee,t))}}function v(t){return t&&o&&e.hasDynamicName(r)&&function(t){var r;_||(r=b,b=e.createGetSymbolAccessibilityDiagnosticForNodeName(t)),p=t.name,e.Debug.assert(N.isLateBound(e.getParseTreeNode(t))),X(t.name.expression,a),_||(b=r),p=void 0}(r),Y(r)&&(a=n),o&&!_&&(b=i),c&&(_=s),t===r?t:t&&e.setOriginalNode(Q(t,r),r)}}function te(t){if(function(e){switch(e.kind){case 254:case 259:case 263:case 256:case 255:case 257:case 258:case 235:case 264:case 270:case 269:return!0}return!1}(t)&&!ae(t)){switch(t.kind){case 270:return e.isSourceFile(t.parent)&&(S=!0),T=!0,C.updateExportDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.exportClause,$(t,t.moduleSpecifier));case 269:if(e.isSourceFile(t.parent)&&(S=!0),T=!0,79===t.expression.kind)return t;var r=C.createUniqueName("_default",16);b=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}},f=t;var i=C.createVariableDeclaration(r,void 0,N.createTypeOfExpression(t.expression,t,n,A),void 0);return f=void 0,[C.createVariableStatement(x?[C.createModifier(134)]:[],C.createVariableDeclarationList([i],2)),C.updateExportAssignment(t,t.decorators,t.modifiers,r)]}var a=ne(t);return u.set(e.getOriginalNodeId(t),a),t}}function re(t){if(e.isImportEqualsDeclaration(t)||e.hasEffectiveModifier(t,512)||!e.canHaveModifiers(t))return t;var r=C.createModifiersFromModifierFlags(27646&e.getEffectiveModifierFlags(t));return C.updateModifiers(t,r)}function ne(t){if(!ae(t)){switch(t.kind){case 263:return function(t){if(N.isDeclarationVisible(t)){if(275===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return C.updateImportEqualsDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.name,C.updateExternalModuleReference(t.moduleReference,$(t,r)))}var n=b;return b=e.createGetSymbolAccessibilityDiagnosticForNode(t),X(t.moduleReference,a),b=n,t}}(t);case 264:return function(t){if(!t.importClause)return C.updateImportDeclaration(t,void 0,t.modifiers,t.importClause,$(t,t.moduleSpecifier));var r=t.importClause&&t.importClause.name&&N.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&C.updateImportDeclaration(t,void 0,t.modifiers,C.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,void 0),$(t,t.moduleSpecifier));if(266===t.importClause.namedBindings.kind){var n=N.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||n?C.updateImportDeclaration(t,void 0,t.modifiers,C.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),$(t,t.moduleSpecifier)):void 0}var i=e.mapDefined(t.importClause.namedBindings.elements,(function(e){return N.isDeclarationVisible(e)?e:void 0}));return i&&i.length||r?C.updateImportDeclaration(t,void 0,t.modifiers,C.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,i&&i.length?C.updateNamedImports(t.importClause.namedBindings,i):void 0),$(t,t.moduleSpecifier)):N.isImportRequiredByAugmentation(t)?C.updateImportDeclaration(t,void 0,t.modifiers,void 0,$(t,t.moduleSpecifier)):void 0}(t)}if(!(e.isDeclaration(t)&&z(t)||e.isFunctionLike(t)&&N.isImplementationOfOverload(t))){var r;Y(t)&&(r=a,a=t);var o=e.canProduceDiagnostics(t),s=b;o&&(b=e.createGetSymbolAccessibilityDiagnosticForNode(t));var c=x;switch(t.kind){case 257:return ge(C.updateTypeAliasDeclaration(t,void 0,se(t),t.name,e.visitNodes(t.typeParameters,ee,e.isTypeParameterDeclaration),e.visitNode(t.type,ee,e.isTypeNode)));case 256:return ge(C.updateInterfaceDeclaration(t,void 0,se(t),t.name,H(t,t.typeParameters),le(t.heritageClauses),e.visitNodes(t.members,ee)));case 254:var l=ge(C.updateFunctionDeclaration(t,void 0,se(t),void 0,t.name,H(t,t.typeParameters),W(t,t.parameters),K(t,t.type),void 0));if(l&&N.isExpandoFunctionDeclaration(t)&&function(t){var r;if(t.body)return!0;var n=null===(r=t.symbol.declarations)||void 0===r?void 0:r.filter((function(t){return e.isFunctionDeclaration(t)&&!t.body}));return!n||n.indexOf(t)===n.length-1}(t)){var _=N.getPropertiesOfContainerFunction(t),d=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,l.name||C.createIdentifier("_default"),C.createModuleBlock([]),16);e.setParent(d,a),d.locals=e.createSymbolTable(_),d.symbol=_[0].parent;var g=[],m=e.mapDefined(_,(function(t){if(t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)){b=e.createGetSymbolAccessibilityDiagnosticForNode(t.valueDeclaration);var r=N.createTypeOfDeclaration(t.valueDeclaration,d,n,A);b=s;var i=e.unescapeLeadingUnderscores(t.escapedName),a=e.isStringANonContextualKeyword(i),o=a?C.getGeneratedNameForNode(t.valueDeclaration):C.createIdentifier(i);a&&g.push([o,i]);var c=C.createVariableDeclaration(o,void 0,r,void 0);return C.createVariableStatement(a?void 0:[C.createToken(93)],C.createVariableDeclarationList([c]))}}));g.length?m.push(C.createExportDeclaration(void 0,void 0,!1,C.createNamedExports(e.map(g,(function(e){var t=e[0],r=e[1];return C.createExportSpecifier(t,r)}))))):m=e.mapDefined(m,(function(e){return C.updateModifiers(e,0)}));var y=C.createModuleDeclaration(void 0,se(t),t.name,C.createModuleBlock(m),16);if(!e.hasEffectiveModifier(l,512))return[l,y];var h=C.createModifiersFromModifierFlags(-514&e.getEffectiveModifierFlags(l)|2),v=C.updateFunctionDeclaration(l,void 0,h,void 0,l.name,l.typeParameters,l.parameters,l.type,void 0),D=C.updateModuleDeclaration(y,void 0,h,y.name,y.body),k=C.createExportAssignment(void 0,void 0,!1,y.name);return e.isSourceFile(t.parent)&&(S=!0),T=!0,[v,D,k]}return l;case 259:x=!1;var F=t.body;if(F&&260===F.kind){var w=E,P=T;T=!1,E=!1;var I=Z(e.visitNodes(F.statements,te));8388608&t.flags&&(E=!1),e.isGlobalScopeAugmentation(t)||(fe=I,e.some(fe,oe))||T||(I=E?C.createNodeArray(i(i([],I,!0),[e.createEmptyExports(C)],!1)):e.visitNodes(I,re));var O=C.updateModuleBlock(F,I);x=c,E=w,T=P;var L=se(t);return ge(C.updateModuleDeclaration(t,void 0,L,e.isExternalModuleAugmentation(t)?$(t,t.name):t.name,O))}x=c,L=se(t),x=!1,e.visitNode(F,te);var M=e.getOriginalNodeId(F);return O=u.get(M),u.delete(M),ge(C.updateModuleDeclaration(t,void 0,L,t.name,O));case 255:p=t.name,f=t,h=C.createNodeArray(se(t));var R=H(t,t.typeParameters),B=e.getFirstConstructorWithBody(t),j=void 0;if(B){var J=b;j=e.compact(e.flatMap(B.parameters,(function(t){if(e.hasSyntacticModifier(t,16476)&&!ae(t))return b=e.createGetSymbolAccessibilityDiagnosticForNode(t),79===t.name.kind?Q(C.createPropertyDeclaration(void 0,se(t),t.name,t.questionToken,K(t,t.type),U(t)),t):function r(n){for(var i,a=0,o=n.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(i=e.concatenate(i,r(s.name))),(i=i||[]).push(C.createPropertyDeclaration(void 0,se(t),s.name,void 0,K(s,void 0),void 0)))}return i}(t.name)}))),b=J}var V=e.some(t.members,(function(t){return!!t.name&&e.isPrivateIdentifier(t.name)}))?[C.createPropertyDeclaration(void 0,void 0,C.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,q=e.concatenate(e.concatenate(V,j),e.visitNodes(t.members,ee)),ne=C.createNodeArray(q),ie=e.getEffectiveBaseTypeNode(t);if(ie&&!e.isEntityNameExpression(ie.expression)&&104!==ie.expression.kind){var ce=t.name?e.unescapeLeadingUnderscores(t.name.escapedText):"default",ue=C.createUniqueName(ce+"_base",16);b=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:ie,typeName:t.name}};var _e=C.createVariableDeclaration(ue,void 0,N.createTypeOfExpression(ie.expression,t,n,A),void 0),de=C.createVariableStatement(x?[C.createModifier(134)]:[],C.createVariableDeclarationList([_e],2)),pe=C.createNodeArray(e.map(t.heritageClauses,(function(t){if(94===t.token){var r=b;b=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=C.updateHeritageClause(t,e.map(t.types,(function(t){return C.updateExpressionWithTypeArguments(t,ue,e.visitNodes(t.typeArguments,ee))})));return b=r,n}return C.updateHeritageClause(t,e.visitNodes(C.createNodeArray(e.filter(t.types,(function(t){return e.isEntityNameExpression(t.expression)||104===t.expression.kind}))),ee))})));return[de,ge(C.updateClassDeclaration(t,void 0,h,t.name,R,pe,ne))]}return pe=le(t.heritageClauses),ge(C.updateClassDeclaration(t,void 0,h,t.name,R,pe,ne));case 235:return ge(function(t){if(e.forEach(t.declarationList.declarations,G)){var r=e.visitNodes(t.declarationList.declarations,ee);if(e.length(r))return C.updateVariableStatement(t,C.createNodeArray(se(t)),C.updateVariableDeclarationList(t.declarationList,r))}}(t));case 258:return ge(C.updateEnumDeclaration(t,void 0,C.createNodeArray(se(t)),t.name,C.createNodeArray(e.mapDefined(t.members,(function(e){if(!ae(e)){var t=N.getConstantValue(e);return Q(C.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?C.createStringLiteral(t):C.createNumericLiteral(t):void 0),e)}})))))}return e.Debug.assertNever(t,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[t.kind])}}var fe;function ge(n){return Y(t)&&(a=r),o&&(b=s),259===t.kind&&(x=c),n===t?n:(f=void 0,p=void 0,n&&e.setOriginalNode(Q(n,t),t))}}function ie(t){return e.flatten(e.mapDefined(t.elements,(function(t){return function(t){if(225!==t.kind&&t.name){if(!G(t))return;return e.isBindingPattern(t.name)?ie(t.name):C.createVariableDeclaration(t.name,void 0,K(t,void 0),void 0)}}(t)})))}function ae(e){return!!P&&!!e&&r(e,g)}function oe(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function se(t){var r=e.getEffectiveModifierFlags(t),n=function(t){var r=11003,n=x&&!function(e){return 256===e.kind}(t)?2:0,i=300===t.parent.kind;return(!i||D&&i&&e.isExternalModule(t.parent))&&(r^=2,n=0),o(t,r,n)}(t);return r===n?t.modifiers:C.createModifiersFromModifierFlags(n)}function ce(t,r){var n=s(t);return n||t===r.firstAccessor||(n=s(r.firstAccessor),b=e.createGetSymbolAccessibilityDiagnosticForNode(r.firstAccessor)),!n&&r.secondAccessor&&t!==r.secondAccessor&&(n=s(r.secondAccessor),b=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor)),n}function le(t){return C.createNodeArray(e.filter(e.map(t,(function(t){return C.updateHeritageClause(t,e.visitNodes(C.createNodeArray(e.filter(t.types,(function(r){return e.isEntityNameExpression(r.expression)||94===t.token&&104===r.expression.kind}))),ee))})),(function(e){return e.types&&!!e.types.length})))}}function o(t,r,n){void 0===r&&(r=27643),void 0===n&&(n=0);var i=e.getEffectiveModifierFlags(t)&r|n;return 512&i&&!(1&i)&&(i^=1),512&i&&2&i&&(i^=2),i}function s(e){if(e)return 170===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=a}(u||(u={})),function(e){var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&e.map(r.before,s)),o.push(e.transformTypeScript),o.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&o.push(e.transformJsx),i<99&&o.push(e.transformESNext),i<8&&o.push(e.transformES2021),i<7&&o.push(e.transformES2020),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&e.map(r.after,s)),o}function a(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,c)),r}function o(t,r){return function(n){var i=t(n);return"function"==typeof i?r(n,i):function(t){return function(r){return e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r)}}(i)}}function s(t){return o(t,e.chainBundle)}function c(e){return o(e,(function(e,t){return t}))}function l(e,t){return t}function u(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,r){return{scriptTransformers:n(e,t,r),declarationTransformers:a(t)}},e.noEmitSubstitution=l,e.noEmitNotification=u,e.transformNodes=function(t,r,n,a,o,s,c){for(var _,d,p,f,g,m=new Array(350),y=0,h=[],v=[],b=[],x=[],D=0,S=!1,E=[],T=0,C=l,k=u,A=0,N=[],F={factory:n,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(F)})),startLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),h[D]=_,v[D]=d,b[D]=p,x[D]=y,D++,_=void 0,d=void 0,p=void 0,y=0},suspendLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0},resumeLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),_||d||p){if(d&&(t=i([],d,!0)),_){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(_));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}p&&(t=i(t?i([],t,!0):[],p,!0))}return D--,_=h[D],d=v[D],p=b[D],y=x[D],0===D&&(h=[],v=[],b=[],x=[]),t},setLexicalEnvironmentFlags:function(e,t){y=t?y|e:y&~e},getLexicalEnvironmentFlags:function(){return y},hoistVariableDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(n.createVariableDeclaration(t),64);_?_.push(r):_=[r],1&y&&(y|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),d?d.push(t):d=[t]},addInitializationStatement:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},startBlockScope:function(){e.Debug.assert(A>0,"Cannot start a block scope during initialization."),e.Debug.assert(A<2,"Cannot start a block scope after transformation has completed."),E[T]=f,T++,f=void 0},endBlockScope:function(){e.Debug.assert(A>0,"Cannot end a block scope during initialization."),e.Debug.assert(A<2,"Cannot end a block scope after transformation has completed.");var t=e.some(f)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(f.map((function(e){return n.createVariableDeclaration(e)})),1))]:void 0;return T--,f=E[T],0===T&&(E=[]),t},addBlockScopedVariable:function(t){e.Debug.assert(T>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(t)},requestEmitHelper:function t(r){if(e.Debug.assert(A>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n<i.length;n++){t(i[n])}g=e.append(g,r)},readEmitHelpers:function(){e.Debug.assert(A>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed.");var t=g;return g=void 0,t},enableSubstitution:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=1},enableEmitNotification:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=2},isSubstitutionEnabled:J,isEmitNotificationEnabled:V,get onSubstituteNode(){return C},set onSubstituteNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),C=t},get onEmitNode(){return k},set onEmitNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),k=t},addDiagnostic:function(e){N.push(e)}},w=0,P=o;w<P.length;w++){var I=P[w];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(I)))}e.performance.mark("beforeTransform");var O=s.map((function(e){return e(F)})),L=function(e){for(var t=0,r=O;t<r.length;t++)e=(0,r[t])(e);return e};A=1;for(var M=[],R=0,B=o;R<B.length;R++)I=B[R],null===e.tracing||void 0===e.tracing||e.tracing.push("emit","transformNodes",300===I.kind?{path:I.path}:{kind:I.kind,pos:I.pos,end:I.end}),M.push((c?L:j)(I)),null===e.tracing||void 0===e.tracing||e.tracing.pop();return A=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:M,substituteNode:function(t,r){return e.Debug.assert(A<3,"Cannot substitute a node after the result is disposed."),r&&J(r)&&C(t,r)||r},emitNodeWithNotification:function(t,r,n){e.Debug.assert(A<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(V(r)?k(t,r,n):n(t,r))},isEmitNotificationEnabled:V,dispose:function(){if(A<3){for(var t=0,r=o;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}_=void 0,h=void 0,d=void 0,v=void 0,C=void 0,k=void 0,g=void 0,A=3}},diagnostics:N};function j(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:L(t)}function J(t){return 0!=(1&m[t.kind])&&0==(4&e.getEmitFlags(t))}function V(t){return 0!=(2&m[t.kind])||0!=(2&e.getEmitFlags(t))}},e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:l,onEmitNode:u,addDiagnostic:e.noop}}(u||(u={})),function(e){var t,r,n=function(){var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function a(t,r,n,i,a,s){void 0===i&&(i=!1);var l=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),u=t.getCompilerOptions();if(e.outFile(u)){var _=t.getPrependNodes();if(l.length||_.length){var d=e.factory.createBundle(l,_);if(g=r(c(d,t,i),d))return g}}else{if(!a)for(var p=0,f=l;p<f.length;p++){var g,m=f[p];if(g=r(c(m,t,i),m))return g}if(s){var y=o(u);if(y)return r({buildInfoPath:y},void 0)}}}function o(t){var r=t.configFilePath;if(e.isIncrementalCompilation(t)){if(t.tsBuildInfoFile)return t.tsBuildInfoFile;var n,i=e.outFile(t);if(i)n=e.removeFileExtension(i);else{if(!r)return;var a=e.removeFileExtension(r);n=t.outDir?t.rootDir?e.resolvePath(t.outDir,e.getRelativePathFromDirectory(t.rootDir,a,!0)):e.combinePaths(t.outDir,e.getBaseFileName(a)):a}return n+".tsbuildinfo"}}function s(t,r){var n=e.outFile(t),i=t.emitDeclarationOnly?void 0:n,a=i&&l(i,t),s=r||e.getEmitDeclarations(t)?e.removeFileExtension(n)+".d.ts":void 0;return{jsFilePath:i,sourceMapFilePath:a,declarationFilePath:s,declarationMapPath:s&&e.getAreDeclarationMapsEnabled(t)?s+".map":void 0,buildInfoPath:o(t)}}function c(t,r,n){var i=r.getCompilerOptions();if(301===t.kind)return s(i,n);var a=e.getOwnEmitOutputFilePath(t.fileName,r,u(t,i)),o=e.isJsonSourceFile(t),c=o&&0===e.comparePaths(t.fileName,a,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames()),_=i.emitDeclarationOnly||c?void 0:a,d=!_||e.isJsonSourceFile(t)?void 0:l(_,i),p=n||e.getEmitDeclarations(i)&&!o?e.getDeclarationEmitOutputFilePath(t.fileName,r):void 0;return{jsFilePath:_,sourceMapFilePath:d,declarationFilePath:p,declarationMapPath:p&&e.getAreDeclarationMapsEnabled(i)?p+".map":void 0,buildInfoPath:void 0}}function l(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function u(t,r){if(e.isJsonSourceFile(t))return".json";if(1===r.jsx)if(e.isSourceFileJS(t)){if(e.fileExtensionIs(t.fileName,".jsx"))return".jsx"}else if(1===t.languageVariant)return".jsx";return".js"}function _(t,r,n,i,a){return i?e.resolvePath(i,e.getRelativePathFromDirectory(a?a():h(r,n),t,n)):t}function d(t,r,n,i){return e.Debug.assert(!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json")),e.changeExtension(_(t,r,n,r.options.declarationDir||r.options.outDir,i),".d.ts")}function p(t,r,n,i){if(!r.options.emitDeclarationOnly){var a=e.fileExtensionIs(t,".json"),o=e.changeExtension(_(t,r,n,r.options.outDir,i),a?".json":1===r.options.jsx&&(e.fileExtensionIs(t,".tsx")||e.fileExtensionIs(t,".jsx"))?".jsx":".js");return a&&0===e.comparePaths(t,o,e.Debug.checkDefined(r.options.configFilePath),n)?void 0:o}}function f(){var t;return{addOutput:function(e){e&&(t||(t=[])).push(e)},getOutputs:function(){return t||e.emptyArray}}}function g(e,t){var r=s(e.options,!1),n=r.jsFilePath,i=r.sourceMapFilePath,a=r.declarationFilePath,o=r.declarationMapPath,c=r.buildInfoPath;t(n),t(i),t(a),t(o),t(c)}function m(t,r,n,i,a){if(!e.fileExtensionIs(r,".d.ts")){var o=p(r,t,n,a);if(i(o),!e.fileExtensionIs(r,".json")&&(o&&t.options.sourceMap&&i(o+".map"),e.getEmitDeclarations(t.options))){var s=d(r,t,n,a);i(s),t.options.declarationMap&&i(s+".map")}}}function y(t,r,n,i,a){var o;return t.rootDir?(o=e.getNormalizedAbsolutePath(t.rootDir,n),null==a||a(t.rootDir)):t.composite&&t.configFilePath?(o=e.getDirectoryPath(e.normalizeSlashes(t.configFilePath)),null==a||a(o)):o=e.computeCommonSourceDirectoryOfFilenames(r(),n,i),o&&o[o.length-1]!==e.directorySeparator&&(o+=e.directorySeparator),o}function h(t,r){var n=t.options,i=t.fileNames;return y(n,(function(){return e.filter(i,(function(t){return!(n.noEmitForJsFiles&&e.fileExtensionIsOneOf(t,e.supportedJSExtensions)||e.fileExtensionIs(t,".d.ts"))}))}),e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(n.configFilePath))),e.createGetCanonicalFileName(!r))}function v(t,r,n,i,o,s,c){var l,u,_=i.scriptTransformers,d=i.declarationTransformers,p=r.getCompilerOptions(),f=p.sourceMap||p.inlineSourceMap||e.getAreDeclarationMapsEnabled(p)?[]:void 0,g=p.listEmittedFiles?[]:void 0,m=e.createDiagnosticCollection(),y=e.getNewLineCharacter(p,(function(){return r.getNewLine()})),h=e.createTextWriter(y),v=e.performance.createTimer("printTime","beforePrint","afterPrint"),x=v.enter,S=v.exit,E=!1;return x(),a(r,(function(i,a){var s,f=i.jsFilePath,y=i.sourceMapFilePath,h=i.declarationFilePath,v=i.declarationMapPath,x=i.buildInfoPath;function S(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,t,r.getCanonicalFileName))}x&&a&&e.isBundle(a)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(x,r.getCurrentDirectory())),l={commonSourceDirectory:S(r.getCommonSourceDirectory()),sourceFiles:a.sourceFiles.map((function(t){return S(e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()))}))}),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:f}),function(n,i,a,s){if(n&&!o&&i)if(i&&r.isEmitBlocked(i)||p.noEmit)E=!0;else{var c=e.transformNodes(t,r,e.factory,p,[n],_,!1),u=D({removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!l,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:c.emitNodeWithNotification,isEmitNotificationEnabled:c.isEmitNotificationEnabled,substituteNode:c.substituteNode});e.Debug.assert(1===c.transformed.length,"Should only see one output from the transform"),C(i,a,c.transformed[0],u,p),c.dispose(),l&&(l.js=u.bundleFileInfo)}}(a,f,y,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:h}),function(n,i,a,s){if(n)if(i){var _=e.isSourceFile(n)?[n]:n.sourceFiles,f=c?_:e.filter(_,e.isSourceFileNotJson),g=e.outFile(p)?[e.factory.createBundle(f,e.isSourceFile(n)?void 0:n.prepends)]:f;o&&!e.getEmitDeclarations(p)&&f.forEach(T);var y=e.transformNodes(t,r,e.factory,p,g,d,!1);if(e.length(y.diagnostics))for(var h=0,v=y.diagnostics;h<v.length;h++){var b=v[h];m.add(b)}var x=D({removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!l,recordInternalSection:!!l,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:y.emitNodeWithNotification,isEmitNotificationEnabled:y.isEmitNotificationEnabled,substituteNode:y.substituteNode}),S=!!y.diagnostics&&!!y.diagnostics.length||!!r.isEmitBlocked(i)||!!p.noEmit;if(E=E||S,(!S||c)&&(e.Debug.assert(1===y.transformed.length,"Should only see one output from the decl transform"),C(i,a,y.transformed[0],x,{sourceMap:!c&&p.declarationMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),c&&300===y.transformed[0].kind)){var k=y.transformed[0];u=k.exportedModulesFromDeclarationEmit}y.dispose(),l&&(l.dts=x.bundleFileInfo)}else(o||p.emitDeclarationOnly)&&(E=!0)}(a,h,v,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:x}),function(t,i){if(i&&!n&&!E){var a=r.getProgramBuildInfo();if(r.isEmitBlocked(i))E=!0;else{var o=e.version;e.writeFile(r,m,i,b({bundle:t,program:a,version:o}),!1)}}}(l,x),null===e.tracing||void 0===e.tracing||e.tracing.pop(),!E&&g&&(o||(f&&g.push(f),y&&g.push(y),x&&g.push(x)),h&&g.push(h),v&&g.push(v))}),e.getSourceFilesToEmit(r,n,c),c,s,!n),S(),{emitSkipped:E,diagnostics:m.getDiagnostics(),emittedFiles:g,sourceMaps:f,exportedModulesFromDeclarationEmit:u};function T(r){e.isExportAssignment(r)?79===r.expression.kind&&t.collectLinkedAliases(r.expression,!0):e.isExportSpecifier(r)?t.collectLinkedAliases(r.propertyName||r.name,!0):e.forEachChild(r,T)}function C(t,n,i,a,o){var s,c=301===i.kind?i:void 0,l=300===i.kind?i:void 0,u=c?c.sourceFiles:[l];if(function(t,r){return(t.sourceMap||t.inlineSourceMap)&&(300!==r.kind||!e.fileExtensionIs(r.fileName,".json"))}(o,i)&&(s=e.createSourceMapGenerator(r,e.getBaseFileName(e.normalizeSlashes(t)),function(t){var r=e.normalizeSlashes(t.sourceRoot||"");return r?e.ensureTrailingDirectorySeparator(r):r}(o),function(t,n,i){if(t.sourceRoot)return r.getCommonSourceDirectory();if(t.mapRoot){var a=e.normalizeSlashes(t.mapRoot);return i&&(a=e.getDirectoryPath(e.getSourceFilePathInNewDir(i.fileName,r,a))),0===e.getRootLength(a)&&(a=e.combinePaths(r.getCommonSourceDirectory(),a)),a}return e.getDirectoryPath(e.normalizePath(n))}(o,t,l),o)),c?a.writeBundle(c,h,s):a.writeFile(l,h,s),s){f&&f.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()});var _=function(t,n,i,a,o){if(t.inlineSourceMap){var s=n.toString();return"data:application/json;base64,"+e.base64encode(e.sys,s)}var c=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(a)));if(t.mapRoot){var l=e.normalizeSlashes(t.mapRoot);return o&&(l=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,r,l))),0===e.getRootLength(l)?(l=e.combinePaths(r.getCommonSourceDirectory(),l),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(l,c),r.getCurrentDirectory(),r.getCanonicalFileName,!0))):encodeURI(e.combinePaths(l,c))}return encodeURI(c)}(o,s,t,n,l);if(_&&(h.isAtStartOfLine()||h.rawWrite(y),h.writeComment("//# sourceMappingURL="+_)),n){var d=s.toString();e.writeFile(r,m,n,d,!1,u)}}else h.writeLine();e.writeFile(r,m,t,h.getText(),!!p.emitBOM,u),h.clear()}}function b(e){return JSON.stringify(e)}function x(e){return JSON.parse(e)}function D(t,r){void 0===t&&(t={}),void 0===r&&(r={});var i,a,o,s,c,l,u,_,d,p,f,g,m,y,h,v,b,x,D,S=r.hasGlobalName,E=r.onEmitNode,T=void 0===E?e.noEmitNotification:E,C=r.isEmitNotificationEnabled,k=r.substituteNode,A=void 0===k?e.noEmitSubstitution:k,N=r.onBeforeEmitNode,F=r.onAfterEmitNode,w=r.onBeforeEmitNodeArray,P=r.onAfterEmitNodeArray,I=r.onBeforeEmitToken,O=r.onAfterEmitToken,L=!!t.extendedDiagnostics,M=e.getNewLineCharacter(t),R=e.getEmitModuleKind(t),B=new e.Map,j=t.preserveSourceNewlines,J=function(e){p.write(e)},V=t.writeBundleFileInfo?{sections:[]}:void 0,U=V?e.Debug.checkDefined(t.relativeToBuildInfo):void 0,K=t.recordInternalSection,z=0,G="text",W=!0,q=-1,H=-1,Y=-1,X=-1,Q=-1,$=!1,Z=!!t.removeComments,ee=e.performance.createTimerIf(L,"commentTime","beforeComment","afterComment"),te=ee.enter,re=ee.exit,ne=e.factory.parenthesizer,ie=function(){return e.createBinaryExpressionTrampoline((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=j,t.containerPosStack[t.stackIndex]=Y,t.containerEndStack[t.stackIndex]=X,t.declarationListContainerEndStack[t.stackIndex]=Q;var r=t.shouldEmitCommentsStack[t.stackIndex]=Fe(e),n=t.shouldEmitSourceMapsStack[t.stackIndex]=we(e);null==N||N(e),r&&Er(e),n&&Gr(e),ke(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(e,r,n){return t(e,n,"left")}),(function(e,t,r){var n=27!==e.kind,i=ar(r,r.left,e),a=ar(r,e,r.right);Xt(i,n),Lr(e.pos),Wt(e,101===e.kind?Mt:Rt),Rr(e.end,!0),Xt(a,!0)}),(function(e,r,n){return t(e,n,"right")}),(function(e,t){if(Qt(ar(e,e.left,e.operatorToken),ar(e,e.operatorToken,e.right)),t.stackIndex>0){var r=t.preserveSourceNewlinesStack[t.stackIndex],n=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],a=t.declarationListContainerEndStack[t.stackIndex],o=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Ae(r),s&&Wr(e),o&&Tr(e,n,i,a),null==F||F(e),t.stackIndex--}}),void 0);function t(t,r,n){var i="left"===n?ne.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):ne.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind),a=Pe(0,1,t);if(a===Re&&(e.Debug.assertIsDefined(x),a=Ie(1,1,t=i(e.cast(x,e.isExpression))),x=void 0),(a===Sr||a===zr||a===Le)&&e.isBinaryExpression(t))return t;D=i,a(1,t)}}();return xe(),{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 300:return oe(r);case 301:return ae(r);case 302:return i=r,a=me(),o=p,be(a,void 0),he(4,i,void 0),xe(),p=o,ye()}var i,a,o;return se(t,r,n,me()),ye()},printList:function(e,t,r){return ce(e,t,r,me()),ye()},printFile:oe,printBundle:ae,writeNode:se,writeList:ce,writeFile:ge,writeBundle:fe,bundleFileInfo:V};function ae(e){return fe(e,me(),void 0),ye()}function oe(e){return ge(e,me(),void 0),ye()}function se(e,t,r,n){var i=p;be(n,void 0),he(e,t,r),xe(),p=i}function ce(e,t,r,n){var i=p;be(n,void 0),r&&ve(r),Nt(void 0,t,e),xe(),p=i}function le(){return p.getTextPosWithWriteLine?p.getTextPosWithWriteLine():p.getTextPos()}function ue(t,r,n){var i=e.lastOrUndefined(V.sections);i&&i.kind===n?i.end=r:V.sections.push({pos:t,end:r,kind:n})}function _e(t){if(K&&V&&i&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,i)&&"internal"!==G){var r=G;return pe(p.getTextPos()),z=le(),G="internal",r}}function de(e){e&&(pe(p.getTextPos()),z=le(),G=e)}function pe(e){return z<e&&(ue(z,e,G),!0)}function fe(r,n,i){var a;g=!1;var o=p;be(n,i),gt(r),ft(r),Be(r),function(t){ut(!!t.hasNoDefaultLib,t.syntheticFileReferences||[],t.syntheticTypeReferences||[],t.syntheticLibReferences||[]);for(var r=0,n=t.prepends;r<n.length;r++){var i=n[r];if(e.isUnparsedSource(i)&&i.syntheticReferences)for(var a=0,o=i.syntheticReferences;a<o.length;a++)Se(o[a]),Ut()}}(r);for(var s=0,c=r.prepends;s<c.length;s++){var l=c[s];Ut();var u=p.getTextPos(),_=V&&V.sections;if(_&&(V.sections=[]),he(4,l,void 0),V){var d=V.sections;V.sections=_,l.oldFileOfCurrentEmit?(a=V.sections).push.apply(a,d):(d.forEach((function(t){return e.Debug.assert(e.isBundleFileTextLike(t))})),V.sections.push({pos:u,end:p.getTextPos(),kind:"prepend",data:U(l.fileName),texts:d}))}}z=le();for(var f=0,m=r.sourceFiles;f<m.length;f++){var y=m[f];he(0,y,y)}if(V&&r.sourceFiles.length&&pe(p.getTextPos())){var h=function(t){for(var r,n=new e.Set,i=0;i<t.sourceFiles.length;i++){for(var a=t.sourceFiles[i],o=void 0,s=0,c=0,l=a.statements;c<l.length;c++){var u=l[c];if(!e.isPrologueDirective(u))break;n.has(u.expression.text)||(n.add(u.expression.text),(o||(o=[])).push({pos:u.pos,end:u.end,expression:{pos:u.expression.pos,end:u.expression.end,text:u.expression.text}}),s=s<u.end?u.end:s)}o&&(r||(r=[])).push({file:i,text:a.text.substring(0,s),directives:o})}return r}(r);h&&(V.sources||(V.sources={}),V.sources.prologues=h);var v=function(r){var n;if(R!==e.ModuleKind.None&&!t.noEmitHelpers){for(var i=new e.Map,a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a],c=void 0!==e.getExternalHelpersModuleName(s),l=je(s);if(l)for(var u=0,_=l;u<_.length;u++){var d=_[u];d.scoped||c||i.get(d.name)||(i.set(d.name,!0),(n||(n=[])).push(d.name))}}return n}}(r);v&&(V.sources||(V.sources={}),V.sources.helpers=v)}xe(),p=o}function ge(e,t,r){g=!0;var n=p;be(t,r),gt(e),ft(e),he(0,e,e),xe(),p=n}function me(){return f||(f=e.createTextWriter(M))}function ye(){var e=f.getText();return f.clear(),e}function he(e,t,r){r&&ve(r),Ne(e,t,void 0)}function ve(e){i=e,v=void 0,b=void 0,e&&Xr(e)}function be(r,n){r&&t.omitTrailingSemicolon&&(r=e.getTrailingSemicolonDeferringWriter(r)),m=n,W=!(p=r)||!m}function xe(){a=[],o=[],s=new e.Set,c=[],l=0,u=[],i=void 0,v=void 0,b=void 0,be(void 0,void 0)}function De(){return v||(v=e.getLineStarts(i))}function Se(e,t){if(void 0!==e){var r=_e(e);Ne(4,e,t),de(r)}}function Ee(e){void 0!==e&&Ne(2,e,void 0)}function Te(e,t){void 0!==e&&Ne(1,e,t)}function Ce(t){Ne(e.isStringLiteral(t)?6:4,t)}function ke(t){j&&134217728&e.getEmitFlags(t)&&(j=!1)}function Ae(e){j=e}function Ne(e,t,r){D=r,Pe(0,e,t)(e,t),D=void 0}function Fe(t){return!Z&&!e.isSourceFile(t)}function we(t){return!(W||e.isSourceFile(t)||e.isInJsonFile(t)||e.isUnparsedSource(t)||e.isUnparsedPrepend(t))}function Pe(t,r,n){switch(t){case 0:if(T!==e.noEmitNotification&&(!C||C(n)))return Oe;case 1:if(A!==e.noEmitSubstitution&&(x=A(r,n)||n)!==n)return D&&(x=D(x)),Re;case 2:if(Fe(n))return Sr;case 3:if(we(n))return zr;case 4:return Le;default:return e.Debug.assertNever(t)}}function Ie(e,t,r){return Pe(e+1,t,r)}function Oe(e,t){var r=Ie(0,e,t);T(e,t,r)}function Le(e,t){if(null==N||N(t),j){var r=j;ke(t),Me(e,t),Ae(r)}else Me(e,t);null==F||F(t),D=void 0}function Me(t,r){if(0===t)return lt(e.cast(r,e.isSourceFile));if(2===t)return Ue(e.cast(r,e.isIdentifier));if(6===t)return Je(e.cast(r,e.isStringLiteral),!0);if(3===t)return function(e){Se(e.name),Jt(),Mt("in"),Jt(),Se(e.constraint)}(e.cast(r,e.isTypeParameterDeclaration));if(5===t)return e.Debug.assertNode(r,e.isEmptyStatement),Ge(!0);if(4===t){switch(r.kind){case 15:case 16:case 17:return Je(r,!1);case 79:return Ue(r);case 80:return function(e){(e.symbol?It:J)(cr(e,!1),e.symbol)}(r);case 159:return function(e){(function(e){79===e.kind?Te(e):Se(e)})(e.left),Ot("."),Se(e.right)}(r);case 160:return function(e){Ot("["),Te(e.expression,ne.parenthesizeExpressionOfComputedPropertyName),Ot("]")}(r);case 161:return function(e){Se(e.name),e.constraint&&(Jt(),Mt("extends"),Jt(),Se(e.constraint)),e.default&&(Jt(),Rt("="),Jt(),Se(e.default))}(r);case 162:return function(e){St(e,e.decorators),yt(e,e.modifiers),Se(e.dotDotDotToken),mt(e.name,Bt),Se(e.questionToken),e.parent&&312===e.parent.kind&&!e.name?Se(e.type):ht(e.type),vt(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,ne.parenthesizeExpressionForDisallowedComma)}(r);case 163:return l=r,Ot("@"),void Te(l.expression,ne.parenthesizeLeftSideOfAccess);case 164:return function(e){St(e,e.decorators),yt(e,e.modifiers),mt(e.name,Vt),Se(e.questionToken),ht(e.type),Lt()}(r);case 165:return function(e){St(e,e.decorators),yt(e,e.modifiers),Se(e.name),Se(e.questionToken),Se(e.exclamationToken),ht(e.type),vt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Lt()}(r);case 166:return function(e){ur(e),St(e,e.decorators),yt(e,e.modifiers),Se(e.name),Se(e.questionToken),Tt(e,e.typeParameters),Ct(e,e.parameters),ht(e.type),Lt(),_r(e)}(r);case 167:return function(e){St(e,e.decorators),yt(e,e.modifiers),Se(e.asteriskToken),Se(e.name),Se(e.questionToken),Xe(e,Qe)}(r);case 168:return function(e){St(e,e.decorators),yt(e,e.modifiers),Mt("static"),$e(e.body)}(r);case 169:return function(e){yt(e,e.modifiers),Mt("constructor"),Xe(e,Qe)}(r);case 170:case 171:return function(e){St(e,e.decorators),yt(e,e.modifiers),Mt(170===e.kind?"get":"set"),Jt(),Se(e.name),Xe(e,Qe)}(r);case 172:return function(e){ur(e),St(e,e.decorators),yt(e,e.modifiers),Tt(e,e.typeParameters),Ct(e,e.parameters),ht(e.type),Lt(),_r(e)}(r);case 173:return function(e){ur(e),St(e,e.decorators),yt(e,e.modifiers),Mt("new"),Jt(),Tt(e,e.typeParameters),Ct(e,e.parameters),ht(e.type),Lt(),_r(e)}(r);case 174:return function(e){St(e,e.decorators),yt(e,e.modifiers),Nt(e,e.parameters,8848),ht(e.type),Lt()}(r);case 175:return function(e){e.assertsModifier&&(Se(e.assertsModifier),Jt()),Se(e.parameterName),e.type&&(Jt(),Mt("is"),Jt(),Se(e.type))}(r);case 176:return function(e){Se(e.typeName),Et(e,e.typeArguments)}(r);case 177:return function(e){ur(e),Tt(e,e.typeParameters),kt(e,e.parameters),Jt(),Ot("=>"),Jt(),Se(e.type),_r(e)}(r);case 178:return function(e){ur(e),yt(e,e.modifiers),Mt("new"),Jt(),Tt(e,e.typeParameters),Ct(e,e.parameters),Jt(),Ot("=>"),Jt(),Se(e.type),_r(e)}(r);case 179:return function(e){Mt("typeof"),Jt(),Se(e.exprName)}(r);case 180:return function(t){Ot("{");var r=1&e.getEmitFlags(t)?768:32897;Nt(t,t.members,524288|r),Ot("}")}(r);case 181:return function(e){Se(e.elementType,ne.parenthesizeElementTypeOfArrayType),Ot("["),Ot("]")}(r);case 182:return function(t){He(22,t.pos,Ot,t);var r=1&e.getEmitFlags(t)?528:657;Nt(t,t.elements,524288|r),He(23,t.elements.end,Ot,t)}(r);case 183:return function(e){Se(e.type,ne.parenthesizeElementTypeOfArrayType),Ot("?")}(r);case 185:return function(e){Nt(e,e.types,516,ne.parenthesizeMemberOfElementType)}(r);case 186:return function(e){Nt(e,e.types,520,ne.parenthesizeMemberOfElementType)}(r);case 187:return function(e){Se(e.checkType,ne.parenthesizeMemberOfConditionalType),Jt(),Mt("extends"),Jt(),Se(e.extendsType,ne.parenthesizeMemberOfConditionalType),Jt(),Ot("?"),Jt(),Se(e.trueType),Jt(),Ot(":"),Jt(),Se(e.falseType)}(r);case 188:return function(e){Mt("infer"),Jt(),Se(e.typeParameter)}(r);case 189:return function(e){Ot("("),Se(e.type),Ot(")")}(r);case 226:return function(e){Te(e.expression,ne.parenthesizeLeftSideOfAccess),Et(e,e.typeArguments)}(r);case 190:return void Mt("this");case 191:return function(e){qt(e.operator,Mt),Jt(),Se(e.type,ne.parenthesizeMemberOfElementType)}(r);case 192:return function(e){Se(e.objectType,ne.parenthesizeMemberOfElementType),Ot("["),Se(e.indexType),Ot("]")}(r);case 193:return function(t){var r=e.getEmitFlags(t);Ot("{"),1&r?Jt():(Ut(),Kt()),t.readonlyToken&&(Se(t.readonlyToken),143!==t.readonlyToken.kind&&Mt("readonly"),Jt()),Ot("["),Ne(3,t.typeParameter),t.nameType&&(Jt(),Mt("as"),Jt(),Se(t.nameType)),Ot("]"),t.questionToken&&(Se(t.questionToken),57!==t.questionToken.kind&&Ot("?")),Ot(":"),Jt(),Se(t.type),Lt(),1&r?Jt():(Ut(),zt()),Ot("}")}(r);case 194:return function(e){Te(e.literal)}(r);case 195:return function(e){Se(e.dotDotDotToken),Se(e.name),Se(e.questionToken),He(58,e.name.end,Ot,e),Jt(),Se(e.type)}(r);case 196:return function(e){Se(e.head),Nt(e,e.templateSpans,262144)}(r);case 197:return function(e){Se(e.type),Se(e.literal)}(r);case 198:return function(e){e.isTypeOf&&(Mt("typeof"),Jt()),Mt("import"),Ot("("),Se(e.argument),Ot(")"),e.qualifier&&(Ot("."),Se(e.qualifier)),Et(e,e.typeArguments)}(r);case 199:return function(e){Ot("{"),Nt(e,e.elements,525136),Ot("}")}(r);case 200:return function(e){Ot("["),Nt(e,e.elements,524880),Ot("]")}(r);case 201:return function(e){Se(e.dotDotDotToken),e.propertyName&&(Se(e.propertyName),Ot(":"),Jt()),Se(e.name),vt(e.initializer,e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 231:return function(e){Te(e.expression),Se(e.literal)}(r);case 232:return void Lt();case 233:return function(e){ze(e,!e.multiLine&&or(e))}(r);case 235:return function(e){yt(e,e.modifiers),Se(e.declarationList),Lt()}(r);case 234:return Ge(!1);case 236:return function(t){Te(t.expression,ne.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(i)||e.nodeIsSynthesized(t.expression))&&Lt()}(r);case 237:return function(e){var t=He(99,e.pos,Mt,e);Jt(),He(20,t,Ot,e),Te(e.expression),He(21,e.expression.end,Ot,e),Dt(e,e.thenStatement),e.elseStatement&&(Ht(e,e.thenStatement,e.elseStatement),He(91,e.thenStatement.end,Mt,e),237===e.elseStatement.kind?(Jt(),Se(e.elseStatement)):Dt(e,e.elseStatement))}(r);case 238:return function(t){He(90,t.pos,Mt,t),Dt(t,t.statement),e.isBlock(t.statement)&&!j?Jt():Ht(t,t.statement,t.expression),We(t,t.statement.end),Lt()}(r);case 239:return function(e){We(e,e.pos),Dt(e,e.statement)}(r);case 240:return function(e){var t=He(97,e.pos,Mt,e);Jt();var r=He(20,t,Ot,e);qe(e.initializer),r=He(26,e.initializer?e.initializer.end:r,Ot,e),xt(e.condition),r=He(26,e.condition?e.condition.end:r,Ot,e),xt(e.incrementor),He(21,e.incrementor?e.incrementor.end:r,Ot,e),Dt(e,e.statement)}(r);case 241:return function(e){var t=He(97,e.pos,Mt,e);Jt(),He(20,t,Ot,e),qe(e.initializer),Jt(),He(101,e.initializer.end,Mt,e),Jt(),Te(e.expression),He(21,e.expression.end,Ot,e),Dt(e,e.statement)}(r);case 242:return function(e){var t=He(97,e.pos,Mt,e);Jt(),function(e){e&&(Se(e),Jt())}(e.awaitModifier),He(20,t,Ot,e),qe(e.initializer),Jt(),He(158,e.initializer.end,Mt,e),Jt(),Te(e.expression),He(21,e.expression.end,Ot,e),Dt(e,e.statement)}(r);case 243:return function(e){He(86,e.pos,Mt,e),bt(e.label),Lt()}(r);case 244:return function(e){He(81,e.pos,Mt,e),bt(e.label),Lt()}(r);case 245:return function(e){He(105,e.pos,Mt,e),xt(e.expression),Lt()}(r);case 246:return function(e){var t=He(116,e.pos,Mt,e);Jt(),He(20,t,Ot,e),Te(e.expression),He(21,e.expression.end,Ot,e),Dt(e,e.statement)}(r);case 247:return function(e){var t=He(107,e.pos,Mt,e);Jt(),He(20,t,Ot,e),Te(e.expression),He(21,e.expression.end,Ot,e),Jt(),Se(e.caseBlock)}(r);case 248:return function(e){Se(e.label),He(58,e.label.end,Ot,e),Jt(),Se(e.statement)}(r);case 249:return function(e){He(109,e.pos,Mt,e),xt(e.expression),Lt()}(r);case 250:return function(e){He(111,e.pos,Mt,e),Jt(),Se(e.tryBlock),e.catchClause&&(Ht(e,e.tryBlock,e.catchClause),Se(e.catchClause)),e.finallyBlock&&(Ht(e,e.catchClause||e.tryBlock,e.finallyBlock),He(96,(e.catchClause||e.tryBlock).end,Mt,e),Jt(),Se(e.finallyBlock))}(r);case 251:return function(e){Gt(87,e.pos,Mt),Lt()}(r);case 252:return function(e){Se(e.name),Se(e.exclamationToken),ht(e.type),vt(e.initializer,e.type?e.type.end:e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 253:return function(t){Mt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Jt(),Nt(t,t.declarations,528)}(r);case 254:return function(e){Ye(e)}(r);case 255:return function(e){tt(e)}(r);case 256:return function(e){St(e,e.decorators),yt(e,e.modifiers),Mt("interface"),Jt(),Se(e.name),Tt(e,e.typeParameters),Nt(e,e.heritageClauses,512),Jt(),Ot("{"),Nt(e,e.members,129),Ot("}")}(r);case 257:return function(e){St(e,e.decorators),yt(e,e.modifiers),Mt("type"),Jt(),Se(e.name),Tt(e,e.typeParameters),Jt(),Ot("="),Jt(),Se(e.type),Lt()}(r);case 258:return function(e){yt(e,e.modifiers),Mt("enum"),Jt(),Se(e.name),Jt(),Ot("{"),Nt(e,e.members,145),Ot("}")}(r);case 259:return function(t){yt(t,t.modifiers),1024&~t.flags&&(Mt(16&t.flags?"namespace":"module"),Jt()),Se(t.name);var r=t.body;if(!r)return Lt();for(;r&&e.isModuleDeclaration(r);)Ot("."),Se(r.name),r=r.body;Jt(),Se(r)}(r);case 260:return function(t){ur(t),e.forEach(t.statements,pr),ze(t,or(t)),_r(t)}(r);case 261:return function(e){He(18,e.pos,Ot,e),Nt(e,e.clauses,129),He(19,e.clauses.end,Ot,e,!0)}(r);case 262:return function(e){var t=He(93,e.pos,Mt,e);Jt(),t=He(127,t,Mt,e),Jt(),t=He(141,t,Mt,e),Jt(),Se(e.name),Lt()}(r);case 263:return function(e){yt(e,e.modifiers),He(100,e.modifiers?e.modifiers.end:e.pos,Mt,e),Jt(),e.isTypeOnly&&(He(150,e.pos,Mt,e),Jt()),Se(e.name),Jt(),He(63,e.name.end,Ot,e),Jt(),function(e){79===e.kind?Te(e):Se(e)}(e.moduleReference),Lt()}(r);case 264:return function(e){yt(e,e.modifiers),He(100,e.modifiers?e.modifiers.end:e.pos,Mt,e),Jt(),e.importClause&&(Se(e.importClause),Jt(),He(154,e.importClause.end,Mt,e),Jt()),Te(e.moduleSpecifier),Lt()}(r);case 265:return function(e){e.isTypeOnly&&(He(150,e.pos,Mt,e),Jt()),Se(e.name),e.name&&e.namedBindings&&(He(27,e.name.end,Ot,e),Jt()),Se(e.namedBindings)}(r);case 266:return function(e){var t=He(41,e.pos,Ot,e);Jt(),He(127,t,Mt,e),Jt(),Se(e.name)}(r);case 272:return function(e){var t=He(41,e.pos,Ot,e);Jt(),He(127,t,Mt,e),Jt(),Se(e.name)}(r);case 267:case 271:return function(e){!function(e){Ot("{"),Nt(e,e.elements,525136),Ot("}")}(e)}(r);case 268:case 273:return function(e){!function(e){e.propertyName&&(Se(e.propertyName),Jt(),He(127,e.propertyName.end,Mt,e),Jt()),Se(e.name)}(e)}(r);case 269:return function(e){var t=He(93,e.pos,Mt,e);Jt(),e.isExportEquals?He(63,t,Rt,e):He(88,t,Mt,e),Jt(),Te(e.expression,e.isExportEquals?ne.getParenthesizeRightSideOfBinaryForOperator(63):ne.parenthesizeExpressionOfExportDefault),Lt()}(r);case 270:return function(e){var t=He(93,e.pos,Mt,e);Jt(),e.isTypeOnly&&(t=He(150,t,Mt,e),Jt()),e.exportClause?Se(e.exportClause):t=He(41,t,Ot,e),e.moduleSpecifier&&(Jt(),He(154,e.exportClause?e.exportClause.end:t,Mt,e),Jt(),Te(e.moduleSpecifier)),Lt()}(r);case 274:case 314:case 325:case 326:case 328:case 329:case 330:case 331:case 332:case 344:case 348:case 347:return;case 275:return function(e){Mt("require"),Ot("("),Te(e.expression),Ot(")")}(r);case 11:return function(e){p.writeLiteral(e.text)}(r);case 278:case 281:return function(t){if(Ot("<"),e.isJsxOpeningElement(t)){var r=rr(t.tagName,t);rt(t.tagName),Et(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Jt(),Se(t.attributes),nr(t.attributes,t),Qt(r)}Ot(">")}(r);case 279:case 282:return function(t){Ot("</"),e.isJsxClosingElement(t)&&rt(t.tagName),Ot(">")}(r);case 283:return function(e){Se(e.name),function(e,t,r,n){r&&(t("="),n(r))}(0,Ot,e.initializer,Ce)}(r);case 284:return function(e){Nt(e,e.properties,262656)}(r);case 285:return function(e){Ot("{..."),Te(e.expression),Ot("}")}(r);case 286:return function(t){var r,n;if(t.expression||!Z&&!e.nodeIsSynthesized(t)&&(function(t){var r=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(n=t.pos)||function(t){var r=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(n))){var a=i&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(i,t.pos).line!==e.getLineAndCharacterOfPosition(i,t.end).line;a&&p.increaseIndent();var o=He(18,t.pos,Ot,t);Se(t.dotDotDotToken),Te(t.expression),He(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||o,Ot,t),a&&p.decreaseIndent()}}(r);case 287:return function(e){He(82,e.pos,Mt,e),Jt(),Te(e.expression,ne.parenthesizeExpressionForDisallowedComma),nt(e,e.statements,e.expression.end)}(r);case 288:return function(e){var t=He(88,e.pos,Mt,e);nt(e,e.statements,t)}(r);case 289:return function(e){Jt(),qt(e.token,Mt),Jt(),Nt(e,e.types,528)}(r);case 290:return function(e){var t=He(83,e.pos,Mt,e);Jt(),e.variableDeclaration&&(He(20,t,Ot,e),Se(e.variableDeclaration),He(21,e.variableDeclaration.end,Ot,e),Jt()),Se(e.block)}(r);case 291:return function(t){Se(t.name),Ot(":"),Jt();var r=t.initializer;0==(512&e.getEmitFlags(r))&&Rr(e.getCommentRange(r).pos),Te(r,ne.parenthesizeExpressionForDisallowedComma)}(r);case 292:return function(e){Se(e.name),e.objectAssignmentInitializer&&(Jt(),Ot("="),Jt(),Te(e.objectAssignmentInitializer,ne.parenthesizeExpressionForDisallowedComma))}(r);case 293:return function(e){e.expression&&(He(25,e.pos,Ot,e),Te(e.expression,ne.parenthesizeExpressionForDisallowedComma))}(r);case 294:return function(e){Se(e.name),vt(e.initializer,e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 295:return Ve(r);case 302:case 296:return function(e){for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];Ut(),Se(n)}}(r);case 297:case 298:return s=r,c=le(),Ve(s),void(V&&ue(c,p.getTextPos(),297===s.kind?"text":"internal"));case 299:return function(t){var r=le();if(Ve(t),V){var n=e.clone(t.section);n.pos=r,n.end=p.getTextPos(),V.sections.push(n)}}(r);case 300:return lt(r);case 301:return e.Debug.fail("Bundles should be printed using printBundle");case 303:return e.Debug.fail("InputFiles should not be printed");case 304:return ct(r);case 305:return function(e){Jt(),Ot("{"),Se(e.name),Ot("}")}(r);case 307:return Ot("*");case 308:return Ot("?");case 309:return function(e){Ot("?"),Se(e.type)}(r);case 310:return function(e){Ot("!"),Se(e.type)}(r);case 311:return function(e){Se(e.type),Ot("=")}(r);case 312:return function(e){Mt("function"),Ct(e,e.parameters),Ot(":"),Se(e.type)}(r);case 184:case 313:return function(e){Ot("..."),Se(e.type)}(r);case 315:return function(t){if(J("/**"),t.comment){var r=e.getTextOfJSDocComment(t.comment);if(r)for(var n=0,i=r.split(/\r\n?|\n/g);n<i.length;n++){var a=i[n];Ut(),Jt(),Ot("*"),Jt(),J(a)}}t.tags&&(1!==t.tags.length||338!==t.tags[0].kind||t.comment?Nt(t,t.tags,33):(Jt(),Se(t.tags[0]))),Jt(),J("*/")}(r);case 317:return it(r);case 318:return at(r);case 322:case 327:return ot((o=r).tagName),void st(o.comment);case 323:case 324:return function(e){ot(e.tagName),Jt(),Ot("{"),Se(e.class),Ot("}"),st(e.comment)}(r);case 333:return function(e){ot(e.tagName),e.name&&(Jt(),Se(e.name)),st(e.comment),at(e.typeExpression)}(r);case 335:case 342:return ot((a=r).tagName),ct(a.typeExpression),Jt(),a.isBracketed&&Ot("["),Se(a.name),a.isBracketed&&Ot("]"),void st(a.comment);case 334:case 336:case 337:case 338:return function(e){ot(e.tagName),ct(e.typeExpression),st(e.comment)}(r);case 339:return function(e){ot(e.tagName),ct(e.constraint),Jt(),Nt(e,e.typeParameters,528),st(e.comment)}(r);case 340:return function(e){ot(e.tagName),e.typeExpression&&(304===e.typeExpression.kind?ct(e.typeExpression):(Jt(),Ot("{"),J("Object"),e.typeExpression.isArrayType&&(Ot("["),Ot("]")),Ot("}"))),e.fullName&&(Jt(),Se(e.fullName)),st(e.comment),e.typeExpression&&317===e.typeExpression.kind&&it(e.typeExpression)}(r);case 341:return function(e){ot(e.tagName),Se(e.name),st(e.comment)}(r)}if(e.isExpression(r)&&(t=1,A!==e.noEmitSubstitution)){var n=A(t,r)||r;n!==r&&(r=n,D&&(r=D(r)))}}var a,o,s,c,l;if(1===t)switch(r.kind){case 8:case 9:return function(e){Je(e,!1)}(r);case 10:case 13:case 14:return Je(r,!1);case 79:return Ue(r);case 202:return function(e){Ft(e,e.elements,8914|(e.multiLine?65536:0),ne.parenthesizeExpressionForDisallowedComma)}(r);case 203:return function(t){e.forEach(t.properties,fr);var r=65536&e.getEmitFlags(t);r&&Kt();var n=t.multiLine?65536:0,a=i.languageVersion>=1&&!e.isJsonSourceFile(i)?64:0;Nt(t,t.properties,526226|a|n),r&&zt()}(r);case 204:return function(t){Te(t.expression,ne.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=ar(t,t.expression,r),i=ar(t,r,t.name);Xt(n,!1),28===r.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=lr(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}}(t.expression)||p.hasTrailingComment()||p.hasTrailingWhitespace()||Ot("."),t.questionDotToken?Se(r):He(r.kind,t.expression.end,Ot,t),Xt(i,!1),Se(t.name),Qt(n,i)}(r);case 205:return function(e){Te(e.expression,ne.parenthesizeLeftSideOfAccess),Se(e.questionDotToken),He(22,e.expression.end,Ot,e),Te(e.argumentExpression),He(23,e.argumentExpression.end,Ot,e)}(r);case 206:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Ot("("),Pt("0"),Ot(","),Jt()),Te(t.expression,ne.parenthesizeLeftSideOfAccess),r&&Ot(")"),Se(t.questionDotToken),Et(t,t.typeArguments),Ft(t,t.arguments,2576,ne.parenthesizeExpressionForDisallowedComma)}(r);case 207:return function(e){He(103,e.pos,Mt,e),Jt(),Te(e.expression,ne.parenthesizeExpressionOfNew),Et(e,e.typeArguments),Ft(e,e.arguments,18960,ne.parenthesizeExpressionForDisallowedComma)}(r);case 208:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Ot("("),Pt("0"),Ot(","),Jt()),Te(t.tag,ne.parenthesizeLeftSideOfAccess),r&&Ot(")"),Et(t,t.typeArguments),Jt(),Te(t.template)}(r);case 209:return function(e){Ot("<"),Se(e.type),Ot(">"),Te(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 210:return function(e){var t=He(20,e.pos,Ot,e),r=rr(e.expression,e);Te(e.expression,void 0),nr(e.expression,e),Qt(r),He(21,e.expression?e.expression.end:t,Ot,e)}(r);case 211:return function(e){gr(e.name),Ye(e)}(r);case 212:return function(e){St(e,e.decorators),yt(e,e.modifiers),Xe(e,Ke)}(r);case 213:return function(e){He(89,e.pos,Mt,e),Jt(),Te(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 214:return function(e){He(112,e.pos,Mt,e),Jt(),Te(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 215:return function(e){He(114,e.pos,Mt,e),Jt(),Te(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 216:return function(e){He(131,e.pos,Mt,e),Jt(),Te(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 217:return function(e){qt(e.operator,Rt),function(e){var t=e.operand;return 217===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&Jt(),Te(e.operand,ne.parenthesizeOperandOfPrefixUnary)}(r);case 218:return function(e){Te(e.operand,ne.parenthesizeOperandOfPostfixUnary),qt(e.operator,Rt)}(r);case 219:return ie(r);case 220:return function(e){var t=ar(e,e.condition,e.questionToken),r=ar(e,e.questionToken,e.whenTrue),n=ar(e,e.whenTrue,e.colonToken),i=ar(e,e.colonToken,e.whenFalse);Te(e.condition,ne.parenthesizeConditionOfConditionalExpression),Xt(t,!0),Se(e.questionToken),Xt(r,!0),Te(e.whenTrue,ne.parenthesizeBranchOfConditionalExpression),Qt(t,r),Xt(n,!0),Se(e.colonToken),Xt(i,!0),Te(e.whenFalse,ne.parenthesizeBranchOfConditionalExpression),Qt(n,i)}(r);case 221:return function(e){Se(e.head),Nt(e,e.templateSpans,262144)}(r);case 222:return function(e){He(125,e.pos,Mt,e),Se(e.asteriskToken),xt(e.expression,ne.parenthesizeExpressionForDisallowedComma)}(r);case 223:return function(e){He(25,e.pos,Ot,e),Te(e.expression,ne.parenthesizeExpressionForDisallowedComma)}(r);case 224:return function(e){gr(e.name),tt(e)}(r);case 225:case 344:case 347:case 348:return;case 227:return function(e){Te(e.expression,void 0),e.type&&(Jt(),Mt("as"),Jt(),Se(e.type))}(r);case 228:return function(e){Te(e.expression,ne.parenthesizeLeftSideOfAccess),Rt("!")}(r);case 229:return function(e){Gt(e.keywordToken,e.pos,Ot),Ot("."),Se(e.name)}(r);case 230:return e.Debug.fail("SyntheticExpression should never be printed.");case 276:return function(e){Se(e.openingElement),Nt(e,e.children,262144),Se(e.closingElement)}(r);case 277:return function(e){Ot("<"),rt(e.tagName),Et(e,e.typeArguments),Jt(),Se(e.attributes),Ot("/>")}(r);case 280:return function(e){Se(e.openingFragment),Nt(e,e.children,262144),Se(e.closingFragment)}(r);case 343:return e.Debug.fail("SyntaxList should not be printed");case 345:return function(e){Te(e.expression)}(r);case 346:return function(e){Ft(e,e.elements,528,void 0)}(r);case 349:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?Wt(r,Mt):e.isTokenKind(r.kind)?Wt(r,Ot):void e.Debug.fail("Unhandled SyntaxKind: "+e.Debug.formatSyntaxKind(r.kind)+".")}function Re(t,r){var n=Ie(1,t,r);e.Debug.assertIsDefined(x),r=x,x=void 0,n(t,r)}function Be(r){var n=!1,a=301===r.kind?r:void 0;if(!a||R!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c<s;c++){var l=a?c<o?a.prepends[c]:a.sourceFiles[c-o]:r,u=e.isSourceFile(l)?l:e.isUnparsedSource(l)?void 0:i,_=t.noEmitHelpers||!!u&&e.hasRecordedExternalHelpers(u),d=(e.isSourceFile(l)||e.isUnparsedSource(l))&&!g,f=e.isUnparsedSource(l)?l.helpers:je(l);if(f)for(var m=0,y=f;m<y.length;m++){var h=y[m];if(h.scoped){if(a)continue}else{if(_)continue;if(d){if(B.get(h.name))continue;B.set(h.name,!0)}}var v=le();"string"==typeof h.text?Yt(h.text):Yt(h.text(Dr)),V&&V.sections.push({pos:v,end:p.getTextPos(),kind:"emitHelpers",data:h.name}),n=!0}}return n}}function je(t){var r=e.getEmitHelpers(t);return r&&e.stableSort(r,e.compareEmitHelpers)}function Je(r,n){var i,a=lr(r,t.neverAsciiEscape,n);!t.sourceMap&&!t.inlineSourceMap||10!==r.kind&&!e.isTemplateLiteralKind(r.kind)?(i=a,p.writeStringLiteral(i)):Pt(a)}function Ve(e){p.rawWrite(e.parent.text.substring(e.pos,e.end))}function Ue(e){(e.symbol?It:J)(cr(e,!1),e.symbol),Nt(e,e.typeArguments,53776)}function Ke(e){Tt(e,e.typeParameters),kt(e,e.parameters),ht(e.type),Jt(),Se(e.equalsGreaterThanToken)}function ze(t,r){He(18,t.pos,Ot,t);var n=r||1&e.getEmitFlags(t)?768:129;Nt(t,t.statements,n),He(19,t.statements.end,Ot,t,!!(1&n))}function Ge(e){e?Ot(";"):Lt()}function We(e,t){var r=He(115,t,Mt,e);Jt(),He(20,r,Ot,e),Te(e.expression),He(21,e.expression.end,Ot,e)}function qe(e){void 0!==e&&(253===e.kind?Se(e):Te(e))}function He(t,r,n,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,l=r;if(c&&i&&(r=e.skipTrivia(i.text,r)),c&&a.pos!==l){var u=o&&i&&!e.positionsAreOnSameLine(l,r,i);u&&Kt(),Lr(l),u&&zt()}if(r=qt(t,n,r),c&&a.end!==r){var _=286===a.kind;Rr(r,!_,_)}return r}function Ye(e){St(e,e.decorators),yt(e,e.modifiers),Mt("function"),Se(e.asteriskToken),Jt(),Ee(e.name),Xe(e,Qe)}function Xe(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&Kt(),ur(t),e.forEach(t.parameters,pr),pr(t.body),r(t),$e(n),_r(t),i&&zt()}else r(t),Jt(),Te(n,ne.parenthesizeConciseBodyOfArrowFunction);else r(t),Lt()}function Qe(e){Tt(e,e.typeParameters),Ct(e,e.parameters),ht(e.type)}function $e(t){null==N||N(t),Jt(),Ot("{"),Kt();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($t(t,t.statements,2)||er(t,t.statements,2))return!1;for(var r,n=0,a=t.statements;n<a.length;n++){var o=a[n];if(Zt(r,o,2)>0)return!1;r=o}return!0}(t)?Ze:et;Nr?Nr(t,t.statements,r):r(t),zt(),Gt(19,t.statements.end,Ot,t),null==F||F(t)}function Ze(e){et(e,!0)}function et(e,t){var r=dt(e.statements),n=p.getTextPos();Be(e),0===r&&n===p.getTextPos()&&t?(zt(),Nt(e,e.statements,768),Kt()):Nt(e,e.statements,1,void 0,r)}function tt(t){e.forEach(t.members,fr),St(t,t.decorators),yt(t,t.modifiers),Mt("class"),t.name&&(Jt(),Ee(t.name));var r=65536&e.getEmitFlags(t);r&&Kt(),Tt(t,t.typeParameters),Nt(t,t.heritageClauses,0),Jt(),Ot("{"),Nt(t,t.members,129),Ot("}"),r&&zt()}function rt(e){79===e.kind?Te(e):Se(e)}function nt(t,r,n){var a=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(Gt(58,n,Ot,t),Jt(),a&=-130):He(58,n,Ot,t),Nt(t,r,a)}function it(t){Nt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function at(t){t.typeParameters&&Nt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&Nt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(Ut(),Jt(),Ot("*"),Jt(),Se(t.type))}function ot(e){Ot("@"),Se(e)}function st(t){var r=e.getTextOfJSDocComment(t);r&&(Jt(),J(r))}function ct(e){e&&(Jt(),Ot("{"),Se(e.type),Ot("}"))}function lt(t){Ut();var r=t.statements;!Nr||0!==r.length&&e.isPrologueDirective(r[0])&&!e.nodeIsSynthesized(r[0])?_t(t):Nr(t,r,_t)}function ut(e,t,r,n){if(e){var a=p.getTextPos();jt('/// <reference no-default-lib="true"/>'),V&&V.sections.push({pos:a,end:p.getTextPos(),kind:"no-default-lib"}),Ut()}if(i&&i.moduleName&&(jt('/// <amd-module name="'+i.moduleName+'" />'),Ut()),i&&i.amdDependencies)for(var o=0,s=i.amdDependencies;o<s.length;o++){var c=s[o];c.name?jt('/// <amd-dependency name="'+c.name+'" path="'+c.path+'" />'):jt('/// <amd-dependency path="'+c.path+'" />'),Ut()}for(var l=0,u=t;l<u.length;l++){var _=u[l];a=p.getTextPos(),jt('/// <reference path="'+_.fileName+'" />'),V&&V.sections.push({pos:a,end:p.getTextPos(),kind:"reference",data:_.fileName}),Ut()}for(var d=0,f=r;d<f.length;d++)_=f[d],a=p.getTextPos(),jt('/// <reference types="'+_.fileName+'" />'),V&&V.sections.push({pos:a,end:p.getTextPos(),kind:"type",data:_.fileName}),Ut();for(var g=0,m=n;g<m.length;g++)_=m[g],a=p.getTextPos(),jt('/// <reference lib="'+_.fileName+'" />'),V&&V.sections.push({pos:a,end:p.getTextPos(),kind:"lib",data:_.fileName}),Ut()}function _t(t){var r=t.statements;ur(t),e.forEach(t.statements,pr),Be(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&ut(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),Nt(t,r,1,void 0,-1===n?r.length:n),_r(t)}function dt(t,r,n,i){for(var a=!!r,o=0;o<t.length;o++){var s=t[o];if(!e.isPrologueDirective(s))return o;if(!n||!n.has(s.expression.text)){a&&(a=!1,ve(r)),Ut();var c=p.getTextPos();Se(s),i&&V&&V.sections.push({pos:c,end:p.getTextPos(),kind:"prologue",data:s.expression.text}),n&&n.add(s.expression.text)}}return t.length}function pt(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!t.has(i.data)){Ut();var a=p.getTextPos();Se(i),V&&V.sections.push({pos:a,end:p.getTextPos(),kind:"prologue",data:i.data}),t&&t.add(i.data)}}}function ft(t){if(e.isSourceFile(t))dt(t.statements,t);else{for(var r=new e.Set,n=0,i=t.prepends;n<i.length;n++)pt(i[n].prologues,r);for(var a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a];dt(s.statements,s,r,!0)}ve(void 0)}}function gt(t){if(e.isSourceFile(t)||e.isUnparsedSource(t)){var r=e.getShebang(t.text);if(r)return jt(r),Ut(),!0}else{for(var n=0,i=t.prepends;n<i.length;n++){var a=i[n];if(e.Debug.assertNode(a,e.isUnparsedSource),gt(a))return!0}for(var o=0,s=t.sourceFiles;o<s.length;o++)if(gt(s[o]))return!0}}function mt(e,t){if(e){var r=J;J=t,Se(e),J=r}}function yt(e,t){t&&t.length&&(Nt(e,t,262656),Jt())}function ht(e){e&&(Ot(":"),Jt(),Se(e))}function vt(e,t,r,n){e&&(Jt(),He(63,t,Rt,r),Jt(),Te(e,n))}function bt(e){e&&(Jt(),Se(e))}function xt(e,t){e&&(Jt(),Te(e,t))}function Dt(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(Jt(),Se(r)):(Ut(),Kt(),e.isEmptyStatement(r)?Ne(5,r):Se(r),zt())}function St(e,t){Nt(e,t,2146305)}function Et(e,t){Nt(e,t,53776,ne.parenthesizeMemberOfElementType)}function Tt(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return Et(t,t.typeArguments);Nt(t,r,53776)}function Ct(e,t){Nt(e,t,2576)}function kt(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)?Ct(t,r):Nt(t,r,528)}function At(e){switch(60&e){case 0:break;case 16:Ot(",");break;case 4:Jt(),Ot("|");break;case 32:Jt(),Ot("*"),Jt();break;case 8:Jt(),Ot("&")}}function Nt(e,t,r,n,i,a){wt(Se,e,t,r,n,i,a)}function Ft(e,t,r,n,i,a){wt(Te,e,t,r,n,i,a)}function wt(t,r,a,o,s,c,l){if(void 0===c&&(c=0),void 0===l&&(l=a?a.length-c:0),!(void 0===a&&16384&o)){var u=void 0===a||c>=a.length||0===l;if(u&&32768&o)return w&&w(a),void(P&&P(a));if(15360&o&&(Ot(function(e){return n[15360&e][0]}(o)),u&&a&&Rr(a.pos,!0)),w&&w(a),u)1&o&&(!j||r&&!e.rangeIsOnSingleLine(r,i))?Ut():256&o&&!(524288&o)&&Jt();else{e.Debug.type(a);var _=0==(262144&o),p=_,f=$t(r,a,o);f?(Ut(f),p=!1):256&o&&Jt(),128&o&&Kt();for(var g=void 0,m=void 0,y=!1,h=0;h<l;h++){var v=a[c+h];if(32&o)Ut(),At(o);else if(g){60&o&&g.end!==(r?r.end:-1)&&Lr(g.end),At(o),de(m);var b=Zt(g,v,o);b>0?(0==(131&o)&&(Kt(),y=!0),Ut(b),p=!1):g&&512&o&&Jt()}m=_e(v),p?Rr&&Rr(e.getCommentRange(v).pos):p=_,d=v.pos,1===t.length?t(v):t(v,s),y&&(zt(),y=!1),g=v}var x=g?e.getEmitFlags(g):0,D=Z||!!(1024&x),S=(null==a?void 0:a.hasTrailingComma)&&64&o&&16&o;S&&(g&&!D?He(27,g.end,Ot,g):Ot(",")),g&&(r?r.end:-1)!==g.end&&60&o&&!D&&Lr(S&&(null==a?void 0:a.end)?a.end:g.end),128&o&&zt(),de(m);var E=er(r,a,o);E?Ut(E):2097408&o&&Jt()}P&&P(a),15360&o&&(u&&a&&Lr(a.end),Ot(function(e){return n[15360&e][1]}(o)))}}function Pt(e){p.writeLiteral(e)}function It(e,t){p.writeSymbol(e,t)}function Ot(e){p.writePunctuation(e)}function Lt(){p.writeTrailingSemicolon(";")}function Mt(e){p.writeKeyword(e)}function Rt(e){p.writeOperator(e)}function Bt(e){p.writeParameter(e)}function jt(e){p.writeComment(e)}function Jt(){p.writeSpace(" ")}function Vt(e){p.writeProperty(e)}function Ut(e){void 0===e&&(e=1);for(var t=0;t<e;t++)p.writeLine(t>0)}function Kt(){p.increaseIndent()}function zt(){p.decreaseIndent()}function Gt(t,r,n,i){return W?qt(t,n,r):function(t,r,n,i,a){if(W||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],l=c&&c.source||y;return i=qr(l,c?c.pos:i),0==(128&s)&&i>=0&&Yr(l,i),i=a(r,n,i),c&&(i=c.end),0==(256&s)&&i>=0&&Yr(l,i),i}(i,t,n,r,qt)}function Wt(t,r){I&&I(t),r(e.tokenToString(t.kind)),O&&O(t)}function qt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function Ht(t,r,n){if(1&e.getEmitFlags(t))Jt();else if(j){var i=ar(t,r,n);i?Ut(i):Jt()}else Ut()}function Yt(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&&(Ut(),J(s))}}function Xt(e,t){e?(Kt(),Ut(e)):t&&Jt()}function Qt(e,t){e&&zt(),t&&zt()}function $t(t,r,n){if(2&n||j){if(65536&n)return 1;var a=r[0];if(void 0===a)return!t||e.rangeIsOnSingleLine(t,i)?0:1;if(a.pos===d)return 0;if(11===a.kind)return 0;if(t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||e.getOriginalNode(a.parent)===e.getOriginalNode(t)))return j?tr((function(r){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(a.pos,t.pos,i,r)})):e.rangeStartPositionsAreOnSameLine(t,a,i)?0:1;if(ir(a,n))return 1}return 1&n?1:0}function Zt(t,r,n){if(2&n||j){if(void 0===t||void 0===r)return 0;if(11===r.kind)return 0;if(!e.nodeIsSynthesized(t)&&!e.nodeIsSynthesized(r))return j&&function(t,r){if(r.pos<t.end)return!1;t=e.getOriginalNode(t),r=e.getOriginalNode(r);var n=t.parent;if(!n||n!==r.parent)return!1;var i=e.getContainingNodeArray(t),a=null==i?void 0:i.indexOf(t);return void 0!==a&&a>-1&&i.indexOf(r)===a+1}(t,r)?tr((function(n){return e.getLinesBetweenRangeEndAndRangeStart(t,r,i,n)})):!j&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,i)?0:1:65536&n?1:0;if(ir(t,n)||ir(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&n?1:0}function er(t,r,n){if(2&n||j){if(65536&n)return 1;var a=e.lastOrUndefined(r);if(void 0===a)return!t||e.rangeIsOnSingleLine(t,i)?0:1;if(t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||a.parent===t)){if(j){var o=e.isNodeArray(r)&&!e.positionIsSynthesized(r.end)?r.end:a.end;return tr((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,i,r)}))}return e.rangeEndPositionsAreOnSameLine(t,a,i)?0:1}if(ir(a,n))return 1}return 1&n&&!(131072&n)?1:0}function tr(t){e.Debug.assert(!!j);var r=t(!0);return 0===r?t(!1):r}function rr(e,t){var r=j&&$t(t,[e],0);return r&&Xt(r,!1),!!r}function nr(e,t){var r=j&&er(t,[e],0);r&&Ut(r)}function ir(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function ar(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=sr(t),r=sr(r),n=sr(n),e.getStartsOnNewLine(n)?1:e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:j?tr((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,n,i,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,n,i)?0:1)}function or(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,i)}function sr(t){for(;210===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function cr(t,r){return e.isGeneratedIdentifier(t)?mr(t):(e.isIdentifier(t)||e.isPrivateIdentifier(t))&&(e.nodeIsSynthesized(t)||!t.parent||!i||t.parent&&i&&e.getSourceFileOfNode(t)!==e.getOriginalNode(i))?e.idText(t):10===t.kind&&t.textSourceNode?cr(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(i,t,r):t.text}function lr(r,n,a){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:cr(o);return a?'"'+e.escapeJsxAttributeString(s)+'"':n||16777216&e.getEmitFlags(r)?'"'+e.escapeString(s)+'"':'"'+e.escapeNonAsciiString(s)+'"'}return lr(o,n,a)}var c=(n?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,i,c)}function ur(t){t&&524288&e.getEmitFlags(t)||(c.push(l),l=0,u.push(_))}function _r(t){t&&524288&e.getEmitFlags(t)||(l=c.pop(),_=u.pop())}function dr(t){_&&_!==e.lastOrUndefined(u)||(_=new e.Set),_.add(t)}function pr(t){if(t)switch(t.kind){case 233:case 287:case 288:e.forEach(t.statements,pr);break;case 248:case 246:case 238:case 239:pr(t.statement);break;case 237:pr(t.thenStatement),pr(t.elseStatement);break;case 240:case 242:case 241:pr(t.initializer),pr(t.statement);break;case 247:pr(t.caseBlock);break;case 261:e.forEach(t.clauses,pr);break;case 250:pr(t.tryBlock),pr(t.catchClause),pr(t.finallyBlock);break;case 290:pr(t.variableDeclaration),pr(t.block);break;case 235:pr(t.declarationList);break;case 253:e.forEach(t.declarations,pr);break;case 252:case 162:case 201:case 255:case 266:case 272:gr(t.name);break;case 254:gr(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,pr),pr(t.body));break;case 199:case 200:case 267:e.forEach(t.elements,pr);break;case 264:pr(t.importClause);break;case 265:gr(t.name),pr(t.namedBindings);break;case 268:gr(t.propertyName||t.name)}}function fr(e){if(e)switch(e.kind){case 291:case 292:case 165:case 167:case 170:case 171:gr(e.name)}}function gr(t){t&&(e.isGeneratedIdentifier(t)?mr(t):e.isBindingPattern(t)&&pr(t))}function mr(t){if(4==(7&t.autoGenerateFlags))return yr(function(t){for(var r=t.autoGenerateId,n=t,i=n.original;i&&(n=i,!(e.isIdentifier(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n}(t),t.autoGenerateFlags);var r=t.autoGenerateId;return o[r]||(o[r]=function(t){switch(7&t.autoGenerateFlags){case 1:return br(0,!!(8&t.autoGenerateFlags));case 2:return br(268435456,!!(8&t.autoGenerateFlags));case 3:return xr(e.idText(t),32&t.autoGenerateFlags?vr:hr,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}function yr(t,r){var n=e.getNodeId(t);return a[n]||(a[n]=function(t,r){switch(t.kind){case 79:return xr(cr(t),hr,!!(16&r),!!(8&r));case 259:case 258:return function(t){var r=cr(t.name);return function(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0}(r,t)?r:xr(r)}(t);case 264:case 270:return function(t){var r=e.getExternalModuleName(t);return xr(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 254:case 255:case 269:return xr("default");case 224:return xr("class");case 167:case 170:case 171:return function(t){return e.isIdentifier(t.name)?yr(t.name):br(0)}(t);case 160:return br(0,!0);default:return br(0)}}(t,r))}function hr(e){return vr(e)&&!s.has(e)&&!(_&&_.has(e))}function vr(t){return!i||e.isFileLevelUniqueName(i,t,S)}function br(e,t){if(e&&!(l&e)&&hr(r=268435456===e?"_i":"_n"))return l|=e,t&&dr(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n&&hr(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&dr(r),r}}function xr(e,t,r,n){if(void 0===t&&(t=hr),r&&t(e))return n?dr(e):s.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?dr(a):s.add(a),a;i++}}function Dr(e){return xr(e,vr,!0)}function Sr(e,t){var r=Ie(2,e,t),n=Y,i=X,a=Q;Er(t),r(e,t),Tr(t,n,i,a)}function Er(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!function(t,r,n,i){te(),$=!1;var a=n<0||0!=(512&r)||11===t.kind,o=i<0||0!=(1024&r)||11===t.kind;(n>0||i>0)&&n!==i&&(a||Fr(n,344!==t.kind),(!a||n>=0&&0!=(512&r))&&(Y=n),(!o||i>=0&&0!=(1024&r))&&(X=i,253===t.kind&&(Q=i))),e.forEach(e.getSyntheticLeadingComments(t),Cr),re()}(t,r,n.pos,n.end),2048&r&&(Z=!0)}function Tr(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(Z=!1),function(t,r,n,i,a,o,s){te();var c=i<0||0!=(1024&r)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),kr),(n>0||i>0)&&n!==i&&(Y=a,X=o,Q=s,c||344===t.kind||function(e){Vr(e,Mr)}(i)),re()}(t,a,o.pos,o.end,r,n,i)}function Cr(e){(e.hasLeadingNewline||2===e.kind)&&p.writeLine(),Ar(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function kr(e){p.isAtStartOfLine()||p.writeSpace(" "),Ar(e),e.hasTrailingNewLine&&p.writeLine()}function Ar(t){var r=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,p,0,r.length,M)}function Nr(t,r,n){te();var a,o,s=r.pos,c=r.end,l=e.getEmitFlags(t),u=Z||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=r,(o=e.emitDetachedComments(i.text,De(),p,Ur,a,M,Z))&&(b?b.push(o):b=[o])),re(),2048&l&&!Z?(Z=!0,n(t),Z=!1):n(t),te(),u||(Fr(r.end,!0),$&&!p.isAtStartOfLine()&&p.writeLine()),re()}function Fr(e,t){$=!1,t?0===e&&(null==i?void 0:i.isDeclarationFile)?Jr(e,Pr):Jr(e,Or):0===e&&Jr(e,wr)}function wr(e,t,r,n,i){Kr(e,t)&&Or(e,t,r,n,i)}function Pr(e,t,r,n,i){Kr(e,t)||Or(e,t,r,n,i)}function Ir(r,n){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}function Or(t,r,n,a,o){Ir(i.text,t)&&($||(e.emitNewLineBeforeLeadingCommentOfPosition(De(),p,o,t),$=!0),Hr(t),e.writeCommentRange(i.text,De(),p,t,r,M),Hr(r),a?p.writeLine():3===n&&p.writeSpace(" "))}function Lr(e){Z||-1===e||Fr(e,!0)}function Mr(t,r,n,a){Ir(i.text,t)&&(p.isAtStartOfLine()||p.writeSpace(" "),Hr(t),e.writeCommentRange(i.text,De(),p,t,r,M),Hr(r),a&&p.writeLine())}function Rr(e,t,r){Z||(te(),Vr(e,t?Mr:r?Br:jr),re())}function Br(t,r,n){Hr(t),e.writeCommentRange(i.text,De(),p,t,r,M),Hr(r),2===n&&p.writeLine()}function jr(t,r,n,a){Hr(t),e.writeCommentRange(i.text,De(),p,t,r,M),Hr(r),a?p.writeLine():p.writeSpace(" ")}function Jr(t,r){!i||-1!==Y&&t===Y||(function(t){return void 0!==b&&e.last(b).nodePos===t}(t)?function(t){var r=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0,e.forEachLeadingCommentRange(i.text,r,t,r)}(r):e.forEachLeadingCommentRange(i.text,t,r,t))}function Vr(t,r){i&&(-1===X||t!==X&&t!==Q)&&e.forEachTrailingCommentRange(i.text,t,r)}function Ur(t,r,n,a,o,s){Ir(i.text,a)&&(Hr(a),e.writeCommentRange(t,r,n,a,o,s),Hr(o))}function Kr(t,r){return e.isRecognizedTripleSlashComment(i.text,t,r)}function zr(e,t){var r=Ie(3,e,t);Gr(t),r(e,t),Wr(t)}function Gr(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(t.parent);i&&m&&m.appendSourceMap(p.getLine(),p.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=n.source||y;344!==t.kind&&0==(16&r)&&n.pos>=0&&Yr(n.source||y,qr(a,n.pos)),64&r&&(W=!0)}}function Wr(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&r&&(W=!1),344!==t.kind&&0==(32&r)&&n.end>=0&&Yr(n.source||y,n.end))}function qr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Hr(t){if(!(W||e.positionIsSynthesized(t)||Qr(y))){var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;m.addMapping(p.getLine(),p.getColumn(),q,n,i,void 0)}}function Yr(e,t){if(e!==y){var r=y,n=q;Xr(e),Hr(t),function(e,t){y=e,q=t}(r,n)}else Hr(t)}function Xr(e){W||(y=e,e!==h?Qr(e)||(q=m.addSource(e.fileName),t.inlineSources&&m.setSourceContent(q,e.text),h=e,H=q):q=H)}function Qr(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getTsBuildInfoEmitOutputFilePath=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=u,e.getOutputDeclarationFileName=d,e.getCommonSourceDirectory=y,e.getCommonSourceDirectoryOfConfig=h,e.getAllProjectOutputs=function(t,r){var n=f(),i=n.addOutput,a=n.getOutputs;if(e.outFile(t.options))g(t,i);else{for(var s=e.memoize((function(){return h(t,r)})),c=0,l=t.fileNames;c<l.length;c++){var u=l[c];m(t,u,r,i,s)}i(o(t.options))}return a()},e.getOutputFileNames=function(t,r,n){r=e.normalizePath(r),e.Debug.assert(e.contains(t.fileNames,r),"Expected fileName to be present in command line");var i=f(),a=i.addOutput,o=i.getOutputs;return e.outFile(t.options)?g(t,a):m(t,r,n,a),o()},e.getFirstProjectOutput=function(t,r){if(e.outFile(t.options)){var n=s(t.options,!1).jsFilePath;return e.Debug.checkDefined(n,"project "+t.options.configFilePath+" expected to have at least one output")}for(var i=e.memoize((function(){return h(t,r)})),a=0,c=t.fileNames;a<c.length;a++){var l=c[a];if(!e.fileExtensionIs(l,".d.ts")){if(n=p(l,t,r,i))return n;if(!e.fileExtensionIs(l,".json")&&e.getEmitDeclarations(t.options))return d(l,t,r,i)}}return o(t.options)||e.Debug.fail("project "+t.options.configFilePath+" expected to have at least one output")},e.emitFiles=v,e.getBuildInfoText=b,e.getBuildInfo=x,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(e){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented},e.emitUsingBuildInfo=function(t,r,n,a){var o=s(t.options,!1),c=o.buildInfoPath,l=o.jsFilePath,u=o.sourceMapFilePath,_=o.declarationFilePath,d=o.declarationMapPath,p=r.readFile(e.Debug.checkDefined(c));if(!p)return c;var f=r.readFile(e.Debug.checkDefined(l));if(!f)return l;var g=u&&r.readFile(u);if(u&&!g||t.options.inlineSourceMap)return u||"inline sourcemap decoding";var m=_&&r.readFile(_);if(_&&!m)return _;var y=d&&r.readFile(d);if(d&&!y||t.options.inlineSourceMap)return d||"inline sourcemap decoding";var h=x(p);if(!h.bundle||!h.bundle.js||m&&!h.bundle.dts)return c;var D=e.getDirectoryPath(e.getNormalizedAbsolutePath(c,r.getCurrentDirectory())),S=e.createInputFiles(f,m,u,g,d,y,l,_,c,h,!0),E=[],T=e.createPrependNodes(t.projectReferences,n,(function(e){return r.readFile(e)})),C=function(t,r,n){var i,a=e.Debug.checkDefined(t.js),o=(null===(i=a.sources)||void 0===i?void 0:i.prologues)&&e.arrayToMap(a.sources.prologues,(function(e){return e.file}));return t.sourceFiles.map((function(t,i){var a,s,c=null==o?void 0:o.get(i),l=null==c?void 0:c.directives.map((function(t){var r=e.setTextRange(e.factory.createStringLiteral(t.expression.text),t.expression),n=e.setTextRange(e.factory.createExpressionStatement(r),t);return e.setParent(r,n),n})),u=e.factory.createToken(1),_=e.factory.createSourceFile(null!=l?l:[],u,0);return _.fileName=e.getRelativePathFromDirectory(n.getCurrentDirectory(),e.getNormalizedAbsolutePath(t,r),!n.useCaseSensitiveFileNames()),_.text=null!==(a=null==c?void 0:c.text)&&void 0!==a?a:"",e.setTextRangePosWidth(_,0,null!==(s=null==c?void 0:c.text.length)&&void 0!==s?s:0),e.setEachParent(_.statements,_),e.setTextRangePosWidth(u,_.end,0),e.setParent(u,_),_}))}(h.bundle,D,r),k={getPrependNodes:e.memoize((function(){return i(i([],T,!0),[S],!1)})),getCanonicalFileName:r.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(h.bundle.commonSourceDirectory,D)},getCompilerOptions:function(){return t.options},getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return C},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(t,r,n){switch(t){case l:if(f===r)return;break;case u:if(g===r)return;break;case c:var i=x(r);i.program=h.program;var a=h.bundle,o=a.js,s=a.dts,p=a.sourceFiles;return i.bundle.js.sources=o.sources,s&&(i.bundle.dts.sources=s.sources),i.bundle.sourceFiles=p,void E.push({name:t,text:b(i),writeByteOrderMark:n});case _:if(m===r)return;break;case d:if(y===r)return;break;default:e.Debug.fail("Unexpected path: "+t)}E.push({name:t,text:r,writeByteOrderMark:n})},isEmitBlocked:e.returnFalse,readFile:function(e){return r.readFile(e)},fileExists:function(e){return r.fileExists(e)},useCaseSensitiveFileNames:function(){return r.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return v(e.notImplementedResolver,k,void 0,e.getTransformers(t.options,a)),E},function(e){e[e.Notification=0]="Notification",e[e.Substitution=1]="Substitution",e[e.Comments=2]="Comments",e[e.SourceMaps=3]="SourceMaps",e[e.Emit=4]="Emit"}(t||(t={})),e.createPrinter=D,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(r||(r={}))}(u||(u={})),function(e){var t,r;function n(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(t,r,n){if(t.getDirectories&&t.readDirectory){var i=new e.Map,a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists:function(e){var r=c(o(e));return r&&d(r.files,l(e))||t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:t.directoryExists&&f,getDirectories:function(e){var r=u(e,o(e));return r?r.directories.slice():t.getDirectories(e)},readDirectory:function(i,a,s,c,_){var d,p=o(i),m=u(i,p);return void 0!==m?e.matchFiles(i,a,s,c,n,r,_,(function(t){var r=o(t);if(r===p)return m||y(t,r);var n=u(t,r);return void 0!==n?n||y(t,r):e.emptyFileSystemEntries}),g,f):t.readDirectory(i,a,s,c,_);function y(r,n){if(d&&n===p)return d;var i={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),l)||e.emptyArray,directories:t.getDirectories(r)||e.emptyArray};return n===p&&(d=i),i}},createDirectory:t.createDirectory&&function(e){var r=c(o(e)),n=l(e);r&&p(r.directories,n,!0),t.createDirectory(e)},writeFile:t.writeFile&&function(e,r,n){var i=c(o(e));return i&&m(i,l(e),!0),t.writeFile(e,r,n)},addOrDeleteFileOrDirectory:function(e,r){if(void 0===s(r)){var n=c(r);if(n){if(t.directoryExists){var i=l(e),a={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};return a.directoryExists||d(n.directories,i)?y():m(n,i,a.fileExists),a}y()}}else y()},addOrDeleteFile:function(t,r,n){if(n!==e.FileWatcherEventKind.Changed){var i=c(r);i&&m(i,l(t),n===e.FileWatcherEventKind.Created)}},clearCache:y,realpath:t.realpath&&g}}function o(t){return e.toPath(t,r,a)}function s(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function c(t){return s(e.getDirectoryPath(t))}function l(t){return e.getBaseFileName(e.normalizePath(t))}function u(r,n){var a=s(n=e.ensureTrailingDirectorySeparator(n));if(a)return a;try{return function(r,n){var a;if(!t.realpath||e.ensureTrailingDirectorySeparator(o(t.realpath(r)))===n){var s={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),l)||[],directories:t.getDirectories(r)||[]};return i.set(e.ensureTrailingDirectorySeparator(n),s),s}if(null===(a=t.directoryExists)||void 0===a?void 0:a.call(t,r))return i.set(n,!1),!1}(r,n)}catch(t){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(n)))}}function _(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(r){var n=o(r);return i.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)}function g(e){return t.realpath?t.realpath(e):e}function m(e,t,r){p(e.files,t,r)}function y(){i.clear()}},(r=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}))[r.None=0]="None",r[r.Partial=1]="Partial",r[r.Full=2]="Full",e.updateSharedExtendedConfigFileWatcher=function(t,r,n,i,a){var o,s=e.arrayToMap((null===(o=null==r?void 0:r.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);n.forEach((function(e,r){s.has(r)||(e.projects.delete(t),e.close())})),s.forEach((function(r,a){var o=n.get(a);o?o.projects.add(t):n.set(a,{projects:new e.Set([t]),watcher:i(r,a),close:function(){var e=n.get(a);e&&0===e.projects.size&&(e.watcher.close(),n.delete(a))}})}))},e.clearSharedExtendedConfigFileWatcher=function(e,t){t.forEach((function(t){t.projects.delete(e)&&t.close()}))},e.cleanExtendedConfigCache=function e(t,r,n){t.delete(r)&&t.forEach((function(i,a){var o;(null===(o=i.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some((function(e){return n(e)===r})))&&e(t,a,n)}))},e.updatePackageJsonWatch=function(t,r,n){var i=new e.Map(t);e.mutateMap(r,i,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=function(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,r,i){function a(e,t){return{watcher:i(e,t),flags:t}}e.mutateMap(t,r,{createNewValue:a,onDeleteValue:n,onExistingValue:function(e,r,n){e.flags!==r&&(e.watcher.close(),t.set(n,a(n,r)))}})},e.isIgnoredFileFromWildCardWatching=function(t){var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.program,c=t.extraFileExtensions,l=t.currentDirectory,u=t.useCaseSensitiveFileNames,_=t.writeLog,d=t.toPath,p=e.removeIgnoredPath(i);if(!p)return _("Project: "+a+" Detected ignored path: "+n),!0;if((i=p)===r)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,o,c))return _("Project: "+a+" Detected file add/remove of non supported extension: "+n),!0;if(e.isExcludedFile(n,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),u,l))return _("Project: "+a+" Detected excluded file: "+n),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.fileExtensionIs(i,".d.ts")){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensions))return!1;var f=e.removeFileExtension(i),g=e.isArray(s)?void 0:function(e){return!!e.getState}(s)?s.getProgramOrUndefined():s,m=g||e.isArray(s)?void 0:s;return!(!y(f+".ts")&&!y(f+".tsx")||(_("Project: "+a+" Detected output file: "+n),0));function y(t){return g?!!g.getSourceFileByPath(t):m?m.getState().fileInfos.has(t):!!e.find(s,(function(e){return d(e)===t}))}},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(r,n,a,o){e.setSysLog(n===t.Verbose?a:e.noop);var s={watchFile:function(e,t,n,i){return r.watchFile(e,t,n,i)},watchDirectory:function(e,t,n,i){return r.watchDirectory(e,t,0!=(1&n),i)}},c=n!==t.None?{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")}:void 0,l=n===t.Verbose?{watchFile:function(e,t,r,n,i,s){a("FileWatcher:: Added:: "+p(e,r,n,i,s,o));var l=c.watchFile(e,t,r,n,i,s);return{close:function(){a("FileWatcher:: Close:: "+p(e,r,n,i,s,o)),l.close()}}},watchDirectory:function(t,r,n,i,s,l){var u="DirectoryWatcher:: Added:: "+p(t,n,i,s,l,o);a(u);var _=e.timestamp(),d=c.watchDirectory(t,r,n,i,s,l),f=e.timestamp()-_;return a("Elapsed:: "+f+"ms "+u),{close:function(){var r="DirectoryWatcher:: Close:: "+p(t,n,i,s,l,o);a(r);var c=e.timestamp();d.close();var u=e.timestamp()-c;a("Elapsed:: "+u+"ms "+r)}}}}:c||s,u=n===t.Verbose?function(e,t,r,n,i){return a("ExcludeWatcher:: Added:: "+p(e,t,r,n,i,o)),{close:function(){return a("ExcludeWatcher:: Close:: "+p(e,t,r,n,i,o))}}}:e.returnNoopFileWatcher;return{watchFile:_("watchFile"),watchDirectory:_("watchDirectory")};function _(t){return function(n,i,a,o,s,c){var _;return e.matchesExclude(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames:r.useCaseSensitiveFileNames(),(null===(_=r.getCurrentDirectory)||void 0===_?void 0:_.call(r))||"")?u(n,a,o,s,c):l[t].call(void 0,n,i,a,o,s,c)}}function d(t){return function(r,n,c,l,u,_){return s[t].call(void 0,r,(function(){for(var s=[],d=0;d<arguments.length;d++)s[d]=arguments[d];var f=("watchFile"===t?"FileWatcher":"DirectoryWatcher")+":: Triggered with "+s[0]+" "+(void 0!==s[1]?s[1]:"")+":: "+p(r,c,l,u,_,o);a(f);var g=e.timestamp();n.call.apply(n,i([void 0],s,!1));var m=e.timestamp()-g;a("Elapsed:: "+m+"ms "+f)}),c,l,u,_)}}function p(e,t,r,n,i,a){return"WatchInfo: "+e+" "+t+" "+JSON.stringify(r)+" "+(a?a(n,i):void 0===i?n:n+" "+i)}},e.getFallbackOptions=function(t){var r=null==t?void 0:t.fallbackPolling;return{watchFile:void 0!==r?r:e.WatchFileKind.PriorityPollingInterval}},e.closeFileWatcherOf=n}(u||(u={})),function(e){function t(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function r(e,t){return n(e,t)}function n(t,r,n){void 0===n&&(n=e.sys);var i,a=new e.Map,o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=e.maybeBind(n,n.createHash)||e.generateDjb2Hash;function c(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var l=e.getNewLineCharacter(t,(function(){return n.newLine})),u=n.realpath&&function(e){return n.realpath(e)},_={getSourceFile:function(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=_.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:c,getDefaultLibFileName:function(t){return e.combinePaths(c(),e.getDefaultLibFileName(t))},writeFile:function(r,o,c,l){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,o,c,(function(r,a,o){return function(r,a,o){if(e.isWatchSet(t)&&n.getModifiedTime){i||(i=new e.Map);var c=s(a),l=n.getModifiedTime(r);if(l){var u=i.get(r);if(u&&u.byteOrderMark===o&&u.hash===c&&u.mtime.getTime()===l.getTime())return}n.writeFile(r,a,o);var _=n.getModifiedTime(r)||e.missingFileModifiedTime;i.set(r,{hash:c,byteOrderMark:o,mtime:_})}else n.writeFile(r,a,o)}(r,a,o)}),(function(e){return(_.createDirectory||n.createDirectory)(e)}),(function(e){return t=e,!!a.has(t)||!!(_.directoryExists||n.directoryExists)(t)&&(a.set(t,!0),!0);var t})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){l&&l(e.message)}},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return l},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:function(e){return n.write(e+l)},directoryExists:function(e){return n.directoryExists(e)},getEnvironmentVariable:function(e){return n.getEnvironmentVariable?n.getEnvironmentVariable(e):""},getDirectories:function(e){return n.getDirectories(e)},realpath:u,readDirectory:function(e,t,r,i,a){return n.readDirectory(e,t,r,i,a)},createDirectory:function(e){return n.createDirectory(e)},createHash:e.maybeBind(n,n.createHash)};return _}function a(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+f(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,c=e.convertToRelativePath(s,r.getCurrentDirectory(),(function(e){return r.getCanonicalFileName(e)}));return c+"("+(a+1)+","+(o+1)+"): "+n}return n}var o;e.findConfigFile=function(t,r,n){return void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,(function(t){var i=e.combinePaths(t,n);return r(i)?i:void 0}))},e.resolveTripleslashReference=t,e.computeCommonSourceDirectoryOfFilenames=function(t,r,n){var i,a=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}));return a?"":i?e.getPathFromPathComponents(i):r},e.createCompilerHost=r,e.createCompilerHostWorker=n,e.changeCompilerHostLikeToUseCache=function(t,r,n){var i=t.readFile,a=t.fileExists,o=t.directoryExists,s=t.createDirectory,c=t.writeFile,l=new e.Map,u=new e.Map,_=new e.Map,d=new e.Map,p=function(e,r){var n=i.call(t,r);return l.set(e,void 0!==n&&n),n};t.readFile=function(n){var a=r(n),o=l.get(a);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(n,".json")||e.isBuildInfoFile(n)?p(a,n):i.call(t,n)};var f=n?function(t,i,a,o){var s=r(t),c=d.get(s);if(c)return c;var l=n(t,i,a,o);return l&&(e.isDeclarationFileName(t)||e.fileExtensionIs(t,".json"))&&d.set(s,l),l}:void 0;return t.fileExists=function(e){var n=r(e),i=u.get(n);if(void 0!==i)return i;var o=a.call(t,e);return u.set(n,!!o),o},c&&(t.writeFile=function(e,n,i,a,o){var s=r(e);u.delete(s);var _=l.get(s);if(void 0!==_&&_!==n)l.delete(s),d.delete(s);else if(f){var p=d.get(s);p&&p.text!==n&&d.delete(s)}c.call(t,e,n,i,a,o)}),o&&s&&(t.directoryExists=function(e){var n=r(e),i=_.get(n);if(void 0!==i)return i;var a=o.call(t,e);return _.set(n,!!a),a},t.createDirectory=function(e){var n=r(e);_.delete(n),s.call(t,e)}),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,getSourceFileWithCache:f,readFileWithCache:function(e){var t=r(e),n=l.get(t);return void 0!==n?!1!==n?n:void 0:p(t,e)}}},e.getPreEmitDiagnostics=function(t,r,n){var i;return i=e.addRange(i,t.getConfigFileParsingDiagnostics()),i=e.addRange(i,t.getOptionsDiagnostics(n)),i=e.addRange(i,t.getSyntacticDiagnostics(r,n)),i=e.addRange(i,t.getGlobalDiagnostics(n)),i=e.addRange(i,t.getSemanticDiagnostics(r,n)),e.getEmitDeclarations(t.getCompilerOptions())&&(i=e.addRange(i,t.getDeclarationDiagnostics(r,n))),e.sortAndDeduplicateDiagnostics(i||e.emptyArray)},e.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n<i.length;n++)r+=a(i[n],t);return r},e.formatDiagnostic=a,function(e){e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan=""}(o=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var s="",c="",l="    ";function u(t){switch(t){case e.DiagnosticCategory.Error:return o.Red;case e.DiagnosticCategory.Warning:return o.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return o.Blue}}function _(e,t){return t+e+c}function d(t,r,n,i,a,o){var l=e.getLineAndCharacterOfPosition(t,r),u=l.line,d=l.character,p=e.getLineAndCharacterOfPosition(t,r+n),f=p.line,g=p.character,m=e.getLineAndCharacterOfPosition(t,t.text.length).line,y=f-u>=4,h=(f+1+"").length;y&&(h=Math.max("...".length,h));for(var v="",b=u;b<=f;b++){v+=o.getNewLine(),y&&u+1<b&&b<f-1&&(v+=i+_(e.padLeft("...",h),s)+" "+o.getNewLine(),b=f-1);var x=e.getPositionOfLineAndCharacter(t,b,0),D=b<m?e.getPositionOfLineAndCharacter(t,b+1,0):t.text.length,S=t.text.slice(x,D);if(S=(S=e.trimStringEnd(S)).replace(/\t/g," "),v+=i+_(e.padLeft(b+1+"",h),s)+" ",v+=S+o.getNewLine(),v+=i+_(e.padLeft("",h),s)+" ",v+=a,b===u){var E=b===f?g:void 0;v+=S.slice(0,d).replace(/\S/g," "),v+=S.slice(d,E).replace(/./g,"~")}else v+=b===f?S.slice(0,g).replace(/./g,"~"):S.replace(/./g,"~");v+=c}return v}function p(t,r,n,i){void 0===i&&(i=_);var a=e.getLineAndCharacterOfPosition(t,r),s=a.line,c=a.character,l="";return l+=i(n?e.convertToRelativePath(t.fileName,n.getCurrentDirectory(),(function(e){return n.getCanonicalFileName(e)})):t.fileName,o.Cyan),l+=":",l+=i(""+(s+1),o.Yellow),(l+=":")+i(""+(c+1),o.Yellow)}function f(t,r,n){if(void 0===n&&(n=0),e.isString(t))return t;if(void 0===t)return"";var i="";if(n){i+=r;for(var a=0;a<n;a++)i+="  "}if(i+=t.messageText,n++,t.next)for(var o=0,s=t.next;o<s.length;o++)i+=f(s[o],r,n);return i}function g(t,r,n,i){if(0===t.length)return[];for(var a=[],o=new e.Map,s=0,c=t;s<c.length;s++){var l=c[s],u=void 0;o.has(l)?u=o.get(l):o.set(l,u=i(l,r,n)),a.push(u)}return a}function m(t,r,n,i){var a;return function t(r,o,s){if(i){var c=i(r,s);if(c)return c}return e.forEach(o,(function(r,i){if(!r||!(null==a?void 0:a.has(r.sourceFile.path))){var o=n(r,s,i);return o||!r?o:((a||(a=new e.Set)).add(r.sourceFile.path),t(r.commandLine.projectReferences,r.references,r))}}))}(t,r,void 0)}function y(t){switch(null==t?void 0:t.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}function h(e){return void 0!==e.pos}function v(t,r){var n,i,a,o,s,c,l,u,_,d,p=e.Debug.checkDefined(t(r.file)),f=r.kind,g=r.index;switch(f){case e.FileIncludeKind.Import:var m=k(p,g);if(d=null===(s=null===(o=p.resolvedModules)||void 0===o?void 0:o.get(m.text))||void 0===s?void 0:s.packageId,-1===m.pos)return{file:p,packageId:d,text:m.text};u=e.skipTrivia(p.text,m.pos),_=m.end;break;case e.FileIncludeKind.ReferenceFile:u=(n=p.referencedFiles[g]).pos,_=n.end;break;case e.FileIncludeKind.TypeReferenceDirective:u=(i=p.typeReferenceDirectives[g]).pos,_=i.end,d=null===(l=null===(c=p.resolvedTypeReferenceDirectiveNames)||void 0===c?void 0:c.get(e.toFileNameLowerCase(p.typeReferenceDirectives[g].fileName)))||void 0===l?void 0:l.packageId;break;case e.FileIncludeKind.LibReferenceDirective:u=(a=p.libReferenceDirectives[g]).pos,_=a.end;break;default:return e.Debug.assertNever(f)}return{file:p,pos:u,end:_,packageId:d}}function b(t,r,n,a){var o=t.getCompilerOptions();if(o.noEmit)return t.getSemanticDiagnostics(r,a),r||e.outFile(o)?e.emitSkippedWithNoDiagnostics:t.emitBuildInfo(n,a);if(o.noEmitOnError){var s=i(i(i(i([],t.getOptionsDiagnostics(a),!0),t.getSyntacticDiagnostics(r,a),!0),t.getGlobalDiagnostics(a),!0),t.getSemanticDiagnostics(r,a),!0);if(0===s.length&&e.getEmitDeclarations(t.getCompilerOptions())&&(s=t.getDeclarationDiagnostics(void 0,a)),s.length){var c;if(!r&&!e.outFile(o)){var l=t.emitBuildInfo(n,a);l.diagnostics&&(s=i(i([],s,!0),l.diagnostics,!0)),c=l.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}}}function x(t,r){return e.filter(t,(function(e){return!e.skippedOn||!r[e.skippedOn]}))}function D(t,r){return void 0===r&&(r=t),{fileExists:function(e){return r.fileExists(e)},readDirectory:function(t,n,i,a,o){return e.Debug.assertIsDefined(r.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),r.readDirectory(t,n,i,a,o)},readFile:function(e){return r.readFile(e)},useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return t.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:t.trace?function(e){return t.trace(e)}:void 0}}function S(t,r,n){if(!t)return e.emptyArray;for(var i,a=0;a<t.length;a++){var o=t[a],s=r(o,a);if(o.prepend&&s&&s.options){if(!e.outFile(s.options))continue;var c=e.getOutputPathsForBundle(s.options,!0),l=c.jsFilePath,u=c.sourceMapFilePath,_=c.declarationFilePath,d=c.declarationMapPath,p=c.buildInfoPath,f=e.createInputFiles(n,l,u,_,d,p);(i||(i=[])).push(f)}}return i||e.emptyArray}function E(t,r){var n=r||t;return e.resolveConfigFileProjectName(n.path)}function T(t,r){switch(r.extension){case".ts":case".d.ts":return;case".tsx":return n();case".jsx":return n()||i();case".js":return i();case".json":return t.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return e.getAllowJSCompilerOption(t)||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function C(e){for(var t=e.imports,r=e.moduleAugmentations,n=t.map((function(e){return e.text})),i=0,a=r;i<a.length;i++){var o=a[i];10===o.kind&&n.push(o.text)}return n}function k(t,r){var n=t.imports,i=t.moduleAugmentations;if(r<n.length)return n[r];for(var a=n.length,o=0,s=i;o<s.length;o++){var c=s[o];if(10===c.kind){if(r===a)return c;a++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.formatColorAndReset=_,e.formatLocation=p,e.formatDiagnosticsWithColorAndContext=function(t,r){for(var n="",i=0,a=t;i<a.length;i++){var s=a[i];if(s.file&&(n+=p(y=s.file,h=s.start,r),n+=" - "),n+=_(e.diagnosticCategoryName(s),u(s.category)),n+=_(" TS"+s.code+": ",o.Grey),n+=f(s.messageText,r.getNewLine()),s.file&&(n+=r.getNewLine(),n+=d(s.file,s.start,s.length,"",u(s.category),r)),s.relatedInformation){n+=r.getNewLine();for(var c=0,g=s.relatedInformation;c<g.length;c++){var m=g[c],y=m.file,h=m.start,v=m.length,b=m.messageText;y&&(n+=r.getNewLine(),n+="  "+p(y,h,r),n+=d(y,h,v,l,o.Cyan,r)),n+=r.getNewLine(),n+=l+f(b,r.getNewLine())}}n+=r.getNewLine()}return n},e.flattenDiagnosticMessageText=f,e.loadWithLocalCache=g,e.forEachResolvedProjectReference=function(e,t){return m(void 0,e,(function(e,r){return e&&t(e,r)}))},e.inferredTypesContainingFile="__inferred type names__.ts",e.isReferencedFile=y,e.isReferenceFileLocation=h,e.getReferencedFileLocation=v,e.isProgramUptoDate=function(t,r,n,i,a,o,s,c,l){if(!t||(null==s?void 0:s()))return!1;if(!e.arrayIsEqualTo(t.getRootFileNames(),r))return!1;var u;if(!e.arrayIsEqualTo(t.getProjectReferences(),l,(function(r,n,i){return e.projectReferenceIsEqualTo(r,n)&&d(t.getResolvedProjectReferences()[i],r)})))return!1;if(t.getSourceFiles().some((function(e){return!function(e){return e.version===i(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;if(t.getMissingFilePaths().some(a))return!1;var _=t.getCompilerOptions();return!(!e.compareDataObjects(_,n)||_.configFile&&n.configFile&&_.configFile.text!==n.configFile.text);function d(t,r){if(t){if(e.contains(u,t))return!0;var n=E(r),i=c(n);return!!i&&t.commandLine.options.configFile===i.options.configFile&&!!e.arrayIsEqualTo(t.commandLine.fileNames,i.fileNames)&&((u||(u=[])).push(t),!e.forEach(t.references,(function(e,r){return!d(e,t.commandLine.projectReferences[r])})))}var a=E(r);return!c(a)}},e.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?i(i([],e.options.configFile.parseDiagnostics,!0),e.errors,!0):e.errors},e.createProgram=function(n,a,o,s,c){var l,u,_,d,p,f,k,A,N,F,w,P,I=e.isArray(n)?function(e,t,r,n,i){return{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}}(n,a,o,s,c):n,O=I.rootNames,L=I.options,M=I.configFileParsingDiagnostics,R=I.projectReferences,B=I.oldProgram,j=new e.Map,J=e.createMultiMap(),V={},U={},K=new e.Map,z="number"==typeof L.maxNodeModuleJsDepth?L.maxNodeModuleJsDepth:0,G=0,W=new e.Map,q=new e.Map;null===e.tracing||void 0===e.tracing||e.tracing.push("program","createProgram",{configFilePath:L.configFilePath,rootDir:L.rootDir},!0),e.performance.mark("beforeProgram");var H,Y,X,Q,$,Z=I.host||r(L),ee=D(Z),te=L.noLib,re=e.memoize((function(){return Z.getDefaultLibFileName(L)})),ne=Z.getDefaultLibLocation?Z.getDefaultLibLocation():e.getDirectoryPath(re()),ie=e.createDiagnosticCollection(),ae=Z.getCurrentDirectory(),oe=e.getSupportedExtensions(L),se=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(L,oe),ce=new e.Map,le=Z.hasInvalidatedResolution||e.returnFalse;if(Z.resolveModuleNames)Q=function(t,r,n,i){return Z.resolveModuleNames(e.Debug.checkEachDefined(t),r,n,i,L).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{Y=e.createModuleResolutionCache(ae,jt,L);var ue=function(t,r,n){return e.resolveModuleName(t,r,L,Z,Y,n).resolvedModule};Q=function(t,r,n,i){return g(e.Debug.checkEachDefined(t),r,i,ue)}}if(Z.resolveTypeReferenceDirectives)$=function(t,r,n){return Z.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(t),r,n,L)};else{X=e.createTypeReferenceDirectiveResolutionCache(ae,jt,void 0,null==Y?void 0:Y.getPackageJsonInfoCache());var _e=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,L,Z,n,X).resolvedTypeReferenceDirective};$=function(t,r,n){return g(e.Debug.checkEachDefined(t),r,n,_e)}}var de,pe,fe,ge,me,ye=new e.Map,he=new e.Map,ve=e.createMultiMap(),be=!1,xe=new e.Map,De=Z.useCaseSensitiveFileNames()?new e.Map:void 0,Se=!!(null===(l=Z.useSourceOfProjectReferenceRedirect)||void 0===l?void 0:l.call(Z))&&!L.disableSourceOfProjectReferenceRedirect,Ee=function(t){var r,n,i=t.compilerHost.fileExists,a=t.compilerHost.directoryExists,o=t.compilerHost.getDirectories,s=t.compilerHost.realpath;return t.useSourceOfProjectReferenceRedirect?(t.compilerHost.fileExists=c,a&&(n=t.compilerHost.directoryExists=function(n){return a.call(t.compilerHost,n)?(function(r){var n;if(t.getResolvedProjectReferences()&&!e.containsIgnoredPath(r)&&s&&e.stringContains(r,e.nodeModulesPathPart)){var i=t.getSymlinkCache(),a=e.ensureTrailingDirectorySeparator(t.toPath(r));if(!(null===(n=i.getSymlinkedDirectories())||void 0===n?void 0:n.has(a))){var o,c=e.normalizePath(s.call(t.compilerHost,r));c!==r&&(o=e.ensureTrailingDirectorySeparator(t.toPath(c)))!==a?i.setSymlinkedDirectory(r,{real:e.ensureTrailingDirectorySeparator(c),realPath:o}):i.setSymlinkedDirectory(a,!1)}}}(n),!0):!!t.getResolvedProjectReferences()&&(r||(r=new e.Set,t.forEachResolvedProjectReference((function(n){var i=e.outFile(n.commandLine.options);if(i)r.add(e.getDirectoryPath(t.toPath(i)));else{var a=n.commandLine.options.declarationDir||n.commandLine.options.outDir;a&&r.add(t.toPath(a))}}))),l(n,!1))}),o&&(t.compilerHost.getDirectories=function(e){return!t.getResolvedProjectReferences()||a&&a.call(t.compilerHost,e)?o.call(t.compilerHost,e):[]}),s&&(t.compilerHost.realpath=function(e){var r;return(null===(r=t.getSymlinkCache().getSymlinkedFiles())||void 0===r?void 0:r.get(t.toPath(e)))||s.call(t.compilerHost,e)}),{onProgramCreateComplete:function(){t.compilerHost.fileExists=i,t.compilerHost.directoryExists=a,t.compilerHost.getDirectories=o},fileExists:c,directoryExists:n}):{onProgramCreateComplete:e.noop,fileExists:c};function c(r){return!!i.call(t.compilerHost,r)||!!t.getResolvedProjectReferences()&&!!e.isDeclarationFileName(r)&&l(r,!0)}function l(n,a){var o,s=a?function(r){return function(r){var n=t.getSourceOfProjectReferenceRedirect(r);return void 0!==n?!e.isString(n)||i.call(t.compilerHost,n):void 0}(r)}:function(n){return function(n){var i=t.toPath(n),a=""+i+e.directorySeparator;return e.forEachKey(r,(function(t){return i===t||e.startsWith(t,a)||e.startsWith(i,t+"/")}))}(n)},c=s(n);if(void 0!==c)return c;var l=t.getSymlinkCache(),u=l.getSymlinkedDirectories();if(!u)return!1;var _=t.toPath(n);return!!e.stringContains(_,e.nodeModulesPathPart)&&(!(!a||!(null===(o=l.getSymlinkedFiles())||void 0===o?void 0:o.has(_)))||e.firstDefinedIterator(u.entries(),(function(r){var i=r[0],o=r[1];if(o&&e.startsWith(_,i)){var c=s(_.replace(i,o.realPath));if(a&&c){var u=e.getNormalizedAbsolutePath(n,t.compilerHost.getCurrentDirectory());l.setSymlinkedFile(_,""+o.real+u.replace(new RegExp(i,"i"),""))}return c}}))||!1)}}({compilerHost:Z,getSymlinkCache:ir,useSourceOfProjectReferenceRedirect:Se,toPath:Ge,getResolvedProjectReferences:Ye,getSourceOfProjectReferenceRedirect:Pt,forEachResolvedProjectReference:wt}),Te=Ee.onProgramCreateComplete,Ce=Ee.fileExists,ke=Ee.directoryExists;null===e.tracing||void 0===e.tracing||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!B});var Ae,Ne=function(t,r){return!!t&&e.optionsHaveChanges(t.getCompilerOptions(),r,e.sourceFileAffectingCompilerOptions)}(B,L);if(null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),Ae=function(){var t;if(!B)return 0;var r=B.getCompilerOptions();if(e.changesAffectModuleResolution(r,L))return 0;var n=B.getRootFileNames();if(!e.arrayIsEqualTo(n,O))return 0;if(m(B.getProjectReferences(),B.getResolvedProjectReferences(),(function(t,r,n){var i=Vt((r?r.commandLine.projectReferences:R)[n]);return t?!i||i.sourceFile!==t.sourceFile||!e.arrayIsEqualTo(t.commandLine.fileNames,i.commandLine.fileNames):void 0!==i}),(function(t,r){var n=r?Ot(r.sourceFile.path).commandLine.projectReferences:R;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)})))return 0;R&&(pe=R.map(Vt));var i=[],a=[];if(Ae=2,B.getMissingFilePaths().some((function(e){return Z.fileExists(e)})))return 0;var o,s=B.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(o||(o={}));for(var c=new e.Map,l=0,u=s;l<u.length;l++){var _=u[l];if(!(U=Z.getSourceFileByPath?Z.getSourceFileByPath(_.fileName,_.resolvedPath,L.target,void 0,Ne):Z.getSourceFile(_.fileName,L.target,void 0,Ne)))return 0;e.Debug.assert(!U.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var d=void 0;if(_.redirectInfo){if(U!==_.redirectInfo.unredirected)return 0;d=!1,U=_}else if(B.redirectTargetsMap.has(_.path)){if(U!==_)return 0;d=!1}else d=U!==_;U.path=_.path,U.originalFileName=_.originalFileName,U.resolvedPath=_.resolvedPath,U.fileName=_.fileName;var p=B.sourceFileToPackageName.get(_.path);if(void 0!==p){var g=c.get(p),y=d?1:0;if(void 0!==g&&1===y||1===g)return 0;c.set(p,y)}d?(e.arrayIsEqualTo(_.libReferenceDirectives,U.libReferenceDirectives,mt)||(Ae=1),_.hasNoDefaultLib!==U.hasNoDefaultLib&&(Ae=1),e.arrayIsEqualTo(_.referencedFiles,U.referencedFiles,mt)||(Ae=1),vt(U),e.arrayIsEqualTo(_.imports,U.imports,yt)||(Ae=1),e.arrayIsEqualTo(_.moduleAugmentations,U.moduleAugmentations,yt)||(Ae=1),(3145728&_.flags)!=(3145728&U.flags)&&(Ae=1),e.arrayIsEqualTo(_.typeReferenceDirectives,U.typeReferenceDirectives,mt)||(Ae=1),a.push({oldFile:_,newFile:U})):le(_.path)&&(Ae=1,a.push({oldFile:_,newFile:U})),i.push(U)}if(2!==Ae)return Ae;for(var h=a.map((function(e){return e.oldFile})),v=0,b=s;v<b.length;v++){var x=b[v];if(!e.contains(h,x))for(var D=0,S=x.ambientModuleNames;D<S.length;D++){var E=S[D];j.set(E,x.fileName)}}for(var T=0,k=a;T<k.length;T++){var A=k[T],N=(_=A.oldFile,C(U=A.newFile)),F=qe(N,U);e.hasChangesInResolutions(N,F,_.resolvedModules,e.moduleResolutionIsEqualTo)?(Ae=1,U.resolvedModules=e.zipToMap(N,F)):U.resolvedModules=_.resolvedModules;var w=e.map(U.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)})),I=Ve(w,U);e.hasChangesInResolutions(w,I,_.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo)?(Ae=1,U.resolvedTypeReferenceDirectiveNames=e.zipToMap(w,I)):U.resolvedTypeReferenceDirectiveNames=_.resolvedTypeReferenceDirectiveNames}if(2!==Ae)return Ae;if(e.changesAffectingProgramStructure(r,L)||(null===(t=Z.hasChangedAutomaticTypeDirectiveNames)||void 0===t?void 0:t.call(Z)))return 1;de=B.getMissingFilePaths(),e.Debug.assert(i.length===B.getSourceFiles().length);for(var M=0,V=i;M<V.length;M++){var U=V[M];xe.set(U.path,U)}return B.getFilesByNameMap().forEach((function(e,t){e?e.path!==t?xe.set(t,xe.get(e.path)):B.isSourceFileFromExternalLibrary(e)&&q.set(e.path,!0):xe.set(t,e)})),f=i,J=B.getFileIncludeReasons(),P=B.getFileProcessingDiagnostics(),K=B.getResolvedTypeReferenceDirectives(),he=B.sourceFileToPackageName,ve=B.redirectTargetsMap,be=B.usesUriStyleNodeCoreModules,2}(),null===e.tracing||void 0===e.tracing||e.tracing.pop(),2!==Ae){d=[],p=[],R&&(pe||(pe=R.map(Vt)),O.length&&(null==pe||pe.forEach((function(t,r){if(t){var n=e.outFile(t.commandLine.options);if(Se){if(n||e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var i=0,a=t.commandLine.fileNames;i<a.length;i++)Dt(l=a[i],{kind:e.FileIncludeKind.SourceFromProjectReference,index:r})}else if(n)Dt(e.changeExtension(n,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r});else if(e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var o=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!Z.useCaseSensitiveFileNames())})),s=0,c=t.commandLine.fileNames;s<c.length;s++){var l=c[s];e.fileExtensionIs(l,".d.ts")||e.fileExtensionIs(l,".json")||Dt(e.getOutputDeclarationFileName(l,t.commandLine,!Z.useCaseSensitiveFileNames(),o),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r})}}})))),null===e.tracing||void 0===e.tracing||e.tracing.push("program","processRootFiles",{count:O.length}),e.forEach(O,(function(t,r){return gt(t,!1,!1,{kind:e.FileIncludeKind.RootFile,index:r})})),null===e.tracing||void 0===e.tracing||e.tracing.pop();var Fe=O.length?e.getAutomaticTypeDirectiveNames(L,Z):e.emptyArray;if(Fe.length){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferences",{count:Fe.length});for(var we=L.configFilePath?e.getDirectoryPath(L.configFilePath):Z.getCurrentDirectory(),Pe=Ve(Fe,e.combinePaths(we,e.inferredTypesContainingFile)),Ie=0;Ie<Fe.length;Ie++)Rt(Fe[Ie],Pe[Ie],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Fe[Ie],packageId:null===(u=Pe[Ie])||void 0===u?void 0:u.packageId});null===e.tracing||void 0===e.tracing||e.tracing.pop()}if(O.length&&!te){var Oe=re();!L.lib&&Oe?gt(Oe,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(L.lib,(function(t,r){gt(e.combinePaths(ne,t),!0,!1,{kind:e.FileIncludeKind.LibFile,index:r})}))}de=e.arrayFrom(e.mapDefinedIterator(xe.entries(),(function(e){var t=e[0];return void 0===e[1]?t:void 0}))),f=e.stableSort(d,(function(t,r){return e.compareValues(ze(t),ze(r))})).concat(p),d=void 0,p=void 0}if(e.Debug.assert(!!de),B&&Z.onReleaseOldSourceFile){for(var Le=0,Me=B.getSourceFiles();Le<Me.length;Le++){var Re=Me[Le],Be=rt(Re.resolvedPath);(Ne||!Be||Re.resolvedPath===Re.path&&Be.resolvedPath!==Re.path)&&Z.onReleaseOldSourceFile(Re,B.getCompilerOptions(),!!rt(Re.path))}Z.getParsedCommandLine||B.forEachResolvedProjectReference((function(e){Ot(e.sourceFile.path)||Z.onReleaseOldSourceFile(e.sourceFile,B.getCompilerOptions(),!1)}))}B&&Z.onReleaseParsedCommandLine&&m(B.getProjectReferences(),B.getResolvedProjectReferences(),(function(e,t,r){var n=E((null==t?void 0:t.commandLine.projectReferences[r])||B.getProjectReferences()[r]);(null==fe?void 0:fe.has(Ge(n)))||Z.onReleaseParsedCommandLine(n,e,B.getCompilerOptions())})),X=void 0,B=void 0;var je={getRootFileNames:function(){return O},getSourceFile:tt,getSourceFileByPath:rt,getSourceFiles:function(){return f},getMissingFilePaths:function(){return de},getModuleResolutionCache:function(){return Y},getFilesByNameMap:function(){return xe},getCompilerOptions:function(){return L},getSyntacticDiagnostics:function(e,t){return nt(e,at,t)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(ie.getGlobalDiagnostics(),function(){if(!L.configFile)return e.emptyArray;var t=ie.getDiagnostics(L.configFile.fileName);return wt((function(r){t=e.concatenate(t,ie.getDiagnostics(r.sourceFile.fileName))})),t}()))},getGlobalDiagnostics:function(){return O.length?e.sortAndDeduplicateDiagnostics($e().getGlobalDiagnostics().slice()):e.emptyArray},getSemanticDiagnostics:function(e,t){return nt(e,st,t)},getCachedSemanticDiagnostics:function(e){var t;return e?null===(t=V.perFile)||void 0===t?void 0:t.get(e.path):V.allDiagnostics},getSuggestionDiagnostics:function(e,t){return ot((function(){return $e().getSuggestionDiagnostics(e,t)}))},getDeclarationDiagnostics:function(t,r){var n=je.getCompilerOptions();return!t||e.outFile(n)?_t(t,r):nt(t,ft,r)},getBindAndCheckDiagnostics:function(e,t){return ct(e,t)},getProgramDiagnostics:it,getTypeChecker:Ze,getClassifiableNames:function(){var t;if(!w){Ze(),w=new e.Set;for(var r=0,n=f;r<n.length;r++){null===(t=n[r].classifiableNames)||void 0===t||t.forEach((function(e){return w.add(e)}))}}return w},getDiagnosticsProducingTypeChecker:$e,getCommonSourceDirectory:We,emit:function(t,r,n,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emit",{path:null==t?void 0:t.path},!0);var s=ot((function(){return function(t,r,n,i,a,o,s){if(!s){var c=b(t,r,n,i);if(c)return c}var l=$e().getEmitResolver(e.outFile(L)?void 0:r,i);e.performance.mark("beforeEmit");var u=e.emitFiles(l,He(n),r,e.getTransformers(L,o,a),a,!1,s);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),u}(je,t,r,n,i,a,o)}));return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s},getCurrentDirectory:function(){return ae},getNodeCount:function(){return $e().getNodeCount()},getIdentifierCount:function(){return $e().getIdentifierCount()},getSymbolCount:function(){return $e().getSymbolCount()},getTypeCount:function(){return $e().getTypeCount()},getInstantiationCount:function(){return $e().getInstantiationCount()},getRelationCacheSizes:function(){return $e().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return P},getResolvedTypeReferenceDirectives:function(){return K},isSourceFileFromExternalLibrary:Qe,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!L.noLib)return!1;var r=Z.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return L.lib?e.some(L.lib,(function(n){return r(t.fileName,e.combinePaths(ne,n))})):r(t.fileName,re())},dropDiagnosticsProducingTypeChecker:function(){N=void 0},getSourceFileFromReference:function(e,r){return bt(t(r.fileName,e.fileName),tt)},getLibFileFromReference:function(t){var r=e.toFileNameLowerCase(t.fileName),n=e.libMap.get(r);if(n)return tt(e.combinePaths(ne,n))},sourceFileToPackageName:he,redirectTargetsMap:ve,usesUriStyleNodeCoreModules:be,isEmittedFile:function(t){if(L.noEmit)return!1;var r=Ge(t);if(rt(r))return!1;var n=e.outFile(L);if(n)return nr(r,n)||nr(r,e.removeFileExtension(n)+".d.ts");if(L.declarationDir&&e.containsPath(L.declarationDir,r,ae,!Z.useCaseSensitiveFileNames()))return!0;if(L.outDir)return e.containsPath(L.outDir,r,ae,!Z.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!rt(i+".ts")||!!rt(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return M||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r){return Y&&e.resolveModuleNameFromCache(t,r,Y)},getProjectReferences:function(){return R},getResolvedProjectReferences:Ye,getProjectReferenceRedirect:kt,getResolvedProjectReferenceToRedirect:Ft,getResolvedProjectReferenceByPath:Ot,forEachResolvedProjectReference:wt,isSourceOfProjectReferenceRedirect:It,emitBuildInfo:function(t){e.Debug.assert(!e.outFile(L)),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,He(t),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),r},fileExists:Ce,directoryExists:ke,getSymlinkCache:ir,realpath:null===(_=Z.realpath)||void 0===_?void 0:_.bind(Z),useCaseSensitiveFileNames:function(){return Z.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return J},structureIsReused:Ae};return Te(),null==P||P.forEach((function(t){switch(t.kind){case 1:return ie.add(Ut(t.file&&rt(t.file),t.fileProcessingReason,t.diagnostic,t.args||e.emptyArray));case 0:var r=v(rt,t.reason),n=r.file,a=r.pos,o=r.end;return ie.add(e.createFileDiagnostic.apply(void 0,i([n,e.Debug.checkDefined(a),e.Debug.checkDefined(o)-a,t.diagnostic],t.args||e.emptyArray,!1)));default:e.Debug.assertNever(t)}})),function(){L.strictPropertyInitialization&&!e.getStrictOptionValue(L,"strictNullChecks")&&Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),L.exactOptionalPropertyTypes&&!e.getStrictOptionValue(L,"strictNullChecks")&&Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),L.isolatedModules&&(L.out&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),L.outFile&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),L.inlineSourceMap&&(L.sourceMap&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),L.mapRoot&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),L.composite&&(!1===L.declaration&&Xt(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===L.incremental&&Xt(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var t,r=e.outFile(L);if(L.tsBuildInfoFile?e.isIncrementalCompilation(L)||Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!L.incremental||r||L.configFilePath||ie.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),t=L.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(L),m(R,pe,(function(r,n,i){var a=(n?n.commandLine.projectReferences:R)[i],o=n&&n.sourceFile;if(r){var s=r.commandLine.options;if(s.composite&&!s.noEmit||(n?n.commandLine.fileNames:O).length&&(s.composite||$t(o,i,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path),s.noEmit&&$t(o,i,e.Diagnostics.Referenced_project_0_may_not_disable_emit,a.path)),a.prepend){var c=e.outFile(s);c?Z.fileExists(c)||$t(o,i,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):$t(o,i,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!n&&t&&t===e.getTsBuildInfoEmitOutputFilePath(s)&&($t(o,i,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,t,a.path),ce.set(Ge(t),!0))}else $t(o,i,e.Diagnostics.File_0_not_found,a.path)})),L.composite)for(var n=new e.Set(O.map(Ge)),i=0,a=f;i<a.length;i++){var o=a[i];e.sourceFileMayBeEmitted(o,je)&&!n.has(o.path)&&zt(o,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[o.fileName,L.configFilePath||""])}if(L.paths)for(var s in L.paths)if(e.hasProperty(L.paths,s))if(e.hasZeroOrOneAsteriskCharacter(s)||Wt(!0,s,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,s),e.isArray(L.paths[s])){var c=L.paths[s].length;0===c&&Wt(!1,s,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,s);for(var l=0;l<c;l++){var u=L.paths[s][l],_=typeof u;"string"===_?(e.hasZeroOrOneAsteriskCharacter(u)||Gt(s,l,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,u,s),L.baseUrl||e.pathIsRelative(u)||e.pathIsAbsolute(u)||Gt(s,l,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Gt(s,l,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,u,s,_)}}else Wt(!1,s,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,s);L.sourceMap||L.inlineSourceMap||(L.inlineSources&&Xt(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),L.sourceRoot&&Xt(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),L.out&&L.outFile&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!L.mapRoot||L.sourceMap||L.declarationMap||Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),L.declarationDir&&(e.getEmitDeclarations(L)||Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),r&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",L.out?"out":"outFile")),L.declarationMap&&!e.getEmitDeclarations(L)&&Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),L.lib&&L.noLib&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),L.noImplicitUseStrict&&e.getStrictOptionValue(L,"alwaysStrict")&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var d=L.target||0,p=e.find(f,(function(t){return e.isExternalModule(t)&&!t.isDeclarationFile}));if(L.isolatedModules){L.module===e.ModuleKind.None&&d<2&&Xt(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===L.preserveConstEnums&&Xt(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var g=e.find(f,(function(t){return!e.isExternalModule(t)&&!e.isSourceFileJS(t)&&!t.isDeclarationFile&&6!==t.scriptKind}));if(g){var y=e.getErrorSpanForNode(g,g);ie.add(e.createFileDiagnostic(g,y.start,y.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(g.fileName)))}}else p&&d<2&&L.module===e.ModuleKind.None&&(y=e.getErrorSpanForNode(p,p.externalModuleIndicator),ie.add(e.createFileDiagnostic(p,y.start,y.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)));if(r&&!L.emitDeclarationOnly&&(L.module&&L.module!==e.ModuleKind.AMD&&L.module!==e.ModuleKind.System?Xt(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,L.out?"out":"outFile","module"):void 0===L.module&&p&&(y=e.getErrorSpanForNode(p,p.externalModuleIndicator),ie.add(e.createFileDiagnostic(p,y.start,y.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,L.out?"out":"outFile")))),L.resolveJsonModule&&(e.getEmitModuleResolutionKind(L)!==e.ModuleResolutionKind.NodeJs?Xt(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(L)||Xt(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),L.outDir||L.rootDir||L.sourceRoot||L.mapRoot){var h=We();L.outDir&&""===h&&f.some((function(t){return e.getRootLength(t.fileName)>1}))&&Xt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(L.useDefineForClassFields&&0===d&&Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),L.checkJs&&!e.getAllowJSCompilerOption(L)&&ie.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),L.emitDeclarationOnly&&(e.getEmitDeclarations(L)||Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),L.noEmit&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),L.emitDecoratorMetadata&&!L.experimentalDecorators&&Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),L.jsxFactory?(L.reactNamespace&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==L.jsx&&5!==L.jsx||Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+L.jsx)),e.parseIsolatedEntityName(L.jsxFactory,d)||Qt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,L.jsxFactory)):L.reactNamespace&&!e.isIdentifierText(L.reactNamespace,d)&&Qt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,L.reactNamespace),L.jsxFragmentFactory&&(L.jsxFactory||Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==L.jsx&&5!==L.jsx||Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+L.jsx)),e.parseIsolatedEntityName(L.jsxFragmentFactory,d)||Qt("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,L.jsxFragmentFactory)),L.reactNamespace&&(4!==L.jsx&&5!==L.jsx||Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+L.jsx))),L.jsxImportSource&&2===L.jsx&&Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+L.jsx)),!L.noEmit&&!L.suppressOutputPathCheck){var v=He(),b=new e.Set;e.forEachEmittedFile(v,(function(e){L.emitDeclarationOnly||x(e.jsFilePath,b),x(e.declarationFilePath,b)}))}function x(t,r){if(t){var n=Ge(t);if(xe.has(n)){var i=void 0;L.configFilePath||(i=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),rr(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=Z.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?rr(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.add(a)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),je;function Je(t,r,n){if(!t.length)return e.emptyArray;var i=e.getNormalizedAbsolutePath(r.originalFileName,ae),a=Ue(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:i}),e.performance.mark("beforeResolveModule");var o=Q(t,i,n,a);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Ve(t,r){if(!t.length)return[];var n=e.isString(r)?r:e.getNormalizedAbsolutePath(r.originalFileName,ae),i=e.isString(r)?void 0:Ue(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:n}),e.performance.mark("beforeResolveTypeReference");var a=$(t,n,i);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),a}function Ue(t){var r=Ft(t.originalFileName);if(r||!e.fileExtensionIs(t.originalFileName,".d.ts"))return r;var n=Ke(t.originalFileName,t.path);if(n)return n;if(Z.realpath&&L.preserveSymlinks&&e.stringContains(t.originalFileName,e.nodeModulesPathPart)){var i=Z.realpath(t.originalFileName),a=Ge(i);return a===t.path?void 0:Ke(i,a)}}function Ke(t,r){var n=Pt(t);return e.isString(n)?Ft(n):n?wt((function(t){var n=e.outFile(t.commandLine.options);if(n)return Ge(n)===r?t:void 0})):void 0}function ze(t){if(e.containsPath(ne,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function Ge(t){return e.toPath(t,ae,jt)}function We(){if(void 0===A){var t=e.filter(f,(function(t){return e.sourceFileMayBeEmitted(t,je)}));A=e.getCommonSourceDirectory(L,(function(){return e.mapDefined(t,(function(e){return e.isDeclarationFile?void 0:e.fileName}))}),ae,jt,(function(r){return function(t,r){for(var n=!0,i=Z.getCanonicalFileName(e.getNormalizedAbsolutePath(r,ae)),a=0,o=t;a<o.length;a++){var s=o[a];s.isDeclarationFile||0!==Z.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,ae)).indexOf(i)&&(zt(s,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[s.fileName,r]),n=!1)}return n}(t,r)}))}return A}function qe(t,r){if(0===Ae&&!r.ambientModuleNames.length)return Je(t,r,void 0);var n,i,a,o=B&&B.getSourceFile(r.fileName);if(o!==r&&r.resolvedModules){for(var s=[],c=0,l=t;c<l.length;c++){var u=l[c],_=r.resolvedModules.get(u);s.push(_)}return s}for(var d={},p=0;p<t.length;p++){if(u=t[p],r===o&&!le(o.path)){var f=e.getResolvedModule(o,u);if(f){e.isTraceEnabled(L,Z)&&e.trace(Z,f.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,u,e.getNormalizedAbsolutePath(r.originalFileName,ae),f.resolvedFileName,f.packageId&&e.packageIdToString(f.packageId)),(i||(i=new Array(t.length)))[p]=f,(a||(a=[])).push(u);continue}}var g=!1;e.contains(r.ambientModuleNames,u)?(g=!0,e.isTraceEnabled(L,Z)&&e.trace(Z,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,u,e.getNormalizedAbsolutePath(r.originalFileName,ae))):g=h(u),g?(i||(i=new Array(t.length)))[p]=d:(n||(n=[])).push(u)}var m=n&&n.length?Je(n,r,a):e.emptyArray;if(!i)return e.Debug.assert(m.length===t.length),m;var y=0;for(p=0;p<i.length;p++)i[p]?i[p]===d&&(i[p]=void 0):(i[p]=m[y],y++);return e.Debug.assert(y===m.length),i;function h(t){var r=e.getResolvedModule(o,t),n=r&&B.getSourceFile(r.resolvedFileName);if(r&&n)return!1;var i=j.get(t);return!!i&&(e.isTraceEnabled(L,Z)&&e.trace(Z,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,i),!0)}}function He(t){return{getPrependNodes:Xe,getCanonicalFileName:jt,getCommonSourceDirectory:je.getCommonSourceDirectory,getCompilerOptions:je.getCompilerOptions,getCurrentDirectory:function(){return ae},getNewLine:function(){return Z.getNewLine()},getSourceFile:je.getSourceFile,getSourceFileByPath:je.getSourceFileByPath,getSourceFiles:je.getSourceFiles,getLibFileFromReference:je.getLibFileFromReference,isSourceFileFromExternalLibrary:Qe,getResolvedProjectReferenceToRedirect:Ft,getProjectReferenceRedirect:kt,isSourceOfProjectReferenceRedirect:It,getSymlinkCache:ir,writeFile:t||function(e,t,r,n,i){return Z.writeFile(e,t,r,n,i)},isEmitBlocked:et,readFile:function(e){return Z.readFile(e)},fileExists:function(t){var r=Ge(t);return!!rt(r)||!e.contains(de,r)&&Z.fileExists(t)},useCaseSensitiveFileNames:function(){return Z.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return je.getProgramBuildInfo&&je.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return je.getSourceFileFromReference(e,t)},redirectTargetsMap:ve,getFileIncludeReasons:je.getFileIncludeReasons}}function Ye(){return pe}function Xe(){return S(R,(function(e,t){var r;return null===(r=pe[t])||void 0===r?void 0:r.commandLine}),(function(e){var t=Ge(e),r=rt(t);return r?r.text:xe.has(t)?void 0:Z.readFile(t)}))}function Qe(e){return!!q.get(e.path)}function $e(){return N||(N=e.createTypeChecker(je,!0))}function Ze(){return F||(F=e.createTypeChecker(je,!1))}function et(e){return ce.has(Ge(e))}function tt(e){return rt(Ge(e))}function rt(e){return xe.get(e)||void 0}function nt(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(je.getSourceFiles(),(function(e){return n&&n.throwIfCancellationRequested(),r(e,n)})))}function it(t){var r;if(e.skipTypeChecking(t,L,je))return e.emptyArray;var n=ie.getDiagnostics(t.fileName);return(null===(r=t.commentDirectives)||void 0===r?void 0:r.length)?ut(t,t.commentDirectives,n).diagnostics:n}function at(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return ot((function(){var r=[];return n(t,t),e.forEachChildRecursively(t,n,(function(t,n){switch(n.decorators!==t||L.experimentalDecorators||r.push(a(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),n.kind){case 255:case 224:case 167:case 169:case 170:case 171:case 211:case 254:case 212:if(t===n.typeParameters)return r.push(i(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 235:if(t===n.modifiers)return function(t,n){for(var i=0,o=t;i<o.length;i++){var s=o[i];switch(s.kind){case 85:if(n)continue;case 123:case 121:case 122:case 143:case 134:case 126:case 157:r.push(a(s,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(s.kind)))}}}(n.modifiers,235===n.kind),"skip";break;case 165:if(t===n.modifiers){for(var o=0,s=t;o<s.length;o++){var c=s[o];124!==c.kind&&r.push(a(c,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(c.kind)))}return"skip"}break;case 162:if(t===n.modifiers)return r.push(i(t,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 206:case 207:case 226:case 277:case 278:case 208:if(t===n.typeArguments)return r.push(i(t,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),r;function n(t,n){switch(n.kind){case 162:case 165:case 167:if(n.questionToken===t)return r.push(a(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 166:case 169:case 170:case 171:case 211:case 254:case 212:case 252:if(n.type===t)return r.push(a(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(t.kind){case 265:if(t.isTypeOnly)return r.push(a(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 270:if(t.isTypeOnly)return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 263:return r.push(a(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 269:if(t.isExportEquals)return r.push(a(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 289:if(117===t.token)return r.push(a(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 256:var i=e.tokenToString(118);return e.Debug.assertIsDefined(i),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 259:var o=16&t.flags?e.tokenToString(141):e.tokenToString(140);return e.Debug.assertIsDefined(o),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 257:return r.push(a(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 258:var s=e.Debug.checkDefined(e.tokenToString(92));return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,s)),"skip";case 228:return r.push(a(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 227:return r.push(a(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 209:e.Debug.fail()}}function i(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function a(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}}))}(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function ot(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(F=void 0,N=void 0),t}}function st(t,r){return e.concatenate(x(ct(t,r),L),it(t))}function ct(e,t){return pt(e,t,V,lt)}function lt(t,r){return ot((function(){if(e.skipTypeChecking(t,L,je))return e.emptyArray;var n=$e();e.Debug.assert(!!t.bindDiagnostics);var i=e.isCheckJsEnabledForFile(t,L),a=!(t.checkJsDirective&&!1===t.checkJsDirective.enabled)&&(3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||i||7===t.scriptKind),o=a?t.bindDiagnostics:e.emptyArray,s=a?n.getDiagnostics(t,r):e.emptyArray;return function(t,r){for(var n,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o=e.flatten(i);if(!r||!(null===(n=t.commentDirectives)||void 0===n?void 0:n.length))return o;for(var s=ut(t,t.commentDirectives,o),c=s.diagnostics,l=s.directives,u=0,_=l.getUnusedExpectations();u<_.length;u++){var d=_[u];c.push(e.createDiagnosticForRange(t,d.range,e.Diagnostics.Unused_ts_expect_error_directive))}return c}(t,a,o,s,i?t.jsDocDiagnostics:void 0)}))}function ut(t,r,n){var i=e.createCommentDirectivesMap(t,r),a=n.filter((function(t){return-1===function(t,r){var n=t.file,i=t.start;if(!n)return-1;for(var a=e.getLineStarts(n),o=e.computeLineAndCharacterOfPosition(a,i).line-1;o>=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)}));return{diagnostics:a,directives:i}}function _t(e,t){return pt(e,t,U,dt)}function dt(t,r){return ot((function(){var n=$e().getEmitResolver(t,r);return e.getDeclarationDiagnostics(He(e.noop),n,t)||e.emptyArray}))}function pt(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function ft(e,t){return e.isDeclarationFile?[]:_t(e,t)}function gt(t,r,n,i){xt(e.normalizePath(t),r,n,void 0,i)}function mt(e,t){return e.fileName===t.fileName}function yt(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function ht(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,void 0,n);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function vt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((L.isolatedModules||o)&&!t.isDeclarationFile){L.importHelpers&&(r=[ht(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(L,t),L);s&&(r||(r=[])).push(ht(s,t))}for(var c=0,l=t.statements;c<l.length;c++)u(l[c],!1);return(1048576&t.flags||a)&&function(t){for(var n=/import|require/g;null!==n.exec(t.text);){var i=_(t,n.lastIndex);a&&e.isRequireCall(i,!0)||e.isImportCall(i)&&1===i.arguments.length&&e.isStringLiteralLike(i.arguments[0])?r=e.append(r,i.arguments[0]):e.isLiteralImportTypeNode(i)&&(r=e.append(r,i.argument.literal))}}(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function u(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(r=e.append(r,c),be||0!==G||t.isDeclarationFile||(be=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){var l=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(l))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(l);var _=a.body;if(_)for(var d=0,p=_.statements;d<p.length;d++)u(p[d],!0)}}}function _(t,r){for(var n=t,i=function(e){if(e.pos<=r&&(r<e.end||r===e.end&&1===e.kind))return e};;){var o=a&&e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,i)||e.forEachChild(n,i);if(!o)return n;n=o}}}function bt(t,r,n,i){if(e.hasExtension(t)){var a=Z.getCanonicalFileName(t);if(!L.allowNonTsExtensions&&!e.forEach(se,(function(t){return e.fileExtensionIs(a,t)})))return void(n&&(e.hasJSFileExtension(a)?n(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,t):n(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+oe.join("', '")+"'")));var o=r(t);if(n)if(o)y(i)&&a===Z.getCanonicalFileName(rt(i.file).fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var s=kt(t);s?n(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,s,t):n(e.Diagnostics.File_0_not_found,t)}return o}var c=L.allowNonTsExtensions&&r(t);if(c)return c;if(!n||!L.allowNonTsExtensions){var l=e.forEach(oe,(function(e){return r(t+e)}));return n&&!l&&n(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+oe.join("', '")+"'"),l}n(e.Diagnostics.File_0_not_found,t)}function xt(e,t,r,n,i){bt(e,(function(e){return Et(e,Ge(e),t,r,i,n)}),(function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Kt(void 0,i,e,t)}),i)}function Dt(e,t){return xt(e,!1,!1,void 0,t)}function St(t,r,n){!y(n)&&e.some(J.get(r.path),y)?Kt(r,n,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[r.fileName,t]):Kt(r,n,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[t,r.fileName])}function Et(t,r,n,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("program","findSourceFile",{fileName:t,isDefaultLib:n||void 0,fileIncludeKind:e.FileIncludeKind[a.kind]});var s=function(t,r,n,i,a,o){if(Se){var s=Pt(t);if(!s&&Z.realpath&&L.preserveSymlinks&&e.isDeclarationFileName(t)&&e.stringContains(t,e.nodeModulesPathPart)){var c=Z.realpath(t);c!==t&&(s=Pt(c))}if(s){var l=e.isString(s)?Et(s,Ge(s),n,i,a,o):void 0;return l&&Ct(l,r,void 0),l}}var u,_=t;if(xe.has(r)){var f=xe.get(r);if(Tt(f||void 0,a),f&&L.forceConsistentCasingInFileNames){var g=f.fileName;Ge(g)!==Ge(t)&&(t=kt(t)||t),e.getNormalizedAbsolutePathWithoutRoot(g,ae)!==e.getNormalizedAbsolutePathWithoutRoot(t,ae)&&St(t,f,a)}return f&&q.get(f.path)&&0===G?(q.set(f.path,!1),L.noResolve||(Lt(f,n),Mt(f)),L.noLib||Bt(f),W.set(f.path,!1),Jt(f)):f&&W.get(f.path)&&G<z&&(W.set(f.path,!1),Jt(f)),f||void 0}if(y(a)&&!Se){var m=At(t);if(m){if(e.outFile(m.commandLine.options))return;var h=Nt(m,t);t=h,u=Ge(h)}}var v=Z.getSourceFile(t,L.target,(function(r){return Kt(void 0,a,e.Diagnostics.Cannot_read_file_0_Colon_1,[t,r])}),Ne);if(o){var b=e.packageIdToString(o),x=ye.get(b);if(x){var D=function(e,t,r,n,i,a){var o=Object.create(e);return o.fileName=r,o.path=n,o.resolvedPath=i,o.originalFileName=a,o.redirectInfo={redirectTarget:e,unredirected:t},q.set(n,G>0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(x,v,t,r,Ge(t),_);return ve.add(x.path,t),Ct(D,r,u),Tt(D,a),he.set(r,o.name),p.push(D),D}v&&(ye.set(b,v),he.set(r,o.name))}if(Ct(v,r,u),v){if(q.set(r,G>0),v.fileName=t,v.path=r,v.resolvedPath=Ge(t),v.originalFileName=_,Tt(v,a),Z.useCaseSensitiveFileNames()){var S=e.toFileNameLowerCase(r),E=De.get(S);E?St(t,E,a):De.set(S,v)}te=te||v.hasNoDefaultLib&&!i,L.noResolve||(Lt(v,n),Mt(v)),L.noLib||Bt(v),Jt(v),n?d.push(v):p.push(v)}return v}(t,r,n,i,a,o);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function Tt(e,t){e&&J.add(e.path,t)}function Ct(e,t,r){r?(xe.set(r,e),xe.set(t,e||!1)):xe.set(t,e)}function kt(e){var t=At(e);return t&&Nt(t,e)}function At(t){if(pe&&pe.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return Ft(t)}function Nt(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!Z.useCaseSensitiveFileNames())}function Ft(t){void 0===ge&&(ge=new e.Map,wt((function(e){Ge(L.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(t){return ge.set(Ge(t),e.sourceFile.path)}))})));var r=ge.get(Ge(t));return r&&Ot(r)}function wt(t){return e.forEachResolvedProjectReference(pe,t)}function Pt(t){if(e.isDeclarationFileName(t))return void 0===me&&(me=new e.Map,wt((function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");me.set(Ge(n),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!Z.useCaseSensitiveFileNames())}));e.forEach(t.commandLine.fileNames,(function(r){if(!e.fileExtensionIs(r,".d.ts")&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!Z.useCaseSensitiveFileNames(),i);me.set(Ge(n),r)}}))}}))),me.get(Ge(t))}function It(e){return Se&&!!Ft(e)}function Ot(e){if(fe)return fe.get(e)||void 0}function Lt(r,n){e.forEach(r.referencedFiles,(function(i,a){xt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function Mt(t){var r=e.map(t.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)}));if(r)for(var n=Ve(r,t),i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i],o=n[i],s=e.toFileNameLowerCase(a.fileName);e.setResolvedTypeReferenceDirective(t,s,o),Rt(s,o,{kind:e.FileIncludeKind.TypeReferenceDirective,file:t.path,index:i})}}function Rt(t,r,n){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferenceDirective",{directive:t,hasResolved:!!qe,refKind:n.kind,refPath:y(n)?n.file:void 0}),function(t,r,n){var i=K.get(t);if(!i||!i.primary){var a=!0;if(r){if(r.isExternalLibraryImport&&G++,r.primary)xt(r.resolvedFileName,!1,!1,r.packageId,n);else if(i){if(r.resolvedFileName!==i.resolvedFileName){var o=Z.readFile(r.resolvedFileName),s=tt(i.resolvedFileName);o!==s.text&&Kt(s,n,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,i.resolvedFileName])}a=!1}else xt(r.resolvedFileName,!1,!1,r.packageId,n);r.isExternalLibraryImport&&G--}else Kt(void 0,n,e.Diagnostics.Cannot_find_type_definition_file_for_0,[t]);a&&K.set(t,r)}}(t,r,n),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function Bt(t){e.forEach(t.libReferenceDirectives,(function(r,n){var i=e.toFileNameLowerCase(r.fileName),a=e.libMap.get(i);if(a)gt(e.combinePaths(ne,a),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n});else{var o=e.removeSuffix(e.removePrefix(i,"lib."),".d.ts"),s=e.getSpellingSuggestion(o,e.libs,e.identity),c=s?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(P||(P=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n},diagnostic:c,args:[i,s]})}}))}function jt(e){return Z.getCanonicalFileName(e)}function Jt(t){var r;if(vt(t),t.imports.length||t.moduleAugmentations.length){var n=C(t),i=qe(n,t);e.Debug.assert(i.length===n.length);for(var a=(Se?null===(r=Ue(t))||void 0===r?void 0:r.commandLine.options:void 0)||L,o=0;o<n.length;o++){var s=i[o];if(e.setResolvedModule(t,n[o],s),s){var c=s.isExternalLibraryImport,l=!e.resolutionExtensionIsTSOrJson(s.extension),u=c&&l,_=s.resolvedFileName;c&&G++;var d=u&&G>z,p=_&&!T(a,s)&&!a.noResolve&&o<t.imports.length&&!d&&!(l&&!e.getAllowJSCompilerOption(a))&&(e.isInJSFile(t.imports[o])||!(4194304&t.imports[o].flags));d?W.set(t.path,!0):p&&Et(_,Ge(_),!1,!1,{kind:e.FileIncludeKind.Import,file:t.path,index:o},s.packageId),c&&G--}}}else t.resolvedModules=void 0}function Vt(t){fe||(fe=new e.Map);var r,n,i=E(t),a=Ge(i),o=fe.get(a);if(void 0!==o)return o||void 0;if(Z.getParsedCommandLine){if(!(r=Z.getParsedCommandLine(i)))return Ct(void 0,a,void 0),void fe.set(a,!1);n=e.Debug.checkDefined(r.options.configFile),e.Debug.assert(!n.path||n.path===a),Ct(n,a,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(i),Z.getCurrentDirectory());if(Ct(n=Z.getSourceFile(i,100),a,void 0),void 0===n)return void fe.set(a,!1);r=e.parseJsonSourceFileConfigFileContent(n,ee,s,void 0,i)}n.fileName=i,n.path=a,n.resolvedPath=a,n.originalFileName=i;var c={commandLine:r,sourceFile:n};return fe.set(a,c),r.projectReferences&&(c.references=r.projectReferences.map(Vt)),c}function Ut(t,r,n,a){var o,s,c,l=y(r)?r:void 0;t&&(null===(o=J.get(t.path))||void 0===o||o.forEach(f)),r&&f(r),l&&1===(null==s?void 0:s.length)&&(s=void 0);var u=l&&v(rt,l),_=s&&e.chainDiagnosticMessages(s,e.Diagnostics.The_file_is_in_the_program_because_Colon),d=t&&e.explainIfFileIsRedirect(t),p=e.chainDiagnosticMessages.apply(void 0,i([d?_?i([_],d,!0):d:_,n],a||e.emptyArray,!1));return u&&h(u)?e.createFileDiagnosticFromMessageChain(u.file,u.pos,u.end-u.pos,p,c):e.createCompilerDiagnosticFromMessageChain(p,c);function f(t){(s||(s=[])).push(e.fileIncludeReasonToDiagnostics(je,t)),!l&&y(t)?l=t:l!==t&&(c=e.append(c,function(t){if(y(t)){var r,n=v(rt,t);switch(t.kind){case e.FileIncludeKind.Import:r=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:r=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:r=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:r=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(t)}return h(n)?e.createFileDiagnostic(n.file,n.pos,n.end-n.pos,r):void 0}if(L.configFile){var i,a,o,s;switch(t.kind){case e.FileIncludeKind.RootFile:if(!L.configFile.configFileSpecs)return;var c=e.getNormalizedAbsolutePath(O[t.index],ae),l=e.getMatchedFileSpec(je,c);if(l){i=e.getTsConfigPropArrayElementValue(L.configFile,"files",l),a=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var u=e.getMatchedIncludeSpec(je,c);if(!u)return;i=e.getTsConfigPropArrayElementValue(L.configFile,"include",u),a=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var _=e.Debug.checkDefined(null==pe?void 0:pe[t.index]),d=m(R,pe,(function(e,t,r){return e===_?{sourceFile:(null==t?void 0:t.sourceFile)||L.configFile,index:r}:void 0}));if(!d)return;var p=d.sourceFile,f=d.index,g=e.firstDefined(e.getTsConfigPropArray(p,"references"),(function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0}));return g&&g.elements.length>f?e.createDiagnosticForNodeInSourceFile(p,g.elements[f],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!L.types)return;i=Yt("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=Yt("lib",L.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var b=e.forEachEntry(e.targetOptionDeclaration.type,(function(e,t){return e===L.target?t:void 0}));i=b?(o=b,(s=qt("target"))&&e.firstDefined(s,(function(t){return e.isStringLiteral(t.initializer)&&t.initializer.text===o?t.initializer:void 0}))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(L.configFile,i,a)}}(t))),t===r&&(r=void 0)}}function Kt(e,t,r,n){(P||(P=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function zt(e,t,r){ie.add(Ut(e,void 0,t,r))}function Gt(t,r,n,i,a,o){for(var s=!0,c=0,l=Ht();c<l.length;c++){var u=l[c];if(e.isObjectLiteralExpression(u.initializer))for(var _=0,d=e.getPropertyAssignment(u.initializer,t);_<d.length;_++){var p=d[_].initializer;e.isArrayLiteralExpression(p)&&p.elements.length>r&&(ie.add(e.createDiagnosticForNodeInSourceFile(L.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&ie.add(e.createCompilerDiagnostic(n,i,a,o))}function Wt(t,r,n,i){for(var a=!0,o=0,s=Ht();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&tr(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&ie.add(e.createCompilerDiagnostic(n,i))}function qt(t){var r=er();return r&&e.getPropertyAssignment(r,t)}function Ht(){return qt("paths")||e.emptyArray}function Yt(t,r){var n=er();return n&&e.getPropertyArrayElementValue(n,t,r)}function Xt(e,t,r,n){Zt(!0,t,r,e,t,r,n)}function Qt(e,t,r){Zt(!1,e,void 0,t,r)}function $t(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||L.configFile,"references"),(function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0}));o&&o.elements.length>r?ie.add(e.createDiagnosticForNodeInSourceFile(t||L.configFile,o.elements[r],n,i,a)):ie.add(e.createCompilerDiagnostic(n,i,a))}function Zt(t,r,n,i,a,o,s){var c=er();(!c||!tr(c,t,r,n,i,a,o,s))&&ie.add(e.createCompilerDiagnostic(i,a,o,s))}function er(){if(void 0===H){H=!1;var t=e.getTsConfigObjectLiteralExpression(L.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r<n.length;r++){var i=n[r];if(e.isObjectLiteralExpression(i.initializer)){H=i.initializer;break}}}return H||void 0}function tr(t,r,n,i,a,o,s,c){for(var l=e.getPropertyAssignment(t,n,i),u=0,_=l;u<_.length;u++){var d=_[u];ie.add(e.createDiagnosticForNodeInSourceFile(L.configFile,r?d.name:d.initializer,a,o,s,c))}return!!l.length}function rr(e,t){ce.set(Ge(e),!0),ie.add(t)}function nr(t,r){return 0===e.comparePaths(t,r,ae,!Z.useCaseSensitiveFileNames())}function ir(){return Z.getSymlinkCache?Z.getSymlinkCache():(k||(k=e.createSymlinkCache(ae,jt)),f&&K&&!k.hasProcessedResolutions()&&k.setSymlinksFromResolutions(f,K),k)}},e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},e.handleNoEmitOptions=b,e.filterSemanticDiagnostics=x,e.parseConfigHostFromCompilerHostLike=D,e.createPrependNodes=S,e.resolveProjectReferencePath=E,e.getResolutionDiagnostic=T,e.getModuleNameStringLiteralAt=k}(u||(u={})),function(e){function t(e,t,r,n,i,a){var o=[],s=e.emit(t,(function(e,t,r){o.push({name:e,writeByteOrderMark:r,text:t})}),n,r,i,a),c=s.emitSkipped,l=s.diagnostics,u=s.exportedModulesFromDeclarationEmit;return{outputFiles:o,emitSkipped:c,diagnostics:l,exportedModulesFromDeclarationEmit:u}}e.getFileEmitOutput=t,function(r){var n=0;function i(){return function t(r,i,o){var s=0,c={id:n++,version:function(){return s},clone:function(){return t(new e.Map(r),new e.Map(i),o&&new e.Set(o))},forEach:function(e){return r.forEach(e)},getKeys:function(e){return i.get(e)},getValues:function(e){return r.get(e)},hasKey:function(e){return r.has(e)},keys:function(){return r.keys()},deletedKeys:function(){return o},deleteKey:function(t){(o||(o=new e.Set)).add(t);var n=r.get(t);return!!n&&(n.forEach((function(e){return a(i,e,t)})),r.delete(t),s++,!0)},set:function(t,n){var l=!!(null==o?void 0:o.delete(t)),u=r.get(t);return r.set(t,n),null==u||u.forEach((function(e){n.has(e)||(l=!0,a(i,e,t))})),n.forEach((function(r){(null==u?void 0:u.has(r))||(l=!0,function(t,r,n){var i=t.get(r);i||(i=new e.Set,t.set(r,i)),i.add(n)}(i,r,t))})),l&&s++,c}};return c}(new e.Map,new e.Map,void 0)}function a(e,t,r,n){void 0===n&&(n=!0);var i=e.get(t);return!!(null==i?void 0:i.delete(r))&&(n&&!i.size&&e.delete(t),!0)}function o(t){return e.mapDefined(t.declarations,(function(t){var r;return null===(r=e.getSourceFileOfNode(t))||void 0===r?void 0:r.resolvedPath}))}function s(e,t){var r=e.getSymbolAtLocation(t);return r&&o(r)}function c(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function l(t,r,n){var i;if(r.imports&&r.imports.length>0)for(var a=t.getTypeChecker(),o=0,l=r.imports;o<l.length;o++){var u=s(a,l[o]);null==u||u.forEach(S)}var _=e.getDirectoryPath(r.resolvedPath);if(r.referencedFiles&&r.referencedFiles.length>0)for(var d=0,p=r.referencedFiles;d<p.length;d++){var f=p[d];S(c(t,f.fileName,_,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((function(e){if(e){var r=e.resolvedFileName;S(c(t,r,_,n))}})),r.moduleAugmentations.length){a=t.getTypeChecker();for(var g=0,m=r.moduleAugmentations;g<m.length;g++){var y=m[g];if(e.isStringLiteral(y)){var h=a.getSymbolAtLocation(y);h&&D(h)}}}for(var v=0,b=t.getTypeChecker().getAmbientModules();v<b.length;v++){var x=b[v];x.declarations&&x.declarations.length>1&&D(x)}return i;function D(t){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n],o=e.getSourceFileOfNode(a);o&&o!==r&&S(o.resolvedPath)}}function S(t){(i||(i=new e.Set)).add(t)}}function u(e,t){return t&&!t.referencedMap==!e}function _(e,t){t.forEach((function(t,r){return d(e,t,r)}))}function d(e,t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.add(r)}function p(r,n,i,a,s,c,l,u){if(void 0===u&&(u=r.useFileVersionAsSignature),e.Debug.assert(!!i),e.Debug.assert(!l||!!r.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),r.hasCalledUpdateShapeSignature.has(i.resolvedPath)||a.has(i.resolvedPath))return!1;var _=r.fileInfos.get(i.resolvedPath);if(!_)return e.Debug.fail();var d,p=_.signature;if(!i.isDeclarationFile&&!u){var f=t(n,i,!0,s,void 0,!0),g=e.firstOrUndefined(f.outputFiles);g&&(e.Debug.assert(e.fileExtensionIs(g.name,".d.ts"),"File extension for signature expected to be dts",(function(){return"Found: "+e.getAnyExtensionFromPath(g.name)+" for "+g.name+":: All output files: "+JSON.stringify(f.outputFiles.map((function(e){return e.name})))})),d=(c||e.generateDjb2Hash)(g.text),l&&d!==p&&function(t,r,n){var i;r?(r.forEach((function(t){var r;(null==(r=o(t))?void 0:r.length)&&(i||(i=new e.Set),r.forEach((function(e){return i.add(e)})))})),i?n.set(t.resolvedPath,i):n.deleteKey(t.resolvedPath)):n.deleteKey(t.resolvedPath)}(i,f.exportedModulesFromDeclarationEmit,l))}if(void 0===d&&(d=i.version,l&&d!==p)){var m=r.referencedMap?r.referencedMap.getValues(i.resolvedPath):void 0;m?l.set(i.resolvedPath,m):l.deleteKey(i.resolvedPath)}return a.set(i.resolvedPath,d),d!==p}function f(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map((function(e){return e.fileName}))}return t.allFileNames}function g(t,r){var n=t.referencedMap.getKeys(r);return n?e.arrayFrom(n.keys()):[]}function m(t){return function(t){return e.some(t.moduleAugmentations,(function(t){return e.isGlobalScopeAugmentation(t.parent)}))}(t)||!e.isExternalOrCommonJsModule(t)&&!e.isJsonSourceFile(t)&&!function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(!e.isModuleWithStringLiteralName(i))return!1}return!0}(t)}function y(t,r,n){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;n&&c(n);for(var a=0,o=r.getSourceFiles();a<o.length;a++){var s=o[a];s!==n&&c(s)}return t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,t.allFilesExcludingDefaultLibraryFile;function c(e){r.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}function h(t,r,n){var i=r.getCompilerOptions();return i&&e.outFile(i)?[n]:y(t,r,n)}function v(t,r,n,i,a,o,s){if(m(n))return y(t,r,n);var c=r.getCompilerOptions();if(c&&(c.isolatedModules||e.outFile(c)))return[n];var l=new e.Map;l.set(n.resolvedPath,n);for(var u=g(t,n.resolvedPath);u.length>0;){var _=u.pop();if(!l.has(_)){var d=r.getSourceFileByPath(_);l.set(_,d),d&&p(t,r,d,i,a,o,s)&&u.push.apply(u,g(t,d.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(function(e){return e})))}r.createManyToManyPathMap=i,r.canReuseOldState=u,r.create=function(t,r,n,a){var o=new e.Map,s=t.getCompilerOptions().module!==e.ModuleKind.None?i():void 0,c=s?i():void 0,_=new e.Set,d=u(s,n);t.getTypeChecker();for(var p=0,f=t.getSourceFiles();p<f.length;p++){var g=f[p],y=e.Debug.checkDefined(g.version,"Program intended to be used with Builder should have source files with versions set"),h=d?n.fileInfos.get(g.resolvedPath):void 0;if(s){var v=l(t,g,r);if(v&&s.set(g.resolvedPath,v),d){var b=n.exportedModulesMap.getValues(g.resolvedPath);b&&c.set(g.resolvedPath,b)}}o.set(g.resolvedPath,{version:y,signature:h&&h.signature,affectsGlobalScope:m(g)||void 0})}return{fileInfos:o,referencedMap:s,exportedModulesMap:c,hasCalledUpdateShapeSignature:_,useFileVersionAsSignature:!a&&!d}},r.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},r.clone=function(t){var r,n;return{fileInfos:new e.Map(t.fileInfos),referencedMap:null===(r=t.referencedMap)||void 0===r?void 0:r.clone(),exportedModulesMap:null===(n=t.exportedModulesMap)||void 0===n?void 0:n.clone(),hasCalledUpdateShapeSignature:new e.Set(t.hasCalledUpdateShapeSignature),useFileVersionAsSignature:t.useFileVersionAsSignature}},r.getFilesAffectedBy=function(t,r,n,i,a,o,s){var c=o||new e.Map,l=r.getSourceFileByPath(n);if(!l)return e.emptyArray;if(!p(t,r,l,c,i,a,s))return[l];var u=(t.referencedMap?v:h)(t,r,l,c,i,a,s);return o||_(t,c),u},r.updateSignaturesFromCache=_,r.updateSignatureOfFile=d,r.updateShapeSignature=p,r.updateExportedFilesMapFromCache=function(t,r){var n;if(r){e.Debug.assert(!!t.exportedModulesMap);var i=r.id,a=r.version();if(t.previousCache){if(t.previousCache.id===i&&t.previousCache.version===a)return;t.previousCache.id=i,t.previousCache.version=a}else t.previousCache={id:i,version:a};null===(n=r.deletedKeys())||void 0===n||n.forEach((function(e){return t.exportedModulesMap.deleteKey(e)})),r.forEach((function(e,r){return t.exportedModulesMap.set(r,e)}))}},r.getAllDependencies=function(t,r,n){var i=r.getCompilerOptions();if(e.outFile(i))return f(t,r);if(!t.referencedMap||m(n))return f(t,r);for(var a=new e.Set,o=[n.resolvedPath];o.length;){var s=o.pop();if(!a.has(s)){a.add(s);var c=t.referencedMap.getValues(s);if(c)for(var l=c.keys(),u=l.next();!u.done;u=l.next())o.push(u.value)}}return e.arrayFrom(e.mapDefinedIterator(a.keys(),(function(e){var t,n;return null!==(n=null===(t=r.getSourceFileByPath(e))||void 0===t?void 0:t.fileName)&&void 0!==n?n:e})))},r.getReferencedByPaths=g,r.getAllFilesExcludingDefaultLibraryFile=y}(e.BuilderState||(e.BuilderState={}))}(u||(u={})),function(e){var t,r;function n(e,t,r){var n=e.file;return a(a({},e),{file:n?t.getSourceFileByPath(r(n)):void 0})}function i(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.resolvedPath))}function o(t,r,n){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,o=t.affectedFilesIndex;o<i.length;){var c=i[o];if(!a.has(c.resolvedPath))return t.affectedFilesIndex=o,s(t,c,r,n),c;o++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(t,t.currentAffectedFilesSignatures),t.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(t,t.currentAffectedFilesExportedModulesMap),t.affectedFiles=void 0}var l=t.changedFilesSet.keys().next();if(l.done)return;var u=e.Debug.checkDefined(t.program),_=u.getCompilerOptions();if(e.outFile(_))return e.Debug.assert(!t.semanticDiagnosticsPerFile),u;t.currentAffectedFilesSignatures||(t.currentAffectedFilesSignatures=new e.Map),t.exportedModulesMap&&(t.currentAffectedFilesExportedModulesMap||(t.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),t.affectedFiles=e.BuilderState.getFilesAffectedBy(t,u,l.value,r,n,t.currentAffectedFilesSignatures,t.currentAffectedFilesExportedModulesMap),t.currentChangedFilePath=l.value,t.affectedFilesIndex=0,t.seenAffectedFiles||(t.seenAffectedFiles=new e.Set)}}function s(t,r,n,i){var a;if(c(t,r.resolvedPath),t.allFilesExcludingDefaultLibraryFile!==t.affectedFiles)e.Debug.assert(t.hasCalledUpdateShapeSignature.has(r.resolvedPath)||(null===(a=t.currentAffectedFilesSignatures)||void 0===a?void 0:a.has(r.resolvedPath)),"Signature not updated for affected file: "+r.fileName),t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(t,r,n){var i,a;if(t.exportedModulesMap&&t.changedFilesSet.has(r.resolvedPath)&&l(t,r.resolvedPath)){if(t.compilerOptions.isolatedModules){var o=new e.Map;o.set(r.resolvedPath,!0);for(var s=e.BuilderState.getReferencedByPaths(t,r.resolvedPath);s.length>0;){var c=s.pop();if(!o.has(c)&&(o.set(c,!0),n(t,c),l(t,c))){var _=e.Debug.checkDefined(t.program).getSourceFileByPath(c);s.push.apply(s,e.BuilderState.getReferencedByPaths(t,_.resolvedPath))}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var d=new e.Set;null===(i=t.currentAffectedFilesExportedModulesMap.getKeys(r.resolvedPath))||void 0===i||i.forEach((function(e){return u(t,e,d,n)})),null===(a=t.exportedModulesMap.getKeys(r.resolvedPath))||void 0===a||a.forEach((function(e){var r;return!t.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))&&u(t,e,d,n)}))}}(t,r,(function(t,r){return function(t,r,n,i){if(c(t,r),!t.changedFilesSet.has(r)){var a=e.Debug.checkDefined(t.program),o=a.getSourceFileByPath(r);o&&(e.BuilderState.updateShapeSignature(t,a,o,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(t.compilerOptions)&&b(t,r,0))}}(t,r,n,i)}));else{if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var o=e.Debug.checkDefined(t.program),s=o.getCompilerOptions();e.forEach(o.getSourceFiles(),(function(r){return o.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,s,o)&&c(t,r.resolvedPath)}))}e.BuilderState.updateShapeSignature(t,e.Debug.checkDefined(t.program),r,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap)}}function c(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function l(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function u(e,t,r,n){var i;null===(i=e.referencedMap.getKeys(t))||void 0===i||i.forEach((function(t){return _(e,t,r,n)}))}function _(t,r,n,i){var a,o,s;e.tryAddToSet(n,r)&&(i(t,r),e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),null===(a=t.currentAffectedFilesExportedModulesMap.getKeys(r))||void 0===a||a.forEach((function(e){return _(t,e,n,i)})),null===(o=t.exportedModulesMap.getKeys(r))||void 0===o||o.forEach((function(e){var r;return!t.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))&&_(t,e,n,i)})),null===(s=t.referencedMap.getKeys(r))||void 0===s||s.forEach((function(e){return!n.has(e)&&i(t,e)})))}function d(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?(t.affectedFilesPendingEmitIndex++,t.buildInfoEmitPending=!0):t.affectedFilesIndex++)}function p(e,t,r){return d(e,r),{result:t,affected:r}}function f(e,t,r,n,i,a){return d(e,r,n,i,a),{result:t,affected:r}}function g(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnostics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function m(t,r){for(var n,i=e.getOptionsNameMap().optionsNameMap,a=0,o=e.getOwnKeys(t).sort(e.compareStringsCaseSensitive);a<o.length;a++){var s=o[a],c=s.toLowerCase(),l=i.get(c);((null==l?void 0:l.affectsEmit)||(null==l?void 0:l.affectsSemanticDiagnostics)||"strict"===c||"skiplibcheck"===c||"skipdefaultlibcheck"===c)&&((n||(n={}))[s]=y(l,t[s],r))}return n}function y(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function h(t,r){return e.Debug.assert(!!t.length),t.map((function(e){var t=v(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((function(e){return v(e,r)})):[]:void 0,t}))}function v(e,t){var r=e.file;return a(a({},e),{file:r?t(r.resolvedPath):void 0})}function b(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function x(t){return e.isString(t)?{version:t,signature:t,affectsGlobalScope:void 0}:e.isString(t.signature)?t:{version:t.version,signature:!1===t.signature?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope}}function D(t,r){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:n,getProgramOrUndefined:function(){return t().program},releaseProgram:function(){return t().program=void 0},getCompilerOptions:function(){return t().compilerOptions},getSourceFile:function(e){return n().getSourceFile(e)},getSourceFiles:function(){return n().getSourceFiles()},getOptionsDiagnostics:function(e){return n().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return n().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return r},getSyntacticDiagnostics:function(e,t){return n().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return n().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return n().getSemanticDiagnostics(e,t)},emit:function(e,t,r,i,a){return n().emit(e,t,r,i,a)},emitBuildInfo:function(e,t){return n().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return n().getCurrentDirectory()},close:e.noop};function n(){return e.Debug.checkDefined(t().program)}}(r=e.BuilderFileEmit||(e.BuilderFileEmit={}))[r.DtsOnly=0]="DtsOnly",r[r.Full=1]="Full",function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a,o){var s,c,l;return void 0===t?(e.Debug.assert(void 0===r),s=n,l=i,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(t)?(l=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,l=n,a=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=function(r,a){var s=a.newProgram,c=a.host,l=a.oldProgram,u=a.configFileParsingDiagnostics,_=l&&l.getState();if(_&&s===_.program&&u===s.getConfigFileParsingDiagnostics())return s=void 0,_=void 0,l;var y,v=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),x=e.maybeBind(c,c.createHash),S=function(t,r,i,a){var o=e.BuilderState.create(t,r,i,a);o.program=t;var s=t.getCompilerOptions();o.compilerOptions=s,e.outFile(s)||(o.semanticDiagnosticsPerFile=new e.Map),o.changedFilesSet=new e.Set;var c=e.BuilderState.canReuseOldState(o.referencedMap,i),l=c?i.compilerOptions:void 0,u=c&&i.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(s,l);if(c){if(!i.currentChangedFilePath){var _=i.currentAffectedFilesSignatures;e.Debug.assert(!(i.affectedFiles||_&&_.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var d=i.changedFilesSet;u&&e.Debug.assert(!d||!e.forEachKey(d,(function(e){return i.semanticDiagnosticsPerFile.has(e)})),"Semantic diagnostics shouldnt be available for changed files"),null==d||d.forEach((function(e){return o.changedFilesSet.add(e)})),!e.outFile(s)&&i.affectedFilesPendingEmit&&(o.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),o.affectedFilesPendingEmitKind=i.affectedFilesPendingEmitKind&&new e.Map(i.affectedFilesPendingEmitKind),o.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,o.seenAffectedFiles=new e.Set)}var p=o.referencedMap,f=c?i.referencedMap:void 0,g=u&&!s.skipLibCheck==!l.skipLibCheck,m=g&&!s.skipDefaultLibCheck==!l.skipDefaultLibCheck;return o.fileInfos.forEach((function(a,s){var l,_,d,y;if(!c||!(l=i.fileInfos.get(s))||l.version!==a.version||(d=_=p&&p.getValues(s))!==(y=f&&f.getValues(s))&&(void 0===d||void 0===y||d.size!==y.size||e.forEachKey(d,(function(e){return!y.has(e)})))||_&&e.forEachKey(_,(function(e){return!o.fileInfos.has(e)&&i.fileInfos.has(e)})))o.changedFilesSet.add(s);else if(u){var h=t.getSourceFileByPath(s);if(h.isDeclarationFile&&!g)return;if(h.hasNoDefaultLib&&!m)return;var v=i.semanticDiagnosticsPerFile.get(s);v&&(o.semanticDiagnosticsPerFile.set(s,i.hasReusableDiagnostic?function(t,r,i){if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map((function(e){var t=n(e,r,o);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var i=e.relatedInformation;return t.relatedInformation=i?i.length?i.map((function(e){return n(e,r,o)})):[]:void 0,t}));function o(t){return e.toPath(t,a,i)}}(v,t,r):v),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new e.Set),o.semanticDiagnosticsFromOldState.add(s))}})),c&&e.forEachEntry(i.fileInfos,(function(e,t){return e.affectsGlobalScope&&!o.fileInfos.has(t)}))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(o,t,void 0).forEach((function(e){return o.changedFilesSet.add(e.resolvedPath)})):l&&!e.outFile(s)&&e.compilerOptionsAffectEmit(s,l)&&(t.getSourceFiles().forEach((function(e){return b(o,e.resolvedPath,1)})),e.Debug.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new e.Set),o.buildInfoEmitPending=!!o.changedFilesSet.size,o}(s,v,_,c.disableUseFileVersionAsSignature);s.getProgramBuildInfo=function(){return function(t,r){if(!e.outFile(t.compilerOptions)){var n,i,a,o,s,c,l=e.Debug.checkDefined(t.program).getCurrentDirectory(),u=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),l)),_=[],d=new e.Map,p=e.arrayFrom(t.fileInfos.entries(),(function(r){var n=r[0],i=r[1],a=T(n);e.Debug.assert(_[a-1]===E(n));var o=t.currentAffectedFilesSignatures&&t.currentAffectedFilesSignatures.get(n),s=null!=o?o:i.signature;return i.version===s?i.affectsGlobalScope?{version:i.version,signature:void 0,affectsGlobalScope:!0}:i.version:void 0!==s?void 0===o?i:{version:i.version,signature:o,affectsGlobalScope:i.affectsGlobalScope}:{version:i.version,signature:!1,affectsGlobalScope:i.affectsGlobalScope}}));if(t.referencedMap&&(a=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((function(e){return[T(e),C(t.referencedMap.getValues(e))]}))),t.exportedModulesMap&&(o=e.mapDefined(e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(function(e){var r;if(t.currentAffectedFilesExportedModulesMap){if(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))return;var n=t.currentAffectedFilesExportedModulesMap.getValues(e);if(n)return[T(e),C(n)]}return[T(e),C(t.exportedModulesMap.getValues(e))]}))),t.semanticDiagnosticsPerFile)for(var f=0,g=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);f<g.length;f++){var y=g[f],v=t.semanticDiagnosticsPerFile.get(y);(s||(s=[])).push(v.length?[T(y),t.hasReusableDiagnostic?v:h(v,E)]:T(y))}if(t.affectedFilesPendingEmit)for(var b=new e.Set,x=0,D=t.affectedFilesPendingEmit.slice(t.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);x<D.length;x++){var S=D[x];e.tryAddToSet(b,S)&&(c||(c=[])).push([T(S),t.affectedFilesPendingEmitKind.get(S)])}return{fileNames:_,fileInfos:p,options:m(t.compilerOptions,(function(t){return E(e.getNormalizedAbsolutePath(t,l))})),fileIdsList:n,referencedMap:a,exportedModulesMap:o,semanticDiagnosticsPerFile:s,affectedFilesPendingEmit:c}}function E(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(u,t,r))}function T(e){var t=d.get(e);return void 0===t&&(_.push(E(e)),d.set(e,t=_.length)),t}function C(t){var r=e.arrayFrom(t.keys(),T).sort(e.compareValues),a=r.join(),o=null==i?void 0:i.get(a);return void 0===o&&((n||(n=[])).push(r),(i||(i=new e.Map)).set(a,o=n.length)),o}}(S,v)},s=void 0,l=void 0,_=void 0;var E=function(){return S},T=D(E,u);return T.getState=E,T.backupState=function(){e.Debug.assert(void 0===y),y=function(t){var r,n=e.BuilderState.clone(t);return n.semanticDiagnosticsPerFile=t.semanticDiagnosticsPerFile&&new e.Map(t.semanticDiagnosticsPerFile),n.changedFilesSet=new e.Set(t.changedFilesSet),n.affectedFiles=t.affectedFiles,n.affectedFilesIndex=t.affectedFilesIndex,n.currentChangedFilePath=t.currentChangedFilePath,n.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures&&new e.Map(t.currentAffectedFilesSignatures),n.currentAffectedFilesExportedModulesMap=null===(r=t.currentAffectedFilesExportedModulesMap)||void 0===r?void 0:r.clone(),n.seenAffectedFiles=t.seenAffectedFiles&&new e.Set(t.seenAffectedFiles),n.cleanedDiagnosticsOfLibFiles=t.cleanedDiagnosticsOfLibFiles,n.semanticDiagnosticsFromOldState=t.semanticDiagnosticsFromOldState&&new e.Set(t.semanticDiagnosticsFromOldState),n.program=t.program,n.compilerOptions=t.compilerOptions,n.affectedFilesPendingEmit=t.affectedFilesPendingEmit&&t.affectedFilesPendingEmit.slice(),n.affectedFilesPendingEmitKind=t.affectedFilesPendingEmitKind&&new e.Map(t.affectedFilesPendingEmitKind),n.affectedFilesPendingEmitIndex=t.affectedFilesPendingEmitIndex,n.seenEmittedFiles=t.seenEmittedFiles&&new e.Map(t.seenEmittedFiles),n.programEmitComplete=t.programEmitComplete,n}(S)},T.restoreState=function(){S=e.Debug.checkDefined(y),y=void 0},T.getAllDependencies=function(t){return e.BuilderState.getAllDependencies(S,e.Debug.checkDefined(S.program),t)},T.getSemanticDiagnostics=function(t,r){i(S,t);var n,a=e.Debug.checkDefined(S.program).getCompilerOptions();if(e.outFile(a))return e.Debug.assert(!S.semanticDiagnosticsPerFile),e.Debug.checkDefined(S.program).getSemanticDiagnostics(t,r);if(t)return g(S,t,r);for(;k(r););for(var o=0,s=e.Debug.checkDefined(S.program).getSourceFiles();o<s.length;o++){var c=s[o];n=e.addRange(n,g(S,c,r))}return n||e.emptyArray},T.emit=function(n,a,o,s,l){var u,_,d,p=!1;r===t.EmitAndSemanticDiagnosticsBuilderProgram||n||e.outFile(S.compilerOptions)||S.compilerOptions.noEmit||!S.compilerOptions.noEmitOnError||(p=!0,u=S.affectedFilesPendingEmit&&S.affectedFilesPendingEmit.slice(),_=S.affectedFilesPendingEmitKind&&new e.Map(S.affectedFilesPendingEmitKind),d=S.affectedFilesPendingEmitIndex),r===t.EmitAndSemanticDiagnosticsBuilderProgram&&i(S,n);var f=e.handleNoEmitOptions(T,n,a,o);if(f)return f;if(p&&(S.affectedFilesPendingEmit=u,S.affectedFilesPendingEmitKind=_,S.affectedFilesPendingEmitIndex=d),!n&&r===t.EmitAndSemanticDiagnosticsBuilderProgram){for(var g=[],m=!1,y=void 0,h=[],v=void 0;v=C(a,o,s,l);)m=m||v.result.emitSkipped,y=e.addRange(y,v.result.diagnostics),h=e.addRange(h,v.result.emittedFiles),g=e.addRange(g,v.result.sourceMaps);return{emitSkipped:m,diagnostics:y||e.emptyArray,emittedFiles:h,sourceMaps:g}}return e.Debug.checkDefined(S.program).emit(n,a||e.maybeBind(c,c.writeFile),o,s,l)},T.releaseProgram=function(){!function(t){e.BuilderState.releaseCache(t),t.program=void 0}(S),y=void 0},r===t.SemanticDiagnosticsBuilderProgram?T.getSemanticDiagnosticsOfNextAffectedFile=k:r===t.EmitAndSemanticDiagnosticsBuilderProgram?(T.getSemanticDiagnosticsOfNextAffectedFile=k,T.emitNextAffectedFile=C,T.emitBuildInfo=function(t,r){if(S.buildInfoEmitPending){var n=e.Debug.checkDefined(S.program).emitBuildInfo(t||e.maybeBind(c,c.writeFile),r);return S.buildInfoEmitPending=!1,n}return e.emitSkippedWithNoDiagnostics}):e.notImplemented(),T;function C(t,r,n,i){var a=o(S,r,x),s=1,l=!1;if(!a)if(e.outFile(S.compilerOptions)){var u=e.Debug.checkDefined(S.program);if(S.programEmitComplete)return;a=u}else{var _=function(t){var r=t.affectedFilesPendingEmit;if(r){for(var n=t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map),i=t.affectedFilesPendingEmitIndex;i<r.length;i++){var a=e.Debug.checkDefined(t.program).getSourceFileByPath(r[i]);if(a){var o=n.get(a.resolvedPath),s=e.Debug.checkDefined(e.Debug.checkDefined(t.affectedFilesPendingEmitKind).get(a.resolvedPath));if(void 0===o||o<s)return t.affectedFilesPendingEmitIndex=i,{affectedFile:a,emitKind:s}}}t.affectedFilesPendingEmit=void 0,t.affectedFilesPendingEmitKind=void 0,t.affectedFilesPendingEmitIndex=void 0}}(S);if(!_){if(!S.buildInfoEmitPending)return;var d=e.Debug.checkDefined(S.program);return f(S,d.emitBuildInfo(t||e.maybeBind(c,c.writeFile),r),d,1,!1,!0)}a=_.affectedFile,s=_.emitKind,l=!0}return f(S,e.Debug.checkDefined(S.program).emit(a===S.program?void 0:a,t||e.maybeBind(c,c.writeFile),r,n||0===s,i),a,s,l)}function k(e,n){for(;;){var i=o(S,e,x);if(!i)return;if(i===S.program)return p(S,S.program.getSemanticDiagnostics(void 0,e),i);if((r===t.EmitAndSemanticDiagnosticsBuilderProgram||S.compilerOptions.noEmit||S.compilerOptions.noEmitOnError)&&b(S,i.resolvedPath,1),!n||!n(i))return p(S,g(S,i,e),i);d(S,i)}}},e.toBuilderStateFileInfo=x,e.createBuildProgramUsingProgramBuildInfo=function(t,r,n){var i,a=e.getDirectoryPath(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory())),o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),s=t.fileNames.map((function(t){return e.toPath(t,a,o)})),c=null===(i=t.fileIdsList)||void 0===i?void 0:i.map((function(t){return new e.Set(t.map(_))})),l=new e.Map;t.fileInfos.forEach((function(e,t){return l.set(_(t+1),x(e))}));var u={fileInfos:l,compilerOptions:t.options?e.convertToOptionsWithAbsolutePaths(t.options,(function(t){return e.getNormalizedAbsolutePath(t,a)})):{},referencedMap:d(t.referencedMap),exportedModulesMap:d(t.exportedModulesMap),semanticDiagnosticsPerFile:t.semanticDiagnosticsPerFile&&e.arrayToMap(t.semanticDiagnosticsPerFile,(function(t){return _(e.isNumber(t)?t:t[0])}),(function(t){return e.isNumber(t)?e.emptyArray:t[1]})),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(t.affectedFilesPendingEmit,(function(e){return _(e[0])})),affectedFilesPendingEmitKind:t.affectedFilesPendingEmit&&e.arrayToMap(t.affectedFilesPendingEmit,(function(e){return _(e[0])}),(function(e){return e[1]})),affectedFilesPendingEmitIndex:t.affectedFilesPendingEmit&&0};return{getState:function(){return u},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return u.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function _(e){return s[e-1]}function d(t){if(t){var r=e.BuilderState.createManyToManyPathMap();return t.forEach((function(e){var t=e[0],n=e[1];return r.set(_(t),c[n-1])})),r}}},e.createRedirectedBuilderProgram=D}(u||(u={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))},e.createAbstractBuilder=function(t,r,n,i,a,o){var s=e.getBuilderCreationParameters(t,r,n,i,a,o),c=s.newProgram,l=s.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram((function(){return{program:c,compilerOptions:c.getCompilerOptions()}}),l)}}(u||(u={})),function(e){function t(t){return e.endsWith(t,"/node_modules/.staging")?e.removeSuffix(t,"/.staging"):e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))?void 0:t}function r(t){var r=e.getRootLength(t);if(t.length===r)return!1;var n=t.indexOf(e.directorySeparator,r);if(-1===n)return!1;var i=t.substring(r,n+1),a=r>1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}e.removeIgnoredPath=t,e.canWatchDirectory=r,e.createResolutionCache=function(n,i,a){var o,s,c,l,u,_,d=e.createMultiMap(),p=[],f=e.createMultiMap(),g=!1,m=e.memoize((function(){return n.getCurrentDirectory()})),y=n.getCachedDirectoryStructureHost(),h=new e.Map,v=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),x=e.createModuleResolutionCache(m(),n.getCanonicalFileName,void 0,v,b),D=new e.Map,S=e.createCacheWithRedirects(),E=e.createTypeReferenceDirectiveResolutionCache(m(),n.getCanonicalFileName,void 0,x.getPackageJsonInfoCache(),S),T=[".ts",".tsx",".js",".jsx",".json"],C=new e.Map,k=new e.Map,A=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,m())),N=A&&n.toPath(A),F=void 0!==N?N.split(e.directorySeparator).length:0,w=new e.Map;return{getModuleResolutionCache:function(){return x},startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:M,finishCachingPerDirectoryResolution:function(){c=void 0,M(),k.forEach((function(e,t){0===e.refCount&&(k.delete(t),e.watcher.close())})),g=!1},resolveModuleNames:function(t,r,n,i){return j({names:t,containingFile:r,redirectedReference:i,cache:h,perDirectoryCacheWithRedirects:v,loader:R,getResolutionWithResolvedFileName:P,shouldRetryResolution:function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},reusedNames:n,logChanges:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var r=h.get(n.toPath(t));return r&&r.get(e)},resolveTypeReferenceDirectives:function(e,t,r){return j({names:e,containingFile:t,redirectedReference:r,cache:D,perDirectoryCacheWithRedirects:S,loader:B,getResolutionWithResolvedFileName:I,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(t){if(e.fileExtensionIs(t,".json")){var r=n.getCurrentProgram();if(r){var i=r.getResolvedProjectReferenceByPath(t);i&&i.commandLine.fileNames.forEach((function(e){return $(n.toPath(e))}))}}},removeResolutionsOfFile:$,hasChangedAutomaticTypeDirectiveNames:function(){return g},invalidateResolutionOfFile:function(t){$(t);var r=g;Z(f.get(t),e.returnTrue)&&g&&!r&&n.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:te,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(c===t||void 0===c),c=t},createHasInvalidatedResolution:function(t){if(te(),t)return s=void 0,e.returnTrue;var r=s;return s=void 0,function(e){return!!r&&r.has(e)||L(e)}},isFileWithInvalidatedNonRelativeUnresolvedImports:L,updateTypeRootsWatch:function(){var t=n.getCompilationSettings();if(t.types)ne();else{var r=e.getEffectiveTypeRoots(t,{directoryExists:ae,getCurrentDirectory:m});r?e.mutateMap(w,e.arrayToMap(r,(function(e){return n.toPath(e)})),{createNewValue:ie,onDeleteValue:e.closeFileWatcher}):ne()}},closeTypeRootsWatch:ne,clear:function(){e.clearMap(k,e.closeFileWatcherOf),C.clear(),d.clear(),ne(),h.clear(),D.clear(),f.clear(),p.length=0,l=void 0,u=void 0,_=void 0,M(),g=!1}};function P(e){return e.resolvedModule}function I(e){return e.resolvedTypeReferenceDirective}function O(t,r){return!(void 0===t||r.length<=t.length)&&e.startsWith(r,t)&&r[t.length]===e.directorySeparator}function L(e){if(!c)return!1;var t=c.get(e);return!!t&&!!t.length}function M(){x.clear(),E.clear(),d.forEach(W),d.clear()}function R(t,r,i,a,o){var s,c=e.resolveModuleName(t,r,i,a,x,o);if(!n.getGlobalCache)return c;var l=n.getGlobalCache();if(!(void 0===l||e.isExternalModuleNameRelative(t)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var u=e.loadModuleFromGlobalCache(e.Debug.checkDefined(n.globalCacheResolutionModuleName)(t),n.projectName,i,a,l,x),_=u.resolvedModule,d=u.failedLookupLocations;if(_)return c.resolvedModule=_,(s=c.failedLookupLocations).push.apply(s,d),c}return c}function B(t,r,n,i,a){return e.resolveTypeReferenceDirective(t,r,n,i,a,E)}function j(t){var r,i,a,s=t.names,c=t.containingFile,l=t.redirectedReference,u=t.cache,_=t.perDirectoryCacheWithRedirects,d=t.loader,p=t.getResolutionWithResolvedFileName,f=t.shouldRetryResolution,g=t.reusedNames,m=t.logChanges,y=n.toPath(c),h=u.get(y)||u.set(y,new e.Map).get(y),v=e.getDirectoryPath(y),b=_.getOrCreateMapOfCacheRedirects(l),x=b.get(v);x||(x=new e.Map,b.set(v,x));for(var D=[],S=n.getCompilationSettings(),E=m&&L(y),T=n.getCurrentProgram(),C=T&&T.getResolvedProjectReferenceToRedirect(c),k=C?!l||l.sourceFile.path!==C.sourceFile.path:!!l,A=new e.Map,N=0,F=s;N<F.length;N++){var w=F[N],P=h.get(w);if(!A.has(w)&&k||!P||P.isInvalidated||E&&!e.isExternalModuleNameRelative(w)&&f(P)){var I=P,O=x.get(w);if(O){P=O;var M=(null===(r=n.getCompilerHost)||void 0===r?void 0:r.call(n))||n;if(e.isTraceEnabled(S,M)){var B=p(P);e.trace(M,d===R?(null==B?void 0:B.resolvedFileName)?B.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:(null==B?void 0:B.resolvedFileName)?B.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,w,c,e.getDirectoryPath(c),null==B?void 0:B.resolvedFileName,(null==B?void 0:B.packagetId)&&e.packageIdToString(B.packagetId))}}else P=d(w,c,S,(null===(i=n.getCompilerHost)||void 0===i?void 0:i.call(n))||n,l),x.set(w,P);h.set(w,P),z(w,P,y,p),I&&H(I,y,p),m&&o&&!j(I,P)&&(o.push(y),m=!1)}else M=(null===(a=n.getCompilerHost)||void 0===a?void 0:a.call(n))||n,e.isTraceEnabled(S,M)&&!A.has(w)&&(B=p(P),e.trace(M,d===R?(null==B?void 0:B.resolvedFileName)?B.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==B?void 0:B.resolvedFileName)?B.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,w,c,null==B?void 0:B.resolvedFileName,(null==B?void 0:B.packagetId)&&e.packageIdToString(B.packagetId)));e.Debug.assert(void 0!==P&&!P.isInvalidated),A.set(w,!0),D.push(p(P))}return h.forEach((function(t,r){A.has(r)||e.contains(g,r)||(H(t,y,p),h.delete(r))})),D;function j(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=p(e),n=p(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function J(t){return e.endsWith(t,"/node_modules/@types")}function V(t,r){if(O(N,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,m());var n=r.split(e.directorySeparator),i=t.split(e.directorySeparator);return e.Debug.assert(i.length===n.length,"FailedLookup: "+t+" failedLookupLocationPath: "+r),n.length>F+1?{dir:i.slice(0,F+1).join(e.directorySeparator),dirPath:n.slice(0,F+1).join(e.directorySeparator)}:{dir:A,dirPath:N,nonRecursive:!1}}return U(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,m())),e.getDirectoryPath(r))}function U(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==N)for(;!O(n,N);){var s=e.getDirectoryPath(n);if(s===n)break;o=!1,i=n,a=t,n=s,t=e.getDirectoryPath(t)}return r(n)?{dir:a||t,dirPath:i||n,nonRecursive:o}:void 0}function K(t){return e.fileExtensionIsOneOf(t,T)}function z(t,r,i,a){if(r.refCount)r.refCount++,e.Debug.assertDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?G(r):d.add(t,r);var o=a(r);o&&o.resolvedFileName&&f.add(n.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(i)}function G(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations;if(r.length){p.push(t);for(var i=!1,a=0,o=r;a<o.length;a++){var s=o[a],c=n.toPath(s),l=V(s,c);if(l){var u=l.dir,_=l.dirPath,d=l.nonRecursive;if(!K(c)){var f=C.get(c)||0;C.set(c,f+1)}_===N?(e.Debug.assert(!d),i=!0):q(u,_,d)}}i&&q(A,N,!0)}}function W(e,t){var r=n.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)||e.forEach(G)}function q(t,r,n){var i=k.get(r);i?(e.Debug.assert(!!n==!!i.nonRecursive),i.refCount++):k.set(r,{watcher:X(t,r,n),refCount:1,nonRecursive:n})}function H(t,r,i){if(e.unorderedRemoveItem(e.Debug.assertDefined(t.files),r),t.refCount--,!t.refCount){var a=i(t);if(a&&a.resolvedFileName&&f.remove(n.toPath(a.resolvedFileName),t),e.unorderedRemoveItem(p,t)){for(var o=!1,s=0,c=t.failedLookupLocations;s<c.length;s++){var l=c[s],u=n.toPath(l),_=V(l,u);if(_){var d=_.dirPath,g=C.get(u);g&&(1===g?C.delete(u):(e.Debug.assert(g>1),C.set(u,g-1))),d===N?o=!0:Y(d)}}o&&Y(N)}}}function Y(e){k.get(e).refCount--}function X(e,t,r){return n.watchDirectoryOfFailedLookupLocation(e,(function(e){var r=n.toPath(e);y&&y.addOrDeleteFileOrDirectory(e,r),ee(r,t===r)}),r?0:1)}function Q(e,t,r){var n=e.get(t);n&&(n.forEach((function(e){return H(e,t,r)})),e.delete(t))}function $(e){Q(h,e,P),Q(D,e,I)}function Z(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i<a.length;i++){var o=a[i];if(!o.isInvalidated&&r(o)){o.isInvalidated=n=!0;for(var c=0,l=e.Debug.assertDefined(o.files);c<l.length;c++){var u=l[c];(s||(s=new e.Set)).add(u),g=g||e.endsWith(u,e.inferredTypesContainingFile)}}}return n}function ee(r,i){if(i)(_||(_=[])).push(r);else{var a=t(r);if(!a)return!1;if(r=a,n.fileIsOpen(r))return!1;var o=e.getDirectoryPath(r);if(J(r)||e.isNodeModulesDirectory(r)||J(o)||e.isNodeModulesDirectory(o))(l||(l=[])).push(r),(u||(u=new e.Set)).add(r);else{if(!K(r)&&!C.has(r))return!1;if(e.isEmittedFileOfProgram(n.getCurrentProgram(),r))return!1;(l||(l=[])).push(r);var s=e.parseNodeModuleFromPath(r);s&&(u||(u=new e.Set)).add(s)}}n.scheduleInvalidateResolutionsOfFailedLookupLocations()}function te(){if(!l&&!u&&!_)return!1;var e=Z(p,re);return l=void 0,u=void 0,_=void 0,e}function re(t){return t.failedLookupLocations.some((function(t){var r=n.toPath(t);return e.contains(l,r)||e.firstDefinedIterator((null==u?void 0:u.keys())||e.emptyIterator,(function(t){return!!e.startsWith(r,t)||void 0}))||(null==_?void 0:_.some((function(e){return O(e,r)})))}))}function ne(){e.clearMap(w,e.closeFileWatcher)}function ie(e,t){return n.watchTypeRootsDirectory(t,(function(r){var i=n.toPath(r);y&&y.addOrDeleteFileOrDirectory(r,i),g=!0,n.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(O(N,t))return N;var r=U(e,t);return r&&k.has(r.dirPath)?r.dirPath:void 0}(t,e);a&&ee(i,a===i)}),1)}function ae(t){var i=e.getDirectoryPath(e.getDirectoryPath(t)),a=n.toPath(i);return a===N||r(a)}}}(u||(u={})),function(e){!function(t){var r,n;function a(t,r,n){var i=t.importModuleSpecifierPreference,a=t.importModuleSpecifierEnding;return{relativePreference:"relative"===i?0:"non-relative"===i?1:"project-relative"===i?3:2,ending:function(){switch(a){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return function(t){var r=t.imports;return e.firstDefined(r,(function(t){var r=t.text;return e.pathIsRelative(r)?e.hasJSFileExtension(r):void 0}))||!1}(n)?2:e.getEmitModuleResolutionKind(r)!==e.ModuleResolutionKind.NodeJs?1:0}}()}}function o(t,r,n,i,a,o){var s=l(r,i),c=g(r,n,i,o);return e.firstDefined(c,(function(e){return h(e,s,i,t)}))||u(n,s,t,i,a)}function s(t,r,n,i){var a,o=e.getSourceFileOfModule(t);if(!o)return e.emptyArray;var s=null===(a=n.getModuleSpecifierCache)||void 0===a?void 0:a.call(n),c=null==s?void 0:s.get(r.path,o.path,i);return[null==c?void 0:c.moduleSpecifiers,o,null==c?void 0:c.modulePaths,s]}function c(t,r,n,i,o,c){var _=!1,d=function(t,r){var n,i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(t){return e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))}));if(i)return i.name.text;var a=e.mapDefined(t.declarations,(function(t){var n,i,a,o;if(e.isModuleDeclaration(t)){var s=function(e){for(;4&e.flags;)e=e.parent;return e}(t);if((null===(n=null==s?void 0:s.parent)||void 0===n?void 0:n.parent)&&e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)&&e.isSourceFile(s.parent.parent.parent)){var c=null===(o=null===(a=null===(i=s.parent.parent.symbol.exports)||void 0===i?void 0:i.get("export="))||void 0===a?void 0:a.valueDeclaration)||void 0===o?void 0:o.expression;if(c){var l=r.getSymbolAtLocation(c);if(l&&(2097152&(null==l?void 0:l.flags)?r.getAliasedSymbol(l):l)===t.symbol)return s.parent.parent}}}})),o=a[0];return o?o.name.text:void 0}(t,r);if(d)return{moduleSpecifiers:[d],computedWithoutCache:_};var p=s(t,i,o,c),f=p[0],g=p[1],y=p[2],v=p[3];if(f)return{moduleSpecifiers:f,computedWithoutCache:_};if(!g)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:_};_=!0,y||(y=m(i.path,g.originalFileName,o));var b=function(t,r,n,i,o){var s=l(n.path,i),c=a(o,r,n),_=e.forEach(t,(function(t){return e.forEach(i.getFileIncludeReasons().get(e.toPath(t.path,i.getCurrentDirectory(),s.getCanonicalFileName)),(function(t){if(t.kind===e.FileIncludeKind.Import&&t.file===n.path){var r=e.getModuleNameStringLiteralAt(n,t.index).text;return 1===c.relativePreference&&e.pathIsRelative(r)?void 0:r}}))}));if(_)return[_];for(var d,p,f,g=e.some(t,(function(e){return e.isInNodeModules})),m=0,y=t;m<y.length;m++){var v=y[m],b=h(v,s,i,r);if(d=e.append(d,b),b&&v.isRedirect)return d;if(!b&&!v.isRedirect){var x=u(v.path,s,r,i,c);e.pathIsBareSpecifier(x)?p=e.append(p,x):g&&!v.isInNodeModules||(f=e.append(f,x))}}return(null==p?void 0:p.length)?p:(null==d?void 0:d.length)?d:e.Debug.checkDefined(f)}(y,n,i,o,c);return null==v||v.set(i.path,g.path,c,y,b),{moduleSpecifiers:b,computedWithoutCache:_}}function l(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),importingSourceFileName:t,sourceDirectory:e.getDirectoryPath(t)}}function u(t,r,n,i,a){var o=a.ending,s=a.relativePreference,c=n.baseUrl,l=n.paths,u=n.rootDirs,d=r.sourceDirectory,f=r.getCanonicalFileName,g=u&&function(t,r,n,i,a,o){var s=v(r,t,i);if(void 0!==s){var c=v(n,t,i),l=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,i)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?b(l,a,o):e.removeFileExtension(l)}}(u,t,d,f,o,n)||b(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(d,t,f)),o,n);if(!c&&!l||0===s)return g;var m=D(t,e.getNormalizedAbsolutePath(e.getPathsBasePath(n,i)||c,i.getCurrentDirectory()),f);if(!m)return g;var h=b(m,o,n),x=l&&y(e.removeFileExtension(m),h,l),E=void 0===x&&void 0!==c?h:x;if(!E)return g;if(1===s)return E;if(3===s){var T=n.configFilePath?e.toPath(e.getDirectoryPath(n.configFilePath),i.getCurrentDirectory(),r.getCanonicalFileName):r.getCanonicalFileName(i.getCurrentDirectory()),C=e.toPath(t,T,f),k=e.startsWith(d,T),A=e.startsWith(C,T);if(k&&!A||!k&&A)return E;var N=p(i,e.getDirectoryPath(C));return p(i,d)!==N?E:g}return 2!==s&&e.Debug.assertNever(s),S(E)||_(g)<_(E)?g:E}function _(t){for(var r=0,n=e.startsWith(t,"./")?2:0;n<t.length;n++)47===t.charCodeAt(n)&&r++;return r}function d(t,r){return e.compareBooleans(r.isRedirect,t.isRedirect)||e.compareNumberOfDirectorySeparators(t.path,r.path)}function p(t,r){return t.getNearestAncestorDirectoryWithPackageJson?t.getNearestAncestorDirectoryWithPackageJson(r):!!e.forEachAncestorDirectory(r,(function(r){return!!t.fileExists(e.combinePaths(r,"package.json"))||void 0}))}function f(t,r,n,a,o){var s,c=e.hostGetCanonicalFileName(n),l=n.getCurrentDirectory(),u=n.isSourceOfProjectReferenceRedirect(r)?n.getProjectReferenceRedirect(r):void 0,_=e.toPath(r,l,c),d=n.redirectTargetsMap.get(_)||e.emptyArray,p=i(i(i([],u?[u]:e.emptyArray,!0),[r],!1),d,!0).map((function(t){return e.getNormalizedAbsolutePath(t,l)})),f=!e.every(p,e.containsIgnoredPath);if(!a){var g=e.forEach(p,(function(t){return!(f&&e.containsIgnoredPath(t))&&o(t,u===t)}));if(g)return g}var m=null===(s=n.getSymlinkCache)||void 0===s?void 0:s.call(n).getSymlinkedDirectoriesByRealpath(),y=e.getNormalizedAbsolutePath(r,l);return m&&e.forEachAncestorDirectory(e.getDirectoryPath(y),(function(r){var n=m.get(e.ensureTrailingDirectorySeparator(e.toPath(r,l,c)));if(n)return!e.startsWithDirectory(t,r,c)&&e.forEach(p,(function(t){if(e.startsWithDirectory(t,r,c))for(var i=e.getRelativePathFromDirectory(r,t,c),a=0,s=n;a<s.length;a++){var l=s[a],_=e.resolvePath(l,i),d=o(_,t===u);if(f=!0,d)return d}}))}))||(a?e.forEach(p,(function(t){return f&&e.containsIgnoredPath(t)?void 0:o(t,t===u)})):void 0)}function g(t,r,n,i,a){var o;void 0===a&&(a=e.toPath(r,n.getCurrentDirectory(),e.hostGetCanonicalFileName(n)));var s=null===(o=n.getModuleSpecifierCache)||void 0===o?void 0:o.call(n);if(s){var c=s.get(t,a,i);if(null==c?void 0:c.modulePaths)return c.modulePaths}var l=m(t,r,n);return s&&s.setModulePaths(t,a,i,l),l}function m(t,r,n){var i=e.hostGetCanonicalFileName(n),a=new e.Map,o=!1;f(t,r,n,!0,(function(t,r){var n=e.pathContainsNodeModules(t);a.set(t,{path:i(t),isRedirect:r,isInNodeModules:n}),o=o||n}));for(var s,c=[],l=function(t){var r,n=e.ensureTrailingDirectorySeparator(t);a.forEach((function(t,i){var o=t.path,s=t.isRedirect,c=t.isInNodeModules;e.startsWith(o,n)&&((r||(r=[])).push({path:i,isRedirect:s,isInNodeModules:c}),a.delete(i))})),r&&(r.length>1&&r.sort(d),c.push.apply(c,r));var i=e.getDirectoryPath(t);if(i===t)return s=t,"break";s=t=i},u=e.getDirectoryPath(t);0!==a.size;){var _=l(u);if(u=s,"break"===_)break}if(a.size){var p=e.arrayFrom(a.values());p.length>1&&p.sort(d),c.push.apply(c,p)}return c}function y(t,r,n){for(var i in n)for(var a=0,o=n[i];a<o.length;a++){var s=o[a],c=e.removeFileExtension(e.normalizePath(s)),l=c.indexOf("*");if(-1!==l){var u=c.substr(0,l),_=c.substr(l+1);if(r.length>=u.length+_.length&&e.startsWith(r,u)&&e.endsWith(r,_)||!_&&r===e.removeTrailingDirectorySeparator(u)){var d=r.substr(u.length,r.length-_.length-u.length);return i.replace("*",d)}}else if(c===r||c===t)return i}}function h(t,r,n,i,a){var o=t.path,s=t.isRedirect,c=r.getCanonicalFileName,l=r.sourceDirectory;if(n.fileExists&&n.readFile){var u=function(t){var r,n=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=t.indexOf("/",o+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(o);if(u){var _=o,d=!1;if(!a)for(var p=u.packageRootIndex,f=void 0;;){var g=E(p),m=g.moduleFileToTry,h=g.packageRootPath;if(h){_=h,d=!0;break}if(f||(f=m),-1===(p=o.indexOf(e.directorySeparator,p+1))){_=T(f);break}}if(!s||d){var v=n.getGlobalTypingsCacheLocation&&n.getGlobalTypingsCacheLocation(),x=c(_.substring(0,u.topLevelNodeModulesIndex));if(e.startsWith(l,x)||v&&e.startsWith(c(v),x)){var D=_.substring(u.topLevelPackageNameIndex+1),S=e.getPackageNameFromTypesPackageName(D);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&S===D?void 0:S}}}}function E(t){var r=o.substring(0,t),a=e.combinePaths(r,"package.json"),s=o;if(n.fileExists(a)){var l=JSON.parse(n.readFile(a)),u=l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(u){var _=o.slice(r.length+1),d=y(e.removeFileExtension(_),b(_,0,i),u.paths);void 0!==d&&(s=e.combinePaths(r,d))}var p=l.typings||l.types||l.main;if(e.isString(p)){var f=e.toPath(p,r,c);if(e.removeFileExtension(f)===e.removeFileExtension(c(s)))return{packageRootPath:r,moduleFileToTry:s}}}return{moduleFileToTry:s}}function T(t){var r=e.removeFileExtension(t);return"/index"!==c(r.substring(u.fileNameIndex))||function(t,r){if(t.fileExists)for(var n=0,i=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]);n<i.length;n++){var a=r+i[n];if(t.fileExists(a))return a}}(n,r.substring(0,u.fileNameIndex))?r:r.substring(0,u.fileNameIndex)}}function v(t,r,n){return e.firstDefined(r,(function(e){var r=D(t,e,n);return S(r)?void 0:r}))}function b(t,r,n){if(e.fileExtensionIs(t,".json"))return t;var i=e.removeFileExtension(t);switch(r){case 0:return e.removeSuffix(i,"/index");case 1:return i;case 2:return i+function(t,r){var n;return null!==(n=x(t,r))&&void 0!==n?n:e.Debug.fail("Extension "+e.extensionFromPath(t)+" is unsupported:: FileName:: "+t)}(t,n);default:return e.Debug.assertNever(r)}}function x(t,r){var n=e.tryGetExtensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===r.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;default:return}}function D(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function S(t){return e.startsWith(t,"..")}!function(e){e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative"}(r||(r={})),function(e){e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"}(n||(n={})),t.updateModuleSpecifier=function(t,r,n,i,a){var s=o(t,r,n,i,function(t,r){return{relativePreference:e.isExternalModuleNameRelative(r)?0:1,ending:e.hasJSFileExtension(r)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs||e.endsWith(r,"index")?1:0}}(t,a),{});if(s!==a)return s},t.getModuleSpecifier=function(e,t,r,n,i){return o(e,r,n,i,a({},e,t),{})},t.getNodeModulesPackageName=function(t,r,n,i,a){var o=l(r,i),s=g(r,n,i,a);return e.firstDefined(s,(function(e){return h(e,o,i,t,!0)}))},t.tryGetModuleSpecifiersFromCache=function(e,t,r,n){return s(e,t,r,n)[0]},t.getModuleSpecifiers=function(e,t,r,n,i,a){return c(e,t,r,n,i,a).moduleSpecifiers},t.getModuleSpecifiersWithCacheInfo=c,t.countPathComponents=_,t.forEachFileNameOfModule=f,t.tryGetJSExtensionForFile=x}(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(u||(u={})),function(e){var t=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function r(r,n){var i=r===e.sys&&t?t:{getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.newLine},getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n)return function(t){return r.write(e.formatDiagnostic(t,i))};var a=new Array(1);return function(t){a[0]=t,r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function n(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!e.contains(e.screenStartingMessageCodes,r.code)||(t.clearScreen(),0))}function a(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function o(t,r){return r?function(r,i,o){n(t,r,o);var s="["+e.formatColorAndReset(a(t),e.ForegroundColorEscapeSequences.Grey)+"] ";s+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(i+i),t.write(s)}:function(r,i,o){var s="";n(t,r,o)||(s+=i),s+=a(t)+" - ",s+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+function(t,r){return e.contains(e.screenStartingMessageCodes,t.code)?r+r:r}(r,i),t.write(s)}}function s(t){return e.countWhere(t,(function(t){return t.category===e.DiagnosticCategory.Error}))}function c(t){return 1===t?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function l(t,r){if(0===t)return"";var n=e.createCompilerDiagnostic(1===t?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,t);return""+r+e.flattenDiagnosticMessageText(n.messageText,r)+r+r}function u(e){return!!e.getState}function _(t,r){var n=t.getCompilerOptions();n.explainFiles?d(u(t)?t.getProgram():t,r):(n.listFiles||n.listFilesOnly)&&e.forEach(t.getSourceFiles(),(function(e){r(e.fileName)}))}function d(t,r){for(var n,i,a=t.getFileIncludeReasons(),o=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),s=function(r){return e.convertToRelativePath(r,t.getCurrentDirectory(),o)},c=0,l=t.getSourceFiles();c<l.length;c++){var u=l[c];r(""+y(u,s)),null===(n=a.get(u.path))||void 0===n||n.forEach((function(e){return r("  "+m(t,e,s).messageText)})),null===(i=p(u,s))||void 0===i||i.forEach((function(e){return r("  "+e.messageText)}))}}function p(t,r){var n;return t.path!==t.resolvedPath&&(n||(n=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,y(t.originalFileName,r))),t.redirectInfo&&(n||(n=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,y(t.redirectInfo.redirectTarget,r))),n}function f(t,r){var n,i=t.getCompilerOptions().configFile;if(null===(n=null==i?void 0:i.configFileSpecs)||void 0===n?void 0:n.validatedFilesSpec){var a=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),o=a(r),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(i.fileName,t.getCurrentDirectory()));return e.find(i.configFileSpecs.validatedFilesSpec,(function(t){return a(e.getNormalizedAbsolutePath(t,s))===o}))}}function g(t,r){var n,i,a=t.getCompilerOptions().configFile;if(null===(n=null==a?void 0:a.configFileSpecs)||void 0===n?void 0:n.validatedIncludeSpecs){var o=e.fileExtensionIs(r,".json"),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(a.fileName,t.getCurrentDirectory())),c=t.useCaseSensitiveFileNames();return e.find(null===(i=null==a?void 0:a.configFileSpecs)||void 0===i?void 0:i.validatedIncludeSpecs,(function(t){if(o&&!e.endsWith(t,".json"))return!1;var n=e.getPatternFromSpec(t,s,"files");return!!n&&e.getRegexFromPattern("("+n+")$",c).test(r)}))}}function m(t,r,n){var i,a,o=t.getCompilerOptions();if(e.isReferencedFile(r)){var s=e.getReferencedFileLocation((function(e){return t.getSourceFileByPath(e)}),r),c=e.isReferenceFileLocation(s)?s.file.text.substring(s.pos,s.end):'"'+s.text+'"',l=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(s)||r.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),r.kind){case e.FileIncludeKind.Import:l=e.isReferenceFileLocation(s)?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:s.text===e.externalHelpersModuleNameText?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!s.packageId),l=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:l=s.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!s.packageId),l=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(r)}return e.chainDiagnosticMessages(void 0,l,c,y(s.file,n),s.packageId&&e.packageIdToString(s.packageId))}switch(r.kind){case e.FileIncludeKind.RootFile:if(!(null===(i=o.configFile)||void 0===i?void 0:i.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var u=e.getNormalizedAbsolutePath(t.getRootFileNames()[r.index],t.getCurrentDirectory());if(f(t,u))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var _=g(t,u);return _?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,_,y(o.configFile,n)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var d=r.kind===e.FileIncludeKind.OutputFromProjectReference,p=e.Debug.checkDefined(null===(a=t.getResolvedProjectReferences())||void 0===a?void 0:a[r.index]);return e.chainDiagnosticMessages(void 0,e.outFile(o)?d?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:d?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,y(p.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,o.types?r.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:r.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,r.typeReference,r.packageId&&e.packageIdToString(r.packageId));case e.FileIncludeKind.LibFile:if(void 0!==r.index)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,o.lib[r.index]);var m=e.forEachEntry(e.targetOptionDeclaration.type,(function(e,t){return e===o.target?t:void 0}));return e.chainDiagnosticMessages(void 0,m?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,m);default:e.Debug.assertNever(r)}}function y(t,r){var n=e.isString(t)?t:t.fileName;return r?r(n):n}function h(t,r,n,i,a,o,c,l){var u=!!t.getCompilerOptions().listFilesOnly,d=t.getConfigFileParsingDiagnostics().slice(),p=d.length;e.addRange(d,t.getSyntacticDiagnostics(void 0,o)),d.length===p&&(e.addRange(d,t.getOptionsDiagnostics(o)),u||(e.addRange(d,t.getGlobalDiagnostics(o)),d.length===p&&e.addRange(d,t.getSemanticDiagnostics(void 0,o))));var f=u?{emitSkipped:!0,diagnostics:e.emptyArray}:t.emit(void 0,a,o,c,l),g=f.emittedFiles,m=f.diagnostics;e.addRange(d,m);var y=e.sortAndDeduplicateDiagnostics(d);if(y.forEach(r),n){var h=t.getCurrentDirectory();e.forEach(g,(function(t){var r=e.getNormalizedAbsolutePath(t,h);n("TSFILE: "+r)})),_(t,n)}return i&&i(s(y)),{emitResult:f,diagnostics:y}}function v(t,r,n,i,a,o,s,c){var l=h(t,r,n,i,a,o,s,c),u=l.emitResult,_=l.diagnostics;return u.emitSkipped&&_.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:_.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function b(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||o(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function x(t,r){var n=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),getDefaultLibLocation:n,getDefaultLibFileName:function(t){return e.combinePaths(n(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature}}function D(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=x(t,r);return e.copyProperties(o,b(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return t.newLine}));h(r,n,a,(function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(c(t),t),s,i,t)}))},o}function S(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=o,e.parseConfigFileWithSystem=function(t,r,n,i,a,o){var s=a;s.onUnRecoverableConfigFileDiagnostic=function(e){return S(a,o,e)};var c=e.getParsedCommandLineOfConfigFile(t,r,s,n,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=l,e.isBuilderProgram=u,e.listFiles=_,e.explainFiles=d,e.explainIfFileIsRedirect=p,e.getMatchedFileSpec=f,e.getMatchedIncludeSpec=g,e.fileIncludeReasonToDiagnostics=m,e.emitFilesAndReportErrors=h,e.emitFilesAndReportErrorsAndGetExitStatus=v,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=b,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file"},e.createWatchFactory=function(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,r,n){void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((function(){return t.getNewLine()}));return{getSourceFile:function(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=t.readFile(n,r().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,(function(e,r,n){return t.writeFile(e,r,n)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature}},e.setGetSourceFileAsHashVersioned=function(t,r){var n=t.getSourceFile,a=e.maybeBind(r,r.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=n.call.apply(n,i([t],e,!1));return o&&(o.version=a(o.text)),o}},e.createProgramHost=x,e.createWatchCompilerHostOfConfigFile=function(e){var t=e.configFileName,n=e.optionsToExtend,i=e.watchOptionsToExtend,a=e.extraFileExtensions,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=c||r(o),_=D(o,s,u,l);return _.onUnRecoverableConfigFileDiagnostic=function(e){return S(o,u,e)},_.configFileName=t,_.optionsToExtend=n,_.watchOptionsToExtend=i,_.extraFileExtensions=a,_},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e){var t=e.rootFiles,n=e.options,i=e.watchOptions,a=e.projectReferences,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=D(o,s,c||r(o),l);return u.rootFiles=t,u.options=n,u.watchOptions=i,u.projectReferences=a,u},e.performIncrementalCompilation=function(t){var n=t.system||e.sys,i=t.host||(t.host=e.createIncrementalCompilerHost(t.options,n)),a=e.createIncrementalProgram(t),o=v(a,t.reportDiagnostic||r(n),(function(e){return i.trace&&i.trace(e)}),t.reportErrorSummary||t.options.pretty?function(e){return n.write(l(e,n.newLine))}:void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}}(u||(u={})),function(e){function t(t,r){if(!e.outFile(t)){var n=e.getTsBuildInfoEmitOutputFilePath(t);if(n){var i=r.readFile(n);if(i){var a=e.getBuildInfo(i);if(a.version===e.version&&a.program)return e.createBuildProgramUsingProgramBuildInfo(a.program,n,r)}}}}function r(t,r){void 0===r&&(r=e.sys);var n=e.createCompilerHostWorker(t,void 0,r);return n.createHash=e.maybeBind(r,r.createHash),n.disableUseFileVersionAsSignature=r.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(n,r),e.changeCompilerHostLikeToUseCache(n,(function(t){return e.toPath(t,n.getCurrentDirectory(),n.getCanonicalFileName)})),n}e.readBuilderProgram=t,e.createIncrementalCompilerHost=r,e.createIncrementalProgram=function(n){var i=n.rootNames,a=n.options,o=n.configFileParsingDiagnostics,s=n.projectReferences,c=n.host,l=n.createProgram;return c=c||r(a),(l=l||e.createEmitAndSemanticDiagnosticsBuilderProgram)(i,a,c,t(a,c),o,s)},e.createWatchCompilerHost=function(t,r,n,i,a,o,s,c){return e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:t,options:r,watchOptions:c,projectReferences:s,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}):e.createWatchCompilerHostOfConfigFile({configFileName:t,optionsToExtend:r,watchOptionsToExtend:s,extraFileExtensions:c,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o})},e.createWatchProgram=function(r){var n,o,s,c,l,u,_,d,p,f,g,m,y=r.extendedConfigCache,h=!1,v=new e.Map,b=!1,x=r.useCaseSensitiveFileNames(),D=r.getCurrentDirectory(),S=r.configFileName,E=r.optionsToExtend,T=void 0===E?{}:E,C=r.watchOptionsToExtend,k=r.extraFileExtensions,A=r.createProgram,N=r.rootFiles,F=r.options,w=r.watchOptions,P=r.projectReferences,I=!1,O=!1,L=void 0===S?void 0:e.createCachedDirectoryStructureHost(r,D,x),M=L||r,R=e.parseConfigHostFromCompilerHostLike(r,M),B=Z();S&&r.configFileParsingResult&&(fe(r.configFileParsingResult),B=Z()),oe(e.Diagnostics.Starting_compilation_in_watch_mode),S&&!r.configFileParsingResult&&(B=e.getNewLineCharacter(T,(function(){return r.getNewLine()})),e.Debug.assert(!N),pe(),B=Z());var j,J=e.createWatchFactory(r,F),V=J.watchFile,U=J.watchDirectory,K=J.writeLog,z=e.createGetCanonicalFileName(x);K("Current directory: "+D+" CaseSensitiveFileNames: "+x),S&&(j=V(S,(function(){e.Debug.assert(!!S),o=e.ConfigFileProgramReloadLevel.Full,ue()}),e.PollingInterval.High,w,e.WatchType.ConfigFile));var G=e.createCompilerHostFromProgramHost(r,(function(){return F}),M);e.setGetSourceFileAsHashVersioned(G,r);var W=G.getSourceFile;G.getSourceFile=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ne.apply(void 0,i([e,ee(e)],t,!1))},G.getSourceFileByPath=ne,G.getNewLine=function(){return B},G.fileExists=re,G.onReleaseOldSourceFile=function(e,t,r){var n=v.get(e.resolvedPath);void 0!==n&&(te(n)?(f||(f=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),v.delete(e.resolvedPath),r||q.removeResolutionsOfFile(e.path)))},G.onReleaseParsedCommandLine=function(t){var r,n=ee(t),i=null==d?void 0:d.get(n);i&&(d.delete(n),i.watchedDirectories&&e.clearMap(i.watchedDirectories,e.closeFileWatcherOf),null===(r=i.watcher)||void 0===r||r.close(),e.clearSharedExtendedConfigFileWatcher(n,p))},G.toPath=ee,G.getCompilationSettings=function(){return F},G.useSourceOfProjectReferenceRedirect=e.maybeBind(r,r.useSourceOfProjectReferenceRedirect),G.watchDirectoryOfFailedLookupLocation=function(t,r,n){return U(t,r,n,w,e.WatchType.FailedLookupLocations)},G.watchTypeRootsDirectory=function(t,r,n){return U(t,r,n,w,e.WatchType.TypeRoots)},G.getCachedDirectoryStructureHost=function(){return L},G.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!r.setTimeout||!r.clearTimeout)return q.invalidateResolutionsOfFailedLookupLocations();var e=ce();K("Scheduling invalidateFailedLookup"+(e?", Cancelled earlier one":"")),_=r.setTimeout(le,250)},G.onInvalidatedResolution=ue,G.onChangedAutomaticTypeDirectiveNames=ue,G.fileIsOpen=e.returnFalse,G.getCurrentProgram=Q,G.writeLog=K,G.getParsedCommandLine=ge;var q=e.createResolutionCache(G,S?e.getDirectoryPath(e.getNormalizedAbsolutePath(S,D)):D,!1);G.resolveModuleNames=r.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveModuleNames.apply(r,e)}:function(e,t,r,n){return q.resolveModuleNames(e,t,r,n)},G.resolveTypeReferenceDirectives=r.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveTypeReferenceDirectives.apply(r,e)}:function(e,t,r){return q.resolveTypeReferenceDirectives(e,t,r)};var H=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;return n=t(F,G),$(),Se(),S&&Te(ee(S),F,w,e.WatchType.ExtendedConfigFile),S?{getCurrentProgram:X,getProgram:de,close:Y}:{getCurrentProgram:X,getProgram:de,updateRootFileNames:function(t){e.Debug.assert(!S,"Cannot update root file names with config file watch mode"),N=t,ue()},close:Y};function Y(){ce(),q.clear(),e.clearMap(v,(function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),j&&(j.close(),j=void 0),null==y||y.clear(),y=void 0,p&&(e.clearMap(p,e.closeFileWatcherOf),p=void 0),l&&(e.clearMap(l,e.closeFileWatcherOf),l=void 0),s&&(e.clearMap(s,e.closeFileWatcher),s=void 0),d&&(e.clearMap(d,(function(t){var r;null===(r=t.watcher)||void 0===r||r.close(),t.watcher=void 0,t.watchedDirectories&&e.clearMap(t.watchedDirectories,e.closeFileWatcherOf),t.watchedDirectories=void 0})),d=void 0),c&&(e.clearMap(c,e.closeFileWatcher),c=void 0)}function X(){return n}function Q(){return n&&n.getProgramOrUndefined()}function $(){K("Synchronizing program"),ce();var t=X();b&&(B=Z(),t&&(h||e.changesAffectModuleResolution(t.getCompilerOptions(),F))&&q.clear());var i=q.createHasInvalidatedResolution(H||h);return e.isProgramUptoDate(Q(),N,F,ae,re,i,se,ge,P)?O&&(n=A(void 0,void 0,G,n,m,P),O=!1):function(t){K("CreatingProgramWith::"),K("  roots: "+JSON.stringify(N)),K("  options: "+JSON.stringify(F)),P&&K("  projectReferences: "+JSON.stringify(P));var r=b||!Q();b=!1,O=!1,q.startCachingPerDirectoryResolution(),G.hasInvalidatedResolution=t,G.hasChangedAutomaticTypeDirectiveNames=se,n=A(N,F,G,n,m,P);var i=e.map(q.getModuleResolutionCache().getPackageJsonInfoCache().entries(),(function(e){var t=e[0],r=e[1];return[G.realpath?ee(G.realpath(t)):t,r]}));if(q.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(n.getProgram(),s||(s=new e.Map),ve),e.updatePackageJsonWatch(i,c||(c=new e.Map),be),r&&q.updateTypeRootsWatch(),f){for(var a=0,o=f;a<o.length;a++){var l=o[a];s.has(l)||v.delete(l)}f=void 0}}(i),h=!1,r.afterProgramCreate&&t!==n&&r.afterProgramCreate(n),n}function Z(){return e.getNewLineCharacter(F||T,(function(){return r.getNewLine()}))}function ee(t){return e.toPath(t,D,z)}function te(e){return"boolean"==typeof e}function re(e){var t=ee(e);return!te(v.get(t))&&M.fileExists(e)}function ne(t,r,n,i,a){var o=v.get(r);if(!te(o)){if(void 0===o||a||function(e){return"boolean"==typeof e.version}(o)){var s=W(t,n,i);if(o)s?(o.sourceFile=s,o.version=s.version,o.fileWatcher||(o.fileWatcher=me(r,t,ye,e.PollingInterval.Low,w,e.WatchType.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),v.set(r,!1));else if(s){var c=me(r,t,ye,e.PollingInterval.Low,w,e.WatchType.SourceFile);v.set(r,{sourceFile:s,version:s.version,fileWatcher:c})}else v.set(r,!1);return s}return o.sourceFile}}function ie(e){var t=v.get(e);void 0!==t&&(te(t)?v.set(e,{version:!1}):t.version=!1)}function ae(e){var t=v.get(e);return t&&t.version?t.version:void 0}function oe(t){r.onWatchStatusChange&&r.onWatchStatusChange(e.createCompilerDiagnostic(t),B,F||T)}function se(){return q.hasChangedAutomaticTypeDirectiveNames()}function ce(){return!!_&&(r.clearTimeout(_),_=void 0,!0)}function le(){_=void 0,q.invalidateResolutionsOfFailedLookupLocations()&&ue()}function ue(){r.setTimeout&&r.clearTimeout&&(u&&r.clearTimeout(u),K("Scheduling update"),u=r.setTimeout(_e,250))}function _e(){u=void 0,oe(e.Diagnostics.File_change_detected_Starting_incremental_compilation),de()}function de(){switch(o){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),K("Reloading new file names and options"),N=e.getFileNamesFromConfigSpecs(F.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(S),D),F,R,k),e.updateErrorForNoInputFiles(N,e.getNormalizedAbsolutePath(S,D),F.configFile.configFileSpecs,m,I)&&(O=!0),$();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),K("Reloading config file: "+S),o=e.ConfigFileProgramReloadLevel.None,L&&L.clearCache(),pe(),b=!0,$(),Se(),Te(ee(S),F,w,e.WatchType.ExtendedConfigFile);break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),$()}return e.perfLogger.logStopUpdateProgram("Done"),X()}function pe(){fe(e.getParsedCommandLineOfConfigFile(S,T,R,y||(y=new e.Map),C,k))}function fe(t){N=t.fileNames,F=t.options,w=t.watchOptions,P=t.projectReferences,g=t.wildcardDirectories,m=e.getConfigFileParsingDiagnostics(t).slice(),I=e.canJsonReportNoInputFiles(t.raw),O=!0}function ge(t){var n=ee(t),i=null==d?void 0:d.get(n);if(i){if(!i.reloadLevel)return i.parsedCommandLine;if(i.parsedCommandLine&&i.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!r.getParsedCommandLine){K("Reloading new file names and options");var o=e.getFileNamesFromConfigSpecs(i.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),D),F,R);return i.parsedCommandLine=a(a({},i.parsedCommandLine),{fileNames:o}),i.reloadLevel=void 0,i.parsedCommandLine}}K("Loading config file: "+t);var s=r.getParsedCommandLine?r.getParsedCommandLine(t):function(t){var r=R.onUnRecoverableConfigFileDiagnostic;R.onUnRecoverableConfigFileDiagnostic=e.noop;var n=e.getParsedCommandLineOfConfigFile(t,void 0,R,y||(y=new e.Map),C);return R.onUnRecoverableConfigFileDiagnostic=r,n}(t);return i?(i.parsedCommandLine=s,i.reloadLevel=void 0):(d||(d=new e.Map)).set(n,i={parsedCommandLine:s}),function(t,r,n){var i,a,o,s,c;n.watcher||(n.watcher=V(t,(function(n,i){he(t,r,i);var a=null==d?void 0:d.get(r);a&&(a.reloadLevel=e.ConfigFileProgramReloadLevel.Full),q.removeResolutionsFromProjectReferenceRedirects(r),ue()}),e.PollingInterval.High,(null===(i=n.parsedCommandLine)||void 0===i?void 0:i.watchOptions)||w,e.WatchType.ConfigFileOfReferencedProject)),(null===(a=n.parsedCommandLine)||void 0===a?void 0:a.wildcardDirectories)?e.updateWatchingWildcardDirectories(n.watchedDirectories||(n.watchedDirectories=new e.Map),new e.Map(e.getEntries(null===(o=n.parsedCommandLine)||void 0===o?void 0:o.wildcardDirectories)),(function(i,a){var o;return U(i,(function(n){var a=ee(n);L&&L.addOrDeleteFileOrDirectory(n,a),ie(a);var o=null==d?void 0:d.get(r);(null==o?void 0:o.parsedCommandLine)&&(e.isIgnoredFileFromWildCardWatching({watchedDirPath:ee(i),fileOrDirectory:n,fileOrDirectoryPath:a,configFileName:t,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:D,useCaseSensitiveFileNames:x,writeLog:K,toPath:ee})||o.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(o.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,ue()))}),a,(null===(o=n.parsedCommandLine)||void 0===o?void 0:o.watchOptions)||w,e.WatchType.WildcardDirectoryOfReferencedProject)})):n.watchedDirectories&&(e.clearMap(n.watchedDirectories,e.closeFileWatcherOf),n.watchedDirectories=void 0),Te(r,null===(s=n.parsedCommandLine)||void 0===s?void 0:s.options,(null===(c=n.parsedCommandLine)||void 0===c?void 0:c.watchOptions)||w,e.WatchType.ExtendedConfigOfReferencedProject)}(t,n,i),s}function me(e,t,r,n,i,a){return V(t,(function(t,n){return r(t,n,e)}),n,i,a)}function ye(t,r,n){he(t,n,r),r===e.FileWatcherEventKind.Deleted&&v.has(n)&&q.invalidateResolutionOfFile(n),ie(n),ue()}function he(e,t,r){L&&L.addOrDeleteFile(e,t,r)}function ve(t){return(null==d?void 0:d.has(t))?e.noopFileWatcher:me(t,t,De,e.PollingInterval.Medium,w,e.WatchType.MissingFile)}function be(t){return v.has(t)?e.noopFileWatcher:me(t,t,xe,e.PollingInterval.High,w,e.WatchType.PackageJson)}function xe(t,r,n){he(t,n,r),o=e.ConfigFileProgramReloadLevel.Full,h=!0,ue()}function De(t,r,n){he(t,n,r),r===e.FileWatcherEventKind.Created&&s.has(n)&&(s.get(n).close(),s.delete(n),ie(n),ue())}function Se(){g?e.updateWatchingWildcardDirectories(l||(l=new e.Map),new e.Map(e.getEntries(g)),Ee):l&&e.clearMap(l,e.closeFileWatcherOf)}function Ee(t,r){return U(t,(function(r){e.Debug.assert(!!S);var n=ee(r);L&&L.addOrDeleteFileOrDirectory(r,n),ie(n),e.isIgnoredFileFromWildCardWatching({watchedDirPath:ee(t),fileOrDirectory:r,fileOrDirectoryPath:n,configFileName:S,extraFileExtensions:k,options:F,program:X()||N,currentDirectory:D,useCaseSensitiveFileNames:x,writeLog:K,toPath:ee})||o!==e.ConfigFileProgramReloadLevel.Full&&(o=e.ConfigFileProgramReloadLevel.Partial,ue())}),r,w,e.WatchType.WildcardDirectory)}function Te(t,r,n,i){e.updateSharedExtendedConfigFileWatcher(t,r,p||(p=new e.Map),(function(t,r){return V(t,(function(n,i){var a;he(t,r,i),y&&e.cleanExtendedConfigCache(y,r,ee);var s=null===(a=p.get(r))||void 0===a?void 0:a.projects;(null==s?void 0:s.size)&&s.forEach((function(t){if(ee(S)===t)o=e.ConfigFileProgramReloadLevel.Full;else{var r=null==d?void 0:d.get(t);r&&(r.reloadLevel=e.ConfigFileProgramReloadLevel.Full),q.removeResolutionsFromProjectReferenceRedirects(t)}ue()}))}),e.PollingInterval.High,n,i)}),ee)}}}(u||(u={})),function(e){var t;(t=e.UpToDateStatusType||(e.UpToDateStatusType={}))[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",t[t.OutputMissing=4]="OutputMissing",t[t.OutOfDateWithSelf=5]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",t[t.UpstreamOutOfDate=7]="UpstreamOutOfDate",t[t.UpstreamBlocked=8]="UpstreamBlocked",t[t.ComputingUpstream=9]="ComputingUpstream",t[t.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",t[t.ContainerOnly=11]="ContainerOnly",e.resolveConfigFileProjectName=function(t){return e.fileExtensionIs(t,".json")?t:e.combinePaths(t,"tsconfig.json")}}(u||(u={})),function(e){var t,r,n,a=new Date(-864e13),o=new Date(864e13);function s(t,r){return function(t,r,n){var i,a=t.get(r);return a||(i=new e.Map,t.set(r,i)),a||i}(t,r)}function c(e,t){return t>e?t:e}function l(t){return e.fileExtensionIs(t,".d.ts")}function u(e){return!!e&&!!e.buildOrder}function _(e){return u(e)?e.buildOrder:e}function d(t,r){return function(n){var i=r?"["+e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(t)+" - ";i+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(t.newLine+t.newLine),t.write(i)}}function p(t,r,n,i){var a=e.createProgramHost(t,r);return a.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:e.returnUndefined,a.setModifiedTime=t.setModifiedTime?function(e,r){return t.setModifiedTime(e,r)}:e.noop,a.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop,a.reportDiagnostic=n||e.createDiagnosticReporter(t),a.reportSolutionBuilderStatus=i||d(t),a.now=e.maybeBind(t,t.now),a}function f(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function g(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=f(e,t);return r.set(t,i),i}function m(e){return!!e.options}function y(e,t){var r=e.configFileCache.get(t);return r&&m(r)?r:void 0}function h(t,r,n){var i,a=t.configFileCache,o=a.get(n);if(o)return m(o)?o:void 0;var s,c=t.parseConfigFileHost,l=t.baseCompilerOptions,u=t.baseWatchOptions,_=t.extendedConfigCache,d=t.host;return d.getParsedCommandLine?(s=d.getParsedCommandLine(r))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,r)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return i=e},s=e.getParsedCommandLineOfConfigFile(r,l,c,_,u),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function v(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function b(t,r){for(var n,i,a=new e.Map,o=new e.Map,s=[],c=0,l=r;c<l.length;c++)u(l[c]);return i?{buildOrder:n||e.emptyArray,circularDiagnostics:i}:n||e.emptyArray;function u(r,c){var l=g(t,r);if(!o.has(l))if(a.has(l))c||(i||(i=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join("\r\n")));else{a.set(l,!0),s.push(r);var _=h(t,r,l);if(_&&_.projectReferences)for(var d=0,p=_.projectReferences;d<p.length;d++){var f=p[d];u(v(t,f.path),c||f.circular)}s.pop(),o.set(l,!0),(n||(n=[])).push(r)}}}function x(t){return t.buildOrder||function(t){var r=b(t,t.rootNames.map((function(e){return v(t,e)})));t.resolvedConfigFilePaths.clear();var n=new e.Map(_(r).map((function(e){return[g(t,e),!0]}))),i={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(t.configFileCache,n,i),e.mutateMapSkippingNewValues(t.projectStatus,n,i),e.mutateMapSkippingNewValues(t.buildInfoChecked,n,i),e.mutateMapSkippingNewValues(t.builderPrograms,n,i),e.mutateMapSkippingNewValues(t.diagnostics,n,i),e.mutateMapSkippingNewValues(t.projectPendingBuild,n,i),e.mutateMapSkippingNewValues(t.projectErrorsReported,n,i),t.watch&&(e.mutateMapSkippingNewValues(t.allWatchedConfigFiles,n,{onDeleteValue:e.closeFileWatcher}),t.allWatchedExtendedConfigFiles.forEach((function(e){e.projects.forEach((function(t){n.has(t)||e.projects.delete(t)})),e.close()})),e.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories,n,{onDeleteValue:function(t){return t.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(t.allWatchedInputFiles,n,{onDeleteValue:function(t){return t.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(t.allWatchedPackageJsonFiles,n,{onDeleteValue:function(t){return t.forEach(e.closeFileWatcher)}})),t.buildOrder=r}(t)}function D(t,r,n){var i=r&&v(t,r),a=x(t);if(u(a))return a;if(i){var o=g(t,i);if(-1===e.findIndex(a,(function(e){return g(t,e)===o})))return}var s=i?b(t,[i]):a;return e.Debug.assert(!u(s)),e.Debug.assert(!n||void 0!==i),e.Debug.assert(!n||s[s.length-1]===i),n?s.slice(0,s.length-1):s}function S(t){t.cache&&E(t);var r=t.compilerHost,n=t.host,a=t.readFileWithCache,o=r.getSourceFile,s=e.changeCompilerHostLikeToUseCache(n,(function(e){return f(t,e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.call.apply(o,i([r],e,!1))})),c=s.originalReadFile,l=s.originalFileExists,u=s.originalDirectoryExists,_=s.originalCreateDirectory,d=s.originalWriteFile,p=s.getSourceFileWithCache,g=s.readFileWithCache;t.readFileWithCache=g,r.getSourceFile=p,t.cache={originalReadFile:c,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:_,originalWriteFile:d,originalReadFileWithCache:a,originalGetSourceFile:o}}function E(e){if(e.cache){var t=e.cache,r=e.host,n=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache,o=e.typeReferenceDirectiveResolutionCache;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,n.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==a||a.clear(),null==o||o.clear(),e.cache=void 0}}function T(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function C(e,t,r){var n=e.projectPendingBuild,i=n.get(t);(void 0===i||i<r)&&n.set(t,r)}function k(t,r){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&te(t,e.Diagnostics.Starting_compilation_in_watch_mode),S(t),_(x(t)).forEach((function(r){return t.projectPendingBuild.set(g(t,r),e.ConfigFileProgramReloadLevel.None)})),r&&r.throwIfCancellationRequested())}function A(t,r){return t.projectPendingBuild.delete(r),t.currentInvalidatedProject=void 0,t.diagnostics.has(r)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function N(e,t,n,i,a){var o=!0;return{kind:r.UpdateOutputFileStamps,project:t,projectPath:n,buildOrder:a,getCompilerOptions:function(){return i.options},getCurrentDirectory:function(){return e.currentDirectory},updateOutputFileStatmps:function(){j(e,i,n),o=!1},done:function(){return o&&j(e,i,n),A(e,n)}}}function F(s,u,_,d,p,m,y){var b,x,D,S=s===r.Build?n.CreateProgram:n.EmitBundle;return s===r.Build?{kind:s,project:_,projectPath:d,buildOrder:y,getCompilerOptions:function(){return m.options},getCurrentDirectory:function(){return u.currentDirectory},getBuilderProgram:function(){return T(e.identity)},getProgram:function(){return T((function(e){return e.getProgramOrUndefined()}))},getSourceFile:function(e){return T((function(t){return t.getSourceFile(e)}))},getSourceFiles:function(){return C((function(e){return e.getSourceFiles()}))},getOptionsDiagnostics:function(e){return C((function(t){return t.getOptionsDiagnostics(e)}))},getGlobalDiagnostics:function(e){return C((function(t){return t.getGlobalDiagnostics(e)}))},getConfigFileParsingDiagnostics:function(){return C((function(e){return e.getConfigFileParsingDiagnostics()}))},getSyntacticDiagnostics:function(e,t){return C((function(r){return r.getSyntacticDiagnostics(e,t)}))},getAllDependencies:function(e){return C((function(t){return t.getAllDependencies(e)}))},getSemanticDiagnostics:function(e,t){return C((function(r){return r.getSemanticDiagnostics(e,t)}))},getSemanticDiagnosticsOfNextAffectedFile:function(e,t){return T((function(r){return r.getSemanticDiagnosticsOfNextAffectedFile&&r.getSemanticDiagnosticsOfNextAffectedFile(e,t)}))},emit:function(e,t,r,i,a){return e||i?T((function(n){var o,s;return n.emit(e,t,r,i,a||(null===(s=(o=u.host).getCustomTransformers)||void 0===s?void 0:s.call(o,_)))})):(U(n.SemanticDiagnostics,r),S===n.EmitBuildInfo?R(t,r):S===n.Emit?M(t,r,a):void 0)},done:E}:{kind:s,project:_,projectPath:d,buildOrder:y,getCompilerOptions:function(){return m.options},getCurrentDirectory:function(){return u.currentDirectory},emit:function(e,t){return S!==n.EmitBundle?D:V(e,t)},done:E};function E(e,t,r){return U(n.Done,e,t,r),A(u,d)}function T(e){return U(n.CreateProgram),b&&e(b)}function C(t){return T(t)||e.emptyArray}function k(){var r,i;if(e.Debug.assert(void 0===b),u.options.dry)return ee(u,e.Diagnostics.A_non_dry_build_would_build_project_0,_),x=t.Success,void(S=n.QueueReferencingProjects);if(u.options.verbose&&ee(u,e.Diagnostics.Building_project_0,_),0===m.fileNames.length)return ne(u,d,e.getConfigFileParsingDiagnostics(m)),x=t.None,void(S=n.QueueReferencingProjects);var a=u.host,o=u.compilerHost;u.projectCompilerOptions=m.options,null===(r=u.moduleResolutionCache)||void 0===r||r.update(m.options),null===(i=u.typeReferenceDirectiveResolutionCache)||void 0===i||i.update(m.options),b=a.createProgram(m.fileNames,m.options,o,function(t,r,n){var i=t.options,a=t.builderPrograms,o=t.compilerHost;if(!i.force)return a.get(r)||e.readBuilderProgram(n.options,o)}(u,d,m),e.getConfigFileParsingDiagnostics(m),m.projectReferences),u.lastCachedPackageJsonLookups.set(d,u.moduleResolutionCache&&e.map(u.moduleResolutionCache.getPackageJsonInfoCache().entries(),(function(e){var t=e[0],r=e[1];return[u.host.realpath?f(u,u.host.realpath(t)):t,r]}))),u.watch&&u.builderPrograms.set(d,b),S++}function N(e,t,r){var n;e.length?(n=L(u,d,b,m,e,t,r),x=n.buildResult,S=n.step):S++}function w(r){e.Debug.assertIsDefined(b),N(i(i(i(i([],b.getConfigFileParsingDiagnostics(),!0),b.getOptionsDiagnostics(r),!0),b.getGlobalDiagnostics(r),!0),b.getSyntacticDiagnostics(void 0,r),!0),t.SyntaxErrors,"Syntactic")}function P(r){N(e.Debug.checkDefined(b).getSemanticDiagnostics(void 0,r),t.TypeErrors,"Semantic")}function M(r,i,o){var s,p,g,y;e.Debug.assertIsDefined(b),e.Debug.assert(S===n.Emit),b.backupState();var h=[],v=e.emitFilesAndReportErrors(b,(function(e){return(y||(y=[])).push(e)}),void 0,void 0,(function(e,t,r){return h.push({name:e,text:t,writeByteOrderMark:r})}),i,!1,o||(null===(g=(p=u.host).getCustomTransformers)||void 0===g?void 0:g.call(p,_))).emitResult;if(y)return b.restoreState(),s=L(u,d,b,m,y,t.DeclarationEmitErrors,"Declaration file"),x=s.buildResult,S=s.step,{emitSkipped:!0,diagnostics:v.diagnostics};var D=u.host,E=u.compilerHost,T=t.DeclarationOutputUnchanged,C=a,k=!1,A=e.createDiagnosticCollection(),N=new e.Map;return h.forEach((function(n){var i,a=n.name,o=n.text,s=n.writeByteOrderMark;!k&&l(a)&&(D.fileExists(a)&&u.readFileWithCache(a)===o?i=D.getModifiedTime(a):(T&=~t.DeclarationOutputUnchanged,k=!0)),N.set(f(u,a),a),e.writeFile(r?{writeFile:r}:E,A,a,o,s),void 0!==i&&(C=c(i,C))})),j(A,N,C,k,h.length?h[0].name:e.getFirstProjectOutput(m,!D.useCaseSensitiveFileNames()),T),v}function R(r,a){e.Debug.assertIsDefined(b),e.Debug.assert(S===n.EmitBuildInfo);var o=b.emitBuildInfo(r,a);return o.diagnostics.length&&(re(u,o.diagnostics),u.diagnostics.set(d,i(i([],u.diagnostics.get(d),!0),o.diagnostics,!0)),x=t.EmitErrors&x),o.emittedFiles&&u.write&&o.emittedFiles.forEach((function(e){return I(u,m,e)})),O(u,b,m),S=n.QueueReferencingProjects,o}function j(r,i,a,s,c,l){var _,p=r.getDiagnostics();if(p.length)return _=L(u,d,b,m,p,t.EmitErrors,"Emit"),x=_.buildResult,S=_.step,p;u.write&&i.forEach((function(e){return I(u,m,e)}));var f=B(u,m,a,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,i);return u.diagnostics.delete(d),u.projectStatus.set(d,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?o:f,oldestOutputFileName:c}),O(u,b,m),S=n.QueueReferencingProjects,x=l,p}function V(i,o){var c,l;if(e.Debug.assert(s===r.UpdateBundle),u.options.dry)return ee(u,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,_),x=t.Success,void(S=n.QueueReferencingProjects);u.options.verbose&&ee(u,e.Diagnostics.Updating_output_of_project_0,_);var b=u.compilerHost;u.projectCompilerOptions=m.options;var E=e.emitUsingBuildInfo(m,b,(function(e){var t=v(u,e.path);return h(u,t,g(u,t))}),o||(null===(l=(c=u.host).getCustomTransformers)||void 0===l?void 0:l.call(c,_)));if(e.isString(E))return ee(u,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,_,Z(u,E)),S=n.BuildInvalidatedProjectOfBundle,D=F(r.Build,u,_,d,p,m,y);e.Debug.assert(!!E.length);var T=e.createDiagnosticCollection(),C=new e.Map;return E.forEach((function(t){var r=t.name,n=t.text,a=t.writeByteOrderMark;C.set(f(u,r),r),e.writeFile(i?{writeFile:i}:b,T,r,n,a)})),{emitSkipped:!1,diagnostics:j(T,C,a,!1,E[0].name,t.DeclarationOutputUnchanged)}}function U(t,r,i,a){for(;S<=t&&S<n.Done;){var o=S;switch(S){case n.CreateProgram:k();break;case n.SyntaxDiagnostics:w(r);break;case n.SemanticDiagnostics:P(r);break;case n.Emit:M(i,r,a);break;case n.EmitBuildInfo:R(i,r);break;case n.EmitBundle:V(i,a);break;case n.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(D).done(r,i,a),S=n.Done;break;case n.QueueReferencingProjects:J(u,_,d,p,m,y,e.Debug.checkDefined(x)),S++;break;case n.Done:default:e.assertType(S)}e.Debug.assert(S>o)}}}function w(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force&&0!==n.fileNames.length&&!e.getConfigFileParsingDiagnostics(n).length&&e.isIncrementalCompilation(n.options))}function P(t,n,i){if(t.projectPendingBuild.size&&!u(n)){if(t.currentInvalidatedProject)return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,n)?t.currentInvalidatedProject:void 0;for(var a=t.options,o=t.projectPendingBuild,s=0;s<n.length;s++){var c=n[s],l=g(t,c),_=t.projectPendingBuild.get(l);if(void 0!==_){i&&(i=!1,oe(t,n));var d=h(t,c,l);if(d){_===e.ConfigFileProgramReloadLevel.Full?(q(t,c,l,d),H(t,l,d),Y(t,c,l,d),X(t,c,l,d),Q(t,c,l,d)):_===e.ConfigFileProgramReloadLevel.Partial&&(d.fileNames=e.getFileNamesFromConfigSpecs(d.options.configFile.configFileSpecs,e.getDirectoryPath(c),d.options,t.parseConfigFileHost),e.updateErrorForNoInputFiles(d.fileNames,c,d.options.configFile.configFileSpecs,d.errors,e.canJsonReportNoInputFiles(d.raw)),X(t,c,l,d),Q(t,c,l,d));var p=R(t,d,l);if(se(t,c,p),!a.force){if(p.type===e.UpToDateStatusType.UpToDate){ne(t,l,e.getConfigFileParsingDiagnostics(d)),o.delete(l),a.dry&&ee(t,e.Diagnostics.Project_0_is_up_to_date,c);continue}if(p.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return ne(t,l,e.getConfigFileParsingDiagnostics(d)),N(t,c,l,d,n)}if(p.type!==e.UpToDateStatusType.UpstreamBlocked){if(p.type!==e.UpToDateStatusType.ContainerOnly)return F(w(t,p,d)?r.Build:r.UpdateBundle,t,c,l,s,d,n);ne(t,l,e.getConfigFileParsingDiagnostics(d)),o.delete(l)}else ne(t,l,e.getConfigFileParsingDiagnostics(d)),o.delete(l),a.verbose&&ee(t,p.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,p.upstreamProjectName)}else ie(t,l),o.delete(l)}}}}function I(e,t,r){var n=e.write;n&&t.options.listEmittedFiles&&n("TSFILE: "+r)}function O(t,r,n){r?(r&&t.write&&e.listFiles(r,t.write),t.host.afterProgramEmitAndDiagnostics&&t.host.afterProgramEmitAndDiagnostics(r),r.releaseProgram()):t.host.afterEmitBundle&&t.host.afterEmitBundle(n),t.projectCompilerOptions=t.baseCompilerOptions}function L(r,i,a,o,s,c,l){var u=!(c&t.SyntaxErrors)&&a&&!e.outFile(a.getCompilerOptions());return ne(r,i,s),r.projectStatus.set(i,{type:e.UpToDateStatusType.Unbuildable,reason:l+" errors"}),u?{buildResult:c,step:n.EmitBuildInfo}:(O(r,a,o),{buildResult:c,step:n.QueueReferencingProjects})}function M(t,r,n,i){if(n<e.getModifiedTime(t.host,r))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:i,newerInputFileName:r}}function R(t,r,n){if(void 0===r)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var i=t.projectStatus.get(n);if(void 0!==i)return i;var s=function(t,r,n){for(var i=!!t.options.force,s=void 0,u=a,_=t.host,d=0,p=r.fileNames;d<p.length;d++){var f=p[d];if(!_.fileExists(f))return{type:e.UpToDateStatusType.Unbuildable,reason:f+" does not exist"};if(!i){var m=e.getModifiedTime(_,f);_.getModifiedTime(f),m>u&&(s=f,u=m)}}if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};var y,v=e.getAllProjectOutputs(r,!_.useCaseSensitiveFileNames()),b="(none)",x=o,D="(none)",S=a,E=a,T=!1;if(!i)for(var C=0,k=v;C<k.length;C++){var A=k[C];if(!_.fileExists(A)){y=A;break}var N=e.getModifiedTime(_,A);if(N<x&&(x=N,b=A),N<u){T=!0;break}N>S&&(S=N,D=A),l(A)&&(E=c(E,e.getModifiedTime(_,A)))}var F,w=!1,P=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var I=0,O=r.projectReferences;I<O.length;I++){var L=O[I];P=P||!!L.prepend;var B=e.resolveProjectReferencePath(L),j=g(t,B),J=R(t,h(t,B,j),j);if(J.type!==e.UpToDateStatusType.ComputingUpstream&&J.type!==e.UpToDateStatusType.ContainerOnly){if(J.type===e.UpToDateStatusType.Unbuildable||J.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:L.path,upstreamProjectBlocked:J.type===e.UpToDateStatusType.UpstreamBlocked};if(J.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:L.path};if(!i&&!y){if(J.newestInputFileTime&&J.newestInputFileTime<=x)continue;if(J.newestDeclarationFileContentChangedTime&&J.newestDeclarationFileContentChangedTime<=x){w=!0,F=L.path;continue}return e.Debug.assert(void 0!==b,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:b,newerProjectName:L.path}}}}}if(void 0!==y)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:y};if(T)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:b,newerInputFileName:s};var V=M(t,r.options.configFilePath,x,b);if(V)return V;var U=e.forEach(r.options.configFile.extendedSourceFiles||e.emptyArray,(function(e){return M(t,e,x,b)}));if(U)return U;var K=e.forEach(t.lastCachedPackageJsonLookups.get(n)||e.emptyArray,(function(e){var r=e[0];return M(t,r,x,b)}));if(K)return K;if(!i&&!t.buildInfoChecked.has(n)){t.buildInfoChecked.set(n,!0);var z=e.getTsBuildInfoEmitOutputFilePath(r.options);if(z){var G=t.readFileWithCache(z),W=G&&e.getBuildInfo(G);if(W&&(W.bundle||W.program)&&W.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:W.version}}}return P&&w?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:b,newerProjectName:F}:{type:w?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:E,newestInputFileTime:u,newestOutputFileTime:S,newestInputFileName:s,newestOutputFileName:D,oldestOutputFileName:b}}(t,r,n);return t.projectStatus.set(n,s),s}function B(t,r,n,i,a){if(r.options.noEmit)return n;var o=t.host,s=e.getAllProjectOutputs(r,!o.useCaseSensitiveFileNames());if(!a||s.length!==a.size)for(var u=!!t.options.verbose,_=o.now?o.now():new Date,d=0,p=s;d<p.length;d++){var g=p[d];a&&a.has(f(t,g))||(u&&(u=!1,ee(t,i,r.options.configFilePath)),l(g)&&(n=c(n,e.getModifiedTime(o,g))),o.setModifiedTime(g,_))}return n}function j(t,r,n){if(t.options.dry)return ee(t,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,r.options.configFilePath);var i=B(t,r,a,e.Diagnostics.Updating_output_timestamps_of_project_0);t.projectStatus.set(n,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:i,oldestOutputFileName:e.getFirstProjectOutput(r,!t.host.useCaseSensitiveFileNames())})}function J(r,n,i,a,o,s,c){if(!(c&t.AnyErrors)&&o.options.composite)for(var l=a+1;l<s.length;l++){var u=s[l],_=g(r,u);if(!r.projectPendingBuild.has(_)){var d=h(r,u,_);if(d&&d.projectReferences)for(var p=0,f=d.projectReferences;p<f.length;p++){var m=f[p];if(g(r,v(r,m.path))===i){var y=r.projectStatus.get(_);if(y)switch(y.type){case e.UpToDateStatusType.UpToDate:if(c&t.DeclarationOutputUnchanged){m.prepend?r.projectStatus.set(_,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:y.oldestOutputFileName,newerProjectName:n}):y.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:c&t.DeclarationOutputUnchanged||r.projectStatus.set(_,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:y.type===e.UpToDateStatusType.OutOfDateWithPrepend?y.outOfDateOutputFileName:y.oldestOutputFileName,newerProjectName:n});break;case e.UpToDateStatusType.UpstreamBlocked:g(r,v(r,y.upstreamProjectName))===i&&T(r,_)}C(r,_,e.ConfigFileProgramReloadLevel.None);break}}}}}function V(t,r,n,i,a,o){var s=D(t,r,o);if(!s)return e.ExitStatus.InvalidProject_OutputsSkipped;k(t,n);for(var c=!0,l=0;;){var d=P(t,s,c);if(!d)break;c=!1,d.done(n,i,null==a?void 0:a(d.project)),t.diagnostics.has(d.projectPath)||l++}return E(t),ae(t,s),function(e,t){if(e.watchAllProjectsPending){e.watchAllProjectsPending=!1;for(var r=0,n=_(t);r<n.length;r++){var i=n[r],a=g(e,i),o=h(e,i,a);q(e,i,a,o),H(e,a,o),o&&(Y(e,i,a,o),X(e,i,a,o),Q(e,i,a,o))}}}(t,s),u(s)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:s.some((function(e){return t.diagnostics.has(g(t,e))}))?l?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function U(t,r,n){var i=D(t,r,n);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;if(u(i))return re(t,i.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var a=t.options,o=t.host,s=a.dry?[]:void 0,c=0,l=i;c<l.length;c++){var _=l[c],d=g(t,_),p=h(t,_,d);if(void 0!==p){var m=e.getAllProjectOutputs(p,!o.useCaseSensitiveFileNames());if(m.length)for(var y=new e.Set(p.fileNames.map((function(e){return f(t,e)}))),v=0,b=m;v<b.length;v++){var x=b[v];y.has(f(t,x))||o.fileExists(x)&&(s?s.push(x):(o.deleteFile(x),K(t,d,e.ConfigFileProgramReloadLevel.None)))}}else ie(t,d)}return s&&ee(t,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,s.map((function(e){return"\r\n * "+e})).join("")),e.ExitStatus.Success}function K(t,r,n){t.host.getParsedCommandLine&&n===e.ConfigFileProgramReloadLevel.Partial&&(n=e.ConfigFileProgramReloadLevel.Full),n===e.ConfigFileProgramReloadLevel.Full&&(t.configFileCache.delete(r),t.buildOrder=void 0),t.needsSummary=!0,T(t,r),C(t,r,n),S(t)}function z(e,t,r){e.reportFileChangeDetected=!0,K(e,t,r),G(e)}function G(e){var t=e.hostWithWatch;t.setTimeout&&t.clearTimeout&&(e.timerToBuildInvalidatedProject&&t.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=t.setTimeout(W,250,e))}function W(t){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),te(t,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var r=x(t),n=P(t,r,!1);n&&(n.done(),t.projectPendingBuild.size)?t.watch&&!t.timerToBuildInvalidatedProject&&G(t):(E(t),ae(t,r))}function q(t,r,n,i){t.watch&&!t.allWatchedConfigFiles.has(n)&&t.allWatchedConfigFiles.set(n,t.watchFile(r,(function(){z(t,n,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.ConfigFile,r))}function H(t,r,n){e.updateSharedExtendedConfigFileWatcher(r,null==n?void 0:n.options,t.allWatchedExtendedConfigFiles,(function(r,i){return t.watchFile(r,(function(){var r;return null===(r=t.allWatchedExtendedConfigFiles.get(i))||void 0===r?void 0:r.projects.forEach((function(r){return z(t,r,e.ConfigFileProgramReloadLevel.Full)}))}),e.PollingInterval.High,null==n?void 0:n.watchOptions,e.WatchType.ExtendedConfigFile)}),(function(e){return f(t,e)}))}function Y(t,r,n,i){t.watch&&e.updateWatchingWildcardDirectories(s(t.allWatchedWildcardDirectories,n),new e.Map(e.getEntries(i.wildcardDirectories)),(function(a,o){return t.watchDirectory(a,(function(o){var s;e.isIgnoredFileFromWildCardWatching({watchedDirPath:f(t,a),fileOrDirectory:o,fileOrDirectoryPath:f(t,o),configFileName:r,currentDirectory:t.currentDirectory,options:i.options,program:t.builderPrograms.get(n)||(null===(s=y(t,n))||void 0===s?void 0:s.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(e){return t.writeLog(e)},toPath:function(e){return f(t,e)}})||z(t,n,e.ConfigFileProgramReloadLevel.Partial)}),o,null==i?void 0:i.watchOptions,e.WatchType.WildcardDirectory,r)}))}function X(t,r,n,i){t.watch&&e.mutateMap(s(t.allWatchedInputFiles,n),e.arrayToMap(i.fileNames,(function(e){return f(t,e)})),{createNewValue:function(a,o){return t.watchFile(o,(function(){return z(t,n,e.ConfigFileProgramReloadLevel.None)}),e.PollingInterval.Low,null==i?void 0:i.watchOptions,e.WatchType.SourceFile,r)},onDeleteValue:e.closeFileWatcher})}function Q(t,r,n,i){t.watch&&t.lastCachedPackageJsonLookups&&e.mutateMap(s(t.allWatchedPackageJsonFiles,n),new e.Map(t.lastCachedPackageJsonLookups.get(n)),{createNewValue:function(a,o){return t.watchFile(a,(function(){return z(t,n,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.PackageJson,r)},onDeleteValue:e.closeFileWatcher})}function $(t,r,n,i,a){var o=function(t,r,n,i,a){var o,s,c=r,l=r,u=c.getCurrentDirectory(),_=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),d=(o=i,s={},e.commonOptionsWithBuild.forEach((function(t){e.hasProperty(o,t.name)&&(s[t.name]=o[t.name])})),s),p=e.createCompilerHostFromProgramHost(c,(function(){return E.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(p,c),p.getParsedCommandLine=function(e){return h(E,e,g(E,e))},p.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),p.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var f=p.resolveModuleNames?void 0:e.createModuleResolutionCache(u,_),m=p.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(u,_,void 0,null==f?void 0:f.getPackageJsonInfoCache());if(!p.resolveModuleNames){var y=function(t,r,n){return e.resolveModuleName(t,r,E.projectCompilerOptions,p,f,n).resolvedModule};p.resolveModuleNames=function(t,r,n,i){return e.loadWithLocalCache(e.Debug.checkEachDefined(t),r,i,y)}}if(!p.resolveTypeReferenceDirectives){var v=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,E.projectCompilerOptions,p,n,E.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};p.resolveTypeReferenceDirectives=function(t,r,n){return e.loadWithLocalCache(e.Debug.checkEachDefined(t),r,n,v)}}var b=e.createWatchFactory(l,i),x=b.watchFile,D=b.watchDirectory,S=b.writeLog,E={host:c,hostWithWatch:l,currentDirectory:u,getCanonicalFileName:_,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),write:e.maybeBind(c,c.trace),options:i,baseCompilerOptions:d,rootNames:n,baseWatchOptions:a,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:p,moduleResolutionCache:f,typeReferenceDirectiveResolutionCache:m,buildOrder:void 0,readFileWithCache:function(e){return c.readFile(e)},projectCompilerOptions:d,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,currentInvalidatedProject:void 0,watch:t,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:x,watchDirectory:D,writeLog:S};return E}(t,r,n,i,a);return{build:function(e,t,r,n){return V(o,e,t,r,n)},clean:function(e){return U(o,e)},buildReferences:function(e,t,r,n){return V(o,e,t,r,n,!0)},cleanReferences:function(e){return U(o,e,!0)},getNextInvalidatedProject:function(e){return k(o,e),P(o,x(o),!1)},getBuildOrder:function(){return x(o)},getUpToDateStatusOfProject:function(e){var t=v(o,e),r=g(o,t);return R(o,h(o,t,r),r)},invalidateProject:function(t,r){return K(o,t,r||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return W(o)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(o.configFileCache.values(),(function(e){return m(e)?e:void 0})))},close:function(){return function(t){e.clearMap(t.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(t.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(t.allWatchedWildcardDirectories,(function(t){return e.clearMap(t,e.closeFileWatcherOf)})),e.clearMap(t.allWatchedInputFiles,(function(t){return e.clearMap(t,e.closeFileWatcher)})),e.clearMap(t.allWatchedPackageJsonFiles,(function(t){return e.clearMap(t,e.closeFileWatcher)}))}(o)}}}function Z(t,r){return e.convertToRelativePath(r,t.currentDirectory,(function(e){return t.getCanonicalFileName(e)}))}function ee(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];t.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,i([r],n,!1)))}function te(t,r){for(var n,a,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];null===(a=(n=t.hostWithWatch).onWatchStatusChange)||void 0===a||a.call(n,e.createCompilerDiagnostic.apply(void 0,i([r],o,!1)),t.host.getNewLine(),t.baseCompilerOptions)}function re(e,t){var r=e.host;t.forEach((function(e){return r.reportDiagnostic(e)}))}function ne(e,t,r){re(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function ie(e,t){ne(e,t,[e.configFileCache.get(t)])}function ae(t,r){if(t.needsSummary){t.needsSummary=!1;var n=t.watch||!!t.host.reportErrorSummary,i=t.diagnostics,a=0;u(r)?(oe(t,r.buildOrder),re(t,r.circularDiagnostics),n&&(a+=e.getErrorCountForSummary(r.circularDiagnostics))):(r.forEach((function(r){var n=g(t,r);t.projectErrorsReported.has(n)||re(t,i.get(n)||e.emptyArray)})),n&&i.forEach((function(t){return a+=e.getErrorCountForSummary(t)}))),t.watch?te(t,e.getWatchErrorSummaryDiagnosticMessage(a),a):t.host.reportErrorSummary&&t.host.reportErrorSummary(a)}}function oe(t,r){t.options.verbose&&ee(t,e.Diagnostics.Projects_in_this_build_Colon_0,r.map((function(e){return"\r\n    * "+Z(t,e)})).join(""))}function se(t,r,n){t.options.verbose&&function(t,r,n){if(t.options.force&&(n.type===e.UpToDateStatusType.UpToDate||n.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return ee(t,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,Z(t,r));switch(n.type){case e.UpToDateStatusType.OutOfDateWithSelf:return ee(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Z(t,r),Z(t,n.outOfDateOutputFileName),Z(t,n.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return ee(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Z(t,r),Z(t,n.outOfDateOutputFileName),Z(t,n.newerProjectName));case e.UpToDateStatusType.OutputMissing:return ee(t,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Z(t,r),Z(t,n.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(void 0!==n.newestInputFileTime)return ee(t,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Z(t,r),Z(t,n.newestInputFileName||""),Z(t,n.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return ee(t,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Z(t,r),Z(t,n.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return ee(t,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Z(t,r));case e.UpToDateStatusType.UpstreamOutOfDate:return ee(t,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Z(t,r),Z(t,n.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return ee(t,n.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Z(t,r),Z(t,n.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return ee(t,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Z(t,r),n.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return ee(t,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Z(t,r),n.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(n)}}(t,r,n)}!function(e){e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"}(t||(t={})),e.isCircularBuildOrder=u,e.getBuildOrderFromAnyBuildOrder=_,e.createBuilderStatusReporter=d,e.createSolutionBuilderHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=p(t,r,n,i);return o.reportErrorSummary=a,o},e.createSolutionBuilderWithWatchHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=p(t,r,n,i),s=e.createWatchHost(t,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=function(e,t,r){return $(!1,e,t,r)},e.createSolutionBuilderWithWatch=function(e,t,r,n){return $(!0,e,t,r,n)},function(e){e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"}(r=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={})),function(e){e[e.CreateProgram=0]="CreateProgram",e[e.SyntaxDiagnostics=1]="SyntaxDiagnostics",e[e.SemanticDiagnostics=2]="SemanticDiagnostics",e[e.Emit=3]="Emit",e[e.EmitBundle=4]="EmitBundle",e[e.EmitBuildInfo=5]="EmitBuildInfo",e[e.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=7]="QueueReferencingProjects",e[e.Done=8]="Done"}(n||(n={}))}(u||(u={})),function(e){var t,r;(t=e.server||(e.server={})).ActionSet="action::set",t.ActionInvalidate="action::invalidate",t.ActionPackageInstalled="action::packageInstalled",t.EventTypesRegistry="event::typesRegistry",t.EventBeginInstallTypes="event::beginInstallTypes",t.EventEndInstallTypes="event::endInstallTypes",t.EventInitializationFailed="event::initializationFailed",(r=t.Arguments||(t.Arguments={})).GlobalCacheLocation="--globalTypingsCacheLocation",r.LogFile="--logFile",r.EnableTelemetry="--enableTelemetry",r.TypingSafeListLocation="--typingSafeListLocation",r.TypesMapLocation="--typesMapLocation",r.NpmLocation="--npmLocation",r.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",t.hasArgument=function(t){return e.sys.args.indexOf(t)>=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&r<e.sys.args.length-1?e.sys.args[r+1]:void 0},t.nowString=function(){var t=new Date;return e.padLeft(t.getHours().toString(),2,"0")+":"+e.padLeft(t.getMinutes().toString(),2,"0")+":"+e.padLeft(t.getSeconds().toString(),2,"0")+"."+e.padLeft(t.getMilliseconds().toString(),3,"0")}}(u||(u={})),function(e){!function(t){function r(t,r){return new e.Version(e.getProperty(r,"ts"+e.versionMajorMinor)||e.getProperty(r,"latest")).compareTo(t.version)<=0}t.isTypingUpToDate=r;var n,a=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];function o(e){return t.nodeCoreModules.has(e)?"node":e}function s(e,t){if(!e)return 1;if(e.length>214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=s(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=s(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function c(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'"+t+"':: "+a+" name '"+n+"' cannot be empty";case 2:return"'"+t+"':: "+a+" name '"+n+"' should be less than 214 characters";case 3:return"'"+t+"':: "+a+" name '"+n+"' cannot start with '.'";case 4:return"'"+t+"':: "+a+" name '"+n+"' cannot start with '_'";case 5:return"'"+t+"':: "+a+" name '"+n+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.prefixedNodeCoreModuleList=a.map((function(e){return"node:"+e})),t.nodeCoreModuleList=i(i([],a,!0),t.prefixedNodeCoreModuleList,!0),t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=o,t.loadSafeList=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));return new e.Map(e.getEntries(n.config))},t.loadTypesMap=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));if(n.config)return new e.Map(e.getEntries(n.config.simpleMap))},t.discoverTypings=function(t,n,i,a,s,c,l,u,_){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var d=new e.Map;i=e.mapDefined(i,(function(t){var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r}));var p=[];l.include&&S(l.include,"Explicitly included types");var f=l.exclude||[],g=new e.Set(i.map(e.getDirectoryPath));g.add(a),g.forEach((function(t){E(e.combinePaths(t,"package.json"),p),E(e.combinePaths(t,"bower.json"),p),T(e.combinePaths(t,"bower_components"),p),T(e.combinePaths(t,"node_modules"),p)})),l.disableFilenameBasedTypeAcquisition||function(t){var r=e.mapDefined(t,(function(t){if(e.hasJSFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}}));r.length&&S(r,"Inferred typings from file names"),e.some(t,(function(t){return e.fileExtensionIs(t,".jsx")}))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}(i),u&&S(e.deduplicate(u.map(o),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach((function(e,t){var n=_.get(t);d.has(t)&&void 0===d.get(t)&&void 0!==n&&r(e,n)&&d.set(t,e.typingLocation)}));for(var m=0,y=f;m<y.length;m++){var h=y[m];d.delete(h)&&n&&n("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 n&&n("Result: "+JSON.stringify(x)),x;function D(e){d.has(e)||d.set(e,void 0)}function S(t,r){n&&n(r+": "+JSON.stringify(t)),e.forEach(t,D)}function E(r,n){if(t.fileExists(r)){n.push(r);var i=e.readConfigFile(r,(function(e){return t.readFile(e)})).config;S(e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys),"Typing names in '"+r+"' dependencies")}}function T(r,i){if(i.push(r),t.directoryExists(r)){var a=t.readDirectory(r,[".json"],void 0,void 0,2);n&&n("Searching for typing names in "+r+"; all files: "+JSON.stringify(a));for(var o=[],s=0,c=a;s<c.length;s++){var l=c[s],u=e.normalizePath(l),_=e.getBaseFileName(u);if("package.json"===_||"bower.json"===_){var p=e.readConfigFile(u,(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 g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(u));n&&n("    Package '"+p.name+"' provides its own types."),d.set(p.name,g)}else o.push(p.name)}}}S(o,"    Found package names")}}},(n=t.NameValidationResult||(t.NameValidationResult={}))[n.Ok=0]="Ok",n[n.EmptyName=1]="EmptyName",n[n.NameTooLong=2]="NameTooLong",n[n.NameStartsWithDot=3]="NameStartsWithDot",n[n.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",n[n.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t.validatePackageName=function(e){return s(e,!0)},t.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?c(t,e.result,e.name,e.isScopeName):c(t,e,t,!1)}}(e.JsTyping||(e.JsTyping={}))}(u||(u={})),function(e){var t,r,n,i,a,o,s,c,l,u,_,d,p,f,g,m,y,h,v,b;function x(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:r.Ignore,trimTrailingWhitespace:!0}}v=e.ScriptSnapshot||(e.ScriptSnapshot={}),b=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}(),v.fromString=function(e){return new b(e)},(h=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[h.Dependencies=1]="Dependencies",h[h.DevDependencies=2]="DevDependencies",h[h.PeerDependencies=4]="PeerDependencies",h[h.OptionalDependencies=8]="OptionalDependencies",h[h.All=15]="All",(y=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[y.Off=0]="Off",y[y.On=1]="On",y[y.Auto=2]="Auto",(m=e.LanguageServiceMode||(e.LanguageServiceMode={}))[m.Semantic=0]="Semantic",m[m.PartialSemantic=1]="PartialSemantic",m[m.Syntactic=2]="Syntactic",e.emptyOptions={},(g=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",g.TwentyTwenty="2020",(f=e.CompletionTriggerKind||(e.CompletionTriggerKind={}))[f.Invoked=1]="Invoked",f[f.TriggerCharacter=2]="TriggerCharacter",f[f.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(p=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",p.Parameter="Parameter",p.Enum="Enum",(d=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",d.definition="definition",d.reference="reference",d.writtenReference="writtenReference",function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(t=e.IndentStyle||(e.IndentStyle={})),function(e){e.Ignore="ignore",e.Insert="insert",e.Remove="remove"}(r=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=x,e.testFormatSettings=x("\n"),(_=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[_.aliasName=0]="aliasName",_[_.className=1]="className",_[_.enumName=2]="enumName",_[_.fieldName=3]="fieldName",_[_.interfaceName=4]="interfaceName",_[_.keyword=5]="keyword",_[_.lineBreak=6]="lineBreak",_[_.numericLiteral=7]="numericLiteral",_[_.stringLiteral=8]="stringLiteral",_[_.localName=9]="localName",_[_.methodName=10]="methodName",_[_.moduleName=11]="moduleName",_[_.operator=12]="operator",_[_.parameterName=13]="parameterName",_[_.propertyName=14]="propertyName",_[_.punctuation=15]="punctuation",_[_.space=16]="space",_[_.text=17]="text",_[_.typeParameterName=18]="typeParameterName",_[_.enumMemberName=19]="enumMemberName",_[_.functionName=20]="functionName",_[_.regularExpressionLiteral=21]="regularExpressionLiteral",_[_.link=22]="link",_[_.linkName=23]="linkName",_[_.linkText=24]="linkText",(u=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",u.Region="region",u.Code="code",u.Imports="imports",(l=e.OutputFileType||(e.OutputFileType={}))[l.JavaScript=0]="JavaScript",l[l.SourceMap=1]="SourceMap",l[l.Declaration=2]="Declaration",(c=e.EndOfLineState||(e.EndOfLineState={}))[c.None=0]="None",c[c.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",c[c.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",c[c.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",c[c.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",c[c.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",c[c.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(s=e.TokenClass||(e.TokenClass={}))[s.Punctuation=0]="Punctuation",s[s.Keyword=1]="Keyword",s[s.Operator=2]="Operator",s[s.Comment=3]="Comment",s[s.Whitespace=4]="Whitespace",s[s.Identifier=5]="Identifier",s[s.NumberLiteral=6]="NumberLiteral",s[s.BigIntLiteral=7]="BigIntLiteral",s[s.StringLiteral=8]="StringLiteral",s[s.RegExpLiteral=9]="RegExpLiteral",(o=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",o.warning="warning",o.keyword="keyword",o.scriptElement="script",o.moduleElement="module",o.classElement="class",o.localClassElement="local class",o.interfaceElement="interface",o.typeElement="type",o.enumElement="enum",o.enumMemberElement="enum member",o.variableElement="var",o.localVariableElement="local var",o.functionElement="function",o.localFunctionElement="local function",o.memberFunctionElement="method",o.memberGetAccessorElement="getter",o.memberSetAccessorElement="setter",o.memberVariableElement="property",o.constructorImplementationElement="constructor",o.callSignatureElement="call",o.indexSignatureElement="index",o.constructSignatureElement="construct",o.parameterElement="parameter",o.typeParameterElement="type parameter",o.primitiveType="primitive type",o.label="label",o.alias="alias",o.constElement="const",o.letElement="let",o.directory="directory",o.externalModuleName="external module name",o.jsxAttribute="JSX attribute",o.string="string",o.link="link",o.linkName="link name",o.linkText="link text",(a=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",a.publicMemberModifier="public",a.privateMemberModifier="private",a.protectedMemberModifier="protected",a.exportedModifier="export",a.ambientModifier="declare",a.staticModifier="static",a.abstractModifier="abstract",a.optionalModifier="optional",a.deprecatedModifier="deprecated",a.dtsModifier=".d.ts",a.tsModifier=".ts",a.tsxModifier=".tsx",a.jsModifier=".js",a.jsxModifier=".jsx",a.jsonModifier=".json",(i=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",i.identifier="identifier",i.keyword="keyword",i.numericLiteral="number",i.bigintLiteral="bigint",i.operator="operator",i.stringLiteral="string",i.whiteSpace="whitespace",i.text="text",i.punctuation="punctuation",i.className="class name",i.enumName="enum name",i.interfaceName="interface name",i.moduleName="module name",i.typeParameterName="type parameter name",i.typeAliasName="type alias name",i.parameterName="parameter name",i.docCommentTagName="doc comment tag name",i.jsxOpenTagName="jsx open tag name",i.jsxCloseTagName="jsx close tag name",i.jsxSelfClosingTagName="jsx self closing tag name",i.jsxAttribute="jsx attribute",i.jsxText="jsx text",i.jsxAttributeStringLiteralValue="jsx attribute string literal value",(n=e.ClassificationType||(e.ClassificationType={}))[n.comment=1]="comment",n[n.identifier=2]="identifier",n[n.keyword=3]="keyword",n[n.numericLiteral=4]="numericLiteral",n[n.operator=5]="operator",n[n.stringLiteral=6]="stringLiteral",n[n.regularExpressionLiteral=7]="regularExpressionLiteral",n[n.whiteSpace=8]="whiteSpace",n[n.text=9]="text",n[n.punctuation=10]="punctuation",n[n.className=11]="className",n[n.enumName=12]="enumName",n[n.interfaceName=13]="interfaceName",n[n.moduleName=14]="moduleName",n[n.typeParameterName=15]="typeParameterName",n[n.typeAliasName=16]="typeAliasName",n[n.parameterName=17]="parameterName",n[n.docCommentTagName=18]="docCommentTagName",n[n.jsxOpenTagName=19]="jsxOpenTagName",n[n.jsxCloseTagName=20]="jsxCloseTagName",n[n.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",n[n.jsxAttribute=22]="jsxAttribute",n[n.jsxText=23]="jsxText",n[n.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",n[n.bigintLiteral=25]="bigintLiteral"}(u||(u={})),function(e){function t(t){switch(t.kind){case 252:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 162:case 201:case 165:case 164:case 291:case 292:case 167:case 166:case 169:case 170:case 171:case 254:case 211:case 212:case 290:case 283:return 1;case 161:case 256:case 257:case 180:return 2;case 340:return void 0===t.name?3:2;case 294:case 255:return 3;case 259:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 258:case 267:case 268:case 263:case 264:case 269:case 270:return 7;case 300:return 5}return 7}function r(t){for(;159===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e){return e.expression}function i(e){return e.tag}function o(e){return e.tagName}function s(t,r,n,i,a){var o=i?l(t):c(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function c(e){return d(e)?e.parent:e}function l(e){return d(e)||p(e)?e.parent:e}function u(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function _(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function d(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function p(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}var f;e.scanner=e.createScanner(99,!0),(f=e.SemanticMeaning||(e.SemanticMeaning={}))[f.None=0]="None",f[f.Value=1]="Value",f[f.Type=2]="Type",f[f.Namespace=4]="Namespace",f[f.All=7]="All",e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){var i=(n=P(n)).parent;if(300===n.kind)return 1;if(e.isExportAssignment(i)||e.isExportSpecifier(i)||e.isExternalModuleReference(i)||e.isImportSpecifier(i)||e.isImportClause(i)||e.isImportEqualsDeclaration(i)&&n===i.name){for(var a=i;a;){if(e.isImportEqualsDeclaration(a)||e.isImportClause(a)||e.isExportDeclaration(a))return a.isTypeOnly?2:7;a=a.parent}return 7}return r(n)?function(t){var r=159===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&263===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(i):e.isEntityName(n)&&e.findAncestor(n,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:function(t){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 108:return!e.isExpressionNode(t);case 190:return!0}switch(t.parent.kind){case 176:return!0;case 198:return!t.parent.isTypeOf;case 226:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(159===t.parent.kind){for(;t.parent&&159===t.parent.kind;)t=t.parent;r=t.right===e}return 176===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(204===t.parent.kind){for(;t.parent&&204===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&226===t.parent.kind&&289===t.parent.parent.kind){var n=t.parent.parent.parent;return 255===n.kind&&117===t.parent.parent.token||256===n.kind&&94===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(i)?(e.Debug.assert(e.isJSDocTemplateTag(i.parent)),2):e.isLiteralTypeNode(i)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isCallExpression,n,r,i)},e.isNewExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isNewExpression,n,r,i)},e.isCallOrNewExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isCallOrNewExpression,n,r,i)},e.isTaggedTemplateTag=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isTaggedTemplateExpression,i,r,n)},e.isDecoratorTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isDecorator,n,r,i)},e.isJsxOpeningLikeElementTagName=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isJsxOpeningLikeElement,o,r,n)},e.climbPastPropertyAccess=c,e.climbPastPropertyOrElementAccess=l,e.getTargetLabel=function(e,t){for(;e;){if(248===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(t,r){return!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r},e.isJumpStatementTarget=u,e.isLabelOfLabeledStatement=_,e.isLabelName=function(e){return _(e)||u(e)},e.isTagName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=d,e.isArgumentExpressionOfElementAccess=p,e.isNameOfModuleDeclaration=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=function(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 165:case 164:case 291:case 294:case 167:case 166:case 170:case 171:case 259:return e.getNameOfDeclaration(t.parent)===t;case 205:return t.parent.argumentExpression===t;case 160:return!0;case 194:return 192===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 300:case 167:case 166:case 254:case 211:case 170:case 171:case 255:case 256:case 258:case 259:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 300:return e.isExternalModule(r)?"module":"script";case 259:return"module";case 255:case 224:return"class";case 256:return"interface";case 257:case 333:case 340:return"type";case 258:return"enum";case 252:return c(r);case 201:return c(e.getRootDeclaration(r));case 212:case 254:case 211:return"function";case 170:return"getter";case 171:return"setter";case 167:case 166:return"method";case 291:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 165:case 164:case 292:case 293:return"property";case 174:return"index";case 173:return"construct";case 172:return"call";case 169:case 168:return"constructor";case 161:return"type parameter";case 294:return"enum member";case 162:return e.hasSyntacticModifier(r,16476)?"property":"parameter";case 263:case 268:case 273:case 266:case 272:return"alias";case 219:var i=e.getAssignmentDeclarationKind(r),a=r.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=t(a);return""===o?"const":o;case 3:case 5:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 6:return"local class";default:return e.assertType(i),""}case 79:return e.isImportClause(r.parent)?"alias":"";case 269:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(t)&&162===t.parent.kind;default:return!1}};var g,m=/^\/\/\/\s*</;function y(e,t){return v(e.pos,e.end,t)}function h(e,t){return e.pos<t&&t<e.end}function v(e,t,r){return e<=r.pos&&t>=r.end}function b(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function x(t,r){if(void 0===t||e.nodeIsMissing(t))return!1;switch(t.kind){case 255:case 256:case 258:case 203:case 199:case 180:case 233:case 260:case 261:case 267:case 271:return D(t,19,r);case 290:return x(t.block,r);case 207:if(!t.arguments)return!0;case 206:case 210:case 189:return D(t,21,r);case 177:case 178:return x(t.type,r);case 169:case 170:case 171:case 254:case 211:case 167:case 166:case 173:case 172:case 212:return t.body?x(t.body,r):t.type?x(t.type,r):S(t,21,r);case 259:return!!t.body&&x(t.body,r);case 237:return t.elseStatement?x(t.elseStatement,r):x(t.thenStatement,r);case 236:return x(t.expression,r)||S(t,26,r);case 202:case 200:case 205:case 160:case 182:return D(t,23,r);case 174:return t.type?x(t.type,r):S(t,23,r);case 287:case 288:return!1;case 240:case 241:case 242:case 239:return x(t.statement,r);case 238:return S(t,115,r)?D(t,21,r):x(t.statement,r);case 179:return x(t.exprName,r);case 214:case 213:case 215:case 222:case 223:return x(t.expression,r);case 208:return x(t.template,r);case 221:return x(e.lastOrUndefined(t.templateSpans),r);case 231:return e.nodeIsPresent(t.literal);case 270:case 264:return e.nodeIsPresent(t.moduleSpecifier);case 217:return x(t.operand,r);case 219:return x(t.right,r);case 220:return x(t.whenFalse,r);default:return!0}}function D(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.last(i);if(a.kind===r)return!0;if(26===a.kind&&1!==i.length)return i[i.length-2].kind===r}return!1}function S(e,t,r){return!!E(e,t,r)}function E(t,r,n){return e.find(t.getChildren(n),(function(e){return e.kind===r}))}function T(t){var r=e.find(t.parent.getChildren(),(function(r){return e.isSyntaxList(r)&&y(r,t)}));return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function C(e){return 88===e.kind}function k(e){return 84===e.kind}function A(e){return 98===e.kind}function N(t,r){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(e.isNamedImports(t.importClause.namedBindings)){var n=e.singleOrUndefined(t.importClause.namedBindings.elements);if(!n)return;return n.name}if(e.isNamespaceImport(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!r)return t.moduleSpecifier}function F(t,r){if(t.exportClause){if(e.isNamedExports(t.exportClause)){if(!e.singleOrUndefined(t.exportClause.elements))return;return t.exportClause.elements[0].name}if(e.isNamespaceExport(t.exportClause))return t.exportClause.name}if(!r)return t.moduleSpecifier}function w(t,r){var n=t.parent;if((e.isModifier(t)&&(r||88!==t.kind)?e.contains(n.modifiers,t):84===t.kind?e.isClassDeclaration(n)||e.isClassExpression(t):98===t.kind?e.isFunctionDeclaration(n)||e.isFunctionExpression(t):118===t.kind?e.isInterfaceDeclaration(n):92===t.kind?e.isEnumDeclaration(n):150===t.kind?e.isTypeAliasDeclaration(n):141===t.kind||140===t.kind?e.isModuleDeclaration(n):100===t.kind?e.isImportEqualsDeclaration(n):135===t.kind?e.isGetAccessorDeclaration(n):147===t.kind&&e.isSetAccessorDeclaration(n))&&(a=function(t,r){if(!r)switch(t.kind){case 255:case 224:return function(t){if(e.isNamedDeclaration(t))return t.name;if(e.isClassDeclaration(t)){var r=t.modifiers&&e.find(t.modifiers,C);if(r)return r}if(e.isClassExpression(t)){var n=e.find(t.getChildren(),k);if(n)return n}}(t);case 254:case 211:return function(t){if(e.isNamedDeclaration(t))return t.name;if(e.isFunctionDeclaration(t)){var r=e.find(t.modifiers,C);if(r)return r}if(e.isFunctionExpression(t)){var n=e.find(t.getChildren(),A);if(n)return n}}(t)}if(e.isNamedDeclaration(t))return t.name}(n,r)))return a;if((113===t.kind||85===t.kind||119===t.kind)&&e.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(e.isIdentifier(i.name))return i.name}if(150===t.kind){if(e.isImportClause(n)&&n.isTypeOnly&&(a=N(n.parent,r)))return a;if(e.isExportDeclaration(n)&&n.isTypeOnly&&(a=F(n,r)))return a}if(127===t.kind){if(e.isImportSpecifier(n)&&n.propertyName||e.isExportSpecifier(n)&&n.propertyName||e.isNamespaceImport(n)||e.isNamespaceExport(n))return n.name;if(e.isExportDeclaration(n)&&n.exportClause&&e.isNamespaceExport(n.exportClause))return n.exportClause.name}if(100===t.kind&&e.isImportDeclaration(n)&&(a=N(n,r)))return a;if(93===t.kind){if(e.isExportDeclaration(n)&&(a=F(n,r)))return a;if(e.isExportAssignment(n))return e.skipOuterExpressions(n.expression)}if(144===t.kind&&e.isExternalModuleReference(n))return n.expression;if(154===t.kind&&(e.isImportDeclaration(n)||e.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((94===t.kind||117===t.kind)&&e.isHeritageClause(n)&&n.token===t.kind){var a=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(a)return a}if(94===t.kind){if(e.isTypeParameterDeclaration(n)&&n.constraint&&e.isTypeReferenceNode(n.constraint))return n.constraint.typeName;if(e.isConditionalTypeNode(n)&&e.isTypeReferenceNode(n.extendsType))return n.extendsType.typeName}if(136===t.kind&&e.isInferTypeNode(n))return n.typeParameter.name;if(101===t.kind&&e.isTypeParameterDeclaration(n)&&e.isMappedTypeNode(n.parent))return n.name;if(139===t.kind&&e.isTypeOperatorNode(n)&&139===n.operator&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(143===t.kind&&e.isTypeOperatorNode(n)&&143===n.operator&&e.isArrayTypeNode(n.type)&&e.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!r){if((103===t.kind&&e.isNewExpression(n)||114===t.kind&&e.isVoidExpression(n)||112===t.kind&&e.isTypeOfExpression(n)||131===t.kind&&e.isAwaitExpression(n)||125===t.kind&&e.isYieldExpression(n)||89===t.kind&&e.isDeleteExpression(n))&&n.expression)return e.skipOuterExpressions(n.expression);if((101===t.kind||102===t.kind)&&e.isBinaryExpression(n)&&n.operatorToken===t)return e.skipOuterExpressions(n.right);if(127===t.kind&&e.isAsExpression(n)&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(101===t.kind&&e.isForInStatement(n)||158===t.kind&&e.isForOfStatement(n))return e.skipOuterExpressions(n.expression)}return t}function P(e){return w(e,!1)}function I(e,t,r){return L(e,t,!1,r,!1)}function O(e,t){return L(e,t,!0,void 0,!1)}function L(e,t,r,n,i){var a=e;e:for(;;){for(var o=0,s=a.getChildren(e);o<s.length;o++){var c=s[o];if((r?c.getFullStart():c.getStart(e,!0))>t)break;var l=c.getEnd();if(t<l||t===l&&(1===c.kind||i)){a=c;continue e}if(n&&l===t){var u=R(t,e,c);if(u&&n(u))return u}}return a}}function M(t,r,n){return function r(i){return e.isToken(i)&&i.pos===t.end?i:e.firstDefined(i.getChildren(n),(function(e){return(e.pos<=t.pos&&e.end>t.end||e.pos===t.end)&&q(e,n)?r(e):void 0}))}(r)}function R(t,r,n,i){var a=function a(o){if(B(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,(function(e,t){return t}),(function(e,r){return t<s[e].end?!s[e-1]||t>=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var l=s[c];if(t<l.end){if(l.getStart(r,!i)>=t||!q(l,r)||V(l)){var u=J(s,c,r);return u&&j(u,r)}return a(l)}}e.Debug.assert(void 0!==n||300===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var _=J(s,s.length,r);return _&&j(_,r)}(n||r);return e.Debug.assert(!(a&&V(a))),a}function B(t){return e.isToken(t)&&!V(t)}function j(e,t){if(B(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=J(r,r.length,t);return n&&j(n,t)}function J(t,r,n){for(var i=r-1;i>=0;i--)if(V(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(q(t[i],n))return t[i]}function V(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function U(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)<s){var c=R(s+1,n);if(c&&c.kind===r)return c}for(var l=t.kind,u=0;;){var _=R(t.getFullStart(),n);if(!_)return;if((t=_).kind===r){if(0===u)return t;u--}else t.kind===l&&u++}}}function K(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function z(t,r,n){var i=n.getTypeAtLocation(t);return e.isOptionalChain(t.parent)&&(i=K(i,e.isOptionalChainRoot(t.parent),!0)),(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter((function(e){return!!e.typeParameters&&e.typeParameters.length>=r}))}function G(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=R(n.getFullStart(),r))&&28===n.kind&&(n=R(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=U(n,18,r)))return;break;case 21:if(!(n=U(n,20,r)))return;break;case 23:if(!(n=U(n,22,r)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 139:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=R(n.getFullStart(),r)}}function W(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function q(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function H(e,t,r){var n=W(e,t,void 0);return!!n&&r===m.test(e.text.substring(n.pos,n.end))}function Y(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function X(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function Q(e,t){return{span:e,newText:t}}function $(e){return 150===e.kind}function Z(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}function ee(e,t){return a(a({},Z(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function te(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?re(n,i):n)}function re(t,r){return e.factory.createStringLiteral(t,0===r)}function ne(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ie(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)}));return n?ne(n,t):1}function ae(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(function(t){var r=e.getNameOfDeclaration(t);return r&&79===r.kind?r.escapedText:void 0}))}function oe(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function se(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ce(e){return e.declarations&&e.declarations.length>0&&162===e.declarations[0].kind}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=y,e.rangeContainsRangeExclusive=function(e,t){return h(e,t.pos)&&h(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=h,e.startEndContainsRange=v,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return b(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return b(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=b,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),r<t.end||!x(t,n)},e.findListItemInfo=function(t){var r=T(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOfNode(n,t),list:r}}},e.hasChildOfKind=S,e.findChildOfKind=E,e.findContainingList=T,e.getContextualTypeOrAncestorTypeNodeType=function(t,r){var n=r.getContextualType(t);if(n)return n;var i=t.parent;if(i&&e.isBinaryExpression(i)&&Me(i.operatorToken.kind))return r.getTypeAtLocation(t===i.left?i.right:i.left);var a=function(t){var r;return e.findAncestor(t,(function(t){return e.isTypeNode(t)&&(r=t),!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)})),r}(t);return a&&r.getTypeAtLocation(a)},e.getAdjustedReferenceLocation=P,e.getAdjustedRenameLocation=function(e){return w(e,!0)},e.getTouchingPropertyName=function(t,r){return I(t,r,(function(t){return e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)||e.isPrivateIdentifier(t)}))},e.getTouchingToken=I,e.getTokenAtPosition=O,e.findFirstNonJsxWhitespaceToken=function(e,t){for(var r=O(e,t);V(r);){var n=M(r,r.parent,e);if(!n)return;r=n}return r},e.findTokenOnLeftOfPosition=function(t,r){var n=O(t,r);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:R(r,t)},e.findNextToken=M,e.findPrecedingToken=R,e.isInString=function(t,r,n){if(void 0===n&&(n=R(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(i<r&&r<a)return!0;if(r===a)return!!n.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=function(e,t){var r=O(e,t);return!!r&&(11===r.kind||29===r.kind&&11===r.parent.kind||29===r.kind&&286===r.parent.kind||!(!r||19!==r.kind||286!==r.parent.kind)||29===r.kind&&279===r.parent.kind)},e.isInTemplateString=function(t,r){var n=O(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)},e.isInJSXText=function(t,r){var n=O(t,r);return!!e.isJsxText(n)||!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=277&&r.kind<=286||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(276!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(O(e,t))},e.findPrecedingMatchingToken=U,e.removeOptionality=K,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=G(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==z(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=z,e.getPossibleTypeArgumentsInfo=G,e.isInComment=W,e.hasDocComment=function(t,r){var n=O(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t,r){void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&n.push("static"),128&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),8388608&t.flags&&n.push("declare"),269===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 176===t.kind||206===t.kind?t.typeArguments:e.isFunctionLike(t)||255===t.kind||256===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=78},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)<r&&r<t.end||!!t.isUnterminated&&r===t.end},e.isAccessibilityModifier=function(e){switch(e){case 123:case 121:case 122:return!0}return!1},e.cloneCompilerOptions=function(t){var r=e.clone(t);return e.setConfigFileInOptions(r,t&&t.configFile),r},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(202===t.kind||203===t.kind){if(219===t.parent.kind&&t.parent.left===t&&63===t.parent.operatorToken.kind)return!0;if(242===t.parent.kind&&t.parent.initializer===t)return!0;if(e(291===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.isInReferenceComment=function(e,t){return H(e,t,!0)},e.isInNonReferenceComment=function(e,t){return H(e,t,!1)},e.getReplacementSpanForContextToken=function(e){if(e)switch(e.kind){case 10:case 14:return X(e);default:return Y(e)}},e.createTextSpanFromNode=Y,e.createTextSpanFromStringLiteralLikeContent=X,e.createTextRangeFromNode=function(t,r){return e.createRange(t.getStart(r),t.end)},e.createTextSpanFromRange=function(t){return e.createTextSpanFromBounds(t.pos,t.end)},e.createTextRangeFromSpan=function(t){return e.createRange(t.start,t.start+t.length)},e.createTextChangeFromStartLength=function(t,r,n){return Q(e.createTextSpan(t,r),n)},e.createTextChange=Q,e.typeKeywords=[129,128,156,132,95,136,139,142,104,145,146,143,148,149,110,114,151,152,153],e.isTypeKeyword=function(t){return e.contains(e.typeKeywords,t)},e.isTypeKeywordToken=$,e.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},e.nodeSeenTracker=function(){var t=[];return function(r){var n=e.getNodeId(r);return!t[n]&&(t[n]=!0)}},e.getSnapshotText=function(e){return e.getText(0,e.getLength())},e.repeatString=function(e,t){for(var r="",n=0;n<t;n++)r+=e;return r},e.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},e.getNameFromPropertyName=function(t){return 160===t.kind?e.isStringOrNumericLiteralLike(t.expression)?t.expression.text:void 0:e.isPrivateIdentifier(t)?e.idText(t):e.getTextOfIdentifierOrLiteral(t)},e.programContainsModules=function(e){return e.getSourceFiles().some((function(t){return!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)}))},e.programContainsEs6Modules=function(e){return e.getSourceFiles().some((function(t){return!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator}))},e.compilerOptionsIndicateEs6Modules=function(e){return!!e.module||e.target>=2||!!e.noEmit},e.createModuleSpecifierResolutionHost=Z,e.getModuleSpecifierResolverHost=ee,e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?te(e,t,r,n):void 0},e.makeImport=te,e.makeStringLiteral=re,(g=e.QuotePreference||(e.QuotePreference={}))[g.Single=0]="Single",g[g.Double=1]="Double",e.quotePreferenceFromString=ne,e.getQuotePreference=ie,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=ae(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ae,e.isModuleSpecifierLike=function(t){return e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t)},e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!oe(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,(function(e){return e.kind===r}))},e.insertImports=function(t,r,n,i){var a=235===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;c<l.length;c++){var u=l[c],_=e.OrganizeImports.getImportDeclarationInsertionIndex(o,u);if(0===_){var d=o[0]===r.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(r,o[0],u,!1,d)}else{var p=o[_-1];t.insertNodeAfter(r,p,u)}}else{var f=e.lastOrUndefined(o);f?t.insertNodesAfter(r,f,s):t.insertNodesAtTopOfFile(r,s,i)}else t.insertNodesAtTopOfFile(r,s,i)},e.getTypeKeywordOfTypeOnlyImport=function(t,r){return e.Debug.assert(t.isTypeOnly),e.cast(t.getChildAt(0,r),$)},e.textSpansEqual=se,e.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&se(e.textSpan,t.textSpan)},e.forEachUnique=function(e,t){if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}},e.isTextWhiteSpaceLike=function(t,r,n){for(var i=r;i<n;i++)if(!e.isWhiteSpaceLike(t.charCodeAt(i)))return!1;return!0},e.isFirstDeclarationOfSymbolParameter=ce;var le=function(){var t,r,n,i,a=10*e.defaultMaximumTruncationLength;l();var o=function(t){return c(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var r=t.length&&t[t.length-1].text;return i>a&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(_e(" ",e.SymbolDisplayPartKind.space)),t.push(_e("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){i>a||(s(),i+=e.length,t.push(ue(e,r)))},writeLine:function(){i>a||(i+=1,t.push(ye()),r=!0)},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:l,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(_e(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(_e(e,r)))}function l(){t=[],r=!0,n=0,i=0}}();function ue(t,r){return _e(t,function(t){var r=t.flags;return 3&r?ce(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r||32768&r||65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r||2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(r))}function _e(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function de(t){return _e(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function pe(t){return _e(t,e.SymbolDisplayPartKind.text)}function fe(t){return _e(t,e.SymbolDisplayPartKind.linkText)}function ge(t,r){return{text:e.getTextOfNode(t),kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:Y(r)}}}function me(t){return _e(t,e.SymbolDisplayPartKind.link)}function ye(){return _e("\n",e.SymbolDisplayPartKind.lineBreak)}function he(e){try{return e(le),le.displayParts()}finally{le.clear()}}function ve(e){return 0!=(33554432&e.flags)}function be(e){return 0!=(2097152&e.flags)}function xe(e,t){void 0===t&&(t=!0);var r=e&&Se(e);return r&&!t&&Ce(r),r}function De(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=Se(t,n),i&&!r&&Ce(i),i}function Se(t,r){var n=r?function(e){return De(e,!0,r)}:xe,i=r?function(e){return e&&Te(e,!0,r)}:function(e){return e&&Ee(e)},a=e.visitEachChild(t,n,e.nullTransformationContext,i,n);if(a===t){var o=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(o,t)}return a.parent=void 0,a}function Ee(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((function(e){return xe(e,r)})),t.hasTrailingComma)}function Te(t,r,n){return e.factory.createNodeArray(t.map((function(e){return De(e,r,n)})),t.hasTrailingComma)}function Ce(e){ke(e),Ae(e)}function ke(e){Ne(e,512,Fe)}function Ae(t){Ne(t,1024,e.getLastChild)}function Ne(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&Ne(i,r,n)}function Fe(e){return e.forEachChild((function(e){return e}))}function we(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Oe(r,n,i,a,e.addSyntheticLeadingComment))}function Pe(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Oe(r,n,i,a,e.addSyntheticTrailingComment))}function Ie(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Oe(r,n,i,a,e.addSyntheticLeadingComment))}function Oe(e,t,r,n,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function Le(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function Me(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Re(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Be(e){return 172===e||173===e||174===e||164===e||166===e}function je(e){return 254===e||169===e||167===e||170===e||171===e}function Je(e){return 259===e}function Ve(e){return 235===e||236===e||238===e||243===e||244===e||245===e||249===e||251===e||165===e||257===e||264===e||263===e||270===e||262===e||269===e}function Ue(e,t){return ze(e,e.fileExists,t)}function Ke(e){try{return e()}catch(e){return}}function ze(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return Ke((function(){return t&&t.apply(e,r)}))}function Ge(t,r){if(!r.fileExists)return[];var n=[];return e.forEachAncestorDirectory(e.getDirectoryPath(t),(function(t){var i=e.combinePaths(t,"package.json");if(r.fileExists(i)){var a=We(i,r);a&&n.push(a)}})),n}function We(t,r){if(r.readFile){var n=function(e){try{return JSON.parse(e)}catch(e){return}}(r.readFile(t)||""),i={};if(n)for(var o=0,s=["dependencies","devDependencies","optionalDependencies","peerDependencies"];o<s.length;o++){var c=s[o],l=n[c];if(l){var u=new e.Map;for(var _ in l)u.set(_,l[_]);i[c]=u}}var d=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return a(a({},i),{parseable:!!n,fileName:t,get:p,has:function(e,t){return!!p(e,t)}})}function p(e,t){void 0===t&&(t=15);for(var r=0,n=d;r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(o&&t&a){var s=o.get(e);if(void 0!==s)return s}}}}function qe(t){return e.some(t.imports,(function(t){var r=t.text;return e.JsTyping.nodeCoreModules.has(r)}))}function He(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Ye(t){var r=t.getSourceFile();return!(!r.externalModuleIndicator&&!r.commonJsModuleIndicator)&&(e.isInJSFile(t)||!e.findAncestor(t,e.isGlobalScopeAugmentation))}e.symbolPart=ue,e.displayPart=_e,e.spacePart=function(){return _e(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=de,e.punctuationPart=function(t){return _e(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return _e(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.parameterNamePart=function(t){return _e(t,e.SymbolDisplayPartKind.parameterName)},e.propertyNamePart=function(t){return _e(t,e.SymbolDisplayPartKind.propertyName)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?pe(t):de(r)},e.textPart=pe,e.typeAliasNamePart=function(t){return _e(t,e.SymbolDisplayPartKind.aliasName)},e.typeParameterNamePart=function(t){return _e(t,e.SymbolDisplayPartKind.typeParameterName)},e.linkTextPart=fe,e.linkNamePart=ge,e.linkPart=me,e.buildLinkParts=function(t,r){var n,i=[me("{@"+(e.isJSDocLink(t)?"link":e.isJSDocLinkCode(t)?"linkcode":"linkplain")+" ")];if(t.name){var a=null==r?void 0:r.getSymbolAtLocation(t.name),o=(null==a?void 0:a.valueDeclaration)||(null===(n=null==a?void 0:a.declarations)||void 0===n?void 0:n[0]);o?(i.push(ge(t.name,o)),t.text&&i.push(fe(t.text))):i.push(fe(e.getTextOfNode(t.name)+" "+t.text))}else t.text&&i.push(fe(t.text));return i.push(me("}")),i},e.getNewLineOrDefaultFromHost=function(e,t){var r;return(null==t?void 0:t.newLineCharacter)||(null===(r=e.getNewLine)||void 0===r?void 0:r.call(e))||"\r\n"},e.lineBreakPart=ye,e.mapToDisplayParts=he,e.typeToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),he((function(i){e.writeType(t,r,17408|n,i)}))},e.symbolToDisplayParts=function(e,t,r,n,i){return void 0===i&&(i=0),he((function(a){e.writeSymbol(t,r,n,8|i,a)}))},e.signatureToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),n|=25632,he((function(i){e.writeSignature(t,r,n,void 0,i)}))},e.isImportOrExportSpecifierName=function(t){return!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t},e.getScriptKind=function(t,r){return e.ensureScriptKind(t,r.getScriptKind&&r.getScriptKind(t))},e.getSymbolTarget=function(t,r){for(var n=t;be(n)||ve(n)&&n.target;)n=ve(n)&&n.target?n.target:e.skipAlias(n,r);return n},e.getUniqueSymbolId=function(t,r){return e.getSymbolId(e.skipAlias(t,r))},e.getFirstNonSpaceCharacterPosition=function(t,r){for(;e.isWhiteSpaceLike(t.charCodeAt(r));)r+=1;return r},e.getPrecedingNonSpaceCharacterPosition=function(t,r){for(;r>-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=xe,e.getSynthesizedDeepCloneWithReplacements=De,e.getSynthesizedDeepClones=Ee,e.getSynthesizedDeepClonesWithReplacements=Te,e.suppressLeadingAndTrailingTrivia=Ce,e.suppressLeadingTrivia=ke,e.suppressTrailingTrivia=Ae,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i<n;i++)if(10===t.charCodeAt(i))return!0;return!1}(e,r.text)?Ie(e,t,r):we(e,t,r),Pe(e,t,r)},e.getUniqueName=function(t,r){for(var n=t,i=1;!e.isFileLevelUniqueName(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 l=c[s],u=l.fileName,_=l.textChanges;e.Debug.assert(u===r);for(var d=0,p=_;d<p.length;d++){var f=p[d],g=f.span,m=f.newText,y=Le(m,n);if(-1!==y&&(o=g.start+a+y,!i))return o;a+=m.length-g.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o},e.copyLeadingComments=we,e.copyTrailingComments=Pe,e.copyTrailingAsLeadingComments=Ie,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression)},e.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 207:return t.getContextualType(r);case 219:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Me(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 287:return r.expression===e?Re(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r,n){var i=ie(t,r),a=JSON.stringify(n);return 0===i?"'"+e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":a},e.isEqualityOperatorKind=Me,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 221:case 208:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=Re,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){return!(a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility)},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:ee(r,n)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Be,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=je,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Je,e.syntaxRequiresTrailingSemicolonOrASI=Ve,e.syntaxMayBeASICandidate=e.or(Be,je,Je,Ve),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,(function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Be(t.kind)){if(n&&27===n.kind)return!1}else if(Je(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(je(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Ve(t.kind))return!1;if(238===t.kind)return!0;var a=M(t,e.findAncestor(t,(function(e){return!e.parent})),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=function(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(Ve(a.kind)){var o=a.getLastToken(t);o&&26===o.kind?r++:n++}return r+n>=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2},e.tryGetDirectories=function(e,t){return ze(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return ze(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=Ue,e.tryDirectoryExists=function(t,r){return Ke((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=Ke,e.tryIOAndConsumeErrors=ze,e.findPackageJsons=function(t,r,n){var i=[];return e.forEachAncestorDirectory(t,(function(t){if(t===n)return!0;var a=e.combinePaths(t,"package.json");Ue(r,a)&&i.push(a)})),i},e.findPackageJson=function(t,r){var n;return e.forEachAncestorDirectory(t,(function(t){return"node_modules"===t||!!(n=e.findConfigFile(t,(function(e){return Ue(r,e)}),"package.json"))||void 0})),n},e.getPackageJsonsVisibleToFile=Ge,e.createPackageJsonInfo=We,e.createPackageJsonImportFilter=function(t,r,n){var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||Ge(t.fileName,n)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(t,r){if(!a.length||!t.valueDeclaration)return!0;var n=c(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());return!!s(i)||(o(n)||o(i))},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;var r=c(e.fileName,t);return!r||o(r)},allowsImportingSpecifier:function(t){return!(a.length&&!s(t))||(!(!e.pathIsRelative(t)&&!e.isRootedDiskPath(t))||o(t))}};function o(t){for(var r=l(t),n=0,i=a;n<i.length;n++){var o=i[n];if(o.has(r)||o.has(e.getTypesPackageName(r)))return!0}return!1}function s(r){return!!(e.isSourceFileJS(t)&&e.JsTyping.nodeCoreModules.has(r)&&(void 0===i&&(i=qe(t)),i))}function c(i,a){if(e.stringContains(i,"node_modules")){var o=e.moduleSpecifiers.getNodeModulesPackageName(n.getCompilationSettings(),t.path,i,a,r);if(o)return e.pathIsRelative(o)||e.isRootedDiskPath(o)?void 0:l(o)}}function l(t){var r=e.getPathComponents(e.getPackageNameFromTypesPackageName(t)).slice(1);return e.startsWith(r[0],"@")?r[0]+"/"+r[1]:r[0]}},e.consumesNodeCoreModules=qe,e.isInsideNodeModules=function(t){return e.contains(e.getPathComponents(t),"node_modules")},e.isDiagnosticWithLocation=He,e.findDiagnosticForNode=function(t,r){var n=Y(t),i=e.binarySearchKey(r,n,e.identity,e.compareTextSpans);if(i>=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,He)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],He);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNameForExportedSymbol=function(t,r){return 33554432&t.flags||"export="!==t.escapedName&&"default"!==t.escapedName?t.name:e.firstDefined(t.declarations,(function(t){var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(function(t){var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(t.flags)+". Declarations: "+(null===(r=t.declarations)||void 0===r?void 0:r.map((function(t){var r=e.Debug.formatSyntaxKind(t.kind),n=e.isInJSFile(t),i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: "+e.Debug.formatSyntaxKind(i.kind)+")":"")})).join(", "))+".")}(t),r)},e.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+r))return!1;return!0},e.startsWithUnderscore=function(e){return 95===e.charCodeAt(0)},e.isGlobalDeclaration=function(e){return!Ye(e)},e.isNonGlobalDeclaration=Ye,e.isDeprecatedDeclaration=function(t){return!!(8192&e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t))},e.shouldUseUriStyleNodeCoreModules=function(t,r){var n=e.firstDefined(t.imports,(function(t){if(e.JsTyping.nodeCoreModules.has(t.text))return e.startsWith(t.text,"node:")}));return null!=n?n:r.usesUriStyleNodeCoreModules}}(u||(u={})),function(e){function t(t){var r,n=1,i=e.createMultiMap(),a=new e.Map,o={isUsableByFile:function(e){return e===r},isEmpty:function(){return!i.size},clear:function(){i.clear(),a.clear(),r=void 0},add:function(t,s,l,u,_,d,p,f,g){t!==r&&(o.clear(),r=t);var m=1===d&&e.getLocalSymbolForExportDefault(s)||s,y=e.isExternalModuleSymbol(m)?e.unescapeLeadingUnderscores(l):e.getNameForExportedSymbol(m,f),h=e.stripQuotes(u.name),v=n++,b=33554432&s.flags?void 0:s,x=33554432&u.flags?void 0:u;b&&x||a.set(v,[s,u]),i.add(c(y,s,h,g),{id:v,symbolTableKey:l,symbolName:y,moduleName:h,moduleFile:_,moduleFileName:null==_?void 0:_.fileName,exportKind:d,targetFlags:e.skipAlias(s,g).flags,isFromPackageJson:p,symbol:b,moduleSymbol:x})},get:function(e,t,n,a,o){if(e===r){var l=i.get(c(t,n,a,o));return null==l?void 0:l.map(s)}},forEach:function(e,t){e===r&&i.forEach((function(e,r){var n=function(e){var t=e.substring(0,e.indexOf("|")),r=e.substring(e.lastIndexOf("|")+1);return{symbolName:t,ambientModuleName:"/"===r?void 0:r}}(r),i=n.symbolName,a=n.ambientModuleName;t(e.map(s),i,!!a)}))},releaseSymbols:function(){a.clear()},onFileChanged:function(t,n,i){return!(l(t)&&l(n)||(r&&r!==n.path||i&&e.consumesNodeCoreModules(t)!==e.consumesNodeCoreModules(n)||!e.arrayIsEqualTo(t.moduleAugmentations,n.moduleAugmentations)||!function(t,r){if(!e.arrayIsEqualTo(t.ambientModuleNames,r.ambientModuleNames))return!1;for(var n=-1,i=-1,a=function(a){var o=function(t){return e.isNonGlobalAmbientModule(t)&&t.name.text===a};if(n=e.findIndex(t.statements,o,n+1),i=e.findIndex(r.statements,o,i+1),t.statements[n]!==r.statements[i])return{value:!1}},o=0,s=r.ambientModuleNames;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return!0}(t,n)?(o.clear(),0):(r=n.path,1)))}};return e.Debug.isDebugging&&Object.defineProperty(o,"__cache",{get:function(){return i}}),o;function s(r){if(r.symbol&&r.moduleSymbol)return r;var n=r.id,i=r.exportKind,o=r.targetFlags,s=r.isFromPackageJson,c=r.moduleFileName,l=a.get(n)||e.emptyArray,u=l[0],_=l[1];if(u&&_)return{symbol:u,moduleSymbol:_,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s};var d=(s?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),p=r.moduleSymbol||_||e.Debug.checkDefined(r.moduleFile?d.getMergedSymbol(r.moduleFile.symbol):d.tryFindAmbientModule(r.moduleName)),f=r.symbol||u||e.Debug.checkDefined(2===i?d.resolveExternalModuleSymbol(p):d.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(r.symbolTableKey),p),"Could not find symbol '"+r.symbolName+"' by key '"+r.symbolTableKey+"' in module "+p.name);return a.set(n,[f,p]),{symbol:f,moduleSymbol:p,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s}}function c(t,r,n,i){var a=e.stripQuotes(n),o=e.isExternalModuleNameRelative(a)?"/":a;return t+"|"+function(e){for(var t=e.name;e.parent;)t+=","+e.parent.name,e=e.parent;return t}(e.skipAlias(r,i))+"|"+o}function l(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function r(t,r,i,a){var o,s;n(t.getTypeChecker(),t.getSourceFiles(),(function(e,r){return a(e,r,t,!1)}));var c=i&&(null===(o=r.getPackageJsonAutoImportProvider)||void 0===o?void 0:o.call(r));if(c){var l=e.timestamp();n(c.getTypeChecker(),c.getSourceFiles(),(function(e,t){return a(e,t,c,!0)})),null===(s=r.log)||void 0===s||s.call(r,"forEachExternalModuleToImportFrom autoImportProvider: "+(e.timestamp()-l))}}function n(t,r,n){for(var i=0,a=t.getAmbientModules();i<a.length;i++){var o=a[i];e.stringContains(o.name,"*")||n(o,void 0)}for(var s=0,c=r;s<c.length;s++){var l=c[s];e.isExternalOrCommonJsModule(l)&&n(t.getMergedSymbol(l.symbol),l)}}function i(e,t,r){var n=function(e,t){var r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};var n=t.tryGetMemberInModuleExports("default",e);return n?{symbol:n,exportKind:1}:void 0}(e,t);if(n){var i=n.symbol,o=n.exportKind,c=s(i,t,r);return c&&a({symbol:i,exportKind:o},c)}}function o(t,r){return!(r.isUndefinedSymbol(t)||r.isUnknownSymbol(t)||e.isKnownSymbol(t)||e.isPrivateIdentifierSymbol(t))}function s(t,r,n){var i=e.getLocalSymbolForExportDefault(t);if(i)return{symbolForMeaning:i,name:i.name};var a,o=(a=t).declarations&&e.firstDefined(a.declarations,(function(t){var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:e.isExportSpecifier(t)?(e.Debug.assert("default"===t.name.text,"Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text):void 0}));if(void 0!==o)return{symbolForMeaning:t,name:o};if(2097152&t.flags){var c=r.getImmediateAliasedSymbol(t);if(c&&c.parent)return s(c,r,n)}return"default"!==t.escapedName&&"export="!==t.escapedName?{symbolForMeaning:t,name:t.getName()}:{symbolForMeaning:t,name:e.getNameForExportedSymbol(t,n.target)}}var c,l;(l=e.ImportKind||(e.ImportKind={}))[l.Named=0]="Named",l[l.Default=1]="Default",l[l.Namespace=2]="Namespace",l[l.CommonJS=3]="CommonJS",(c=e.ExportKind||(e.ExportKind={}))[c.Named=0]="Named",c[c.Default=1]="Default",c[c.ExportEquals=2]="ExportEquals",c[c.UMD=3]="UMD",e.createCacheableExportInfoMap=t,e.isImportableFile=function(t,r,n,i,a,o,s){var c;if(r===n)return!1;var l=null==s?void 0:s.get(r.path,n.path,i);if(void 0!==(null==l?void 0:l.isAutoImportable))return l.isAutoImportable;var u=e.hostGetCanonicalFileName(o),_=null===(c=o.getGlobalTypingsCacheLocation)||void 0===c?void 0:c.call(o),d=!!e.moduleSpecifiers.forEachFileNameOfModule(r.fileName,n.fileName,o,!1,(function(i){var a=t.getSourceFile(i);return(a===n||!a)&&function(t,r,n,i){var a=e.forEachAncestorDirectory(r,(function(t){return"node_modules"===e.getBaseFileName(t)?t:void 0})),o=a&&e.getDirectoryPath(n(a));return void 0===o||e.startsWith(n(t),o)||!!i&&e.startsWith(n(i),o)}(r.fileName,i,u,_)}));if(a){var p=d&&a.allowsImportingSourceFile(n,o);return null==s||s.setIsAutoImportable(r.path,n.path,i,p),p}return d},e.forEachExternalModuleToImportFrom=r,e.getExportInfoMap=function(n,a,s,c){var l,u,_,d,p,f=e.timestamp();null===(l=a.getPackageJsonAutoImportProvider)||void 0===l||l.call(a);var g=(null===(u=a.getCachedExportInfoMap)||void 0===u?void 0:u.call(a))||t({getCurrentProgram:function(){return s},getPackageJsonAutoImportProvider:function(){var e;return null===(e=a.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(a)}});if(g.isUsableByFile(n.path))return null===(_=a.log)||void 0===_||_.call(a,"getExportInfoMap: cache hit"),g;null===(d=a.log)||void 0===d||d.call(a,"getExportInfoMap: cache miss or empty; calculating new results");var m=s.getCompilerOptions(),y=e.getEmitScriptTarget(m),h=0;return r(s,a,!0,(function(t,r,a,s){++h%100==0&&(null==c||c.throwIfCancellationRequested());var l=new e.Map,u=a.getTypeChecker(),_=i(t,u,m);_&&o(_.symbol,u)&&g.add(n.path,_.symbol,1===_.exportKind?"default":"export=",t,r,_.exportKind,s,y,u),u.forEachExportAndPropertyOfModule(t,(function(i,a){i!==(null==_?void 0:_.symbol)&&o(i,u)&&e.addToSeen(l,i)&&g.add(n.path,i,a,t,r,0,s,y,u)}))})),null===(p=a.log)||void 0===p||p.call(a,"getExportInfoMap: done in "+(e.timestamp()-f)+" ms"),g},e.getDefaultLikeExportInfo=i}(u||(u={})),function(e){e.createClassifier=function(){var o=e.createScanner(99,!1);function s(i,s,c){var l=0,u=0,_=[],d=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 g=p.length;f&&_.push(15),o.setText(i);var m=0,y=[],h=0;do{l=o.scan(),e.isTrivia(l)||(x(),u=l);var v=o.getTextPos();if(n(o.getTokenPos(),v,g,a(l),y),v>=i.length){var b=r(o,l,e.lastOrUndefined(_));void 0!==b&&(m=b)}}while(1!==l);function x(){switch(l){case 43:case 68:t[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&h++;break;case 31:h>0&&h--;break;case 129:case 148:case 145:case 132:case 149:h>0&&!c&&(l=79);break;case 15:_.push(l);break;case 18:_.length>0&&_.push(l);break;case 19:if(_.length>0){var r=e.lastOrUndefined(_);15===r?17===(l=o.reScanTemplateToken(!1))?_.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 135:case 147:case 133:case 124:return!0;default:return!1}}(u,l))&&(l=79)}}return{endOfLineState:m,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],l=a[s+1],u=a[s+2];if(o>=0){var _=c-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace})}n.push({length:l,classification:i(u)}),o=c+l}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([79,10,8,9,13,108,45,46,21,23,19,110,95],(function(e){return e}),(function(){return!0}));function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=78)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 259:case 255:case 256:case 254:case 224:case 211:case 212:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function l(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var _=t.getSymbolAtLocation(u),d=_&&c(_,e.getMeaningFromLocation(u),t);d&&function(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of "+i),s.push(t),s.push(i),s.push(n)}(u.getStart(n),u.getEnd(),d)}u.forEachChild(l)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i<r.length;i+=3)n.push({textSpan:e.createTextSpan(r[i],r[i+1]),classificationType:l(r[i+2])});return n}function _(t,r,n){var i=n.start,a=n.length,s=e.createScanner(99,!1,r.languageVariant,r.text),c=e.createScanner(99,!1,r.languageVariant,r.text),l=[];return h(r),{spans:l,endOfLineState:0};function u(e,t,r){l.push(e),l.push(t),l.push(r)}function _(t,n,i,a){if(3===n){var o=e.parseIsolatedJSDocComment(r.text,i,a);if(o&&o.jsDoc)return e.setParent(o.jsDoc,t),void function(e){var t,r,n,i,a,o,s,c=e.pos;if(e.tags)for(var l=0,_=e.tags;l<_.length;l++){var f=_[l];f.pos!==c&&d(c,f.pos-c),u(f.pos,1,10),u(f.tagName.pos,f.tagName.end-f.tagName.pos,18),c=f.tagName.end;var g=f.tagName.end;switch(f.kind){case 335:var m=f;b(m),g=m.isNameFirst&&(null===(t=m.typeExpression)||void 0===t?void 0:t.end)||m.name.end;break;case 342:var y=f;g=y.isNameFirst&&(null===(r=y.typeExpression)||void 0===r?void 0:r.end)||y.name.end;break;case 339:p(f),c=f.end,g=f.typeParameters.end;break;case 340:var v=f;g=304===(null===(n=v.typeExpression)||void 0===n?void 0:n.kind)&&(null===(i=v.fullName)||void 0===i?void 0:i.end)||(null===(a=v.typeExpression)||void 0===a?void 0:a.end)||g;break;case 333:case 337:case 334:g=f.typeExpression.end;break;case 338:h(f.typeExpression),c=f.end,g=f.typeExpression.end;break;case 336:h(f.typeExpression),c=f.end,g=(null===(o=f.typeExpression)||void 0===o?void 0:o.end)||g;break;case 341:g=(null===(s=f.name)||void 0===s?void 0:s.end)||g;break;case 323:case 324:g=f.class.end}"object"==typeof f.comment?d(f.comment.pos,f.comment.end-f.comment.pos):"string"==typeof f.comment&&d(g,f.end-g)}return void(c!==e.end&&d(c,e.end-c));function b(e){e.isNameFirst&&(d(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end),e.typeExpression&&(d(c,e.typeExpression.pos-c),h(e.typeExpression),c=e.typeExpression.end),e.isNameFirst||(d(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end)}}(o.jsDoc)}else if(2===n&&function(t,n){var i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,a=r.text.substr(t,n),o=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;d(s,o[1].length),u(s+=o[1].length,o[2].length,10),u(s+=o[2].length,o[3].length,21),s+=o[3].length;for(var c=o[4],l=s;;){var _=i.exec(c);if(!_)break;var p=s+_.index+_[1].length;p>l&&(d(l,p-l),l=p),u(l,_[2].length,22),l+=_[2].length,_[3].length&&(d(l,_[3].length),l+=_[3].length),u(l,_[4].length,5),l+=_[4].length,_[5].length&&(d(l,_[5].length),l+=_[5].length),u(l,_[6].length,24),l+=_[6].length}(s+=o[4].length)>l&&d(l,s-l),o[5]&&(u(s,o[5].length,10),s+=o[5].length);var f=t+n;return s<f&&d(s,f-s),!0}(i,a))return;d(i,a)}function d(e,t){u(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(u(r,i-r,1),c.setTextPos(i);c.getTextPos()<n;)g()}function g(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos(),n=y(t);n&&u(e,r-e,n)}function m(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var n=function(e){switch(e.parent&&e.parent.kind){case 278:if(e.parent.tagName===e)return 19;break;case 279:if(e.parent.tagName===e)return 20;break;case 277:if(e.parent.tagName===e)return 21;break;case 283:if(e.parent.name===e)return 22}}(t);if(!e.isToken(t)&&11!==t.kind&&void 0===n)return!1;var i=11===t.kind?t.pos:function(t){for(s.setTextPos(t.pos);;){var n=s.getTextPos();if(!e.couldStartTrivia(r.text,n))return n;var i=s.scan(),a=s.getTextPos(),o=a-n;if(!e.isTrivia(i))return n;switch(i){case 4:case 5:continue;case 2:case 3:_(t,i,n,o),s.setTextPos(a);continue;case 7:var c=r.text,l=c.charCodeAt(n);if(60===l||62===l){u(n,o,1);continue}e.Debug.assert(124===l||61===l),f(c,n,a);break;case 6:break;default:e.Debug.assertNever(i)}}}(t),a=t.end-i;if(e.Debug.assert(a>=0),a>0){var o=n||y(t.kind,t);o&&u(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(63===t&&(252===n.kind||165===n.kind||162===n.kind||283===n.kind))return 5;if(219===n.kind||217===n.kind||218===n.kind||220===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&283===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(r)switch(r.parent.kind){case 255:return r.parent.name===r?11:void 0;case 161:return r.parent.name===r?15:void 0;case 256:return r.parent.name===r?13:void 0;case 258:return r.parent.name===r?12:void 0;case 259:return r.parent.name===r?14:void 0;case 162: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 l=c[s];m(l)||h(l)}}}}e.getSemanticClassifications=function(e,t,r,n,i){return u(s(e,t,r,n,i))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,t,r){return u(_(e,t,r))},e.getEncodedSyntacticClassifications=_}(u||(u={})),function(e){var t;(function(t){function r(e,t,r,i){return{spans:n(e,r,i,t),endOfLineState:0}}function n(t,r,n,o){var s=[];return t&&r&&function(t,r,n,o,s){var c=t.getTypeChecker(),u=!1;!function _(d){switch(d.kind){case 259:case 255:case 256:case 254:case 224:case 211:case 212:s.throwIfCancellationRequested()}if(d&&e.textSpanIntersectsWith(n,d.pos,d.getFullWidth())&&0!==d.getFullWidth()){var p=u;if((e.isJsxElement(d)||e.isJsxSelfClosingElement(d))&&(u=!0),e.isJsxExpression(d)&&(u=!1),e.isIdentifier(d)&&!u&&!function(t){var r=t.parent;return r&&(e.isImportClause(r)||e.isImportSpecifier(r)||e.isNamespaceImport(r))}(d)&&!e.isInfinityOrNaNString(d.escapedText)){var f=c.getSymbolAtLocation(d);if(f){2097152&f.flags&&(f=c.getAliasedSymbol(f));var g=function(t,r){var n=t.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&r)return 2}else if(262144&n)return 4;var a=t.valueDeclaration||t.declarations&&t.declarations[0];return a&&e.isBindingElement(a)&&(a=i(a)),a&&l.get(a.kind)}(f,e.getMeaningFromLocation(d));if(void 0!==g){var m=0;d.parent&&(e.isBindingElement(d.parent)||l.get(d.parent.kind)===g)&&d.parent.name===d&&(m=1),6===g&&a(d)&&(g=9),g=function(t,r,n){if(7===n||9===n||6===n){var i=t.getTypeAtLocation(r);if(i){var o=function(e){return e(i)||i.isUnion()&&i.types.some(e)};if(6!==n&&o((function(e){return e.getConstructSignatures().length>0})))return 0;if(o((function(e){return e.getCallSignatures().length>0}))&&!o((function(e){return e.getProperties().length>0}))||function(t){for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(r))return 9===n?11:10}}return n}(c,d,g);var y=f.valueDeclaration;if(y){var h=e.getCombinedModifierFlags(y),v=e.getCombinedNodeFlags(y);32&h&&(m|=2),256&h&&(m|=4),0!==g&&2!==g&&(64&h||2&v||8&f.getFlags())&&(m|=8),7!==g&&10!==g||!function(t,r){return e.isBindingElement(t)&&(t=i(t)),e.isVariableDeclaration(t)?(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r:!!e.isFunctionDeclaration(t)&&!e.isSourceFile(t.parent)&&t.getSourceFile()===r}(y,r)||(m|=32),t.isSourceFileDefaultLibrary(y.getSourceFile())&&(m|=16)}else f.declarations&&f.declarations.some((function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(m|=16);o(d,g,m)}}}e.forEachChild(d,_),u=p}}(r)}(t,r,n,(function(e,t,n){s.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),o),s}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}var o,s,c;(c=t.TokenEncodingConsts||(t.TokenEncodingConsts={}))[c.typeOffset=8]="typeOffset",c[c.modifierMask=255]="modifierMask",(s=t.TokenType||(t.TokenType={}))[s.class=0]="class",s[s.enum=1]="enum",s[s.interface=2]="interface",s[s.namespace=3]="namespace",s[s.typeParameter=4]="typeParameter",s[s.type=5]="type",s[s.parameter=6]="parameter",s[s.variable=7]="variable",s[s.enumMember=8]="enumMember",s[s.property=9]="property",s[s.function=10]="function",s[s.member=11]="member",(o=t.TokenModifier||(t.TokenModifier={}))[o.declaration=0]="declaration",o[o.static=1]="static",o[o.async=2]="async",o[o.readonly=3]="readonly",o[o.defaultLibrary=4]="defaultLibrary",o[o.local=5]="local",t.getSemanticClassifications=function(t,n,i,a){var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;l<s.length;l+=3)c.push({textSpan:e.createTextSpan(s[l],s[l+1]),classificationType:s[l+2]});return c},t.getEncodedSemanticClassifications=r;var l=new e.Map([[252,7],[162,6],[165,9],[259,3],[258,1],[294,8],[255,0],[167,11],[254,10],[211,10],[166,11],[170,9],[171,9],[164,9],[256,2],[257,5],[161,4],[291,9],[292,9]])})((t=e.classifier||(e.classifier={})).v2020||(t.v2020={}))}(u||(u={})),function(e){var t;(function(r){function n(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((function(e){var r=e.name,n=e.kind,i=e.span;return{name:r,kind:n,kindModifiers:a(e.extension),sortText:t.SortText.LocationPriority,replacementSpan:i}}))}}function a(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return e.Debug.assertNever(t)}}var o,s;function c(r,n,i,a,o,s,c){var d,p,f=l(n.parent);switch(f.kind){case 194:var m=l(f.parent);switch(m.kind){case 176:var y=m,h=e.findAncestor(f,(function(e){return e.parent===y}));return h?{kind:2,types:_(a.getTypeArgumentConstraint(h)),isNewIdentifier:!1}:void 0;case 192:var v=m,b=v.indexType,x=v.objectType;if(!e.rangeContainsPosition(b,i))return;return u(a.getTypeFromTypeNode(x));case 198:return{kind:0,paths:g(r,n,o,s,a,c)};case 185:if(!e.isTypeReferenceNode(m.parent))return;var D=(d=m,p=f,e.mapDefined(d.types,(function(t){return t!==p&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:void 0})));return{kind:2,types:_(a.getTypeArgumentConstraint(m)).filter((function(t){return!e.contains(D,t.value)})),isNewIdentifier:!1};default:return}case 291:return e.isObjectLiteralExpression(f.parent)&&f.name===n?function(r,n){var i=r.getContextualType(n);if(i){var a=r.getContextualType(n,4);return{kind:1,symbols:t.getPropertiesForObjectExpression(i,a,n,r),hasIndexSignature:e.hasIndexSignature(i)}}}(a,f.parent):k();case 205:var S=f,E=S.expression,T=S.argumentExpression;return n===e.skipParentheses(T)?u(a.getTypeAtLocation(E)):void 0;case 206:case 207:if(!function(t){return e.isCallExpression(t.parent)&&e.firstOrUndefined(t.parent.arguments)===t&&e.isIdentifier(t.parent.expression)&&"require"===t.parent.expression.escapedText}(n)&&!e.isImportCall(f)){var C=e.SignatureHelp.getArgumentInfoForCompletions(n,i,r);return C?function(t,r){var n=!1,i=new e.Map,a=[];return r.getResolvedSignature(t.invocation,a,t.argumentCount),{kind:2,types:e.flatMap(a,(function(a){if(e.signatureHasRestParameter(a)||!(t.argumentCount>a.parameters.length)){var o=r.getParameterType(a,t.argumentIndex);return n=n||!!(4&o.flags),_(o,i)}})),isNewIdentifier:n}}(C,a):k()}case 264:case 270:case 275:return{kind:0,paths:g(r,n,o,s,a,c)};default:return k()}function k(){return{kind:2,types:_(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function l(t){switch(t.kind){case 189:return e.walkUpParenthesizedTypes(t);case 210:return e.walkUpParenthesizedExpressions(t);default:return t}}function u(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(t)}}function _(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(function(e){return _(e,r)})):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function d(e,t,r){return{name:e,kind:t,extension:r}}function p(e){return d(e,"directory",void 0)}function f(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)}(t,r),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((function(t){var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function g(t,r,n,a,o,s){return f(r.text,r.getStart(t)+1,function(t,r,n,a,o,s){var c=e.normalizeSlashes(r.text),l=t.path,u=e.getDirectoryPath(l);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(c)||!n.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?function(t,r,n,a,o,s){var c=m(n,"js"===s.importModuleSpecifierEnding?2:0);return n.rootDirs?function(t,r,n,a,o,s,c){var l=function(t,r,n,a){t=t.map((function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))}));var o=e.firstDefined(t,(function(t){return e.containsPath(t,n,r,a)?n.substr(t.length):void 0}));return e.deduplicate(i(i([],t.map((function(t){return e.combinePaths(t,o)})),!0),[n],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,o.project||s.getCurrentDirectory(),n,!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()));return e.flatMap(l,(function(e){return h(r,e,a,s,c)}))}(n.rootDirs,t,r,c,n,a,o):h(t,r,c,a,o)}(c,u,n,a,l,s):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],l=m(n);if(o){var u=n.project||i.getCurrentDirectory(),_=e.normalizePath(e.combinePaths(u,o));h(t,_,l,i,void 0,c),s&&v(c,t,_,l.extensions,s,i)}for(var p=b(t),f=0,g=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,p,a);f<g.length;f++){var y=g[f];c.push(d(y,"external module name",void 0))}if(D(i,n,r,p,l,c),e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs){var x=!1;if(void 0===p)for(var S=function(e){c.some((function(t){return t.name===e}))||(x=!0,c.push(d(e,"external module name",void 0)))},T=0,C=function(t,r){if(!t.readFile||!t.fileExists)return e.emptyArray;for(var n=[],i=0,a=e.findPackageJsons(r,t);i<a.length;i++)for(var o=a[i],s=e.readJson(o,t),c=0,l=E;c<l.length;c++){var u=s[l[c]];if(u)for(var _ in u)u.hasOwnProperty(_)&&!e.startsWith(_,"@types/")&&n.push(_)}return n}(i,r);T<C.length;T++)S(C[T]);x||e.forEachAncestorDirectory(r,(function(r){var n=e.combinePaths(r,"node_modules");e.tryDirectoryExists(i,n)&&h(t,n,l,i,void 0,c)}))}return c}(c,u,n,a,o)}(t,r,n,a,o,s))}function m(e,t){return void 0===t&&(t=0),{extensions:y(e),includeExtensionsOption:t}}function y(t){var r=e.getSupportedExtensions(t);return t.resolveJsonModule&&e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs?r.concat(".json"):r}function h(t,r,n,i,a,o){var s=n.extensions,c=n.includeExtensionsOption;void 0===o&&(o=[]),void 0===t&&(t=""),t=e.normalizeSlashes(t),e.hasTrailingDirectorySeparator(t)||(t=e.getDirectoryPath(t)),""===t&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var l=e.resolvePath(r,t),u=e.hasTrailingDirectorySeparator(l)?l:e.getDirectoryPath(l),_=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(i,u))return o;var f=e.tryReadDirectory(i,u,s,void 0,["./*"]);if(f){for(var g=new e.Map,m=0,y=f;m<y.length;m++){var h=y[m];if(h=e.normalizePath(h),!a||0!==e.comparePaths(h,a,r,_)){var b=void 0,x=e.moduleSpecifiers.tryGetJSExtensionForFile(h,i.getCompilationSettings());0!==c||e.fileExtensionIs(h,".json")?2===c&&x?(b=e.changeExtension(e.getBaseFileName(h),x),g.set(b,x)):(b=e.getBaseFileName(h),g.set(b,e.tryGetExtensionFromPath(h))):(b=e.removeFileExtension(e.getBaseFileName(h)),g.set(b,e.tryGetExtensionFromPath(h)))}}g.forEach((function(e,t){o.push(d(t,"script",e))}))}var D=e.tryGetDirectories(i,u);if(D)for(var S=0,E=D;S<E.length;S++){var T=E[S],C=e.getBaseFileName(e.normalizePath(T));"@types"!==C&&o.push(p(C))}var k=e.findPackageJson(u,i);if(k){var A=e.readJson(k,i).typesVersions;if("object"==typeof A){var N=e.getPackageJsonTypesVersionsPaths(A),F=N&&N.paths,w=l.slice(e.ensureTrailingDirectorySeparator(u).length);F&&v(o,w,u,s,F,i)}}return o}function v(t,r,n,i,a,o){for(var s in a)if(e.hasProperty(a,s)){var c=a[s];if(c)for(var l=function(e,r,n){t.some((function(t){return t.name===e}))||t.push(d(e,r,n))},u=0,_=x(s,c,r,n,i,o);u<_.length;u++){var p=_[u];l(p.name,p.kind,p.extension)}}}function b(t){return T(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function x(t,r,n,a,o,s){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:u(t);var c=t.slice(0,t.length-1),l=e.tryRemovePrefix(n,c);return void 0===l?u(c):e.flatMap(r,(function(t){return function(t,r,n,a,o){if(o.readDirectory){var s=e.tryParsePattern(n);if(void 0!==s&&!e.isString(s)){var c=e.resolvePath(s.prefix),l=e.hasTrailingDirectorySeparator(s.prefix)?c:e.getDirectoryPath(c),u=e.hasTrailingDirectorySeparator(s.prefix)?"":e.getBaseFileName(c),_=T(t),f=_?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,g=_?e.combinePaths(l,u+f):l,m=e.normalizePath(s.suffix),y=e.normalizePath(e.combinePaths(r,g)),h=_?y:e.ensureTrailingDirectorySeparator(y)+u,v=m?"**/*":"./*",b=e.mapDefined(e.tryReadDirectory(o,y,a,void 0,[v]),(function(t){var r=e.tryGetExtensionFromPath(t),n=D(t);return void 0===n?void 0:d(e.removeFileExtension(n),"script",r)})),x=e.mapDefined(e.tryGetDirectories(o,y).map((function(t){return e.combinePaths(y,t)})),(function(e){var t=D(e);return void 0===t?void 0:p(t)}));return i(i([],b,!0),x,!0)}}function D(t){var r,n,i,a=(r=e.normalizePath(t),n=h,i=m,e.startsWith(r,n)&&e.endsWith(r,i)?r.slice(n.length,r.length-i.length):void 0);return void 0===a?void 0:function(t){return t[0]===e.directorySeparator?t.slice(1):t}(a)}}(l,a,t,o,s)}));function u(t){return e.startsWith(t,n)?[p(t)]:e.emptyArray}}function D(t,r,n,i,a,o){void 0===o&&(o=[]);for(var s=new e.Map,c=0,l=e.tryAndIgnoreErrors((function(){return e.getEffectiveTypeRoots(r,t)}))||e.emptyArray;c<l.length;c++)f(l[c]);for(var u=0,_=e.findPackageJsons(n,t);u<_.length;u++){var p=_[u];f(e.combinePaths(e.getDirectoryPath(p),"node_modules/@types"))}return o;function f(n){if(e.tryDirectoryExists(t,n))for(var c=0,l=e.tryGetDirectories(t,n);c<l.length;c++){var u=l[c],_=e.unmangleScopedPackageName(u);if(!r.types||e.contains(r.types,_))if(void 0===i)s.has(_)||(o.push(d(_,"external module name",void 0)),s.set(_,!0));else{var p=e.combinePaths(n,u),f=e.tryRemoveDirectoryPrefix(i,_,e.hostGetCanonicalFileName(t));void 0!==f&&h(f,p,a,t,void 0,o)}}}}r.getStringLiteralCompletions=function(r,i,a,o,s,l,u,_){if(e.isInReferenceComment(r,i)){var d=function(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=e.getLeadingCommentRanges(t.text,a.pos),s=o&&e.find(o,(function(e){return r>=e.pos&&r<=e.end}));if(s){var c=t.text.slice(s.pos,r),l=S.exec(c);if(l){var u=l[1],_=l[2],d=l[3],p=e.getDirectoryPath(t.path),g="path"===_?h(d,p,m(n,1),i,t.path):"types"===_?D(i,n,p,b(d),m(n)):e.Debug.fail();return f(d,s.pos+u.length,g)}}}(r,i,s,l);return d&&n(d)}if(e.isInString(r,i,a)){if(!a||!e.isStringLiteralLike(a))return;return function(r,i,a,o,s,c,l){if(void 0!==r){var u=e.createTextSpanFromStringLiteralLikeContent(i);switch(r.kind){case 0:return n(r.paths);case 1:var _=[];return t.getCompletionEntriesFromSymbols(r.symbols,_,i,a,a,o,99,s,4,l,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:u,entries:_};case 2:return _=r.types.map((function(r){return{name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(i)}})),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:u,entries:_};default:return e.Debug.assertNever(r)}}}(d=c(r,a,i,o,s,l,_),a,r,o,u,s,_)}},r.getStringLiteralCompletionDetails=function(r,n,i,o,s,l,u,_,d){if(o&&e.isStringLiteralLike(o)){var p=c(n,o,i,s,l,u,d);return p&&function(r,n,i,o,s,c){switch(i.kind){case 0:return(l=e.find(i.paths,(function(e){return e.name===r})))&&t.createCompletionDetails(r,a(l.extension),l.kind,[e.textPart(r)]);case 1:var l;return(l=e.find(i.symbols,(function(e){return e.name===r})))&&t.createCompletionDetailsForSymbol(l,s,o,n,c);case 2:return e.find(i.types,(function(e){return e.value===r}))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(i)}}(r,o,p,n,s,_)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"}(s||(s={}));var S=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,E=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function T(t){return e.stringContains(t,e.directorySeparator)}})((t=e.Completions||(e.Completions={})).StringCompletions||(t.StringCompletions={}))}(u||(u={})),function(e){!function(t){var r,n,i,o,s,c,l,u;function _(e){return!!(e&&4&e.kind)}function d(e){return!(!e||32!==e.kind)}function p(e){return(_(e)||d(e))&&!!e.isFromPackageJson}function f(r,n,i,a,o,s,c){var l,u,_,d=e.timestamp(),p=!1,f=0,g=0,m=0,y=0,h=c({tryResolve:function(r,c){if(c){var l=e.codefix.getModuleSpecifierForBestExportInfo(r,a,i,n,o);return l&&f++,l}var u=s||o.allowIncompleteCompletions&&g<t.moduleSpecifierResolutionLimit,_=!u&&o.allowIncompleteCompletions&&y<t.moduleSpecifierResolutionCacheAttemptLimit,d=u||_?e.codefix.getModuleSpecifierForBestExportInfo(r,a,i,n,o,_):void 0;return(!u&&!_||_&&!d)&&(p=!0),g+=(null==d?void 0:d.computedWithoutCacheCount)||0,m+=r.length-g,_&&y++,d},resolutionLimitExceeded:function(){return p}}),v=y?" ("+(m/y*100).toFixed(1)+"% hit rate)":"";return null===(l=n.log)||void 0===l||l.call(n,r+": resolved "+g+" module specifiers, plus "+f+" ambient and "+m+" from cache"+v),null===(u=n.log)||void 0===u||u.call(n,r+": response is "+(p?"incomplete":"complete")),null===(_=n.log)||void 0===_||_.call(n,r+": "+(e.timestamp()-d)),h}function g(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function m(t){return 79===(null==t?void 0:t.kind)?e.createTextSpanFromNode(t):void 0}function y(t,r){return e.isSourceFileJS(t)&&!e.isCheckJsEnabledForFile(t,r)}function h(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function v(t,r,n){return"object"==typeof n?e.pseudoBigIntToString(n)+"n":e.isString(n)?e.quote(t,r,n):JSON.stringify(n)}function b(e,t,n){return{name:v(e,t,n),kind:"string",kindModifiers:"",sortText:r.LocationPriority}}function x(t,r,n,i,a,o,s,c,l,u,f,g,m,y,h,v){var b,x,C,k,A,N,F=e.getReplacementSpanForContextToken(n),w=l&&function(e){return!!(16&e.kind)}(l),P=l&&function(e){return!!(2&e.kind)}(l)||c;if(l&&function(e){return!!(1&e.kind)}(l))x=c?"this"+(w?"?.":"")+"["+S(a,v,s)+"]":"this"+(w?"?.":".")+s;else if((P||w)&&f){x=P?c?"["+S(a,v,s)+"]":"["+s+"]":s,(w||f.questionDotToken)&&(x="?."+x);var I=e.findChildOfKind(f,24,a)||e.findChildOfKind(f,28,a);if(!I)return;var O=e.startsWith(s,f.name.text)?f.name.end:I.end;F=e.createTextSpanFromBounds(I.getStart(a),O)}if(g&&(void 0===x&&(x=s),x="{"+x+"}","boolean"!=typeof g&&(F=e.createTextSpanFromNode(g,a))),l&&function(e){return!!(8&e.kind)}(l)&&f){void 0===x&&(x=s);var L=e.findPrecedingToken(f.pos,a),M="";L&&e.positionIsASICandidate(L.end,L.parent,a)&&(M=";"),M+="(await "+f.expression.getText()+")",x=c?""+M+x:M+(w?"?.":".")+x,F=e.createTextSpanFromBounds(f.getStart(a),f.end)}if(d(l)&&(A=[e.textPart(l.moduleSpecifier)],m&&(b=function(t,r,n,i,a,o){var s=r.getSourceFile(),c=e.createTextSpanFromNode(r,s),l=e.quote(s,o,n.moduleSpecifier),u=n.isDefaultExport?1:"export="===n.exportName?2:0,_=o.includeCompletionsWithSnippetText?"$1":"",d=i?";":"";switch(e.codefix.getImportKind(s,u,a,!0)){case 3:return{replacementSpan:c,insertText:"import "+t+_+" = require("+l+")"+d};case 1:return{replacementSpan:c,insertText:"import "+t+_+" from "+l+d};case 2:return{replacementSpan:c,insertText:"import * as "+t+" from "+l+d};case 0:return{replacementSpan:c,insertText:"import { "+t+_+" } from "+l+d}}}(s,m,l,y,h,v),x=b.insertText,F=b.replacementSpan,k=!!v.includeCompletionsWithSnippetText||void 0)),void 0===x||v.includeCompletionsWithInsertText)return(_(l)||d(l))&&(C=D(l),N=!m),{name:s,kind:e.SymbolDisplay.getSymbolKind(o,t,i),kindModifiers:e.SymbolDisplay.getSymbolModifiers(o,t),sortText:r,source:T(l),hasAction:!!N||void 0,isRecommended:E(t,u,o)||void 0,insertText:x,replacementSpan:F,sourceDisplay:A,isSnippet:k,isPackageJsonImport:p(l)||void 0,isImportStatementCompletion:!!m||void 0,data:C}}function D(t){return{exportName:t.exportName,fileName:t.fileName,ambientModuleName:t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),isPackageJsonImport:!!t.isFromPackageJson||void 0,moduleSpecifier:d(t)?t.moduleSpecifier:void 0}}function S(t,r,n){return/^\d+$/.test(n)?n:e.quote(t,r,n)}function E(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function T(t){return _(t)?e.stripQuotes(t.moduleSymbol.name):d(t)?t.moduleSpecifier:1===(null==t?void 0:t.kind)?i.ThisProperty:void 0}function C(t,r,n,i,a,o,s,c,l,u,_,d,p,f,g,m,y,h,v){for(var b,D,S=e.timestamp(),E=(D=i,e.findAncestor(D,(function(t){return e.isFunctionBlock(t)||function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t}(t)||e.isBindingPattern(t)?"quit":e.isVariableDeclaration(t)}))),T=e.probablyUsesSemicolons(a),C=new e.Map,k=0;k<t.length;k++){var A=t[k],N=null==h?void 0:h[k],F=L(A,s,N,l,!!f);if(F&&!C.get(F.name)&&(1!==l||!v||R(A,v))){var w=F.name,P=F.needsConvertPropertyAccess,I=null!==(b=null==v?void 0:v[e.getSymbolId(A)])&&void 0!==b?b:11,O=x(A,(Q(A,o)?8+I:I).toString(),n,i,a,o,w,P,N,y,p,g,m,T,_,u);if(O){var M=!(N||void 0===A.parent&&!e.some(A.declarations,(function(e){return e.getSourceFile()===i.getSourceFile()})));C.set(w,M),r.push(O)}}}return c("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-S)),{has:function(e){return C.has(e)},add:function(e){return C.set(e,!0)}};function R(t,r){if(!e.isSourceFile(i)){if(e.isExportAssignment(i.parent))return!0;if(E&&t.valueDeclaration===E)return!1;var n=e.skipAlias(t,o);if(a.externalModuleIndicator&&!_.allowUmdGlobalAccess&&15===r[e.getSymbolId(t)]&&(16===r[e.getSymbolId(n)]||11===r[e.getSymbolId(n)]))return!1;if(t=n,e.isInRightSideOfInternalImportEqualsDeclaration(i))return!!(1920&t.flags);if(d)return X(t,o)}return!!(111551&e.getCombinedLocalAndExportSymbolFlags(t))}}function k(t,r,n,i,a,o,s){if(a.data){var c=O(a.name,a.data,t,o);if(c)return{type:"symbol",symbol:c.symbol,location:e.getTouchingPropertyName(n,i),previousToken:e.findPrecedingToken(i,n,void 0),isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:c.origin}}var l=t.getCompilerOptions(),u=P(t,r,n,y(n,l),i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},a,o);if(!u)return{type:"none"};if(0!==u.kind)return{type:"request",request:u};var _=u.symbols,d=u.literals,p=u.location,f=u.completionKind,g=u.symbolToOriginInfoMap,m=u.previousToken,h=u.isJsxInitializer,b=u.isTypeOnlyLocation,x=e.find(d,(function(e){return v(n,s,e)===a.name}));return void 0!==x?{type:"literal",literal:x}:e.firstDefined(_,(function(e,t){var r=g[t],n=L(e,l.target,r,f,u.isJsxIdentifierExpected);return n&&n.name===a.name&&T(r)===a.source?{type:"symbol",symbol:e,location:p,origin:r,previousToken:m,isJsxInitializer:h,isTypeOnlyLocation:b}:void 0}))||{type:"none"}}function A(t,r,n){return F(t,"",r,[e.displayPart(t,n)])}function N(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,(function(r){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7)})),l=c.displayParts,u=c.documentation,_=c.symbolKind,d=c.tags;return F(t.name,e.SymbolDisplay.getSymbolModifiers(r,t),_,l,u,d,o,s)}function F(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s,sourceDisplay:s}}function w(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,!1);return i?e.first(i):t.parent&&(function(e){var t;return!!(null===(t=e.declarations)||void 0===t?void 0:t.some((function(e){return 300===e.kind})))}(t.parent)?t:w(t.parent,r,n))}function P(t,r,n,i,a,o,s,c,l){var u=t.getTypeChecker(),_=e.timestamp(),d=e.getTokenAtPosition(n,a);r("getCompletionData: Get current token: "+(e.timestamp()-_)),_=e.timestamp();var p=e.isInComment(n,a,d);r("getCompletionData: Is inside comment: "+(e.timestamp()-_));var g=!1,m=!1;if(p){if(e.hasDocComment(n,a)){if(64===n.text.charCodeAt(a-1))return{kind:1};var y=e.getLineStartPositionForPosition(a,n);if(!/[^\*|\s(/)]/.test(n.text.substring(y,a)))return{kind:2}}var h=function(t,r){var n=e.findAncestor(t,e.isJSDoc);return n&&n.tags&&(e.rangeContainsPosition(n,r)?e.findLast(n.tags,(function(e){return e.pos<r})):void 0)}(d,a);if(h){if(h.tagName.pos<=a&&a<=h.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 335:case 342:case 336:case 338:case 340:return!0;default:return!1}}(h)&&h.typeExpression&&304===h.typeExpression.kind&&((d=e.getTokenAtPosition(n,a))&&(e.isDeclarationName(d)||342===d.parent.kind&&d.parent.name===d)||(g=De(h.typeExpression))),!g&&e.isJSDocParameterTag(h)&&(e.nodeIsMissing(h.name)||h.name.pos<=a&&a<=h.name.end))return{kind:3,tag:h}}if(!g)return void r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}_=e.timestamp();var v=I(a,n),b=v.previousToken,x=v.contextToken;r("getCompletionData: Get previous token: "+(e.timestamp()-_));var D,S,E=d,T=!1,C=!1,k=!1,A=!1,N=!1,F=!1,P=e.getTouchingPropertyName(n,a);if(x){var O=H(x);if(154===O)return{kind:4,keywords:[154]};if(O&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(S=O),!S&&function(t){var i=e.timestamp(),o=function(t){return(e.isRegularExpressionLiteral(t)||e.isStringTextContainingNode(t))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(t)),a)||a===t.end&&(!!t.isUnterminated||e.isRegularExpressionLiteral(t)))}(t)||function(t){var r=t.parent,i=r.kind;switch(t.kind){case 27:return 252===i||function(t){return 253===t.parent.kind&&!e.isPossiblyTypeArgumentPosition(t,n,u)}(t)||235===i||258===i||he(i)||256===i||200===i||257===i||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:case 22:return 200===i;case 58:return 201===i;case 20:return 290===i||he(i);case 18:return 258===i;case 29:return 255===i||224===i||256===i||257===i||e.isFunctionLikeKind(i);case 124:return 165===i&&!e.isClassLike(r.parent);case 25:return 162===i||!!r.parent&&200===r.parent.kind;case 123:case 121:case 122:return 162===i&&!e.isConstructorDeclaration(r.parent);case 127:return 268===i||273===i||266===i;case 135:case 147:return!W(t);case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 136:case 150:return!0;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(J(U(t))&&W(t))return!1;if(me(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(U(t))||De(t)))return!1;switch(U(t)){case 126:case 84:case 85:case 134:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 130:return e.isPropertyDeclaration(t.parent)}if(e.findAncestor(t.parent,e.isClassLike)&&t===b&&ye(t,a))return!1;var o=e.getAncestor(t.parent,165);if(o&&t!==b&&e.isClassLike(b.parent.parent)&&a<=b.end){if(ye(t,b.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(o)||e.hasType(o)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==b||a>b.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(278===e.parent.kind)return 278!==P.parent.kind;if(279===e.parent.kind||277===e.parent.kind)return!!e.parent.parent&&276===e.parent.parent.kind}return!1}(t)||e.isBigIntLiteral(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-i)),o}(x))return void r("Returning an empty list because completion was requested in an invalid position.");var L=x.parent;if(24===x.kind||28===x.kind)switch(T=24===x.kind,C=28===x.kind,L.kind){case 204:E=(D=L).expression;var M=e.getLeftmostAccessExpression(D);if(e.nodeIsMissing(M)||(e.isCallExpression(E)||e.isFunctionLike(E))&&E.end===x.pos&&E.getChildCount(n)&&21!==e.last(E.getChildren(n)).kind)return;break;case 159:E=L.left;break;case 259:E=L.name;break;case 198:E=L;break;case 229:E=L.getFirstToken(n),e.Debug.assert(100===E.kind||103===E.kind);break;default:return}else if(!S&&1===n.languageVariant){if(L&&204===L.kind&&(x=L,L=L.parent),d.parent===P)switch(d.kind){case 31:276!==d.parent.kind&&278!==d.parent.kind||(P=d);break;case 43:277===d.parent.kind&&(P=d)}switch(L.kind){case 279:43===x.kind&&(A=!0,P=x);break;case 219:if(!q(L))break;case 277:case 276:case 278:F=!0,29===x.kind&&(k=!0,P=x);break;case 286:case 285:19===b.kind&&31===d.kind&&(F=!0);break;case 283:if(L.initializer===b&&b.end<a){F=!0;break}switch(b.kind){case 63:N=!0;break;case 79:F=!0,L!==b.parent&&!L.initializer&&e.findChildOfKind(L,63,n)&&(N=b)}}}}var R=e.timestamp(),B=5,V=!1,Y=!1,Q=!1,Z=0,ee=[],te=[],re=[],ne=new e.Map,ie=g||!function(t){return t&&(112===t.kind&&(179===t.parent.kind||e.isTypeOfExpression(t.parent))||128===t.kind&&175===t.parent.kind)}(x)&&(e.isPossiblyTypeArgumentPosition(x,n,u)||e.isPartOfTypeNode(P)||function(t){if(t){var r=t.parent.kind;switch(t.kind){case 58:return 165===r||164===r||162===r||252===r||e.isFunctionLikeKind(r);case 63:return 257===r;case 127:return 227===r;case 29:return 176===r||209===r;case 94:return 161===r}}return!1}(x)),ae=e.memoizeOne((function(r){return e.createModuleSpecifierResolutionHost(r?c.getPackageJsonAutoImportProvider():t,c)}));if(T||C)!function(){B=2;var t=e.isLiteralImportTypeNode(E),r=g||t&&!E.isTypeOf||e.isPartOfTypeNode(E.parent)||e.isPossiblyTypeArgumentPosition(x,n,u),i=e.isInRightSideOfInternalImportEqualsDeclaration(E);if(e.isEntityName(E)||t||e.isPropertyAccessExpression(E)){var a=e.isModuleDeclaration(E.parent);a&&(V=!0);var s=u.getSymbolAtLocation(E);if(s&&1920&(s=e.skipAlias(s,u)).flags){var c=u.getExportsOfModule(s);e.Debug.assertEachIsDefined(c,"getExportsOfModule() should all be defined");for(var l=function(e){return u.isValidPropertyAccess(t?E:E.parent,e.name)},_=function(e){return X(e,u)},d=a?function(e){var t;return!!(1920&e.flags)&&!(null===(t=e.declarations)||void 0===t?void 0:t.every((function(e){return e.parent===E.parent})))}:i?function(e){return _(e)||l(e)}:r?_:l,p=0,f=c;p<f.length;p++){var m=f[p];d(m)&&ee.push(m)}if(!r&&s.declarations&&s.declarations.some((function(e){return 300!==e.kind&&259!==e.kind&&258!==e.kind}))){var y=!1;(h=u.getTypeOfSymbolAtLocation(s,E).getNonOptionalType()).isNullableType()&&((v=T&&!C&&!1!==o.includeAutomaticOptionalChainCompletions)||C)&&(h=h.getNonNullableType(),v&&(y=!0)),_e(h,!!(32768&E.flags),y)}return}}if(!r){var h,v,b=e.getThisContainer(E,!1);!e.isSourceFile(b)&&b.parent&&u.getTypeAtLocation(b),y=!1,(h=u.getTypeAtLocation(E).getNonOptionalType()).isNullableType()&&((v=T&&!C&&!1!==o.includeAutomaticOptionalChainCompletions)||C)&&(h=h.getNonNullableType(),v&&(y=!0)),_e(h,!!(32768&E.flags),y)}}();else if(k)ee=u.getJsxIntrinsicTagNamesAt(P),e.Debug.assertEachIsDefined(ee,"getJsxIntrinsicTagNames() should all be defined"),fe(),B=1,Z=0;else if(A){var oe=x.parent.parent.openingElement.tagName,se=u.getSymbolAtLocation(oe);se&&(ee=[se]),B=1,Z=0}else if(!fe())return;r("getCompletionData: Semantic work: "+(e.timestamp()-R));var ce=b&&function(t,r,n,i){var a=t.parent;switch(t.kind){case 79:return e.getContextualTypeFromParent(t,i);case 63:switch(a.kind){case 252:return i.getContextualType(a.initializer);case 219:return i.getTypeAtLocation(a.left);case 283:return i.getContextualTypeForJsxAttribute(a);default:return}case 103:return i.getContextualType(a);case 82:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return e.isJsxExpression(a)&&276!==a.parent.kind?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:var o=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===t.kind?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}(b,a,n,u),le=e.mapDefined(ce&&(ce.isUnion()?ce.types:[ce]),(function(e){return e.isLiteral()?e.value:void 0})),ue=b&&ce&&function(t,r,n){return e.firstDefined(r&&(r.isUnion()?r.types:[r]),(function(r){var i=r&&r.symbol;return i&&424&i.flags&&!e.isAbstractConstructorSymbol(i)?w(i,t,n):void 0}))}(b,ce,u);return{kind:0,symbols:ee,completionKind:B,isInSnippetScope:m,propertyAccessToConvert:D,isNewIdentifierLocation:V,location:P,keywordFilters:Z,literals:le,symbolToOriginInfoMap:te,recommendedCompletion:ue,previousToken:b,isJsxInitializer:N,insideJsDocTagTypeExpression:g,symbolToSortTextIdMap:re,isTypeOnlyLocation:ie,isJsxIdentifierExpected:F,importCompletionNode:S,hasUnresolvedAutoImports:Q};function _e(t,r,n){V=!!t.getStringIndexType(),C&&e.some(t.getCallSignatures())&&(V=!0);var a=198===E.kind?E:E.parent;if(i)ee.push.apply(ee,e.filter(z(t,u),(function(e){return u.isValidPropertyAccessForCompletions(a,t,e)})));else for(var s=0,c=t.getApparentProperties();s<c.length;s++){var l=c[s];u.isValidPropertyAccessForCompletions(a,t,l)&&de(l,!1,n)}if(r&&o.includeCompletionsWithInsertText){var _=u.getPromisedTypeOfPromise(t);if(_)for(var d=0,p=_.getApparentProperties();d<p.length;d++)l=p[d],u.isValidPropertyAccessForCompletions(a,_,l)&&de(l,!0,n)}}function de(t,r,n){var i=e.firstDefined(t.declarations,(function(t){return e.tryCast(e.getNameOfDeclaration(t),e.isComputedPropertyName)}));if(i){var a=pe(i.expression),s=a&&u.getSymbolAtLocation(a),c=s&&w(s,x,u);if(c&&e.addToSeen(ne,e.getSymbolId(c))){var l=ee.length;ee.push(c);var _=c.parent;if(_&&e.isExternalModuleSymbol(_)){var d={kind:g(6),moduleSymbol:_,isDefaultExport:!1,symbolName:c.name,exportName:c.name,fileName:e.isExternalModuleNameRelative(e.stripQuotes(_.name))?e.cast(_.valueDeclaration,e.isSourceFile).fileName:void 0};te[l]=d}else te[l]={kind:g(2)}}else o.includeCompletionsWithInsertText&&(f(t),p(t),ee.push(t))}else f(t),p(t),ee.push(t);function p(t){(function(t){return!!(t.valueDeclaration&&32&e.getEffectiveModifierFlags(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent))})(t)&&(re[e.getSymbolId(t)]=10)}function f(t){o.includeCompletionsWithInsertText&&(r&&e.addToSeen(ne,e.getSymbolId(t))?te[ee.length]={kind:g(8)}:n&&(te[ee.length]={kind:16}))}function g(e){return n?16|e:e}}function pe(t){return e.isIdentifier(t)?t:e.isPropertyAccessExpression(t)?pe(t.expression):void 0}function fe(){var t=function(){var t=function(t){if(t){var r=t.parent;switch(t.kind){case 18:if(e.isTypeLiteralNode(r))return r;break;case 26:case 27:case 79:if(164===r.kind&&e.isTypeLiteralNode(r.parent))return r.parent}}}(x);if(!t)return 0;var r=(e.isIntersectionTypeNode(t.parent)?t.parent:void 0)||t,n=G(r,u);if(!n)return 0;var i=u.getTypeFromTypeNode(r),a=z(n,u),o=z(i,u),s=new e.Set;return o.forEach((function(e){return s.add(e.escapedName)})),ee=e.concatenate(ee,e.filter(a,(function(e){return!s.has(e.escapedName)}))),B=0,V=!0,1}()||function(){var t,r,n=function(t){if(t){var r=t.parent;switch(t.kind){case 18:case 27:if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r;break;case 41:return e.isMethodDeclaration(r)?e.tryCast(r.parent,e.isObjectLiteralExpression):void 0;case 79:return"async"===t.text&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:void 0}}}(x);if(!n)return 0;if(B=0,203===n.kind){var i=function(t,r){var n=r.getContextualType(t);return n||(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&t===t.parent.left?r.getTypeAtLocation(t.parent):void 0)}(n,u);if(void 0===i)return 16777216&n.flags?2:(Y=!0,0);var a=u.getContextualType(n,4),o=(a||i).getStringIndexType(),s=(a||i).getNumberIndexType();if(V=!!o||!!s,t=K(i,a,n,u),r=n.properties,0===t.length&&!s)return Y=!0,0}else{e.Debug.assert(199===n.kind),V=!1;var c=e.getRootDeclaration(n.parent);if(!e.isVariableLike(c))return e.Debug.fail("Root declaration is not variable-like.");var l=e.hasInitializer(c)||e.hasType(c)||242===c.parent.parent.kind;if(l||162!==c.kind||(e.isExpression(c.parent)?l=!!u.getContextualType(c.parent):167!==c.parent.kind&&171!==c.parent.kind||(l=e.isExpression(c.parent.parent)&&!!u.getContextualType(c.parent.parent))),l){var _=u.getTypeAtLocation(n);if(!_)return 2;var d=e.getContainingClass(n);t=u.getPropertiesOfType(_).filter((function(t){return!(24&e.getDeclarationModifierFlagsFromSymbol(t))||d&&e.contains(_.symbol.declarations,d)})),r=n.elements}}return t&&t.length>0&&(ee=e.concatenate(ee,function(t,r){if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if((291===s.kind||292===s.kind||201===s.kind||167===s.kind||170===s.kind||171===s.kind||293===s.kind)&&!De(s)){var c=void 0;if(e.isSpreadAssignment(s))ve(s,n);else if(e.isBindingElement(s)&&s.propertyName)79===s.propertyName.kind&&(c=s.propertyName.escapedText);else{var l=e.getNameOfDeclaration(s);c=l&&e.isPropertyNameLiteral(l)?e.getEscapedTextOfIdentifierOrLiteral(l):void 0}void 0!==c&&i.add(c)}}var u=t.filter((function(e){return!i.has(e.escapedName)}));return xe(n,u),u}(t,e.Debug.checkDefined(r)))),be(),1}()||(S?(V=!0,ge(),1):0)||function(){var t=!x||18!==x.kind&&27!==x.kind?void 0:e.tryCast(x.parent,e.isNamedImportsOrExports);if(!t)return 0;var r=(267===t.kind?t.parent.parent:t.parent).moduleSpecifier;if(!r)return 267===t.kind?2:0;var n=u.getSymbolAtLocation(r);if(!n)return 2;B=3,V=!1;var i=u.getExportsAndPropertiesOfModule(n),a=new e.Set(t.elements.filter((function(e){return!De(e)})).map((function(e){return(e.propertyName||e.name).escapedText})));return ee=e.concatenate(ee,i.filter((function(e){return"default"!==e.escapedName&&!a.has(e.escapedName)}))),1}()||function(){var t,r=!x||18!==x.kind&&27!==x.kind?void 0:e.tryCast(x.parent,e.isNamedExports);if(!r)return 0;var n=e.findAncestor(r,e.or(e.isSourceFile,e.isModuleDeclaration));return B=5,V=!1,null===(t=n.locals)||void 0===t||t.forEach((function(t,r){var i,a;ee.push(t),(null===(a=null===(i=n.symbol)||void 0===i?void 0:i.exports)||void 0===a?void 0:a.has(r))&&(re[e.getSymbolId(t)]=12)})),1}()||(function(t){if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:void 0;default:if(me(t))return r.parent}}}(x)?(B=5,V=!0,Z=4,1):0)||function(){var t=function(t,r,n,i){switch(n.kind){case 343:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var a=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(a&&!e.findChildOfKind(a,19,t))return a;break;case 79:if(e.isPropertyDeclaration(n.parent)&&n.parent.initializer===n)return;if(W(n))return e.findAncestor(n,e.isObjectTypeDeclaration)}if(r){if(133===n.kind||e.isIdentifier(r)&&e.isPropertyDeclaration(r.parent)&&e.isClassLike(n))return e.findAncestor(r,e.isClassLike);switch(r.kind){case 63:return;case 26:case 19:return W(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!W(r))return e.getLineAndCharacterOfPosition(t,r.getEnd()).line!==e.getLineAndCharacterOfPosition(t,i).line&&e.isObjectTypeDeclaration(n)?n:void 0;var o=e.isClassLike(r.parent.parent)?J:j;return o(r.kind)||41===r.kind||e.isIdentifier(r)&&o(e.stringToToken(r.text))?r.parent.parent:void 0}}}(n,x,P,a);if(!t)return 0;if(B=3,V=!0,Z=41===x.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=26===x.kind?x.parent.parent:x.parent,i=e.isClassElement(r)?e.getEffectiveModifierFlags(r):0;if(79===x.kind&&!De(x))switch(x.getText()){case"private":i|=8;break;case"static":i|=32;break;case"override":i|=16384}if(e.isClassStaticBlockDeclaration(r)&&(i|=32),!(8&i)){var o=e.isClassLike(t)&&16384&i?e.singleElementArray(e.getEffectiveBaseTypeNode(t)):e.getAllSuperTypeNodes(t),s=e.flatMap(o,(function(e){var r=u.getTypeAtLocation(e);return 32&i?(null==r?void 0:r.symbol)&&u.getPropertiesOfType(u.getTypeOfSymbolAtLocation(r.symbol,t)):r&&u.getPropertiesOfType(r)}));ee=e.concatenate(ee,function(t,r,n){for(var i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if(!(165!==s.kind&&167!==s.kind&&170!==s.kind&&171!==s.kind||De(s)||e.hasEffectiveModifier(s,8)||e.isStatic(s)!==!!(32&n))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.add(c)}}return t.filter((function(t){return!(i.has(t.escapedName)||!t.declarations||8&e.getDeclarationModifierFlagsFromSymbol(t)||t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))}))}(s,t.members,i))}return 1}()||function(){var t=function(t){if(t){var r=t.parent;switch(t.kind){case 31:case 30:case 43:case 79:case 204:case 284:case 283:case 285:if(r&&(277===r.kind||278===r.kind)){if(31===t.kind){var i=e.findPrecedingToken(t.pos,n,void 0);if(!r.typeArguments||i&&43===i.kind)break}return r}if(283===r.kind)return r.parent.parent;break;case 10:if(r&&(283===r.kind||285===r.kind))return r.parent.parent;break;case 19:if(r&&286===r.kind&&r.parent&&283===r.parent.kind)return r.parent.parent.parent;if(r&&285===r.kind)return r.parent.parent}}}(x),r=t&&u.getContextualType(t.attributes);if(!r)return 0;var i=t&&u.getContextualType(t.attributes,4);return ee=e.concatenate(ee,function(t,r){for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];De(s)||(283===s.kind?n.add(s.name.escapedText):e.isJsxSpreadAttribute(s)&&ve(s,i))}var c=t.filter((function(e){return!n.has(e.escapedName)}));return xe(i,c),c}(K(r,i,t.attributes,u),t.attributes.properties)),be(),B=3,V=!1,1}()||(function(){Z=function(t){if(t){var r,n=e.findAncestor(t.parent,(function(t){return e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||r!==t.body)||(r=t,!1)}));return n&&n}}(x)?5:1,B=1,V=function(){if(x){var e=x.parent.kind;switch(U(x)){case 27:return 206===e||169===e||207===e||202===e||219===e||177===e||203===e;case 20:return 206===e||169===e||207===e||210===e||189===e;case 22:return 202===e||174===e||160===e;case 140:case 141:return!0;case 24:return 259===e;case 18:return 255===e||203===e;case 63:return 252===e||219===e;case 15:return 221===e;case 16:return 231===e;case 123:case 121:case 122:return 165===e}}return!1}(),b!==x&&e.Debug.assert(!!b,"Expected 'contextToken' to be defined when different from 'previousToken'.");var t=b!==x?b.getStart():a,r=function(t,r,n){for(var i=t;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i}(x,t,n)||n;m=function(t){switch(t.kind){case 300:case 221:case 286:case 233:return!0;default:return e.isStatement(t)}}(r);var i=2887656|(ie?0:111551);ee=e.concatenate(ee,u.getSymbolsInScope(r,i)),e.Debug.assertEachIsDefined(ee,"getSymbolsInScope() should all be defined");for(var s=0,c=ee;s<c.length;s++){var l=c[s];u.isArgumentsSymbol(l)||e.some(l.declarations,(function(e){return e.getSourceFile()===n}))||(re[e.getSymbolId(l)]=15)}if(o.includeCompletionsWithInsertText&&300!==r.kind){var _=u.tryGetThisTypeAt(r,!1);if(_&&!function(e,t,r){var n=r.resolveName("self",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;var i=r.resolveName("global",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;var a=r.resolveName("globalThis",void 0,111551,!1);return!(!a||r.getTypeOfSymbolAtLocation(a,t)!==e)}(_,n,u))for(var d=0,p=z(_,u);d<p.length;d++)l=p[d],te[ee.length]={kind:1},ee.push(l),re[e.getSymbolId(l)]=14}ge(),ie&&(Z=x&&e.isAssertionExpression(x.parent)?6:7)}(),1);return 1===t}function ge(){var r,i;if((S||!Y&&o.includeCompletionsForModuleExports&&(n.externalModuleIndicator||n.commonJsModuleIndicator||e.compilerOptionsIndicateEs6Modules(t.getCompilerOptions())||e.programContainsModules(t)))&&(e.Debug.assert(!(null==s?void 0:s.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),!s||s.source)){var a=null===(r=c.getModuleSpecifierCache)||void 0===r?void 0:r.call(c),u=b&&e.isIdentifier(b)?b.text.toLowerCase():"",_=e.getExportInfoMap(n,c,t,l),d=null===(i=c.getPackageJsonAutoImportProvider)||void 0===i?void 0:i.call(c),p=s?void 0:e.createPackageJsonImportFilter(n,o,c);f("collectAutoImports",c,t,n,o,!!S,(function(t){_.forEach(n.path,(function(r,n,i){if(e.isIdentifierText(n,e.getEmitScriptTarget(c.getCompilationSettings()))&&(s||!e.isStringANonContextualKeyword(n))&&(ie||S||111551&r[0].targetFlags)&&(!ie||790504&r[0].targetFlags)){var a=s&&e.some(r,(function(t){return s.source===e.stripQuotes(t.moduleSymbol.name)}));if(a||!s&&$(n,u)){var o=e.find(r,g);if(!o)return;var l=t.tryResolve(r,i)||{},_=l.exportInfo,d=void 0===_?o:_,p=l.moduleSpecifier,f=1===d.exportKind;m=f&&e.getLocalSymbolForExportDefault(d.symbol)||d.symbol,y={kind:p?32:4,moduleSpecifier:p,symbolName:n,exportName:2===d.exportKind?"export=":d.symbol.name,fileName:d.moduleFileName,isDefaultExport:f,moduleSymbol:d.moduleSymbol,isFromPackageJson:d.isFromPackageJson},h=e.getSymbolId(m),15!==re[h]&&(te[ee.length]=y,re[h]=S?11:16,ee.push(m))}}var m,y,h})),Q=t.resolutionLimitExceeded()}))}function g(r){var i=e.tryCast(r.moduleSymbol.valueDeclaration,e.isSourceFile);if(!i){var s=e.stripQuotes(r.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(s)||e.startsWith(s,"node:")===e.shouldUseUriStyleNodeCoreModules(n,t))&&(!p||p.allowsImportingAmbientModule(r.moduleSymbol,ae(r.isFromPackageJson)))}return e.isImportableFile(r.isFromPackageJson?d:t,n,i,o,p,ae(r.isFromPackageJson),a)}}function me(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function ye(t,r){return 63!==t.kind&&(26===t.kind||!e.positionsAreOnSameLine(t.end,r,n))}function he(t){return e.isFunctionLikeKind(t)&&169!==t}function ve(e,t){var r=e.expression,n=u.getSymbolAtLocation(r),i=n&&u.getTypeOfSymbolAtLocation(n,r),a=i&&i.properties;a&&a.forEach((function(e){t.add(e.name)}))}function be(){ee.forEach((function(t){var r;if(16777216&t.flags){var n=e.getSymbolId(t);re[n]=null!==(r=re[n])&&void 0!==r?r:12}}))}function xe(t,r){if(0!==t.size)for(var n=0,i=r;n<i.length;n++){var a=i[n];t.has(a.name)&&(re[e.getSymbolId(a)]=13)}}function De(e){return e.getStart(n)<=a&&a<=e.getEnd()}}function I(t,r){var n=e.findPrecedingToken(t,r);return n&&t<=n.end&&(e.isMemberName(n)||e.isKeyword(n.kind))?{contextToken:e.findPrecedingToken(n.getFullStart(),r,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function O(t,r,n,i){var a=r.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,o=a.getTypeChecker(),s=r.ambientModuleName?o.tryFindAmbientModule(r.ambientModuleName):r.fileName?o.getMergedSymbol(e.Debug.checkDefined(a.getSourceFile(r.fileName)).symbol):void 0;if(s){var c="export="===r.exportName?o.resolveExternalModuleSymbol(s):o.tryGetMemberInModuleExportsAndProperties(r.exportName,s);if(c){var l="default"===r.exportName;return{symbol:c=l&&e.getLocalSymbolForExportDefault(c)||c,origin:{kind:r.moduleSpecifier?32:4,moduleSymbol:s,symbolName:t,isDefaultExport:l,exportName:r.exportName,fileName:r.fileName,isFromPackageJson:!!r.isPackageJsonImport}}}}}function L(t,r,n,i,a){var o=function(e){return _(e)||d(e)}(n)?n.symbolName:t.name;if(!(void 0===o||1536&t.flags&&e.isSingleOrDoubleQuote(o.charCodeAt(0))||e.isKnownSymbol(t))){var s={name:o,needsConvertPropertyAccess:!1};if(e.isIdentifierText(o,r,a?1:0)||t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))return s;switch(i){case 3:return;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return s;default:e.Debug.assertNever(i)}}}t.moduleSpecifierResolutionLimit=100,t.moduleSpecifierResolutionCacheAttemptLimit=1e3,function(e){e.LocalDeclarationPriority="10",e.LocationPriority="11",e.OptionalMember="12",e.MemberDeclaredBySpreadAssignment="13",e.SuggestedClassMembers="14",e.GlobalsOrKeywords="15",e.AutoImportSuggestions="16",e.JavascriptIdentifiers="17",e.DeprecatedLocalDeclarationPriority="18",e.DeprecatedLocationPriority="19",e.DeprecatedOptionalMember="20",e.DeprecatedMemberDeclaredBySpreadAssignment="21",e.DeprecatedSuggestedClassMembers="22",e.DeprecatedGlobalsOrKeywords="23",e.DeprecatedAutoImportSuggestions="24"}(r=t.SortText||(t.SortText={})),function(e){e[e.LocalDeclarationPriority=10]="LocalDeclarationPriority",e[e.LocationPriority=11]="LocationPriority",e[e.OptionalMember=12]="OptionalMember",e[e.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",e[e.SuggestedClassMembers=14]="SuggestedClassMembers",e[e.GlobalsOrKeywords=15]="GlobalsOrKeywords",e[e.AutoImportSuggestions=16]="AutoImportSuggestions",e[e._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",e[e._DeprecatedStart=18]="_DeprecatedStart",e[e._First=10]="_First",e[e.DeprecatedOffset=8]="DeprecatedOffset"}(n||(n={})),function(e){e.ThisProperty="ThisProperty/"}(i=t.CompletionSource||(t.CompletionSource={})),function(e){e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport"}(o||(o={})),function(e){e[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeAssertionKeywords=6]="TypeAssertionKeywords",e[e.TypeKeywords=7]="TypeKeywords",e[e.Last=7]="Last"}(s||(s={})),function(e){e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(c||(c={})),t.getCompletionsAtPosition=function(n,i,o,s,c,l,u,_,d){var p,v=I(c,s).previousToken;if(!u||e.isInString(s,c,v)||function(t,r,n,i){switch(r){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&e.isStringLiteralOrTemplate(n)&&i===n.getStart(t)+1;case"#":return!!n&&e.isPrivateIdentifier(n)&&!!e.getContainingClass(n);case"<":return!!n&&29===n.kind&&(!e.isBinaryExpression(n.parent)||q(n.parent));case"/":return!!n&&(e.isStringLiteralLike(n)?!!e.tryGetImportFromModuleSpecifier(n):43===n.kind&&e.isJsxClosingElement(n.parent));case" ":return!!n&&e.isImportKeyword(n)&&300===n.parent.kind;default:return e.Debug.assertNever(r)}}(s,u,v,c)){if(" "===u)return l.includeCompletionsForImportStatements&&l.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var x=i.getTypeChecker(),S=i.getCompilerOptions(),E=l.allowIncompleteCompletions?null===(p=n.getIncompleteCompletionsCache)||void 0===p?void 0:p.call(n):void 0;if(E&&3===_&&v&&e.isIdentifier(v)){var k=function(t,r,n,i,o,s,c){var l,u=t.get();if(u){var _=n.text.toLowerCase(),d=e.getExportInfoMap(r,o,i,c),p=i.getTypeChecker(),g=null===(l=o.getPackageJsonAutoImportProvider)||void 0===l?void 0:l.call(o),m=null==g?void 0:g.getTypeChecker(),y=f("continuePreviousIncompleteResponse",o,i,r,s,!1,(function(t){var n=e.mapDefined(u.entries,(function(n){if(!n.hasAction||!n.source||!n.data||n.data.moduleSpecifier)return n;if($(n.name,_)){var s=e.Debug.checkDefined(O(n.name,n.data,i,o)),c=s.symbol,l=s.origin,u=d.get(r.path,n.name,c,l.moduleSymbol.name,l.isFromPackageJson?m:p),f=u&&t.tryResolve(u,!e.isExternalModuleNameRelative(e.stripQuotes(l.moduleSymbol.name)));if(!f)return n;var g=a(a({},l),{kind:32,moduleSpecifier:f.moduleSpecifier});return n.data=D(g),n.source=T(g),n.sourceDisplay=[e.textPart(g.moduleSpecifier)],n}}));return t.resolutionLimitExceeded()||(u.isIncomplete=void 0),n}));return u.entries=y,u}}(E,s,v,i,n,l,d);if(k)return k}else null==E||E.clear();var A=t.StringCompletions.getStringLiteralCompletions(s,c,v,x,S,n,o,l);if(A)return A;if(v&&e.isBreakOrContinueStatement(v.parent)&&(81===v.kind||86===v.kind||79===v.kind))return function(t){var n=function(t){for(var n=[],i=new e.Map,a=t;a&&!e.isFunctionLike(a);){if(e.isLabeledStatement(a)){var o=a.label.text;i.has(o)||(i.set(o,!0),n.push({name:o,kindModifiers:"",kind:"label",sortText:r.LocationPriority}))}a=a.parent}return n}(t);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}}(v.parent);var N=P(i,o,s,y(s,S),c,l,void 0,n,d);if(N)switch(N.kind){case 0:var F=function(t,n,i,a,o,s){var c=o.symbols,l=o.completionKind,u=o.isInSnippetScope,_=o.isNewIdentifierLocation,d=o.location,p=o.propertyAccessToConvert,f=o.keywordFilters,g=o.literals,v=o.symbolToOriginInfoMap,x=o.recommendedCompletion,D=o.isJsxInitializer,S=o.isTypeOnlyLocation,E=o.isJsxIdentifierExpected,T=o.importCompletionNode,k=o.insideJsDocTagTypeExpression,A=o.symbolToSortTextIdMap,N=o.hasUnresolvedAutoImports;if(1===e.getLanguageVariant(t.scriptKind)){var F=function(t,n){var i=e.findAncestor(t,(function(e){switch(e.kind){case 279:return!0;case 43:case 31:case 79:case 204:return!1;default:return"quit"}}));if(i){var a=!!e.findChildOfKind(i,31,n),o=i.parent.openingElement.tagName.getText(n)+(a?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:r.LocationPriority}]}}}(d,t);if(F)return F}var w=[];if(y(t,i)){var P=C(c,w,void 0,d,t,n,i.target,a,l,s,i,S,p,E,D,T,x,v,A);!function(t,n,i,a,o){e.getNameTable(t).forEach((function(t,s){if(t!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:r.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(t,d.pos,P,i.target,w)}else{if(!(_||c&&0!==c.length||0!==f))return;C(c,w,void 0,d,t,n,i.target,a,l,s,i,S,p,E,D,T,x,v,A)}if(0!==f)for(var I=new e.Set(w.map((function(e){return e.name}))),O=0,L=function(t,r){if(!r)return B(t);var n=t+7+1;return M[n]||(M[n]=B(t).filter((function(t){return!function(e){switch(e){case 126:case 129:case 156:case 132:case 134:case 92:case 155:case 117:case 136:case 118:case 138:case 139:case 140:case 141:case 142:case 145:case 146:case 157:case 121:case 122:case 123:case 143:case 148:case 149:case 150:case 152:case 153:return!0;default:return!1}}(e.stringToToken(t.name))})))}(f,!k&&e.isSourceFileJS(t));O<L.length;O++){var R=L[O];I.has(R.name)||w.push(R)}for(var j=0,J=g;j<J.length;j++){var V=J[j];w.push(b(t,s,V))}return{isGlobalCompletion:u,isIncomplete:!(!s.allowIncompleteCompletions||!N)||void 0,isMemberCompletion:h(l),isNewIdentifierLocation:_,optionalReplacementSpan:m(d),entries:w}}(s,x,S,o,N,l);return(null==F?void 0:F.isIncomplete)&&(null==E||E.set(F)),F;case 1:return g(e.JsDoc.getJSDocTagNameCompletions());case 2:return g(e.JsDoc.getJSDocTagCompletions());case 3:return g(e.JsDoc.getJSDocParameterNameCompletions(N.tag));case 4:return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:N.keywords.map((function(t){return{name:e.tokenToString(t),kind:"keyword",kindModifiers:"",sortText:r.GlobalsOrKeywords}}))};default:return e.Debug.assertNever(N)}}},t.getCompletionEntriesFromSymbols=C,t.getCompletionEntryDetails=function(r,n,i,a,o,s,c,l,u){var p=r.getTypeChecker(),f=r.getCompilerOptions(),g=o.name,m=e.findPrecedingToken(a,i);if(e.isInString(i,a,m))return t.StringCompletions.getStringLiteralCompletionDetails(g,i,a,m,p,f,s,u,l);var y=k(r,n,i,a,o,s,l);switch(y.type){case"request":var h=y.request;switch(h.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(g);case 2:return e.JsDoc.getJSDocTagCompletionDetails(g);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(g);case 4:return h.keywords.indexOf(e.stringToToken(g))>-1?A(g,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(h)}case"symbol":var b=y.symbol,x=y.location,D=function(t,r,n,i,a,o,s,c,l,u,p){if(null==p?void 0:p.moduleSpecifier){var f=I(s,o),g=f.contextToken,m=f.previousToken;if(m&&H(g||m))return{codeActions:void 0,sourceDisplay:[e.textPart(p.moduleSpecifier)]}}if(!t||!_(t)&&!d(t))return{codeActions:void 0,sourceDisplay:void 0};var y=t.isFromPackageJson?i.getPackageJsonAutoImportProvider().getTypeChecker():n.getTypeChecker(),h=t.moduleSymbol,v=y.getMergedSymbol(e.skipAlias(r.exportSymbol||r,y)),b=e.codefix.getImportCompletionAction(v,h,o,e.getNameForExportedSymbol(r,a.target),i,n,l,c&&e.isIdentifier(c)?c.getStart(o):s,u),x=b.moduleSpecifier,D=b.codeAction;return e.Debug.assert(!(null==p?void 0:p.moduleSpecifier)||x===p.moduleSpecifier),{sourceDisplay:[e.textPart(x)],codeActions:[D]}}(y.origin,b,r,s,f,i,a,y.previousToken,c,l,o.data);return N(b,p,i,x,u,D.codeActions,D.sourceDisplay);case"literal":var S=y.literal;return A(v(i,l,S),"string","string"==typeof S?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return R().some((function(e){return e.name===g}))?A(g,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(y)}},t.createCompletionDetailsForSymbol=N,t.createCompletionDetails=F,t.getCompletionEntrySymbol=function(e,t,r,n,i,a,o){var s=k(e,t,r,n,i,a,o);return"symbol"===s.type?s.symbol:void 0},function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName",e[e.Keywords=4]="Keywords"}(l||(l={})),(u=t.CompletionKind||(t.CompletionKind={}))[u.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",u[u.Global=1]="Global",u[u.PropertyAccess=2]="PropertyAccess",u[u.MemberLike=3]="MemberLike",u[u.String=4]="String",u[u.None=5]="None";var M=[],R=e.memoize((function(){for(var t=[],n=81;n<=158;n++)t.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:r.GlobalsOrKeywords});return t}));function B(t){return M[t]||(M[t]=R().filter((function(r){var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return V(n)||134===n||140===n||150===n||141===n||e.isTypeKeyword(n)&&151!==n;case 5:return V(n);case 2:return J(n);case 3:return j(n);case 4:return e.isParameterPropertyModifier(n);case 6:return e.isTypeKeyword(n)||85===n;case 7:return e.isTypeKeyword(n);default:return e.Debug.assertNever(t)}})))}function j(e){return 143===e}function J(t){switch(t){case 126:case 133:case 135:case 147:case 130:case 134:case 157:return!0;default:return e.isClassMemberModifier(t)}}function V(t){return 130===t||131===t||127===t||!e.isContextualKeyword(t)&&!J(t)}function U(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function K(t,r,n,i){var a=r&&r!==t,o=!a||3&r.flags?t:i.getUnionType([t,r]),s=o.isUnion()?i.getAllPossiblePropertiesOfTypes(o.types.filter((function(t){return!(131068&t.flags||i.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,i)||i.isTypeInvalidDueToUnionDiscriminant(t,n))}))):o.getApparentProperties();return a?s.filter((function(t){return e.some(t.declarations,(function(e){return e.parent!==n}))})):s}function z(t,r){return t.isUnion()?e.Debug.checkEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function G(t,r){if(t){if(e.isTypeNode(t)&&e.isTypeReferenceType(t.parent))return r.getTypeArgumentConstraint(t);var n=G(t.parent,r);if(n)switch(t.kind){case 164:return r.getTypeOfPropertyOfContextualType(n,t.symbol.escapedName);case 186:case 180:case 185:return n}}}function W(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function q(t){var r=t.left;return e.nodeIsMissing(r)}function H(t){var r,n=(r=t.parent,e.isImportEqualsDeclaration(r)?Y(r.moduleReference)?r:void 0:e.isNamedImports(r)||e.isNamespaceImport(r)?Y(r.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(r)||r.elements.length<2)&&!r.parent.name?19===t.kind||79===t.kind?154:r.parent.parent:void 0:e.isImportKeyword(t)&&e.isSourceFile(r)?t:e.isImportKeyword(t)&&e.isImportDeclaration(r)&&Y(r.moduleSpecifier)?r:void 0);return 154===n||n&&e.rangeIsOnSingleLine(n,n.getSourceFile())?n:void 0}function Y(t){var r;return!!e.nodeIsMissing(t)||!(null===(r=e.tryCast(e.isExternalModuleReference(t)?t.expression:t,e.isStringLiteralLike))||void 0===r?void 0:r.text)}function X(t,r,n){void 0===n&&(n=new e.Map);var i=e.skipAlias(t.exportSymbol||t,r);return!!(788968&i.flags)||r.isUnknownSymbol(i)||!!(1536&i.flags)&&e.addToSeen(n,e.getSymbolId(i))&&r.getExportsOfModule(i).some((function(e){return X(e,r,n)}))}function Q(t,r){var n=e.skipAlias(t,r).declarations;return!!e.length(n)&&e.every(n,e.isDeprecatedDeclaration)}function $(e,t){if(0===t.length)return!0;for(var r,n=!1,i=0,a=e.length,o=0;o<a;o++){var s=e.charCodeAt(o),c=t.charCodeAt(i);if((s===c||s===(97<=(l=c)&&l<=122?l-32:l))&&(n||(n=void 0===r||97<=r&&r<=122&&65<=s&&s<=90||95===r&&95!==s),n&&i++,i===t.length))return!0;r=s}var l;return!1}t.getPropertiesForObjectExpression=K}(e.Completions||(e.Completions={}))}(u||(u={})),function(e){!function(t){function r(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function n(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?n(t.catchClause):t.tryBlock&&n(t.tryBlock),t.finallyBlock&&n(t.finallyBlock)):e.isFunctionLike(t)?void 0:o(t,n)}function a(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:o(t,a)}function o(t,r){var n=[];return t.forEachChild((function(t){var i=r(t);void 0!==i&&n.push.apply(n,e.toArray(i))})),n}function s(e,t){var r=c(t);return!!r&&r===e}function c(t){return e.findAncestor(t,(function(r){switch(r.kind){case 247:if(243===t.kind)return!1;case 240:case 241:case 242:case 239:case 238:return!t.label||function(t,r){return!!e.findAncestor(t.parent,(function(t){return e.isLabeledStatement(t)?t.label.escapedText===r:"quit"}))}(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}}))}function l(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return!(!r||!e.contains(n,r.kind)||(t.push(r),0))}function u(t){var r=[];if(l(r,t.getFirstToken(),97,115,90)&&238===t.kind)for(var n=t.getChildren(),i=n.length-1;i>=0&&!l(r,n[i],115);i--);return e.forEach(a(t.statement),(function(e){s(t,e)&&l(r,e.getFirstToken(),81,86)})),r}function _(e){var t=c(e);if(t)switch(t.kind){case 240:case 241:case 242:case 238:case 239:return u(t);case 247:return d(t)}}function d(t){var r=[];return l(r,t.getFirstToken(),107),e.forEach(t.caseBlock.clauses,(function(n){l(r,n.getFirstToken(),82,88),e.forEach(a(n),(function(e){s(t,e)&&l(r,e.getFirstToken(),81)}))})),r}function p(t,r){var n=[];return l(n,t.getFirstToken(),111),t.catchClause&&l(n,t.catchClause.getFirstToken(),83),t.finallyBlock&&l(n,e.findChildOfKind(t,96,r),96),n}function f(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||300===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),(function(t){a.push(e.findChildOfKind(t,109,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(function(t){a.push(e.findChildOfKind(t,105,r))})),a}}function g(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),(function(t){a.push(e.findChildOfKind(t,105,r))})),e.forEach(n(i.body),(function(t){a.push(e.findChildOfKind(t,109,r))})),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){l(n,e,130)})),e.forEachChild(r,(function(t){y(t,(function(t){e.isAwaitExpression(t)&&l(n,t.getFirstToken(),131)}))})),n}}function y(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,(function(e){return y(e,r)}))}t.getDocumentHighlights=function(t,n,a,o,s){var c=e.getTouchingPropertyName(a,o);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var h=c.parent.parent,v=[h.openingElement,h.closingElement].map((function(e){return r(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:v}]}return function(t,r,n,i,a){var o=new e.Set(a.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span})),l=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(function(t){var r=t[0],i=t[1];if(!o.has(r)){if(!n.redirectTargetsMap.has(e.toPath(r,n.getCurrentDirectory(),l)))return;var s=n.getSourceFile(r);r=e.find(a,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}}(o,c,t,n,s)||function(t,n){var a=function(t,n){switch(t.kind){case 99:case 91:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);l(n,i[0],99);for(var a=i.length-1;a>=0&&!l(n,i[a],91);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o<i.length;o++){if(91===i[o].kind&&o<i.length-1){for(var s=i[o],c=i[o+1],u=!0,_=c.getStart(n)-1;_>=s.end;_--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(_))){u=!1;break}if(u){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 105:return c(t.parent,e.isReturnStatement,g);case 109:return c(t.parent,e.isThrowStatement,f);case 111:case 83:case 96:return c(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,p);case 107:return c(t.parent,e.isSwitchStatement,d);case 82:case 88:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?c(t.parent.parent.parent,e.isSwitchStatement,d):void 0;case 81:case 86:return c(t.parent,e.isBreakOrContinueStatement,_);case 97:case 115:case 90:return c(t.parent,(function(t){return e.isIterationStatement(t,!0)}),u);case 133:return s(e.isConstructorDeclaration,[133]);case 135:case 147:return s(e.isAccessor,[135,147]);case 131:return c(t.parent,e.isAwaitExpression,m);case 130:return h(m(t));case 125:return h(function(t){var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,(function(t){y(t,(function(t){e.isYieldExpression(t)&&l(n,t.getFirstToken(),125)}))})),n}}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?h((a=t.kind,o=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 260:case 300:case 233:case 287:case 288:return 128&r&&e.isClassDeclaration(t)?i(i([],t.members,!0),[t],!1):n.statements;case 169:case 167:case 254:return i(i([],n.parameters,!0),e.isClassLike(n.parent)?n.parent.members:[],!0);case 255:case 224:case 256:case 180:var a=n.members;if(92&r){var o=e.find(n.members,e.isConstructorDeclaration);if(o)return i(i([],a,!0),o.parameters,!0)}else if(128&r)return i(i([],a,!0),[n],!1);return a;case 203:return;default:e.Debug.assertNever(n,"Invalid container kind.")}}(o,e.modifierToFlag(a)),(function(t){return e.findModifier(t,a)})))):void 0}var a,o;function s(r,i){return c(t.parent,r,(function(t){return e.mapDefined(t.symbol.declarations,(function(t){return r(t)?e.find(t.getChildren(n),(function(t){return e.contains(i,t.kind)})):void 0}))}))}function c(e,t,r){return t(e)?h(r(e,n)):void 0}function h(e){return e&&e.map((function(e){return r(e,n)}))}}(t,n);return a&&[{fileName:n.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(u||(u={})),function(e){function t(e){return!!e.sourceFile}function r(r,i,a){void 0===i&&(i="");var o=new e.Map,s=e.createGetCanonicalFileName(!!r);function c(e,t,r,n,i,a,o){return _(e,t,r,n,i,a,!0,o)}function l(e,t,r,n,i,a,o){return _(e,t,r,n,i,a,!1,o)}function u(r,n){var i=t(r)?r:r.get(e.Debug.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===n||!i||i.sourceFile.scriptKind===n,"Script kind should match provided ScriptKind:"+n+" and sourceFile.scriptKind: "+(null==i?void 0:i.sourceFile.scriptKind)+", !entry: "+!i),i}function _(r,n,i,s,c,l,_,d){var p=6===(d=e.ensureScriptKind(r,d))?100:i.target||1,f=e.getOrUpdate(o,s,(function(){return new e.Map})),g=f.get(n),m=g&&u(g,d);if(!m&&a&&(y=a.getDocument(s,n))&&(e.Debug.assert(_),m={sourceFile:y,languageServiceRefCount:0},h()),m)m.sourceFile.version!==l&&(m.sourceFile=e.updateLanguageServiceSourceFile(m.sourceFile,c,l,c.getChangeRange(m.sourceFile.scriptSnapshot)),a&&a.setDocument(s,n,m.sourceFile)),_&&m.languageServiceRefCount++;else{var y=e.createLanguageServiceSourceFile(r,c,p,l,!1,d);a&&a.setDocument(s,n,y),m={sourceFile:y,languageServiceRefCount:1},h()}return e.Debug.assert(0!==m.languageServiceRefCount),m.sourceFile;function h(){if(g)if(t(g)){var r=new e.Map;r.set(g.sourceFile.scriptKind,g),r.set(d,m),f.set(n,r)}else g.set(d,m);else f.set(n,m)}}function d(r,n,i){var a=e.Debug.checkDefined(o.get(n)),s=a.get(r),c=u(s,i);c.languageServiceRefCount--,e.Debug.assert(c.languageServiceRefCount>=0),0===c.languageServiceRefCount&&(t(s)?a.delete(r):(s.delete(i),1===s.size&&a.set(r,e.firstDefinedIterator(s.values(),e.identity))))}return{acquireDocument:function(t,r,a,o,l){return c(t,e.toPath(t,i,s),r,n(r),a,o,l)},acquireDocumentWithKey:c,updateDocument:function(t,r,a,o,c){return l(t,e.toPath(t,i,s),r,n(r),a,o,c)},updateDocumentWithKey:l,releaseDocument:function(t,r,a){return d(e.toPath(t,i,s),n(r),a)},releaseDocumentWithKey:d,getLanguageServiceRefCounts:function(t,r){return e.arrayFrom(o.entries(),(function(e){var n=e[0],i=e[1].get(t),a=i&&u(i,r);return[n,a&&a.languageServiceRefCount]}))},reportStats:function(){var r=e.arrayFrom(o.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var r=o.get(e),n=[];return r.forEach((function(e,r){t(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((function(e,t){return n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})}))})),n.sort((function(e,t){return t.refCount-e.refCount})),{bucket:e,sourceFiles:n}}));return JSON.stringify(r,void 0,2)},getKeyForCompilationSettings:n}}function n(t){return e.sourceFileAffectingCompilerOptions.map((function(r){return e.getCompilerOptionValue(t,r)})).join("|")}e.createDocumentRegistry=function(e,t){return r(e,t)},e.createDocumentRegistryInternal=r}(u||(u={})),function(e){!function(t){function r(t,r){return e.forEach(300===t.kind?t.statements:t.body.statements,(function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)}))}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i<a.length;i++){var o=a[i];n(e.importFromModuleSpecifier(o),o)}else r(t,(function(t){switch(t.kind){case 270:case 264:(r=t).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&n(r,r.moduleSpecifier);break;case 263:var r;l(r=t)&&n(r,r.moduleReference.expression)}}))}function i(t,r,n){var i=t.parent;if(i){var a=n.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:void 0}}function o(e,t){return t.getMergedSymbol(s(e).symbol)}function s(t){if(206===t.kind)return t.getSourceFile();var r=t.parent;return 300===r.kind?r:(e.Debug.assert(260===r.kind),e.cast(r.parent,c))}function c(e){return 259===e.kind&&10===e.name.kind}function l(e){return 275===e.moduleReference.kind&&10===e.moduleReference.expression.kind}var u,_;t.createImportTracker=function(t,i,u,_){var d=function(t,r,i){for(var a=new e.Map,o=0,s=t;o<s.length;o++){var c=s[o];i&&i.throwIfCancellationRequested(),n(c,(function(t,n){var i=r.getSymbolAtLocation(n);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}}))}return a}(t,u,_);return function(n,p,f){var g=function(t,n,i,a,l,u){var _=a.exportingModuleSymbol,d=a.exportKind,p=e.nodeSeenTracker(),f=e.nodeSeenTracker(),g=[],m=!!_.globalExports,y=m?void 0:[];return function t(r){var n=x(r);if(n)for(var i=0,a=n;i<a.length;i++){var _=a[i];if(p(_))switch(u&&u.throwIfCancellationRequested(),_.kind){case 206:if(e.isImportCall(_)){S=_,b(e.findAncestor(S,c)||S.getSourceFile(),!!h(S,!0));break}if(!m){var f=_.parent;if(2===d&&252===f.kind){var y=f.name;if(79===y.kind){g.push(y);break}}}break;case 79:break;case 263:v(_,_.name,e.hasSyntacticModifier(_,1),!1);break;case 264:g.push(_);var D=_.importClause&&_.importClause.namedBindings;D&&266===D.kind?v(_,D.name,!1,!0):!m&&e.isDefaultImport(_)&&b(s(_));break;case 270:_.exportClause?272===_.exportClause.kind?b(s(_),!0):g.push(_):t(o(_,l));break;case 198:_.isTypeOf&&!_.qualifier&&h(_)&&b(_.getSourceFile(),!0),g.push(_);break;default:e.Debug.failBadSyntaxKind(_,"Unexpected import kind.")}}var S}(_),{directImports:g,indirectUsers:function(){if(m)return t;if(_.declarations)for(var r=0,i=_.declarations;r<i.length;r++){var a=i[r];e.isExternalModuleAugmentation(a)&&n.has(a.getSourceFile().fileName)&&b(a)}return y.map(e.getSourceFileOfNode)}()};function h(t,r){return void 0===r&&(r=!1),e.findAncestor(t,(function(t){return r&&c(t)?"quit":e.some(t.modifiers,(function(e){return 93===e.kind}))}))}function v(t,n,i,a){if(2===d)a||g.push(t);else if(!m){var o=s(t);e.Debug.assert(300===o.kind||259===o.kind),i||function(t,n,i){var a=i.getSymbolAtLocation(n);return!!r(t,(function(t){if(e.isExportDeclaration(t)){var r=t.exportClause;return!t.moduleSpecifier&&r&&e.isNamedExports(r)&&r.elements.some((function(e){return i.getExportSpecifierLocalTargetSymbol(e)===a}))}}))}(o,n,l)?b(o,!0):b(o)}}function b(t,r){if(void 0===r&&(r=!1),e.Debug.assert(!m),f(t)&&(y.push(t),r)){var n=l.getMergedSymbol(t.symbol);if(n){e.Debug.assert(!!(1536&n.flags));var i=x(n);if(i)for(var a=0,o=i;a<o.length;a++){var c=o[a];e.isImportTypeNode(c)||b(s(c),!0)}}}}function x(t){return i.get(e.getSymbolId(t).toString())}}(t,i,d,p,u,_),m=g.directImports,y=g.indirectUsers;return a({indirectUsers:y},function(t,r,n,i,a){var o=[],s=[];function c(e,t){o.push([e,t])}if(t)for(var u=0,_=t;u<_.length;u++)d(_[u]);return{importSearches:o,singleReferences:s};function d(t){if(263!==t.kind)if(79!==t.kind)if(198!==t.kind){if(10===t.moduleSpecifier.kind)if(270!==t.kind){var o=t.importClause||{name:void 0,namedBindings:void 0},u=o.name,_=o.namedBindings;if(_)switch(_.kind){case 266:p(_.name);break;case 267:0!==n&&1!==n||f(_);break;default:e.Debug.assertNever(_)}!u||1!==n&&2!==n||a&&u.escapedText!==e.symbolEscapedNameNoDefault(r)||c(u,i.getSymbolAtLocation(u))}else t.exportClause&&e.isNamedExports(t.exportClause)&&f(t.exportClause)}else if(t.qualifier){var d=e.getFirstIdentifier(t.qualifier);d.escapedText===e.symbolName(r)&&s.push(d)}else 2===n&&s.push(t.argument.literal);else p(t);else l(t)&&p(t.name)}function p(e){2!==n||a&&!g(e.escapedText)||c(e,i.getSymbolAtLocation(e))}function f(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var o=n[t],l=o.name,u=o.propertyName;g((u||l).escapedText)&&(u?(s.push(u),a&&l.escapedText!==r.escapedName||c(l,i.getSymbolAtLocation(l))):c(l,273===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(l)))}}function g(e){return e===r.escapedName||0!==n&&"default"===e}}(m,n,p.exportKind,u,f))}},(_=t.ExportKind||(t.ExportKind={}))[_.Named=0]="Named",_[_.Default=1]="Default",_[_.ExportEquals=2]="ExportEquals",(u=t.ImportExport||(t.ImportExport={}))[u.Import=0]="Import",u[u.Export=1]="Export",t.findModuleReferences=function(e,t,r){for(var i=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],l=r.valueDeclaration;if(300===(null==l?void 0:l.kind)){for(var u=0,_=c.referencedFiles;u<_.length;u++){var d=_[u];e.getSourceFileFromReference(c,d)===l&&i.push({kind:"reference",referencingFile:c,ref:d})}for(var p=0,f=c.typeReferenceDirectives;p<f.length;p++){d=f[p];var g=e.getResolvedTypeReferenceDirectives().get(d.fileName);void 0!==g&&g.resolvedFileName===l.fileName&&i.push({kind:"reference",referencingFile:c,ref:d})}}n(c,(function(e,t){a.getSymbolAtLocation(t)===r&&i.push({kind:"import",literal:t})}))}return i},t.getImportOrExportSymbol=function(t,r,n,a){return a?o():o()||function(){if(function(t){var r=t.parent;switch(r.kind){case 263:return r.name===t&&l(r);case 268:return!r.propertyName;case 265:case 266:return e.Debug.assert(r.name===t),!0;case 201:return e.isInJSFile(t)&&e.isRequireVariableDeclaration(r);default:return!1}}(t)){var i=n.getImmediateAliasedSymbol(r);if(i){i=function(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(a);if(e.isPropertyAccessExpression(a)&&e.isModuleExportsAccessExpression(a.expression)&&!e.isPrivateIdentifier(a.name))return r.getSymbolAtLocation(a);if(e.isShorthandPropertyAssignment(a)&&e.isBinaryExpression(a.parent.parent)&&2===e.getAssignmentDeclarationKind(a.parent.parent))return r.getExportSpecifierLocalTargetSymbol(a.name)}return t}(i,n),"export="===i.escapedName&&(i=function(t,r){if(2097152&t.flags)return e.Debug.checkDefined(r.getImmediateAliasedSymbol(t));var n=e.Debug.checkDefined(t.valueDeclaration);return e.isExportAssignment(n)?e.Debug.checkDefined(n.expression.symbol):e.isBinaryExpression(n)?e.Debug.checkDefined(n.right.symbol):e.isSourceFile(n)?e.Debug.checkDefined(n.symbol):e.Debug.fail()}(i,n));var a=e.symbolEscapedNameNoDefault(i);return void 0===a||"default"===a||a===r.escapedName?{kind:0,symbol:i}:void 0}}}();function o(){var i,o=t.parent,l=o.parent;if(r.exportSymbol)return 204===o.kind?(null===(i=r.declarations)||void 0===i?void 0:i.some((function(e){return e===o})))&&e.isBinaryExpression(l)?d(l,!1):void 0:s(r.exportSymbol,c(o));var u=function(t,r){var n=e.isVariableDeclaration(t)?t:e.isBindingElement(t)?e.walkUpBindingElementsAndPatterns(t):void 0;return n?t.name!==r||e.isCatchClause(n.parent)?void 0:e.isVariableStatement(n.parent.parent)?n.parent.parent:void 0:t}(o,t);if(u&&e.hasSyntacticModifier(u,1)){if(e.isImportEqualsDeclaration(u)&&u.moduleReference===t){if(a)return;return{kind:0,symbol:n.getSymbolAtLocation(u.name)}}return s(r,c(u))}if(e.isNamespaceExport(o))return s(r,0);if(e.isExportAssignment(o))return _(o);if(e.isExportAssignment(l))return _(l);if(e.isBinaryExpression(o))return d(o,!0);if(e.isBinaryExpression(l))return d(l,!0);if(e.isJSDocTypedefTag(o))return s(r,0);function _(e){if(e.symbol.parent){var t=e.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:t}}}}function d(t,i){var a;switch(e.getAssignmentDeclarationKind(t)){case 1:a=0;break;case 2:a=2;break;default:return}var o=i?n.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(t.left,e.isAccessExpression))):r;return o&&s(o,a)}}function s(e,t){var r=i(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function c(t){return e.hasSyntacticModifier(t,512)?1:0}},t.getExportInfo=i}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(t){var r,n,o,s;function c(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:u(e)}}function l(e){return e&&void 0===e.kind}function u(t){if(e.isDeclaration(t))return _(t);if(t.parent){if(!e.isDeclaration(t.parent)&&!e.isExportAssignment(t.parent)){if(e.isInJSFile(t)){var r=e.isBinaryExpression(t.parent)?t.parent:e.isAccessExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(r&&0!==e.getAssignmentDeclarationKind(r))return _(r)}if(e.isJsxOpeningElement(t.parent)||e.isJsxClosingElement(t.parent))return t.parent.parent;if(e.isJsxSelfClosingElement(t.parent)||e.isLabeledStatement(t.parent)||e.isBreakOrContinueStatement(t.parent))return t.parent;if(e.isStringLiteralLike(t)){var n=e.tryGetImportFromModuleSpecifier(t);if(n){var i=e.findAncestor(n,(function(t){return e.isDeclaration(t)||e.isStatement(t)||e.isJSDocTag(t)}));return e.isDeclaration(i)?_(i):i}}var a=e.findAncestor(t,e.isComputedPropertyName);return a?_(a.parent):void 0}return t.parent.name===t||e.isConstructorDeclaration(t.parent)||e.isExportAssignment(t.parent)||(e.isImportOrExportSpecifier(t.parent)||e.isBindingElement(t.parent))&&t.parent.propertyName===t||88===t.kind&&e.hasSyntacticModifier(t.parent,513)?_(t.parent):void 0}}function _(t){if(t)switch(t.kind){case 252:return e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?e.isVariableStatement(t.parent.parent)?t.parent.parent:e.isForInOrOfStatement(t.parent.parent)?_(t.parent.parent):t.parent:t;case 201:return _(t.parent.parent);case 268:return t.parent.parent.parent;case 273:case 266:return t.parent.parent;case 265:case 272:return t.parent;case 219:return e.isExpressionStatement(t.parent)?t.parent:t;case 242:case 241:return{start:t.initializer,end:t.expression};case 291:case 292:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)?_(e.findAncestor(t.parent,(function(t){return e.isBinaryExpression(t)||e.isForInOrOfStatement(t)}))):t;default:return t}}function d(e,t,r){if(r){var n=l(r)?b(r.start,t,r.end):b(r,t);return n.start!==e.start||n.length!==e.length?{contextSpan:n}:void 0}}function p(t,n,i,a,o){if(300!==a.kind){var s=t.getTypeChecker();if(292===a.parent.kind){var l=[];return r.getReferenceEntriesForShorthandPropertyAssignment(a,s,(function(e){return l.push(c(e))})),l}if(106===a.kind||e.isSuperProperty(a.parent)){var u=s.getSymbolAtLocation(a);return u.valueDeclaration&&[c(u.valueDeclaration)]}return f(o,a,t,i,n,{implementations:!0,use:1})}}function f(t,n,i,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=new e.Set(a.map((function(e){return e.fileName})))),g(r.getReferencedSymbolsForNode(t,n,i,a,o,s,c))}function g(t){return t&&e.flatMap(t,(function(e){return e.references}))}function m(t){var r=t.getSourceFile();return{sourceFile:r,textSpan:b(e.isComputedPropertyName(t)?t.expression:t,r)}}function y(t,n,i){var a=r.getIntersectingMeaningFromDeclarations(i,t),o=t.declarations&&e.firstOrUndefined(t.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,t,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function h(e){var t=v(e);if(0===e.kind)return a(a({},t),{isWriteAccess:!1,isDefinition:!1});var r=e.kind,n=e.node;return a(a({},t),{isWriteAccess:D(n),isDefinition:S(n),isInString:2===r||void 0})}function v(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=b(e.node,t);return a({textSpan:r,fileName:t.fileName},d(r,t,e.context))}function b(t,r,n){var i=t.getStart(r),a=(n||t).getEnd();return e.isStringLiteralLike(t)&&(e.Debug.assert(void 0===n),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function x(e){return 0===e.kind?e.textSpan:b(e.node,e.node.getSourceFile())}function D(t){var r=e.getDeclarationFromName(t);return!!r&&function(t){if(8388608&t.flags)return!0;switch(t.kind){case 219:case 201:case 255:case 224:case 88:case 258:case 294:case 273:case 265:case 263:case 268:case 256:case 333:case 340:case 283:case 259:case 262:case 266:case 272:case 162:case 292:case 257:case 161:return!0;case 291:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 254:case 211:case 169:case 167:case 170:case 171:return!!t.body;case 252:case 165:return!!t.initializer||e.isCatchClause(t.parent);case 166:case 164:case 342:case 335:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(r)||88===t.kind||e.isWriteAccess(t)}function S(t){return 88===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||133===t.kind&&e.isConstructorDeclaration(t.parent)}(s=t.DefinitionKind||(t.DefinitionKind={}))[s.Symbol=0]="Symbol",s[s.Label=1]="Label",s[s.Keyword=2]="Keyword",s[s.This=3]="This",s[s.String=4]="String",s[s.TripleSlashReference=5]="TripleSlashReference",(o=t.EntryKind||(t.EntryKind={}))[o.Span=0]="Span",o[o.Node=1]="Node",o[o.StringLiteral=2]="StringLiteral",o[o.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",o[o.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t.nodeEntry=c,t.isContextWithStartAndEndNode=l,t.getContextNode=_,t.toContextSpan=d,(n=t.FindReferencesUse||(t.FindReferencesUse={}))[n.Other=0]="Other",n[n.References=1]="References",n[n.Rename=2]="Rename",t.findReferencedSymbols=function(t,n,i,o,s){var c=e.getTouchingPropertyName(o,s),l=r.getReferencedSymbolsForNode(s,c,t,i,n,{use:1}),u=t.getTypeChecker();return l&&l.length?e.mapDefined(l,(function(t){var r=t.definition,i=t.references;return r&&{definition:u.runWithCancellationToken(n,(function(t){return function(t,r,n){var i=function(){switch(t.type){case 0:var i=y(p=t.symbol,r,n),o=i.displayParts,s=i.kind,c=o.map((function(e){return e.text})).join(""),l=p.declarations&&e.firstOrUndefined(p.declarations),u=l?e.getNameOfDeclaration(l)||l:n;return a(a({},m(u)),{name:c,kind:s,displayParts:o,context:_(l)});case 1:return u=t.node,a(a({},m(u)),{name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]});case 2:u=t.node;var d=e.tokenToString(u.kind);return a(a({},m(u)),{name:d,kind:"keyword",displayParts:[{text:d,kind:"keyword"}]});case 3:u=t.node;var p,f=(p=r.getSymbolAtLocation(u))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,p,u.getSourceFile(),e.getContainerNode(u),u).displayParts||[e.textPart("this")];return a(a({},m(u)),{name:"this",kind:"var",displayParts:f});case 4:return u=t.node,a(a({},m(u)),{name:u.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(u),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[e.displayPart('"'+t.reference.fileName+'"',e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),o=i.sourceFile,s=i.textSpan,c=i.name,l=i.kind,u=i.displayParts,p=i.context;return a({containerKind:"",containerName:"",fileName:o.fileName,kind:l,name:c,textSpan:s,displayParts:u},d(s,o,p))}(r,t,c)})),references:i.map(h)}})):void 0},t.getImplementationsAtPosition=function(t,r,n,o,s){var c,l=e.getTouchingPropertyName(o,s),u=p(t,r,n,l,s);if(204===l.parent.kind||201===l.parent.kind||205===l.parent.kind||106===l.kind)c=u&&i([],u,!0);else for(var _=u&&i([],u,!0),d=new e.Map;_&&_.length;){var f=_.shift();if(e.addToSeen(d,e.getNodeId(f.node))){c=e.append(c,f);var g=p(t,r,n,f.node,f.node.pos);g&&_.push.apply(_,g)}}var m=t.getTypeChecker();return e.map(c,(function(t){return function(t,r){var n=v(t);if(0!==t.kind){var i=t.node;return a(a({},n),function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?y(n,r,t):203===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:224===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}}(i,r))}return a(a({},n),{kind:"",displayParts:[]})}(t,m)}))},t.findReferenceOrRenameEntries=function(t,n,i,a,o,s,c){return e.map(g(r.getReferencedSymbolsForNode(o,a,t,i,n,s)),(function(e){return c(e,a,t.getTypeChecker())}))},t.getReferenceEntriesForNode=f,t.toRenameLocation=function(t,r,n,i){return a(a({},v(t)),i&&function(t,r,n){if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=i.parent,s=r.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},u={suffixText:": "+s};if(3===a)return l;if(4===a)return u;if(c){var _=o.parent;return e.isObjectLiteralExpression(_)&&e.isBinaryExpression(_.parent)&&e.isModuleExportsAccessExpression(_.parent.left)?l:u}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var d=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(d.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions}(t,r,n))},t.toReferenceEntry=h,t.toHighlightSpan=function(e){var t=v(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=D(e.node),n=a({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:n}},t.getTextSpanOfEntry=x,function(r){function n(t,r,n){for(var i,a=0,o=r.get(t.path)||e.emptyArray;a<o.length;a++){var s=o[a];if(e.isReferencedFile(s)){var c=n.getSourceFileByPath(s.file),l=e.getReferencedFileLocation(n.getSourceFileByPath,s);e.isReferenceFileLocation(l)&&(i=e.append(i,{kind:0,fileName:c.fileName,textSpan:e.createTextSpanFromRange(l)}))}}return i}function i(t,r,n){if(t.parent&&e.isNamespaceExportDeclaration(t.parent)){var i=n.getAliasedSymbol(r),a=n.getMergedSymbol(i);if(i!==a)return a}}function a(t,r,n,i,a,s){var c=1536&t.flags&&t.declarations&&e.find(t.declarations,e.isSourceFile);if(c){var u=t.exports.get("export="),d=l(r,t,!!u,n,s);if(!u||!s.has(c.fileName))return d;var p=r.getTypeChecker();return o(r,d,_(t=e.skipAlias(u,p),void 0,n,s,p,i,a))}}function o(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var a=0,o=n;a<o.length;a++){var c=o[a];if(c&&c.length)if(r)for(var l=function(n){if(!n.definition||0!==n.definition.type)return r.push(n),"continue";var i=n.definition.symbol,a=e.findIndex(r,(function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===i}));if(-1===a)return r.push(n),"continue";var o=r[a];r[a]={definition:o.definition,references:o.references.concat(n.references).sort((function(r,n){var i=s(t,r),a=s(t,n);if(i!==a)return e.compareValues(i,a);var o=x(r),c=x(n);return o.start!==c.start?e.compareValues(o.start,c.start):e.compareValues(o.length,c.length)}))}},u=0,_=c;u<_.length;u++){var d=_[u];l(d)}else r=c}return r}function s(e,t){var r=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(r)}function l(r,n,i,a,o){e.Debug.assert(!!n.valueDeclaration);var s=e.mapDefined(t.findModuleReferences(r,a,n),(function(t){if("import"===t.kind){var r=t.literal.parent;if(e.isLiteralTypeNode(r)){var n=e.cast(r.parent,e.isImportTypeNode);if(i&&!n.qualifier)return}return c(t.literal)}return{kind:0,fileName:t.referencingFile.fileName,textSpan:e.createTextSpanFromRange(t.ref)}}));if(n.declarations)for(var l=0,u=n.declarations;l<u.length;l++)switch((f=u[l]).kind){case 300:break;case 259:o.has(f.getSourceFile().fileName)&&s.push(c(f.name));break;default:e.Debug.assert(!!(33554432&n.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}var _=n.exports.get("export=");if(null==_?void 0:_.declarations)for(var d=0,p=_.declarations;d<p.length;d++){var f,g=(f=p[d]).getSourceFile();if(o.has(g.fileName)){var m=e.isBinaryExpression(f)&&e.isPropertyAccessExpression(f.left)?f.left.expression:e.isExportAssignment(f)?e.Debug.checkDefined(e.findChildOfKind(f,93,g)):e.getNameOfDeclaration(f)||f;s.push(c(m))}}return s.length?[{definition:{type:0,symbol:n},references:s}]:e.emptyArray}function u(t){return 143===t.kind&&e.isTypeOperatorNode(t.parent)&&143===t.parent.operator}function _(t,r,n,i,a,o,s){var c=r&&function(t,r,n,i){var a=r.parent;return e.isExportSpecifier(a)&&i?N(r,t,a,n):e.firstDefined(t.declarations,(function(i){if(!i.parent){if(33554432&t.flags)return;e.Debug.fail("Unexpected symbol at "+e.Debug.formatSyntaxKind(r.kind)+": "+e.Debug.formatSymbol(t))}return e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(i.parent.parent),t.name):void 0}))}(t,r,a,!U(s))||t,l=r?j(r,c):7,u=[],_=new f(n,i,r?function(t){switch(t.kind){case 169:case 133:return 1;case 79:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}}(r):0,a,o,l,s,u),p=U(s)&&c.declarations?e.find(c.declarations,e.isExportSpecifier):void 0;if(p)A(p.name,c,p,_.createSearch(r,t,void 0),_,!0,!0);else if(r&&88===r.kind&&"default"===c.escapedName&&c.parent)F(r,c,_),g(r,c,{exportingModuleSymbol:c.parent,exportKind:1},_);else{var m=_.createSearch(r,c,void 0,{allSearchSymbols:r?M(c,r,a,2===s.use,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});d(c,_,m)}return u}function d(t,r,n){var i=function(t){var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(211===a.kind||224===a.kind))return a;if(r){if(8196&n){var o=e.find(r,(function(t){return e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierClassElementDeclaration(t)}));return o?e.getAncestor(o,255):void 0}if(!r.some(e.isObjectBindingElementWithoutPropertyName)){var s,c=i&&!(262144&t.flags);if(!c||e.isExternalModuleSymbol(i)&&!i.globalExports){for(var l=0,u=r;l<u.length;l++){var _=u[l],d=e.getContainerNode(_);if(s&&s!==d)return;if(!d||300===d.kind&&!e.isExternalOrCommonJsModule(d))return;if(s=d,e.isFunctionExpression(s))for(var p=void 0;p=e.getNextJSDocCommentLocation(s);)s=p}return c?s.getSourceFile():s}}}}(t);if(i)T(i,i.getSourceFile(),n,r,!(e.isSourceFile(i)&&!e.contains(r.sourceFiles,i)));else for(var a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a];r.cancellationToken.throwIfCancellationRequested(),h(s,n,r)}}var p;r.getReferencedSymbolsForNode=function(t,r,s,d,p,f,g){var m,y;if(void 0===f&&(f={}),void 0===g&&(g=new e.Set(d.map((function(e){return e.fileName})))),1===f.use?r=e.getAdjustedReferenceLocation(r):2===f.use&&(r=e.getAdjustedRenameLocation(r)),e.isSourceFile(r)){var h=e.GoToDefinition.getReferenceAtPosition(r,t,s);if(!(null==h?void 0:h.file))return;var v=s.getTypeChecker().getMergedSymbol(h.file.symbol);if(v)return l(s,v,!1,d,g);if(!(A=s.getFileIncludeReasons()))return;return[{definition:{type:5,reference:h.reference,file:r},references:n(h.file,A,s)||e.emptyArray}]}if(!f.implementations){var x=function(t,r,n){if(e.isTypeKeyword(t.kind)){if(114===t.kind&&e.isVoidExpression(t.parent))return;if(143===t.kind&&!u(t))return;return function(t,r,n,i){var a=e.flatMap(t,(function(t){return n.throwIfCancellationRequested(),e.mapDefined(b(t,e.tokenToString(r),t),(function(e){if(e.kind===r&&(!i||i(e)))return c(e)}))}));return a.length?[{definition:{type:2,node:a[0].node},references:a}]:void 0}(r,t.kind,n,143===t.kind?u:void 0)}if(e.isStaticModifier(t)&&e.isClassStaticBlockDeclaration(t.parent))return[{definition:{type:2,node:t},references:[c(t)]}];if(e.isJumpStatementTarget(t)){var i=e.getTargetLabel(t.parent,t.text);return i&&S(i.parent,i)}return e.isLabelOfLabeledStatement(t)?S(t.parent,t):e.isThis(t)?function(t,r,n){var i=e.getThisContainer(t,!1),a=32;switch(i.kind){case 167:case 166:if(e.isObjectLiteralMethod(i)){a&=e.getSyntacticModifierFlags(i),i=i.parent;break}case 165:case 164:case 169:case 170:case 171:a&=e.getSyntacticModifierFlags(i),i=i.parent;break;case 300:if(e.isExternalModule(i)||L(t))return;case 254:case 211:break;default:return}var o=e.flatMap(300===i.kind?r:[i.getSourceFile()],(function(t){return n.throwIfCancellationRequested(),b(t,"this",e.isSourceFile(i)?t:i).filter((function(t){if(!e.isThis(t))return!1;var r=e.getThisContainer(t,!1);switch(i.kind){case 211:case 254:return i.symbol===r.symbol;case 167:case 166:return e.isObjectLiteralMethod(i)&&i.symbol===r.symbol;case 224:case 255:case 203:return r.parent&&i.symbol===r.parent.symbol&&e.isStatic(r)===!!a;case 300:return 300===r.kind&&!e.isExternalModule(r)&&!L(t)}}))})).map((function(e){return c(e)}));return[{definition:{type:3,node:e.firstDefined(o,(function(t){return e.isParameter(t.node.parent)?t.node:void 0}))||t},references:o}]}(t,r,n):106===t.kind?function(t){var r=e.getSuperContainer(t,!1);if(r){var n=32;switch(r.kind){case 165:case 164:case 167:case 166:case 169:case 170:case 171:n&=e.getSyntacticModifierFlags(r),r=r.parent;break;default:return}var i=r.getSourceFile(),a=e.mapDefined(b(i,"super",r),(function(t){if(106===t.kind){var i=e.getSuperContainer(t,!1);return i&&e.isStatic(i)===!!n&&i.parent.symbol===r.symbol?c(t):void 0}}));return[{definition:{type:0,symbol:r.symbol},references:a}]}}(t):void 0}(r,d,p);if(x)return x}var D=s.getTypeChecker(),E=D.getSymbolAtLocation(e.isConstructorDeclaration(r)&&r.parent.name||r);if(E){if("export="===E.escapedName)return l(s,E.parent,!1,d,g);var T=a(E,s,d,p,f,g);if(T&&!(33554432&E.flags))return T;var C=i(r,E,D),k=C&&a(C,s,d,p,f,g);return o(s,T,_(E,r,d,g,D,p,f),k)}if(!f.implementations&&e.isStringLiteralLike(r)){if(e.isModuleSpecifierLike(r)){var A=s.getFileIncludeReasons(),N=null===(y=null===(m=r.getSourceFile().resolvedModules)||void 0===m?void 0:m.get(r.text))||void 0===y?void 0:y.resolvedFileName,F=N?s.getSourceFile(N):void 0;if(F)return[{definition:{type:4,node:r},references:n(F,A,s)||e.emptyArray}]}return function(t,r,n,i){var a=e.getContextualTypeOrAncestorTypeNodeType(t,n),o=e.flatMap(r,(function(r){return i.throwIfCancellationRequested(),e.mapDefined(b(r,t.text),(function(r){if(e.isStringLiteralLike(r)&&r.text===t.text){if(!a)return c(r,2);var i=e.getContextualTypeOrAncestorTypeNodeType(r,n);if(a!==n.getStringType()&&a===i)return c(r,2)}}))}));return[{definition:{type:4,node:t},references:o}]}(r,d,D,p)}},r.getReferencesForFileName=function(t,r,i,a){var o,s;void 0===a&&(a=new e.Set(i.map((function(e){return e.fileName}))));var c=null===(o=r.getSourceFile(t))||void 0===o?void 0:o.symbol;if(c)return(null===(s=l(r,c,!1,i,a)[0])||void 0===s?void 0:s.references)||e.emptyArray;var u=r.getFileIncludeReasons(),_=r.getSourceFile(t);return _&&u&&n(_,u,r)||e.emptyArray},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(p||(p={}));var f=function(){function r(t,r,n,i,a,o,s,c){this.sourceFiles=t,this.sourceFilesSet=r,this.specialSearchKind=n,this.checker=i,this.cancellationToken=a,this.searchMeaning=o,this.options=s,this.result=c,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,r){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,r,2===this.options.use)},r.prototype.createSearch=function(t,r,n,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(r)||function(t){if(33555968&t.flags){var r=t.declarations&&e.find(t.declarations,(function(t){return!e.isSourceFile(t)&&!e.isModuleDeclaration(t)}));return r&&r.symbol}}(r)||r)):a,s=i.allSearchSymbols,c=void 0===s?[r]:s,l=e.escapeLeadingUnderscores(o),u=this.options.implementations&&t?function(t,r,n){var i=e.isRightSideOfPropertyAccess(t)?t.parent:void 0,a=i&&n.getTypeAtLocation(i.expression),o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===r.parent?void 0:[a]),(function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0}));return 0===o.length?void 0:o}(t,r,this.checker):void 0;return{symbol:r,comingFrom:n,text:o,escapedText:l,parents:u,allSearchSymbols:c,includes:function(t){return e.contains(c,t)}}},r.prototype.referenceAdder=function(t){var r=e.getSymbolId(t),n=this.symbolIdToReferences[r];return n||(n=this.symbolIdToReferences[r]=[],this.result.push({definition:{type:0,symbol:t},references:n})),function(e,t){return n.push(c(e,t))}},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbols=function(t,r){for(var n=e.getNodeId(t),i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new e.Set),a=!1,o=0,s=r;o<s.length;o++){var c=s[o];a=e.tryAddToSet(i,e.getSymbolId(c))||a}return a},r}();function g(e,t,r,n){var i=n.getImportSearches(t,r),a=i.importSearches,o=i.singleReferences,s=i.indirectUsers;if(o.length)for(var c=n.referenceAdder(t),l=0,u=o;l<u.length;l++){var _=u[l];m(_,n)&&c(_)}for(var d=0,p=a;d<p.length;d++){var f=p[d],g=f[0],y=f[1];E(g.getSourceFile(),n.createSearch(g,y,1),n)}if(s.length){var v=void 0;switch(r.exportKind){case 0:v=n.createSearch(e,t,1);break;case 1:v=2===n.options.use?void 0:n.createSearch(e,t,1,{text:"default"})}if(v)for(var b=0,x=s;b<x.length;b++)h(x[b],v,n)}}function m(t,r){return!(!C(t,r)||2===r.options.use&&(!e.isIdentifier(t)||e.isImportOrExportSpecifier(t.parent)&&"default"===t.escapedText))}function y(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();E(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function h(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&E(t,r,n)}function v(t,r,n,i,a){void 0===a&&(a=n);var o=e.isParameterPropertyDeclaration(t.parent,t.parent.parent)?e.first(r.getSymbolsOfParameterPropertyDeclaration(t.parent,t.text)):r.getSymbolAtLocation(t);if(o)for(var s=0,c=b(n,o.name,a);s<c.length;s++){var l=c[s];if(e.isIdentifier(l)&&l!==t&&l.escapedText===t.escapedText){var u=r.getSymbolAtLocation(l);if(u===o||r.getShorthandAssignmentValueSymbol(l.parent)===o||e.isExportSpecifier(l.parent)&&N(l,u,l.parent,r)===o){var _=i(l);if(_)return _}}}}function b(t,r,n){return void 0===n&&(n=t),D(t,r,n).map((function(r){return e.getTouchingPropertyName(t,r)}))}function D(t,r,n){void 0===n&&(n=t);var i=[];if(!r||!r.length)return i;for(var a=t.text,o=a.length,s=r.length,c=a.indexOf(r,n.pos);c>=0&&!(c>n.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function S(t,r){var n=t.getSourceFile(),i=r.text,a=e.mapDefined(b(n,i,t),(function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?c(t):void 0}));return[{definition:{type:1,node:r},references:a}]}function E(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),T(e,e,t,r,n)}function T(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=D(t,r.text,e);a<o.length;a++)k(t,o[a],r,n,i)}function C(t,r){return!!(e.getMeaningFromLocation(t)&r.searchMeaning)}function k(r,n,i,a,o){var s=e.getTouchingPropertyName(r,n);if(function(t,r){switch(t.kind){case 80:if(e.isJSDocMemberName(t.parent))return!0;case 79:return t.text.length===r.length;case 14:case 10:var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t)||e.isCallExpression(t.parent)&&e.isBindableObjectDefinePropertyCall(t.parent)&&t.parent.arguments[1]===t)&&n.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 88:return"default".length===r.length;default:return!1}}(s,i.text)){if(C(s,a)){var c=a.checker.getSymbolAtLocation(s);if(c){var l=s.parent;if(!e.isImportSpecifier(l)||l.propertyName!==s){if(e.isExportSpecifier(l))return e.Debug.assert(79===s.kind),void A(s,c,l,i,a,o);var u=function(t,r,n,i){var a=i.checker;return R(r,n,a,!1,2!==i.options.use||!!i.options.providePrefixAndSuffixTextForRename,(function(n,i,a,o){return a&&B(r)!==B(a)&&(a=void 0),t.includes(a||i||n)?{symbol:!i||6&e.getCheckFlags(n)?n:i,kind:o}:void 0}),(function(e){return!(t.parents&&!t.parents.some((function(t){return O(e.parent,t,i.inheritsFromCache,a)})))}))}(i,c,s,a);if(u){switch(a.specialSearchKind){case 0:o&&F(s,u,a);break;case 1:!function(t,r,n,i){e.isNewExpressionTarget(t)&&F(t,n.symbol,i);var a,o=function(){return i.referenceAdder(n.symbol)};if(e.isClassLike(t.parent))e.Debug.assert(88===t.kind||t.parent.name===t),function(t,r,n){var i=w(t);if(i&&i.declarations)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.findChildOfKind(s,133,r);e.Debug.assert(169===s.kind&&!!c),n(c)}t.exports&&t.exports.forEach((function(t){var r=t.valueDeclaration;if(r&&167===r.kind){var i=r.body;i&&V(i,108,(function(t){e.isNewExpressionTarget(t)&&n(t)}))}}))}(n.symbol,r,o());else{var s=(a=t,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(a).parent));s&&(function(t,r){var n=w(t.symbol);if(n&&n.declarations)for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(169===o.kind);var s=o.body;s&&V(s,106,(function(t){e.isCallExpressionTarget(t)&&r(t)}))}}(s,o()),function(e,t){if(!function(e){return!!w(e.symbol)}(e)){var r=e.symbol,n=t.createSearch(void 0,r,void 0);d(r,t,n)}}(s,i))}}(s,r,i,a);break;case 2:!function(t,r,n){F(t,r.symbol,n);var i=t.parent;if(2!==n.options.use&&e.isClassLike(i)){e.Debug.assert(i.name===t);for(var a=n.referenceAdder(r.symbol),o=0,s=i.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.isStatic(c)&&c.body&&c.body.forEachChild((function t(r){108===r.kind?a(r):e.isFunctionLike(r)||e.isClassLike(r)||r.forEachChild(t)}))}}}(s,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}!function(e,r,n,i){var a=t.getImportOrExportSymbol(e,r,i.checker,1===n.comingFrom);if(a){var o=a.symbol;0===a.kind?U(i.options)||y(o,i):g(e,o,a.exportInfo,i)}}(s,c=e.isInJSFile(s)&&201===s.parent.kind&&e.isRequireVariableDeclaration(s.parent)?s.parent.symbol:c,i,a)}else!function(t,r,n){var i=t.flags,a=t.valueDeclaration,o=n.checker.getShorthandAssignmentValueSymbol(a),s=a&&e.getNameOfDeclaration(a);33554432&i||!s||!r.includes(o)||F(s,o,n)}(c,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(r,n)||a.options.findInComments&&e.isInNonReferenceComment(r,n))&&a.addStringOrCommentReference(r.fileName,e.createTextSpan(n,i.text.length))}function A(r,n,i,a,o,s,c){e.Debug.assert(!c||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var l=i.parent,u=i.propertyName,_=i.name,d=l.parent,p=N(r,n,i,o.checker);if(c||a.includes(p)){if(u?r===u?(d.moduleSpecifier||b(),s&&2!==o.options.use&&o.markSeenReExportRHS(_)&&F(_,e.Debug.checkDefined(i.symbol),o)):o.markSeenReExportRHS(r)&&b():2===o.options.use&&"default"===_.escapedText||b(),!U(o.options)||c){var f=88===r.originalKeywordKind||88===i.name.originalKeywordKind?1:0,m=e.Debug.checkDefined(i.symbol),h=t.getExportInfo(m,f,o.checker);h&&g(r,m,h,o)}if(1!==a.comingFrom&&d.moduleSpecifier&&!u&&!U(o.options)){var v=o.checker.getExportSpecifierLocalTargetSymbol(i);v&&y(v,o)}}function b(){s&&F(r,p,o)}}function N(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 F(t,r,n){var i="kind"in r?r:{kind:void 0,symbol:r},a=i.kind,o=i.symbol,s=n.referenceAdder(o);n.options.implementations?function(t,r,n){var i;if(!e.isDeclarationName(t)||(8388608&(i=t.parent).flags?e.isInterfaceDeclaration(i)||e.isTypeAliasDeclaration(i):!(e.isVariableLike(i)?e.hasInitializer(i):e.isFunctionLikeDeclaration(i)?i.body:e.isClassLike(i)||e.isModuleOrEnumDeclaration(i)))){if(79===t.kind){292===t.parent.kind&&J(t,n.checker,r);var a=P(t);if(a)r(a);else{var o=e.findAncestor(t,(function(t){return!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)})),s=o.parent;if(e.hasType(s)&&s.type===o&&n.markSeenContainingTypeReference(s))if(e.hasInitializer(s))l(s.initializer);else if(e.isFunctionLike(s)&&s.body){var c=s.body;233===c.kind?e.forEachReturnStatement(c,(function(e){e.expression&&l(e.expression)})):l(c)}else e.isAssertionExpression(s)&&l(s.expression)}}}else r(t);function l(e){I(e)&&r(e)}}(t,s,n):s(t,a)}function w(e){return e.members&&e.members.get("__constructor")}function P(t){return e.isIdentifier(t)||e.isPropertyAccessExpression(t)?P(t.parent):e.isExpressionWithTypeArguments(t)?e.tryCast(t.parent.parent,e.isClassLike):void 0}function I(e){switch(e.kind){case 210:return I(e.expression);case 212:case 211:case 203:case 224:case 202:return!0;default:return!1}}function O(t,r,n,i){if(t===r)return!0;var a=e.getSymbolId(t)+","+e.getSymbolId(r),o=n.get(a);if(void 0!==o)return o;n.set(a,!1);var s=!!t.declarations&&t.declarations.some((function(t){return e.getAllSuperTypeNodes(t).some((function(e){var t=i.getTypeAtLocation(e);return!!t&&!!t.symbol&&O(t.symbol,r,n,i)}))}));return n.set(a,s),s}function L(e){return 79===e.kind&&162===e.parent.kind&&e.parent.name===e}function M(e,t,r,n,i,a){var o=[];return R(e,t,r,n,!(n&&i),(function(t,r,n){n&&B(e)!==B(n)&&(n=void 0),o.push(n||r||t)}),(function(){return!a})),o}function R(t,r,n,a,o,s,c){var l=e.getContainingObjectLiteralElement(r);if(l){var u=n.getShorthandAssignmentValueSymbol(r.parent);if(u&&a)return s(u,void 0,void 0,3);var _=n.getContextualType(l.parent),d=_&&e.firstDefined(e.getPropertySymbolsFromContextualType(l,n,_,!0),(function(e){return E(e,4)}));if(d)return d;var p=function(t,r){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?r.getPropertySymbolOfDestructuringAssignment(t):void 0}(r,n),f=p&&s(p,void 0,void 0,4);if(f)return f;var g=u&&s(u,void 0,void 0,3);if(g)return g}var m=i(r,t,n);if(m){var y=s(m,void 0,void 0,1);if(y)return y}var h=E(t);if(h)return h;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration,t.valueDeclaration.parent)){var v=n.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);return e.Debug.assert(2===v.length&&!!(1&v[0].flags)&&!!(4&v[1].flags)),E(1&t.flags?v[1]:v[0])}var b=e.getDeclarationOfKind(t,273);if(!a||b&&!b.propertyName){var x=b&&n.getExportSpecifierLocalTargetSymbol(b);if(x){var D=s(x,void 0,void 0,1);if(D)return D}}if(!a){var S=void 0;return(S=o?e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(n,r.parent):void 0:T(t,n))&&E(S,4)}if(e.Debug.assert(a),o)return(S=T(t,n))&&E(S,4);function E(t,r){return e.firstDefined(n.getRootSymbols(t),(function(i){return s(t,i,void 0,r)||(i.parent&&96&i.parent.flags&&c(i)?function(t,r,n,i){var a=new e.Map;return function t(o){if(96&o.flags&&e.addToSeen(a,e.getSymbolId(o)))return e.firstDefined(o.declarations,(function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),(function(a){var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return o&&s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))}))}))}(t)}(i.parent,i.name,n,(function(e){return s(t,i,e,r)})):void 0)}))}function T(t,r){var n=e.getDeclarationOfKind(t,201);if(n&&e.isObjectBindingElementWithoutPropertyName(n))return e.getPropertySymbolFromBindingElement(r,n)}}function B(t){return!!t.valueDeclaration&&!!(32&e.getEffectiveModifierFlags(t.valueDeclaration))}function j(t,r){var n=e.getMeaningFromLocation(t),i=r.declarations;if(i){var a=void 0;do{a=n;for(var o=0,s=i;o<s.length;o++){var c=s[o],l=e.getMeaningFromDeclaration(c);l&n&&(n|=l)}}while(n!==a)}return n}function J(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 V(t,r,n){e.forEachChild(t,(function(e){e.kind===r&&n(e),V(e,r,n)}))}function U(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}r.eachExportReference=function(r,n,i,a,o,s,c,l){for(var u=t.createImportTracker(r,new e.Set(r.map((function(e){return e.fileName}))),n,i)(a,{exportKind:c?1:0,exportingModuleSymbol:o},!1),_=u.importSearches,d=u.indirectUsers,p=0,f=_;p<f.length;p++)l(f[p][0]);for(var g=0,m=d;g<m.length;g++)for(var y=0,h=b(m[g],c?"default":s);y<h.length;y++){var v=h[y],x=n.getSymbolAtLocation(v),D=e.some(null==x?void 0:x.declarations,(function(t){return!!e.tryCast(t,e.isExportAssignment)}));!e.isIdentifier(v)||e.isImportOrExportSpecifier(v.parent)||x!==a&&!D||l(v)}},r.isSymbolReferencedInFile=function(e,t,r,n){return void 0===n&&(n=r),v(e,t,r,(function(){return!0}),n)||!1},r.eachSymbolReferenceInFile=v,r.someSignatureUsage=function(t,r,n,i){if(!t.name||!e.isIdentifier(t.name))return!1;for(var a=e.Debug.checkDefined(n.getSymbolAtLocation(t.name)),o=0,s=r;o<s.length;o++)for(var c=0,l=b(s[o],a.name);c<l.length;c++){var u=l[c];if(e.isIdentifier(u)&&u!==t.name&&u.escapedText===t.name.escapedText){var _=e.climbPastPropertyAccess(u),d=e.isCallExpression(_.parent)&&_.parent.expression===_?_.parent:void 0,p=n.getSymbolAtLocation(u);if(p&&n.getRootSymbols(p).some((function(e){return e===a}))&&i(u,d))return!0}}return!1},r.getIntersectingMeaningFromDeclarations=j,r.getReferenceEntriesForShorthandPropertyAssignment=J}(r=t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(t){function r(t){return(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t))&&e.isVariableDeclaration(t.parent)&&t===t.parent.initializer&&e.isIdentifier(t.parent.name)&&!!(2&e.getCombinedNodeFlags(t.parent))}function n(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)||e.isFunctionDeclaration(t)||e.isFunctionExpression(t)||e.isClassDeclaration(t)||e.isClassExpression(t)||e.isClassStaticBlockDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)}function i(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)&&e.isIdentifier(t.name)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isClassStaticBlockDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)||function(t){return(e.isFunctionExpression(t)||e.isClassExpression(t))&&e.isNamedDeclaration(t)}(t)||r(t)}function a(t){return e.isSourceFile(t)?t:e.isNamedDeclaration(t)?t.name:r(t)?t.parent.name:e.Debug.checkDefined(t.modifiers&&e.find(t.modifiers,o))}function o(e){return 88===e.kind}function s(e,t){var r=a(t);return r&&e.getSymbolAtLocation(r)}function c(t,r){if(r.body)return r;if(e.isConstructorDeclaration(r))return e.getFirstConstructorWithBody(r.parent);if(e.isFunctionDeclaration(r)||e.isMethodDeclaration(r)){var n=s(t,r);return n&&n.valueDeclaration&&e.isFunctionLikeDeclaration(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return r}function l(t,r){var n,a=s(t,r);if(a&&a.declarations){var o=e.indicesOf(a.declarations),c=e.map(a.declarations,(function(e){return{file:e.getSourceFile().fileName,pos:e.pos}}));o.sort((function(t,r){return e.compareStringsCaseSensitive(c[t].file,c[r].file)||c[t].pos-c[r].pos}));for(var l=e.map(o,(function(e){return a.declarations[e]})),u=void 0,_=0,d=l;_<d.length;_++){var p=d[_];i(p)&&(u&&u.parent===p.parent&&u.end===p.pos||(n=e.append(n,p)),u=p)}}return n}function u(t,r){var n,i,a;return e.isClassStaticBlockDeclaration(r)?r:e.isFunctionLikeDeclaration(r)?null!==(i=null!==(n=c(t,r))&&void 0!==n?n:l(t,r))&&void 0!==i?i:r:null!==(a=l(t,r))&&void 0!==a?a:r}function _(t,a){for(var o=t.getTypeChecker(),s=!1;;){if(i(a))return u(o,a);var c;if(n(a))return(c=e.findAncestor(a,i))&&u(o,c);if(e.isDeclarationName(a))return i(a.parent)?u(o,a.parent):n(a.parent)?(c=e.findAncestor(a.parent,i))&&u(o,c):e.isVariableDeclaration(a.parent)&&a.parent.initializer&&r(a.parent.initializer)?a.parent.initializer:void 0;if(e.isConstructorDeclaration(a))return i(a.parent)?a.parent:void 0;if(124!==a.kind||!e.isClassStaticBlockDeclaration(a.parent)){if(e.isVariableDeclaration(a)&&a.initializer&&r(a.initializer))return a.initializer;if(!s){var l=o.getSymbolAtLocation(a);if(l&&(2097152&l.flags&&(l=o.getAliasedSymbol(l)),l.valueDeclaration)){s=!0,a=l.valueDeclaration;continue}}return}a=a.parent}}function d(t,n){var i=n.getSourceFile(),a=function(t,n){if(e.isSourceFile(n))return{text:n.fileName,pos:0,end:0};if((e.isFunctionDeclaration(n)||e.isClassDeclaration(n))&&!e.isNamedDeclaration(n)){var i=n.modifiers&&e.find(n.modifiers,o);if(i)return{text:"default",pos:i.getStart(),end:i.getEnd()}}if(e.isClassStaticBlockDeclaration(n)){var a=n.getSourceFile(),s=e.skipTrivia(a.text,e.moveRangePastModifiers(n).pos),c=s+6;return{text:((u=(l=t.getTypeChecker()).getSymbolAtLocation(n.parent))?l.symbolToString(u,n.parent)+" ":"")+"static {}",pos:s,end:c}}var l,u,_=r(n)?n.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(n),"Expected call hierarchy item to have a name"),d=e.isIdentifier(_)?e.idText(_):e.isStringOrNumericLiteralLike(_)?_.text:e.isComputedPropertyName(_)&&e.isStringOrNumericLiteralLike(_.expression)?_.expression.text:void 0;if(void 0===d&&(u=(l=t.getTypeChecker()).getSymbolAtLocation(_))&&(d=l.symbolToString(u,n)),void 0===d){var p=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});d=e.usingSingleLineStringWriter((function(e){return p.writeNode(4,n,n.getSourceFile(),e)}))}return{text:d,pos:_.getStart(),end:_.getEnd()}}(t,n),s=function(t){var n,i;if(r(t))return e.isModuleBlock(t.parent.parent.parent.parent)&&e.isIdentifier(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 170:case 171:case 167:return 203===t.parent.kind?null===(n=e.getAssignedName(t.parent))||void 0===n?void 0:n.getText():null===(i=e.getNameOfDeclaration(t.parent))||void 0===i?void 0:i.getText();case 254:case 255:case 259:if(e.isModuleBlock(t.parent)&&e.isIdentifier(t.parent.parent.name))return t.parent.parent.name.getText()}}(n),c=e.getNodeKind(n),l=e.getNodeModifiers(n),u=e.createTextSpanFromBounds(e.skipTrivia(i.text,n.getFullStart(),!1,!0),n.getEnd()),_=e.createTextSpanFromBounds(a.pos,a.end);return{file:i.fileName,kind:c,kindModifiers:l,name:a.text,containerName:s,span:u,selectionSpan:_}}function p(e){return void 0!==e}function f(t){if(1===t.kind){var r=t.node;if(e.isCallOrNewExpressionTarget(r,!0,!0)||e.isTaggedTemplateTag(r,!0,!0)||e.isDecoratorTarget(r,!0,!0)||e.isJsxOpeningLikeElementTagName(r,!0,!0)||e.isRightSideOfPropertyAccess(r)||e.isArgumentExpressionOfElementAccess(r)){var n=r.getSourceFile();return{declaration:e.findAncestor(r,i)||n,range:e.createTextRangeFromNode(r,n)}}}}function g(t){return e.getNodeId(t.declaration)}t.resolveCallHierarchyDeclaration=_,t.createCallHierarchyItem=d,t.getIncomingCalls=function(t,r,n){if(e.isSourceFile(r)||e.isModuleDeclaration(r)||e.isClassStaticBlockDeclaration(r))return[];var i=a(r),o=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(t,n,t.getSourceFiles(),i,0,{use:1},f),p);return o?e.group(o,g,(function(r){return function(t,r){return{from:d(t,r[0].declaration),fromSpans:e.map(r,(function(t){return e.createTextSpanFromRange(t.range)}))}}(t,r)})):[]},t.getOutgoingCalls=function(t,r){return 8388608&r.flags||e.isMethodSignature(r)?[]:e.group(function(t,r){var n=[],a=function(t,r){function n(n){var i=e.isTaggedTemplateExpression(n)?n.tag:e.isJsxOpeningLikeElement(n)?n.tagName:e.isAccessExpression(n)||e.isClassStaticBlockDeclaration(n)?n:n.expression,a=_(t,i);if(a){var o=e.createTextRangeFromNode(i,n.getSourceFile());if(e.isArray(a))for(var s=0,c=a;s<c.length;s++){var l=c[s];r.push({declaration:l,range:o})}else r.push({declaration:a,range:o})}}return function t(r){if(r&&!(8388608&r.flags))if(i(r)){if(e.isClassLike(r))for(var a=0,o=r.members;a<o.length;a++){var s=o[a];s.name&&e.isComputedPropertyName(s.name)&&t(s.name.expression)}}else{switch(r.kind){case 79:case 263:case 264:case 270:case 256:case 257:return;case 168:return void n(r);case 209:case 227:return void t(r.expression);case 252:case 162:return t(r.name),void t(r.initializer);case 206:case 207:return n(r),t(r.expression),void e.forEach(r.arguments,t);case 208:return n(r),t(r.tag),void t(r.template);case 278:case 277:return n(r),t(r.tagName),void t(r.attributes);case 163:return n(r),void t(r.expression);case 204:case 205:n(r),e.forEachChild(r,t)}e.isPartOfTypeNode(r)||e.forEachChild(r,t)}}}(t,n);switch(r.kind){case 300:!function(t,r){e.forEach(t.statements,r)}(r,a);break;case 259:!function(t,r){!e.hasSyntacticModifier(t,2)&&t.body&&e.isModuleBlock(t.body)&&e.forEach(t.body.statements,r)}(r,a);break;case 254:case 211:case 212:case 167:case 170:case 171:!function(t,r,n){var i=c(t,r);i&&(e.forEach(i.parameters,n),n(i.body))}(t.getTypeChecker(),r,a);break;case 255:case 224:!function(t,r){e.forEach(t.decorators,r);var n=e.getClassExtendsHeritageElement(t);n&&r(n.expression);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.forEach(o.decorators,r),e.isPropertyDeclaration(o)?r(o.initializer):e.isConstructorDeclaration(o)&&o.body?(e.forEach(o.parameters,r),r(o.body)):e.isClassStaticBlockDeclaration(o)&&r(o)}}(r,a);break;case 168:!function(e,t){t(e.body)}(r,a);break;default:e.Debug.assertNever(r)}return n}(t,r),g,(function(r){return function(t,r){return{to:d(t,r[0].declaration),fromSpans:e.map(r,(function(t){return e.createTextSpanFromRange(t.range)}))}}(t,r)}))}}(e.CallHierarchy||(e.CallHierarchy={}))}(u||(u={})),function(e){function t(t,n,i,a){var o=i(t);return function(t){var s=a&&a.tryGetSourcePosition({fileName:t,pos:0}),c=function(t){if(i(t)===o)return n;var r=e.tryRemoveDirectoryPrefix(t,o,i);return void 0===r?void 0:n+"/"+r}(s?s.fileName:t);return s?void 0===c?void 0:function(t,n,i,a){var o=e.getRelativePathFromFile(t,n,a);return r(e.getDirectoryPath(i),o)}(s.fileName,c,t,i):c}}function r(t,r){return e.ensurePathIsNonModuleName(function(t,r){return e.normalizePath(e.combinePaths(t,r))}(t,r))}function n(t,r,n,i){if(r){if(r.resolvedModule){var a=s(r.resolvedModule.resolvedFileName);if(a)return a}return e.forEach(r.failedLookupLocations,(function(t){var r=n(t);return r&&e.find(i,(function(e){return e.fileName===r}))?o(t):void 0}))||e.pathIsRelative(t.text)&&e.forEach(r.failedLookupLocations,o)||r.resolvedModule&&{newFileName:r.resolvedModule.resolvedFileName,updated:!1}}function o(t){return e.endsWith(t,"/package.json")?void 0:s(t)}function s(e){var t=n(e);return t&&{newFileName:t,updated:!0}}}function i(t,r){return e.createRange(t.getStart(r)+1,t.end-1)}function a(t,r){if(e.isObjectLiteralExpression(t))for(var n=0,i=t.properties;n<i.length;n++){var a=i[n];e.isPropertyAssignment(a)&&e.isStringLiteral(a.name)&&r(a,a.name.text)}}e.getEditsForFileRename=function(o,s,c,l,u,_,d){var p=e.hostUsesCaseSensitiveFileNames(l),f=e.createGetCanonicalFileName(p),g=t(s,c,f,d),m=t(c,s,f,d);return e.textChanges.ChangeTracker.with({host:l,formatContext:u,preferences:_},(function(t){!function(t,n,o,s,c,l,u){var _=t.getCompilerOptions().configFile;if(_){var d=e.getDirectoryPath(_.fileName),p=e.getTsConfigObjectLiteralExpression(_);p&&a(p,(function(t,r){switch(r){case"files":case"include":case"exclude":if(f(t)||"include"!==r||!e.isArrayLiteralExpression(t.initializer))return;var i=e.mapDefined(t.initializer.elements,(function(t){return e.isStringLiteral(t)?t.text:void 0}));if(0===i.length)return;var o=e.getFileMatcherPatterns(d,[],i,u,l);return void(e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(s)&&!e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(c)&&n.insertNodeAfter(_,e.last(t.initializer.elements),e.factory.createStringLiteral(m(c))));case"compilerOptions":return void a(t.initializer,(function(t,r){var n=e.getOptionFromName(r);n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?f(t):"paths"===r&&a(t.initializer,(function(t){if(e.isArrayLiteralExpression(t.initializer))for(var r=0,n=t.initializer.elements;r<n.length;r++)g(n[r])}))}))}}))}function f(t){for(var r=!1,n=0,i=e.isArrayLiteralExpression(t.initializer)?t.initializer.elements:[t.initializer];n<i.length;n++)r=g(i[n])||r;return r}function g(t){if(!e.isStringLiteral(t))return!1;var a=r(d,t.text),s=o(a);return void 0!==s&&(n.replaceRangeWithText(_,i(t,_),m(s)),!0)}function m(t){return e.getRelativePathFromDirectory(d,t,!u)}}(o,t,g,s,c,l.getCurrentDirectory(),p),function(t,a,o,s,c,l){for(var u=t.getSourceFiles(),_=function(_){var d=o(_.fileName),p=null!=d?d:_.fileName,f=e.getDirectoryPath(p),g=s(_.fileName),m=g||_.fileName,y=e.getDirectoryPath(m),h=void 0!==d||void 0!==g;!function(t,r,n,a){for(var o=0,s=t.referencedFiles||e.emptyArray;o<s.length;o++){var c=s[o];void 0!==(_=n(c.fileName))&&_!==t.text.slice(c.pos,c.end)&&r.replaceRangeWithText(t,c,_)}for(var l=0,u=t.imports;l<u.length;l++){var _,d=u[l];void 0!==(_=a(d))&&_!==d.text&&r.replaceRangeWithText(t,i(d,t),_)}}(_,a,(function(t){if(e.pathIsRelative(t)){var n=r(y,t),i=o(n);return void 0===i?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(f,i,l))}}),(function(r){var i=t.getTypeChecker().getSymbolAtLocation(r);if(!(null==i?void 0:i.declarations)||!i.declarations.some((function(t){return e.isAmbientModule(t)}))){var a=void 0!==g?n(r,e.resolveModuleName(r.text,m,t.getCompilerOptions(),c),o,u):function(t,r,i,a,o,s){if(t){var c=e.find(t.declarations,e.isSourceFile).fileName,l=s(c);return void 0===l?{newFileName:c,updated:!1}:{newFileName:l,updated:!0}}return n(r,o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName):a.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName),s,a.getSourceFiles())}(i,r,_,t,c,o);return void 0!==a&&(a.updated||h&&e.pathIsRelative(r.text))?e.moduleSpecifiers.updateModuleSpecifier(t.getCompilerOptions(),l(p),a.newFileName,e.createModuleSpecifierResolutionHost(t,c),r.text):void 0}}))},d=0,p=u;d<p.length;d++)_(p[d])}(o,t,g,m,l,f)}))},e.getPathUpdater=t}(u||(u={})),function(e){!function(t){function r(t,r,a){var s,d,f,g=o(r,a,t),m=g&&[(s=g.reference.fileName,d=g.fileName,f=g.unverified,{fileName:d,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:s,containerName:void 0,containerKind:void 0,unverified:f})]||e.emptyArray;if(null==g?void 0:g.file)return m;var y=e.getTouchingPropertyName(r,a);if(y!==r){var h=y.parent,v=t.getTypeChecker();if(157===y.kind||e.isJSDocOverrideTag(y)&&e.rangeContainsPosition(y.tagName,a))return function(t,r){var n=e.findAncestor(r,e.isClassElement);if(n&&n.name){var i=e.findAncestor(n,e.isClassLike);if(i){var a=e.getEffectiveBaseTypeNode(i),o=a?t.getTypeAtLocation(a):void 0;if(o){var s=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(n.name)),c=e.hasStaticModifier(n)?t.getPropertyOfType(t.getTypeOfSymbolAtLocation(o.symbol,i),s):t.getPropertyOfType(o,s);if(c)return l(t,c,r)}}}}(v,y)||e.emptyArray;if(e.isJumpStatementTarget(y)){var b=e.getTargetLabel(y.parent,y.text);return b?[_(v,b,"label",y.text,void 0)]:void 0}if(e.isStaticModifier(y)&&e.isClassStaticBlockDeclaration(y.parent)){var x=y.parent.parent,D=c(x,v),S=e.filter(x.members,e.isClassStaticBlockDeclaration),E=D?v.symbolToString(D,x):"",T=y.getSourceFile();return e.map(S,(function(t){var r=e.moveRangePastModifiers(t).pos;return r=e.skipTrivia(T.text,r),_(v,t,"constructor","static {}",E,{start:r,length:"static".length})}))}var C=c(y,v);if(!C)return e.concatenate(m,function(t,r){return e.mapDefined(r.getIndexInfosAtLocation(t),(function(e){return e.declaration&&p(r,e.declaration)}))}(y,v));var k=function(t,r){var n=function(t){var r=e.findAncestor(t,(function(t){return!e.isRightSideOfPropertyAccess(t)})),n=null==r?void 0:r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:void 0}(r),i=n&&t.getResolvedSignature(n);return e.tryCast(i&&i.declaration,(function(t){return e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)}))}(v,y);if(k&&(!e.isJsxOpeningLikeElement(y.parent)||!function(e){switch(e.kind){case 169:case 178:case 173:return!0;default:return!1}}(k))){var A=p(v,k);if(v.getRootSymbols(C).some((function(t){return function(t,r){return t===r.symbol||t===r.symbol.parent||e.isAssignmentExpression(r.parent)||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol}(t,k)})))return[A];var N=l(v,C,y,k)||e.emptyArray;return 106===y.kind?i([A],N,!0):i(i([],N,!0),[A],!1)}if(292===y.parent.kind){var F=v.getShorthandAssignmentValueSymbol(C.valueDeclaration),w=(null==F?void 0:F.declarations)?F.declarations.map((function(e){return u(e,v,F,y)})):e.emptyArray;return e.concatenate(w,n(v,y)||e.emptyArray)}if(e.isPropertyName(y)&&e.isBindingElement(h)&&e.isObjectBindingPattern(h.parent)&&y===(h.propertyName||h.name)){var P=e.getNameFromPropertyName(y),I=v.getTypeAtLocation(h.parent);return void 0===P?e.emptyArray:e.flatMap(I.isUnion()?I.types:[I],(function(e){var t=e.getProperty(P);return t&&l(v,t,y)}))}return e.concatenate(m,n(v,y)||l(v,C,y))}}function n(t,r){var n=e.getContainingObjectLiteralElement(r);if(n){var i=n&&t.getContextualType(n.parent);if(i)return e.flatMap(e.getPropertySymbolsFromContextualType(n,t,i,!1),(function(e){return l(t,e,r)}))}}function o(t,r,n){var i,a,o=f(t.referencedFiles,r);if(o)return(l=n.getSourceFileFromReference(t,o))&&{reference:o,fileName:l.fileName,file:l,unverified:!1};var s=f(t.typeReferenceDirectives,r);if(s){var c=n.getResolvedTypeReferenceDirectives().get(s.fileName);return(l=c&&n.getSourceFile(c.resolvedFileName))&&{reference:s,fileName:l.fileName,file:l,unverified:!1}}var l,u=f(t.libReferenceDirectives,r);if(u)return(l=n.getLibFileFromReference(u))&&{reference:u,fileName:l.fileName,file:l,unverified:!1};if(null===(i=t.resolvedModules)||void 0===i?void 0:i.size){var _=e.getTokenAtPosition(t,r);if(e.isModuleSpecifierLike(_)&&e.isExternalModuleNameRelative(_.text)&&t.resolvedModules.has(_.text)){var d=null===(a=t.resolvedModules.get(_.text))||void 0===a?void 0:a.resolvedFileName,p=d||e.resolvePath(e.getDirectoryPath(t.fileName),_.text);return{file:n.getSourceFile(p),fileName:p,reference:{pos:_.getStart(),end:_.getEnd(),fileName:_.text},unverified:!d}}}}function s(t,r,n){return e.flatMap(!t.isUnion()||32&t.flags?[t]:t.types,(function(e){return e.symbol&&l(r,e.symbol,n)}))}function c(t,r){var n=r.getSymbolAtLocation(t);if((null==n?void 0:n.declarations)&&2097152&n.flags&&function(t,r){if(79!==t.kind)return!1;if(t.parent===r)return!0;switch(r.kind){case 265:case 263:return!0;case 268:return 267===r.parent.kind;case 201:case 252:return e.isInJSFile(r)&&e.isRequireVariableDeclaration(r);default:return!1}}(t,n.declarations[0])){var i=r.getAliasedSymbol(n);if(i.declarations)return i}return n}function l(t,r,n,i){var a=e.filter(r.declarations,(function(t){return t!==i&&(!e.isAssignmentDeclaration(t)||t===r.valueDeclaration)}))||void 0;return function(){if(32&r.flags&&!(19&r.flags)&&(e.isNewExpressionTarget(n)||133===n.kind))return o((e.find(a,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}()||(e.isCallOrNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?o(a,!1):void 0)||e.map(a,(function(e){return u(e,t,r,n)}));function o(i,a){if(i){var o=i.filter(a?e.isConstructorDeclaration:e.isFunctionLike),s=o.filter((function(e){return!!e.body}));return o.length?0!==s.length?s.map((function(e){return u(e,t,r,n)})):[u(e.last(o),t,r,n)]:void 0}}}function u(t,r,n,i){var a=r.symbolToString(n),o=e.SymbolDisplay.getSymbolKind(r,n,i),s=n.parent?r.symbolToString(n.parent,i):"";return _(r,t,o,a,s)}function _(t,r,n,i,o,s){var c=r.getSourceFile();if(!s){var l=e.getNameOfDeclaration(r)||r;s=e.createTextSpanFromNode(l,c)}return a(a({fileName:c.fileName,textSpan:s,kind:n,name:i,containerKind:void 0,containerName:o},e.FindAllReferences.toContextSpan(s,c,e.FindAllReferences.getContextNode(r))),{isLocal:!d(t,r)})}function d(t,r){if(t.isDeclarationVisible(r))return!0;if(!r.parent)return!1;if(e.hasInitializer(r.parent)&&r.parent.initializer===r)return d(t,r.parent);switch(r.kind){case 165:case 170:case 171:case 167:if(e.hasEffectiveModifier(r,8))return!1;case 169:case 291:case 292:case 203:case 224:case 212:case 211:return d(t,r.parent);default:return!1}}function p(e,t){return u(t,e,t.symbol,t)}function f(t,r){return e.find(t,(function(t){return e.textRangeContainsPositionInclusive(t,r)}))}t.getDefinitionAtPosition=r,t.getReferenceAtPosition=o,t.getTypeDefinitionAtPosition=function(t,r,n){var i=e.getTouchingPropertyName(r,n);if(i!==r){var a=t.getSymbolAtLocation(i);if(a){var o=t.getTypeOfSymbolAtLocation(a,i),c=function(t,r,n){if(r.symbol===t||t.valueDeclaration&&r.symbol&&e.isVariableDeclaration(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){var i=r.getCallSignatures();if(1===i.length)return n.getReturnTypeOfSignature(e.first(i))}}(a,o,t),l=c&&s(c,t,i);return l&&0!==l.length?l:s(o,t,i)}}},t.getDefinitionAndBoundSpan=function(t,n,i){var a=r(t,n,i);if(a&&0!==a.length){var o=f(n.referencedFiles,i)||f(n.typeReferenceDirectives,i)||f(n.libReferenceDirectives,i);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(n,i);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},t.findReferenceInPosition=f}(e.GoToDefinition||(e.GoToDefinition={}))}(u||(u={})),function(e){!function(t){var r,n,a=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function o(t,r){return e.arraysEqual(t,r,(function(e,t){return e.kind===t.kind&&e.text===t.text}))}function s(t,r){return"string"==typeof t?[e.textPart(t)]:e.flatMap(t,(function(t){return 316===t.kind?[e.textPart(t.text)]:e.buildLinkParts(t,r)}))}function c(t,r){var n=t.comment,a=t.kind,o=function(t){switch(t){case 335:return e.parameterNamePart;case 342:return e.propertyNamePart;case 339:return e.typeParameterNamePart;case 340:case 333:return e.typeAliasNamePart;default:return e.textPart}}(a);switch(a){case 324:case 323:return l(t.class);case 339:return u(t.typeParameters.map((function(e){return e.getText()})).join(", "));case 338:return l(t.typeExpression);case 340:case 333:case 342:case 335:case 341:var c=t.name;return c?l(c):void 0===n?void 0:s(n,r);default:return void 0===n?void 0:s(n,r)}function l(e){return u(e.getText())}function u(t){return n?t.match(/^https?$/)?i([e.textPart(t)],s(n,r),!0):i([o(t),e.spacePart()],s(n,r),!0):[e.textPart(t)]}}function l(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function u(t,r){switch(t.kind){case 254:case 211:case 167:case 169:case 166:case 212:var n=t;return{commentOwner:t,parameters:n.parameters,hasReturn:_(n,r)};case 291:return u(t.initializer,r);case 255:case 256:case 164:case 258:case 294:case 257:return{commentOwner:t};case 235:var i=t.declarationList.declarations,a=1===i.length&&i[0].initializer?function(t){for(;210===t.kind;)t=t.expression;switch(t.kind){case 211:case 212:return t;case 224:return e.find(t.members,e.isConstructorDeclaration)}}(i[0].initializer):void 0;return a?{commentOwner:t,parameters:a.parameters,hasReturn:_(a,r)}:{commentOwner:t};case 300:return"quit";case 259:return 259===t.parent.kind?void 0:{commentOwner:t};case 236:return u(t.expression,r);case 219:var o=t;return 0===e.getAssignmentDeclarationKind(o)?"quit":e.isFunctionLike(o.right)?{commentOwner:t,parameters:o.right.parameters,hasReturn:_(o.right,r)}:{commentOwner:t};case 165:var s=t.initializer;if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s)))return{commentOwner:t,parameters:s.parameters,hasReturn:_(s,r)}}}function _(t,r){return!!(null==r?void 0:r.generateReturnInDocTemplate)&&(e.isArrowFunction(t)&&e.isExpression(t.body)||e.isFunctionLikeDeclaration(t)&&t.body&&e.isBlock(t.body)&&!!e.forEachReturnStatement(t.body,(function(e){return e})))}t.getJsDocCommentsFromDeclarations=function(t,r){var n=[];return e.forEachUnique(t,(function(t){for(var i=0,a=function(t){switch(t.kind){case 335:case 342:return[t];case 333:case 340:return[t,t.parent];default:return e.getJSDocCommentsAndTags(t)}}(t);i<a.length;i++){var c=a[i];if(!(void 0===c.comment||e.isJSDoc(c)&&340!==t.kind&&333!==t.kind&&c.tags&&c.tags.some((function(e){return 340===e.kind||333===e.kind}))&&!c.tags.some((function(e){return 335===e.kind||336===e.kind})))){var l=s(c.comment,r);e.contains(n,l,o)||n.push(l)}}})),e.flatten(e.intersperse(n,[e.lineBreakPart()]))},t.getJsDocTagsFromDeclarations=function(t,r){var n=[];return e.forEachUnique(t,(function(t){var i=e.getJSDocTags(t);if(!i.some((function(e){return 340===e.kind||333===e.kind}))||i.some((function(e){return 335===e.kind||336===e.kind})))for(var a=0,o=i;a<o.length;a++){var s=o[a];n.push({name:s.tagName.text,text:c(s,r)})}})),n},t.getJSDocTagNameCompletions=function(){return r||(r=e.map(a,(function(t){return{name:t,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}})))},t.getJSDocTagNameCompletionDetails=l,t.getJSDocTagCompletions=function(){return n||(n=e.map(a,(function(t){return{name:"@"+t,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}})))},t.getJSDocTagCompletionDetails=l,t.getJSDocParameterNameCompletions=function(t){if(!e.isIdentifier(t.name))return e.emptyArray;var r=t.name.text,n=t.parent,i=n.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,(function(i){if(e.isIdentifier(i.name)){var a=i.name.text;if(!n.tags.some((function(r){return r!==t&&e.isJSDocParameterTag(r)&&e.isIdentifier(r.name)&&r.name.escapedText===a}))&&(void 0===r||e.startsWith(a,r)))return{name:a,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}})):[]},t.getJSDocParameterNameCompletionDetails=function(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}},t.getDocCommentTemplateAtPosition=function(t,r,n,i){var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isJSDoc);if(!o||void 0===o.comment&&!e.length(o.tags)){var s=a.getStart(r);if(o||!(s<n)){var c=function(t,r){return e.forEachAncestor(t,(function(e){return u(e,r)}))}(a,i);if(c){var l=c.commentOwner,_=c.parameters,d=c.hasReturn;if(!(l.getStart(r)<n)){var p=function(t,r){for(var n=t.text,i=e.getLineStartPositionForPosition(r,t),a=i;a<=r&&e.isWhiteSpaceSingleLine(n.charCodeAt(a));a++);return n.slice(i,a)}(r,n),f=e.hasJSFileExtension(r.fileName),g=(_?function(e,t,r,n){return e.map((function(e,i){var a=e.name,o=e.dotDotDotToken,s=79===a.kind?a.text:"param"+i;return r+" * @param "+(t?o?"{...any} ":"{any} ":"")+s+n})).join("")}(_||[],f,p,t):"")+(d?function(e,t){return e+" * @returns"+t}(p,t):"");if(g){var m="/**"+t+p+" * ";return{newText:m+t+g+p+" */"+(s===n?t+p:""),caretOffset:m.length}}return{newText:"/** */",caretOffset:3}}}}}}}(e.JsDoc||(e.JsDoc={}))}(u||(u={})),function(e){!function(t){function r(e,t){switch(e.kind){case 265:case 268:case 263:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}function n(t,r){var n=e.getNameOfDeclaration(t);return!!n&&(a(n,r)||160===n.kind&&i(n.expression,r))}function i(t,r){return a(t,r)||e.isPropertyAccessExpression(t)&&(r.push(t.name.text),!0)&&i(t.expression,r)}function a(t,r){return e.isPropertyNameLiteral(t)&&(r.push(e.getTextOfIdentifierOrLiteral(t)),!0)}function o(t){var r=[],a=e.getNameOfDeclaration(t);if(a&&160===a.kind&&!i(a.expression,r))return e.emptyArray;r.shift();for(var o=e.getContainerNode(t);o;){if(!n(o,r))return e.emptyArray;o=e.getContainerNode(o)}return r.reverse()}function s(t,r){return e.compareValues(t.matchKind,r.matchKind)||e.compareStringsCaseSensitiveUI(t.name,r.name)}function c(t){var r=t.declaration,n=e.getContainerNode(r),i=n&&e.getNameOfDeclaration(n);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(r),containerName:i?i.text:"",containerKind:i?e.getNodeKind(n):""}}t.getNavigateToItems=function(t,n,i,a,l,u){var _=e.createPatternMatcher(a);if(!_)return e.emptyArray;for(var d=[],p=function(e){if(i.throwIfCancellationRequested(),u&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach((function(t,i){!function(e,t,n,i,a,s){var c=e.getMatchForLastSegmentOfPattern(t);if(c)for(var l=0,u=n;l<u.length;l++){var _=u[l];if(r(_,i))if(e.patternContainsDots){var d=e.getFullMatch(o(_),t);d&&s.push({name:t,fileName:a,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:_})}else s.push({name:t,fileName:a,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:_})}}(_,i,t,n,e.fileName,d)}))},f=0,g=t;f<g.length;f++)p(g[f]);return d.sort(s),(void 0===l?d:d.slice(0,l)).map(c)}}(e.NavigateTo||(e.NavigateTo={}))}(u||(u={})),function(e){!function(t){var r,n,i,o,s,c=/\s+/g,l=[],u=[],_=[];function d(){i=void 0,n=void 0,l=[],o=void 0,_=[]}function p(e){return Y(e.getText(i))}function f(e){return e.node.kind}function g(e,t){e.children?e.children.push(t):e.children=[t]}function m(t){e.Debug.assert(!l.length);var r={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};o=r;for(var n=0,i=t.statements;n<i.length;n++)k(i[n]);return S(),e.Debug.assert(!o&&!l.length),r}function y(e,t){g(o,h(e,t))}function h(t,r){return{node:t,name:r||(e.isDeclaration(t)||e.isExpression(t)?e.getNameOfDeclaration(t):void 0),additionalNodes:void 0,parent:o,children:void 0,indent:o.indent+1}}function v(t){s||(s=new e.Map),s.set(t,!0)}function b(e){for(var t=0;t<e;t++)S()}function x(t,r){for(var n=[];!e.isPropertyNameLiteral(r);){var i=e.getNameOrArgument(r),a=e.getElementOrPropertyAccessName(r);r=r.expression,"prototype"===a||e.isPrivateIdentifier(i)||n.push(i)}n.push(r);for(var o=n.length-1;o>0;o--)D(t,i=n[o]);return[n.length-1,n[0]]}function D(e,t){var r=h(e,t);g(o,r),l.push(o),u.push(s),s=void 0,o=r}function S(){o.children&&(A(o.children,o),O(o.children)),o=l.pop(),s=u.pop()}function E(e,t,r){D(e,r),k(t),S()}function T(t){t.initializer&&function(e){switch(e.kind){case 212:case 211:case 224:return!0;default:return!1}}(t.initializer)?(D(t),e.forEachChild(t.initializer,k),S()):E(t,t.initializer)}function C(t){return!e.hasDynamicName(t)||219!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function k(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 169:var i=t;E(i,i.body);for(var a=0,o=i.parameters;a<o.length;a++){var c=o[a];e.isParameterPropertyDeclaration(c,i)&&y(c)}break;case 167:case 170:case 171:case 166:C(t)&&E(t,t.body);break;case 165:C(t)&&T(t);break;case 164:C(t)&&y(t);break;case 265:var l=t;l.name&&y(l.name);var u=l.namedBindings;if(u)if(266===u.kind)y(u);else for(var _=0,d=u.elements;_<d.length;_++)y(d[_]);break;case 292:E(t,t.name);break;case 293:var p=t.expression;e.isIdentifier(p)?y(t,p):y(t);break;case 201:case 291:case 252:var f=t;e.isBindingPattern(f.name)?k(f.name):T(f);break;case 254:var g=t.name;g&&e.isIdentifier(g)&&v(g.text),E(t,t.body);break;case 212:case 211:E(t,t.body);break;case 258:D(t);for(var m=0,h=t.members;m<h.length;m++)z(F=h[m])||y(F);S();break;case 255:case 224:case 256:D(t);for(var A=0,N=t.members;A<N.length;A++){var F;k(F=N[A])}S();break;case 259:E(t,K(t).body);break;case 269:var w=t.expression;(f=e.isObjectLiteralExpression(w)||e.isCallExpression(w)?w:e.isArrowFunction(w)||e.isFunctionExpression(w)?w.body:void 0)?(D(t),k(f),S()):y(t);break;case 273:case 263:case 174:case 172:case 173:case 257:y(t);break;case 206:case 219:var P=e.getAssignmentDeclarationKind(t);switch(P){case 1:case 2:return void E(t,t.right);case 6:case 3:var I=(J=t).left,O=3===P?I.expression:I,L=0,M=void 0;return e.isIdentifier(O.expression)?(v(O.expression.text),M=O.expression):(L=(r=x(J,O.expression))[0],M=r[1]),6===P?e.isObjectLiteralExpression(J.right)&&J.right.properties.length>0&&(D(J,M),e.forEachChild(J.right,k),S()):e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?E(t,J.right,M):(D(J,M),E(t,J.right,I.name),S()),void b(L);case 7:case 9:var R=t,B=(M=7===P?R.arguments[0]:R.arguments[0].expression,R.arguments[1]),j=x(t,M);return L=j[0],D(t,j[1]),D(t,e.setTextRange(e.factory.createIdentifier(B.text),B)),k(t.arguments[2]),S(),S(),void b(L);case 5:var J,V=(I=(J=t).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&s&&s.has(V.text))return void(e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?E(t,J.right,V):e.isBindableStaticAccessExpression(I)&&(D(J,V),E(J.left,J.right,e.getNameOrArgument(I)),S()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(P)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(function(t){e.forEach(t.tags,(function(t){e.isJSDocTypeAlias(t)&&y(t)}))})),e.forEachChild(t,k)}}function A(t,r){var n=new e.Map;e.filterMutate(t,(function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&p(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,l=s;c<l.length;c++){var u;if(F(u=l[c],t,i,r))return!1}return s.push(t),!0}return!F(u=s,t,i,r)&&(n.set(o,[u,t]),!0)}))}t.getNavigationBarItems=function(t,r){n=r,i=t;try{return e.map((a=m(t),o=[],function e(t){if(function(e){if(e.children)return!0;switch(f(e)){case 255:case 224:case 258:case 256:case 259:case 300:case 257:case 340:case 333:return!0;case 212:case 254:case 211:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(f(e.parent)){case 260:case 300:case 167:case 169:return!0;default:return!1}}}(t)&&(o.push(t),t.children))for(var r=0,n=t.children;r<n.length;r++)e(n[r])}(a),o),j)}finally{d()}var a,o},t.getNavigationTree=function(e,t){n=t,i=e;try{return B(m(e))}finally{d()}};var N=((r={})[5]=!0,r[3]=!0,r[7]=!0,r[9]=!0,r[0]=!1,r[1]=!1,r[2]=!1,r[8]=!1,r[6]=!0,r[4]=!1,r);function F(t,r,n,i){return!!function(t,r,n,i){function o(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isVariableDeclaration(t)}var s=e.isBinaryExpression(r.node)||e.isCallExpression(r.node)?e.getAssignmentDeclarationKind(r.node):0,c=e.isBinaryExpression(t.node)||e.isCallExpression(t.node)?e.getAssignmentDeclarationKind(t.node):0;if(N[s]&&N[c]||o(t.node)&&N[s]||o(r.node)&&N[c]||e.isClassDeclaration(t.node)&&w(t.node)&&N[s]||e.isClassDeclaration(r.node)&&N[c]||e.isClassDeclaration(t.node)&&w(t.node)&&o(r.node)||e.isClassDeclaration(r.node)&&o(t.node)&&w(t.node)){var l=t.additionalNodes&&e.lastOrUndefined(t.additionalNodes)||t.node;if(!e.isClassDeclaration(t.node)&&!e.isClassDeclaration(r.node)||o(t.node)||o(r.node)){var u=o(t.node)?t.node:o(r.node)?r.node:void 0;if(void 0!==u){var _=h(e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),u));_.indent=t.indent+1,_.children=t.node===u?t.children:r.children,t.children=t.node===u?e.concatenate([_],r.children||[r]):e.concatenate(t.children||[a({},t)],[_])}else(t.children||r.children)&&(t.children=e.concatenate(t.children||[a({},t)],r.children||[r]),t.children&&(A(t.children,t),O(t.children)));l=t.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=e.concatenate(t.children,r.children),t.children&&A(t.children,t);var d=r.node;return i.children[n-1].node.end===l.end?e.setTextRange(l,{pos:l.pos,end:d.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),r.node))),!0}return 0!==s}(t,r,n,i)||!!function(t,r,n){if(t.kind!==r.kind||t.parent!==r.parent&&(!P(t,n)||!P(r,n)))return!1;switch(t.kind){case 165:case 167:case 170:case 171:return e.isStatic(t)===e.isStatic(r);case 259:return I(t,r)&&U(t)===U(r);default:return!0}}(t.node,r.node,i)&&(function(t,r){var n;t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&(n=t.additionalNodes).push.apply(n,r.additionalNodes),t.children=e.concatenate(t.children,r.children),t.children&&(A(t.children,t),O(t.children))}(t,r),!0)}function w(e){return!!(8&e.flags)}function P(t,r){var n=e.isModuleBlock(t.parent)?t.parent.parent:t.parent;return n===r.node||e.contains(r.additionalNodes,n)}function I(e,t){return e.body.kind===t.body.kind&&(259!==e.body.kind||I(e.body,t.body))}function O(e){e.sort(L)}function L(t,r){return e.compareStringsCaseSensitiveUI(M(t.node),M(r.node))||e.compareValues(f(t),f(r))}function M(t){if(259===t.kind)return V(t);var r=e.getNameOfDeclaration(t);if(r&&e.isPropertyName(r)){var n=e.getPropertyNameForPropertyNameNode(r);return n&&e.unescapeLeadingUnderscores(n)}switch(t.kind){case 211:case 212:case 224:return q(t);default:return}}function R(t,r){if(259===t.kind)return Y(V(t));if(r){var n=e.isIdentifier(r)?r.text:e.isElementAccessExpression(r)?"["+p(r.argumentExpression)+"]":p(r);if(n.length>0)return Y(n)}switch(t.kind){case 300:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 269:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 212:case 254:case 211:case 255:case 224:return 512&e.getSyntacticModifierFlags(t)?"default":q(t);case 169:return"constructor";case 173:return"new()";case 172:return"()";case 174:return"[]";default:return"<unknown>"}}function B(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:W(t.node),spans:J(t),nameSpan:t.name&&G(t.name),childItems:e.map(t.children,B)}}function j(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:W(t.node),spans:J(t),childItems:e.map(t.children,(function(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:J(t),childItems:_,indent:0,bolded:!1,grayed:!1}}))||_,indent:t.indent,bolded:!1,grayed:!1}}function J(e){var t=[G(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(G(i))}return t}function V(t){return e.isAmbientModule(t)?e.getTextOfNode(t.name):U(t)}function U(t){for(var r=[e.getTextOfIdentifierOrLiteral(t.name)];t.body&&259===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function K(t){return t.body&&e.isModuleDeclaration(t.body)?K(t.body):t}function z(e){return!e.name||160===e.name.kind}function G(t){return 300===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,i)}function W(t){return t.parent&&252===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function q(t){var r=t.parent;if(t.name&&e.getFullWidth(t.name)>0)return Y(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return Y(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&63===r.operatorToken.kind)return p(r.left).replace(c,"");if(e.isPropertyAssignment(r))return p(r.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"<class>";if(e.isCallExpression(r)){var n=H(r.expression);if(void 0!==n)return(n=Y(n)).length>150?n+" callback":n+"("+Y(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0})).join(", "))+") callback"}return"<function>"}function H(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=H(t.expression),n=t.name.text;return void 0===r?n:r+"."+n}}function Y(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(u||(u={})),function(e){!function(t){function r(t,r){var n=e.isStringLiteral(r)&&r.text;return e.isString(n)&&e.some(t.moduleAugmentations,(function(t){return e.isStringLiteral(t)&&t.text===n}))}function n(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function i(t){var r;if(0===t.length)return t;var n=function(t){for(var r,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s.importClause){var c=s.importClause.isTypeOnly?n:i,l=s.importClause,u=l.name,_=l.namedBindings;u&&c.defaultImports.push(s),_&&(e.isNamespaceImport(_)?c.namespaceImports.push(s):c.namedImports.push(s))}else r=r||s}return{importWithoutClause:r,typeOnlyImports:n,regularImports:i}}(t),i=n.importWithoutClause,a=n.typeOnlyImports,c=n.regularImports,l=[];i&&l.push(i);for(var _=0,d=[c,a];_<d.length;_++){var p=d[_],f=p===a,g=p.defaultImports,m=p.namespaceImports,y=p.namedImports;if(f||1!==g.length||1!==m.length||0!==y.length){for(var h=0,v=e.stableSort(m,(function(e,t){return u(e.importClause.namedBindings.name,t.importClause.namedBindings.name)}));h<v.length;h++){var b=v[h];l.push(o(b,void 0,b.importClause.namedBindings))}if(0!==g.length||0!==y.length){var x=void 0,D=[];if(1===g.length)x=g[0].importClause.name;else for(var S=0,E=g;S<E.length;S++)A=E[S],D.push(e.factory.createImportSpecifier(e.factory.createIdentifier("default"),A.importClause.name));D.push.apply(D,e.flatMap(y,(function(e){return e.importClause.namedBindings.elements})));var T=s(D),C=g.length>0?g[0]:y[0],k=0===T.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(T):e.factory.updateNamedImports(y[0].importClause.namedBindings,T);f&&x&&k?(l.push(o(C,x,void 0)),l.push(o(null!==(r=y[0])&&void 0!==r?r:C,void 0,k))):l.push(o(C,x,k))}}else{var A=g[0];l.push(o(A,A.importClause.name,m[0].importClause.namedBindings))}}return l}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i<a.length;i++){var o=a[i];void 0===o.exportClause?t=t||o:o.isTypeOnly?n.push(o):r.push(o)}return{exportWithoutClause:t,namedExports:r,typeOnlyExports:n}}(t),n=r.exportWithoutClause,i=r.namedExports,a=r.typeOnlyExports,o=[];n&&o.push(n);for(var c=0,l=[i,a];c<l.length;c++){var u=l[c];if(0!==u.length){var _=[];_.push.apply(_,e.flatMap(u,(function(t){return t.exportClause&&e.isNamedExports(t.exportClause)?t.exportClause.elements:e.emptyArray})));var d=s(_),p=u[0];o.push(e.factory.updateExportDeclaration(p,p.decorators,p.modifiers,p.isTypeOnly,p.exportClause&&(e.isNamedExports(p.exportClause)?e.factory.updateNamedExports(p.exportClause,d):e.factory.updateNamespaceExport(p.exportClause,p.exportClause.name)),p.moduleSpecifier))}}return o}function o(t,r,n){return e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),t.moduleSpecifier)}function s(t){return e.stableSort(t,c)}function c(e,t){return u(e.propertyName||e.name,t.propertyName||t.name)||u(e.name,t.name)}function l(t,r){var i=void 0===t?void 0:n(t),a=void 0===r?void 0:n(r);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseInsensitive(i,a)}function u(t,r){return e.compareStringsCaseInsensitive(t.text,r.text)}function _(t){var r;switch(t.kind){case 263:return null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression;case 264:return t.moduleSpecifier;case 235:return t.declarationList.declarations[0].initializer.arguments[0]}}function d(t,r){return l(_(t),_(r))||function(t,r){return e.compareValues(p(t),p(r))}(t,r)}function p(e){var t;switch(e.kind){case 264:return e.importClause?e.importClause.isTypeOnly?1:266===(null===(t=e.importClause.namedBindings)||void 0===t?void 0:t.kind)?2:e.importClause.name?3:4:0;case 263:return 5;case 235:return 6}}t.organizeImports=function(t,s,c,u,_,p){var f=e.textChanges.ChangeTracker.fromContext({host:c,formatContext:s,preferences:_}),g=function(n){return e.stableSort(i(function(t,n,i,a){if(a)return t;for(var s=i.getTypeChecker(),c=s.getJsxNamespace(n),l=s.getJsxFragmentFactory(n),u=!!(2&n.transformFlags),_=[],d=0,p=t;d<p.length;d++){var f=p[d],g=f.importClause,m=f.moduleSpecifier;if(g){var y=g.name,h=g.namedBindings;if(y&&!b(y)&&(y=void 0),h)if(e.isNamespaceImport(h))b(h.name)||(h=void 0);else{var v=h.elements.filter((function(e){return b(e.name)}));v.length<h.elements.length&&(h=v.length?e.factory.updateNamedImports(h,v):void 0)}y||h?_.push(o(f,y,h)):r(n,m)&&(n.isDeclarationFile?_.push(e.factory.createImportDeclaration(f.decorators,f.modifiers,void 0,m)):_.push(f))}else _.push(f)}return _;function b(t){return u&&(t.text===c||l&&t.text===l)||e.FindAllReferences.Core.isSymbolReferencedInFile(t,s,n)}}(n,t,u,p)),(function(e,t){return d(e,t)}))};v(t.statements.filter(e.isImportDeclaration),g),v(t.statements.filter(e.isExportDeclaration),a);for(var m=0,y=t.statements.filter(e.isAmbientModule);m<y.length;m++){var h=y[m];h.body&&(v(h.body.statements.filter(e.isImportDeclaration),g),v(h.body.statements.filter(e.isExportDeclaration),a))}return f.getChanges();function v(r,i){if(0!==e.length(r)){e.suppressLeadingTrivia(r[0]);var a=e.group(r,(function(e){return n(e.moduleSpecifier)})),o=e.stableSort(a,(function(e,t){return l(e[0].moduleSpecifier,t[0].moduleSpecifier)})),u=e.flatMap(o,(function(e){return n(e[0].moduleSpecifier)?i(e):e}));if(0===u.length)f.deleteNodes(t,r,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var _={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(c,s.options)};f.replaceNodeWithNodes(t,r[0],u,_);var d=f.nodeHasTrailingComment(t,r[0],_);f.deleteNodes(t,r.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},d)}}}},t.coalesceImports=i,t.coalesceExports=a,t.compareImportOrExportSpecifiers=c,t.compareModuleSpecifiers=l,t.importsAreSorted=function(t){return e.arrayIsSorted(t,d)},t.importSpecifiersAreSorted=function(t){return e.arrayIsSorted(t,c)},t.getImportDeclarationInsertionIndex=function(t,r){var n=e.binarySearch(t,r,e.identity,d);return n<0?~n:n},t.getImportSpecifierInsertionIndex=function(t,r){var n=e.binarySearch(t,r,e.identity,c);return n<0?~n:n},t.compareImportsOrRequireStatements=d}(e.OrganizeImports||(e.OrganizeImports={}))}(u||(u={})),function(e){!function(t){t.collectElements=function(t,r){var u=[];return function(t,r,n){for(var u=40,_=0,d=i(i([],t.statements,!0),[t.endOfFileToken],!1),p=d.length;_<p;){for(;_<p&&!e.isAnyImportSyntax(d[_]);)m(d[_]),_++;if(_===p)break;for(var f=_;_<p&&e.isAnyImportSyntax(d[_]);)o(d[_],t,r,n),_++;var g=_-1;g!==f&&n.push(s(e.findChildOfKind(d[f],100,t).getStart(t),d[g].getEnd(),"imports"))}function m(i){var _;if(0!==u){r.throwIfCancellationRequested(),(e.isDeclaration(i)||e.isVariableStatement(i)||e.isReturnStatement(i)||1===i.kind)&&o(i,t,r,n),e.isFunctionLike(i)&&e.isBinaryExpression(i.parent)&&e.isPropertyAccessExpression(i.parent.left)&&o(i.parent.left,t,r,n),(e.isBlock(i)||e.isModuleBlock(i))&&a(i.statements.end,t,r,n),(e.isClassLike(i)||e.isInterfaceDeclaration(i))&&a(i.members.end,t,r,n);var d=function(t,r){switch(t.kind){case 233:if(e.isFunctionLike(t.parent))return function(t,r,n){var i=function(t,r,n){if(e.isNodeArrayMultiLine(t.parameters,n)){var i=e.findChildOfKind(t,20,n);if(i)return i}return e.findChildOfKind(r,18,n)}(t,r,n),a=e.findChildOfKind(r,19,n);return i&&a&&c(i,a,t,n,212!==t.kind)}(t.parent,t,r);switch(t.parent.kind){case 238:case 241:case 242:case 240:case 237:case 239:case 246:case 290:return u(t.parent);case 250:var n=t.parent;if(n.tryBlock===t)return u(t.parent);if(n.finallyBlock===t){var i=e.findChildOfKind(n,96,r);if(i)return u(i)}default:return l(e.createTextSpanFromNode(t,r),"code")}case 260:return u(t.parent);case 255:case 224:case 256:case 258:case 261:case 180:case 199:return u(t);case 182:return u(t,!1,!e.isTupleTypeNode(t.parent),22);case 287:case 288:return(a=t.statements).length?l(e.createTextSpanFromRange(a),"code"):void 0;case 203:return o(t);case 202:return o(t,22);case 276:return function(t){var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd()),i=t.openingElement.tagName.getText(r);return l(n,"code",n,!1,"<"+i+">...</"+i+">")}(t);case 280:return function(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return l(n,"code",n,!1,"<>...</>")}(t);case 277:case 278:return function(e){if(0!==e.properties.length)return s(e.getStart(r),e.getEnd(),"code")}(t.attributes);case 221:case 14:return function(e){if(14!==e.kind||0!==e.text.length)return s(e.getStart(r),e.getEnd(),"code")}(t);case 200:return u(t,!1,!e.isBindingElement(t.parent),22);case 212:return function(t){if(!e.isBlock(t.body)&&!e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),r))return l(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))}(t);case 206:return function(t){if(t.arguments.length){var n=e.findChildOfKind(t,20,r),i=e.findChildOfKind(t,21,r);if(n&&i&&!e.positionsAreOnSameLine(n.pos,i.pos,r))return c(n,i,t,r,!1,!0)}}(t)}var a;function o(t,r){return void 0===r&&(r=18),u(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function u(n,i,a,o,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===s&&(s=18===o?19:23);var l=e.findChildOfKind(t,o,r),u=e.findChildOfKind(t,s,r);return l&&u&&c(l,u,n,r,i,a)}}(i,t);d&&n.push(d),u--,e.isCallExpression(i)?(u++,m(i.expression),u--,i.arguments.forEach(m),null===(_=i.typeArguments)||void 0===_||_.forEach(m)):e.isIfStatement(i)&&i.elseStatement&&e.isIfStatement(i.elseStatement)?(m(i.expression),m(i.thenStatement),u++,m(i.elseStatement),u--):i.forEachChild(m),u++}}}(t,r,u),function(t,r){for(var i=[],a=0,o=t.getLineStarts();a<o.length;a++){var s=o[a],c=t.getLineEndOfPosition(s),u=n(t.text.substring(s,c));if(u&&!e.isInComment(t,s))if(u[1]){var _=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(l(d,"region",d,!1,u[2]||"#region"))}}}(t,u),u.sort((function(e,t){return e.textSpan.start-t.textSpan.start}))};var r=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function n(t){return t=e.trimStringStart(t),e.startsWith(t,"//")?(t=e.trimString(t.slice(2)),r.exec(t)):null}function a(t,r,i,a){var o=e.getLeadingCommentRanges(r.text,t);if(o){for(var c=-1,l=-1,u=0,_=r.getFullText(),d=0,p=o;d<p.length;d++){var f=p[d],g=f.kind,m=f.pos,y=f.end;switch(i.throwIfCancellationRequested(),g){case 2:if(n(_.slice(m,y))){h(),u=0;break}0===u&&(c=m),l=y,u++;break;case 3:h(),a.push(s(m,y,"comment")),u=0;break;default:e.Debug.assertNever(g)}}h()}function h(){u>1&&a.push(s(c,l,"comment"))}}function o(t,r,n,i){e.isJsxText(t)||a(t.pos,r,n,i)}function s(t,r,n){return l(e.createTextSpanFromBounds(t,r),n)}function c(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),l(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function l(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(u||(u={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=y(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(E(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"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var _=0,p=n(i,o);_<p.length;_++){var f=p[_];if(c(i,f,a.text,!0))return r(t.substring,c(i,f,a.text,!1))}if(a.text.length<i.length&&u(i.charCodeAt(s)))return r(t.substring,!1)}else{if(i.indexOf(a.text)>0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),m=!!l(i,g,a,!1)||!l(i,g,a,!0)&&void 0;if(void 0!==m)return r(t.camelCase,m)}}}function a(e,t,r){if(E(t.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s<c.length;s++)a=o(a,i(e,c[s],r));return a}function o(t,r){return e.min(t,r,s)}function s(t,r){return void 0===t?1:void 0===r?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function c(e,t,r,n,i){return void 0===i&&(i={start:0,length:r.length}),i.length<=t.length&&S(0,i.length,(function(a){return function(e,t,r){return r?d(e)===d(t):e===t}(r.charCodeAt(i.start+a),e.charCodeAt(t.start+a),n)}))}function l(t,r,n,i){for(var a,o,s=n.characterSpans,l=0,_=0;;){if(_===s.length)return!0;if(l===r.length)return!1;for(var d=r[l],p=!1;_<s.length;_++){var f=s[_];if(p&&(!u(n.text.charCodeAt(s[_-1].start))||!u(n.text.charCodeAt(s[_].start))))break;if(!c(t,d,n.text,i,f))break;p=!0,a=void 0===a?l:a,o=void 0===o||o,d=e.createTextSpan(d.start+f.length,d.length-f.length)}p||void 0===o||(o=!1),l++}}function u(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function _(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function d(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function p(e){return e>=48&&e<=57}function f(e){for(var t=[],r=0,n=0,i=0;i<e.length;i++)u(a=e.charCodeAt(i))||_(a)||p(a)||95===a||36===a?(0===n&&(r=i),n++):n>0&&(t.push(g(e.substr(r,n))),n=0);var a;return n>0&&t.push(g(e.substr(r,n))),t}function g(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:m(e)}}function m(e){return h(e,!1)}function y(e){return h(e,!0)}function h(t,r){for(var n=[],i=0,a=1;a<t.length;a++){var o=p(t.charCodeAt(a-1)),s=p(t.charCodeAt(a)),c=D(t,r,a),l=r&&x(t,a,i);(v(t.charCodeAt(a-1))||v(t.charCodeAt(a))||o!==s||c||l)&&(b(t,i,a)||n.push(e.createTextSpan(i,a-i)),i=a)}return b(t,i,t.length)||n.push(e.createTextSpan(i,t.length-i)),n}function v(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function b(e,t,r){return E(e,(function(e){return v(e)&&95!==e}),t,r)}function x(e,t,r){return t!==r&&t+1<e.length&&u(e.charCodeAt(t))&&_(e.charCodeAt(t+1))&&E(e,u,r,t)}function D(e,t,r){var n=u(e.charCodeAt(r-1));return u(e.charCodeAt(r))&&(!t||!n)}function S(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function E(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),S(r,n,(function(r){return t(e.charCodeAt(r),r)}))}!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(t=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=function(t){var r=new e.Map,n=t.trim().split(".").map((function(e){return{totalTextChunk:g(t=e.trim()),subWordTextChunks:f(t)};var t}));if(!n.some((function(e){return!e.subWordTextChunks.length})))return{getFullMatch:function(t,i){return function(t,r,n,i){var s;if(a(r,e.last(n),i)&&!(n.length-1>t.length)){for(var c=n.length-2,l=t.length-1;c>=0;c-=1,l-=1)s=o(s,a(t[l],n[c],i));return s}}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=m,e.breakIntoWordSpans=y}(u||(u={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function _(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,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===l&&(u=!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(100===t){if(20===(t=_())){if(10===(t=_())||14===t)return p(),!0}else{if(10===t)return p(),!0;if(150===t){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 154!==t&&(41===t||18===t||79===t||e.isKeyword(t))}));r&&(t=_())}if(79===t||e.isKeyword(t))if(154===(t=_())){if(10===(t=_()))return p(),!0}else if(63===t){if(y(!0))return!0}else{if(27!==t)return!0;t=_()}if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&154===(t=_())&&10===(t=_())&&p()}else 41===t&&127===(t=_())&&(79===(t=_())||e.isKeyword(t))&&154===(t=_())&&10===(t=_())&&p()}return!0}return!1}function m(){var t=e.scanner.getToken();if(93===t){if(f(),150===(t=_())){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 41===t||18===t}));r&&(t=_())}if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&154===(t=_())&&10===(t=_())&&p()}else if(41===t)154===(t=_())&&10===(t=_())&&p();else if(100===t&&(150===(t=_())&&(r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 79===t||e.isKeyword(t)})),r&&(t=_())),(79===t||e.isKeyword(t))&&63===(t=_())&&y(!0)))return!0;return!0}return!1}function y(t,r){void 0===r&&(r=!1);var n=t?_():e.scanner.getToken();return 144===n&&(20===(n=_())&&(10===(n=_())||r&&14===n)&&p(),!0)}function h(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=_()))return!0;if(10===(t=_())||14===t){if(27!==(t=_()))return!0;t=_()}if(22!==t)return!0;for(t=_();23!==t&&1!==t;)10!==t&&14!==t||p(),t=_();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),_();1!==e.scanner.getToken();)void 0,134===e.scanner.getToken()&&(140===_()&&10===_()&&(i||(i=[]),i.push({ref:d(),depth:l})),1)||g()||m()||n&&(y(!1,!0)||h())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),u){if(i)for(var v=0,b=i;v<b.length;v++){var x=b[v];c.push(x.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var D=void 0;if(i)for(var S=0,E=i;S<E.length;S++)0===(x=E[S]).depth?(D||(D=[]),D.push(x.ref.fileName)):c.push(x.ref);return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:D}}}(u||(u={})),function(e){!function(t){function r(e,t,r,n,a,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:n,triggerSpan:i(a,o)}}function n(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t)}}function i(t,r){var n=t.getStart(r),i=t.getWidth(r);return e.isStringLiteralLike(t)&&(n+=1,i-=2),e.createTextSpan(n,i)}t.getRenameInfo=function(t,i,a,o){var s=e.getAdjustedRenameLocation(e.getTouchingPropertyName(i,a));if(function(t){switch(t.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}(s)){var c=function(t,i,a,o,s){var c=i.getSymbolAtLocation(t);if(c){var l=c.declarations;if(l&&0!==l.length){if(l.some((function(t){return function(t,r){var n=r.getSourceFile();return t.isSourceFileDefaultLibrary(n)&&e.fileExtensionIs(n.fileName,".d.ts")}(o,t)})))return n(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(t)&&88===t.originalKeywordKind&&c.parent&&1536&c.parent.flags)){if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t))return s&&s.allowRenameOfImportPath?function(t,r,i){if(!e.isExternalModuleNameRelative(t.text))return n(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var a=i.declarations&&e.find(i.declarations,e.isSourceFile);if(a){var o=e.endsWith(t.text,"/index")||e.endsWith(t.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(a.fileName),"/index"),s=void 0===o?a.fileName:o,c=void 0===o?"module":"directory",l=t.text.lastIndexOf("/")+1;return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:e.createTextSpan(t.getStart(r)+1+l,t.text.length-l)}}}(t,a,c):void 0;var u=e.SymbolDisplay.getSymbolKind(i,c,t),_=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteralLike(t)&&160===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0;return r(_||i.symbolToString(c),_||i.getFullyQualifiedName(c),u,e.SymbolDisplay.getSymbolModifiers(i,c),t,a)}}}else if(e.isStringLiteralLike(t)){var d=e.getContextualTypeOrAncestorTypeNodeType(t,i);if(d&&(128&d.flags||1048576&d.flags&&e.every(d.types,(function(e){return!!(128&e.flags)}))))return r(t.text,t.text,"string","",t,a)}else if(e.isLabelName(t)){var p=e.getTextOfNode(t);return r(p,p,"label","",t,a)}}(s,t.getTypeChecker(),i,t,o);if(c)return c}return n(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(u||(u={})),function(e){!function(t){function r(t,r,n){return e.Debug.assert(n.pos<=r),r<n.end||n.getEnd()===r&&e.getTouchingPropertyName(t,r).pos<n.end}t.getSmartSelectionRange=function(t,n){var o,s,c,_={textSpan:e.createTextSpanFromBounds(n.getFullStart(),n.getEnd())},d=n;e:for(;;){var p=i(d);if(!p.length)break;for(var f=0;f<p.length;f++){var g=p[f-1],m=p[f],y=p[f+1];if(e.getTokenPosOfNode(m,n,!0)>t)break e;var h=e.singleOrUndefined(e.getTrailingCommentRanges(n.text,m.end));if(h&&2===h.kind&&S(h.pos,h.end),r(n,t,m)){if(e.isBlock(m)||e.isTemplateSpan(m)||e.isTemplateHead(m)||e.isTemplateTail(m)||g&&e.isTemplateHead(g)||e.isVariableDeclarationList(m)&&e.isVariableStatement(d)||e.isSyntaxList(m)&&e.isVariableDeclarationList(d)||e.isVariableDeclaration(m)&&e.isSyntaxList(d)&&1===p.length||e.isJSDocTypeExpression(m)||e.isJSDocSignature(m)||e.isJSDocTypeLiteral(m)){d=m;break}e.isTemplateSpan(d)&&y&&e.isTemplateMiddleOrTemplateTail(y)&&D(m.getFullStart()-"${".length,y.getStart()+"}".length);var v=e.isSyntaxList(m)&&(void 0,18===(c=(s=g)&&s.kind)||22===c||20===c||278===c)&&l(y)&&!e.positionsAreOnSameLine(g.getStart(),y.getStart(),n),b=v?g.getEnd():m.getStart(),x=v?y.getStart():u(n,m);e.hasJSDocNodes(m)&&(null===(o=m.jsDoc)||void 0===o?void 0:o.length)&&D(e.first(m.jsDoc).getStart(),x),D(b,x),(e.isStringLiteral(m)||e.isTemplateLiteral(m))&&D(b+1,x-1),d=m;break}if(f===p.length-1)break e}}return _;function D(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!_||!e.textSpansEqual(i,_.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(_=a({textSpan:i},_&&{parent:_}))}}function S(e,t){D(e,t);for(var r=e;47===n.text.charCodeAt(r);)r++;D(r,t)}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var r=t.getChildren(),i=r[0],a=r.slice(1),l=e.Debug.checkDefined(a.pop());e.Debug.assertEqual(i.kind,18),e.Debug.assertEqual(l.kind,19);var u=o(a,(function(e){return e===t.readonlyToken||143===e.kind||e===t.questionToken||57===e.kind})),_=o(u,(function(e){var t=e.kind;return 22===t||161===t||23===t}));return[i,c(s(_,(function(e){return 58===e.kind}))),l]}if(e.isPropertySignature(t))return s(a=o(t.getChildren(),(function(r){return r===t.name||e.contains(t.modifiers,r)})),(function(e){return 58===e.kind}));if(e.isParameter(t)){var d=o(t.getChildren(),(function(e){return e===t.dotDotDotToken||e===t.name}));return s(o(d,(function(e){return e===d[0]||e===t.questionToken})),(function(e){return 63===e.kind}))}return e.isBindingElement(t)?s(t.getChildren(),(function(e){return 63===e.kind})):t.getChildren()}function o(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=a[i];t(o)?(r=r||[]).push(o):(r&&(n.push(c(r)),r=void 0),n.push(o))}return r&&n.push(c(r)),n}function s(t,r,n){if(void 0===n&&(n=!0),t.length<2)return t;var i=e.findIndex(t,r);if(-1===i)return t;var a=t.slice(0,i),o=t[i],s=e.last(t),l=n&&26===s.kind,u=t.slice(i+1,l?t.length-1:void 0),_=e.compact([a.length?c(a):void 0,o,u.length?c(u):void 0]);return l?_.concat(s):_}function c(t){return e.Debug.assertGreaterThanOrEqual(t.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(t),t[0].pos,e.last(t).end)}function l(e){var t=e&&e.kind;return 19===t||23===t||21===t||279===t}function u(e,t){switch(t.kind){case 335:case 333:case 342:case 340:case 337:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}}(e.SmartSelectionRange||(e.SmartSelectionRange={}))}(u||(u={})),function(e){!function(t){var r,n;function a(t,r,n){for(var i=t.getFullStart(),a=t.parent;a;){var o=e.findPrecedingToken(i,r,a,!0);if(o)return e.rangeContainsRange(n,o);a=a.parent}return e.Debug.fail("Could not find preceding token")}function o(t,r){var n=function(t,r){if(29===t.kind||20===t.kind)return{list:p(t.parent,t,r),argumentIndex:0};var n=e.findContainingList(t);return n&&{list:n,argumentIndex:u(n,t)}}(t,r);if(n){var i=n.list,a=n.argumentIndex,o=function(t){var r=t.getChildren(),n=e.countWhere(r,(function(e){return 27!==e.kind}));return r.length>0&&27===e.last(r).kind&&n++,n}(i);0!==a&&e.Debug.assertLessThan(a,o);var s=function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(i,r);return{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:s}}}function s(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var a=i,s=o(t,n);if(!s)return;var c=s.list,l=s.argumentIndex,u=s.argumentCount,d=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:a},argumentsSpan:d,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?_(i,0,n):void 0;if(e.isTemplateHead(t)&&208===i.parent.kind){var p=i,f=p.parent;return e.Debug.assert(221===p.kind),_(f,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var g=i;if(f=i.parent.parent,e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return l=function(t,r,n,i){return e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r)?e.isInsideTemplateLiteral(r,n,i)?0:t+2:t+1}(g.parent.templateSpans.indexOf(g),t,r,n),_(f,l,n)}if(e.isJsxOpeningLikeElement(i)){var m=i.attributes.pos,y=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(m,y-m),argumentIndex:0,argumentCount:1}}var h=e.getPossibleTypeArgumentsInfo(t,n);if(h){var v=h.called,b=h.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:v},argumentsSpan:d=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function l(t){return e.isBinaryExpression(t.left)?l(t.left)+1:2}function u(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;27!==a.kind&&r++}return r}function _(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:d(t,n),argumentIndex:r,argumentCount:i}}function d(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();return 221===n.kind&&0===e.last(n.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1)),e.createTextSpan(i,a-i)}function p(t,r,n){var i=t.getChildren(n),a=i.indexOf(r);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function f(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function g(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,i,u){var _=t.getTypeChecker(),d=e.findTokenOnLeftOfPosition(r,n);if(d){var p=!!i&&"characterTyped"===i.kind;if(!p||!e.isInString(r,n,d)&&!e.isInComment(r,n)){var m=!!i&&"invoked"===i.kind,v=function(t,r,n,i,a){for(var u=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(function(){return"Child: "+e.Debug.formatSyntaxKind(t.kind)+", parent: "+e.Debug.formatSyntaxKind(t.parent.kind)}));var a=function(t,r,n,i){return function(t,r,n,i){var a=function(t,r,n){if(20===t.kind||27===t.kind){var i=t.parent;switch(i.kind){case 210:case 167:case 211:case 212:var a=o(t,r);if(!a)return;var s=a.argumentIndex,u=a.argumentCount,_=a.argumentsSpan,d=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return d&&{contextualType:d,argumentIndex:s,argumentCount:u,argumentsSpan:_};case 219:var p=c(i),f=n.getContextualType(p),g=20===t.kind?0:l(i)-1,m=l(p);return f&&{contextualType:f,argumentIndex:g,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}}(t,n,i);if(a){var s,u=a.contextualType,_=a.argumentIndex,d=a.argumentCount,p=a.argumentsSpan,f=u.getNonNullableType(),g=f.getCallSignatures();return 1!==g.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(g),node:t,symbol:(s=f.symbol,"__type"===s.name&&e.firstDefined(s.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||s)},argumentsSpan:p,argumentIndex:_,argumentCount:d}}}(t,0,n,i)||s(t,r,n)}(t,r,n,i);if(a)return{value:a}},_=t;!e.isSourceFile(_)&&(a||!e.isBlock(_));_=_.parent){var d=u(_);if("object"==typeof d)return d.value}}(d,n,r,_,m);if(v){u.throwIfCancellationRequested();var b=function(t,r,n,i,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var i=r.getChildren(n);switch(t.kind){case 20:return e.contains(i,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(i,o);case 29:return a(t,n,r.expression);default:return!1}}(i,s.node,n))return;var l=[],u=r.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var _=s.called;if(o&&!a(i,n,e.isIdentifier(_)?_.parent:_))return;if(0!==(l=e.getPossibleGenericSignatures(_,c,r)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var d=r.getSymbolAtLocation(_);return d&&{kind:1,symbol:d};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(v,_,r,d,p);return u.throwIfCancellationRequested(),b?_.runWithCancellationToken(u,(function(e){return 0===b.kind?y(b.candidates,b.resolvedSignature,v,r,e):function(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[h(e,c,n,g(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(b.symbol,v,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2!==t.invocation.kind){var i=f(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(function(r){return e.firstDefined(r.getNamedDeclarations().get(a),(function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(function(e){return y(a,a[0],t,r,e,!0)}))}))}))}}(v,t,u):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=s(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var m=70246400;function y(t,r,n,a,o,s){var c,l=n.isTypeParameterList,u=n.argumentCount,_=n.argumentsSpan,d=n.invocation,p=n.argumentIndex,m=g(d),y=2===d.kind?d.symbol:o.getSymbolAtLocation(f(d))||s&&(null===(c=r.declaration)||void 0===c?void 0:c.symbol),h=y?e.symbolToDisplayParts(o,y,s?a:void 0,void 0):e.emptyArray,D=e.map(t,(function(t){return function(t,r,n,a,o,s){var c=(n?b:x)(t,a,o,s);return e.map(c,(function(n){var s=n.isVariadic,c=n.parameters,l=n.prefix,u=n.suffix,_=i(i([],r,!0),l,!0),d=i(i([],u,!0),function(t,r,n){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)}))}(t,o,a),!0),p=t.getDocumentationComment(a),f=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:_,suffixDisplayParts:d,separatorDisplayParts:v,parameters:c,documentation:p,tags:f}}))}(t,h,l,o,m,a)}));0!==p&&e.Debug.assertLessThan(p,u);for(var S=0,E=0,T=0;T<D.length;T++){var C=D[T];if(t[T]===r&&(S=E,C.length>1))for(var k=0,A=0,N=C;A<N.length;A++){var F=N[A];if(F.isVariadic||F.parameters.length>=u){S=E+k;break}k++}E+=C.length}e.Debug.assert(-1!==S);var w={items:e.flatMapToMutable(D,e.identity),applicableSpan:_,selectedItemIndex:S,argumentIndex:p,argumentCount:u},P=w.items[S];if(P.isVariadic){var I=e.findIndex(P.parameters,(function(e){return!!e.isRest}));-1<I&&I<P.parameters.length-1?w.argumentIndex=P.parameters.length:w.argumentIndex=Math.min(w.argumentIndex,P.parameters.length-1)}return w}function h(t,r,n,a,o){var s=e.symbolToDisplayParts(n,t),c=e.createPrinter({removeComments:!0}),l=r.map((function(e){return D(e,n,a,o,c)})),u=t.getDocumentationComment(n),_=t.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:i(i([],s,!0),[e.punctuationPart(29)],!1),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:v,parameters:l,documentation:u,tags:_}}var v=[e.punctuationPart(27),e.spacePart()];function b(t,r,n,a){var o=(t.target||t).typeParameters,s=e.createPrinter({removeComments:!0}),c=(o||e.emptyArray).map((function(e){return D(e,r,n,a,s)})),l=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,m)]:[];return r.getExpandedParameters(t).map((function(t){var o=e.factory.createNodeArray(i(i([],l,!0),e.map(t,(function(e){return r.symbolToParameterDeclaration(e,n,m)})),!0)),u=e.mapToDisplayParts((function(e){s.writeList(2576,o,a,e)}));return{isVariadic:!1,parameters:c,prefix:[e.punctuationPart(29)],suffix:i([e.punctuationPart(31)],u,!0)}}))}function x(t,r,n,a){var o=e.createPrinter({removeComments:!0}),s=e.mapToDisplayParts((function(i){if(t.typeParameters&&t.typeParameters.length){var s=e.factory.createNodeArray(t.typeParameters.map((function(e){return r.typeParameterToDeclaration(e,n,m)})));o.writeList(53776,s,a,i)}})),c=r.getExpandedParameters(t),l=r.hasEffectiveRestParameter(t)?1===c.length?function(e){return!0}:function(e){return!!(e.length&&32768&e[e.length-1].checkFlags)}:function(e){return!1};return c.map((function(t){return{isVariadic:l(t),parameters:t.map((function(t){return function(t,r,n,i,a){var o=e.mapToDisplayParts((function(e){var o=r.symbolToParameterDeclaration(t,n,m);a.writeNode(4,o,i,e)})),s=r.isOptionalParameter(t.valueDeclaration),c=!!(32768&t.checkFlags);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s,isRest:c}}(t,r,n,a,o)})),prefix:i(i([],s,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}}))}function D(t,r,n,i,a){var o=e.mapToDisplayParts((function(e){var o=r.typeParameterToDeclaration(t,n,m);a.writeNode(4,o,i,e)}));return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1,isRest:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(u||(u={})),function(e){!function(t){function r(e){return"literals"===e.includeInlayParameterNameHints}t.provideInlayHints=function(t){var n=t.file,i=t.program,a=t.span,o=t.cancellationToken,s=t.preferences,c=n.text,l=i.getCompilerOptions(),u=i.getTypeChecker(),_=[];return function t(i){if(i&&0!==i.getFullWidth()){switch(i.kind){case 259:case 255:case 256:case 254:case 224:case 211:case 167:case 212:o.throwIfCancellationRequested()}if(e.textSpanIntersectsWith(a,i.pos,i.getFullWidth())&&!e.isTypeNode(i))return s.includeInlayVariableTypeHints&&e.isVariableDeclaration(i)||s.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(i)?function(t){if(t.initializer&&!e.isBindingPattern(t.name)&&!e.getEffectiveTypeAnnotationNode(t)){var r=u.getTypeAtLocation(t);if(!f(r)){var n=b(r);n&&p(n,t.name.end)}}}(i):s.includeInlayEnumMemberValueHints&&e.isEnumMember(i)?function(e){if(!e.initializer){var t,r,n=u.getConstantValue(e);void 0!==n&&(t=n.toString(),r=e.end,_.push({text:"= "+v(t,30),position:r,kind:"Enum",whitespaceBefore:!0}))}}(i):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(s)&&(e.isCallExpression(i)||e.isNewExpression(i))?function(t){var n=t.arguments;if(n&&n.length){var i=[],a=u.getResolvedSignatureForSignatureHelp(t,i);if(a&&i.length)for(var o=0;o<n.length;++o){var c=n[o],l=e.skipParentheses(c);if(!r(s)||y(l)){var _=u.getParameterIdentifierNameAtPosition(a,o);if(_){var p=_[0],f=_[1];if(!s.includeInlayParameterNameHintsWhenArgumentMatchesName&&g(l,p)&&!f)continue;var h=e.unescapeLeadingUnderscores(p);if(m(l,h))continue;d(h,c.getStart(),f)}}}}}(i):(s.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(i)&&e.hasContextSensitiveParameters(i)&&function(t){var r=u.getSignatureFromDeclaration(t);if(r)for(var n=0;n<t.parameters.length&&n<r.parameters.length;++n){var i=t.parameters[n];if(!e.getEffectiveTypeAnnotationNode(i)){var a=h(r.parameters[n]);a&&p(a,i.end)}}}(i),s.includeInlayFunctionLikeReturnTypeHints&&function(t){return e.isArrowFunction(t)||e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isMethodDeclaration(t)||e.isGetAccessorDeclaration(t)}(i)&&function(t){if((!e.isArrowFunction(t)||e.findChildOfKind(t,20,n))&&!e.getEffectiveReturnTypeNode(t)&&t.body){var r=u.getSignatureFromDeclaration(t);if(r){var i=u.getReturnTypeOfSignature(r);if(!f(i)){var a=b(i);a&&p(a,function(t){var r=e.findChildOfKind(t,21,n);return r?r.end:t.parameters.end}(t))}}}}(i)),e.forEachChild(i,t)}}(n),_;function d(e,t,r){_.push({text:(r?"...":"")+v(e,30)+":",position:t,kind:"Parameter",whitespaceAfter:!0})}function p(e,t){_.push({text:": "+v(e,30),position:t,kind:"Type",whitespaceBefore:!0})}function f(e){return e.symbol&&1536&e.symbol.flags}function g(t,r){return e.isIdentifier(t)?t.text===r:!!e.isPropertyAccessExpression(t)&&t.name.text===r}function m(t,r){if(!e.isIdentifierText(r,l.target,e.getLanguageVariant(n.scriptKind)))return!1;var i=e.getLeadingCommentRanges(c,t.pos);if(!(null==i?void 0:i.length))return!1;var a=function(e){return new RegExp("^\\s?/\\*\\*?\\s?"+e+"\\s?\\*\\/\\s?$")}(r);return e.some(i,(function(e){return a.test(c.substring(e.pos,e.end))}))}function y(t){switch(t.kind){case 217:var r=t.operand;return e.isLiteralExpression(r)||e.isIdentifier(r)&&e.isInfinityOrNaNString(r.escapedText);case 110:case 95:case 104:return!0;case 79:var n=t.escapedText;return function(e){return"undefined"===e}(n)||e.isInfinityOrNaNString(n)}return e.isLiteralExpression(t)}function h(t){var r=t.valueDeclaration;if(r&&e.isParameter(r)){var n=u.getTypeOfSymbolAtLocation(t,r);if(!f(n))return b(n)}}function v(e,t){return e.length>t?e.substr(0,t-"...".length)+"...":e}function b(t){var r=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((function(i){var a=u.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}}}(e.InlayHints||(e.InlayHints={}))}(u||(u={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(e.isDeclarationFileName(r.fileName)&&c(r.fileName)){var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0}},tryGetGeneratedPosition:function(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=t.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var l=o.getCompilerOptions(),u=e.outFile(l),_=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0!==_){var d=s(_,i.fileName).getGeneratedPosition(i);return d===i?void 0:d}}}}},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),u=a.get(c);if(u)return u;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var _=l(n);s=_&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(_.text,e.getLineStarts(_)),(function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0}))}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function l(r){return t.getSourceFileLike?t.getSourceFileLike(r):c(r)||function(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:void 0,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}(r)}},e.getDocumentPositionMapper=function(n,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var l=c[1];return r(n,e.base64decode(e.sys,l),i)}s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var _=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),d=0,p=u;d<p.length;d++){var f=p[d],g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(i)),m=o(g,_);if(e.isString(m))return r(n,m,g);if(void 0!==m)return m||void 0}}}(u||(u={})),function(e){var t=new e.Map;function r(t){return e.isPropertyAccessExpression(t)?r(t.expression):t}function n(t){switch(t.kind){case 264:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&266===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 263:return t.name;default:return}}function i(e,t){var r=t.getSignatureFromDeclaration(e),n=r?t.getReturnTypeOfSignature(r):void 0;return!!n&&!!t.getPromisedTypeOfPromise(n)}function a(t,r){return e.isReturnStatement(t)&&!!t.expression&&o(t.expression,r)}function o(t,r){if(!s(t)||!t.arguments.every((function(e){return c(e,r)})))return!1;for(var n=t.expression;s(n)||e.isPropertyAccessExpression(n);){if(e.isCallExpression(n)&&!n.arguments.every((function(e){return c(e,r)})))return!1;n=n.expression}return!0}function s(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")&&function(t){return!(t.arguments.length>2)&&(t.arguments.length<2||e.some(t.arguments,(function(t){return 104===t.kind||e.isIdentifier(t)&&"undefined"===t.text})))}(t)||e.hasPropertyAccessExpressionWithName(t,"catch"))}function c(r,n){switch(r.kind){case 254:case 211:if(1&e.getFunctionFlags(r))return!1;case 212:t.set(l(r),!0);case 104:return!0;case 79:case 204:var i=n.getSymbolAtLocation(r);return!!i&&(n.isUndefinedSymbol(i)||e.some(e.skipAlias(i,n).declarations,(function(t){return e.isFunctionLike(t)||e.hasInitializer(t)&&!!t.initializer&&e.isFunctionLike(t.initializer)})));default:return!1}}function l(e){return e.pos.toString()+":"+e.end.toString()}function u(e){switch(e.kind){case 254:case 167:case 211:case 212:return!0;default:return!1}}e.computeSuggestionDiagnostics=function(o,s,c){s.getSemanticDiagnostics(o,c);var _,d=[],p=s.getTypeChecker();o.commonJsModuleIndicator&&(e.programContainsEs6Modules(s)||e.compilerOptionsIndicateEs6Modules(s.getCompilerOptions()))&&function(t){return t.statements.some((function(t){switch(t.kind){case 235:return t.declarationList.declarations.some((function(t){return!!t.initializer&&e.isRequireCall(r(t.initializer),!0)}));case 236:var n=t.expression;if(!e.isBinaryExpression(n))return e.isRequireCall(n,!0);var i=e.getAssignmentDeclarationKind(n);return 1===i||2===i;default:return!1}}))}(o)&&d.push(e.createDiagnosticForNode((_=o.commonJsModuleIndicator,e.isBinaryExpression(_)?_.left:_),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var f=e.isSourceFileJS(o);if(t.clear(),function r(n){if(f)(function(t,r){var n,i,a,o;if(211===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(n=t.symbol.members)||void 0===n?void 0:n.size))return!0;var s=r.getSymbolOfExpando(t,!1);return!(!s||!(null===(i=s.exports)||void 0===i?void 0:i.size)&&!(null===(a=s.members)||void 0===a?void 0:a.size))}return 254===t.kind&&!!(null===(o=t.symbol.members)||void 0===o?void 0:o.size)})(n,p)&&d.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(n)&&n.parent===o&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var s=n.declarationList.declarations[0].initializer;s&&e.isRequireCall(s,!0)&&d.push(e.createDiagnosticForNode(s,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(n)&&d.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}u(n)&&function(r,n,o){(function(t,r){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&function(t,r){return!!e.forEachReturnStatement(t,(function(e){return a(e,r)}))}(t.body,r)&&i(t,r)})(r,n)&&!t.has(l(r))&&o.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))}(n,p,d),n.forEachChild(r)}(o),e.getAllowSyntheticDefaultImports(s.getCompilerOptions()))for(var g=0,m=o.imports;g<m.length;g++){var y=m[g],h=n(e.importFromModuleSpecifier(y));if(h){var v=e.getResolvedModule(o,y.text),b=v&&s.getSourceFile(v.resolvedFileName);b&&b.externalModuleIndicator&&e.isExportAssignment(b.externalModuleIndicator)&&b.externalModuleIndicator.isExportEquals&&d.push(e.createDiagnosticForNode(h,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(d,o.bindSuggestionDiagnostics),e.addRange(d,s.getSuggestionDiagnostics(o,c)),d.sort((function(e,t){return e.start-t.start}))},e.returnsPromise=i,e.isReturnStatementWithFixablePromiseHandler=a,e.isFixablePromiseHandler=o,e.canBeConvertedToAsync=u}(u||(u={})),function(e){!function(t){var r=70246400;function n(t,r,n){var a=i(t,r,n);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(r);return 32&o?e.getDeclarationOfKind(r,224)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function i(t,r,n){var i=t.getRootSymbols(r);if(1===i.length&&8192&e.first(i).flags&&0!==t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(108===n.kind&&e.isExpression(n))return"parameter";var a=e.getCombinedLocalAndExportSymbolFlags(r);if(3&a)return e.isFirstDeclarationOfSymbolParameter(r)?"parameter":r.valueDeclaration&&e.isVarConst(r.valueDeclaration)?"const":e.forEach(r.declarations,e.isLet)?"let":o(r)?"local var":"var";if(16&a)return o(r)?"local function":"function";if(32768&a)return"getter";if(65536&a)return"setter";if(8192&a)return"method";if(16384&a)return"constructor";if(4&a){if(33554432&a&&6&r.checkFlags)return e.forEach(t.getRootSymbols(r),(function(e){if(98311&e.getFlags())return"property"}))||(t.getTypeOfSymbolAtLocation(r,n).getCallSignatures().length?"method":"property");switch(n.parent&&n.parent.kind){case 278:case 276:case 277:return 79===n.kind?"property":"JSX attribute";case 283:return"JSX attribute";default:return"property"}}return""}function a(t){if(t.declarations&&t.declarations.length){var r=t.declarations,n=r[0],i=r.slice(1),a=e.length(i)&&e.isDeprecatedDeclaration(n)&&e.some(i,(function(t){return!e.isDeprecatedDeclaration(t)}))?8192:0,o=e.getNodeModifiers(n,a);if(o)return o.split(",")}return[]}function o(t){return!t.parent&&e.forEach(t.declarations,(function(t){if(211===t.kind)return!0;if(252!==t.kind&&254!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(300===r.kind||260===r.kind)return!1;return!0}))}t.getSymbolKind=n,t.getSymbolModifiers=function(t,r){if(!r)return"";var n=new e.Set(a(r));if(2097152&r.flags){var i=t.getAliasedSymbol(r);i!==r&&e.forEach(a(i),(function(e){n.add(e)}))}return 16777216&r.flags&&n.add("optional"),n.size>0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,l,u,_){var d;void 0===u&&(u=e.getMeaningFromLocation(l));var p,f,g,m,y=[],h=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(o),x=1&u?i(a,o,l):"",D=!1,S=108===l.kind&&e.isInExpressionContext(l),E=!1;if(108===l.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==x||32&b||2097152&b){"getter"!==x&&"setter"!==x||(x="property");var T=void 0;if(p=S?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&204===l.parent.kind){var C=l.parent.name;(C===l||C&&0===C.getFullWidth())&&(l=l.parent)}var k=void 0;if(e.isCallOrNewExpression(l)?k=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(k=l.parent),k){T=a.getResolvedSignature(k);var A=207===k.kind||e.isCallExpression(k)&&106===k.expression.kind,N=A?p.getConstructSignatures():p.getCallSignatures();if(!T||e.contains(N,T.target)||e.contains(N,T)||(T=N.length?N[0]:void 0),T){switch(A&&32&b?(x="constructor",$(p.symbol,x)):2097152&b?(Z(x="alias"),y.push(e.spacePart()),A&&(4&T.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),Q(o)):$(o,x),x){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(58)),y.push(e.spacePart()),16&e.getObjectFlags(p)||!p.symbol||(e.addRange(y,e.symbolToDisplayParts(a,p.symbol,c,void 0,5)),y.push(e.lineBreakPart())),A&&(4&T.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),ee(T,N,262144);break;default:ee(T,N)}D=!0,E=N.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||133===l.kind&&169===l.parent.kind){var F=l.parent,w=o.declarations&&e.find(o.declarations,(function(e){return e===(133===l.kind?F.parent:F)}));w&&(N=169===F.kind?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures(),T=a.isImplementationOfOverload(F)?N[0]:a.getSignatureFromDeclaration(F),169===F.kind?(x="constructor",$(p.symbol,x)):$(172!==F.kind||2048&p.symbol.flags||4096&p.symbol.flags?o:p.symbol,x),T&&ee(T,N),D=!0,E=N.length>1)}}if(32&b&&!D&&!S&&(Y(),e.getDeclarationOfKind(o,224)?Z("local class"):y.push(e.keywordPart(84)),y.push(e.spacePart()),Q(o),te(o,s)),64&b&&2&u&&(H(),y.push(e.keywordPart(118)),y.push(e.spacePart()),Q(o),te(o,s)),524288&b&&2&u&&(H(),y.push(e.keywordPart(150)),y.push(e.spacePart()),Q(o),te(o,s),y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(o),c,8388608))),384&b&&(H(),e.some(o.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(y.push(e.keywordPart(85)),y.push(e.spacePart())),y.push(e.keywordPart(92)),y.push(e.spacePart()),Q(o)),1536&b&&!S){H();var P=(G=e.getDeclarationOfKind(o,259))&&G.name&&79===G.name.kind;y.push(e.keywordPart(P?141:140)),y.push(e.spacePart()),Q(o)}if(262144&b&&2&u)if(H(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),Q(o),o.parent)X(),Q(o.parent,c),te(o.parent,c);else{var I=e.getDeclarationOfKind(o,161);if(void 0===I)return e.Debug.fail();(G=I.parent)&&(e.isFunctionLikeKind(G.kind)?(X(),T=a.getSignatureFromDeclaration(G),173===G.kind?(y.push(e.keywordPart(103)),y.push(e.spacePart())):172!==G.kind&&G.name&&Q(G.symbol),e.addRange(y,e.signatureToDisplayParts(a,T,s,32))):257===G.kind&&(X(),y.push(e.keywordPart(150)),y.push(e.spacePart()),Q(G.symbol),te(G.symbol,s)))}if(8&b&&(x="enum member",$(o,"enum member"),294===(null==(G=null===(d=o.declarations)||void 0===d?void 0:d[0])?void 0:G.kind))){var O=a.getConstantValue(G);void 0!==O&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(O),"number"==typeof O?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(H(),!D){var L=a.getAliasedSymbol(o);if(L!==o&&L.declarations&&L.declarations.length>0){var M=L.declarations[0],R=e.getNameOfDeclaration(M);if(R){var B=e.isModuleWithStringLiteralName(M)&&e.hasSyntacticModifier(M,2),j="default"!==o.name&&!B,J=t(a,L,e.getSourceFileOfNode(M),M,R,u,j?o:L);y.push.apply(y,J.displayParts),y.push(e.lineBreakPart()),g=J.documentation,m=J.tags}else g=L.getContextualDocumentationComment(M,a),m=L.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 262:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(141));break;case 269:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 273:y.push(e.keywordPart(93));break;default:y.push(e.keywordPart(100))}y.push(e.spacePart()),Q(o),e.forEach(o.declarations,(function(t){if(263===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.keywordPart(144)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),Q(n,c))}return!0}}))}if(!D)if(""!==x){if(p)if(S?(H(),y.push(e.keywordPart(108))):$(o,x),"property"===x||"JSX attribute"===x||3&b||"local var"===x||S){if(y.push(e.punctuationPart(58)),y.push(e.spacePart()),p.symbol&&262144&p.symbol.flags){var V=e.mapToDisplayParts((function(t){var n=a.typeParameterToDeclaration(p,c,r);q().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(y,V)}else e.addRange(y,e.typeToDisplayParts(a,p,c));if(o.target&&o.target.tupleLabelDeclaration){var U=o.target.tupleLabelDeclaration;e.Debug.assertNode(U.name,e.isIdentifier),y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.textPart(e.idText(U.name))),y.push(e.punctuationPart(21))}}else(16&b||8192&b||16384&b||131072&b||98304&b||"method"===x)&&(N=p.getNonNullableType().getCallSignatures()).length&&(ee(N[0],N),E=N.length>1)}else x=n(a,o,l);if(0!==h.length||E||(h=o.getContextualDocumentationComment(c,a)),0===h.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(function(e){return 300===e.kind})))for(var K=0,z=o.declarations;K<z.length;K++){var G;if((G=z[K]).parent&&219===G.parent.kind){var W=a.getSymbolAtLocation(G.parent.right);if(W&&(h=W.getDocumentationComment(a),v=W.getJsDocTags(a),h.length>0))break}}return 0!==v.length||E||(v=o.getJsDocTags(a)),0===h.length&&g&&(h=g),0===v.length&&m&&(v=m),{displayParts:y,documentation:h,symbolKind:x,tags:0===v.length?void 0:v};function q(){return f||(f=e.createPrinter({removeComments:!0})),f}function H(){y.length&&y.push(e.lineBreakPart()),Y()}function Y(){_&&(Z("alias"),y.push(e.spacePart()))}function X(){y.push(e.spacePart()),y.push(e.keywordPart(101)),y.push(e.spacePart())}function Q(t,r){_&&t===o&&(t=_);var n=e.symbolToDisplayParts(a,t,r||s,void 0,7);e.addRange(y,n),16777216&o.flags&&y.push(e.punctuationPart(57))}function $(t,r){H(),r&&(Z(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(y.push(e.spacePart()),Q(t)))}function Z(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(t));default:return y.push(e.punctuationPart(20)),y.push(e.textOrKeywordPart(t)),void y.push(e.punctuationPart(21))}}function ee(t,r,n){void 0===n&&(n=0),e.addRange(y,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.operatorPart(39)),y.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===r.length?"overload":"overloads")),y.push(e.punctuationPart(21))),h=t.getDocumentationComment(a),v=t.getJsDocTags(),r.length>1&&0===h.length&&0===v.length&&(h=r[0].getDocumentationComment(a),v=r[0].getJsDocTags())}function te(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);q().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(y,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(u||(u={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c<l.length;c++){var u=l[c];a[u.name]=u.transpileOptionValue}a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0;var _=r.fileName||(r.compilerOptions&&r.compilerOptions.jsx?"module.tsx":"module.ts"),d=e.createSourceFile(_,t,a.target);r.moduleName&&(d.moduleName=r.moduleName),r.renamedDependencies&&(d.renamedDependencies=new e.Map(e.getEntries(r.renamedDependencies)));var p,f,g=e.getNewLineCharacter(a),m={getSourceFile:function(t){return t===e.normalizePath(_)?d:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(f,void 0,"Unexpected multiple source map outputs, file:",t),f=r):(e.Debug.assertEqual(p,void 0,"Unexpected multiple outputs, file:",t),p=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return g},fileExists:function(e){return e===_},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},y=e.createProgram([_],a,m);return r.reportDiagnostics&&(e.addRange(i,y.getSyntacticDiagnostics(d)),e.addRange(i,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===p?e.Debug.fail("Output generation failed"):{outputText:p,diagnostics:i,sourceMapText:f}}var r;function n(t,n){r=r||e.filter(e.optionDeclarations,(function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,(function(e){return"number"!=typeof e}))})),t=e.cloneCompilerOptions(t);for(var i=function(r){if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,(function(e){return e===i}))||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a<o.length;a++)i(o[a]);return t}e.transpileModule=t,e.transpile=function(r,n,i,a,o){var s=t(r,{compilerOptions:n,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=n}(u||(u={})),function(e){!function(t){var r;(r=t.FormattingRequestKind||(t.FormattingRequestKind={}))[r.FormatDocument=0]="FormatDocument",r[r.FormatSelection=1]="FormatSelection",r[r.FormatOnEnter=2]="FormatOnEnter",r[r.FormatOnSemicolon=3]="FormatOnSemicolon",r[r.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",r[r.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var n=function(){function t(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}return t.prototype.updateContext=function(t,r,n,i,a){this.currentTokenSpan=e.Debug.checkDefined(t),this.currentTokenParent=e.Debug.checkDefined(r),this.nextTokenSpan=e.Debug.checkDefined(n),this.nextTokenParent=e.Debug.checkDefined(i),this.contextNode=e.Debug.checkDefined(a),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},t.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},t.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},t.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},t.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},t.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},t.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},t.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,18,this.sourceFile),n=e.findChildOfKind(t,19,this.sourceFile);return!(!r||!n)&&this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line},t}();t.FormattingContext=n}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){var t,r,n,i;t=e.formatting||(e.formatting={}),n=e.createScanner(99,!1,0),i=e.createScanner(99,!1,1),function(e){e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText",e[e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"}(r||(r={})),t.getFormattingScanner=function(r,a,o,s,c){var l=1===a?i:n;l.setText(r),l.setTextPos(o);var u,_,d,p,f,g=!0,m=c({advance:function(){f=void 0,l.getStartPos()!==o?g=!!_&&4===e.last(_).kind:l.scan(),u=void 0,_=void 0;for(var t=l.getStartPos();t<s;){var r=l.getToken();if(!e.isTrivia(r))break;l.scan();var n={pos:t,end:l.getStartPos(),kind:r};t=l.getStartPos(),u=e.append(u,n)}d=l.getStartPos()},readTokenInfo:function(r){e.Debug.assert(y());var n,i=function(e){switch(e.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}(r)?1:13===r.kind?2:function(e){return 16===e.kind||17===e.kind}(r)?3:function(t){if(t.parent)switch(t.parent.kind){case 283:case 278:case 279:case 277:return e.isKeyword(t.kind)||79===t.kind}return!1}(r)?4:(n=r,e.isJsxText(n)?5:function(t){return t.parent&&e.isJsxAttribute(t.parent)&&t.parent.initializer===t}(r)?6:0);if(f&&i===p)return v(f,r);l.getStartPos()!==d&&(e.Debug.assert(void 0!==f),l.setTextPos(d),l.scan());var a=function(t,r){var n,i=l.getToken();switch(p=0,r){case 1:if(31===i){p=1;var a=l.reScanGreaterToken();return e.Debug.assert(t.kind===a),a}break;case 2:if(43===(n=i)||68===n)return p=2,a=l.reScanSlashToken(),e.Debug.assert(t.kind===a),a;break;case 3:if(19===i)return p=3,l.reScanTemplateToken(!1);break;case 4:return p=4,l.scanJsxIdentifier();case 5:return p=5,l.reScanJsxToken(!1);case 6:return p=6,l.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(r)}return i}(r,i),o=t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);for(_&&(_=void 0);l.getStartPos()<s&&(a=l.scan(),e.isTrivia(a));){var c=t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);if(_||(_=[]),_.push(c),4===a){l.scan();break}}return v(f={leadingTrivia:u,trailingTrivia:_,token:o},r)},readEOFTokenRange:function(){return e.Debug.assert(h()),t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),1)},isOnToken:y,isOnEOF:h,getCurrentLeadingTrivia:function(){return u},lastTrailingTriviaWasNewLine:function(){return g},skipToEndOf:function(e){l.setTextPos(e.end),d=l.getStartPos(),p=void 0,f=void 0,g=!1,u=void 0,_=void 0},skipToStartOf:function(e){l.setTextPos(e.pos),d=l.getStartPos(),p=void 0,f=void 0,g=!1,u=void 0,_=void 0}});return f=void 0,l.setText(void 0),m;function y(){var t=f?f.token.kind:l.getToken();return(f?f.token.pos:l.getStartPos())<s&&1!==t&&!e.isTrivia(t)}function h(){return 1===(f?f.token.kind:l.getToken())}function v(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}}}(u||(u={})),function(e){var t,r,n;(t=e.formatting||(e.formatting={})).anyContext=e.emptyArray,(n=t.RuleAction||(t.RuleAction={}))[n.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",n[n.StopProcessingTokenActions=2]="StopProcessingTokenActions",n[n.InsertSpace=4]="InsertSpace",n[n.InsertNewLine=8]="InsertNewLine",n[n.DeleteSpace=16]="DeleteSpace",n[n.DeleteToken=32]="DeleteToken",n[n.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",n[n.StopAction=3]="StopAction",n[n.ModifySpaceAction=28]="ModifySpaceAction",n[n.ModifyTokenAction=96]="ModifyTokenAction",(r=t.RuleFlags||(t.RuleFlags={}))[r.None=0]="None",r[r.CanDeleteNewLines=1]="CanDeleteNewLines"}(u||(u={})),function(e){!function(t){function r(e,t,r,n,i,o){return void 0===o&&(o=0),{leftTokenRange:a(t),rightTokenRange:a(r),rule:{debugName:e,context:n,action:i,flags:o}}}function n(e){return{tokens:e,isSpecific:!0}}function a(t){return"number"==typeof t?n([t]):e.isArray(t)?n(t):t}function o(t,r,i){void 0===i&&(i=[]);for(var a=[],o=t;o<=r;o++)e.contains(i,o)||a.push(o);return n(a)}function s(e,t){return function(r){return r.options&&r.options[e]===t}}function c(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}}function l(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}}function u(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}}function _(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}}function d(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}}function p(e){return 240===e.contextNode.kind}function f(e){return!p(e)}function g(e){switch(e.contextNode.kind){case 219:return 27!==e.contextNode.operatorToken.kind;case 220:case 187:case 227:case 273:case 268:case 175:case 185:case 186:return!0;case 201:case 257:case 263:case 269:case 252:case 162:case 294:case 165:case 164:return 63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 241:case 161:return 101===e.currentTokenSpan.kind||101===e.nextTokenSpan.kind||63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 242:return 158===e.currentTokenSpan.kind||158===e.nextTokenSpan.kind}return!1}function m(e){return!g(e)}function y(e){return!h(e)}function h(t){var r=t.contextNode.kind;return 165===r||164===r||162===r||252===r||e.isFunctionLikeKind(r)}function v(e){return 220===e.contextNode.kind||187===e.contextNode.kind}function b(e){return e.TokensAreOnSameLine()||T(e)}function x(e){return 199===e.contextNode.kind||193===e.contextNode.kind||function(e){return E(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function D(e){return T(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function S(e){return E(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function E(e){return C(e.contextNode)}function T(e){return C(e.nextTokenParent)}function C(e){if(w(e))return!0;switch(e.kind){case 233:case 261:case 203:case 260:return!0}return!1}function k(e){switch(e.contextNode.kind){case 254:case 167:case 166:case 170:case 171:case 172:case 211:case 169:case 212:case 256:return!0}return!1}function A(e){return!k(e)}function N(e){return 254===e.contextNode.kind||211===e.contextNode.kind}function F(e){return w(e.contextNode)}function w(e){switch(e.kind){case 255:case 224:case 256:case 258:case 180:case 259:case 270:case 271:case 264:case 267:return!0}return!1}function P(e){switch(e.currentTokenParent.kind){case 255:case 259:case 258:case 290:case 260:case 247:return!0;case 233:var t=e.currentTokenParent.parent;if(!t||212!==t.kind&&211!==t.kind)return!0}return!1}function I(e){switch(e.contextNode.kind){case 237:case 247:case 240:case 241:case 242:case 239:case 250:case 238:case 246:case 290:return!0;default:return!1}}function O(e){return 203===e.contextNode.kind}function L(e){return function(e){return 206===e.contextNode.kind}(e)||function(e){return 207===e.contextNode.kind}(e)}function M(e){return 27!==e.currentTokenSpan.kind}function R(e){return 23!==e.nextTokenSpan.kind}function B(e){return 21!==e.nextTokenSpan.kind}function j(e){return 212===e.contextNode.kind}function J(e){return 198===e.contextNode.kind}function V(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function U(e){return 11!==e.contextNode.kind}function K(e){return 276!==e.contextNode.kind&&280!==e.contextNode.kind}function z(e){return 286===e.contextNode.kind||285===e.contextNode.kind}function G(e){return 283===e.nextTokenParent.kind}function W(e){return 283===e.contextNode.kind}function q(e){return 277===e.contextNode.kind}function H(e){return!k(e)&&!T(e)}function Y(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&X(e.currentTokenParent)&&!X(e.nextTokenParent)}function X(t){for(;e.isExpressionNode(t);)t=t.parent;return 163===t.kind}function Q(e){return 253===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function $(e){return 2!==e.formattingRequestKind}function Z(e){return 259===e.contextNode.kind}function ee(e){return 180===e.contextNode.kind}function te(e){return 173===e.contextNode.kind}function re(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 176:case 209:case 257:case 255:case 224:case 256:case 254:case 211:case 212:case 167:case 166:case 172:case 173:case 206:case 207:case 226:return!0;default:return!1}}function ne(e){return re(e.currentTokenSpan,e.currentTokenParent)||re(e.nextTokenSpan,e.nextTokenParent)}function ie(e){return 209===e.contextNode.kind}function ae(e){return 114===e.currentTokenSpan.kind&&215===e.currentTokenParent.kind}function oe(e){return 222===e.contextNode.kind&&void 0!==e.contextNode.expression}function se(e){return 228===e.contextNode.kind}function ce(e){return!function(e){switch(e.contextNode.kind){case 237:case 240:case 241:case 242:case 238:case 239:return!0;default:return!1}}(e)}function le(t){var r=t.nextTokenSpan.kind,n=t.nextTokenSpan.pos;if(e.isTrivia(r)){var i=t.nextTokenParent===t.currentTokenParent?e.findNextToken(t.currentTokenParent,e.findAncestor(t.currentTokenParent,(function(e){return!e.parent})),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!i)return!0;r=i.kind,n=i.getStart(t.sourceFile)}return t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line===t.sourceFile.getLineAndCharacterOfPosition(n).line?19===r||1===r:232!==r&&26!==r&&(256===t.contextNode.kind||257===t.contextNode.kind?!e.isPropertySignature(t.currentTokenParent)||!!t.currentTokenParent.type||20!==r:e.isPropertyDeclaration(t.currentTokenParent)?!t.currentTokenParent.initializer:240!==t.currentTokenParent.kind&&234!==t.currentTokenParent.kind&&232!==t.currentTokenParent.kind&&22!==r&&20!==r&&39!==r&&40!==r&&43!==r&&13!==r&&27!==r&&221!==r&&15!==r&&14!==r&&24!==r)}function ue(t){return e.positionIsASICandidate(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}t.getAllRules=function(){for(var a=[],E=0;E<=158;E++)1!==E&&a.push(E);function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:a.filter((function(t){return!e.some((function(e){return e===t}))})),isSpecific:!1}}var w={tokens:a,isSpecific:!1},X=n(i(i([],a,!0),[3],!1)),re=n(i(i([],a,!0),[1],!1)),_e=o(81,158),de=o(29,78),pe=[101,102,158,127,138],fe=i([79],e.typeKeywords,!0),ge=X,me=n([79,3,84,93,100]),ye=n([21,3,90,111,96,91]),he=[r("IgnoreBeforeComment",w,[2,3],t.anyContext,1),r("IgnoreAfterLineComment",2,w,t.anyContext,1),r("NotSpaceBeforeColon",w,58,[V,m,y],16),r("SpaceAfterColon",58,w,[V,m],4),r("NoSpaceBeforeQuestionMark",w,57,[V,m,y],16),r("SpaceAfterQuestionMarkInConditionalOperator",57,w,[V,v],4),r("NoSpaceAfterQuestionMark",57,w,[V],16),r("NoSpaceBeforeDot",w,[24,28],[V],16),r("NoSpaceAfterDot",[24,28],w,[V],16),r("NoSpaceBetweenImportParenInImportType",100,20,[V,J],16),r("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,79,20,22,18,108,103],[V,m],16),r("NoSpaceAfterUnaryPreincrementOperator",45,[79,20,108,103],[V],16),r("NoSpaceAfterUnaryPredecrementOperator",46,[79,20,108,103],[V],16),r("NoSpaceBeforeUnaryPostincrementOperator",[79,21,23,103],45,[V,ce],16),r("NoSpaceBeforeUnaryPostdecrementOperator",[79,21,23,103],46,[V,ce],16),r("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[V,g],4),r("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[V,g],4),r("SpaceAfterAddWhenFollowedByPreincrement",39,45,[V,g],4),r("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[V,g],4),r("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[V,g],4),r("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[V,g],4),r("NoSpaceAfterCloseBrace",19,[27,26],[V],16),r("NewLineBeforeCloseBraceInBlockContext",X,19,[S],8),r("SpaceAfterCloseBrace",19,C(21),[V,P],4),r("SpaceBetweenCloseBraceAndElse",19,91,[V],4),r("SpaceBetweenCloseBraceAndWhile",19,115,[V],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,O],16),r("SpaceAfterConditionalClosingParen",21,22,[I],4),r("NoSpaceBetweenFunctionKeywordAndStar",98,41,[N],16),r("SpaceAfterStarInGeneratorDeclaration",41,79,[N],4),r("SpaceAfterFunctionInFuncDecl",98,w,[k],4),r("NewLineAfterOpenBraceInBlockContext",18,w,[S],8),r("SpaceAfterGetSetInMember",[135,147],79,[k],4),r("NoSpaceBetweenYieldKeywordAndStar",125,41,[V,oe],16),r("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],w,[V,oe],4),r("NoSpaceBetweenReturnAndSemicolon",105,26,[V],16),r("SpaceAfterCertainKeywords",[113,109,103,89,105,112,131],w,[V],4),r("SpaceAfterLetConstInVariableDeclaration",[119,85],w,[V,Q],4),r("NoSpaceBeforeOpenParenInFuncCall",w,20,[V,L,M],16),r("SpaceBeforeBinaryKeywordOperator",w,pe,[V,g],4),r("SpaceAfterBinaryKeywordOperator",pe,w,[V,g],4),r("SpaceAfterVoidOperator",114,w,[V,ae],4),r("SpaceBetweenAsyncAndOpenParen",130,20,[j,V],4),r("SpaceBetweenAsyncAndFunctionKeyword",130,[98,79],[V],4),r("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[V],16),r("SpaceBeforeJsxAttribute",w,79,[G,V],4),r("SpaceBeforeSlashInJsxOpeningElement",w,43,[q,V],4),r("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[q,V],16),r("NoSpaceBeforeEqualInJsxAttribute",w,63,[W,V],16),r("NoSpaceAfterEqualInJsxAttribute",63,w,[W,V],16),r("NoSpaceAfterModuleImport",[140,144],20,[V],16),r("SpaceAfterCertainTypeScriptKeywords",[126,84,134,88,92,93,94,135,117,100,118,140,141,121,123,122,143,147,124,150,154,139,136],w,[V],4),r("SpaceBeforeCertainTypeScriptKeywords",w,[94,117,154],[V],4),r("SpaceAfterModuleName",10,18,[Z],4),r("SpaceBeforeArrow",w,38,[V],4),r("SpaceAfterArrow",38,w,[V],4),r("NoSpaceAfterEllipsis",25,79,[V],16),r("NoSpaceAfterOptionalParameters",57,[21,27],[V,m],16),r("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[V,ee],16),r("NoSpaceBeforeOpenAngularBracket",fe,29,[V,ne],16),r("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[V,ne],16),r("NoSpaceAfterOpenAngularBracket",29,w,[V,ne],16),r("NoSpaceBeforeCloseAngularBracket",w,31,[V,ne],16),r("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[V,ne,A],16),r("SpaceBeforeAt",[21,79],59,[V],4),r("NoSpaceAfterAt",59,w,[V],16),r("SpaceAfterDecorator",w,[126,79,93,88,84,124,123,121,122,135,147,22,41],[Y],4),r("NoSpaceBeforeNonNullAssertionOperator",w,53,[V,se],16),r("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[V,te],16),r("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[V],4)],ve=[r("SpaceAfterConstructor",133,20,[c("insertSpaceAfterConstructor"),V],4),r("NoSpaceAfterConstructor",133,20,[u("insertSpaceAfterConstructor"),V],16),r("SpaceAfterComma",27,w,[c("insertSpaceAfterCommaDelimiter"),V,K,R,B],4),r("NoSpaceAfterComma",27,w,[u("insertSpaceAfterCommaDelimiter"),V,K],16),r("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[c("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k],4),r("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[u("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k],16),r("SpaceAfterKeywordInControl",_e,20,[c("insertSpaceAfterKeywordsInControlFlowStatements"),I],4),r("NoSpaceAfterKeywordInControl",_e,20,[u("insertSpaceAfterKeywordsInControlFlowStatements"),I],16),r("SpaceAfterOpenParen",20,w,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("SpaceBeforeCloseParen",w,21,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("SpaceBetweenOpenParens",20,20,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("NoSpaceBetweenParens",20,21,[V],16),r("NoSpaceAfterOpenParen",20,w,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],16),r("NoSpaceBeforeCloseParen",w,21,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],16),r("SpaceAfterOpenBracket",22,w,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],4),r("SpaceBeforeCloseBracket",w,23,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],4),r("NoSpaceBetweenBrackets",22,23,[V],16),r("NoSpaceAfterOpenBracket",22,w,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],16),r("NoSpaceBeforeCloseBracket",w,23,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],16),r("SpaceAfterOpenBrace",18,w,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),r("SpaceBeforeCloseBrace",w,19,[d("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,O],16),r("NoSpaceAfterOpenBrace",18,w,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],16),r("NoSpaceBeforeCloseBrace",w,19,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],16),r("SpaceBetweenEmptyBraceBrackets",18,19,[c("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[l("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),V],16),r("SpaceAfterTemplateHeadAndMiddle",[15,16],w,[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),U],4,1),r("SpaceBeforeTemplateMiddleAndTail",w,[16,17],[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],4),r("NoSpaceAfterTemplateHeadAndMiddle",[15,16],w,[u("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),U],16,1),r("NoSpaceBeforeTemplateMiddleAndTail",w,[16,17],[u("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],16),r("SpaceAfterOpenBraceInJsxExpression",18,w,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,z],4),r("SpaceBeforeCloseBraceInJsxExpression",w,19,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,z],4),r("NoSpaceAfterOpenBraceInJsxExpression",18,w,[u("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,z],16),r("NoSpaceBeforeCloseBraceInJsxExpression",w,19,[u("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,z],16),r("SpaceAfterSemicolonInFor",26,w,[c("insertSpaceAfterSemicolonInForStatements"),V,p],4),r("NoSpaceAfterSemicolonInFor",26,w,[u("insertSpaceAfterSemicolonInForStatements"),V,p],16),r("SpaceBeforeBinaryOperator",w,de,[c("insertSpaceBeforeAndAfterBinaryOperators"),V,g],4),r("SpaceAfterBinaryOperator",de,w,[c("insertSpaceBeforeAndAfterBinaryOperators"),V,g],4),r("NoSpaceBeforeBinaryOperator",w,de,[u("insertSpaceBeforeAndAfterBinaryOperators"),V,g],16),r("NoSpaceAfterBinaryOperator",de,w,[u("insertSpaceBeforeAndAfterBinaryOperators"),V,g],16),r("SpaceBeforeOpenParenInFuncDecl",w,20,[c("insertSpaceBeforeFunctionParenthesis"),V,k],4),r("NoSpaceBeforeOpenParenInFuncDecl",w,20,[u("insertSpaceBeforeFunctionParenthesis"),V,k],16),r("NewLineBeforeOpenBraceInControl",ye,18,[c("placeOpenBraceOnNewLineForControlBlocks"),I,D],8,1),r("NewLineBeforeOpenBraceInFunction",ge,18,[c("placeOpenBraceOnNewLineForFunctions"),k,D],8,1),r("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",me,18,[c("placeOpenBraceOnNewLineForFunctions"),F,D],8,1),r("SpaceAfterTypeAssertion",31,w,[c("insertSpaceAfterTypeAssertion"),V,ie],4),r("NoSpaceAfterTypeAssertion",31,w,[u("insertSpaceAfterTypeAssertion"),V,ie],16),r("SpaceBeforeTypeAnnotation",w,[57,58],[c("insertSpaceBeforeTypeAnnotation"),V,h],4),r("NoSpaceBeforeTypeAnnotation",w,[57,58],[u("insertSpaceBeforeTypeAnnotation"),V,h],16),r("NoOptionalSemicolon",26,re,[s("semicolons",e.SemicolonPreference.Remove),le],32),r("OptionalSemicolon",w,re,[s("semicolons",e.SemicolonPreference.Insert),ue],64)],be=[r("NoSpaceBeforeSemicolon",w,26,[V],16),r("SpaceBeforeOpenBraceInControl",ye,18,[_("placeOpenBraceOnNewLineForControlBlocks"),I,$,b],4,1),r("SpaceBeforeOpenBraceInFunction",ge,18,[_("placeOpenBraceOnNewLineForFunctions"),k,T,$,b],4,1),r("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",me,18,[_("placeOpenBraceOnNewLineForFunctions"),F,$,b],4,1),r("NoSpaceBeforeComma",w,27,[V],16),r("NoSpaceBeforeOpenBracket",C(130,82),22,[V],16),r("NoSpaceAfterCloseBracket",23,w,[V,H],16),r("SpaceAfterSemicolon",26,w,[V],4),r("SpaceBetweenForAndAwaitKeyword",97,131,[V],4),r("SpaceBetweenStatements",[21,90,91,82],w,[V,K,f],4),r("SpaceAfterTryCatchFinally",[111,83,96],18,[V],4)];return i(i(i([],he,!0),ve,!0),be,!0)}}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){var r;function n(e){var t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function i(t,r){return e.Debug.assert(t<=158&&r<=158,"Must compute formatting context from tokens"),t*o+r}t.getFormatContext=function(a,c){return{options:a,getRules:(void 0===r&&(l=t.getAllRules(),u=function(e){for(var t=new Array(o*o),r=new Array(t.length),n=0,a=e;n<a.length;n++)for(var c=a[n],l=c.leftTokenRange.isSpecific&&c.rightTokenRange.isSpecific,u=0,_=c.leftTokenRange.tokens;u<_.length;u++)for(var d=_[u],p=0,f=c.rightTokenRange.tokens;p<f.length;p++){var g=i(d,f[p]),m=t[g];void 0===m&&(m=t[g]=[]),s(m,c.rule,l,r,g)}return t}(l),r=function(t){var r=u[i(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(r){for(var a=[],o=0,s=0,c=r;s<c.length;s++){var l=c[s],_=~n(o);l.action&_&&e.every(l.context,(function(e){return e(t)}))&&(a.push(l),o|=l.action)}if(a.length)return a}}),r),host:c};var l,u};var a,o=159;function s(r,n,i,o,s){var c,l,u,_=3&n.action?i?a.StopRulesSpecific:a.StopRulesAny:n.context!==t.anyContext?i?a.ContextRulesSpecific:a.ContextRulesAny:i?a.NoContextRulesSpecific:a.NoContextRulesAny,d=o[s]||0;r.splice(function(e,t){for(var r=0,n=0;n<=t;n+=5)r+=31&e,e>>=5;return r}(d,_),0,n),o[s]=(u=1+((c=d)>>(l=_)&31),e.Debug.assert((31&u)===u,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<<l)|u<<l)}!function(e){e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=5]="StopRulesAny",e[e.ContextRulesSpecific=10]="ContextRulesSpecific",e[e.ContextRulesAny=15]="ContextRulesAny",e[e.NoContextRulesSpecific=20]="NoContextRulesSpecific",e[e.NoContextRulesAny=25]="NoContextRulesAny"}(a||(a={}))}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!l(t.parent,t);)t=t.parent;return t}function l(t,r){switch(t.kind){case 255:case 256:return e.rangeContainsRange(t.members,r);case 259:var n=t.body;return!!n&&260===n.kind&&e.rangeContainsRange(n.statements,r);case 300:case 233:case 260:return e.rangeContainsRange(t.statements,r);case 290:return e.rangeContainsRange(t.block.statements,r)}return!1}function u(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,l,u){var _,d,f,g,m,y=s.options,h=s.getRules,v=s.host,b=new t.FormattingContext(u,c,y),x=-1,D=[];if(o.advance(),o.isOnToken()){var S=u.getLineAndCharacterOfPosition(n.getStart(u)).line,E=S;n.decorators&&(E=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,u)).line),function n(i,a,s,c,p,m){if(e.rangeOverlapsWithStartEnd(r,i.getStart(u),i.getEnd())){var h=k(i,s,p,m),v=a;for(e.forEachChild(i,(function(e){S(e,-1,i,h,s,c,!1)}),(function(r){!function(r,n,a,s){e.Debug.assert(e.isNodeArray(r));var c=function(e,t){switch(e.kind){case 169:case 254:case 211:case 167:case 166:case 212:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 206:case 207:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 176:if(e.typeArguments===t)return 29;break;case 180:return 18}return 0}(n,r),l=s,_=a;if(0!==c)for(;o.isOnToken()&&!((h=o.readTokenInfo(n)).token.end>r.pos);)if(h.token.kind===c){_=u.getLineAndCharacterOfPosition(h.token.pos).line,E(h,n,s,n);var d=void 0;if(-1!==x)d=x;else{var p=e.getLineStartPositionForPosition(h.token.pos,u);d=t.SmartIndenter.findFirstNonWhitespaceColumn(p,h.token.pos,u,y)}l=k(n,a,d,y.indentSize)}else E(h,n,s,n);for(var f=-1,g=0;g<r.length;g++)f=S(r[g],f,i,l,_,_,!0,0===g);var m=function(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}(c);if(0!==m&&o.isOnToken()){var h;27===(h=o.readTokenInfo(n)).token.kind&&e.isCallLikeExpression(n)&&_!==u.getLineAndCharacterOfPosition(h.token.pos).line&&(o.advance(),h=o.isOnToken()?o.readTokenInfo(n):void 0),h&&h.token.kind===m&&e.rangeContainsRange(n,h.token)&&E(h,n,l,n,!0)}}(r,i,s,h)}));o.isOnToken();){var b=o.readTokenInfo(i);if(b.token.end>i.end)break;E(b,i,h,i)}if(!i.parent&&o.isOnEOF()){var D=o.readEOFTokenRange();D.end<=i.end&&_&&w(D,u.getLineAndCharacterOfPosition(D.pos).line,i,_,f,d,a,h)}}function S(a,s,c,l,_,d,p,f){var m=a.getStart(u),h=u.getLineAndCharacterOfPosition(m).line,b=h;a.decorators&&(b=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,u)).line);var D=-1;if(p&&e.rangeContainsRange(r,c)&&(D=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,u),l=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,u,y);if(s!==i||r===l){var _=t.SmartIndenter.getBaseIndentation(y);return _>l?_:l}}return-1}(m,a.end,_,r,s),-1!==D&&(s=D)),!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();){if((S=o.readTokenInfo(i)).token.end>m){S.token.pos>m&&o.skipToStartOf(a);break}E(S,i,l,i)}if(!o.isOnToken())return s;if(e.isToken(a)){var S=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(S.token.end===a.end,"Token end is child end"),E(S,i,l,a),s}var T=163===a.kind?h:d,C=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(y,e)?y.indentSize:0;return o===r?{indentation:r===g?x:a.getIndentation(),delta:Math.min(y.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===g?{indentation:x,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,u)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,u)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,h,D,i,l,T);return n(a,v,h,b,C.indentation,C.delta),v=i,f&&202===c.kind&&-1===s&&(s=C.indentation),s}function E(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&N(t.leadingTrivia,n,v,i);var p=0,f=e.rangeContainsRange(r,t.token),m=u.getLineAndCharacterOfPosition(t.token.pos);if(f){var y=l(t.token),h=_;if(p=F(t.token,m,n,v,i),!y)if(0===p){var b=h&&u.getLineAndCharacterOfPosition(h.end).line;d=c&&m.line!==b}else d=1===p}if(t.trailingTrivia&&N(t.trailingTrivia,n,v,i),d){var D=f&&!l(t.token)?i.getIndentationForToken(m.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var E=i.getIndentationForComment(t.token.kind,D,a);S=A(t.leadingTrivia,E,S,(function(e){return P(e.pos,E,!1)}))}-1!==D&&S&&(P(t.token.pos,D,1===p),g=m.line,x=D)}o.advance(),v=n}}(n,n,S,E,i,a)}if(!o.isOnToken()){var T=t.SmartIndenter.nodeWillIndentChild(y,n,void 0,u,!1)?i+y.indentSize:i,C=o.getCurrentLeadingTrivia();C&&A(C,T,!1,(function(e){return F(e,u.getLineAndCharacterOfPosition(e.pos),n,n,void 0)}))}return!1!==y.trimTrailingWhitespace&&(m=_?_.end:r.pos,O(u.getLineAndCharacterOfPosition(m).line,u.getLineAndCharacterOfPosition(r.end).line+1,_)),D;function k(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(a.kind){case 278:case 279:case 277:case 226:return!1}break;case 22:case 23:if(193!==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 255:return 84;case 256:return 118;case 254:return 98;case 258:return 258;case 170:return 135;case 171:return 147;case 167:if(t.asteriskToken)return 41;case 165:case 162:var r=e.getNameOfDeclaration(t);if(r)return r.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,n){t.SmartIndenter.shouldIndentChildNode(y,n,r,u)&&(i+=e?y.indentSize:-y.indentSize,a=t.SmartIndenter.shouldIndentChildNode(y,r)?y.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(y,r,e,u,!0)?a:0}}function A(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o],l=e.rangeContainsRange(r,c);switch(c.kind){case 3:l&&I(c,n,!i),i=!1;break;case 2:i&&l&&a(c),i=!1;break;case 4:i=!0}}return i}function N(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];e.isComment(c.kind)&&e.rangeContainsRange(r,c)&&F(c,u.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function F(e,t,n,i,a){var o=0;return l(e)||(_?o=w(e,t.line,n,_,f,d,i,a):O(u.getLineAndCharacterOfPosition(r.pos).line,t.line)),_=e,d=n,f=t.line,o}function w(t,r,n,i,a,o,s,c){b.updateContext(i,o,t,n,s);var l=h(b),_=!1!==b.options.trimTrailingWhitespace,d=0;return l?e.forEachRight(l,(function(o){switch(d=function(t,r,n,i,a){var o,s=a!==n;switch(t.action){case 1:return 0;case 16:if(r.end!==i.pos)return M(r.end,i.pos-r.end),s?2:0;break;case 32:M(r.pos,r.end-r.pos);break;case 8:if(1!==t.flags&&n!==a)return 0;if(1!=a-n)return R(r.end,i.pos-r.end,e.getNewLineOrDefaultFromHost(v,y)),s?0:1;break;case 4:if(1!==t.flags&&n!==a)return 0;if(1!=i.pos-r.end||32!==u.text.charCodeAt(r.end))return R(r.end,i.pos-r.end," "),s?2:0;break;case 64:o=r.end,";"&&D.push(e.createTextChangeFromStartLength(o,0,";"))}return 0}(o,i,a,t,r),d){case 2:n.getStart(u)===t.pos&&c.recomputeIndentation(!1,s);break;case 1:n.getStart(u)===t.pos&&c.recomputeIndentation(!0,s);break;default:e.Debug.assert(0===d)}_=_&&!(16&o.action)&&1!==o.flags})):_=_&&1!==t.kind,r!==a&&_&&O(a,r,i),d}function P(t,r,n){var i=p(r,y);if(n)R(t,0,i);else{var a=u.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(a.line,u);(r!==function(e,t){for(var r=0,n=0;n<t;n++)9===u.text.charCodeAt(e+n)?r+=y.tabSize-r%y.tabSize:r++;return r}(o,a.character)||function(e,t){return e!==u.text.substr(t,e.length)}(i,o))&&R(o,a.character,i)}}function I(r,n,i,a){void 0===a&&(a=!0);var o=u.getLineAndCharacterOfPosition(r.pos).line,s=u.getLineAndCharacterOfPosition(r.end).line;if(o!==s){for(var c=[],l=r.pos,_=o;_<s;_++){var d=e.getEndLinePosition(_,u);c.push({pos:l,end:d}),l=e.getStartPositionOfLine(_+1,u)}if(a&&c.push({pos:l,end:r.end}),0!==c.length){var f=e.getStartPositionOfLine(o,u),g=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,c[0].pos,u,y),m=0;i&&(m=1,o++);for(var h=n-g.column,v=m;v<c.length;v++,o++){var b=e.getStartPositionOfLine(o,u),x=0===v?g:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(c[v].pos,c[v].end,u,y),D=x.column+h;if(D>0){var S=p(D,y);R(b,x.character,S)}else M(b,x.character)}}}else i||P(r.pos,n,!1)}function O(t,r,n){for(var i=t;i<r;i++){var a=e.getStartPositionOfLine(i,u),o=e.getEndLinePosition(i,u);if(!(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o)){var s=L(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),M(s,o+1-s))}}}function L(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function M(t,r){r&&D.push(e.createTextChangeFromStartLength(t,r,""))}function R(t,r,n){(r||n)&&D.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 l=Math.floor(t/r.tabSize),u=t-l*r.tabSize,_=void 0;return a||(a=[]),void 0===a[l]?a[l]=_=e.repeatString("\t",l):_=a[l],u?_+e.repeatString(" ",u):_}t.createTextRangeWithKind=function(t,r,n){var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(n)}}),i},function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return u(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return u(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return _({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){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&r<i.getEnd())){var o=(n=null===n?void 0:void 0===n?e.findPrecedingToken(r,t):n)&&e.getTrailingCommentRanges(t.text,n.end),s=e.getLeadingCommentRangesOfNode(i,t),c=e.concatenate(o,s);return c&&e.find(c,(function(n){return e.rangeContainsPositionExclusive(n,r)||r===n.end&&(2===n.kind||r===t.getFullWidth())}))}},t.getIndentationString=p}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){var t;(function(r){var n,i;function a(e){return e.baseIndentSize||0}function o(e,t,r,n,i,o,l){for(var f,g=e.parent;g;){var y=!0;if(r){var h=e.getStart(i);y=h<r.pos||h>r.end}var v=s(g,e,i),b=v.line===t.line||d(g,e,t.line,i);if(y){var x=null===(f=p(e,i))||void 0===f?void 0:f[0],S=m(e,i,l,!!x&&u(x,i).line>v.line);if(-1!==S)return S+n;if(-1!==(S=c(e,g,t,b,i,l)))return S+n}D(l,g,e,i,o)&&!b&&(n+=l.indentSize);var E=_(g,e,t.line,i);g=(e=g).parent,t=E?i.getLineAndCharacterOfPosition(e.getStart(i)):v}return n+a(l)}function s(e,t,r){var n=p(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)||300!==r.kind&&i?-1:h(n,a,o)}function l(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===u(a,i).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(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(237===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,91,i);return e.Debug.assert(void 0!==a),u(a,i).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 176:return a(n.typeArguments);case 203:return a(n.properties);case 202:case 267:case 271:case 199:case 200:return a(n.elements);case 180:return a(n.members);case 254:case 211:case 212:case 167:case 166:case 172:case 169:case 178:case 173:return a(n.typeParameters)||a(n.parameters);case 255:case 224:case 256:case 257:case 339:return a(n.typeParameters);case 207:case 206:return a(n.typeArguments)||a(n.arguments);case 253:return a(n.declarations)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i<n.length-1;i++)if(n[i].pos===t.pos&&n[i].end===t.end)return{pos:n[i-1].end,end:n[i+1].getStart(r)};return t}(n,a,i),t,r)?a:void 0}}function g(e,t,r){return e?h(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function m(e,t,r,n){if(e.parent&&253===e.parent.kind)return-1;var i=p(e,t);if(i){var a=i.indexOf(e);if(-1!==a){var o=y(i,a,t,r);if(-1!==o)return o}return g(i,t,r)+(n?r.indentSize:0)}return-1}function y(t,r,n,i){e.Debug.assert(r>=0&&r<t.length);for(var a=u(t[r],n),o=r-1;o>=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return h(a,n,i);a=u(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(e,t,r,n,i){var a=r?r.kind:0;switch(t.kind){case 236:case 255:case 224:case 256:case 258:case 257:case 202:case 233:case 260:case 203:case 180:case 193:case 182:case 261:case 288:case 287:case 210:case 204:case 206:case 207:case 235:case 269:case 245:case 220:case 200:case 199:case 278:case 281:case 277:case 286:case 166:case 172:case 173:case 162:case 177:case 178:case 189:case 208:case 216:case 271:case 267:case 273:case 268:case 165:return!0;case 252:case 291:case 219:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&n&&203===a)return S(n,r);if(219!==t.kind)return!0;break;case 238:case 239:case 241:case 242:case 240:case 237:case 254:case 211:case 167:case 169:case 170:case 171:return 233!==a;case 212:return n&&210===a?S(n,r):233!==a;case 270:return 271!==a;case 264:return 265!==a||!!r.namedBindings&&267!==r.namedBindings.kind;case 276:return 279!==a;case 280:return 282!==a;case 186:case 185:if(180===a||182===a)return!1}return i}function D(e,t,r,n,i){return void 0===i&&(i=!1),x(e,t,r,n,!1)&&!(i&&r&&function(e,t){switch(e){case 245:case 249:case 243:case 244:return 233!==t.kind;default:return!1}}(r.kind,t))}function S(t,r){var n=e.skipTrivia(t.text,r.pos);return t.getLineAndCharacterOfPosition(n).line===t.getLineAndCharacterOfPosition(r.end).line}!function(e){e[e.Unknown=-1]="Unknown"}(n||(n={})),r.getIndentation=function(r,n,i,s){if(void 0===s&&(s=!1),r>n.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),_=t.getRangeOfEnclosingComment(n,r,c||null);if(_&&3===_.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),l=c.column,u=c.character;return 0===l?l:42===t.text.charCodeAt(s+u)?l-1:l}(n,r,i,_);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(27===c.kind&&219!==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}var h=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return h&&!e.rangeContainsRange(h,c)?g(h,n,i)+i.indentSize:function(t,r,n,i,s,c){for(var _,d=n;d;){if(e.positionBelongsToNode(d,r,t)&&D(c,d,_,t,!0)){var p=u(d,t),f=l(n,d,i,t);return o(d,p,void 0,0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0,t,!0,c)}var g=m(d,t,c,!0);if(-1!==g)return g;_=d,d=d.parent}return a(c)}(n,r,c,d,s,i)},r.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,r.childStartsOnTheSameLineWithElseInIfStatement=d,r.childIsUnindentedBranchOfConditionalExpression=function(t,r,n,i){if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=u(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=function(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(function(e){return e.pos===r.pos}));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=p,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=D})((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))}(u||(u={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function o(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function s(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var c,l;function u(t,r){return e.skipTrivia(t,r,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(l=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var _,d={leadingTriviaOption:c.Exclude,trailingTriviaOption:l.Exclude};function p(e,t,r,n){return{pos:f(e,t,n),end:m(e,r,n)}}function f(t,r,n,i){var a,o;void 0===i&&(i=!1);var s=n.leadingTriviaOption;if(s===c.Exclude)return r.getStart(t);if(s===c.StartLine){var l=r.getStart(t),_=e.getLineStartPositionForPosition(l,t);return e.rangeContainsPosition(r,_)?_:l}if(s===c.JSDoc){var d=e.getJSDocCommentRanges(r,t.text);if(null==d?void 0:d.length)return e.getLineStartPositionForPosition(d[0].pos,t)}var p=r.getFullStart(),f=r.getStart(t);if(p===f)return f;var g=e.getLineStartPositionForPosition(p,t);if(e.getLineStartPositionForPosition(f,t)===g)return s===c.IncludeAll?p:f;if(i){var m=(null===(a=e.getLeadingCommentRanges(t.text,p))||void 0===a?void 0:a[0])||(null===(o=e.getTrailingCommentRanges(t.text,p))||void 0===o?void 0:o[0]);if(m)return e.skipTrivia(t.text,m.end,!0,!0)}var y=p>0?1:0,h=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,g)+y,t);return h=u(t.text,h),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,h),t)}function g(t,r,n){var i=r.end;if(n.trailingTriviaOption===l.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,r.end),s=0,c=a;s<c.length;s++){var u=c[s];if(2===u.kind||e.getLineOfLocalPosition(t,u.pos)>o)break;if(e.getLineOfLocalPosition(t,u.end)>o)return e.skipTrivia(t.text,u.end,!0,!0)}}}function m(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===l.Exclude)return a;if(o===l.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a));return(null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end)||a}var c=g(t,r,n);if(c)return c;var u=e.skipTrivia(t.text,a,!0);return u===a||o!==l.Include&&!e.isLineBreak(t.text.charCodeAt(u-1))?a:u}function y(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&203===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(_||(_={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var h,v,b=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n<i.length;n++){var a=i[n];this.changes.push({kind:_.Text,sourceFile:t,text:a.newText,range:e.createTextRangeFromSpan(a.span)})}},t.prototype.deleteRange=function(e,t){this.changes.push({kind:_.Remove,sourceFile:e,range:t})},t.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},t.prototype.deleteNode=function(e,t,r){void 0===r&&(r={leadingTriviaOption:c.IncludeAll}),this.deleteRange(e,p(e,t,t,r))},t.prototype.deleteNodes=function(e,t,r,n){void 0===r&&(r={leadingTriviaOption:c.IncludeAll});for(var i=0,a=t;i<a.length;i++){var o=a[i],s=f(e,o,r,n),l=m(e,o,r);this.deleteRange(e,{pos:s,end:l}),n=!!g(e,o,r)}},t.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(e,t,n),a=m(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(e,t,n),a=void 0===r?e.text.length:f(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:_.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=d),this.replaceRange(e,p(e,t,t,n),r,n)},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=d),this.replaceRange(e,p(e,t,r,i),n,i)},t.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:_.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},t.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=d),this.replaceRangeWithNodes(e,p(e,t,t,n),r,n)},t.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,p(e,t,t,d),r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=d),this.replaceRangeWithNodes(e,p(e,t,r,i),n,i)},t.prototype.nodeHasTrailingComment=function(e,t,r){return void 0===r&&(r=d),!!g(e,t,r)},t.prototype.nextCommaToken=function(t,r){var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},t.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},t.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},t.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},t.prototype.insertNodeAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertNodesAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertAtTopOfFile=function(t,r,n){var i=function(t){for(var r,n=0,i=t.statements;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))break;r=a}var o=0,s=t.text;if(r)return o=r.end,g(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,g());var l,u,_=e.getLeadingCommentRanges(s,o);if(!_)return o;for(var d=0,p=_;d<p.length;d++){var f=p[d];if(3===f.kind){if(e.isPinnedComment(s,f.pos)){l={range:f,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(s,f.pos,f.end)){l={range:f,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;if(t.getLineAndCharacterOfPosition(f.pos).line>=t.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(t.statements.length&&(void 0===u&&(u=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),u<t.getLineAndCharacterOfPosition(f.end).line+2))break;l={range:f,pinnedOrTripleSlash:!1}}return l&&(o=l.range.end,g()),o;function g(){if(o<s.length){var t=s.charCodeAt(o);e.isLineBreak(t)&&++o<s.length&&13===t&&10===s.charCodeAt(o)&&o++}}}(t),a={prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};e.isArray(r)?this.insertNodesAt(t,i,r,a):this.insertNodeAt(t,i,r,a)},t.prototype.insertFirstParameter=function(t,r,n){var i=e.firstOrUndefined(r);i?this.insertNodeBefore(t,i,n):this.insertNodeAt(t,r.pos,n)},t.prototype.insertNodeBefore=function(e,t,r,n,i){void 0===n&&(n=!1),void 0===i&&(i={}),this.insertNodeAt(e,f(e,t,i),r,this.getOptionsForInsertNodeBefore(t,r,n))},t.prototype.insertModifierAt=function(t,r,n,i){void 0===i&&(i={}),this.insertNodeAt(t,r,e.factory.createToken(n),i)},t.prototype.insertModifierBefore=function(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})},t.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=C(t,o),c=e.getTouchingToken(t,s?o:n),l=t.text.slice(a,o),u=(s?"":this.newLineCharacter)+"//"+i+this.newLineCharacter+l;this.insertText(t,c.getStart(t),u)},t.prototype.insertJsdocCommentBefore=function(t,r,n){var i=r.getStart(t);if(r.jsDoc)for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];this.deleteRange(t,{pos:e.getLineStartPositionForPosition(s.getStart(t),t),end:m(t,s,{})})}var c=e.getPrecedingNonSpaceCharacterPosition(t.text,i-1),l=t.text.slice(c,i);this.insertNodeAt(t,i,n,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+l})},t.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:_.Text,sourceFile:e,range:t,text:r})},t.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createRange(r),n)},t.prototype.tryInsertTypeAnnotation=function(t,r,n){var i,a;if(e.isFunctionLike(r)){if(!(a=e.findChildOfKind(r,21,t))){if(!e.isArrowFunction(r))return!1;a=e.first(r.parameters)}}else a=null!==(i=252===r.kind?r.exclamationToken:r.questionToken)&&void 0!==i?i:r.name;return this.insertNodeAt(t,a.end,n,{prefix:": "}),!0},t.prototype.tryInsertThisTypeAnnotation=function(t,r,n){var i=e.findChildOfKind(r,20,t).getStart(t)+1,a=r.parameters.length?", ":"";this.insertNodeAt(t,i,n,{prefix:"this: ",suffix:a})},t.prototype.insertTypeParameters=function(t,r,n){var i=(e.findChildOfKind(r,20,t)||e.first(r.parameters)).getStart(t);this.insertNodesAt(t,i,n,{prefix:"<",suffix:">",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var a=e.firstOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeBefore(t,a,n):this.replaceConstructorBody(t,r,i([n],r.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,n){var a=e.find(r.body.statements,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}));a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(i([],r.body.statements,!0),[n],!1))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var a=e.lastOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(i([],r.body.statements,!0),[n],!1))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=f(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,D(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=D(r);a<o.length;a++){var s=o[a];if(e.rangeStartPositionsAreOnSameLine(i,s,t))return;var c=s.getStart(t),l=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(c,t),c,t,this.formatContext.options);if(void 0===n)n=l;else if(l!==n)return;i=s}return n},t.prototype.computeIndentationForNewMember=function(t,r){var n,i=r.getStart(t);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(i,t),i,t,this.formatContext.options)+(null!==(n=this.formatContext.options.indentSize)&&void 0!==n?n:4)},t.prototype.getInsertNodeAtStartInsertOptions=function(t,r,n){var i=0===D(r).length,a=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t}),o=e.isObjectLiteralExpression(r)&&(!e.isJsonSourceFile(t)||!i);return{indentation:n,prefix:(e.isObjectLiteralExpression(r)&&e.isJsonSourceFile(t)&&i&&!a?",":"")+this.newLineCharacter,suffix:o?",":""}},t.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},t.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},t.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&160===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.factory.createToken(26)),m(t,r,{})},t.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return a(a({},n),{prefix:r.end===t.end&&e.isStatement(r)?n.prefix?"\n"+n.prefix:"\n":n.prefix})},t.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 255:case 259:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 252:case 10:case 79:return{prefix:", "};case 291:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 162:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},t.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),212===r.kind){var i=e.findChildOfKind(r,38,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.factory.createToken(98),e.factory.createIdentifier(n)],{joiner:" "}),k(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"("),this.replaceRange(t,i,e.factory.createToken(21))),233!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,211===r.kind?98:84,t).end;this.insertNodeAt(t,o,e.factory.createIdentifier(n),{prefix:" "})}},t.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},t.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),i){var a=e.indexOfNode(i,r);if(!(a<0)){var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&y(r,s)){var c=i[a+1],l=u(t.text,c.getFullStart()),_=""+e.tokenToString(s.kind)+t.text.substring(s.end,l);this.insertNodesAt(t,l,[n],{suffix:_})}}else{var d=r.getStart(t),p=e.getLineStartPositionForPosition(d,t),f=void 0,g=!1;if(1===i.length)f=27;else{var m=e.findPrecedingToken(r.pos,t);f=y(r,m)?m.kind:27,g=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==p}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)&&(g=!0),g){this.replaceRange(t,e.createRange(o),e.factory.createToken(f));for(var h=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(p,d,t,this.formatContext.options),v=e.skipTrivia(t.text,o,!0,!1);v!==o&&e.isLineBreak(t.text.charCodeAt(v-1));)v--;this.replaceRange(t,e.createRange(v),n,{indentation:h,prefix:this.newLineCharacter})}else this.replaceRange(t,e.createRange(o),n,{prefix:e.tokenToString(f)+" "})}}}else e.Debug.fail("node is not a list element")},t.prototype.parenthesizeExpression=function(t,r){this.replaceRange(t,e.rangeOfNode(r),e.factory.createParenthesizedExpression(r))},t.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach((function(r){var n=r.node,i=r.sourceFile,a=function(t,r){var n=e.findChildOfKind(t,18,r),i=e.findChildOfKind(t,19,r);return[null==n?void 0:n.end,null==i?void 0:i.end]}(n,i),o=a[0],s=a[1];if(void 0!==o&&void 0!==s){var c=0===D(n).length,l=e.positionsAreOnSameLine(o,s,i);c&&l&&o!==s-1&&t.deleteRange(i,e.createRange(o,s-1)),l&&t.insertText(i,s-1,t.newLineCharacter)}}))},t.prototype.finishDeleteDeclarations=function(){for(var t=this,r=new e.Set,n=function(t,n){i.deletedNodes.some((function(r){return r.sourceFile===t&&e.rangeContainsRangeExclusive(r.node,n)}))||(e.isArray(n)?i.deleteRange(t,e.rangeOfTypeParameters(t,n)):v.deleteDeclaration(i,r,t,n))},i=this,a=0,o=this.deletedNodes;a<o.length;a++){var s=o[a];n(s.sourceFile,s.node)}r.forEach((function(n){var i=n.getSourceFile(),a=e.formatting.SmartIndenter.getContainingList(n,i);if(n===e.last(a)){var o=e.findLastIndex(a,(function(e){return!r.has(e)}),a.length-2);-1!==o&&t.deleteRange(i,{pos:a[o].end,end:x(i,a[o+1])})}}))},t.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=h.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,o=i.fileName,s=i.statements;t.push(h.newFileChanges(a,o,s,this.newLineCharacter,this.formatContext))}return t},t.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},t}();function x(t,r){return e.skipTrivia(t.text,f(t,r,{leadingTriviaOption:c.IncludeAll}),!1,!0)}function D(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function S(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function E(t){var n=e.visitEachChild(t,E,e.nullTransformationContext,T,E),i=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(i,r(t),o(t)),i}function T(t,n,i,a,s){var c=e.visitNodes(t,n,i,a,s);if(!c)return c;var l=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,r(t),o(t)),l}function C(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function k(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(t,r,n),a=m(t,r,n);e.deleteRange(t,{pos:i,end:a})}function A(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:x(n,i),end:o===a.length-1?m(n,i,{}):x(n,a[o+1])})):k(t,n,i)}t.ChangeTracker=b,t.getNewFileText=function(e,t,r,n){return h.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,n,a,o){var s=n.map((function(e){return 4===e?"":i(e,t,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return S(s,e.formatting.formatDocument(c,o))+a}function i(t,r,i){var a=function(t){var r=0,i=e.createTextWriter(t);function a(t,n){if(n||!function(t){return e.skipTrivia(t,0)===t.length}(t)){r=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}return{onBeforeEmitNode:function(e){e&&n(e,r)},onAfterEmitNode:function(e){e&&s(e,r)},onBeforeEmitNodeArray:function(e){e&&n(e,r)},onAfterEmitNodeArray:function(e){e&&s(e,r)},onBeforeEmitToken:function(e){e&&n(e,r)},onAfterEmitToken:function(e){e&&s(e,r)},write:function(e){i.write(e),a(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),a(e,!1)},writeOperator:function(e){i.writeOperator(e),a(e,!1)},writePunctuation:function(e){i.writePunctuation(e),a(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),a(e,!1)},writeParameter:function(e){i.writeParameter(e),a(e,!1)},writeProperty:function(e){i.writeProperty(e),a(e,!1)},writeSpace:function(e){i.writeSpace(e),a(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),a(e,!1)},writeSymbol:function(e,t){i.writeSymbol(e,t),a(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),a(e,!1)},writeLiteral:function(e){i.writeLiteral(e),a(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),r=0}}}(i),o="\n"===i?1:0;return e.createPrinter({newLine:o,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},a).writeNode(4,t,r,a),{text:a.getText(),node:E(t)}}t.getTextChangesFromChanges=function(t,r,n,o){return e.mapDefined(e.group(t,(function(e){return e.sourceFile.path})),(function(t){for(var s=t[0].sourceFile,c=e.stableSort(t,(function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end})),l=function(t){e.Debug.assert(c[t].range.end<=c[t+1].range.pos,"Changes overlap",(function(){return JSON.stringify(c[t].range)+" and "+JSON.stringify(c[t+1].range)}))},u=0;u<c.length-1;u++)l(u);var d=e.mapDefined(c,(function(t){var c=e.createTextSpanFromRange(t.range),l=function(t,r,n,o,s){var c;if(t.kind===_.Remove)return"";if(t.kind===_.Text)return t.text;var l=t.options,u=void 0===l?{}:l,d=t.range.pos,p=function(t){return function(t,r,n,o,s,c,l){var u=o.indentation,_=o.prefix,d=o.delta,p=i(t,r,s),f=p.node,g=p.text;l&&l(f,g);var m=function(t,r){var n=t.options,i=!n.semicolons||n.semicolons===e.SemicolonPreference.Ignore,o=n.semicolons===e.SemicolonPreference.Remove||i&&!e.probablyUsesSemicolons(r);return a(a({},n),{semicolons:o?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}(c,r),y=void 0!==u?u:e.formatting.SmartIndenter.getIndentation(n,r,m,_===s||e.getLineStartPositionForPosition(n,r)===n);void 0===d&&(d=e.formatting.SmartIndenter.shouldIndentChildNode(m,t)&&m.indentSize||0);var h={text:g,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}};return S(g,e.formatting.formatNodeGivenIndentation(f,h,r.languageVariant,y,d,a(a({},c),{options:m})))}(t,r,d,u,n,o,s)},f=t.kind===_.ReplaceWithMultipleNodes?t.nodes.map((function(t){return e.removeSuffix(p(t),n)})).join((null===(c=t.options)||void 0===c?void 0:c.joiner)||n):p(t.node),g=u.preserveLeadingWhitespace||void 0!==u.indentation||e.getLineStartPositionForPosition(d,r)===d?f:f.replace(/^\s+/,"");return(u.prefix||"")+g+(!u.suffix||e.endsWith(g,u.suffix)?"":u.suffix)}(t,s,r,n,o);if(c.length!==l.length||!e.stringContainsAt(s.text,l,c.start))return e.createTextChange(c,l)}));return d.length>0?{fileName:s.fileName,textChanges:d}:void 0}))},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=i}(h||(h={})),t.applyChanges=S,t.isValidLocationToAddComment=C,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else k(t,r,e.getAncestor(n,264))}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 162:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):A(t,n,i,a);break;case 264:case 263:k(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 201:var s=a.parent;200===s.kind&&a!==e.last(s.elements)?k(t,i,a):A(t,n,i,a);break;case 252:!function(t,r,n,i){var a=i.parent;if(290!==a.kind)if(1===a.declarations.length){var o=a.parent;switch(o.kind){case 242:case 241:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 240:k(t,n,a);break;case 235:k(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}else A(t,r,n,i);else t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n))}(t,n,i,a);break;case 161:A(t,n,i,a);break;case 268:var u=a.parent;1===u.elements.length?r(t,i,u):A(t,n,i,a);break;case 266:r(t,i,a);break;case 26:k(t,i,a,{trailingTriviaOption:l.Exclude});break;case 98:k(t,i,a,{leadingTriviaOption:c.Exclude});break;case 255:case 254:k(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else k(t,r,n.name)}else k(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?A(t,n,i,a):k(t,i,a):k(t,i,a)}}}(v||(v={})),t.deleteNode=k}(e.textChanges||(e.textChanges={}))}(u||(u={})),function(e){!function(t){var r=e.createMultiMap(),n=new e.Map;function o(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)}function s(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function l(e,t){return{changes:e,commands:t}}function u(t,r,n){for(var i=0,a=_(t);i<a.length;i++){var o=a[i];e.contains(r,o.code)&&n(o)}}function _(t){var r=t.program,n=t.sourceFile,a=t.cancellationToken;return i(i(i([],r.getSemanticDiagnostics(n,a),!0),r.getSyntacticDiagnostics(n,a),!0),e.computeSuggestionDiagnostics(n,r,a),!0)}t.createCodeFixActionWithoutFixAll=function(e,t,r){return s(e,o(r),t,void 0,void 0)},t.createCodeFixAction=function(e,t,r,n,i,a){return s(e,o(r),t,n,o(i),a)},t.createCodeFixActionMaybeFixAll=function(e,t,r,n,i,a){return s(e,o(r),t,n,i&&o(i),a)},t.registerCodeFix=function(t){for(var i=0,a=t.errorCodes;i<a.length;i++){var o=a[i];r.add(String(o),t)}if(t.fixIds)for(var s=0,c=t.fixIds;s<c.length;s++){var l=c[s];e.Debug.assert(!n.has(l)),n.set(l,t)}},t.getSupportedErrorCodes=function(){return e.arrayFrom(r.keys())},t.getFixes=function(t){var n=_(t),i=r.get(String(t.errorCode));return e.flatMap(i,(function(r){return e.map(r.getCodeActions(t),function(t,r){for(var n=t.errorCodes,i=0,o=0,s=r;o<s.length;o++){var l=s[o];if(e.contains(n,l.code)&&i++,i>1)break}var u=i<2;return function(e){var t=e.fixId,r=e.fixAllDescription,n=c(e,["fixId","fixAllDescription"]);return u?n:a(a({},n),{fixId:t,fixAllDescription:r})}}(r,n))}))},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=l,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return l(e.textChanges.ChangeTracker.with(t,(function(e){return u(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},t.eachDiagnostic=u}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(r.values(),(function(e){var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((function(e){return t.refactorKindBeginsWith(e,n.kind)})))?void 0:e.getAvailableActions(n)})))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(u||(u={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.Debug.checkDefined(e.findAncestor(i,(function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)})),"Expected to find an assertion expression"),o=e.isAsExpression(a)?e.factory.createAsExpression(a.expression,e.factory.createKeywordTypeNode(153)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(153),a.expression);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.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(function(t){var r=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(u||(u={})),function(e){!function(t){var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a((function(t){return function(t,r,n,i){if(!i||!i.has(e.getNodeId(n))){null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}}(t,n.sourceFile,i,o)}));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)<r.start||n.getEnd()>e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))}))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,l=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(r,o),function(t,r){return function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,n)),u=a(r,l&&l.relatedInformation&&e.find(l.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(u)return[i(t,u,(function(r){return e.textChanges.ChangeTracker.with(t,r)}))]},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,(function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),l=a(o,c);if(l)return i(r,l,(function(e){return e(t),[]}),s)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingAwait",n=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=i([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,n],a,!0);function s(r,n,i,a,s,c){var l=r.sourceFile,d=r.program,p=r.cancellationToken,f=function(t,r,n,i,a){var s=function(t,r){if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var n=void 0,i=!0,a=0,o=[t.left,t.right];a<o.length;a++){var s=o[a],c=r.getTypeAtLocation(s);if(r.getPromisedTypeOfPromise(c)){if(!e.isIdentifier(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}(t,a);if(s){for(var c,l=s.isCompleteFix,_=function(t){var s=a.getSymbolAtLocation(t);if(!s)return"continue";var _=e.tryCast(s.valueDeclaration,e.isVariableDeclaration),d=_&&e.tryCast(_.name,e.isIdentifier),p=e.getAncestor(_,235);if(!_||!p||_.type||!_.initializer||p.getSourceFile()!==r||e.hasSyntacticModifier(p,1)||!d||!u(_.initializer))return l=!1,"continue";var f=i.getSemanticDiagnostics(r,n),g=e.FindAllReferences.Core.eachSymbolReferenceInFile(d,a,r,(function(n){return t!==n&&!function(t,r,n,i){var a=e.isPropertyAccessExpression(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)?t.parent:t,s=e.find(r,(function(e){return e.start===a.getStart(n)&&e.start+e.length===a.getEnd()}));return s&&e.contains(o,s.code)||1&i.getTypeAtLocation(a).flags}(n,f,r,a)}));if(g)return l=!1,"continue";(c||(c=[])).push({expression:_.initializer,declarationSymbol:s})},d=0,p=s.identifiers;d<p.length;d++)_(p[d]);return c&&{initializers:c,needsSecondPassForFixAll:!l}}}(n,l,p,d,a);if(f){var g=s((function(t){e.forEach(f.initializers,(function(e){var r=e.expression;return _(t,i,l,a,r,c)})),c&&f.needsSecondPassForFixAll&&_(t,i,l,a,n,c)}));return t.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",g,1===f.initializers.length?[e.Diagnostics.Add_await_to_initializer_for_0,f.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function c(n,i,a,o,s,c){var l=s((function(e){return _(e,a,n.sourceFile,o,i,c)}));return t.createCodeFixAction(r,l,e.Diagnostics.Add_await,r,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function l(t,r,n,i,a){var o=e.getTokenAtPosition(t,n.start),s=e.findAncestor(o,(function(r){return r.getStart(t)<n.start||r.getEnd()>e.textSpanEnd(n)?"quit":e.isExpression(r)&&e.textSpansEqual(n,e.createTextSpanFromNode(r,t))}));return s&&function(t,r,n,i,a){var o=a.getDiagnosticsProducingTypeChecker().getDiagnostics(t,i);return e.some(o,(function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(t,r,n,i,a)&&u(s)?s:void 0}function u(t){return 32768&t.kind||!!e.findAncestor(t,(function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(254===t.parent.kind||211===t.parent.kind||212===t.parent.kind||167===t.parent.kind)}))}function _(t,r,i,o,s,c){if(e.isBinaryExpression(s))for(var l=0,u=[s.left,s.right];l<u.length;l++){var _=u[l];if(!(c&&e.isIdentifier(_)&&(g=o.getSymbolAtLocation(_))&&c.has(e.getSymbolId(g)))){var p=o.getTypeAtLocation(_),f=o.getPromisedTypeOfPromise(p)?e.factory.createAwaitExpression(_):_;t.replaceNode(i,_,f)}}else if(r===n&&e.isPropertyAccessExpression(s.parent)){if(c&&e.isIdentifier(s.parent.expression)&&(g=o.getSymbolAtLocation(s.parent.expression))&&c.has(e.getSymbolId(g)))return;t.replaceNode(i,s.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s.parent.expression))),d(t,s.parent.expression,i)}else if(e.contains(a,r)&&e.isCallOrNewExpression(s.parent)){if(c&&e.isIdentifier(s)&&(g=o.getSymbolAtLocation(s))&&c.has(e.getSymbolId(g)))return;t.replaceNode(i,s,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s))),d(t,s,i)}else{var g;if(c&&e.isVariableDeclaration(s.parent)&&e.isIdentifier(s.parent.name)&&(g=o.getSymbolAtLocation(s.parent.name))&&!e.tryAddToSet(c,e.getSymbolId(g)))return;t.replaceNode(i,s,e.factory.createAwaitExpression(s))}}function d(t,r,n){var i=e.findPrecedingToken(r.pos,n);i&&e.positionIsASICandidate(i.end,i.parent,n)&&t.insertText(n,r.getStart(n),";")}t.registerCodeFix({fixIds:[r],errorCodes:o,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,i=l(r,n,t.span,t.cancellationToken,t.program);if(i){var a=t.program.getTypeChecker(),o=function(r){return e.textChanges.ChangeTracker.with(t,r)};return e.compact([s(t,i,n,a,o),c(t,i,n,a,o)])}},getAllCodeActions:function(r){var n=r.sourceFile,i=r.program,a=r.cancellationToken,u=r.program.getTypeChecker(),_=new e.Set;return t.codeFixAll(r,o,(function(e,t){var o=l(n,t.code,t,a,i);if(o){var d=function(t){return t(e),[]};return s(r,o,t.code,u,d,_)||c(r,o,t.code,u,d,_)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingConst",n=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function i(t,r,n,i,s){var c=e.getTokenAtPosition(r,n),l=e.findAncestor(c,(function(t){return e.isForInOrOfStatement(t.parent)?t.parent.initializer===t:!function(e){switch(e.kind){case 79:case 202:case 203:case 291:case 292:return!0;default:return!1}}(t)&&"quit"}));if(l)return a(t,l,r,s);var u=c.parent;if(e.isBinaryExpression(u)&&63===u.operatorToken.kind&&e.isExpressionStatement(u.parent))return a(t,c,r,s);if(e.isArrayLiteralExpression(u)){var _=i.getTypeChecker();if(!e.every(u.elements,(function(t){return r=t,n=_,!!(i=e.isIdentifier(r)?r:e.isAssignmentExpression(r,!0)&&e.isIdentifier(r.left)?r.left:void 0)&&!n.getSymbolAtLocation(i);var r,n,i})))return;return a(t,u,r,s)}var d=e.findAncestor(c,(function(t){return!!e.isExpressionStatement(t.parent)||!function(e){switch(e.kind){case 79:case 219:case 27:return!0;default:return!1}}(t)&&"quit"}));if(d){if(!o(d,i.getTypeChecker()))return;return a(t,d,r,s)}}function a(t,r,n,i){i&&!e.tryAddToSet(i,r)||t.insertModifierBefore(n,85,r)}function o(t,r){return!!e.isBinaryExpression(t)&&(27===t.operatorToken.kind?e.every([t.left,t.right],(function(e){return o(e,r)})):63===t.operatorToken.kind&&e.isIdentifier(t.left)&&!r.getSymbolAtLocation(t.left))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingDeclareProperty",n=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;165!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,134,o)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n);if(!e.isIdentifier(i))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(i.kind));var a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,e.factory.createTypeReferenceNode(i,void 0),a.initializer);t.replaceNode(r,i,s)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||252===t.kind||164===t.kind||165===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some((function(t){return!!e.getJSDocType(t)})))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.factory.createToken(20));for(var o=0,s=n.parameters;o<s.length;o++){var l=s[o];if(!l.type){var u=e.getJSDocType(l);u&&t.tryInsertTypeAnnotation(r,l,c(u))}}if(a&&t.insertNodeAfter(r,e.last(n.parameters),e.factory.createToken(21)),!n.type){var _=e.getJSDocReturnType(n);_&&t.tryInsertTypeAnnotation(r,n,c(_))}}else{var d=e.Debug.checkDefined(e.getJSDocType(n),"A JSDocType for this declaration should exist");e.Debug.assert(!n.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(r,n,c(d))}}function c(t){switch(t.kind){case 307:case 308:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 311:return function(t){return e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}(t);case 310:return c(t.type);case 309:return function(t){return e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("null",e.emptyArray)])}(t);case 313:return function(t){return e.factory.createArrayTypeNode(e.visitNode(t.type,c))}(t);case 312:return function(t){var r;return e.factory.createFunctionTypeNode(e.emptyArray,t.parameters.map(l),null!==(r=t.type)&&void 0!==r?r:e.factory.createKeywordTypeNode(129))}(t);case 176:return function(t){var r=t.typeName,n=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t))return function(t){var r=e.factory.createParameterDeclaration(void 0,void 0,void 0,145===t.typeArguments[0].kind?"n":"s",void 0,e.factory.createTypeReferenceNode(145===t.typeArguments[0].kind?"number":"string",[]),void 0),n=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[r],t.typeArguments[1])]);return e.setEmitFlags(n,1),n}(t);var i=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}r=e.factory.createIdentifier(i),n="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)])}return e.factory.createTypeReferenceNode(r,n)}(t);default:var r=e.visitEachChild(t,c,e.nullTransformationContext);return e.setEmitFlags(r,1),r}}function l(t){var r=t.parent.parameters.indexOf(t),n=313===t.type.kind&&r===t.parent.parameters.length-1,i=t.name||(n?"rest":"arg"+r),a=n?e.factory.createToken(25):t.dotDotDotToken;return e.factory.createParameterDeclaration(t.decorators,t.modifiers,a,i,t.questionToken,e.visitNode(t.type,c),t.initializer)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=i(n.sourceFile,n.span.start);if(a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return s(e,n.sourceFile,a)}));return[t.createCodeFixAction(r,o,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&s(e,t.file,r)}))}}),t.parameterShouldGetTypeFromJSDoc=a}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="convertFunctionToEs6Class",n=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(t,r,n,i,s,c){var l=i.getSymbolAtLocation(e.getTokenAtPosition(r,n));if(l&&l.valueDeclaration&&19&l.flags){var u=l.valueDeclaration;if(e.isFunctionDeclaration(u))t.replaceNode(r,u,function(t){var r=p(l);t.body&&r.unshift(e.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));var n=a(t,93);return e.factory.createClassDeclaration(void 0,n,t.name,void 0,void 0,r)}(u));else if(e.isVariableDeclaration(u)){var _=function(t){var r=t.initializer;if(r&&e.isFunctionExpression(r)&&e.isIdentifier(t.name)){var n=p(t.symbol);r.body&&n.unshift(e.factory.createConstructorDeclaration(void 0,void 0,r.parameters,r.body));var i=a(t.parent.parent,93);return e.factory.createClassDeclaration(void 0,i,t.name,void 0,void 0,n)}}(u);if(!_)return;var d=u.parent.parent;e.isVariableDeclarationList(u.parent)&&u.parent.declarations.length>1?(t.delete(r,u),t.insertNodeAfter(r,d,_)):t.replaceNode(r,d,_)}}function p(n){var i=[];return n.members&&n.members.forEach((function(e,n){if("constructor"===n&&e.valueDeclaration)t.delete(r,e.valueDeclaration.parent);else{var a=l(e,void 0);a&&i.push.apply(i,a)}})),n.exports&&n.exports.forEach((function(t){if("prototype"===t.name&&t.declarations){var r=t.declarations[0];1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right)&&(n=l(r.parent.right.symbol,void 0))&&i.push.apply(i,n)}else{var n;(n=l(t,[e.factory.createToken(124)]))&&i.push.apply(i,n)}})),i;function l(n,i){var l=[];if(!(8192&n.flags||4096&n.flags))return l;var u,_,d=n.valueDeclaration,p=d.parent,f=p.right;if(u=d,_=f,!(e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(_):e.every(u.properties,(function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))}))))return l;var g=p.parent&&236===p.parent.kind?p.parent:p;if(t.delete(r,g),!f)return l.push(e.factory.createPropertyDeclaration([],i,n.name,void 0,void 0,void 0)),l;if(e.isAccessExpression(d)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var m=e.getQuotePreference(r,s),y=function(t,r,n){if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;return e.isNumericLiteral(i)?i:e.isStringLiteralLike(i)?e.isIdentifierText(i.text,r.target)?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i:void 0}(d,c,m);return y?v(l,f,y):l}if(e.isObjectLiteralExpression(f))return e.flatMap(f.properties,(function(t){return e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)?l.concat(t):e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)?v(l,t.initializer,t.name):o(t)?l:[]}));if(e.isSourceFileJS(r))return l;if(!e.isPropertyAccessExpression(d))return l;var h=e.factory.createPropertyDeclaration(void 0,i,d.name,void 0,void 0,f);return e.copyLeadingComments(p.parent,h,r),l.push(h),l;function v(t,n,o){return e.isFunctionExpression(n)?function(t,n,o){var s=e.concatenate(i,a(n,130)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(p,c,r),t.concat(c)}(t,n,o):function(t,n,o){var s,c=n.body;s=233===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(n,130)),u=e.factory.createMethodDeclaration(void 0,l,void 0,o,void 0,void 0,n.parameters,void 0,s);return e.copyLeadingComments(p,u,r),t.concat(u)}(t,n,o)}}}}function a(t,r){return e.filter(t.modifiers,(function(e){return e.kind===r}))}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())}));return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)){var s=new e.Map,_=e.isInJSFile(a),p=function(t,r){if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){c(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,r,"catch")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):l(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n}(a,i),f=function(t,r,n){var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=y(r.getTypeAtLocation(o),r),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var _=o.text,d=a.get(_);if(d&&d.some((function(e){return e!==s}))){var p=u(o,a);i.set(l,p.identifier),n.set(l,p),a.add(_,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(l,D(f)),a.add(_,s)}}}else{var g=e.firstOrUndefined(c.parameters),m=(null==g?void 0:g.valueDeclaration)&&e.isParameter(g.valueDeclaration)&&e.tryCast(g.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),h=u(m,a);n.set(l,h),a.add(m.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(function(t){if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))}(a,i,s);if(e.returnsPromise(f,i)){var g=f.body&&e.isBlock(f.body)?function(t,r){var n=[];return e.forEachReturnStatement(t,(function(t){e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n}(f.body,i):e.emptyArray,m={checker:i,synthNamesMap:s,setOfExpressionsToReturn:p,isInJSFile:_};if(g.length){var h=a.modifiers?a.modifiers.end:a.decorators?e.skipTrivia(r.text,a.decorators.end):a.getStart(r),v=a.modifiers?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,h,130,v);for(var b=function(n){e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=d(a,m);t.replaceNodeWithNodes(r,n,o)}else e.isFunctionLike(a)||e.forEachChild(a,i)}))},x=0,S=g;x<S.length;x++)b(S[x])}}}}function c(t,r,n){if(!e.isCallExpression(t))return!1;var i=e.hasPropertyAccessExpressionWithName(t,n)&&r.getTypeAtLocation(t);return!(!i||!r.getPromisedTypeOfPromise(i))}function l(t,r){return!!e.isExpression(t)&&!!r.getPromisedTypeOfPromise(r.getTypeAtLocation(t))}function u(t,r){var n=(r.get(t.text)||e.emptyArray).length;return D(0===n?t:e.factory.createIdentifier(t.text+"_"+n))}function _(){return o=!1,e.emptyArray}function d(t,r,n){if(c(t,r.checker,"then"))return 0===t.arguments.length?_():function(t,r,n){var i=t.arguments,a=i[0],o=i[1],s=v(a,r),c=g(a,n,s,t,r);if(o){var l=v(o,r),u=e.factory.createBlock(d(t.expression,r,s).concat(c)),_=g(o,n,l,t,r),p=l?S(l)?l.identifier.text:l.bindingPattern:"e",f=e.factory.createVariableDeclaration(p),m=e.factory.createCatchClause(f,e.factory.createBlock(_));return[e.factory.createTryStatement(u,m,void 0)]}return d(t.expression,r,s).concat(c)}(t,r,n);if(c(t,r.checker,"catch"))return function(t,r,n){var i,a=e.singleOrUndefined(t.arguments),o=a?v(a,r):void 0;n&&!E(t,r)&&(S(n)?(i=n,r.synthNamesMap.forEach((function(t,i){if(t.identifier.text===n.identifier.text){var a=function(t){return D(e.factory.createUniqueName(t.identifier.text,16))}(n);r.synthNamesMap.set(i,a)}}))):i=D(e.factory.createUniqueName("result",16),n.types),i.hasBeenDeclared=!0);var s,c,l=e.factory.createBlock(d(t.expression,r,i)),u=a?g(a,i,o,t,r):e.emptyArray,_=o?S(o)?o.identifier.text:o.bindingPattern:"e",p=e.factory.createVariableDeclaration(_),f=e.factory.createCatchClause(p,e.factory.createBlock(u));if(i&&!E(t,r)){c=e.getSynthesizedDeepClone(i.identifier);var m=i.types,y=r.checker.getUnionType(m,2),h=r.isInJSFile?void 0:r.checker.typeToTypeNode(y,void 0,void 0),b=[e.factory.createVariableDeclaration(c,void 0,h)];s=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(b,1))}var x=e.factory.createTryStatement(l,f,void 0),T=n&&c&&1===n.kind&&e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(n.bindingPattern),void 0,void 0,c)],2));return e.compact([s,x,T])}(t,r,n);if(e.isPropertyAccessExpression(t))return d(t.expression,r,n);var i=r.checker.getTypeAtLocation(t);return i&&r.checker.getPromisedTypeOfPromise(i)?(e.Debug.assertNode(t.original.parent,e.isPropertyAccessExpression),function(t,r,n){return E(t,r)?[e.factory.createReturnStatement(e.getSynthesizedDeepClone(t))]:p(n,e.factory.createAwaitExpression(t),void 0)}(t,r,n)):_()}function p(t,r,n){return!t||b(t)?[e.factory.createExpressionStatement(r)]:S(t)&&t.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(t.identifier),r))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(x(t)),void 0,n,r)],2))]}function f(t,r){if(r&&t){var n=e.factory.createUniqueName("result",16);return i(i([],p(D(n),t,r),!0),[e.factory.createReturnStatement(n)],!1)}return[e.factory.createReturnStatement(t)]}function g(t,r,n,i,a){var o,s,c,u,d;switch(t.kind){case 104:break;case 204:case 79:if(!n)break;var g=e.factory.createCallExpression(e.getSynthesizedDeepClone(t),void 0,S(n)?[n.identifier]:[]);if(E(i,a))return f(g,null===(o=i.typeArguments)||void 0===o?void 0:o[0]);var v=a.checker.getTypeAtLocation(t),b=a.checker.getSignaturesOfType(v,0);if(!b.length)return _();var D=b[0].getReturnType(),T=p(r,e.factory.createAwaitExpression(g),null===(s=i.typeArguments)||void 0===s?void 0:s[0]);return r&&r.types.push(D),T;case 211:case 212:var C=t.body,k=null===(c=y(a.checker.getTypeAtLocation(t),a.checker))||void 0===c?void 0:c.getReturnType();if(e.isBlock(C)){for(var A=[],N=!1,F=0,w=C.statements;F<w.length;F++){var P=w[F];if(e.isReturnStatement(P))if(N=!0,e.isReturnStatementWithFixablePromiseHandler(P,a.checker))A=A.concat(h(a,[P],r));else{var I=k&&P.expression?m(a.checker,k,P.expression):P.expression;A.push.apply(A,f(I,null===(u=i.typeArguments)||void 0===u?void 0:u[0]))}else A.push(P)}return E(i,a)?A.map((function(t){return e.getSynthesizedDeepClone(t)})):function(t,r,n,i){for(var a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(e.isReturnStatement(c)){if(c.expression){var u=l(c.expression,n.checker)?e.factory.createAwaitExpression(c.expression):c.expression;void 0===r?a.push(e.factory.createExpressionStatement(u)):a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(x(r),void 0,void 0,u)],2)))}}else a.push(e.getSynthesizedDeepClone(c))}return i||void 0===r||a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(x(r),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),a}(A,r,a,N)}var O=h(a,e.isFixablePromiseHandler(C,a.checker)?[e.factory.createReturnStatement(C)]:e.emptyArray,r);if(O.length>0)return O;if(k){if(I=m(a.checker,k,C),E(i,a))return f(I,null===(d=i.typeArguments)||void 0===d?void 0:d[0]);var L=p(r,I,void 0);return r&&r.types.push(k),L}return _();default:return _()}return e.emptyArray}function m(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function y(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function h(t,r,n){for(var i=[],a=0,o=r;a<o.length;a++){var s=o[a];e.forEachChild(s,(function r(a){if(e.isCallExpression(a)){var o=d(a,t,n);if((i=i.concat(o)).length>0)return}else e.isFunctionLike(a)||e.forEachChild(a,r)}))}return i}function v(t,r){var n,i=[];if(e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){return e.isIdentifier(r)?a(r):function(t,r,n){return void 0===r&&(r=e.emptyArray),void 0===n&&(n=[]),{kind:1,bindingPattern:t,elements:r,types:n}}(r,e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]})))}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name)),n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||D(t,i)}}function b(t){return!t||(S(t)?!t.identifier.text:e.every(t.elements,b))}function x(e){return S(e)?e.identifier:e.bindingPattern}function D(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1}}function S(e){return 0===e.kind}function E(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes:a,getCodeActions:function(r){o=!0;var i=e.textChanges.ChangeTracker.with(r,(function(e){return s(e,r.sourceFile,r.span.start,r.program.getTypeChecker())}));return o?[t.createCodeFixAction(n,i,e.Diagnostics.Convert_to_async_function,n,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,a,(function(t,r){return s(t,r.file,r.start,e.program.getTypeChecker())}))}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(r||(r={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){function r(t,r,n,i){for(var a=0,o=t.imports;a<o.length;a++){var s=o[a],c=e.getResolvedModule(t,s.text);if(c&&c.resolvedFileName===r.fileName){var l=e.importFromModuleSpecifier(s);switch(l.kind){case 263:n.replaceNode(t,l,e.makeImport(l.name,void 0,s,i));break;case 206:e.isRequireCall(l,!1)&&n.replaceNode(t,l,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(l),"default"))}}}}function n(t,r){t.forEachChild((function n(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i.expression)&&e.isIdentifier(i.name)){var a=i.parent;r(i,e.isBinaryExpression(a)&&a.left===i&&63===a.operatorToken.kind)}i.forEachChild(n)}))}function i(t,r,n,i,l,u,_,p,f){switch(r.kind){case 235:return a(t,r,i,n,l,u,f),!1;case 236:var y=r.expression;switch(y.kind){case 206:return e.isRequireCall(y,!0)&&i.replaceNode(t,r,e.makeImport(void 0,void 0,y.arguments[0],f)),!1;case 219:return 63===y.operatorToken.kind&&function(t,r,n,i,a,l){var u=n.left,_=n.right;if(!e.isPropertyAccessExpression(u))return!1;if(e.isExportsOrModuleExportsOrAlias(t,u)){if(!e.isExportsOrModuleExportsOrAlias(t,_)){var p=e.isObjectLiteralExpression(_)?function(t,r){var n=e.mapAllOrFail(t.properties,(function(t){switch(t.kind){case 170:case 171:case 292:case 293:return;case 291:return e.isIdentifier(t.name)?function(t,r,n){var i=[e.factory.createToken(93)];switch(r.kind){case 211:var a=r.name;if(a&&a.text!==t)return o();case 212:return d(t,i,r,n);case 224:return function(t,r,n,i){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),c(n.members,i))}(t,i,r,n);default:return o()}function o(){return g(i,e.factory.createIdentifier(t),c(r,n))}}(t.name.text,t.initializer,r):void 0;case 167:return e.isIdentifier(t.name)?d(t.name.text,[e.factory.createToken(93)],t,r):void 0;default:e.Debug.assertNever(t,"Convert to ES6 got invalid prop kind "+t.kind)}}));return n&&[n,!1]}(_,l):e.isRequireCall(_,!0)?function(t,r){var n=t.text,i=r.getSymbolAtLocation(t),a=i?i.exports:e.emptyMap;return a.has("export=")?[[s(n)],!0]:a.has("default")?a.size>1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]}(_.arguments[0],r):void 0;return p?(i.replaceNodeWithNodes(t,n.parent,p[0]),p[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),_.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[g(void 0,o,r.right),m([e.factory.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,24,r),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(93),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,a);return!1}(t,n,y,i,_,p)}default:return!1}}function a(r,n,i,a,o,s,c){var u,_=n.declarationList,d=!1,m=e.map(_.declarations,(function(n){var i=n.name,u=n.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(r,u))return d=!0,y([]);if(e.isRequireCall(u,!0))return d=!0,function(r,n,i,a,o,s){switch(r.kind){case 199:var c=e.mapAllOrFail(r.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)}));if(c)return y([e.makeImport(void 0,c,n,s)]);case 200:var u=l(t.moduleSpecifierToValidIdentifier(n.text,o),a);return y([e.makeImport(e.factory.createIdentifier(u),void 0,n,s),g(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(u))]);case 79:return function(t,r,n,i,a){for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,u=!1,_=0,d=i.original.get(t.text);_<d.length;_++){var p=d[_];if(n.getSymbolAtLocation(p)===s&&p!==t){var f=p.parent;if(e.isPropertyAccessExpression(f)){var g=f.name.text;if("default"===g){u=!0;var m=p.getText();(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(m))}else{e.Debug.assert(f.expression===p,"Didn't expect expression === use");var h=c.get(g);void 0===h&&(h=l(g,i),c.set(g,h)),(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(h))}}else u=!0}}var v=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(function(t){var r=t[0],n=t[1];return e.factory.createImportSpecifier(r===n?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(n))})));return v||(u=!0),y([e.makeImport(u?e.getSynthesizedDeepClone(t):void 0,v,r,a)],o)}(r,n,i,a,s);default:return e.Debug.assertNever(r,"Convert to ES6 module got invalid name kind "+r.kind)}}(i,u.arguments[0],a,o,s,c);if(e.isPropertyAccessExpression(u)&&e.isRequireCall(u.expression,!0))return d=!0,function(t,r,n,i,a){switch(t.kind){case 199:case 200:var o=l(r,i);return y([p(o,r,n,a),g(void 0,t,e.factory.createIdentifier(o))]);case 79:return y([p(t.text,r,n,a)]);default:return e.Debug.assertNever(t,"Convert to ES6 module got invalid syntax form "+t.kind)}}(i,u.name.text,u.expression.arguments[0],o,c)}return y([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([n],_.flags))])}));if(d)return i.replaceNodeWithNodes(r,n,e.flatMap(m,(function(e){return e.newImports}))),e.forEach(m,(function(t){t.useSitesToUnqualify&&e.copyEntries(t.useSitesToUnqualify,null!=u?u:u=new e.Map)})),u}function o(e){return m(void 0,e)}function s(t){return m([e.factory.createExportSpecifier(void 0,"default")],t)}function c(t,r){return r&&e.some(e.arrayFrom(r.keys()),(function(r){return e.rangeContainsRange(t,r)}))?e.isArray(t)?e.getSynthesizedDeepClonesWithReplacements(t,!0,n):e.getSynthesizedDeepCloneWithReplacements(t,!0,n):t;function n(e){if(204===e.kind){var t=r.get(e);return r.delete(e),t}}}function l(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.add(e),e}function u(t){var r=e.createMultiMap();return _(t,(function(e){return r.add(e.text,e)})),r}function _(t,r){e.isIdentifier(t)&&function(e){var t=e.parent;switch(t.kind){case 204:return t.name!==e;case 201:case 268:return t.propertyName!==e;default:return!0}}(t)&&r(t),t.forEachChild((function(e){return _(e,r)}))}function d(t,r,n,i){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.factory.converters.convertToFunctionBlock(c(n.body,i)))}function p(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[f(r,t)],n,i)}function f(t,r){return e.factory.createImportSpecifier(void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function g(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function m(t,r){return e.factory.createExportDeclaration(void 0,void 0,!1,t&&e.factory.createNamedExports(t),void 0===r?void 0:e.factory.createStringLiteral(r))}function y(e,t){return{newImports:e,useSitesToUnqualify:t}}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(o){var s=o.sourceFile,c=o.program,_=o.preferences,d=e.textChanges.ChangeTracker.with(o,(function(t){var o=function(t,r,o,s,c){var _={original:u(t),additional:new e.Set},d=function(t,r,i){var a=new e.Map;return n(t,(function(t){var n=t.name,o=n.text,s=n.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||r.resolveName(o,t,111551,!0))&&a.set(o,l("_"+o,i))})),a}(t,r,_);!function(t,r,i){n(t,(function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}}))}(t,d,o);for(var p,f=!1,g=0,m=e.filter(t.statements,e.isVariableStatement);g<m.length;g++){var y=m[g],h=a(t,y,o,r,_,s,c);h&&e.copyEntries(h,null!=p?p:p=new e.Map)}for(var v=0,b=e.filter(t.statements,(function(t){return!e.isVariableStatement(t)}));v<b.length;v++){y=b[v];var x=i(t,y,r,o,_,s,d,p,c);f=f||x}return null==p||p.forEach((function(e,r){o.replaceNode(t,r,e)})),f}(s,c.getTypeChecker(),t,c.getCompilerOptions().target,e.getQuotePreference(s,_));if(o)for(var d=0,p=c.getSourceFiles();d<p.length;d++){var f=p[d];r(f,s,t,e.getQuotePreference(f,_))}}));return[t.createCodeFixActionWithoutFixAll("convertToEs6Module",d,e.Diagnostics.Convert_to_ES6_module)]}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="correctQualifiedNameToIndexedAccessType",n=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function i(t,r){var n=e.findAncestor(e.getTokenAtPosition(t,r),e.isQualifiedName);return e.Debug.assert(!!n,"Expected position to be owned by a qualified name."),e.isIdentifier(n.left)?n:void 0}function a(t,r,n){var i=n.right.text,a=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(n.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(i)));t.replaceNode(r,n,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=i(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,n.sourceFile,o)})),c=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={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],n="convertToTypeOnlyExport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isExportSpecifier)}function a(t,n,i){if(n){var a=n.parent,o=a.parent,s=function(t,n){var i=t.parent;if(1===i.elements.length)return i.elements;var a=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(i),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return e.filter(i.elements,(function(n){var i;return n===t||(null===(i=e.findDiagnosticForNode(n,a))||void 0===i?void 0:i.code)===r[0]}))}(n,i);if(s.length===a.elements.length)t.insertModifierBefore(i.sourceFile,150,a);else{var c=e.factory.updateExportDeclaration(o,o.decorators,o.modifiers,!1,e.factory.updateNamedExports(a,e.filter(a.elements,(function(t){return!e.contains(s,t)}))),o.moduleSpecifier),l=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(s),o.moduleSpecifier);t.replaceNode(i.sourceFile,o,c,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),t.insertNodeAfter(i.sourceFile,o,l)}}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_export,n,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[n],getAllCodeActions:function(n){var o=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r,n.sourceFile);s&&e.addToSeen(o,e.getNodeId(s.parent.parent))&&a(t,s,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],n="convertToTypeOnlyImport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isImportDeclaration)}function a(t,r,n){if(null==r?void 0:r.importClause){var i=r.importClause;t.insertText(n.sourceFile,r.getStart()+"import".length," type"),i.name&&i.namedBindings&&(t.deleteNodeRangeExcludingEnd(n.sourceFile,i.name,r.importClause.namedBindings),t.insertNodeBefore(n.sourceFile,r,e.factory.updateImportDeclaration(r,void 0,void 0,e.factory.createImportClause(!0,i.name,void 0),r.moduleSpecifier)))}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_import,n,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(r,e.sourceFile),e)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="convertLiteralTypeToMappedType",n=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=e.cast(n.parent.parent,e.isPropertySignature),a=n.getText(t);return{container:e.cast(i.parent,e.isTypeLiteralNode),typeNode:i.type,constraint:a,name:"K"===a?"P":"K"}}}function a(t,r,n){var i=n.container,a=n.typeNode,o=n.constraint,s=n.name;t.replaceNode(r,i,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(s,e.factory.createTypeReferenceNode(o)),void 0,void 0,a))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=c.name,u=c.constraint,_=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,_,[e.Diagnostics.Convert_0_to_1_in_0,u,l],r,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],n="fixClassIncorrectlyImplementsInterface";function i(t,r){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(t,r)),"There should be a containing class")}function a(t){return!(t.valueDeclaration&&8&e.getEffectiveModifierFlags(t.valueDeclaration))}function o(r,n,i,o,s,c){var l=r.program.getTypeChecker(),u=function(t,r){var n=e.getEffectiveBaseTypeNode(t);if(!n)return e.createSymbolTable();var i=r.getTypeAtLocation(n),o=r.getPropertiesOfType(i);return e.createSymbolTable(o.filter(a))}(o,l),_=l.getTypeAtLocation(n),d=l.getPropertiesOfType(_).filter(e.and(a,(function(e){return!u.has(e.escapedName)}))),p=l.getTypeAtLocation(o),f=e.find(o.members,(function(t){return e.isConstructorDeclaration(t)}));p.getNumberIndexType()||m(_,1),p.getStringIndexType()||m(_,0);var g=t.createImportAdder(i,r.program,c,r.host);function m(e,n){var a=l.getIndexInfoOfType(e,n);a&&y(i,o,l.indexInfoToIndexSignatureDeclaration(a,o,void 0,t.getNoopSymbolTrackerWithResolver(r)))}function y(e,t,r){f?s.insertNodeAfter(e,f,r):s.insertNodeAtClassStart(e,t,r)}t.createMissingMemberNodes(o,d,i,r,c,g,(function(e){return y(i,o,e)})),g.writeFixes(s)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,s=r.span,c=i(a,s.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(c),(function(i){var s=e.textChanges.ChangeTracker.with(r,(function(e){return o(r,i,a,c,e,r.preferences)}));return 0===s.length?void 0:t.createCodeFixAction(n,s,[e.Diagnostics.Implement_interface_0,i.getText(a)],n,e.Diagnostics.Implement_all_unimplemented_interfaces)}))},fixIds:[n],getAllCodeActions:function(n){var a=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r.file,r.start);if(e.addToSeen(a,e.getNodeId(s)))for(var c=0,l=e.getEffectiveImplementsTypeNodes(s);c<l.length;c++){var u=l[c];o(n,u,r.file,s,t,n.preferences)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){t.importFixName="import";var r,n="fixMissingImport",o=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function s(t,r,n,i,a){var o=r.getCompilerOptions(),s=[],u=[],d=new e.Map,f=new e.Map;return{addImportFromDiagnostic:function(e,t){var r=g(t,e.code,e.start,n);r&&r.fixes.length&&m(r)},addImportFromExportedSymbol:function(s,c){var u=e.Debug.checkDefined(s.parent),d=e.getNameForExportedSymbol(s,e.getEmitScriptTarget(o)),f=r.getTypeChecker(),g=f.getMergedSymbol(e.skipAlias(s,f)),y=_(t,g,u,d,a,r,i,n),h=!!c&&2===o.importsNotUsedAsValues,v=p(t,r),b=l(t,y,u,d,r,void 0,h,v,a,i);b&&m({fixes:[b],symbolName:d})},writeFixes:function(r){for(var n,a=e.getQuotePreference(t,i),o=0,l=s;o<l.length;o++){var _=l[o];x(r,t,_)}for(var p=0,g=u;p<g.length;p++)_=g[p],D(r,t,_,a);d.forEach((function(e){var n=e.importClauseOrBindingPattern,i=e.defaultImport,a=e.namedImports,o=e.canUseTypeOnlyImport;b(r,t,n,i,a,o)})),f.forEach((function(t,r){var i=t.useRequire,o=c(t,["useRequire"]),s=i?T:E;n=e.combine(n,s(r,a,o))})),n&&e.insertImports(r,t,n,!0)}};function m(t){var r=t.fixes,n=t.symbolName,i=e.first(r);switch(i.kind){case 0:s.push(i);break;case 1:u.push(i);break;case 2:var a=i.importClauseOrBindingPattern,o=i.importKind,c=i.canUseTypeOnlyImport,l=String(e.getNodeId(a));(_=d.get(l))||d.set(l,_={importClauseOrBindingPattern:a,defaultImport:void 0,namedImports:[],canUseTypeOnlyImport:c}),0===o?e.pushIfUnique(_.namedImports,n):(e.Debug.assert(void 0===_.defaultImport||_.defaultImport===n,"(Add to Existing) Default import should be missing or match symbolName"),_.defaultImport=n);break;case 3:var _,p=i.moduleSpecifier,g=(o=i.importKind,i.useRequire),m=i.typeOnly;switch((_=f.get(p))?_.typeOnly=_.typeOnly&&m:f.set(p,_={namedImports:[],namespaceLikeImport:void 0,typeOnly:m,useRequire:g}),o){case 1:e.Debug.assert(void 0===_.defaultImport||_.defaultImport===n,"(Add new) Default import should be missing or match symbolName"),_.defaultImport=n;break;case 0:e.pushIfUnique(_.namedImports||(_.namedImports=[]),n);break;case 3:case 2:e.Debug.assert(void 0===_.namespaceLikeImport||_.namespaceLikeImport.name===n,"Namespacelike import shoudl be missing or match symbolName"),_.namespaceLikeImport={importKind:o,name:n}}break;default:e.Debug.assertNever(i,"fix wasn't never - got kind "+i.kind)}}}function l(t,r,n,i,a,o,s,c,l,u){return e.Debug.assert(r.some((function(e){return e.moduleSymbol===n||e.symbol.parent===n})),"Some exportInfo should match the specified moduleSymbol"),m(d(r,i,o,s,c,a,t,l,u),t,a,l,u)}function u(t,r,n,i){var a,o,s=n.getCompilerOptions(),c=u(n.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(n,i){var a=e.getDefaultLikeExportInfo(r,n,s);if(a&&e.skipAlias(a.symbol,n)===t)return{symbol:a.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i};var o=n.tryGetMemberInModuleExportsAndProperties(t.name,r);return o&&e.skipAlias(o,n)===t?{symbol:o,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i}:void 0}}function _(t,r,n,i,a,o,s,c){var l=[],u=o.getCompilerOptions(),_=e.memoizeOne((function(t){return e.createModuleSpecifierResolutionHost(t?a.getPackageJsonAutoImportProvider():o,a)}));return e.forEachExternalModuleToImportFrom(o,a,c,(function(a,o,s,c){var _=s.getTypeChecker();if(!o||a===n||!e.startsWith(t.fileName,e.getDirectoryPath(o.fileName))){var p=e.getDefaultLikeExportInfo(a,_,u);p&&(p.name===i||A(a,u.target)===i)&&e.skipAlias(p.symbol,_)===r&&d(s,o,c)&&l.push({symbol:p.symbol,moduleSymbol:a,moduleFileName:null==o?void 0:o.fileName,exportKind:p.exportKind,targetFlags:e.skipAlias(p.symbol,_).flags,isFromPackageJson:c});for(var f=0,g=_.getExportsAndPropertiesOfModule(a);f<g.length;f++){var m=g[f];m.name===i&&e.skipAlias(m,_)===r&&d(s,o,c)&&l.push({symbol:m,moduleSymbol:a,moduleFileName:null==o?void 0:o.fileName,exportKind:0,targetFlags:e.skipAlias(m,_).flags,isFromPackageJson:c})}}})),l;function d(r,n,i){var o;return!n||e.isImportableFile(r,t,n,s,void 0,_(i),null===(o=a.getModuleSpecifierCache)||void 0===o?void 0:o.call(a))}}function d(t,r,n,a,o,s,c,l,u){var _=s.getTypeChecker(),d=e.flatMap(t,(function(t){return function(t,r,n,i){var a=t.moduleSymbol,o=t.exportKind;if(!(111551&t.targetFlags)&&e.isSourceFileJS(n))return e.emptyArray;var s=h(n,o,i);return e.mapDefined(n.imports,(function(t){var n=e.importFromModuleSpecifier(t);return e.isRequireVariableDeclaration(n.parent)?r.resolveExternalModuleName(t)===a?{declaration:n.parent,importKind:s}:void 0:264!==n.kind&&263!==n.kind||r.getSymbolAtLocation(t)!==a?void 0:{declaration:n,importKind:s}}))}(t,_,c,s.getCompilerOptions())})),p=void 0===n?void 0:function(t,r,n,i){return e.firstDefined(t,(function(t){var a=t.declaration,o=function(t){var r,n,i;switch(t.kind){case 252:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 263:return t.name.text;case 264:return null===(i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}}(a),s=e.tryGetModuleSpecifierFromDeclaration(a);if(o&&s){var c=function(t,r){var n;switch(t.kind){case 252:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 263:return r.getAliasedSymbol(t.symbol);case 264:var i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport);return i&&r.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}}(a,i);if(c&&c.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:o,position:n,moduleSpecifier:s}}}))}(d,r,n,_),g=function(t,r){return e.firstDefined(t,(function(t){var n=t.declaration,i=t.importKind;if(263!==n.kind){if(252===n.kind)return 0!==i&&1!==i||199!==n.name.kind?void 0:{kind:2,importClauseOrBindingPattern:n.name,importKind:i,moduleSpecifier:n.initializer.arguments[0].text,canUseTypeOnlyImport:!1};var a=n.importClause;if(a&&e.isStringLiteralLike(n.moduleSpecifier)){var o=a.name,s=a.namedBindings;if(!a.isTypeOnly||0===i&&s)return 1===i&&!o||0===i&&(!s||267===s.kind)?{kind:2,importClauseOrBindingPattern:a,importKind:i,moduleSpecifier:n.moduleSpecifier.text,canUseTypeOnlyImport:r}:void 0}}}))}(d,void 0!==n&&function(t,r){return e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(t,r))}(c,n)),m=g?[g]:function(t,r,n,i,a,o,s,c,l){var u=e.firstDefined(r,(function(t){return function(t,r,n){var i=t.declaration,a=t.importKind,o=e.tryGetModuleSpecifierFromDeclaration(i);return o?{kind:3,moduleSpecifier:o,importKind:a,typeOnly:r,useRequire:n}:void 0}(t,o,s)}));return u?[u]:f(n,i,a,o,s,t,c,l).fixes}(t,d,s,c,n,a,o,l,u);return i(i([],p?[p]:e.emptyArray,!0),m,!0)}function p(t,r){if(!e.isSourceFileJS(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;var n=r.getCompilerOptions();if(n.configFile)return e.getEmitModuleKind(n)<e.ModuleKind.ES2015;for(var i=0,a=r.getSourceFiles();i<a.length;i++){var o=a[i];if(o!==t&&e.isSourceFileJS(o)&&!r.isSourceFileFromExternalLibrary(o)){if(o.commonJsModuleIndicator&&!o.externalModuleIndicator)return!0;if(o.externalModuleIndicator&&!o.commonJsModuleIndicator)return!1}}return!0}function f(t,r,n,i,a,o,s,c,l){var u=e.isSourceFileJS(r),_=t.getCompilerOptions(),d=e.createModuleSpecifierResolutionHost(t,s),p=t.getTypeChecker(),f=l?function(t){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(t,r,d,c),computedWithoutCache:!1}}:function(t){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(t,p,_,r,d,c)},g=0,m=e.flatMap(o,(function(e){var t=f(e.moduleSymbol),o=t.computedWithoutCache,s=t.moduleSpecifiers;return g+=o?1:0,null==s?void 0:s.map((function(t){return 111551&e.targetFlags||!u||void 0===n?{kind:3,moduleSpecifier:t,importKind:h(r,e.exportKind,_),useRequire:a,typeOnly:i,exportInfo:e}:{kind:1,moduleSpecifier:t,position:n,exportInfo:e}}))}));return{computedWithoutCacheCount:g,fixes:m}}function g(t,r,n,i){var o,s,c,l,u,_,f=e.getTokenAtPosition(t.sourceFile,n),g=r===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(t,r){var n=t.sourceFile,i=t.program,a=t.host,o=t.preferences,s=i.getTypeChecker(),c=function(t,r){var n=e.isIdentifier(t)?r.getSymbolAtLocation(t):void 0;if(e.isUMDExportSymbol(n))return n;var i=t.parent;return e.isJsxOpeningLikeElement(i)&&i.tagName===t||e.isJsxOpeningFragment(i)?e.tryCast(r.resolveName(r.getJsxNamespace(i),e.isJsxOpeningLikeElement(i)?t:i,111551,!1),e.isUMDExportSymbol):void 0}(r,s);if(c){var l=s.getAliasedSymbol(c),u=c.name,_=[{symbol:c,moduleSymbol:l,moduleFileName:void 0,exportKind:3,targetFlags:l.flags,isFromPackageJson:!1}],f=p(n,i);return{fixes:d(_,u,e.isIdentifier(r)?r.getStart(n):void 0,!1,f,i,n,a,o),symbolName:u}}}(t,f):e.isIdentifier(f)?function(t,r,n){var i=t.sourceFile,a=t.program,o=t.cancellationToken,s=t.host,c=t.preferences,l=a.getTypeChecker(),u=a.getCompilerOptions(),_=function(t,r,n,i){var a=n.parent;if((e.isJsxOpeningLikeElement(a)||e.isJsxClosingElement(a))&&a.tagName===n&&4!==i.jsx&&5!==i.jsx){var o=r.getJsxNamespace(t);if(e.isIntrinsicJsxName(n.text)||!r.resolveName(o,a,111551,!0))return o}return n.text}(i,l,r,u);e.Debug.assert("default"!==_,"'default' isn't a legal identifier and couldn't occur here");var f=2===u.importsNotUsedAsValues&&e.isValidTypeOnlyAliasUseSite(r),g=p(i,a),m=function(t,r,n,i,a,o,s,c){var l,u=e.createMultiMap(),_=e.createPackageJsonImportFilter(i,c,s),d=null===(l=s.getModuleSpecifierCache)||void 0===l?void 0:l.call(s),p=e.memoizeOne((function(t){return e.createModuleSpecifierResolutionHost(t?s.getPackageJsonAutoImportProvider():a,s)}));function f(t,r,n,a,o,s){var l=p(s);if(r&&e.isImportableFile(o,i,r,c,_,l,d)||!r&&_.allowsImportingAmbientModule(t,l)){var f=o.getTypeChecker();u.add(e.getUniqueSymbolId(n,f).toString(),{symbol:n,moduleSymbol:t,moduleFileName:null==r?void 0:r.fileName,exportKind:a,targetFlags:e.skipAlias(n,f).flags,isFromPackageJson:s})}}return e.forEachExternalModuleToImportFrom(a,s,o,(function(i,a,o,s){var c=o.getTypeChecker();n.throwIfCancellationRequested();var l=o.getCompilerOptions(),u=e.getDefaultLikeExportInfo(i,c,l);u&&(u.name===t||A(i,l.target)===t)&&k(u.symbolForMeaning,r)&&f(i,a,u.symbol,u.exportKind,o,s);var _=c.tryGetMemberInModuleExportsAndProperties(t,i);_&&k(_,r)&&f(i,a,_,0,o,s)})),u}(_,e.getMeaningFromLocation(r),o,i,a,n,s,c),y=e.arrayFrom(e.flatMapIterator(m.entries(),(function(e){return e[0],d(e[1],_,r.getStart(i),f,g,a,i,s,c)})));return{fixes:y,symbolName:_}}(t,f,i):void 0;return g&&a(a({},g),{fixes:(o=g.fixes,s=t.sourceFile,c=t.program,l=t.host,u=t.preferences,_=e.createPackageJsonImportFilter(s,u,l).allowsImportingSpecifier,e.sort(o,(function(t,r){return e.compareValues(t.kind,r.kind)||y(t,r,s,c,_)})))})}function m(t,r,n,i,a){if(e.some(t)){if(0===t[0].kind||2===t[0].kind)return t[0];var o=e.createPackageJsonImportFilter(r,a,i).allowsImportingSpecifier;return t.reduce((function(e,t){return-1===y(t,e,r,n,o)?t:e}))}}function y(t,r,n,i,a){return 0!==t.kind&&0!==r.kind?e.compareBooleans(a(t.moduleSpecifier),a(r.moduleSpecifier))||function(t,r,n,i){return e.startsWith(t,"node:")&&!e.startsWith(r,"node:")?e.shouldUseUriStyleNodeCoreModules(n,i)?-1:1:e.startsWith(r,"node:")&&!e.startsWith(t,"node:")?e.shouldUseUriStyleNodeCoreModules(n,i)?1:-1:0}(t.moduleSpecifier,r.moduleSpecifier,n,i)||e.compareNumberOfDirectorySeparators(t.moduleSpecifier,r.moduleSpecifier):0}function h(t,r,n,i){switch(r){case 0:return 0;case 1:return 1;case 2:return function(t,r,n){var i=e.getAllowSyntheticDefaultImports(r),a=e.isInJSFile(t);if(!a&&e.getEmitModuleKind(r)>=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||n?i?1:2:3;for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];if(e.isImportEqualsDeclaration(c)&&!e.nodeIsMissing(c.moduleReference))return 3}return i?1:3}(t,n,!!i);case 3:return function(t,r,n){if(e.getAllowSyntheticDefaultImports(r))return 1;var i=e.getEmitModuleKind(r);switch(i){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(t)&&(e.isExternalModule(t)||n)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(i,"Unexpected moduleKind "+i)}}(t,n,!!i);default:return e.Debug.assertNever(r)}}function v(r,i,a,o,s){var c,l=e.textChanges.ChangeTracker.with(r,(function(t){c=function(t,r,n,i,a){switch(i.kind){case 0:return x(t,r,i),[e.Diagnostics.Change_0_to_1,n,i.namespacePrefix+"."+n];case 1:return D(t,r,i,a),[e.Diagnostics.Change_0_to_1,n,S(i.moduleSpecifier,a)+n];case 2:var o=i.importClauseOrBindingPattern,s=i.importKind,c=i.canUseTypeOnlyImport,l=i.moduleSpecifier;b(t,r,o,1===s?n:void 0,0===s?[n]:e.emptyArray,c);var u=e.stripQuotes(l);return[1===s?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,n,u];case 3:s=i.importKind,l=i.moduleSpecifier;var _=i.typeOnly,d=i.useRequire?T:E,p=1===s?{defaultImport:n,typeOnly:_}:0===s?{namedImports:[n],typeOnly:_}:{namespaceLikeImport:{importKind:s,name:n},typeOnly:_};return e.insertImports(t,r,d(l,a,p),!0),[1===s?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,n,l];default:return e.Debug.assertNever(i,"Unexpected fix kind "+i.kind)}}(t,i,a,o,s)}));return t.createCodeFixAction(t.importFixName,l,c,n,e.Diagnostics.Add_all_missing_imports)}function b(t,r,n,i,a,o){if(199!==n.kind){var s=!o&&n.isTypeOnly;if(i&&(e.Debug.assert(!n.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(r,n.getStart(r),e.factory.createIdentifier(i),{suffix:", "})),a.length){var c=n.namedBindings&&e.cast(n.namedBindings,e.isNamedImports).elements,l=e.stableSort(a.map((function(t){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(t))})),e.OrganizeImports.compareImportOrExportSpecifiers);if((null==c?void 0:c.length)&&e.OrganizeImports.importSpecifiersAreSorted(c))for(var u=0,_=l;u<_.length;u++){var d=_[u],p=e.OrganizeImports.getImportSpecifierInsertionIndex(c,d),f=n.namedBindings.elements[p-1];f?t.insertNodeInListAfter(r,f,d):t.insertNodeBefore(r,c[0],d,!e.positionsAreOnSameLine(c[0].getStart(),n.parent.getStart(),r))}else if(null==c?void 0:c.length)for(var g=0,m=l;g<m.length;g++)d=m[g],t.insertNodeInListAfter(r,e.last(c),d,c);else if(l.length){var y=e.factory.createNamedImports(l);n.namedBindings?t.replaceNode(r,n.namedBindings,y):t.insertNodeAfter(r,e.Debug.checkDefined(n.name,"Import clause must have either named imports or a default import"),y)}}s&&t.delete(r,e.getTypeKeywordOfTypeOnlyImport(n,r))}else{i&&b(n,i,"default");for(var h=0,v=a;h<v.length;h++)b(n,v[h],void 0)}function b(n,i,a){var o=e.factory.createBindingElement(void 0,a,i);n.elements.length?t.insertNodeInListAfter(r,e.last(n.elements),o):t.replaceNode(r,n,e.factory.createObjectBindingPattern([o]))}}function x(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function D(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,S(i,n))}function S(t,r){var n=e.getQuoteFromPreference(r);return"import("+n+t+n+")."}function E(t,r,n){var i,a,o,s=e.makeStringLiteral(t,r);(void 0!==n.defaultImport||(null===(i=n.namedImports)||void 0===i?void 0:i.length))&&(o=e.combine(o,e.makeImport(void 0===n.defaultImport?void 0:e.factory.createIdentifier(n.defaultImport),null===(a=n.namedImports)||void 0===a?void 0:a.map((function(t){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(t))})),t,r,n.typeOnly)));var c=n.namespaceLikeImport,l=n.typeOnly;if(c){var u=3===c.importKind?e.factory.createImportEqualsDeclaration(void 0,void 0,l,e.factory.createIdentifier(c.name),e.factory.createExternalModuleReference(s)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(l,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(c.name))),s);o=e.combine(o,u)}return e.Debug.checkDefined(o)}function T(t,r,n){var i,a,o,s=e.makeStringLiteral(t,r);if(n.defaultImport||(null===(i=n.namedImports)||void 0===i?void 0:i.length)){var c=(null===(a=n.namedImports)||void 0===a?void 0:a.map((function(t){return e.factory.createBindingElement(void 0,void 0,t)})))||[];n.defaultImport&&c.unshift(e.factory.createBindingElement(void 0,"default",n.defaultImport));var l=C(e.factory.createObjectBindingPattern(c),s);o=e.combine(o,l)}return n.namespaceLikeImport&&(l=C(n.namespaceLikeImport.name,s),o=e.combine(o,l)),e.Debug.checkDefined(o)}function C(t,r){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration("string"==typeof t?e.factory.createIdentifier(t):t,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[r]))],2))}function k(t,r){var n=t.declarations;return e.some(n,(function(t){return!!(e.getMeaningFromDeclaration(t)&r)}))}function A(t,r){return N(e.removeFileExtension(e.stripQuotes(t.name)),r)}function N(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),l=e.isIdentifierPart(c,r);if(l){var u=String.fromCharCode(c);a||(u=u.toUpperCase()),i+=u}a=l}return e.isStringANonContextualKeyword(i)?"_"+i:i||"_"}t.registerCodeFix({errorCodes:o,getCodeActions:function(t){var r=t.errorCode,n=t.preferences,i=t.sourceFile,a=t.span,o=g(t,r,a.start,!0);if(o){var s=o.fixes,c=o.symbolName,l=e.getQuotePreference(i,n);return s.map((function(e){return v(t,i,c,e,l)}))}},fixIds:[n],getAllCodeActions:function(r){var n=s(r.sourceFile,r.program,!0,r.preferences,r.host);return t.eachDiagnostic(r,o,(function(e){return n.addImportFromDiagnostic(e,r)})),t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,n.writeFixes))}}),t.createImportAdder=function(e,t,r,n){return s(e,t,!1,r,n)},function(e){e[e.UseNamespace=0]="UseNamespace",e[e.ImportType=1]="ImportType",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew"}(r||(r={})),t.getImportCompletionAction=function(t,r,n,i,a,o,s,c,d){var f,g,m,y,h=o.getCompilerOptions(),b=e.pathIsBareSpecifier(e.stripQuotes(r.name))?[u(t,r,o,a)]:_(n,t,r,i,a,o,d,!0),x=p(n,o),D=2===h.importsNotUsedAsValues&&!e.isSourceFileJS(n)&&e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(n,c)),S=e.Debug.checkDefined(l(n,b,r,i,o,c,D,x,a,d));return{moduleSpecifier:S.moduleSpecifier,codeAction:(f=v({host:a,formatContext:s,preferences:d},n,i,S,e.getQuotePreference(n,d)),g=f.description,m=f.changes,y=f.commands,{description:g,changes:m,commands:y})}},t.getModuleSpecifierForBestExportInfo=function(e,t,r,n,i,o){var s=f(r,t,void 0,!1,!1,e,n,i,o),c=s.fixes,l=s.computedWithoutCacheCount,u=m(c,t,r,n,i);return u&&a(a({},u),{computedWithoutCacheCount:l})},t.getImportKind=h,t.moduleSymbolToValidIdentifier=A,t.moduleSpecifierToValidIdentifier=N}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="fixOverrideModifier",i="fixAddOverrideModifier",a="fixRemoveOverrideModifier",o=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code],s=((r={})[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,i,e.Diagnostics.Add_all_missing_override_modifiers],r[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]=[e.Diagnostics.Remove_override_modifier,a,e.Diagnostics.Remove_all_unnecessary_override_modifiers],r[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]=[e.Diagnostics.Add_override_modifier,i,e.Diagnostics.Add_all_missing_override_modifiers],r[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,i,e.Diagnostics.Remove_all_unnecessary_override_modifiers],r[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]=[e.Diagnostics.Remove_override_modifier,a,e.Diagnostics.Remove_all_unnecessary_override_modifiers],r);function c(t,r,n,i){switch(n){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:return function(t,r,n){var i=u(r,n),a=i.modifiers||e.emptyArray,o=e.find(a,e.isStaticModifier),s=e.find(a,e.isAbstractModifier),c=e.find(a,(function(t){return e.isAccessibilityModifier(t.kind)})),l=s?s.end:o?o.end:c?c.end:i.decorators?e.skipTrivia(r.text,i.decorators.end):i.getStart(r),_=c||o||s?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,l,157,_)}(t,r.sourceFile,i);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:return function(t,r,n){var i=u(r,n),a=i.modifiers&&e.find(i.modifiers,(function(e){return 157===e.kind}));e.Debug.assertIsDefined(a),t.deleteModifier(r,a)}(t,r.sourceFile,i);default:e.Debug.fail("Unexpected error code: "+n)}}function l(t){switch(t.kind){case 169:case 165:case 167:case 170:case 171:return!0;case 162:return e.isParameterPropertyDeclaration(t,t.parent);default:return!1}}function u(t,r){var n=e.getTokenAtPosition(t,r),i=e.findAncestor(n,(function(t){return e.isClassLike(t)?"quit":l(t)}));return e.Debug.assert(i&&l(i)),i}t.registerCodeFix({errorCodes:o,getCodeActions:function(r){var i=r.errorCode,a=r.span,o=r.sourceFile,l=s[i];if(!l)return e.emptyArray;var u=l[0],_=l[1],d=l[2];if(e.isSourceFileJS(o))return e.emptyArray;var p=e.textChanges.ChangeTracker.with(r,(function(e){return c(e,r,i,a.start)}));return[t.createCodeFixActionMaybeFixAll(n,p,u,_,d)]},fixIds:[n,i,a],getAllCodeActions:function(r){return t.codeFixAll(r,o,(function(t,n){var i=n.code,a=n.start,o=n.file,l=s[i];l&&l[1]===r.fixId&&!e.isSourceFileJS(o)&&c(t,r,i,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixNoPropertyAccessFromIndexSignature",n=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function i(t,r,n,i){var a=e.getQuotePreference(r,i),o=e.factory.createStringLiteral(n.name.text,0===a);t.replaceNode(r,n,e.isPropertyAccessChain(n)?e.factory.createElementAccessChain(n.expression,n.questionDotToken,o):e.factory.createElementAccessExpression(n.expression,o))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isPropertyAccessExpression)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=n.preferences,l=a(o,s.start),u=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,l,c)}));return[t.createCodeFixAction(r,u,[e.Diagnostics.Use_element_access_for_0,l.name.text],r,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,a(r.file,r.start),e.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixImplicitThis",n=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);e.Debug.assert(108===a.kind);var o=e.getThisContainer(a,!1);if((e.isFunctionDeclaration(o)||e.isFunctionExpression(o))&&!e.isSourceFile(e.getThisContainer(o,!1))){var s=e.Debug.assertDefined(e.findChildOfKind(o,98,r)),c=o.name,l=e.Debug.assertDefined(o.body);if(e.isFunctionExpression(o)){if(c&&e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,r,l))return;return t.delete(r,s),c&&t.delete(r,c),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(85)),t.insertText(r,c.end," = "),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,l=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,l,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="fixIncorrectNamedTupleSyntax",n=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=function(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(function(e){return 195===e.kind}))}(i,a.start),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){if(n){for(var i=n.type,a=!1,o=!1;183===i.kind||184===i.kind||189===i.kind;)183===i.kind?a=!0:184===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);s!==n&&t.replaceNode(r,n,s)}}(t,i,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})}(u||(u={})),function(e){!function(t){var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isQualifiedName(o)&&o.right===a){var u=c.getSymbolAtLocation(o.left);u&&1536&u.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,u))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var _=function(t,r,n){if(n&&e.isStringLiteralLike(n.moduleSpecifier)){var i=e.getResolvedModule(t,n.moduleSpecifier.text);return i?r.program.getSourceFile(i.resolvedFileName):void 0}}(t,n,e.findAncestor(a,e.isImportDeclaration));_&&_.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,_.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var d=e.findAncestor(a,e.isJsxOpeningLikeElement),p=c.getContextualTypeForArgumentAtIndex(d,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,p)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var f=e.findAncestor(a,e.isClassLike),g=f?e.getEffectiveBaseTypeNode(f):void 0,m=g?c.getTypeAtLocation(g):void 0;m&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),m))}else{var y=e.getMeaningFromLocation(a),h=e.getTextOfNode(a);e.Debug.assert(void 0!==h,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,h,function(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(y))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var l=c.node,u=c.suggestedSymbol,_=n.host.getCompilationSettings().target,d=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,l,u,_)}));return[t.createCodeFixAction("spelling",d,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,e,r.code),o=e.host.getCompilationSettings().target;n&&a(t,e.sourceFile,n.node,n.suggestedSymbol,o)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],[])}function l(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&u(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(u(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),u(t,n,c(t,l.label,l.statement.expression),i,a)))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}function u(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,256)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function _(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return l(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var u=function(t){switch(t.kind){case 252:case 162:case 201:case 165:case 291:return t.initializer;case 283:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 292:case 164:case 294:case 342:case 335:return}}(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(t,u,t.getTypeAtLocation(a.parent),!0)}}}function d(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function p(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function g(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return d(e,r.sourceFile,a,o)}));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function m(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,l=i.errorCode,u=_(o.getTypeChecker(),s,c,l);if(u)return u.kind===r.MissingReturnStatement?e.append([g(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(r,i,o,s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,i,o,s,!1)}));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,u.declaration,u.expression,u.commentSource):void 0):[m(i,u.declaration,u.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,s,(function(t,n){var s=_(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:d(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;p(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="fixMissingMember",a="fixMissingProperties",o="fixMissingAttributes",s="fixMissingFunctionDeclaration",c=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Cannot_find_name_0.code];function l(t,r,n,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)||e.isPrivateIdentifier(a)){var o=a.parent;if(e.isIdentifier(a)&&e.hasInitializer(o)&&o.initializer&&e.isObjectLiteralExpression(o.initializer)){var s=e.arrayFrom(n.getUnmatchedProperties(n.getTypeAtLocation(o.initializer),n.getTypeAtLocation(a),!1,!1));if(e.length(s))return{kind:3,token:a,properties:s,parentDeclaration:o.initializer}}if(e.isIdentifier(a)&&e.isJsxOpeningLikeElement(a.parent)){var c=function(t,r){var n=t.getContextualType(r.attributes);if(void 0===n)return e.emptyArray;var i=n.getProperties();if(!e.length(i))return e.emptyArray;for(var a=new e.Set,o=0,s=r.attributes.properties;o<s.length;o++){var c=s[o];if(e.isJsxAttribute(c)&&a.add(c.name.escapedText),e.isJsxSpreadAttribute(c))for(var l=0,u=t.getTypeAtLocation(c.expression).getProperties();l<u.length;l++){var _=u[l];a.add(_.escapedName)}}return e.filter(i,(function(t){return!(16777216&t.flags||48&e.getCheckFlags(t)||a.has(t.escapedName))}))}(n,a.parent);if(e.length(c))return{kind:4,token:a,attributes:c,parentDeclaration:a.parent}}if(e.isIdentifier(a)&&e.isCallExpression(o))return{kind:2,token:a,call:o,sourceFile:t,modifierFlags:0,parentDeclaration:t};if(e.isPropertyAccessExpression(o)){var l=e.skipConstraint(n.getTypeAtLocation(o.expression)),_=l.symbol;if(_&&_.declarations){if(e.isIdentifier(a)&&e.isCallExpression(o.parent)){var d=e.find(_.declarations,e.isModuleDeclaration),p=null==d?void 0:d.getSourceFile();if(d&&p&&!u(i,p))return{kind:2,token:a,call:o.parent,sourceFile:t,modifierFlags:1,parentDeclaration:d};var f=e.find(_.declarations,e.isSourceFile);if(t.commonJsModuleIndicator)return;if(f&&!u(i,f))return{kind:2,token:a,call:o.parent,sourceFile:f,modifierFlags:1,parentDeclaration:f}}var g=e.find(_.declarations,e.isClassLike);if(g||!e.isPrivateIdentifier(a)){var m=g||e.find(_.declarations,e.isInterfaceDeclaration);if(m&&!u(i,m.getSourceFile())){var y=(l.target||l)!==n.getDeclaredTypeOfSymbol(_);if(y&&(e.isPrivateIdentifier(a)||e.isInterfaceDeclaration(m)))return;var h=m.getSourceFile(),v=(y?32:0)|(e.startsWithUnderscore(a.text)?8:0),b=e.isSourceFileJS(h);return{kind:1,token:a,call:e.tryCast(o.parent,e.isCallExpression),modifierFlags:v,parentDeclaration:m,declSourceFile:h,isJSFile:b}}var x=e.find(_.declarations,e.isEnumDeclaration);return!x||e.isPrivateIdentifier(a)||u(i,x.getSourceFile())?void 0:{kind:0,token:a,parentDeclaration:x}}}}}}function u(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function _(t,r,n,i,a){var o=i.text;if(a){if(224===n.kind)return;var s=n.name.getText(),c=d(e.factory.createIdentifier(s),o);t.insertNodeAfter(r,n,c)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),u=g(n);u?t.insertNodeAfter(r,u,l):t.insertNodeAtClassStart(r,n,l)}else{var _=e.getFirstConstructorWithBody(n);if(!_)return;var p=d(e.factory.createThis(),o);t.insertNodeAtConstructorEnd(r,_,p)}}function d(t,r){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(t,r),D()))}function p(t,r,n){var i;if(219===n.parent.parent.kind){var a=n.parent.parent,o=n.parent===a.left?a.right:a.left,s=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(o)));i=t.typeToTypeNode(s,r,1)}else{var c=t.getContextualType(n.parent);i=c?t.typeToTypeNode(c,void 0,1):void 0}return i||e.factory.createKeywordTypeNode(129)}function f(t,r,n,i,a,o){var s=e.factory.createPropertyDeclaration(void 0,o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,i,void 0,a,void 0),c=g(n);c?t.insertNodeAfter(r,c,s):t.insertNodeAtClassStart(r,n,s)}function g(t){for(var r,n=0,i=t.members;n<i.length;n++){var a=i[n];if(!e.isPropertyDeclaration(a))break;r=a}return r}function m(r,n,i,a,o,s,c){var l=t.createImportAdder(c,r.program,r.preferences,r.host),u=t.createSignatureDeclarationFromCallExpression(167,r,l,i,a,o,s),_=e.findAncestor(i,(function(t){return e.isMethodDeclaration(t)||e.isConstructorDeclaration(t)}));_&&_.parent===s?n.insertNodeAfter(c,_,u):n.insertNodeAtClassStart(c,s,u),l.writeFixes(n)}function y(t,r,n){var i=n.token,a=n.parentDeclaration,o=e.some(a.members,(function(e){var t=r.getTypeAtLocation(e);return!!(t&&402653316&t.flags)})),s=e.factory.createEnumMember(i,o?e.factory.createStringLiteral(i.text):void 0);t.replaceNode(a.getSourceFile(),a,e.factory.updateEnumDeclaration(a,a.decorators,a.modifiers,a.name,e.concatenate(a.members,e.singleElementArray(s))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function h(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=t.createSignatureDeclarationFromCallExpression(254,n,a,i.call,e.idText(i.token),i.modifierFlags,i.parentDeclaration);r.insertNodeAtEndOfScope(i.sourceFile,i.parentDeclaration,o)}function v(r,n,a){var o=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),s=e.getQuotePreference(n.sourceFile,n.preferences),c=n.program.getTypeChecker(),l=a.parentDeclaration.attributes,u=e.some(l.properties,e.isJsxSpreadAttribute),_=e.map(a.attributes,(function(t){var r=t.valueDeclaration?x(n,c,o,s,c.getTypeAtLocation(t.valueDeclaration)):D();return e.factory.createJsxAttribute(e.factory.createIdentifier(t.name),e.factory.createJsxExpression(void 0,r))})),d=e.factory.createJsxAttributes(u?i(i([],_,!0),l.properties,!0):i(i([],l.properties,!0),_,!0)),p={prefix:l.pos===l.end?" ":void 0};r.replaceNode(n.sourceFile,l,d,p)}function b(r,n,a){var o=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),s=e.getQuotePreference(n.sourceFile,n.preferences),c=n.program.getTypeChecker(),l=e.map(a.properties,(function(t){var r=t.valueDeclaration?x(n,c,o,s,c.getTypeAtLocation(t.valueDeclaration)):D();return e.factory.createPropertyAssignment(t.name,r)}));r.replaceNode(n.sourceFile,a.parentDeclaration,e.factory.createObjectLiteralExpression(i(i([],a.parentDeclaration.properties,!0),l,!0),!0))}function x(r,n,i,a,o){if(3&o.flags)return D();if(134217732&o.flags)return e.factory.createStringLiteral("",0===a);if(8&o.flags)return e.factory.createNumericLiteral(0);if(64&o.flags)return e.factory.createBigIntLiteral("0n");if(16&o.flags)return e.factory.createFalse();if(1056&o.flags){var s=o.symbol.exports?e.firstOrUndefined(e.arrayFrom(o.symbol.exports.values())):o.symbol,c=n.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return void 0===s||void 0===c?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(c,n.symbolToString(s))}if(256&o.flags)return e.factory.createNumericLiteral(o.value);if(2048&o.flags)return e.factory.createBigIntLiteral(o.value);if(128&o.flags)return e.factory.createStringLiteral(o.value,0===a);if(512&o.flags)return o===n.getFalseType()||o===n.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(65536&o.flags)return e.factory.createNull();if(1048576&o.flags){var l=e.firstDefined(o.types,(function(e){return x(r,n,i,a,e)}));return null!=l?l:D()}if(n.isArrayLikeType(o))return e.factory.createArrayLiteralExpression();if(function(t){return 524288&t.flags&&(128&e.getObjectFlags(t)||t.symbol&&e.tryCast(e.singleOrUndefined(t.symbol.declarations),e.isTypeLiteralNode))}(o)){var u=e.map(n.getPropertiesOfType(o),(function(t){var o=t.valueDeclaration?x(r,n,i,a,n.getTypeAtLocation(t.valueDeclaration)):D();return e.factory.createPropertyAssignment(t.name,o)}));return e.factory.createObjectLiteralExpression(u,!0)}if(16&e.getObjectFlags(o)){if(void 0===e.find(o.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration)))return D();var _=n.getSignaturesOfType(o,0);if(void 0===_)return D();var d=t.createSignatureDeclarationFromSignature(211,r,a,_[0],t.createStubbedBody(e.Diagnostics.Function_not_implemented.message,a),void 0,void 0,void 0,void 0,i);return null!=d?d:D()}if(1&e.getObjectFlags(o)){var p=e.getClassLikeDeclarationOfSymbol(o.symbol);if(void 0===p||e.hasAbstractModifier(p))return D();var f=e.getFirstConstructorWithBody(p);return f&&e.length(f.parameters)?D():e.factory.createNewExpression(e.factory.createIdentifier(o.symbol.name),void 0,void 0)}return D()}function D(){return e.factory.createIdentifier("undefined")}t.registerCodeFix({errorCodes:c,getCodeActions:function(r){var i=r.program.getTypeChecker(),c=l(r.sourceFile,r.span.start,i,r.program);if(c){if(3===c.kind){var u=e.textChanges.ChangeTracker.with(r,(function(e){return b(e,r,c)}));return[t.createCodeFixAction(a,u,e.Diagnostics.Add_missing_properties,a,e.Diagnostics.Add_all_missing_properties)]}return 4===c.kind?(u=e.textChanges.ChangeTracker.with(r,(function(e){return v(e,r,c)})),[t.createCodeFixAction(o,u,e.Diagnostics.Add_missing_attributes,o,e.Diagnostics.Add_all_missing_attributes)]):2===c.kind?(u=e.textChanges.ChangeTracker.with(r,(function(e){return h(e,r,c)})),[t.createCodeFixAction(s,u,[e.Diagnostics.Add_missing_function_declaration_0,c.token.text],s,e.Diagnostics.Add_all_missing_function_declarations)]):0===c.kind?(u=e.textChanges.ChangeTracker.with(r,(function(e){return y(e,r.program.getTypeChecker(),c)})),[t.createCodeFixAction(n,u,[e.Diagnostics.Add_missing_enum_member_0,c.token.text],n,e.Diagnostics.Add_all_missing_members)]):e.concatenate(function(r,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=i.call;if(void 0!==l&&!e.isPrivateIdentifier(c)){var u=c.text,_=function(t){return e.textChanges.ChangeTracker.with(r,(function(e){return m(r,e,l,c,t,a,o)}))},d=[t.createCodeFixAction(n,_(32&s),[32&s?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,u],n,e.Diagnostics.Add_all_missing_members)];return 8&s&&d.unshift(t.createCodeFixActionWithoutFixAll(n,_(8),[e.Diagnostics.Declare_private_method_0,u])),d}}(r,c),function(r,i){return i.isJSFile?e.singleElementArray(function(r,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token;if(!e.isInterfaceDeclaration(a)){var l=e.textChanges.ChangeTracker.with(r,(function(e){return _(e,o,a,c,!!(32&s))}));if(0!==l.length){var u=32&s?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(c)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return t.createCodeFixAction(n,l,[u,c.text],n,e.Diagnostics.Add_all_missing_members)}}}(r,i)):function(r,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=c.text,u=32&s,_=p(r.program.getTypeChecker(),a,c),d=function(t){return e.textChanges.ChangeTracker.with(r,(function(e){return f(e,o,a,l,_,t)}))},g=[t.createCodeFixAction(n,d(32&s),[u?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,l],n,e.Diagnostics.Add_all_missing_members)];return u||e.isPrivateIdentifier(c)||(8&s&&g.unshift(t.createCodeFixActionWithoutFixAll(n,d(8),[e.Diagnostics.Declare_private_property_0,l])),g.push(function(r,i,a,o,s){var c=e.factory.createKeywordTypeNode(148),l=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,c,void 0),u=e.factory.createIndexSignature(void 0,void 0,[l],s),_=e.textChanges.ChangeTracker.with(r,(function(e){return e.insertNodeAtClassStart(i,a,u)}));return t.createCodeFixActionWithoutFixAll(n,_,[e.Diagnostics.Add_index_signature_for_property_0,o])}(r,o,a,c.text,_))),g}(r,i)}(r,c))}},fixIds:[n,s,a,o],getAllCodeActions:function(r){var n=r.program,i=r.fixId,u=n.getTypeChecker(),d=new e.Map,g=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(x){t.eachDiagnostic(r,c,(function(t){var n=l(t.file,t.start,u,r.program);if(n&&e.addToSeen(d,e.getNodeId(n.parentDeclaration)+"#"+n.token.text))if(i===s&&2===n.kind)h(x,r,n);else if(i===a&&3===n.kind)b(x,r,n);else if(i===o&&4===n.kind)v(x,r,n);else if(0===n.kind&&y(x,u,n),1===n.kind){var c=n.parentDeclaration,_=n.token,p=e.getOrUpdate(g,c,(function(){return[]}));p.some((function(e){return e.token.text===_.text}))||p.push(n)}})),g.forEach((function(i,a){for(var o=t.getAllSupers(a,u),s=function(t){if(o.some((function(e){var r=g.get(e);return!!r&&r.some((function(e){return e.token.text===t.token.text}))})))return"continue";var i=t.parentDeclaration,a=t.declSourceFile,s=t.modifierFlags,c=t.token,l=t.call,u=t.isJSFile;if(l&&!e.isPrivateIdentifier(c))m(r,x,l,c,32&s,i,a);else if(u&&!e.isInterfaceDeclaration(i))_(x,a,i,c,!!(32&s));else{var d=p(n.getTypeChecker(),i,c);f(x,a,i,c.text,d,32&s)}},c=0,l=i;c<l.length;c++)s(l[c])}))})))}}),function(e){e[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface",e[e.Function=2]="Function",e[e.ObjectLiteral=3]="ObjectLiteral",e[e.JsxAttributes=4]="JsxAttributes"}(r||(r={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingNewOperator",n=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function i(t,r,n){var i=e.cast(function(t,r){for(var n=e.getTokenAtPosition(t,r.start),i=e.textSpanEnd(r);n.end<i;)n=n.parent;return n}(r,n),e.isCallExpression),a=e.factory.createNewExpression(i.expression,i.typeArguments,i.arguments);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.sourceFile,o=n.span,s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_new_operator_to_call,r,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="installTypesPackage",n=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,i=[n,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function a(e,t){return{type:"install package",file:e,packageName:t}}function o(t,r){var n=e.tryCast(e.getTokenAtPosition(t,r),e.isStringLiteral);if(n){var i=n.text,a=e.parsePackageName(i).packageName;return e.isExternalModuleNameRelative(a)?void 0:a}}function s(t,r,i){var a;return i===n?e.JsTyping.nodeCoreModules.has(t)?"@types/node":void 0:(null===(a=r.isKnownTypesPackageName)||void 0===a?void 0:a.call(r,t))?e.getTypesPackageName(t):void 0}t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.host,c=n.sourceFile,l=o(c,n.span.start);if(void 0!==l){var u=s(l,i,n.errorCode);return void 0===u?[]:[t.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,u],r,e.Diagnostics.Install_all_missing_types_packages,a(c.fileName,u))]}},fixIds:[r],getAllCodeActions:function(n){return t.codeFixAll(n,i,(function(t,i,c){var l=o(i.file,i.start);if(void 0!==l)if(n.fixId===r){var u=s(l,n.host,i.code);u&&c.push(a(i.file.fileName,u))}else e.Debug.fail("Bad fixId: "+n.fixId)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],n="fixClassDoesntImplementInheritedAbstractMember";function i(t,r){var n=e.getTokenAtPosition(t,r);return e.cast(n.parent,e.isClassLike)}function a(r,n,i,a,s){var c=e.getEffectiveBaseTypeNode(r),l=i.program.getTypeChecker(),u=l.getTypeAtLocation(c),_=l.getPropertiesOfType(u).filter(o),d=t.createImportAdder(n,i.program,s,i.host);t.createMissingMemberNodes(r,_,n,i,s,d,(function(e){return a.insertNodeAtClassStart(n,r,e)})),d.writeFixes(a)}function o(t){var r=e.getSyntacticModifierFlags(e.first(t.getDeclarations()));return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=e.textChanges.ChangeTracker.with(r,(function(e){return a(i(o,s.start),o,r,e,r.preferences)}));return 0===c.length?void 0:[t.createCodeFixAction(n,c,e.Diagnostics.Implement_inherited_abstract_class,n,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[n],getAllCodeActions:function(n){var o=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r.file,r.start);e.addToSeen(o,e.getNodeId(s))&&a(s,n.sourceFile,n,t,n.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="classSuperMustPrecedeThisAccess",n=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function a(t,r){var n=e.getTokenAtPosition(t,r);if(108===n.kind){var i=e.getContainingFunction(n),a=o(i.body);return a&&!a.expression.arguments.some((function(t){return e.isPropertyAccessExpression(t)&&t.expression===n}))?{constructor:i,superCall:a}:void 0}}function o(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=a(o,s.start);if(c){var l=c.constructor,u=c.superCall,_=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,o,l,u)}));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=new e.Map;return t.codeFixAll(r,n,(function(t,r){var n=a(r.file,r.start);if(n){var c=n.constructor,l=n.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(t,o,c,l)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="constructorForDerivedNeedSuperCall",n=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(e.isConstructorDeclaration(n.parent),"token should be at the constructor declaration"),n.parent}function a(t,r,n){var i=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));t.insertNodeAtConstructorStart(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_super_call,r,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="enableExperimentalDecorators",n=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"experimentalDecorators",e.factory.createTrue())}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a)}));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t){var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixEnableJsxFlag",n=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"jsx",e.factory.createStringLiteral("react"))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a)}));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t){var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(r){var n=r.program.getCompilerOptions(),i=n.configFile;if(void 0!==i){var a=[],o=e.getEmitModuleKind(n);if(o>=e.ModuleKind.ES2015&&o<e.ModuleKind.ESNext){var s=e.textChanges.ChangeTracker.with(r,(function(r){t.setJsonCompilerOptionValue(r,i,"module",e.factory.createStringLiteral("esnext"))}));a.push(t.createCodeFixActionWithoutFixAll("fixModuleOption",s,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var c=e.getEmitScriptTarget(n);return(c<4||c>99)&&(s=e.textChanges.ChangeTracker.with(r,(function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}})),a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})}(u||(u={})),function(e){!function(t){var r="fixPropertyAssignment",n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;t.deleteRange(r,{pos:a.getStart(),end:c})}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=s.extendsToken,l=s.heritageClauses,u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c,l)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r.extendsToken,r.heritageClauses)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="forgottenThisPropertyAccess",n=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,i=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,n];function a(t,r,i){var a=e.getTokenAtPosition(t,r);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.factory.createPropertyAccessExpression(a?e.factory.createIdentifier(a):e.factory.createThis(),i))}t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.sourceFile,s=a(i,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return o(e,i,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],r,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,i,(function(t,r){var n=a(r.file,r.start,r.code);n&&o(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixInvalidJsxCharacters_expression",n="fixInvalidJsxCharacters_htmlEntity",i=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];t.registerCodeFix({errorCodes:i,fixIds:[r,n],getCodeActions:function(i){var a=i.sourceFile,s=i.preferences,c=i.span,l=e.textChanges.ChangeTracker.with(i,(function(e){return o(e,s,a,c.start,!1)})),u=e.textChanges.ChangeTracker.with(i,(function(e){return o(e,s,a,c.start,!0)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,r,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),t.createCodeFixAction(n,u,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,n,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(e){return t.codeFixAll(e,i,(function(t,r){return o(t,e.preferences,r.file,r.start,e.fixId===n)}))}});var a={">":"&gt;","}":"&rbrace;"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{"+e.quote(n,r,s)+"}";t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_deleteImports",o="unusedIdentifier_infer",s=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function c(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(153))}function l(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function _(e){return 100===e.kind||79===e.kind&&(268===e.parent.kind||265===e.parent.kind)}function d(t){return 100===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function p(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function f(e,t,r){e.delete(t,235===r.parent.kind?r.parent:r)}function g(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(136===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 162:case 161:return!0;case 252:switch(e.parent.parent.parent.kind){case 242:case 241:return!0}}return!1}(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_"+i.text)),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((function(r){e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_"+r.name.text))}))))}function m(t,r,n,i,a,o,s,c){!function(t,r,n,i,a,o,s,c){var l=t.parent;if(e.isParameter(l))!function(t,r,n,i,a,o,s,c){void 0===c&&(c=!1),function(t,r,n,i,a,o,s){var c=n.parent;switch(c.kind){case 167:case 169:var l=c.parameters.indexOf(n),u=e.isMethodDeclaration(c)?c.name:c,_=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,u,a,i,o);if(_)for(var d=0,p=_;d<p.length;d++)for(var f=0,g=p[d].references;f<g.length;f++){var m=g[f];if(1===m.kind){var y=e.isSuperKeyword(m.node)&&e.isCallExpression(m.node.parent)&&m.node.parent.arguments.length>l,v=e.isPropertyAccessExpression(m.node.parent)&&e.isSuperKeyword(m.node.parent.expression)&&e.isCallExpression(m.node.parent.parent)&&m.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(m.node.parent)||e.isMethodSignature(m.node.parent))&&m.node.parent!==n.parent&&m.node.parent.parameters.length>l;if(y||v||b)return!1}}return!0;case 254:return!c.name||!function(t,r,n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0}))}(t,r,c.name)||h(c,n,s);case 211:case 212:return h(c,n,s);case 171:return!1;default:return e.Debug.failBadSyntaxKind(c)}}(i,r,n,a,o,s,c)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach((function(e){return t.deleteModifier(r,e)})):!n.initializer&&y(n,i,a)&&t.delete(r,n))}(r,n,l,i,a,o,s,c);else if(!(c&&e.isIdentifier(t)&&e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n))){var u=e.isImportClause(l)?t:e.isComputedPropertyName(l)?l.parent:l;e.Debug.assert(u!==n,"should not delete whole source file"),r.delete(n,u)}}(r,n,t,i,a,o,s,c),e.isIdentifier(r)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,t,(function(r){var i;e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),!c&&(i=r,(e.isBinaryExpression(i.parent)&&i.parent.left===i||(e.isPostfixUnaryExpression(i.parent)||e.isPrefixUnaryExpression(i.parent))&&i.parent.operand===i)&&e.isExpressionStatement(i.parent.parent))&&n.delete(t,r.parent.parent)}))}function y(t,r,n){var i=t.parent.parameters.indexOf(t);return!e.FindAllReferences.Core.someSignatureUsage(t.parent,n,r,(function(e,t){return!t||t.arguments.length>i}))}function h(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced})):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,y=i.sourceFile,h=i.program,v=i.cancellationToken,b=h.getTypeChecker(),x=h.getSourceFiles(),D=e.getTokenAtPosition(y,i.span.start);if(e.isJSDocTemplateTag(D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,D)})),e.Diagnostics.Remove_template_tag)];if(29===D.kind)return[l(E=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,y,D)})),e.Diagnostics.Remove_type_parameters)];var S=d(D);if(S){var E=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,S)}));return[t.createCodeFixAction(r,E,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(_(D)&&(N=e.textChanges.ChangeTracker.with(i,(function(e){return m(y,D,e,b,x,h,v,!1)}))).length)return[t.createCodeFixAction(r,N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,D.getText(y)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(D.parent)||e.isArrayBindingPattern(D.parent)){if(e.isParameter(D.parent.parent)){var T=D.parent.elements,C=[T.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(T,(function(e){return e.getText(y)})).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,(function(t){return function(t,r,n){e.forEach(n.elements,(function(e){return t.delete(r,e)}))}(t,y,D.parent)})),C)]}return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,D.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(p(y,D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return f(e,y,D.parent)})),e.Diagnostics.Remove_variable_statement)];var k=[];if(136===D.kind){E=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,y,D)}));var A=e.cast(D.parent,e.isInferTypeNode).typeParameter.name.text;k.push(t.createCodeFixAction(r,E,[e.Diagnostics.Replace_infer_0_with_unknown,A],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var N;(N=e.textChanges.ChangeTracker.with(i,(function(e){return m(y,D,e,b,x,h,v,!1)}))).length&&(A=e.isComputedPropertyName(D.parent)?D.parent:D,k.push(l(N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(y)])))}var F=e.textChanges.ChangeTracker.with(i,(function(e){return g(e,s,y,D)}));return F.length&&k.push(t.createCodeFixAction(r,F,[e.Diagnostics.Prefix_0_with_an_underscore,D.getText(y)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[n,i,a,o],getAllCodeActions:function(r){var l=r.sourceFile,h=r.program,v=r.cancellationToken,b=h.getTypeChecker(),x=h.getSourceFiles();return t.codeFixAll(r,s,(function(t,s){var D=e.getTokenAtPosition(l,s.start);switch(r.fixId){case n:g(t,s.code,l,D);break;case a:var S=d(D);S?t.delete(l,S):_(D)&&m(l,D,t,b,x,h,v,!0);break;case i:if(136===D.kind||_(D))break;if(e.isJSDocTemplateTag(D))t.delete(l,D);else if(29===D.kind)u(t,l,D);else if(e.isObjectBindingPattern(D.parent)){if(D.parent.parent.initializer)break;e.isParameter(D.parent.parent)&&!y(D.parent.parent,b,x)||t.delete(l,D.parent.parent)}else{if(e.isArrayBindingPattern(D.parent.parent)&&D.parent.parent.parent.initializer)break;p(l,D)?f(t,l,D.parent):m(l,D,t,b,x,h,v,!0)}break;case o:136===D.kind&&c(t,l,D);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 237:if(l.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 239:case 240:return void t.delete(r,l)}if(e.isBlock(s.parent)){var u=n+i,_=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(!(a.pos<u))break;r=a}return r}(e.sliceAfter(s.parent.statements,s)),"Some statement should be last");t.deleteNodeRange(r,s,_)}else t.delete(r,s)}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.span.length,n.errorCode)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unreachable_code,r,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start,t.length,t.code)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixUnusedLabel",n=[e.Diagnostics.Unused_label.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.cast(i.parent,e.isLabeledStatement),o=i.getStart(r),s=a.statement.getStart(r),c=e.positionsAreOnSameLine(o,s,r)?s:e.skipTrivia(r.text,e.findChildOfKind(a,58,r).end,!0);t.deleteRange(r,{pos:o,end:c})}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unused_label,r,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixJSDocTypes_plain",n="fixJSDocTypes_nullable",i=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function a(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function o(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r),s),a=i&&i.type;return a&&{typeNode:a,type:n.getTypeFromTypeNode(a)}}function s(e){switch(e.kind){case 227:case 172:case 173:case 254:case 170:case 174:case 193:case 167:case 166:case 162:case 165:case 164:case 171:case 257:case 209:case 252:return!0;default:return!1}}t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var s=i.sourceFile,c=i.program.getTypeChecker(),l=o(s,i.span.start,c);if(l){var u=l.typeNode,_=l.type,d=u.getText(s),p=[f(_,r,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 309===u.kind&&p.push(f(c.getNullableType(_,32768),n,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),p}function f(r,n,o){var l=e.textChanges.ChangeTracker.with(i,(function(e){return a(e,s,u,r,c)}));return t.createCodeFixAction("jdocTypes",l,[e.Diagnostics.Change_0_to_1,d,c.typeToString(r)],n,o)}},fixIds:[r,n],getAllCodeActions:function(e){var r=e.fixId,s=e.program,c=e.sourceFile,l=s.getTypeChecker();return t.codeFixAll(e,i,(function(e,t){var i=o(t.file,t.start,l);if(i){var s=i.typeNode,u=i.type,_=309===s.kind&&r===n?l.getNullableType(u,32768):u;a(e,c,s,_,l)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixMissingCallParentheses",n=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function i(e,t,r){e.replaceNodeWithText(t,r,r.text+"()")}function a(t,r){var n=e.getTokenAtPosition(t,r);if(e.isPropertyAccessExpression(n.parent)){for(var i=n.parent;e.isPropertyAccessExpression(i.parent);)i=i.parent;return i.name}if(e.isIdentifier(n))return n}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_call_parentheses,r,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&i(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixAwaitInSyncFunction",n=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 167:a=i.name;break;case 254:case 211:a=e.findChildOfKind(i,98,t);break;case 212:a=e.findChildOfKind(i,20,t)||e.first(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:(o=i,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function a(t,r,n){var i=n.insertBefore,a=n.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&79===o.kind&&"Promise"===o.text||t.replaceNode(r,a,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([a])))}t.insertModifierBefore(r,130,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[r],getAllCodeActions:function(r){var o=new e.Map;return t.codeFixAll(r,n,(function(t,n){var s=i(n.file,n.start);s&&e.addToSeen(o,e.getNodeId(s.insertBefore))&&a(t,r.sourceFile,s)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],n="fixPropertyOverrideAccessor";function i(r,n,i,a,o){var s,c;if(a===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=n,c=n+i;else if(a===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var l=o.program.getTypeChecker(),u=e.getTokenAtPosition(r,n).parent;e.Debug.assert(e.isAccessor(u),"error span of fixPropertyOverrideAccessor should only be on an accessor");var _=u.parent;e.Debug.assert(e.isClassLike(_),"erroneous accessors should only be inside classes");var d=e.singleOrUndefined(t.getAllSupers(_,l));if(!d)return[];var p=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(u.name)),f=l.getPropertyOfType(l.getTypeAtLocation(d),p);if(!f||!f.valueDeclaration)return[];s=f.valueDeclaration.pos,c=f.valueDeclaration.end,r=e.getSourceFileOfNode(f.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+a);return t.generateAccessorFromProperty(r,o.program,s,c,o,e.Diagnostics.Generate_get_and_set_accessors.message)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=i(r.sourceFile,r.span.start,r.span.length,r.errorCode,r);if(a)return[t.createCodeFixAction(n,a,e.Diagnostics.Generate_get_and_set_accessors,n,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){var n=i(r.file,r.start,r.length,r.code,e);if(n)for(var a=0,o=n;a<o.length;a++){var s=o[a];t.pushRaw(e.sourceFile,s)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="inferFromUsage",n=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function a(t,r){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(r))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function o(r,n,i,a,o,d,m,y,h){if(e.isParameterPropertyModifier(i.kind)||79===i.kind||25===i.kind||108===i.kind){var v=i.parent,b=t.createImportAdder(n,o,h,y);switch(a=function(t){switch(t){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return t}(a)){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(v)&&m(v)||e.isPropertyDeclaration(v)||e.isPropertySignature(v))return s(r,b,n,v,o,y,d),b.writeFixes(r),v;if(e.isPropertyAccessExpression(v)){var x=p(v.name,o,d),D=e.getTypeNodeIfAccessible(x,v,o,y);if(D){var S=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(D),void 0);_(r,n,e.cast(v.parent.parent,e.isExpressionStatement),[S])}return b.writeFixes(r),v}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var E=o.getTypeChecker().getSymbolAtLocation(i);return E&&E.valueDeclaration&&e.isVariableDeclaration(E.valueDeclaration)&&m(E.valueDeclaration)?(s(r,b,n,E.valueDeclaration,o,y,d),b.writeFixes(r),E.valueDeclaration):void 0}var T=e.getContainingFunction(i);if(void 0!==T){var C;switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(T)){c(r,b,n,T,o,y,d),C=T;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(m(T)){var k=e.cast(v,e.isParameter);!function(t,r,n,i,a,o,s,c){if(e.isIdentifier(i.name)){var _=function(t,r,n,i){var a=f(t,r,n,i);return a&&g(n,a,i).parameters(t)||t.parameters.map((function(t){return{declaration:t,type:e.isIdentifier(t.name)?p(t.name,n,i):n.getTypeChecker().getAnyType()}}))}(a,n,o,c);if(e.Debug.assert(a.parameters.length===_.length,"Parameter count and inference count should match"),e.isInJSFile(a))u(t,n,_,o,s);else{var d=e.isArrowFunction(a)&&!e.findChildOfKind(a,20,n);d&&t.insertNodeBefore(n,e.first(a.parameters),e.factory.createToken(20));for(var m=0,y=_;m<y.length;m++){var h=y[m],v=h.declaration,b=h.type;!v||v.type||v.initializer||l(t,r,n,v,b,o,s)}d&&t.insertNodeAfter(n,e.last(a.parameters),e.factory.createToken(21))}}}(r,b,n,k,T,o,y,d),C=k}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(T)&&e.isIdentifier(T.name)&&(l(r,b,n,T,p(T.name,o,d),o,y),C=T);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(T)&&(c(r,b,n,T,o,y,d),C=T);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(T)&&m(T)&&(function(t,r,n,i,a,o){var s=f(n,r,i,o);if(s&&s.length){var c=g(i,s,o).thisParameter(),l=e.getTypeNodeIfAccessible(c,n,i,a);l&&(e.isInJSFile(n)?function(t,r,n,i){_(t,r,n,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(i))])}(t,r,n,l):t.tryInsertThisTypeAnnotation(r,n,l))}}(r,n,T,o,y,d),C=T);break;default:return e.Debug.fail(String(a))}return b.writeFixes(r),C}}}function s(t,r,n,i,a,o,s){e.isIdentifier(i.name)&&l(t,r,n,i,p(i.name,a,s),a,o)}function c(t,r,n,i,a,o,s){var c=e.firstOrUndefined(i.parameters);if(c&&e.isIdentifier(i.name)&&e.isIdentifier(c.name)){var _=p(i.name,a,s);_===a.getTypeChecker().getAnyType()&&(_=p(c.name,a,s)),e.isInJSFile(i)?u(t,n,[{declaration:c,type:_}],a,o):l(t,r,n,c,_,a,o)}}function l(r,n,i,a,o,s,c){var l=e.getTypeNodeIfAccessible(o,a,s,c);if(l)if(e.isInJSFile(i)&&164!==a.kind){var u=e.isVariableDeclaration(a)?e.tryCast(a.parent.parent,e.isVariableStatement):a;if(!u)return;var d=e.factory.createJSDocTypeExpression(l);_(r,i,u,[e.isGetAccessorDeclaration(a)?e.factory.createJSDocReturnTag(void 0,d,void 0):e.factory.createJSDocTypeTag(void 0,d,void 0)])}else(function(r,n,i,a,o,s){var c=t.tryGetAutoImportableReferenceFromTypeNode(r,s);return!(!c||!a.tryInsertTypeAnnotation(i,n,c.typeNode))&&(e.forEach(c.symbols,(function(e){return o.addImportFromExportedSymbol(e,!0)})),!0)})(l,a,i,r,n,e.getEmitScriptTarget(s.getCompilerOptions()))||r.tryInsertTypeAnnotation(i,a,l)}function u(t,r,n,i,a){var o=n.length&&n[0].declaration.parent;if(o){var s=e.mapDefined(n,(function(t){var r=t.declaration;if(!r.initializer&&!e.getJSDocType(r)&&e.isIdentifier(r.name)){var n=t.type&&e.getTypeNodeIfAccessible(t.type,r,i,a);if(n){var o=e.factory.cloneNode(r.name);return e.setEmitFlags(o,3584),{name:e.factory.cloneNode(r.name),param:r,isOptional:!!t.isOptional,typeNode:n}}}}));if(s.length)if(e.isArrowFunction(o)||e.isFunctionExpression(o)){var c=e.isArrowFunction(o)&&!e.findChildOfKind(o,20,r);c&&t.insertNodeBefore(r,e.first(o.parameters),e.factory.createToken(20)),e.forEach(s,(function(n){var i=n.typeNode,a=n.param,o=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(i)),s=e.factory.createJSDocComment(void 0,[o]);t.insertNodeAt(r,a.getStart(r),s,{suffix:" "})})),c&&t.insertNodeAfter(r,e.last(o.parameters),e.factory.createToken(21))}else{var l=e.map(s,(function(t){var r=t.name,n=t.typeNode,i=t.isOptional;return e.factory.createJSDocParameterTag(void 0,r,!!i,e.factory.createJSDocTypeExpression(n),!1,void 0)}));_(t,r,o,l)}}}function _(t,r,n,a){var o,s=e.flatMap(n.jsDoc,(function(t){return"string"==typeof t.comment?e.factory.createJSDocText(t.comment):t.comment})),c=e.flatMapToMutable(n.jsDoc,(function(e){return e.tags})),l=a.filter((function(t){return!c||!c.some((function(r,n){var i=function(t,r){if(t.kind===r.kind)switch(t.kind){case 335:var n=t,i=r;return e.isIdentifier(n.name)&&e.isIdentifier(i.name)&&n.name.escapedText===i.name.escapedText?e.factory.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0;case 336:return e.factory.createJSDocReturnTag(void 0,r.typeExpression,t.comment)}}(r,t);return i&&(c[n]=i),!!i}))})),u=e.factory.createJSDocComment(e.factory.createNodeArray(e.intersperse(s,e.factory.createJSDocText("\n"))),e.factory.createNodeArray(i(i([],c||e.emptyArray,!0),l,!0))),_=212===n.kind?165===(o=n).parent.kind?o.parent:o.parent.parent:n;_.jsDoc=n.jsDoc,_.jsDocCache=n.jsDocCache,t.insertJsdocCommentBefore(r,_,u)}function d(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),(function(t){return 0!==t.kind?e.tryCast(t.node,e.isIdentifier):void 0}))}function p(e,t,r){return g(t,d(e,t,r),r).single()}function f(t,r,n,i){var a;switch(t.kind){case 169:a=e.findChildOfKind(t,133,r);break;case 212:case 211:var o=t.parent;a=(e.isVariableDeclaration(o)||e.isPropertyDeclaration(o))&&e.isIdentifier(o.name)?o.name:t.name;break;case 254:case 167:case 166:a=t.name}if(a)return d(a,n,i)}function g(t,r,n){var a=t.getTypeChecker(),o={string:function(){return a.getStringType()},number:function(){return a.getNumberType()},Array:function(e){return a.createArrayType(e)},Promise:function(e){return a.createPromiseType(e)}},s=[a.getStringType(),a.getNumberType(),a.createArrayType(a.getAnyType()),a.createPromiseType(a.getAnyType())];return{single:function(){return f(l(r))},parameters:function(o){if(0!==r.length&&o.parameters){for(var s={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},c=0,_=r;c<_.length;c++){var p=_[c];n.throwIfCancellationRequested(),u(p,s)}var g=i(i([],s.constructs||[],!0),s.calls||[],!0);return o.parameters.map((function(r,i){for(var s=[],c=e.isRestParameter(r),u=!1,_=0,p=g;_<p.length;_++){var m=p[_];if(m.argumentTypes.length<=i)u=e.isInJSFile(o),s.push(a.getUndefinedType());else if(c)for(var y=i;y<m.argumentTypes.length;y++)s.push(a.getBaseTypeOfLiteralType(m.argumentTypes[y]));else s.push(a.getBaseTypeOfLiteralType(m.argumentTypes[i]))}if(e.isIdentifier(r.name)){var h=l(d(r.name,t,n));s.push.apply(s,c?e.mapDefined(h,a.getElementTypeOfArrayType):h)}var v=f(s);return{type:c?a.createArrayType(v):v,isOptional:u&&!c,declaration:r}}))}},thisParameter:function(){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},i=0,a=r;i<a.length;i++){var o=a[i];n.throwIfCancellationRequested(),u(o,t)}return f(t.candidateThisTypes||e.emptyArray)}};function c(t){for(var r=new e.Map,n=0,i=t;n<i.length;n++){var a=i[n];a.properties&&a.properties.forEach((function(e,t){r.has(t)||r.set(t,[]),r.get(t).push(e)}))}var o=new e.Map;return r.forEach((function(e,t){o.set(t,c(e))})),{isNumber:t.some((function(e){return e.isNumber})),isString:t.some((function(e){return e.isString})),isNumberOrString:t.some((function(e){return e.isNumberOrString})),candidateTypes:e.flatMap(t,(function(e){return e.candidateTypes})),properties:o,calls:e.flatMap(t,(function(e){return e.calls})),constructs:e.flatMap(t,(function(e){return e.constructs})),numberIndex:e.forEach(t,(function(e){return e.numberIndex})),stringIndex:e.forEach(t,(function(e){return e.stringIndex})),candidateThisTypes:e.flatMap(t,(function(e){return e.candidateThisTypes})),inferredTypes:void 0}}function l(e){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},r=0,i=e;r<i.length;r++){var a=i[r];n.throwIfCancellationRequested(),u(a,t)}return g(t)}function u(t,r){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 236:!function(t,r){h(r,e.isCallExpression(t)?a.getVoidType():a.getAnyType())}(t,r);break;case 218:r.isNumber=!0;break;case 217:!function(e,t){switch(e.operator){case 45:case 46:case 40:case 54:t.isNumber=!0;break;case 39:t.isNumberOrString=!0}}(t.parent,r);break;case 219:!function(t,r,n){switch(r.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var i=a.getTypeAtLocation(r.left===t?r.right:r.left);1056&i.flags?h(n,i):n.isNumber=!0;break;case 64:case 39:var o=a.getTypeAtLocation(r.left===t?r.right:r.left);1056&o.flags?h(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:h(n,a.getTypeAtLocation(r.left===t?r.right:r.left));break;case 101:t===r.left&&(n.isString=!0);break;case 56:case 60:t!==r.left||252!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||h(n,a.getTypeAtLocation(r.right))}}(t,t.parent,r);break;case 287:case 288:!function(e,t){h(t,a.getTypeAtLocation(e.parent.parent.expression))}(t.parent,r);break;case 206:case 207:t.parent.expression===t?function(e,t){var r={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(var n=0,i=e.arguments;n<i.length;n++){var o=i[n];r.argumentTypes.push(a.getTypeAtLocation(o))}u(e,r.return_),206===e.kind?(t.calls||(t.calls=[])).push(r):(t.constructs||(t.constructs=[])).push(r)}(t.parent,r):_(t,r);break;case 204:!function(t,r){var n=e.escapeLeadingUnderscores(t.name.text);r.properties||(r.properties=new e.Map);var i=r.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};u(t,i),r.properties.set(n,i)}(t.parent,r);break;case 205:!function(e,t,r){if(t!==e.argumentExpression){var n=a.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};u(e,i),296&n.flags?r.numberIndex=i:r.stringIndex=i}else r.isNumberOrString=!0}(t.parent,t,r);break;case 291:case 292:!function(t,r){var n=e.isVariableDeclaration(t.parent.parent)?t.parent.parent:t.parent;v(r,a.getTypeAtLocation(n))}(t.parent,r);break;case 165:!function(e,t){v(t,a.getTypeAtLocation(e.parent))}(t.parent,r);break;case 252:var n=t.parent,i=n.name,o=n.initializer;if(t===i){o&&h(r,a.getTypeAtLocation(o));break}default:return _(t,r)}}function _(t,r){e.isExpressionNode(t)&&h(r,a.getContextualType(t))}function p(e){return f(g(e))}function f(t){if(!t.length)return a.getAnyType();var r=a.getUnionType([a.getStringType(),a.getNumberType()]),n=function(t,r){for(var n=[],i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=r;s<c.length;s++){var l=c[s],u=l.high,_=l.low;u(o)&&(e.Debug.assert(!_(o),"Priority can't have both low and high"),n.push(_))}return t.filter((function(e){return n.every((function(t){return!t(e)}))}))}(t,[{high:function(e){return e===a.getStringType()||e===a.getNumberType()},low:function(e){return e===r}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(t){return!(114689&t.flags||16&e.getObjectFlags(t))},low:function(t){return!!(16&e.getObjectFlags(t))}}]),i=n.filter((function(t){return 16&e.getObjectFlags(t)}));return i.length&&(n=n.filter((function(t){return!(16&e.getObjectFlags(t))})),n.push(function(t){if(1===t.length)return t[0];for(var r=[],n=[],i=[],o=[],s=!1,c=!1,l=e.createMultiMap(),u=0,_=t;u<_.length;u++){for(var d=_[u],p=0,f=a.getPropertiesOfType(d);p<f.length;p++){var g=f[p];l.add(g.name,g.valueDeclaration?a.getTypeOfSymbolAtLocation(g,g.valueDeclaration):a.getAnyType())}r.push.apply(r,a.getSignaturesOfType(d,0)),n.push.apply(n,a.getSignaturesOfType(d,1));var m=a.getIndexInfoOfType(d,0);m&&(i.push(m.type),s=s||m.isReadonly);var y=a.getIndexInfoOfType(d,1);y&&(o.push(y.type),c=c||y.isReadonly)}var h=e.mapEntries(l,(function(e,r){var n=r.length<t.length?16777216:0,i=a.createSymbol(4|n,e);return i.type=a.getUnionType(r),[e,i]})),v=[];return i.length&&v.push(a.createIndexInfo(a.getStringType(),a.getUnionType(i),s)),o.length&&v.push(a.createIndexInfo(a.getNumberType(),a.getUnionType(o),c)),a.createAnonymousType(t[0].symbol,h,r,n,v)}(i))),a.getWidenedType(a.getUnionType(n.map(a.getBaseTypeOfLiteralType),2))}function g(t){var r,n,i,c=[];return t.isNumber&&c.push(a.getNumberType()),t.isString&&c.push(a.getStringType()),t.isNumberOrString&&c.push(a.getUnionType([a.getStringType(),a.getNumberType()])),t.numberIndex&&c.push(a.createArrayType(p(t.numberIndex))),((null===(r=t.properties)||void 0===r?void 0:r.size)||(null===(n=t.calls)||void 0===n?void 0:n.length)||(null===(i=t.constructs)||void 0===i?void 0:i.length)||t.stringIndex)&&c.push(function(t){var r=new e.Map;t.properties&&t.properties.forEach((function(e,t){var n=a.createSymbol(4,t);n.type=p(e),r.set(t,n)}));var n=t.calls?[y(t.calls)]:[],i=t.constructs?[y(t.constructs)]:[],o=t.stringIndex?[a.createIndexInfo(a.getStringType(),p(t.stringIndex),!1)]:[];return a.createAnonymousType(void 0,r,n,i,o)}(t)),c.push.apply(c,(t.candidateTypes||[]).map((function(e){return a.getBaseTypeOfLiteralType(e)}))),c.push.apply(c,function(t){if(!t.properties||!t.properties.size)return[];var r=s.filter((function(r){return function(t,r){return!!r.properties&&!e.forEachEntry(r.properties,(function(r,n){var i,o=a.getTypeOfPropertyOfType(t,n);return!(o&&(r.calls?a.getSignaturesOfType(o,0).length&&a.isTypeAssignableTo(o,(i=r.calls,a.createAnonymousType(void 0,e.createSymbolTable(),[y(i)],e.emptyArray,e.emptyArray))):a.isTypeAssignableTo(o,p(r))))}))}(r,t)}));return 0<r.length&&r.length<3?r.map((function(r){return function(t,r){if(!(4&e.getObjectFlags(t)&&r.properties))return t;var n=t.target,i=e.singleOrUndefined(n.typeParameters);if(!i)return t;var s=[];return r.properties.forEach((function(t,r){var o=a.getTypeOfPropertyOfType(n,r);e.Debug.assert(!!o,"generic should have all the properties of its reference."),s.push.apply(s,m(o,p(t),i))})),o[t.symbol.escapedName](f(s))}(r,t)})):[]}(t)),c}function m(t,r,n){if(t===n)return[r];if(3145728&t.flags)return e.flatMap(t.types,(function(e){return m(e,r,n)}));if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)){var i=a.getTypeArguments(t),o=a.getTypeArguments(r),s=[];if(i&&o)for(var c=0;c<i.length;c++)o[c]&&s.push.apply(s,m(i[c],o[c],n));return s}var l=a.getSignaturesOfType(t,0),u=a.getSignaturesOfType(r,0);return 1===l.length&&1===u.length?function(t,r,n){for(var i=[],o=0;o<t.parameters.length;o++){var s=t.parameters[o],c=r.parameters[o],l=t.declaration&&e.isRestParameter(t.declaration.parameters[o]);if(!c)break;var u=s.valueDeclaration?a.getTypeOfSymbolAtLocation(s,s.valueDeclaration):a.getAnyType(),_=l&&a.getElementTypeOfArrayType(u);_&&(u=_);var d=c.type||(c.valueDeclaration?a.getTypeOfSymbolAtLocation(c,c.valueDeclaration):a.getAnyType());i.push.apply(i,m(u,d,n))}var p=a.getReturnTypeOfSignature(t),f=a.getReturnTypeOfSignature(r);return i.push.apply(i,m(p,f,n)),i}(l[0],u[0],n):[]}function y(t){for(var r=[],n=Math.max.apply(Math,t.map((function(e){return e.argumentTypes.length}))),i=function(n){var i=a.createSymbol(1,e.escapeLeadingUnderscores("arg"+n));i.type=f(t.map((function(e){return e.argumentTypes[n]||a.getUndefinedType()}))),t.some((function(e){return void 0===e.argumentTypes[n]}))&&(i.flags|=16777216),r.push(i)},o=0;o<n;o++)i(o);var s=p(c(t.map((function(e){return e.return_}))));return a.createSignature(void 0,void 0,void 0,r,s,void 0,n,0)}function h(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i,s=n.sourceFile,c=n.program,l=n.span.start,u=n.errorCode,_=n.cancellationToken,d=n.host,p=n.preferences,f=e.getTokenAtPosition(s,l),g=e.textChanges.ChangeTracker.with(n,(function(t){i=o(t,s,f,u,c,_,e.returnTrue,d,p)})),m=i&&e.getNameOfDeclaration(i);return m&&0!==g.length?[t.createCodeFixAction(r,g,[a(u,f),m.getText(s)],r,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[r],getAllCodeActions:function(r){var i=r.sourceFile,a=r.program,s=r.cancellationToken,c=r.host,l=r.preferences,u=e.nodeSeenTracker();return t.codeFixAll(r,n,(function(t,r){o(t,i,e.getTokenAtPosition(r.file,r.start),r.code,a,s,u,c,l)}))}}),t.addJSDocTags=_}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixReturnTypeInAsyncFunction",n=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function i(t,r,n){if(!e.isInJSFile(t)){var i=e.getTokenAtPosition(t,n),a=e.findAncestor(i,e.isFunctionLikeDeclaration),o=null==a?void 0:a.type;if(o){var s=r.getTypeFromTypeNode(o),c=r.getAwaitedType(s)||r.getVoidType(),l=r.typeToTypeNode(c,o,void 0);return l?{returnTypeNode:o,returnType:s,promisedTypeNode:l,promisedType:c}:void 0}}}function a(t,r,n,i){t.replaceNode(r,n,e.factory.createTypeReferenceNode("Promise",[i]))}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=n.sourceFile,s=n.program,c=n.span,l=s.getTypeChecker(),u=i(o,s.getTypeChecker(),c.start);if(u){var _=u.returnTypeNode,d=u.returnType,p=u.promisedTypeNode,f=u.promisedType,g=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,_,p)}));return[t.createCodeFixAction(r,g,[e.Diagnostics.Replace_0_with_Promise_1,l.typeToString(d),l.typeToString(f)],r,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,e.program.getTypeChecker(),r.start);n&&a(t,r.file,n.returnTypeNode,n.promisedTypeNode)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="disableJsDiagnostics",n="disableJsDiagnostics",i=e.mapDefined(Object.keys(e.Diagnostics),(function(t){var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:void 0}));function a(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;i&&!e.tryAddToSet(i,a)||t.insertCommentBeforeLine(r,a,n," @ts-ignore")}t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var o=i.sourceFile,s=i.program,c=i.span,l=i.host,u=i.formatContext;if(e.isInJSFile(o)&&e.isCheckJsEnabledForFile(o,s.getCompilerOptions())){var _=o.checkJsDirective?"":e.getNewLineOrDefaultFromHost(l,u.options),d=[t.createCodeFixActionWithoutFixAll(r,[t.createFileTextChanges(o.fileName,[e.createTextChange(o.checkJsDirective?e.createTextSpanFromBounds(o.checkJsDirective.pos,o.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+_)])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(o,c.start)&&d.unshift(t.createCodeFixAction(r,e.textChanges.ChangeTracker.with(i,(function(e){return a(e,o,c.start)})),e.Diagnostics.Ignore_this_error_message,n,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),d}},fixIds:[n],getAllCodeActions:function(r){var n=new e.Set;return t.codeFixAll(r,i,(function(t,r){e.textChanges.isValidLocationToAddComment(r.file,r.start)&&a(t,r.file,r.start,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){function r(t){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(t.program,t.host)}}function n(t,n,a,c,l,u,_){var p=t.getDeclarations();if(p&&p.length){var g=c.program.getTypeChecker(),m=e.getEmitScriptTarget(c.program.getCompilerOptions()),y=p[0],h=e.getSynthesizedDeepClone(e.getNameOfDeclaration(y),!1),v=function(t){return 4&t?e.factory.createToken(123):16&t?e.factory.createToken(122):void 0}(e.getEffectiveModifierFlags(y)),b=v?e.factory.createNodeArray([v]):void 0,x=g.getWidenedType(g.getTypeOfSymbolAtLocation(t,n)),D=!!(16777216&t.flags),S=!!(8388608&n.flags),E=e.getQuotePreference(a,l);switch(y.kind){case 164:case 165:var T=0===E?268435456:void 0,C=g.typeToTypeNode(x,n,T,r(c));u&&(k=d(C,m))&&(C=k.typeNode,f(u,k.symbols)),_(e.factory.createPropertyDeclaration(void 0,b,h,D?e.factory.createToken(57):void 0,C,void 0));break;case 170:case 171:var k,A=g.typeToTypeNode(x,n,void 0,r(c)),N=e.getAllAccessorDeclarations(p,y),F=N.secondAccessor?[N.firstAccessor,N.secondAccessor]:[N.firstAccessor];u&&(k=d(A,m))&&(A=k.typeNode,f(u,k.symbols));for(var w=0,P=F;w<P.length;w++){var I=P[w];if(e.isGetAccessorDeclaration(I))_(e.factory.createGetAccessorDeclaration(void 0,b,h,e.emptyArray,A,S?void 0:s(E)));else{e.Debug.assertNode(I,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var O=e.getSetAccessorValueParameter(I),L=O&&e.isIdentifier(O.name)?e.idText(O.name):void 0;_(e.factory.createSetAccessorDeclaration(void 0,b,h,o(1,[L],[A],1,!1),S?void 0:s(E)))}}break;case 166:case 167:var M=g.getSignaturesOfType(x,0);if(!e.some(M))break;if(1===p.length){e.Debug.assert(1===M.length,"One declaration implies one signature"),j(E,M[0],b,h,S?void 0:s(E));break}for(var R=0,B=M;R<B.length;R++)j(E,B[R],e.getSynthesizedDeepClones(b,!1),e.getSynthesizedDeepClone(h,!1));S||(p.length>M.length?j(E,g.getSignatureFromDeclaration(p[p.length-1]),b,h,s(E)):(e.Debug.assert(p.length===M.length,"Declarations and signatures should match count"),_(function(t,n,i,a,c,l,u,_){for(var d=a[0],p=a[0].minArgumentCount,f=!1,g=0,m=a;g<m.length;g++){var y=m[g];p=Math.min(y.minArgumentCount,p),e.signatureHasRestParameter(y)&&(f=!0),y.parameters.length>=d.parameters.length&&(!e.signatureHasRestParameter(y)||e.signatureHasRestParameter(d))&&(d=y)}var h=d.parameters.length-(e.signatureHasRestParameter(d)?1:0),v=d.parameters.map((function(e){return e.name})),b=o(h,v,void 0,p,!1);if(f){var x=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(129)),D=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),v[h]||"rest",h>=p?e.factory.createToken(57):void 0,x,void 0);b.push(D)}return function(t,r,n,i,a,o,c){return e.factory.createMethodDeclaration(void 0,t,void 0,r,n?e.factory.createToken(57):void 0,void 0,a,o,s(c))}(u,c,l,0,b,function(t,n,i,a){if(e.length(t)){var o=n.getUnionType(e.map(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,a,void 0,r(i))}}(a,t,n,i),_)}(g,c,n,M,h,D,b,E))))}}function j(e,t,r,a,o){var s=i(167,c,e,t,o,a,r,D,n,u);s&&_(s)}}function i(t,n,i,a,o,s,c,l,u,_){var p=n.program,g=p.getTypeChecker(),m=e.getEmitScriptTarget(p.getCompilerOptions()),y=1073742081|(0===i?268435456:0),h=g.signatureToSignatureDeclaration(a,t,u,y,r(n));if(h){var v=h.typeParameters,b=h.parameters,x=h.type;if(_){if(v){var D=e.sameMap(v,(function(t){var r,n=t.constraint,i=t.default;return n&&(r=d(n,m))&&(n=r.typeNode,f(_,r.symbols)),i&&(r=d(i,m))&&(i=r.typeNode,f(_,r.symbols)),e.factory.updateTypeParameterDeclaration(t,t.name,n,i)}));v!==D&&(v=e.setTextRange(e.factory.createNodeArray(D,v.hasTrailingComma),v))}var S=e.sameMap(b,(function(t){var r=d(t.type,m),n=t.type;return r&&(n=r.typeNode,f(_,r.symbols)),e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(b!==S&&(b=e.setTextRange(e.factory.createNodeArray(S,b.hasTrailingComma),b)),x){var E=d(x,m);E&&(x=E.typeNode,f(_,E.symbols))}}var T=l?e.factory.createToken(57):void 0,C=h.asteriskToken;return e.isFunctionExpression(h)?e.factory.updateFunctionExpression(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,x,null!=o?o:h.body):e.isArrowFunction(h)?e.factory.updateArrowFunction(h,c,v,b,x,h.equalsGreaterThanToken,null!=o?o:h.body):e.isMethodDeclaration(h)?e.factory.updateMethodDeclaration(h,void 0,c,C,null!=s?s:e.factory.createIdentifier(""),T,v,b,x,o):void 0}}function a(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var l=d(c,a);l&&(f(r,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function o(t,r,n,i,a){for(var o=[],s=0;s<t;s++){var c=e.factory.createParameterDeclaration(void 0,void 0,void 0,r&&r[s]||"arg"+s,void 0!==i&&s>=i?e.factory.createToken(57):void 0,a?void 0:n&&n[s]||e.factory.createKeywordTypeNode(129),void 0);o.push(c)}return o}function s(t){return c(e.Diagnostics.Method_not_implemented.message,t)}function c(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function l(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=_(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s<c.length;s++){var l=c[s],d=l[0],p=l[1],f=_(o,d);void 0===f?t.insertNodeAtObjectStart(r,o,u(d,p)):t.replaceNode(r,f.initializer,p)}}else t.insertNodeAtObjectStart(r,i,u("compilerOptions",e.factory.createObjectLiteralExpression(n.map((function(e){return u(e[0],e[1])})),!0)))}}function u(t,r){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(t),r)}function _(t,r){return e.find(t.properties,(function(t){return e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r}))}function d(t,r){var n,i=e.visitNode(t,(function t(i){var a;if(e.isLiteralImportTypeNode(i)&&i.qualifier){var o=e.getFirstIdentifier(i.qualifier),s=e.getNameForExportedSymbol(o.symbol,r),c=s!==o.text?p(i.qualifier,e.factory.createIdentifier(s)):i.qualifier;n=e.append(n,o.symbol);var l=null===(a=i.typeArguments)||void 0===a?void 0:a.map(t);return e.factory.createTypeReferenceNode(c,l)}return e.visitEachChild(i,t,e.nullTransformationContext)}));if(n&&i)return{typeNode:i,symbols:n}}function p(t,r){return 79===t.kind?r:e.factory.createQualifiedName(p(t.left,r),t.right)}function f(e,t){t.forEach((function(t){return e.addImportFromExportedSymbol(t,!0)}))}t.createMissingMemberNodes=function(e,t,r,i,a,o,s){for(var c=e.symbol.members,l=0,u=t;l<u.length;l++){var _=u[l];c.has(_.escapedName)||n(_,e,r,i,a,o,s)}},t.getNoopSymbolTrackerWithResolver=r,t.createSignatureDeclarationFromSignature=i,t.createSignatureDeclarationFromCallExpression=function(t,n,i,l,u,_,d){var p=e.getQuotePreference(n.sourceFile,n.preferences),f=e.getEmitScriptTarget(n.program.getCompilerOptions()),g=r(n),m=n.program.getTypeChecker(),y=e.isInJSFile(d),h=l.typeArguments,v=l.arguments,b=l.parent,x=y?void 0:m.getContextualType(l),D=e.map(v,(function(t){return e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)?t.name.text:void 0})),S=y?[]:e.map(v,(function(e){return a(m,i,m.getBaseTypeOfLiteralType(m.getTypeAtLocation(e)),d,f,void 0,g)})),E=_?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(_)):void 0,T=e.isYieldExpression(b)?e.factory.createToken(41):void 0,C=y||void 0===h?void 0:e.map(h,(function(t,r){return e.factory.createTypeParameterDeclaration(84+h.length-1<=90?String.fromCharCode(84+r):"T"+r)})),k=o(v.length,D,S,void 0,y),A=y||void 0===x?void 0:m.typeToTypeNode(x,d,void 0,g);return 167===t?e.factory.createMethodDeclaration(void 0,E,T,u,void 0,C,k,A,e.isInterfaceDeclaration(d)?void 0:s(p)):e.factory.createFunctionDeclaration(void 0,E,T,u,C,k,A,c(e.Diagnostics.Function_not_implemented.message,p))},t.typeToAutoImportableTypeNode=a,t.createStubbedBody=c,t.setJsonCompilerOptionValues=l,t.setJsonCompilerOptionValue=function(e,t,r,n){l(e,t,[[r,n]])},t.createJsonPropertyAssignment=u,t.findJsonProperty=_,t.tryGetAutoImportableReferenceFromTypeNode=d,t.importSymbols=f}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){function r(t){return e.isParameterPropertyDeclaration(t,t.parent)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function n(t,r){return e.isIdentifier(r)?e.factory.createIdentifier(t):e.factory.createStringLiteral(t)}function a(t,r,n){var i=r?n.name:e.factory.createThis();return e.isIdentifier(t)?e.factory.createPropertyAccessExpression(i,t):e.factory.createElementAccessExpression(i,e.factory.createStringLiteralFromNode(t))}function o(t,i,a,o,s){void 0===s&&(s=!0);var l=e.getTokenAtPosition(t,a),u=a===o&&s,_=e.findAncestor(l.parent,r);if(!_||!e.nodeOverlapsWithStartEnd(_.name,t,a,o)&&!u)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!function(t){return e.isIdentifier(t)||e.isStringLiteral(t)}(_.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if(124!=(124|e.getEffectiveModifierFlags(_)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var d=_.name.text,p=e.startsWithUnderscore(d),f=n(p?d:e.getUniqueName("_"+d,t),_.name),g=n(p?e.getUniqueName(d.substring(1),t):d,_.name);return{isStatic:e.hasStaticModifier(_),isReadonly:e.hasEffectiveReadonlyModifier(_),type:c(_,i),container:162===_.kind?_.parent.parent:_.parent,originalName:_.name.text,declaration:_,fieldName:f,accessorName:g,renameAccessor:p}}function s(t,r,n,i,a){e.isParameterPropertyDeclaration(i,i.parent)?t.insertNodeAtClassStart(r,a,n):e.isPropertyAssignment(i)?t.insertNodeAfterComma(r,i,n):t.insertNodeAfter(r,i,n)}function c(t,r){var n=e.getTypeAnnotationNode(t);if(e.isPropertyDeclaration(t)&&n&&t.questionToken){var a=r.getTypeChecker(),o=a.getTypeFromTypeNode(n);if(!a.isTypeAssignableTo(a.getUndefinedType(),o)){var s=e.isUnionTypeNode(n)?n.types:[n];return e.factory.createUnionTypeNode(i(i([],s,!0),[e.factory.createKeywordTypeNode(151)],!1))}}return n}t.generateAccessorFromProperty=function(t,r,n,i,c,l){var u=o(t,r,n,i);if(u&&!e.refactor.isRefactorErrorInfo(u)){var _,d,p=e.textChanges.ChangeTracker.fromContext(c),f=u.isStatic,g=u.isReadonly,m=u.fieldName,y=u.accessorName,h=u.originalName,v=u.type,b=u.container,x=u.declaration;if(e.suppressLeadingAndTrailingTrivia(m),e.suppressLeadingAndTrailingTrivia(y),e.suppressLeadingAndTrailingTrivia(x),e.suppressLeadingAndTrailingTrivia(b),e.isClassLike(b)){var D=e.getEffectiveModifierFlags(x);if(e.isSourceFileJS(t)){var S=e.createModifiers(D);_=S,d=S}else _=e.createModifiers(function(e){return e&=-65,16&(e&=-9)||(e|=4),e}(D)),d=e.createModifiers(function(e){return e&=-5,8|(e&=-17)}(D))}!function(t,r,n,i,a,o){e.isPropertyDeclaration(n)?function(t,r,n,i,a,o){var s=e.factory.updatePropertyDeclaration(n,n.decorators,o,a,n.questionToken||n.exclamationToken,i,n.initializer);t.replaceNode(r,n,s)}(t,r,n,i,a,o):e.isPropertyAssignment(n)?function(t,r,n,i){var a=e.factory.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)}(t,r,n,a):t.replaceNode(r,n,e.factory.updateParameterDeclaration(n,n.decorators,o,n.dotDotDotToken,e.cast(a,e.isIdentifier),n.questionToken,n.type,n.initializer))}(p,t,x,v,m,d);var E=function(t,r,n,i,o,s){return e.factory.createGetAccessorDeclaration(void 0,i,r,void 0,n,e.factory.createBlock([e.factory.createReturnStatement(a(t,o,s))],!0))}(m,y,v,_,f,b);if(e.suppressLeadingAndTrailingTrivia(E),s(p,t,E,x,b),g){var T=e.getFirstConstructorWithBody(b);T&&function(t,r,n,i,a){n.body&&n.body.forEachChild((function n(o){e.isElementAccessExpression(o)&&108===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.argumentExpression,e.factory.createStringLiteral(i)),e.isPropertyAccessExpression(o)&&108===o.expression.kind&&o.name.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.name,e.factory.createIdentifier(i)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(n)}))}(p,t,T,m.text,h)}else{var C=function(t,r,n,i,o,s){return e.factory.createSetAccessorDeclaration(void 0,i,r,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,n)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(a(t,o,s),e.factory.createIdentifier("value")))],!0))}(m,y,v,_,f,b);e.suppressLeadingAndTrailingTrivia(C),s(p,t,C,x,b)}return p.getChanges()}},t.getAccessorConvertiblePropertyAtPosition=o,t.getAllSupers=function(t,r){for(var n=[];t;){var i=e.getClassExtendsHeritageElement(t),a=i&&r.getSymbolAtLocation(i.expression);if(!a)break;var o=2097152&a.flags?r.getAliasedSymbol(a):a,s=o.declarations&&e.find(o.declarations,e.isClassLike);if(!s)break;n.push(s),t=s}return n}}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="invalidImportSyntax";function n(n,i,a,o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(i,a,o)}));return t.createCodeFixActionWithoutFixAll(r,s,[e.Diagnostics.Replace_import_with_0,s[0].textChanges[0].newText])}function i(i,a){var o=i.program.getTypeChecker().getTypeAtLocation(a);if(!o.symbol||!o.symbol.originatingImport)return[];var s=[],c=o.symbol.originatingImport;if(e.isImportCall(c)||e.addRange(s,function(t,r){var i=e.getSourceFileOfNode(r),a=e.getNamespaceDeclarationNode(r),o=t.program.getCompilerOptions(),s=[];return s.push(n(t,i,r,e.makeImport(a.name,void 0,r.moduleSpecifier,e.getQuotePreference(i,t.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(n(t,i,r,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a.name,e.factory.createExternalModuleReference(r.moduleSpecifier)))),s}(i,c)),e.isExpression(a)&&(!e.isNamedDeclaration(a.parent)||a.parent.name!==a)){var l=i.sourceFile,u=e.textChanges.ChangeTracker.with(i,(function(t){return t.replaceNode(l,a,e.factory.createPropertyAccessExpression(a,"default"),{})}));s.push(t.createCodeFixActionWithoutFixAll(r,u,e.Diagnostics.Use_synthetic_default_member))}return s}t.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:function(t){var r=t.sourceFile,n=e.Diagnostics.This_expression_is_not_callable.code===t.errorCode?206:207,a=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(function(e){return e.kind===n}));return a?i(t,a.expression):[]}}),t.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(t){var r=t.sourceFile,n=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(function(e){return e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length}));return n?i(t,n):[]}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="strictClassInitialization",n="addMissingPropertyDefiniteAssignmentAssertions",i="addMissingPropertyUndefinedType",a="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(t,r){var n=e.getTokenAtPosition(t,r);return e.isIdentifier(n)?e.cast(n.parent,e.isPropertyDeclaration):void 0}function c(i,a){var o=e.textChanges.ChangeTracker.with(i,(function(e){return l(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)}function l(t,r,n){var i=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,e.factory.createToken(53),n.type,n.initializer);t.replaceNode(r,n,i)}function u(n,a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return _(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)}function _(t,r,n){var i=e.factory.createKeywordTypeNode(151),a=n.type,o=e.isUnionTypeNode(a)?a.types.concat(i):[a,i];t.replaceNode(r,a,e.factory.createUnionTypeNode(o))}function d(t,r,n,i){var a=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function p(e,t){return f(e,e.getTypeFromTypeNode(t.type))}function f(t,r){if(512&r.flags)return r===t.getFalseType()||r===t.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(r.isStringLiteral())return e.factory.createStringLiteral(r.value);if(r.isNumberLiteral())return e.factory.createNumericLiteral(r.value);if(2048&r.flags)return e.factory.createBigIntLiteral(r.value);if(r.isUnion())return e.firstDefined(r.types,(function(e){return f(t,e)}));if(r.isClass()){var n=e.getClassLikeDeclarationOfSymbol(r.symbol);if(!n||e.hasSyntacticModifier(n,128))return;var i=e.getFirstConstructorWithBody(n);if(i&&i.parameters.length)return;return e.factory.createNewExpression(e.factory.createIdentifier(r.symbol.name),void 0,void 0)}return t.isArrayLikeType(r)?e.factory.createArrayLiteralExpression():void 0}t.registerCodeFix({errorCodes:o,getCodeActions:function(n){var i=s(n.sourceFile,n.span.start);if(i){var o=[u(n,i),c(n,i)];return e.append(o,function(n,i){var o=p(n.program.getTypeChecker(),i);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return d(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)}}(n,i)),o}},fixIds:[n,i,a],getAllCodeActions:function(r){return t.codeFixAll(r,o,(function(t,o){var c=s(o.file,o.start);if(c)switch(r.fixId){case n:l(t,o.file,c);break;case i:_(t,o.file,c);break;case a:var u=p(r.program.getTypeChecker(),c);if(!u)return;d(t,o.file,c,u);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="requireInTs",n=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function i(t,r,n){var i=n.allowSyntheticDefaults,a=n.defaultImportName,o=n.namedImports,s=n.statement,c=n.required;t.replaceNode(r,s,a&&!i?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a,e.factory.createExternalModuleReference(c)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),c))}function a(t,r,n){var i=e.getTokenAtPosition(t,n).parent;if(!e.isRequireCall(i,!0))throw e.Debug.failBadSyntaxKind(i);var a=e.cast(i.parent,e.isVariableDeclaration),o=e.tryCast(a.name,e.isIdentifier),s=e.isObjectBindingPattern(a.name)?function(t){for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];if(!e.isIdentifier(a.name)||a.initializer)return;r.push(e.factory.createImportSpecifier(e.tryCast(a.propertyName,e.isIdentifier),a.name))}if(r.length)return e.factory.createNamedImports(r)}(a.name):void 0;if(o||s)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(r.getCompilerOptions()),defaultImportName:o,namedImports:s,statement:e.cast(a.parent.parent,e.isVariableStatement),required:e.first(i.arguments)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=a(n.sourceFile,n.program,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Convert_require_to_import,r,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=a(r.file,e.program,r.start);n&&i(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="useDefaultImport",n=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}}function a(t,r,n,i){t.replaceNode(r,n.importNode,e.makeImport(n.name,void 0,n.moduleSpecifier,e.getQuotePreference(r,i)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span.start,c=i(o,s);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c,n.preferences)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Convert_to_default_import,r,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start);n&&a(t,r.file,n,e.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="useBigintLiteral",n=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),e.isNumericLiteral);if(i){var a=i.getText(r)+"n";t.replaceNode(r,i,e.factory.createBigIntLiteral(a))}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(100===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(198===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=function(t){for(var r=[],n=t;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}}(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function a(t,r){var n=e.getTokenAtPosition(t,r),i=e.cast(n.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(i.parent))return{indexSignature:i,container:e.isInterfaceDeclaration(i.parent)?i.parent:e.cast(i.parent.parent,e.isTypeAliasDeclaration)}}function o(t,r,n){var a,o,s=n.indexSignature,c=n.container,l=(e.isInterfaceDeclaration(c)?c.members:c.type.members).filter((function(t){return!e.isIndexSignatureDeclaration(t)})),u=e.first(s.parameters),_=e.factory.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type),d=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(s)?e.factory.createModifier(143):void 0,_,void 0,s.questionToken,s.type),p=e.factory.createIntersectionTypeNode(i(i(i([],e.getAllSuperTypeNodes(c),!0),[d],!1),l.length?[e.factory.createTypeLiteralNode(l)]:e.emptyArray,!0));t.replaceNode(r,c,(a=c,o=p,e.factory.createTypeAliasDeclaration(a.decorators,a.modifiers,a.name,a.typeParameters,o)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,s=n.span,c=a(i,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return o(e,i,c)})),u=e.idText(c.container.name);return[t.createCodeFixAction(r,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],r,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&o(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})}(u||(u={})),function(e){!function(t){var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),(function(e){return 131===e.kind})),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,r);c&&103!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.decorators,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.sourceFile,r.span),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(e.sourceFile,r),e)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="fixConvertConstToLet",n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=n.program,s=function(t,r,n){var i,a=n.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,r)),o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,85,t);if(void 0!==s)return e.createRange(s.pos,s.end)}}(i,a.start,o);if(void 0!==s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return function(e,t,r){e.replaceRangeWithText(t,r,"let")}(e,i,s)}));return[t.createCodeFixAction(r,c,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_const_to_let)]}},fixIds:[r]})}(u||(u={})),function(e){!function(t){var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,r.code);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addVoidToPromise",n=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var u=function(t){var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}}(l.parent.parent);if(e.some(u)){var _=u[0],d=!e.isUnionTypeNode(_)&&!e.isParenthesizedTypeNode(_)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([_,e.factory.createKeywordTypeNode(114)]).types[0]);d&&t.insertText(r,_.pos,"("),t.insertText(r,_.end,d?") | void":" | void")}else{var p=s.getResolvedSignature(o.parent),f=null==p?void 0:p.parameters[0],g=f&&s.getTypeOfSymbolAtLocation(f,l.parent.parent);e.isInJSFile(l)?(!g||3&g.flags)&&(t.insertText(r,l.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,l.parent.parent.pos),"/** @type {Promise<void>} */(")):(!g||2&g.flags)&&t.insertText(r,l.parent.parent.expression.end,"<void>")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span,n.program)}));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){return i(t,n.file,n,r.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="Convert export",n={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},i={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(n,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&r?o.parent:e.getParentNodeInSpan(o,n,a);if(!s||!(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=e.isSourceFile(s.parent)?s.parent.symbol:s.parent.parent.symbol,l=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?513:0),u=!!(512&l);if(!(1&l)||!u&&c.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var _=i.getTypeChecker(),d=function(t){return e.isIdentifier(t)&&_.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 254:case 255:case 256:case 258:case 257:case 259:if(!(g=s).name)return;return d(g.name)||{exportNode:g,exportName:g.name,wasDefault:u,exportingModuleSymbol:c};case 235:var p=s;if(!(2&p.declarationList.flags)||1!==p.declarationList.declarations.length)return;var f=e.first(p.declarationList.declarations);if(!f.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),d(f.name)||{exportNode:p,exportName:f.name,wasDefault:u,exportingModuleSymbol:c};case 269:var g;if((g=s).isExportEquals)return;return d(g.expression)||{exportNode:g,exportName:g.expression,wasDefault:u,exportingModuleSymbol:c};default:return}}function s(t,r){return e.factory.createImportSpecifier(t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function c(t,r){return e.factory.createExportSpecifier(t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var l=c.wasDefault?n:i;return[{name:r,description:l.description,actions:[l]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[a(a({},n),{notApplicableReason:c.error}),a(a({},i),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(r,a){e.Debug.assert(a===n.name||a===i.name,"Unexpected action name");var l=o(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u=e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){(function(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,u=c(l.text,l.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([u])))}else n.delete(t,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var _=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 254:case 255:case 256:n.insertNodeAfter(t,_,e.factory.createToken(88));break;case 235:var d=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)&&!d.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(d.initializer,"Initializer was previously known to be present")));break}case 258:case 257:case 259:n.deleteModifier(t,_),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.fail("Unexpected exportNode kind "+o.kind)}}})(t,n,i,r.getTypeChecker()),function(t,r,n,i){var a=r.wasDefault,o=r.exportName,l=r.exportingModuleSymbol,u=t.getTypeChecker(),_=e.Debug.checkDefined(u.getSymbolAtLocation(o),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,_,l,o.text,a,(function(t){var r=t.getSourceFile();a?function(t,r,n,i){var a=r.parent;switch(a.kind){case 204:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 268:case 273:var o=a;n.replaceNode(t,o,s(i,o.name.text));break;case 265:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref"),o=s(i,r.text);var l=c.namedBindings;if(l)if(266===l.kind){n.deleteRange(t,{pos:r.getStart(t),end:l.getStart(t)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,_=e.makeImport(void 0,[s(i,r.text)],c.parent.moduleSpecifier,u);n.insertNodeAfter(t,c.parent,_)}else n.delete(t,r),n.insertNodeAtEndOfList(t,l.elements,o);else n.replaceNode(t,r,e.factory.createNamedImports([o]));break;default:e.Debug.failBadSyntaxKind(a)}}(r,t,n,o.text):function(t,r,n){var i=r.parent;switch(i.kind){case 204:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 268:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 273:n.replaceNode(t,i,c("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind "+i.kind)}}(r,t,n)}))}(r,n,i,a)}(r.file,r.program,l,t,r.cancellationToken)}));return{edits:u,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){var r="Convert import",n={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},i={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};if(!(o.getEnd()<i.start+i.length)){var s=o.importClause;return s?s.namedBindings?s.namedBindings:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function s(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function c(t,r,n){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,r,n&&n.length?e.factory.createNamedImports(n):void 0),t.moduleSpecifier)}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var l=266===c.kind?n:i;return[{name:r,description:l.description,actions:[l]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:r,description:n.description,actions:[a(a({},n),{notApplicableReason:c.error})]},{name:r,description:i.description,actions:[a(a({},i),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(r,a){e.Debug.assert(a===n.name||a===i.name,"Unexpected action name");var l=o(r);return e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return n=r.file,i=r.program,a=t,o=l,u=i.getTypeChecker(),void(266===o.kind?function(t,r,n,i,a){var o=!1,l=[],u=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,(function(t){if(e.isPropertyAccessOrQualifiedName(t.parent)){var n=s(t.parent).text;r.resolveName(n,t,67108863,!0)&&u.set(n,!0),e.Debug.assert(function(t){return e.isPropertyAccessExpression(t)?t.expression:t.left}(t.parent)===t,"Parent expression should match id"),l.push(t.parent)}else o=!0}));for(var _=new e.Map,d=0,p=l;d<p.length;d++){var f=p[d],g=s(f).text,m=_.get(g);void 0===m&&_.set(g,m=u.has(g)?e.getUniqueName(g,t):g),n.replaceNode(t,f,e.factory.createIdentifier(m))}var y=[];_.forEach((function(t,r){y.push(e.factory.createImportSpecifier(t===r?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(t)))}));var h=i.parent.parent;o&&!a?n.insertNodeAfter(t,h,c(h,void 0,y)):n.replaceNode(t,h,c(h,o?e.factory.createIdentifier(i.name.text):void 0,y))}(n,u,a,o,e.getAllowSyntheticDefaultImports(i.getCompilerOptions())):function(t,r,n,i){var a=i.parent.parent,o=a.moduleSpecifier,s=new e.Set;i.elements.forEach((function(e){var t=r.getSymbolAtLocation(e.name);t&&s.add(t)}));var l=o&&e.isStringLiteral(o)?e.codefix.moduleSpecifierToValidIdentifier(o.text,99):"module";for(var u=i.elements.some((function(n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,t,(function(t){var n=r.resolveName(l,t,67108863,!0);return!!n&&(!s.has(n)||e.isExportSpecifier(t.parent))}))}))?e.getUniqueName(l,t):l,_=new e.Set,d=function(i){var a=(i.propertyName||i.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,(function(r){var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(u),a);e.isShorthandPropertyAssignment(r.parent)?n.replaceNode(t,r.parent,e.factory.createPropertyAssignment(r.text,o)):e.isExportSpecifier(r.parent)?_.add(i):n.replaceNode(t,r,o)}))},p=0,f=i.elements;p<f.length;p++)d(f[p]);if(n.replaceNode(t,i,e.factory.createNamespaceImport(e.factory.createIdentifier(u))),_.size){var g=e.arrayFrom(_.values()).map((function(t){return e.factory.createImportSpecifier(t.propertyName&&e.factory.createIdentifier(t.propertyName.text),e.factory.createIdentifier(t.name.text))}));n.insertNodeAfter(t,i.parent.parent,c(a,void 0,g))}}(n,u,a,o));var n,i,a,o,u})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){var t;(function(r){var n="Convert to optional chain expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),o={name:n,description:i,kind:"refactor.rewrite.expression.optionalChain"};function s(t){return e.isBinaryExpression(t)||e.isConditionalExpression(t)}function c(t){return s(t)||function(t){return e.isExpressionStatement(t)||e.isReturnStatement(t)||e.isVariableStatement(t)}(t)}function l(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=0===a.length;if(!o||r){var l=e.getTokenAtPosition(n,a.start),d=e.findTokenOnLeftOfPosition(n,a.start+a.length),f=e.createTextSpanFromBounds(l.pos,d&&d.end>=l.pos?d.getEnd():l.getEnd()),g=o?function(e){for(;e.parent;){if(c(e)&&!c(e.parent))return e;e=e.parent}}(l):function(e,t){for(;e.parent;){if(c(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(l,f),m=g&&c(g)?function(t){if(s(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&s(n)?n:void 0}return t.expression&&s(t.expression)?t.expression:void 0}(g):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=i.getTypeChecker();return e.isConditionalExpression(m)?function(t,r){var n=t.condition,i=p(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&_(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=u(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(m,y):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=p(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=u(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(m)}}function u(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=_(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=_(t,r);return a&&n.push(a),n.length>0?n:void 0}function _(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return function(t,r){for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&d(t)!==d(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(d(t)!==d(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}(t,r)?r:void 0}function d(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?d(t.name):e.isElementAccessExpression(t)?d(t.argumentExpression):void 0}function p(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?p(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function f(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=f(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(n,{kinds:[o.kind],getAvailableActions:function(r){var s=l(r,"invoked"===r.triggerReason);return s?t.isRefactorErrorInfo(s)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[a(a({},o),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:n,description:i,actions:[o]}]:e.emptyArray},getEditsForAction:function(r,n){var i=l(r);return e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,l=s[s.length-1],u=f(r,o,s);u&&(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u)||e.isCallExpression(u))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,l,o,u):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(u,e.factory.createToken(60),c.whenFalse)))}(r.file,r.program.getTypeChecker(),t,i)})),renameFilename:void 0,renameLocation:void 0}}})})((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(u||(u={})),function(e){var t;(function(r){var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 166:case 167:case 172:case 169:case 173:case 254:return!0}return!1}function s(t,r,n){var i=e.getTokenAtPosition(t,r),a=e.findAncestor(i,o);if(a){var s=n.getTypeChecker(),c=a.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(r){return e.getSourceFileOfNode(r)===t}))&&o(l[0])){var u=l[0].kind;if(e.every(l,(function(e){return e.kind===u}))){var _=l;if(!e.some(_,(function(t){return!!t.typeParameters||e.some(t.parameters,(function(t){return!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)}))}))){var d=e.mapDefined(_,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(d)===e.length(l)){var p=s.getReturnTypeOfSignature(d[0]);if(e.every(d,(function(e){return s.getReturnTypeOfSignature(e)===p})))return _}}}}}}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(t){var r=t.file,n=t.startPosition,i=t.program,a=s(r,n,i);if(a){var o=i.getTypeChecker(),c=a[a.length-1],l=c;switch(c.kind){case 166:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,u(a),c.type);break;case 167:l=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,u(a),c.type,c.body);break;case 172:l=e.factory.updateCallSignature(c,c.typeParameters,u(a),c.type);break;case 169:l=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,u(a),c.body);break;case 173:l=e.factory.updateConstructSignature(c,c.typeParameters,u(a),c.type);break;case 254:l=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,u(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l!==c)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNodeRange(r,a[0],a[a.length-1],l)}))}}function u(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,_)))])}function _(t){var r=e.map(t.parameters,d);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(function(t){return!!e.length(e.getSyntheticLeadingComments(t))}))?0:1)}function d(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(129)),t),n=t.symbol&&t.symbol.getDocumentationComment(o);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n"+i.split("\n").map((function(e){return" * "+e})).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:function(t){return s(t.file,t.startPosition,t.program)?[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(u||(u={})),function(e){var t;(function(r){var n,i,o,s,c="Extract Symbol",l={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},u={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function _(r){var n=r.kind,i=p(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),o=i.targetRange;if(void 0===o){if(!i.errors||0===i.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var s=[];return t.refactorKindBeginsWith(u.kind,n)&&s.push({name:c,description:u.description,actions:[a(a({},u),{notApplicableReason:N(i.errors)})]}),t.refactorKindBeginsWith(l.kind,n)&&s.push({name:c,description:l.description,actions:[a(a({},l),{notApplicableReason:N(i.errors)})]}),s}var _=function(t,r){var n=m(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope,c=i.map((function(t,r){var n,i,a=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),l=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 169:return"constructor";case 211:case 254:return t.name?"function '"+t.name.text+"'":e.ANONYMOUS;case 212:return"arrow function";case 167:return"method '"+t.name.getText()+"'";case 170:return"'get "+t.name.getText()+"'";case 171:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t,"Unexpected scope kind "+t.kind)}}(t):e.isClassLike(t)?function(e){return 255===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 260===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(t);return 1===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}));return c}(o,r);if(void 0===_)return e.emptyArray;for(var d,f,g=[],y=new e.Map,h=[],v=new e.Map,b=0,x=0,D=_;x<D.length;x++){var S=D[x],E=S.functionExtraction,T=S.constantExtraction,C=E.description;if(t.refactorKindBeginsWith(u.kind,n)&&(0===E.errors.length?y.has(C)||(y.set(C,!0),g.push({description:C,name:"function_scope_"+b,kind:u.kind})):d||(d={description:C,name:"function_scope_"+b,notApplicableReason:N(E.errors),kind:u.kind})),t.refactorKindBeginsWith(l.kind,n))if(0===T.errors.length){var k=T.description;v.has(k)||(v.set(k,!0),h.push({description:k,name:"constant_scope_"+b,kind:l.kind}))}else f||(f={description:C,name:"constant_scope_"+b,notApplicableReason:N(T.errors),kind:l.kind});b++}var A=[];return g.length?A.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:g}):r.preferences.provideRefactorNotApplicableReason&&d&&A.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[d]}),h.length?A.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:h}):r.preferences.provideRefactorNotApplicableReason&&f&&A.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[f]}),A.length?A:e.emptyArray;function N(e){var t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function d(t,r){var n=p(t.file,e.getRefactorContextSpan(t)).targetRange,a=/^function_scope_(\d+)$/.exec(r);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(t,r,n){var a=m(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.functionErrorsPerScope,_=s.exposedVariableDeclarations;return e.Debug.assert(!u[n].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o,s){var c,l,u=n.usages,_=n.typeParameterUsages,d=n.substitutions,p=s.program.getTypeChecker(),f=e.getEmitScriptTarget(s.program.getCompilerOptions()),g=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),m=r.getSourceFile(),x=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",m),D=e.isInJSFile(r),E=e.factory.createIdentifier(x),T=[],C=[];u.forEach((function(t,n){var i;if(!D){var a=p.getTypeOfSymbolAtLocation(t.symbol,t.node);a=p.getBaseTypeOfLiteralType(a),i=e.codefix.typeToAutoImportableTypeNode(p,g,a,r,f,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,void 0,n,void 0,i);T.push(o),2===t.usage&&(l||(l=[])).push(t),C.push(e.factory.createIdentifier(n))}));var k=e.arrayFrom(_.values()).map((function(e){return{type:e,declaration:y(e)}})).sort(h),A=0===k.length?void 0:k.map((function(e){return e.declaration})),N=void 0!==A?A.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)})):void 0;if(e.isExpression(t)&&!D){var F=p.getContextualType(t);c=p.typeToTypeNode(F,r,1)}var w,P=function(t,r,n,i,a){var o,s=void 0!==n||r.length>0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(t)]);if(s||i.size){var u=e.visitNodes(l,(function t(a){if(!c&&e.isReturnStatement(a)&&s){var l=v(r,n);return a.expression&&(o||(o="__return"),l.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===l.length?e.factory.createReturnStatement(l[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(l))}var u=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=u,d})).slice();if(s&&!a&&e.isStatement(t)){var _=v(r,n);1===_.length?u.push(e.factory.createReturnStatement(_[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(_)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0}}(t,a,l,d,!!(o.facts&i.HasReturn)),I=P.body,O=P.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(I),e.isClassLike(r)){var L=D?[]:[e.factory.createModifier(121)];o.facts&i.InStaticRegion&&L.push(e.factory.createModifier(124)),o.facts&i.IsAsyncFunction&&L.push(e.factory.createModifier(130)),w=e.factory.createMethodDeclaration(void 0,L.length?L:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,E,void 0,A,T,c,I)}else w=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(130)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,E,A,T,c,I);var M=e.textChanges.ChangeTracker.fromContext(s),R=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),(function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)}))}((b(o.range)?e.last(o.range):o.range).end,r);R?M.insertNodeBefore(s.file,R,w,!0):M.insertNodeAtEndOfScope(s.file,r,w),g.writeFixes(M);var B=[],j=function(t,r,n){var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(r,o,x),J=e.factory.createCallExpression(j,N,C);if(o.facts&i.IsGenerator&&(J=e.factory.createYieldExpression(e.factory.createToken(41),J)),o.facts&i.IsAsyncFunction&&(J=e.factory.createAwaitExpression(J)),S(t)&&(J=e.factory.createJsxExpression(void 0,J)),a.length&&!l)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var V=a[0];B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(V.name),void 0,e.getSynthesizedDeepClone(V.type),J)],V.parent.flags)))}else{for(var U=[],K=[],z=a[0].parent.flags,G=!1,W=0,q=a;W<q.length;W++){V=q[W],U.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(V.name)));var H=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(V)),r,1);K.push(e.factory.createPropertySignature(void 0,V.symbol.name,void 0,H)),G=G||void 0!==V.type,z&=V.parent.flags}var Y=G?e.factory.createTypeLiteralNode(K):void 0;Y&&e.setEmitFlags(Y,1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(U),void 0,Y,J)],z)))}else if(a.length||l){if(a.length)for(var X=0,Q=a;X<Q.length;X++){var $=(V=Q[X]).parent.flags;2&$&&($=-3&$|1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(V.symbol.name,void 0,re(V.type))],$)))}O&&B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(O,void 0,re(c))],1)));var Z=v(a,l);O&&Z.unshift(e.factory.createShorthandPropertyAssignment(O)),1===Z.length?(e.Debug.assert(!O,"Shouldn't have returnValueProperty here"),B.push(e.factory.createExpressionStatement(e.factory.createAssignment(Z[0].name,J))),o.facts&i.HasReturn&&B.push(e.factory.createReturnStatement())):(B.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(Z),J))),O&&B.push(e.factory.createReturnStatement(e.factory.createIdentifier(O))))}else o.facts&i.HasReturn?B.push(e.factory.createReturnStatement(J)):b(o.range)?B.push(e.factory.createExpressionStatement(J)):B.push(J);b(o.range)?M.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),B):M.replaceNodeWithNodes(s.file,o.range,B);var ee=M.getChanges(),te=(b(o.range)?e.first(o.range):o.range).getSourceFile().fileName;return{renameFilename:te,renameLocation:e.getRenameLocation(ee,te,x,!1),edits:ee};function re(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 151===e.kind}))?r:e.factory.createUnionTypeNode([r,e.factory.createKeywordTypeNode(151)])}}}(c,o[n],l[n],_,t,r)}(n,t,o)}var s=/^constant_scope_(\d+)$/.exec(r);if(s)return o=+s[1],e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(t,r,n){var a=m(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.constantErrorsPerScope,_=s.exposedVariableDeclarations;return e.Debug.assert(!u[n].length,"The extraction went missing? How?"),e.Debug.assert(0===_.length,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o){var s,c=n.substitutions,l=o.program.getTypeChecker(),u=r.getSourceFile(),_=e.getUniqueName(e.isClassLike(r)?"newProperty":"newLocal",u),d=e.isInJSFile(r),p=d||!l.isContextSensitive(t)?void 0:l.typeToTypeNode(l.getContextualType(t),r,1),f=function(t,r){return r.size?function t(n){var i=r.get(e.getNodeId(n).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(n,t,e.nullTransformationContext)}(t):t}(t,c);s=function(n,i){if(void 0===n)return{variableType:n,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:n,initializer:i};var a=l.getTypeAtLocation(t),o=e.singleOrUndefined(l.getSignaturesOfType(a,0));if(!o)return{variableType:n,initializer:i};if(o.getTypeParameters())return{variableType:n,initializer:i};for(var s=[],c=!1,u=0,_=i.parameters;u<_.length;u++){var d=_[u];if(d.type)s.push(d);else{var p=l.getTypeAtLocation(d);p===l.getAnyType()&&(c=!0),s.push(e.factory.updateParameterDeclaration(d,d.decorators,d.modifiers,d.dotDotDotToken,d.name,d.questionToken,d.type||l.typeToTypeNode(p,r,1),d.initializer))}}if(c)return{variableType:n,initializer:i};if(n=void 0,e.isArrowFunction(i))i=e.factory.updateArrowFunction(i,t.modifiers,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),r,1),i.equalsGreaterThanToken,i.body);else{if(o&&o.thisParameter){var f=e.firstOrUndefined(s);if(!f||e.isIdentifier(f.name)&&"this"!==f.name.escapedText){var g=l.getTypeOfSymbolAtLocation(o.thisParameter,t);s.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,l.typeToTypeNode(g,r,1)))}}i=e.factory.updateFunctionExpression(i,t.modifiers,i.asteriskToken,i.name,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),r,1),i.body)}return{variableType:n,initializer:i}}(p,f),p=s.variableType,f=s.initializer,e.suppressLeadingAndTrailingTrivia(f);var m=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!d,"Cannot extract to a JS class");var y=[];y.push(e.factory.createModifier(121)),a&i.InStaticRegion&&y.push(e.factory.createModifier(124)),y.push(e.factory.createModifier(143));var h=e.factory.createPropertyDeclaration(void 0,y,_,void 0,p,f),v=e.factory.createPropertyAccessExpression(a&i.InStaticRegion?e.factory.createIdentifier(r.name.getText()):e.factory.createThis(),e.factory.createIdentifier(_));S(t)&&(v=e.factory.createJsxExpression(void 0,v));var b=function(t,r){var n,i=r.members;e.Debug.assert(i.length>0,"Found no members");for(var a=!0,o=0,s=i;o<s.length;o++){var c=s[o];if(c.pos>t)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(t.pos,r);m.insertNodeBefore(o.file,b,h,!0),m.replaceNode(o.file,t,v)}else{var x=e.factory.createVariableDeclaration(_,void 0,p,f),E=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(E)m.insertNodeBefore(o.file,E,x),v=e.factory.createIdentifier(_),m.replaceNode(o.file,t,v);else if(236===t.parent.kind&&r===e.findAncestor(t,g)){var T=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2));m.replaceNode(o.file,t.parent,T)}else T=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2)),b=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)g(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(D(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r),0===b.pos?m.insertNodeAtTopOfFile(o.file,T,!1):m.insertNodeBefore(o.file,b,T,!1),236===t.parent.kind?m.delete(o.file,t.parent):(v=e.factory.createIdentifier(_),S(t)&&(v=e.factory.createJsxExpression(void 0,v)),m.replaceNode(o.file,t,v))}var C=m.getChanges(),k=t.getSourceFile().fileName;return{renameFilename:k,renameLocation:e.getRenameLocation(C,k,_,!0),edits:C}}(e.isExpression(c)?c:c.statements[0].expression,o[n],l[n],t.facts,r)}(n,t,o);e.Debug.fail("Unrecognized action name")}function p(t,r,a){void 0===a&&(a=!0);var o=r.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractEmpty)]};var s=0===o&&a,c=e.findFirstNonJsxWhitespaceToken(t,r.start),l=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),u=c&&l&&a?function(e,t,r){var n=e.getStart(r),i=t.getEnd();return 59===r.text.charCodeAt(i)&&i++,{start:n,length:i-n}}(c,l,t):r,_=s?function(t){return e.findAncestor(t,(function(t){return t.parent&&x(t)&&!e.isBinaryExpression(t.parent)}))}(c):e.getParentNodeInSpan(c,t,u),d=s?_:e.getParentNodeInSpan(l,t,u),p=[],g=i.None;if(!_||!d)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(e.isJSDoc(_))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractJSDoc)]};if(_.parent!==d.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(_!==d){if(!D(_.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};for(var m=[],y=0,h=_.parent.statements;y<h.length;y++){var v=h[y];if(v===_||m.length){var b=T(v);if(b)return{errors:b};m.push(v)}if(v===d)break}return m.length?{targetRange:{range:m,facts:g,declarations:p}}:{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]}}if(e.isReturnStatement(_)&&!_.expression)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};var S=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}(_),E=function(t){if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,n.cannotExtractIdentifier)]}(S)||T(S);return E?{errors:E}:{targetRange:{range:f(S),facts:g,declarations:p}};function T(t){var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"}(a||(a={})),e.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(e.isStatement(t)||e.isExpressionNode(t)&&x(t)))return[e.createDiagnosticForNode(t,n.statementOrExpressionExpected)];if(8388608&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(165===n.kind){e.isStatic(n)&&(g|=i.InStaticRegion);break}if(162===n.kind){169===e.getContainingFunction(n).kind&&(g|=i.InStaticRegion);break}167===n.kind&&e.isStatic(n)&&(g|=i.InStaticRegion),n=n.parent}}(t,s);var c,l=4;return function t(a){if(o)return!0;if(e.isDeclaration(a)){var s=252===a.kind?a.parent.parent:a;if(e.hasSyntacticModifier(s,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;p.push(a.symbol)}switch(a.kind){case 264:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 269:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;case 106:if(206===a.parent.kind){var u=e.getContainingClass(a);if(u.pos<r.start||u.end>=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else g|=i.UsesThis;break;case 212:e.forEachChild(a,(function t(r){if(e.isThis(r))g|=i.UsesThis;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 255:case 254:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 224:case 211:case 167:case 169:case 170:case 171:return!1}var _=l;switch(a.kind){case 237:case 250:l=0;break;case 233:a.parent&&250===a.parent.kind&&a.parent.finallyBlock===a&&(l=4);break;case 288:case 287:l|=1;break;default:e.isIterationStatement(a,!1)&&(l|=3)}switch(a.kind){case 190:case 108:g|=i.UsesThis;break;case 248:var d=a.label;(c||(c=[])).push(d.escapedText),e.forEachChild(a,t),c.pop();break;case 244:case 243:(d=a.label)?e.contains(c,d.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):l&(244===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 216:g|=i.IsAsyncFunction;break;case 222:g|=i.IsGenerator;break;case 245:4&l?g|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}l=_}(t),o}}function f(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function g(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function m(t,r){var a=r.file,o=function(t){var r=b(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(162===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),g(r)&&(o.push(r),300===r.kind))return o}(t),s=function(t,r){return b(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,a),c=function(t,r,a,o,s,c){var l,u,_=new e.Map,d=[],p=[],f=[],g=[],m=[],y=new e.Map,h=[],v=b(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===v){var x=t.range,D=e.first(x).getStart(),S=e.last(x).end;u=e.createFileDiagnostic(o,D,S-D,n.expressionExpected)}else 147456&s.getTypeAtLocation(v).flags&&(u=e.createDiagnosticForNode(v,n.uselessConstantType));for(var E=0,T=r;E<T.length;E++){var C=T[E];d.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),p.push(new e.Map),f.push([]);var k=[];u&&k.push(u),e.isClassLike(C)&&e.isInJSFile(C)&&k.push(e.createDiagnosticForNode(C,n.cannotExtractToJSClass)),e.isArrowFunction(C)&&!e.isBlock(C.body)&&k.push(e.createDiagnosticForNode(C,n.cannotExtractToExpressionArrowFunction)),g.push(k)}var A,N=new e.Map,F=b(t.range)?e.factory.createBlock(t.range):t.range,w=b(t.range)?e.first(t.range):t.range,P=(A=w,!!e.findAncestor(A,(function(t){return e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length})));if(function c(l,u){if(void 0===u&&(u=1),P&&K(s.getTypeAtLocation(l)),e.isDeclaration(l)&&l.symbol&&m.push(l),e.isAssignmentExpression(l))c(l.left,2),c(l.right);else if(e.isUnaryExpressionWithWrite(l))c(l.operand,2);else if(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l))e.forEachChild(l,c);else if(e.isIdentifier(l)){if(!l.parent)return;if(e.isQualifiedName(l.parent)&&l!==l.parent.left)return;if(e.isPropertyAccessExpression(l.parent)&&l!==l.parent.expression)return;!function(c,l,u){var _=function(c,l,u){var _=z(c);if(_){var m=e.getSymbolId(_).toString(),y=N.get(m);if(y&&y>=l)return m;if(N.set(m,l),y){for(var h=0,v=d;h<v.length;h++){var b=v[h];b.usages.get(c.text)&&b.usages.set(c.text,{usage:l,symbol:_,node:c})}return m}var x=_.getDeclarations(),D=x&&e.find(x,(function(e){return e.getSourceFile()===o}));if(D&&!e.rangeContainsStartEnd(a,D.getStart(),D.end)){if(t.facts&i.IsGenerator&&2===l){for(var S=e.createDiagnosticForNode(c,n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),E=0,T=f;E<T.length;E++)T[E].push(S);for(var C=0,k=g;C<k.length;C++)k[C].push(S)}for(var A=0;A<r.length;A++){var F=r[A];if(s.resolveName(_.name,F,_.flags,!1)!==_&&!p[A].has(m)){var w=G(_.exportSymbol||_,F,u);w?p[A].set(m,w):u?262144&_.flags||(S=e.createDiagnosticForNode(c,n.typeWillNotBeVisibleInTheNewScope),f[A].push(S),g[A].push(S)):d[A].usages.set(c.text,{usage:l,symbol:_,node:c})}}return m}}}(c,l,u);if(_)for(var m=0;m<r.length;m++){var y=p[m].get(_);y&&d[m].substitutions.set(e.getNodeId(c).toString(),y)}}(l,u,e.isPartOfTypeNode(l))}else e.forEachChild(l,c)}(F),P&&!b(t.range)&&K(s.getContextualType(t.range)),_.size>0){for(var I=new e.Map,O=0,L=w;void 0!==L&&O<r.length;L=L.parent)if(L===r[O]&&(I.forEach((function(e,t){d[O].typeParameterUsages.set(t,e)})),O++),e.isDeclarationWithTypeParameters(L))for(var M=0,R=e.getEffectiveTypeParameterDeclarations(L);M<R.length;M++){var B=R[M],j=s.getTypeAtLocation(B);_.has(j.id.toString())&&I.set(j.id.toString(),j)}e.Debug.assert(O===r.length,"Should have iterated all scopes")}if(m.length){var J=e.isBlockScope(r[0],r[0].parent)?r[0]:e.getEnclosingBlockScopeContainer(r[0]);e.forEachChild(J,(function r(n){if(!(n===t.range||b(t.range)&&t.range.indexOf(n)>=0)){var i=e.isIdentifier(n)?z(n):s.getSymbolAtLocation(n);if(i){var a=e.find(m,(function(e){return e.symbol===i}));if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();y.has(o)||(h.push(a),y.set(o,!0))}else l=l||a}e.forEachChild(n,r)}}))}for(var V=function(r){var i=d[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=b(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.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))})),e.Debug.assert(b(t.range)||0===h.length,"No variable declarations expected if something was extracted"),s&&!b(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else o&&r>0?(c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[r].push(c),g[r].push(c)):l&&(c=e.createDiagnosticForNode(l,n.cannotExtractExportedEntity),f[r].push(c),g[r].push(c))},U=0;U<r.length;U++)V(U);return{target:F,usagesPerScope:d,functionErrorsPerScope:f,constantErrorsPerScope:g,exposedVariableDeclarations:h};function K(e){for(var t=0,r=s.getSymbolWalker((function(){return c.throwIfCancellationRequested(),!0})).walkType(e).visitedTypes;t<r.length;t++){var n=r[t];n.isTypeParameter()&&_.set(n.id.toString(),n)}}function z(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function G(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((function(e){return e.parent===r})))return e.factory.createIdentifier(t.name);var a=G(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}}(t,o,s,a,r.program.getTypeChecker(),r.cancellationToken);return{scopes:o,readsAndWrites:c}}function y(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];(void 0===t||a.pos<t.pos)&&(t=a)}return t}function h(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 v(t,r){var n=e.map(t,(function(t){return e.factory.createShorthandPropertyAssignment(t.symbol.name)})),i=e.map(r,(function(t){return e.factory.createShorthandPropertyAssignment(t.symbol.name)}));return void 0===n?i:void 0===i?n:n.concat(i)}function b(t){return e.isArray(t)}function x(e){var t=e.parent;if(294===t.kind)return!1;switch(e.kind){case 10:return 264!==t.kind&&268!==t.kind;case 223:case 199:case 201:return!1;case 79:return 201!==t.kind&&268!==t.kind&&273!==t.kind}return!0}function D(e){switch(e.kind){case 233:case 300:case 260:case 287:return!0;default:return!1}}function S(t){return(e.isJsxElement(t)||e.isJsxSelfClosingElement(t)||e.isJsxFragment(t))&&(e.isJsxElement(t.parent)||e.isJsxFragment(t.parent))}t.registerRefactor(c,{kinds:[l.kind,u.kind],getAvailableActions:_,getEditsForAction:d}),r.getAvailableActions=_,r.getEditsForAction=d,function(t){function r(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractJSDoc=r("Cannot extract JSDoc."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block")}(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=p,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(o||(o={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(s||(s={}))})((t=e.refactor||(e.refactor={})).extractSymbol||(t.extractSymbol={}))}(u||(u={})),function(e){!function(t){var r="Extract type",n={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},i={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},o={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};function s(t,r){void 0===r&&(r=!0);var n=t.file,i=t.startPosition,a=e.isSourceFileJS(n),o=e.getTokenAtPosition(n,i),s=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),u=s.pos===s.end&&r,_=e.findAncestor(o,(function(t){return t.parent&&e.isTypeNode(t)&&!l(s,t.parent,n)&&(u||e.nodeOverlapsWithStartEnd(o,n,s.pos,s.end))}));if(!_||!e.isTypeNode(_))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var d=t.program.getTypeChecker(),p=e.Debug.checkDefined(e.findAncestor(_,e.isStatement),"Should find a statement"),f=function(t,r,n,i){var a=[];return function o(s){if(e.isTypeReferenceNode(s)){if(e.isIdentifier(s.typeName)&&(null==(d=t.resolveName(s.typeName.text,s.typeName,262144,!0))?void 0:d.declarations)){var c=e.cast(e.first(d.declarations),e.isTypeParameterDeclaration);l(n,c,i)&&!l(r,c,i)&&e.pushIfUnique(a,c)}}else if(e.isInferTypeNode(s)){var u=e.findAncestor(s,(function(t){return e.isConditionalTypeNode(t)&&l(t.extendsType,s,i)}));if(!u||!l(r,u,i))return!0}else if(e.isTypePredicateNode(s)||e.isThisTypeNode(s)){var _=e.findAncestor(s.parent,e.isFunctionLike);if(_&&_.type&&l(_.type,s,i)&&!l(r,_,i))return!0}else if(e.isTypeQueryNode(s)){var d;if(e.isIdentifier(s.exprName)){if((null==(d=t.resolveName(s.exprName.text,s.exprName,111551,!1))?void 0:d.valueDeclaration)&&l(n,d.valueDeclaration,i)&&!l(r,d.valueDeclaration,i))return!0}else if(e.isThisIdentifier(s.exprName.left)&&!l(r,s.parent,i))return!0}return i&&e.isTupleTypeNode(s)&&e.getLineAndCharacterOfPosition(i,s.pos).line===e.getLineAndCharacterOfPosition(i,s.end).line&&e.setEmitFlags(s,1),e.forEachChild(s,o)}(r)?void 0:a}(d,_,p,n);return f?{isJS:a,selection:_,firstStatement:p,typeParameters:f,typeElements:c(d,_)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function c(t,r){if(r){if(e.isIntersectionTypeNode(r)){for(var n=[],i=new e.Map,a=0,o=r.types;a<o.length;a++){var s=c(t,o[a]);if(!s||!s.every((function(t){return t.name&&e.addToSeen(i,e.getNameFromPropertyName(t.name))})))return;e.addRange(n,s)}return n}return e.isParenthesizedTypeNode(r)?c(t,r.type):e.isTypeLiteralNode(r)?r.members:void 0}}function l(t,r,n){return e.rangeContainsStartEnd(t,e.skipTrivia(n.text,r.pos),r.end)}t.registerRefactor(r,{kinds:[n.kind,i.kind,o.kind],getAvailableActions:function(c){var l=s(c,"invoked"===c.triggerReason);return l?t.isRefactorErrorInfo(l)?c.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[a(a({},o),{notApplicableReason:l.error}),a(a({},n),{notApplicableReason:l.error}),a(a({},i),{notApplicableReason:l.error})]}]:e.emptyArray:[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:l.isJS?[o]:e.append([n],l.typeElements&&i)}]:e.emptyArray},getEditsForAction:function(r,a){var c=r.file,l=s(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected to find a range to extract");var u=e.getUniqueName("NewType",c),_=e.textChanges.ChangeTracker.with(r,(function(t){switch(a){case n.name:return e.Debug.assert(!l.isJS,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createTypeAliasDeclaration(void 0,void 0,n,s.map((function(t){return e.factory.updateTypeParameterDeclaration(t,t.name,t.constraint,void 0)})),o);t.insertNodeBefore(r,a,e.ignoreSourceNewlines(c),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}(t,c,u,l);case o.name:return e.Debug.assert(l.isJS,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(o),e.factory.createIdentifier(n)),l=[];e.forEach(s,(function(t){var r=e.getEffectiveConstraintOfTypeParameter(t),n=e.factory.createTypeParameterDeclaration(t.name),i=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),r&&e.cast(r,e.isJSDocTypeExpression),[n]);l.push(i)})),t.insertNodeBefore(r,a,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(l,[c]))),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))))}(t,c,u,l);case i.name:return e.Debug.assert(!l.isJS&&!!l.typeElements,"Invalid actionName/JS combo"),function(t,r,n,i){var a,o=i.firstStatement,s=i.selection,c=i.typeParameters,l=i.typeElements,u=e.factory.createInterfaceDeclaration(void 0,void 0,n,c,void 0,l);e.setTextRange(u,null===(a=l[0])||void 0===a?void 0:a.parent),t.insertNodeBefore(r,o,e.ignoreSourceNewlines(u),!0),t.replaceNode(r,s,e.factory.createTypeReferenceNode(n,c.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}(t,c,u,l);default:e.Debug.fail("Unexpected action name")}})),d=c.fileName;return{edits:_,renameFilename:d,renameLocation:e.getRenameLocation(_,d,u,!1)}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){var t,r,n,i;(t=e.refactor||(e.refactor={})).generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}),r="Generate 'get' and 'set' accessors",n=e.Diagnostics.Generate_get_and_set_accessors.message,i={name:r,description:n,kind:"refactor.rewrite.property.generateAccessors"},t.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(r,n){if(r.endPosition){var i=e.codefix.getAccessorConvertiblePropertyAtPosition(r.file,r.program,r.startPosition,r.endPosition);e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info");var a=e.codefix.generateAccessorFromProperty(r.file,r.program,r.startPosition,r.endPosition,r,n);if(a){var o=r.file.fileName,s=i.renameAccessor?i.accessorName:i.fieldName;return{renameFilename:o,renameLocation:(e.isIdentifier(s)?0:-1)+e.getRenameLocation(a,o,s.text,e.isParameter(i.declaration)),edits:a}}}},getAvailableActions:function(o){if(!o.endPosition)return e.emptyArray;var s=e.codefix.getAccessorConvertiblePropertyAtPosition(o.file,o.program,o.startPosition,o.endPosition,"invoked"===o.triggerReason);return s?t.isRefactorErrorInfo(s)?o.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[a(a({},i),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:r,description:n,actions:[i]}]:e.emptyArray}})}(u||(u={})),function(e){var t;(t=e.refactor||(e.refactor={})).isRefactorErrorInfo=function(e){return void 0!==e.error},t.refactorKindBeginsWith=function(e,t){return!t||e.substr(0,t.length)===t}}(u||(u={})),function(e){!function(t){var r="Move to a new file",n=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),o={name:r,description:n,kind:"refactor.move.newFile"};function s(t){var r=function(t){var r=t.file,n=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),i=r.statements,a=e.findIndex(i,(function(e){return e.end>n.pos}));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,(function(e){return e.end>n.end}),a);if(-1===s||!(0===s||i[s].getStart(r)<n.end))return{toMove:i.slice(a,-1===s?i.length:s),afterLast:-1===s?void 0:i[s]}}}}(t);if(void 0!==r){var n=[],i=[],a=r.toMove,o=r.afterLast;return e.getRangesWhere(a,c,(function(e,t){for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:o})})),0===n.length?void 0:{all:n,ranges:i}}}function c(t){return!function(t){switch(t.kind){case 264:return!0;case 263:return!e.hasSyntacticModifier(t,1);case 235:return t.declarationList.declarations.every((function(t){return!!t.initializer&&e.isRequireCall(t.initializer,!0)}));default:return!1}}(t)&&!e.isPrologueDirective(t)}function l(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=a.first,s=a.afterLast;r.deleteNodeRangeExcludingEnd(e,o,s)}}function u(e){return 264===e.kind?e.moduleSpecifier:263===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function _(t,r){if(e.isImportDeclaration(t))e.isStringLiteral(t.moduleSpecifier)&&r(t);else if(e.isImportEqualsDeclaration(t))e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteralLike(t.moduleReference.expression)&&r(t);else if(e.isVariableStatement(t))for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];a.initializer&&e.isRequireCall(a.initializer,!0)&&r(a)}}function d(t,r,n,i,a){if(n=e.ensurePathIsNonModuleName(n),i){var o=r.map((function(t){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(t))}));return e.makeImportIfNecessary(t,o,n,a)}e.Debug.assert(!t,"No default import should exist");var s=r.map((function(t){return e.factory.createBindingElement(void 0,void 0,t)}));return s.length?p(e.factory.createObjectBindingPattern(s),void 0,f(e.factory.createStringLiteral(n))):void 0}function p(t,r,n,i){return void 0===i&&(i=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(t,void 0,r,n)],i))}function f(t){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[t])}function g(t,r,n,i){switch(r.kind){case 264:!function(t,r,n,i){if(r.importClause){var a=r.importClause,o=a.name,s=a.namedBindings,c=!o||i(o),l=!s||(266===s.kind?i(s.name):0!==s.elements.length&&s.elements.every((function(e){return i(e.name)})));if(c&&l)n.delete(t,r);else if(o&&c&&n.delete(t,o),s)if(l)n.replaceNode(t,r.importClause,e.factory.updateImportClause(r.importClause,r.importClause.isTypeOnly,o,void 0));else if(267===s.kind)for(var u=0,_=s.elements;u<_.length;u++){var d=_[u];i(d.name)&&n.delete(t,d)}}}(t,r,n,i);break;case 263:i(r.name)&&n.delete(t,r);break;case 252:!function(t,r,n,i){var a=r.name;switch(a.kind){case 79:i(a)&&n.delete(t,a);break;case 200:break;case 199:if(a.elements.every((function(t){return e.isIdentifier(t.name)&&i(t.name)})))n.delete(t,e.isVariableDeclarationList(r.parent)&&1===r.parent.declarations.length?r.parent.parent:r);else for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&i(c.name)&&n.delete(t,c.name)}}}(t,r,n,i);break;default:e.Debug.assertNever(r,"Unexpected import decl kind "+r.kind)}}function m(t){switch(t.kind){case 263:case 268:case 265:case 266:return!0;case 252:return y(t);case 201:return e.isVariableDeclaration(t.parent.parent)&&y(t.parent.parent);default:return!1}}function y(t){return e.isSourceFile(t.parent.parent.parent)&&!!t.initializer&&e.isRequireCall(t.initializer,!0)}function h(t,r,n){switch(t.kind){case 264:var i=t.importClause;if(!i)return;var a=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&function(t,r){if(266===t.kind)return r(t.name)?t:void 0;var n=t.elements.filter((function(e){return r(e.name)}));return n.length?e.factory.createNamedImports(n):void 0}(i.namedBindings,n);return a||o?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),r):void 0;case 263:return n(t.name)?t:void 0;case 252:var s=function(t,r){switch(t.kind){case 79:return r(t)?t:void 0;case 200:return t;case 199:var n=t.elements.filter((function(t){return t.propertyName||!e.isIdentifier(t.name)||r(t.name)}));return n.length?e.factory.createObjectBindingPattern(n):void 0}}(t.name,n);return s?p(s,t.type,f(r),t.parent.flags):void 0;default:return e.Debug.assertNever(t,"Unexpected import kind "+t.kind)}}function v(t,r,n){t.forEachChild((function t(i){if(e.isIdentifier(i)&&!e.isDeclarationName(i)){var a=r.getSymbolAtLocation(i);a&&n(a)}else i.forEachChild(t)}))}t.registerRefactor(r,{kinds:[o.kind],getAvailableActions:function(t){var i=s(t);return t.preferences.allowTextChangesInNewFiles&&i?[{name:r,description:n,actions:[o]}]:t.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[a(a({},o),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(t,n){e.Debug.assert(n===r,"Wrong refactor invoked");var a=e.Debug.checkDefined(s(t)),o=e.textChanges.ChangeTracker.with(t,(function(r){return n=t.file,o=t.program,s=a,c=r,p=t.host,y=t.preferences,E=o.getTypeChecker(),w=function(t,r,n){var i=new b,a=new b,o=new b,s=e.find(r,(function(e){return!!(2&e.transformFlags)})),c=function(t){if(void 0!==t){var r=n.getJsxNamespace(t),i=n.resolveName(r,t,1920,!0);return i&&e.some(i.declarations,m)?i:void 0}}(s);c&&a.add(c);for(var l=0,u=r;l<u.length;l++)S(h=u[l],(function(t){i.add(e.Debug.checkDefined(e.isExpressionStatement(t)?n.getSymbolAtLocation(t.expression.left):t.symbol,"Need a symbol here"))}));for(var _=0,d=r;_<d.length;_++)v(h=d[_],n,(function(r){if(r.declarations)for(var n=0,s=r.declarations;n<s.length;n++){var c=s[n];m(c)?a.add(r):x(c)&&(l=c,(e.isVariableDeclaration(l)?l.parent.parent.parent:l.parent)===t)&&!i.has(r)&&o.add(r)}var l}));for(var p=a.clone(),f=new b,g=0,y=t.statements;g<y.length;g++){var h=y[g];e.contains(r,h)||(c&&2&h.transformFlags&&p.delete(c),v(h,n,(function(e){i.has(e)&&f.add(e),p.delete(e)})))}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:f,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:p}}(n,s.all,E),P=e.getDirectoryPath(n.fileName),I=e.extensionFromPath(n.fileName),O=function(t,r,n,i){for(var a=t,o=1;;o++){var s=e.combinePaths(n,a+r);if(!i.fileExists(s))return a;a=t+"."+o}}(w.movedSymbols.forEachEntry(e.symbolNameNoDefault)||"newFile",I,P,p),L=O+I,c.createNewFile(n,e.combinePaths(P,L),function(t,r,n,a,o,s,c){var p=o.getTypeChecker(),m=e.takeWhile(t.statements,e.isPrologueDirective);if(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)return l(t,a.ranges,n),i(i([],m,!0),a.all,!0);var y=!!t.externalModuleIndicator,v=e.getQuotePreference(t,c),b=function(t,r,n,i){var a,o=[];return t.forEach((function(t){"default"===t.escapedName?a=e.factory.createIdentifier(e.symbolNameNoDefault(t)):o.push(t.name)})),d(a,o,r,n,i)}(r.oldFileImportsFromNewFile,s,y,v);b&&e.insertImports(n,t,b,!0),function(t,r,n,i,a){for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];e.contains(r,c)||_(c,(function(e){return g(t,e,n,(function(e){return i.has(a.getSymbolAtLocation(e))}))}))}}(t,a.all,n,r.unusedImportsFromOldFile,p),l(t,a.ranges,n),function(t,r,n,i,a){for(var o=r.getTypeChecker(),s=function(r){if(r===n)return"continue";for(var s=function(s){_(s,(function(c){if(o.getSymbolAtLocation(u(c))===n.symbol){var l=function(t){var r=e.isBindingElement(t.parent)?e.getPropertySymbolFromBindingElement(o,t.parent):e.skipAlias(o.getSymbolAtLocation(t),o);return!!r&&i.has(r)};g(r,c,t,l);var _=e.combinePaths(e.getDirectoryPath(u(c).text),a),d=h(c,e.factory.createStringLiteral(_),l);d&&t.insertNodeAfter(r,s,d);var p=function(t){switch(t.kind){case 264:return t.importClause&&t.importClause.namedBindings&&266===t.importClause.namedBindings.kind?t.importClause.namedBindings.name:void 0;case 263:return t.name;case 252:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t,"Unexpected node kind "+t.kind)}}(c);p&&function(t,r,n,i,a,o,s,c){var l=e.codefix.moduleSpecifierToValidIdentifier(a,99),u=!1,_=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,n,r,(function(t){e.isPropertyAccessExpression(t.parent)&&(u=u||!!n.resolveName(l,t,67108863,!0),i.has(n.getSymbolAtLocation(t.parent.name))&&_.push(t))})),_.length){for(var d=u?e.getUniqueName(l,r):l,p=0,g=_;p<g.length;p++){var m=g[p];t.replaceNode(r,m,e.factory.createIdentifier(d))}t.insertNodeAfter(r,c,function(t,r,n){var i=e.factory.createIdentifier(r),a=e.factory.createStringLiteral(n);switch(t.kind){case 264:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(i)),a);case 263:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,i,e.factory.createExternalModuleReference(a));case 252:return e.factory.createVariableDeclaration(i,void 0,void 0,f(a));default:return e.Debug.assertNever(t,"Unexpected node kind "+t.kind)}}(c,a,o))}}(t,r,o,i,a,_,p,c)}}))},c=0,l=r.statements;c<l.length;c++)s(l[c])},c=0,l=r.getSourceFiles();c<l.length;c++)s(l[c])}(n,o,t,r.movedSymbols,s);var E=function(t,r,n,i,a,o,s){for(var c,l=[],p=0,f=t.statements;p<f.length;p++)_(f[p],(function(t){e.append(l,h(t,u(t),(function(e){return r.has(a.getSymbolAtLocation(e))})))}));var g=[],m=e.nodeSeenTracker();return n.forEach((function(r){if(r.declarations)for(var n=0,a=r.declarations;n<a.length;n++){var s=a[n];if(x(s)){var l=(_=s,e.isExpressionStatement(_)?e.tryCast(_.expression.left.name,e.isIdentifier):e.tryCast(_.name,e.isIdentifier));if(l){var u=T(s);m(u)&&C(t,u,l,i,o),e.hasSyntacticModifier(s,512)?c=l:g.push(l.text)}}}var _})),e.append(l,d(c,g,e.removeFileExtension(e.getBaseFileName(t.fileName)),o,s)),l}(t,r.oldImportsNeededByNewFile,r.newFileImportsFromOldFile,n,p,y,v),w=function(t,r,n,a){return e.flatMap(r,(function(r){if(s=r,e.Debug.assert(e.isSourceFile(s.parent),"Node parent should be a SourceFile"),(D(s)||e.isVariableStatement(s))&&!k(t,r,a)&&S(r,(function(t){return n.has(e.Debug.checkDefined(t.symbol))}))){var o=function(e,t){return t?[A(e)]:function(e){return i([e],N(e).map(F),!0)}(e)}(r,a);if(o)return o}var s;return r}))}(t,a.all,r.oldFileImportsFromNewFile,y);return E.length&&w.length?i(i(i(i([],m,!0),E,!0),[4],!1),w,!0):i(i(i([],m,!0),E,!0),w,!0)}(n,w,c,s,o,O,y)),void function(t,r,n,i,a){var o=t.getCompilerOptions().configFile;if(o){var s=e.normalizePath(e.combinePaths(n,"..",i)),c=e.getRelativePathFromFile(o.fileName,s,a),l=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),u=l&&e.find(l.properties,(function(t){return e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&"files"===t.name.text}));u&&e.isArrayLiteralExpression(u.initializer)&&r.insertNodeInListAfter(o,e.last(u.initializer.elements),e.factory.createStringLiteral(c),u.initializer.elements)}}(o,c,n.fileName,L,e.hostGetCanonicalFileName(p));var n,o,s,c,p,y,E,w,P,I,O,L}));return{edits:o,renameFilename:void 0,renameLocation:void 0}}});var b=function(){function t(){this.map=new e.Map}return t.prototype.add=function(t){this.map.set(String(e.getSymbolId(t)),t)},t.prototype.has=function(t){return this.map.has(String(e.getSymbolId(t)))},t.prototype.delete=function(t){this.map.delete(String(e.getSymbolId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.forEachEntry=function(t){return e.forEachEntry(this.map,t)},t.prototype.clone=function(){var r=new t;return e.copyEntries(this.map,r.map),r},t}();function x(t){return D(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function D(e){switch(e.kind){case 254:case 255:case 259:case 258:case 257:case 256:case 263:return!0;default:return!1}}function S(t,r){switch(t.kind){case 254:case 255:case 259:case 258:case 257:case 256:case 263:return r(t);case 235:return e.firstDefined(t.declarationList.declarations,(function(e){return E(e.name,r)}));case 236:var n=t.expression;return e.isBinaryExpression(n)&&1===e.getAssignmentDeclarationKind(n)?r(t):void 0}}function E(t,r){switch(t.kind){case 79:return r(e.cast(t.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));case 200:case 199:return e.firstDefined(t.elements,(function(t){return e.isOmittedExpression(t)?void 0:E(t.name,r)}));default:return e.Debug.assertNever(t,"Unexpected name kind "+t.kind)}}function T(t){switch(t.kind){case 252:return t.parent.parent;case 201:return T(e.cast(t.parent.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));default:return t}}function C(t,r,n,i,a){if(!k(t,r,a,n))if(a)e.isExpressionStatement(r)||i.insertExportModifier(t,r);else{var o=N(r);0!==o.length&&i.insertNodesAfter(t,r,o.map(F))}}function k(t,r,n,i){var a;return n?!e.isExpressionStatement(r)&&e.hasSyntacticModifier(r,1)||!(!i||!(null===(a=t.symbol.exports)||void 0===a?void 0:a.has(i.escapedText))):N(r).some((function(r){return t.symbol.exports.has(e.escapeLeadingUnderscores(r))}))}function A(t){var r=e.concatenate([e.factory.createModifier(93)],t.modifiers);switch(t.kind){case 254:return e.factory.updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 255:return e.factory.updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 235:return e.factory.updateVariableStatement(t,r,t.declarationList);case 259:return e.factory.updateModuleDeclaration(t,t.decorators,r,t.name,t.body);case 258:return e.factory.updateEnumDeclaration(t,t.decorators,r,t.name,t.members);case 257:return e.factory.updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type);case 256:return e.factory.updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 263:return e.factory.updateImportEqualsDeclaration(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference);case 236:return e.Debug.fail();default:return e.Debug.assertNever(t,"Unexpected declaration kind "+t.kind)}}function N(t){switch(t.kind){case 254:case 255:return[t.name.text];case 235:return e.mapDefined(t.declarationList.declarations,(function(t){return e.isIdentifier(t.name)?t.name.text:void 0}));case 259:case 258:case 257:case 256:case 263:return e.emptyArray;case 236:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(t,"Unexpected decl kind "+t.kind)}}function F(t){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(t)),63,e.factory.createIdentifier(t)))}}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){var t;(function(r){var n="Add or remove braces in an arrow function",i=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,o={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},s={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};function c(r,n,i,a){void 0===i&&(i=!0);var c=e.getTokenAtPosition(r,n),l=e.getContainingFunction(c);if(!l)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(l))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(e.rangeContainsRange(l,c)&&(!e.rangeContainsRange(l.body,c)||i)){if(t.refactorKindBeginsWith(o.kind,a)&&e.isExpression(l.body))return{func:l,addBraces:!0,expression:l.body};if(t.refactorKindBeginsWith(s.kind,a)&&e.isBlock(l.body)&&1===l.body.statements.length){var u=e.first(l.body.statements);if(e.isReturnStatement(u))return{func:l,addBraces:!1,expression:u.expression,returnStatement:u}}}}t.registerRefactor(n,{kinds:[s.kind],getEditsForAction:function(r,n){var i=r.file,a=r.startPosition,l=c(i,a);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u,_=l.expression,d=l.returnStatement,p=l.func;if(n===o.name){var f=e.factory.createReturnStatement(_);u=e.factory.createBlock([f],!0),e.suppressLeadingAndTrailingTrivia(u),e.copyLeadingComments(_,f,i,3,!0)}else if(n===s.name&&d){var g=_||e.factory.createVoidZero();u=e.needsParentheses(g)?e.factory.createParenthesizedExpression(g):g,e.suppressLeadingAndTrailingTrivia(u),e.copyTrailingAsLeadingComments(d,u,i,3,!1),e.copyLeadingComments(d,u,i,3,!1),e.copyTrailingComments(d,u,i,3,!1)}else e.Debug.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(function(e){e.replaceNode(i,p.body,u)}))}},getAvailableActions:function(r){var l=c(r.file,r.startPosition,"invoked"===r.triggerReason);return l?t.isRefactorErrorInfo(l)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[a(a({},o),{notApplicableReason:l.error}),a(a({},s),{notApplicableReason:l.error})]}]:e.emptyArray:[{name:n,description:i,actions:[l.addBraces?o:s]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(u||(u={})),function(e){var t;(function(r){var n="Convert parameters to destructured object",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),o={name:n,description:a,kind:"refactor.rewrite.parameters.toDestructured"};function s(t,r){var n=e.getContainingObjectLiteralElement(t);if(n){var i=r.getContextualTypeForObjectLiteralElement(n),a=null==i?void 0:i.getSymbol();if(a&&!(6&e.getCheckFlags(a)))return a}}function c(t){var r=t.node;return e.isImportSpecifier(r.parent)||e.isImportClause(r.parent)||e.isImportEqualsDeclaration(r.parent)||e.isNamespaceImport(r.parent)||e.isExportSpecifier(r.parent)||e.isExportAssignment(r.parent)?r:void 0}function l(t){if(e.isDeclaration(t.node.parent))return t.node}function u(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 206:case 207:var i=e.tryCast(n,e.isCallOrNewExpression);if(i&&i.expression===r)return i;break;case 204:var a=e.tryCast(n,e.isPropertyAccessExpression);if(a&&a.parent&&a.name===r){var o=e.tryCast(a.parent,e.isCallOrNewExpression);if(o&&o.expression===a)return o}break;case 205:var s=e.tryCast(n,e.isElementAccessExpression);if(s&&s.parent&&s.argumentExpression===r){var c=e.tryCast(s.parent,e.isCallOrNewExpression);if(c&&c.expression===s)return c}}}}function _(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 204:var i=e.tryCast(n,e.isPropertyAccessExpression);if(i&&i.expression===r)return i;break;case 205:var a=e.tryCast(n,e.isElementAccessExpression);if(a&&a.expression===r)return a}}}function d(t){var r=t.node;if(2===e.getMeaningFromLocation(r)||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent))return r}function p(t,r,n){var i=e.getTouchingToken(t,r),a=e.getContainingFunctionDeclaration(i);if(!function(t){var r=e.findAncestor(t,e.isJSDocNode);if(r){var n=e.findAncestor(r,(function(t){return!e.isJSDocNode(t)}));return!!n&&e.isFunctionLikeDeclaration(n)}return!1}(i))return!(a&&function(t,r){var n;if(!function(t,r){return function(e){return y(e)?e.length-1:e.length}(t)>=2&&e.every(t,(function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,r)}))}(t.parameters,r))return!1;switch(t.kind){case 254:return g(t)&&f(t,r);case 167:if(e.isObjectLiteralExpression(t.parent)){var i=s(t.name,r);return 1===(null===(n=null==i?void 0:i.declarations)||void 0===n?void 0:n.length)&&f(t,r)}return f(t,r);case 169:return e.isClassDeclaration(t.parent)?g(t.parent)&&f(t,r):m(t.parent.parent)&&f(t,r);case 211:case 212:return m(t.parent)}return!1}(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function f(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function g(t){return!!t.name||!!e.findModifier(t,88)}function m(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function y(t){return t.length>0&&e.isThis(t[0].name)}function h(t){return y(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function v(t,r){var n=h(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,(function(t,r){var i,a,o=(i=x(n[r]),a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(o.name),e.isPropertyAssignment(o)&&e.suppressLeadingAndTrailingTrivia(o.initializer),e.copyComments(t,o),o}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(x(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function b(t,r,n){var i,a,o,s=r.getTypeChecker(),c=h(t.parameters),l=e.map(c,(function(t){var r=e.factory.createBindingElement(void 0,void 0,x(t),e.isRestParameter(t)&&g(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer),r})),u=e.factory.createObjectBindingPattern(l),_=(i=c,a=e.map(i,(function(t){var i,a,o=t.type;o||!t.initializer&&!e.isRestParameter(t)||(i=t,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,r,n));var c=e.factory.createPropertySignature(void 0,x(t),g(t)?e.factory.createToken(57):t.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(t.name,c.name),t.type&&c.type&&e.copyComments(t.type,c.type),c})),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,g)&&(o=e.factory.createObjectLiteralExpression());var d=e.factory.createParameterDeclaration(void 0,void 0,void 0,u,void 0,_,o);if(y(t.parameters)){var p=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,void 0,p.name,void 0,p.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(p.name,f.name),p.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(p.type,f.type)),e.factory.createNodeArray([f,d])}return e.factory.createNodeArray([d]);function g(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function x(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction:function(t,r){e.Debug.assert(r===n,"Unexpected action name");var a=t.file,o=t.startPosition,f=t.program,g=t.cancellationToken,m=t.host,y=p(a,o,f.getTypeChecker());if(y&&g){var h=function(t,r,n){var a=function(t){switch(t.kind){case 254:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless function declaration should be a default export")];case 167:return[t.name];case 169:var r=e.Debug.checkDefined(e.findChildOfKind(t,133,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 224===t.parent.kind?[t.parent.parent.name,r]:[r];case 212:return[t.parent.name];case 211:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind "+t.kind)}}(t),o=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 255:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,88),"Nameless class declaration should be a default export")];case 224:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(t):[],p=e.deduplicate(i(i([],a,!0),o,!0),e.equateValues),f=r.getTypeChecker(),g=function(r){for(var n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},p=e.map(a,m),g=e.map(o,m),y=e.isConstructorDeclaration(t),h=e.map(a,(function(e){return s(e,f)})),v=0,b=r;v<b.length;v++){var x=b[v];if(0!==x.kind){if(e.contains(h,m(x.node))){if(k=x.node.parent,e.isMethodSignature(k)&&(e.isInterfaceDeclaration(k.parent)||e.isTypeLiteralNode(k.parent))){i.signature=x.node.parent;continue}if(S=u(x)){i.functionCalls.push(S);continue}}var D=s(x.node,f);if(D&&e.contains(h,D)&&(E=l(x))){i.declarations.push(E);continue}if(e.contains(p,m(x.node))||e.isNewExpressionTarget(x.node)){var S;if(c(x))continue;if(E=l(x)){i.declarations.push(E);continue}if(S=u(x)){i.functionCalls.push(S);continue}}if(y&&e.contains(g,m(x.node))){var E;if(c(x))continue;if(E=l(x)){i.declarations.push(E);continue}var T=_(x);if(T){n.accessExpressions.push(T);continue}if(e.isClassDeclaration(t.parent)){var C=d(x);if(C){n.typeUsages.push(C);continue}}}i.valid=!1}else i.valid=!1}var k;return i}(e.flatMap(p,(function(t){return e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n)})));return e.every(g.declarations,(function(t){return e.contains(p,t)}))||(g.valid=!1),g;function m(t){var r=f.getSymbolAtLocation(t);return r&&e.getSymbolTarget(r,f)}}(y,f,g);if(h.valid){var x=e.textChanges.ChangeTracker.with(t,(function(t){return function(t,r,n,i,a,o){var s=o.signature,c=e.map(b(a,r,n),(function(t){return e.getSynthesizedDeepClone(t)}));s&&p(s,e.map(b(s,r,n),(function(t){return e.getSynthesizedDeepClone(t)}))),p(a,c);for(var l=0,u=e.sortAndDeduplicate(o.functionCalls,(function(t,r){return e.compareValues(t.pos,r.pos)}));l<u.length;l++){var _=u[l];if(_.arguments&&_.arguments.length){var d=e.getSynthesizedDeepClone(v(a,_.arguments),!0);i.replaceNodeRange(e.getSourceFileOfNode(_),e.first(_.arguments),e.last(_.arguments),d,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function p(r,n){i.replaceNodeRangeWithNodes(t,e.first(r.parameters),e.last(r.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}(a,f,m,t,y,h)}));return{renameFilename:void 0,renameLocation:void 0,edits:x}}return{edits:[]}}},getAvailableActions:function(t){var r=t.file,i=t.startPosition;return e.isSourceFileJS(r)?e.emptyArray:p(r,i,t.program.getTypeChecker())?[{name:n,description:a,actions:[o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertParamsToDestructuredObject||(t.convertParamsToDestructuredObject={}))}(u||(u={})),function(e){var t;(function(r){var n="Convert to template string",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),o={name:n,description:i,kind:"refactor.rewrite.string"};function s(t,r){var n=e.getTokenAtPosition(t,r),i=l(n);return!u(i).isValidConcatenation&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)?i.parent.parent:n}function c(t,r){var n=l(r),i=t.file,a=function(t,r){var n=t.nodes,i=function(t,r){return function(n,i){n<t.length&&e.copyTrailingComments(t[n],i,r,3,!1)}}(t.operators,r),a=function(t,r,n){return function(i,a){for(;i.length>0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}}(n,r,i),o=d(0,n),s=o[0],c=o[1],l=o[2],u=o[3];if(s===n.length){var f=e.factory.createNoSubstitutionTemplateLiteral(c,l);return a(u,f),f}var g=[],m=e.factory.createTemplateHead(c,l);a(u,m);for(var y,h=function(t){var r=function(t){return e.isParenthesizedExpression(t)&&(p(t),t=t.expression),t}(n[t]);i(t,r);var o=d(t+1,n),s=o[0],c=o[1],l=o[2],u=o[3],f=(t=s-1)==n.length-1;if(e.isTemplateExpression(r)){var m=e.map(r.templateSpans,(function(t,n){p(t);var i=n===r.templateSpans.length-1,a=t.literal.text+(i?c:""),o=_(t.literal)+(i?l:"");return e.factory.createTemplateSpan(t.expression,f?e.factory.createTemplateTail(a,o):e.factory.createTemplateMiddle(a,o))}));g.push.apply(g,m)}else{var h=f?e.factory.createTemplateTail(c,l):e.factory.createTemplateMiddle(c,l);a(u,h),g.push(e.factory.createTemplateSpan(r,h))}y=t},v=s;v<n.length;v++)h(v),v=y;return e.factory.createTemplateExpression(m,g)}(u(n),i),o=e.getTrailingCommentRanges(i.text,n.end);if(o){var s=o[o.length-1],c={pos:o[0].pos,end:s.end};return e.textChanges.ChangeTracker.with(t,(function(e){e.deleteRange(i,c),e.replaceNode(i,n,a)}))}return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,n,a)}))}function l(t){return e.findAncestor(t.parent,(function(t){switch(t.kind){case 204:case 205:return!1;case 221:case 219:return!(e.isBinaryExpression(t.parent)&&(r=t.parent,63!==r.operatorToken.kind));default:return"quit"}var r}))||t}function u(t){var r=function(t){if(!e.isBinaryExpression(t))return{nodes:[t],operators:[],validOperators:!0,hasString:e.isStringLiteral(t)||e.isNoSubstitutionTemplateLiteral(t)};var n=r(t.left),i=n.nodes,a=n.operators,o=n.hasString,s=n.validOperators;if(!(o||e.isStringLiteral(t.right)||e.isTemplateExpression(t.right)))return{nodes:[t],operators:[],hasString:!1,validOperators:!0};var c=39===t.operatorToken.kind,l=s&&c;return i.push(t.right),a.push(t.operatorToken),{nodes:i,operators:a,hasString:!0,validOperators:l}},n=r(t),i=n.nodes,a=n.operators,o=n.validOperators,s=n.hasString;return{nodes:i,operators:a,isValidConcatenation:o&&s}}function _(t){var r=e.isTemplateHead(t)||e.isTemplateMiddle(t)?-2:-1;return e.getTextOfNode(t).slice(1,r)}function d(t,r){for(var n=[],i="",a="";t<r.length;){var o=r[t];if(!e.isStringLiteralLike(o)){if(e.isTemplateExpression(o)){i+=o.head.text,a+=_(o.head);break}break}i+=o.text,a+=e.getTextOfNode(o).slice(1,-1).replace(/\\.|[$`]/g,(function(e){return"\\"===e[0]?e:"\\"+e})),n.push(t),t++}return[t,i,a,n]}function p(t){var r=t.getSourceFile();e.copyTrailingComments(t,t.expression,r,3,!1),e.copyTrailingAsLeadingComments(t.expression,t.expression,r,3,!1)}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction:function(t,r){var n=s(t.file,t.startPosition);return r===i?{edits:c(t,n)}:e.Debug.fail("invalid action")},getAvailableActions:function(t){var r=l(s(t.file,t.startPosition)),c={name:n,description:i,actions:[]};return e.isBinaryExpression(r)&&u(r).isValidConcatenation?(c.actions.push(o),[c]):t.preferences.provideRefactorNotApplicableReason?(c.actions.push(a(a({},o),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[c]):e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertStringOrTemplateLiteral||(t.convertStringOrTemplateLiteral={}))}(u||(u={})),function(e){var t;(function(r){var n="Convert arrow function or function expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),o={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},s={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},c={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function l(t){var r=!1;return t.forEachChild((function t(n){e.isThis(n)?r=!0:e.isClassLike(n)||e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.forEachChild(n,t)})),r}function u(t,r,n){var i=e.getTokenAtPosition(t,r),a=n.getTypeChecker(),o=function(t,r,n){if(function(t){return e.isVariableDeclaration(t)||e.isVariableDeclarationList(t)&&1===t.declarations.length}(n)){var i=(e.isVariableDeclaration(n)?n:e.first(n.declarations)).initializer;return i&&(e.isArrowFunction(i)||e.isFunctionExpression(i)&&!d(t,r,i))?i:void 0}}(t,a,i.parent);if(o&&!l(o.body)&&!a.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};var s=e.getContainingFunction(i);if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s))&&!e.rangeContainsRange(s.body,i)&&!l(s.body)&&!a.containsArgumentsReference(s)){if(e.isFunctionExpression(s)&&d(t,a,s))return;return{selectedVariableDeclaration:!1,func:s}}}function _(t){if(e.isExpression(t)){var r=e.factory.createReturnStatement(t),n=t.getSourceFile();return e.suppressLeadingAndTrailingTrivia(r),e.copyTrailingAsLeadingComments(t,r,n,void 0,!0),e.factory.createBlock([r],!0)}return t}function d(t,r,n){return!!n.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,r,t)}t.registerRefactor(n,{kinds:[o.kind,s.kind,c.kind],getEditsForAction:function(t,r){var n=u(t.file,t.startPosition,t.program);if(n){var i=n.func,a=[];switch(r){case o.name:a.push.apply(a,function(t,r){var n=t.file,i=_(r.body),a=e.factory.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,r.typeParameters,r.parameters,r.type,i);return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(n,r,a)}))}(t,i));break;case s.name:var l=function(t){var r=t.parent;if(e.isVariableDeclaration(r)&&e.isVariableDeclarationInVariableStatement(r)){var n=r.parent,i=n.parent;return e.isVariableDeclarationList(n)&&e.isVariableStatement(i)&&e.isIdentifier(r.name)?{variableDeclaration:r,variableDeclarationList:n,statement:i,name:r.name}:void 0}}(i);if(!l)return;a.push.apply(a,function(t,r,n){var i=t.file,a=_(r.body),o=n.variableDeclaration,s=n.variableDeclarationList,c=n.statement,l=n.name;e.suppressLeadingTrivia(c);var u=1&e.getCombinedModifierFlags(o)|e.getEffectiveModifierFlags(r),d=e.factory.createModifiersFromModifierFlags(u),p=e.factory.createFunctionDeclaration(r.decorators,e.length(d)?d:void 0,r.asteriskToken,l,r.typeParameters,r.parameters,r.type,a);return 1===s.declarations.length?e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,c,p)})):e.textChanges.ChangeTracker.with(t,(function(e){e.delete(i,o),e.insertNodeAfter(i,c,p)}))}(t,i,l));break;case c.name:if(!e.isFunctionExpression(i))return;a.push.apply(a,function(t,r){var n,i=t.file,a=r.body.statements[0];!function(t,r){return 1===t.statements.length&&e.isReturnStatement(r)&&!!r.expression}(r.body,a)?n=r.body:(n=a.expression,e.suppressLeadingAndTrailingTrivia(n),e.copyComments(a,n));var o=e.factory.createArrowFunction(r.modifiers,r.typeParameters,r.parameters,r.type,e.factory.createToken(38),n);return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,r,o)}))}(t,i));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:a}}},getAvailableActions:function(r){var l=r.file,_=r.startPosition,d=r.program,p=r.kind,f=u(l,_,d);if(!f)return e.emptyArray;var g,m=f.selectedVariableDeclaration,y=f.func,h=[],v=[];return t.refactorKindBeginsWith(s.kind,p)&&((g=m||e.isArrowFunction(y)&&e.isVariableDeclaration(y.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function))?v.push(a(a({},s),{notApplicableReason:g})):h.push(s)),t.refactorKindBeginsWith(o.kind,p)&&((g=!m&&e.isArrowFunction(y)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function))?v.push(a(a({},o),{notApplicableReason:g})):h.push(o)),t.refactorKindBeginsWith(c.kind,p)&&((g=e.isFunctionExpression(y)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function))?v.push(a(a({},c),{notApplicableReason:g})):h.push(c)),[{name:n,description:i,actions:0===h.length&&r.preferences.provideRefactorNotApplicableReason?v:h}]}})})((t=e.refactor||(e.refactor={})).convertArrowFunctionOrFunctionExpression||(t.convertArrowFunctionOrFunctionExpression={}))}(u||(u={})),function(e){var t;(function(r){var n="Infer function return type",i=e.Diagnostics.Infer_function_return_type.message,o={name:n,description:i,kind:"refactor.rewrite.function.returnType"};function s(r){if(!e.isInJSFile(r.file)&&t.refactorKindBeginsWith(o.kind,r.kind)){var n=e.getTokenAtPosition(r.file,r.startPosition),i=e.findAncestor(n,(function(t){return e.isBlock(t)||t.parent&&e.isArrowFunction(t.parent)&&(38===t.kind||t.parent.body===t)?"quit":function(e){switch(e.kind){case 254:case 211:case 212:case 167:return!0;default:return!1}}(t)}));if(!i||!i.body||i.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var a=r.program.getTypeChecker(),s=function(t,r){if(t.isImplementationOfOverload(r)){var n=t.getTypeAtLocation(r).getCallSignatures();if(n.length>1)return t.getUnionType(e.mapDefined(n,(function(e){return e.getReturnType()})))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)}(a,i);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=a.typeToTypeNode(s,i,1);return c?{declaration:i,returnTypeNode:c}:void 0}}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction:function(r){var n=s(r);if(n&&!t.isRefactorErrorInfo(n))return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(function(t){return i=r.file,a=t,o=n.declaration,s=n.returnTypeNode,c=e.findChildOfKind(o,21,i),void((u=(l=e.isArrowFunction(o)&&void 0===c)?e.first(o.parameters):c)&&(l&&(a.insertNodeBefore(i,u,e.factory.createToken(20)),a.insertNodeAfter(i,u,e.factory.createToken(21))),a.insertNodeAt(i,u.end,s,{prefix:": "})));var i,a,o,s,c,l,u}))}},getAvailableActions:function(r){var c=s(r);return c?t.isRefactorErrorInfo(c)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[a(a({},o),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:n,description:i,actions:[o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).inferFunctionReturnType||(t.inferFunctionReturnType={}))}(u||(u={})),function(e){function t(t,n,i,a){var o=e.isNodeKind(t)?new r(t,n,i):79===t?new u(79,n,i):80===t?new _(80,n,i):new c(t,n,i);return o.parent=a,o.flags=25358336&a.flags,o}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(r,i){if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((function(e){a.push(e)})),a;e.scanner.setText((i||r.getSourceFile()).text);var o=r.pos,s=function(e){n(a,o,e.pos,r),a.push(e),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,(function(e){n(a,o,e.pos,r),a.push(function(e,r){var i=t(343,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];n(i._children,a,c.pos,r),i._children.push(c),a=c.end}return n(i._children,a,e.end,r),i}(e,r)),o=e.end})),n(a,o,r.end,r),e.scanner.setText(void 0),a}(this,r))},r.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(r.length){var n=e.find(r,(function(e){return e.kind<304||e.kind>342}));return n.kind<159?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<159?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){for(e.scanner.setTextPos(n);n<i;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=i&&(79===o&&e.Debug.fail("Did not expect "+e.Debug.formatSyntaxKind(a.kind)+" to have an Identifier in its trivia"),r.push(t(o,n,s,a))),n=s,1===o)break}}var o=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(){return this.getChildren().length},t.prototype.getChildAt=function(e){return this.getChildren()[e]},t.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),s=function(){function t(e,t){this.flags=e,this.escapedName=t}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(t){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var r=this.target.tupleLabelDeclaration;this.documentationComment=g([r],t)}else this.documentationComment=g(this.declarations,t);return this.documentationComment},t.prototype.getContextualDocumentationComment=function(t,r){switch(null==t?void 0:t.kind){case 170:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=g(e.filter(this.declarations,e.isGetAccessor),r)),this.contextualGetAccessorDocumentationComment;case 171:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=g(e.filter(this.declarations,e.isSetAccessor),r)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(r)}},t.prototype.getJsDocTags=function(t){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations,t)),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 l(t,e),t}(o),u=function(t){function r(e,r,n){var i=t.call(this,r,n)||this;return i.kind=79,i}return l(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(o);u.prototype.kind=79;var _=function(t){function r(e,r,n){return t.call(this,r,n)||this}return l(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(o);_.prototype.kind=80;var d=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getSymbol=function(){return this.symbol},t.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},t.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},t.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},t.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},t.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},t.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},t.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},t.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},t.prototype.isNullableType=function(){return this.checker.isNullableType(this)},t.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},t.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},t.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},t.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},t.prototype.isUnion=function(){return!!(1048576&this.flags)},t.prototype.isIntersection=function(){return!!(2097152&this.flags)},t.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},t.prototype.isLiteral=function(){return!!(384&this.flags)},t.prototype.isStringLiteral=function(){return!!(128&this.flags)},t.prototype.isNumberLiteral=function(){return!!(256&this.flags)},t.prototype.isTypeParameter=function(){return!!(262144&this.flags)},t.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},t.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},Object.defineProperty(t.prototype,"typeArguments",{get:function(){if(4&e.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),t}(),p=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=g(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?function(t,r){var n=e.JsDoc.getJsDocTagsFromDeclarations([t],r);if(0===n.length||f(t)){var a=m(r,t,(function(e){var t;return 1===(null===(t=e.declarations)||void 0===t?void 0:t.length)?e.getJsDocTags():void 0}));a&&(n=i(i([],a,!0),n,!0))}return n}(this.declaration,this.checker):[]),this.jsDocTags},t}();function f(t){return e.getJSDocTags(t).some((function(e){return"inheritDoc"===e.tagName.text}))}function g(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t,r);if(r&&(0===n.length||t.some(f)))for(var i=new e.Set,a=0,o=t;a<o.length;a++){var s=o[a],c=m(r,s,(function(e){if(!i.has(e))return i.add(e),e.getDocumentationComment(r)}));c&&(n=0===n.length?c.slice():c.concat(e.lineBreakPart(),n))}return n}function m(t,r,n){var i,a=169===(null===(i=r.parent)||void 0===i?void 0:i.kind)?r.parent.parent:r.parent;if(a)return e.firstDefined(e.getAllSuperTypeNodes(a),(function(e){var i=t.getPropertyOfType(t.getTypeAtLocation(e),r.symbol.name);return i?n(i):void 0}))}var y=function(t){function r(e,r,n){var i=t.call(this,e,r,n)||this;return i.kind=300,i}return l(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r,n){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),t,r,this.text,n)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 254:case 211:case 167:case 166:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);return r||t.set(e,r=[]),r}(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 255:case 224:case 256:case 257:case 258:case 259:case 263:case 273:case 268:case 265:case 266:case 170:case 171:case 180:r(a),e.forEachChild(a,i);break;case 162:if(!e.hasSyntacticModifier(a,16476))break;case 252:case 201:var u=a;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,i);break}u.initializer&&i(u.initializer);case 294:case 165:case 164:r(a);break;case 270:var _=a;_.exportClause&&(e.isNamedExports(_.exportClause)?e.forEach(_.exportClause.elements,i):i(_.exportClause.name));break;case 264:var d=a.importClause;d&&(d.name&&r(d.name),d.namedBindings&&(266===d.namedBindings.kind?r(d.namedBindings):e.forEach(d.namedBindings.elements,i)));break;case 219:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}})),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),h=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function v(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!b(n)){r=!1;break}if(r)return t;var i={};for(var n in t)e.hasProperty(t,n)&&(i[b(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]);return i}function b(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=v,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=function(){return{target:1,jsx:1}},e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var x=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var n=0,i=t.getScriptFileNames();n<i.length;n++){var a=i[n];this.createEntry(a,e.toPath(a,this.currentDirectory,r))}}return t.prototype.createEntry=function(t,r){var n,i=this.host.getScriptSnapshot(t);return n=i?{hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:i,scriptKind:e.getScriptKind(t,this.host)}:t,this.fileNameToEntry.set(r,n),n},t.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},t.prototype.getHostFileInformation=function(t){var r=this.fileNameToEntry.get(t);return e.isString(r)?void 0:r},t.prototype.getOrCreateEntryByPath=function(t,r){var n=this.getEntryByPath(r)||this.createEntry(t,r);return e.isString(n)?void 0:n},t.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach((function(r){e.isString(r)?t.push(r):t.push(r.hostFileName)})),t},t.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},t}(),D=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=E(t,r,99,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 S(e,t,r){e.version=r,e.scriptSnapshot=t}function E(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return S(s,r,i),s}function T(t,r,n,i,a){if(i&&n!==t.version){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var l=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+l+c:s?s+l:l+c}var u=e.updateSourceFile(t,o,i,a);return S(u,r,n),u.nameTable=void 0,t!==u&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),u}return E(t.fileName,r,t.languageVersion,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=E,e.updateLanguageServiceSourceFile=T;var C={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},k=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},t}(),A=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=A;var N=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],F=i(i([],N,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function w(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(160===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||203!==t.parent.parent.kind&&284!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function P(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,(function(n){return(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)}));return i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a))?[o]:0===s.length?e.mapDefined(n.types,(function(e){return e.getProperty(a)})):s}e.createLanguageService=function(t,r,n){var o,s;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),s=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var c,l,u=new D(t),_=0,d=t.getCancellationToken?new k(t.getCancellationToken()):C,p=t.getCurrentDirectory();function f(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(t.getLocalizedDiagnosticMessages());var g=e.hostUsesCaseSensitiveFileNames(t),m=e.createGetCanonicalFileName(g),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return g},getCurrentDirectory:function(){return p},getProgram:S,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:f});function h(e){var t=c.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '"+e+"'.");throw r.ProgramFiles=c.getSourceFiles().map((function(e){return e.fileName})),r}return t}function b(){var n,i,a;if(e.Debug.assert(s!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var o=t.getProjectVersion();if(o){if(l===o&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;l=o}}var u=t.getTypeRootsVersion?t.getTypeRootsVersion():0;_!==u&&(f("TypeRoots version has changed; provide new program"),c=void 0,_=u);var h,v=new x(t,m),b=v.getRootFileNames(),D=t.getCompilationSettings()||{target:1,jsx:1},S=t.hasInvalidatedResolution||e.returnFalse,E=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),T=null===(i=t.getProjectReferences)||void 0===i?void 0:i.call(t),C={useCaseSensitiveFileNames:g,fileExists:w,readFile:P,readDirectory:I,trace:e.maybeBind(t,t.trace),getCurrentDirectory:function(){return p},onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(c,b,D,(function(e,r){return t.getScriptVersion(r)}),w,S,E,F,T)){var k={getSourceFile:L,getSourceFileByPath:M,getCancellationToken:function(){return d},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return g},getNewLine:function(){return e.getNewLineCharacter(D,(function(){return e.getNewLineOrDefaultFromHost(t)}))},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return p},fileExists:w,readFile:P,getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:I,onReleaseOldSourceFile:O,onReleaseParsedCommandLine:function(e,r,n){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,r,n):r&&O(r.sourceFile,n)},hasInvalidatedResolution:S,hasChangedAutomaticTypeDirectiveNames:E,trace:C.trace,resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:F};null===(a=t.setCompilerHost)||void 0===a||a.call(t,k);var A=r.getKeyForCompilationSettings(D),N={rootNames:b,options:D,host:k,oldProgram:c,projectReferences:T};return c=e.createProgram(N),v=void 0,h=void 0,y.clearCache(),void c.getTypeChecker()}function F(r){var n=e.toPath(r,p,m),i=null==h?void 0:h.get(n);if(void 0!==i)return i||void 0;var a=t.getParsedCommandLine?t.getParsedCommandLine(r):function(t){var r=L(t,100);return r?(r.path=e.toPath(t,p,m),r.resolvedPath=r.path,r.originalFileName=r.fileName,e.parseJsonSourceFileConfigFileContent(r,C,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),p),void 0,e.getNormalizedAbsolutePath(t,p))):void 0}(r);return(h||(h=new e.Map)).set(n,a||!1),a}function w(r){var n=e.toPath(r,p,m),i=v&&v.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function P(r){var n=e.toPath(r,p,m),i=v&&v.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)}function I(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)}function O(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind)}function L(t,r,n,i){return M(t,e.toPath(t,p,m),0,0,i)}function M(t,n,i,a,o){e.Debug.assert(void 0!==v,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var s=v&&v.getOrCreateEntryByPath(t,n);if(s){if(!o){var l=c&&c.getSourceFileByPath(n);if(l){if(s.scriptKind===l.scriptKind)return r.updateDocumentWithKey(t,n,D,A,s.scriptSnapshot,s.version,s.scriptKind);r.releaseDocumentWithKey(l.resolvedPath,r.getKeyForCompilationSettings(c.getCompilerOptions()),l.scriptKind)}}return r.acquireDocumentWithKey(t,n,D,A,s.scriptSnapshot,s.version,s.scriptKind)}}}function S(){if(s!==e.LanguageServiceMode.Syntactic)return b(),c;e.Debug.assert(void 0===c)}function E(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((function(t){return e.normalizePath(t)===i}))),b();var a=e.mapDefined(n,(function(e){return c.getSourceFile(e)})),o=h(t);return e.DocumentHighlights.getDocumentHighlights(c,d,o,r,a)}function T(t,r,n,i){b();var a=n&&2===n.use?c.getSourceFiles().filter((function(e){return!c.isSourceFileDefaultLibrary(e)})):c.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(c,d,a,t,r,n,i)}var A=new e.Map(e.getEntries(((o={})[18]=19,o[20]=21,o[22]=23,o[31]=29,o)));function I(r){var n;return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:(n=r.file,e.toPath(n,p,m)),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function O(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function L(t,r,n){for(var i=u.getCurrentSourceFile(t),a=[],o=O(i,r),s=o.lineStarts,c=o.firstLine,l=o.lastLine,_=n||!1,d=Number.MAX_VALUE,p=new e.Map,f=new RegExp(/\S/),g=e.isInsideJsxElement(i,s[c]),m=g?"{/*":"//",y=c;y<=l;y++){var h=i.text.substring(s[y],i.getLineEndOfPosition(s[y])),v=f.exec(h);v&&(d=Math.min(d,v.index),p.set(y.toString(),v.index),h.substr(v.index,m.length)!==m&&(_=void 0===n||n))}for(y=c;y<=l;y++)if(c===l||s[y]!==r.end){var b=p.get(y.toString());void 0!==b&&(g?a.push.apply(a,M(t,{pos:s[y]+d,end:i.getLineEndOfPosition(s[y])},_,g)):_?a.push({newText:m,span:{length:0,start:s[y]+d}}):i.text.substr(s[y]+b,m.length)===m&&a.push({newText:"",span:{length:m.length,start:s[y]+b}}))}return a}function M(t,r,n,i){for(var a,o=u.getCurrentSourceFile(t),s=[],c=o.text,l=!1,_=n||!1,d=[],p=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,p),g=f?"{/*":"/*",m=f?"*/}":"*/",y=f?"\\{\\/\\*":"\\/\\*",h=f?"\\*\\/\\}":"\\*\\/";p<=r.end;){var v=c.substr(p,g.length)===g?g.length:0,b=e.isInComment(o,p+v);if(b)f&&(b.pos--,b.end++),d.push(b.pos),3===b.kind&&d.push(b.end),l=!0,p=b.end+1;else{var x=c.substring(p,r.end).search("("+y+")|("+h+")");_=void 0!==n?n:_||!e.isTextWhiteSpaceLike(c,p,-1===x?r.end:p+x),p=-1===x?r.end+1:p+x+m.length}}if(_||!l){2!==(null===(a=e.isInComment(o,r.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(d,r.pos,e.compareValues),e.insertSorted(d,r.end,e.compareValues);var D=d[0];c.substr(D,g.length)!==g&&s.push({newText:g,span:{length:0,start:D}});for(var S=1;S<d.length-1;S++)c.substr(d[S]-m.length,m.length)!==m&&s.push({newText:m,span:{length:0,start:d[S]}}),c.substr(d[S],g.length)!==g&&s.push({newText:g,span:{length:0,start:d[S]}});s.length%2!=0&&s.push({newText:m,span:{length:0,start:d[d.length-1]}})}else for(var E=0,T=d;E<T.length;E++){var C=T[E],k=C-m.length>0?C-m.length:0;v=c.substr(k,m.length)===m?m.length:0,s.push({newText:"",span:{length:g.length,start:C-v}})}return s}function R(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&R(i)}function B(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:S(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:d,preferences:i,triggerReason:o,kind:s}}A.forEach((function(e,t){return A.set(e.toString(),Number(t))}));var j={dispose:function(){if(c){var n=r.getKeyForCompilationSettings(c.getCompilerOptions());e.forEach(c.getSourceFiles(),(function(e){return r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind)})),c=void 0}t=void 0},cleanupSemanticCache:function(){c=void 0},getSyntacticDiagnostics:function(e){return b(),c.getSyntacticDiagnostics(h(e),d).slice()},getSemanticDiagnostics:function(t){b();var r=h(t),n=c.getSemanticDiagnostics(r,d);if(!e.getEmitDeclarations(c.getCompilerOptions()))return n.slice();var a=c.getDeclarationDiagnostics(r,d);return i(i([],n,!0),a,!0)},getSuggestionDiagnostics:function(t){return b(),e.computeSuggestionDiagnostics(h(t),c,d)},getCompilerOptionsDiagnostics:function(){return b(),i(i([],c.getOptionsDiagnostics(d),!0),c.getGlobalDiagnostics(d),!0)},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(d,u.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r,n){return b(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(c,d,h(t),r):e.getSemanticClassifications(c.getTypeChecker(),d,h(t),c.getClassifiableNames(),r)},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(d,u.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r,n){return b(),"original"===(n||"original")?e.getEncodedSemanticClassifications(c.getTypeChecker(),d,h(t),c.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(c,d,h(t),r)},getCompletionsAtPosition:function(r,n,i){void 0===i&&(i=e.emptyOptions);var o=a(a({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return b(),e.Completions.getCompletionsAtPosition(t,c,f,h(r),n,o,i.triggerCharacter,i.triggerKind,d)},getCompletionEntryDetails:function(r,n,i,a,o,s,l){return void 0===s&&(s=e.emptyOptions),b(),e.Completions.getCompletionEntryDetails(c,f,h(r),n,{name:i,source:o,data:l},t,a&&e.formatting.getFormatContext(a,t),s,d)},getCompletionEntrySymbol:function(r,n,i,a,o){return void 0===o&&(o=e.emptyOptions),b(),e.Completions.getCompletionEntrySymbol(c,f,h(r),n,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;b();var a=h(t);return e.SignatureHelp.getSignatureHelpItems(c,a,r,i,d)},getQuickInfoAtPosition:function(t,r){b();var n=h(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=c.getTypeChecker(),o=function(t){return e.isNewExpression(t.parent)&&t.pos===t.parent.pos?t.parent.expression:e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos?t.parent:t}(i),s=function(t,r){var n=w(t);if(n){var i=r.getContextualType(n.parent),a=i&&P(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var l=function(t,r,n){switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 204:case 159:return!e.isInComment(t,n);case 108:case 190:case 106:case 195:return!0;default:return!1}}(n,o,r)?a.getTypeAtLocation(o):void 0;return l&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(d,(function(t){return e.typeToDisplayParts(t,l,e.getContainerNode(o))})),documentation:l.symbol?l.symbol.getDocumentationComment(a):void 0,tags:l.symbol?l.symbol.getJsDocTags(a):void 0}}var u=a.runWithCancellationToken(d,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(o),o)})),_=u.symbolKind,p=u.displayParts,f=u.documentation,g=u.tags;return{kind:_,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,s),textSpan:e.createTextSpanFromNode(o,n),displayParts:p,documentation:f,tags:g}}},getDefinitionAtPosition:function(t,r){return b(),e.GoToDefinition.getDefinitionAtPosition(c,h(t),r)},getDefinitionAndBoundSpan:function(t,r){return b(),e.GoToDefinition.getDefinitionAndBoundSpan(c,h(t),r)},getImplementationAtPosition:function(t,r){return b(),e.FindAllReferences.getImplementationsAtPosition(c,d,c.getSourceFiles(),h(t),r)},getTypeDefinitionAtPosition:function(t,r){return b(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),h(t),r)},getReferencesAtPosition:function(t,r){return b(),T(e.getTouchingPropertyName(h(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return b(),e.FindAllReferences.findReferencedSymbols(c,d,c.getSourceFiles(),h(t),r)},getFileReferences:function(t){return b(),e.FindAllReferences.Core.getReferencesForFileName(t,c,c.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(t,r){return e.flatMap(E(t,r,[t]),(function(e){return e.highlightSpans.map((function(t){return a(a({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:E,getNameOrDottedNameSpan:function(t,r,n){var i=u.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 204:case 159:case 10:case 95:case 110:case 104:case 106:case 108:case 190:case 79:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(259!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=u.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),b();var a=n?[h(n)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,c.getTypeChecker(),d,t,r,i)},getRenameInfo:function(t,r,n){return b(),e.Rename.getRenameInfo(c,h(t),r,n)},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,u.getCurrentSourceFile(t))},findRenameLocations:function(t,r,n,i,o){b();var s=h(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,r));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var l=c.parent.parent;return[l.openingElement,l.closingElement].map((function(t){var r=e.createTextSpanFromNode(t.tagName,s);return a({fileName:s.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,s,t.parent))}))}return T(c,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:o,use:2},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,o||!1)}))},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(u.getCurrentSourceFile(t),d)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(u.getCurrentSourceFile(t),d)},getOutliningSpans:function(t){var r=u.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,d)},getTodoComments:function(t,r){b();var n=h(t);d.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,(function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"})).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),l=void 0;l=c.exec(o);){d.throwIfCancellationRequested(),e.Debug.assert(l.length===r.length+3);var u=l[1],_=l.index+u.length;if(e.isInComment(n,_)){for(var p=void 0,f=0;f<r.length;f++)l[f+3]&&(p=r[f]);if(void 0===p)return e.Debug.fail();if(!((i=o.charCodeAt(_+p.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var g=l[2];s.push({descriptor:p,message:g,position:_})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=u.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?A.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=v(n),o=u.getCurrentSourceFile(t);f("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return f("getIndentationAtPosition: computeIndentation  : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(r,n,i,a){var o=u.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(v(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(u.getCurrentSourceFile(r),e.formatting.getFormatContext(v(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=u.getCurrentSourceFile(r),s=e.formatting.getFormatContext(v(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(r,n,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),u.getCurrentSourceFile(r),n,i)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=u.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=u.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&R(a)?{newText:"</"+a.openingElement.tagName.getText(n)+">"}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=u.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,o,s){void 0===s&&(s=e.emptyOptions),b();var l=h(r),u=e.createTextSpanFromBounds(n,i),_=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(r){return d.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:l,span:u,program:c,host:t,cancellationToken:d,formatContext:_,preferences:s})}))},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),b(),e.Debug.assert("file"===r.type);var o=h(r.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:c,host:t,cancellationToken:d,formatContext:s,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((function(e){return I(e)}))):I(n)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),b(),e.Debug.assert("file"===r.type);var a=h(r.fileName),o=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,o,t,c,i,r.skipDestructiveCodeActions)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(S(),r,n,t,e.formatting.getFormatContext(i,t),a,y)},getEmitOutput:function(r,n,i){b();var a=h(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(c,a,!!n,d,o,i)},getNonBoundSourceFile:function(e){return u.getCurrentSourceFile(e)},getProgram:S,getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getApplicableRefactors:function(t,r,n,i,a){void 0===n&&(n=e.emptyOptions),b();var o=h(t);return e.refactor.getApplicableRefactors(B(o,r,n,e.emptyOptions,i,a))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),b();var s=h(t);return e.refactor.getEditsForRefactor(B(s,n,o,r),i,a)},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:y.toLineColumnOffset(e,t)},getSourceMapper:function(){return y},clearSourceMapperCache:function(){return y.clearCache()},prepareCallHierarchy:function(t,r){b();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(c,e.getTouchingPropertyName(h(t),r));return n&&e.mapOneOrMany(n,(function(t){return e.CallHierarchy.createCallHierarchyItem(c,t)}))},provideCallHierarchyIncomingCalls:function(t,r){b();var n=h(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(c,i,d):[]},provideCallHierarchyOutgoingCalls:function(t,r){b();var n=h(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(c,i):[]},toggleLineComment:L,toggleMultilineComment:M,commentSelection:function(e,t){var r=O(u.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?M(e,t,!0):L(e,t,!0)},uncommentSelection:function(t,r){var n=u.getCurrentSourceFile(t),i=[],a=r.pos,o=r.end;a===o&&(o+=e.isInsideJsxElement(n,a)?2:1);for(var s=a;s<=o;s++){var c=e.isInComment(n,s);if(c){switch(c.kind){case 2:i.push.apply(i,L(t,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,M(t,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i},provideInlayHints:function(r,n,i){void 0===i&&(i=e.emptyOptions),b();var a=h(r);return e.InlayHints.provideInlayHints(function(e,r,n){return{file:e,program:S(),host:t,span:r,preferences:n,cancellationToken:d}}(a,n,i))}};switch(s){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:N.forEach((function(e){return j[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}}));break;case e.LanguageServiceMode.Syntactic:F.forEach((function(e){return j[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}}));break;default:e.Debug.assertNever(s)}return j},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=new e.Map;t.forEachChild((function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||275===t.parent.kind||function(e){return e&&e.parent&&205===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}else e.isPrivateIdentifier(n)&&(i=n.escapedText,r.set(i,void 0===r.get(i)?n.pos:-1));if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];e.forEachChild(s,t)}}))}(t),t.nameTable},e.getContainingObjectLiteralElement=w,e.getPropertySymbolsFromContextualType=P,e.getDefaultLibFilePath=function(t){if("undefined"!=typeof __dirname)return __dirname+e.directorySeparator+e.getDefaultLibFileName(t);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")},e.setObjectAllocator({getNodeConstructor:function(){return r},getTokenConstructor:function(){return c},getIdentifierConstructor:function(){return u},getPrivateIdentifierConstructor:function(){return _},getSourceFileConstructor:function(){return y},getSymbolConstructor:function(){return s},getTypeConstructor:function(){return d},getSignatureConstructor:function(){return p},getSourceMapSourceConstructor:function(){return h}})}(u||(u={})),function(e){(e.BreakpointResolver||(e.BreakpointResolver={})).spanInSourceFileAtLocation=function(t,r){if(!t.isDeclarationFile){var n=e.getTokenAtPosition(t,r),i=t.getLineAndCharacterOfPosition(r).line;if(t.getLineAndCharacterOfPosition(n.getStart(t)).line>i){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(8388608&n.flags))return _(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?_(e):_(r)}function l(r){return _(e.findPrecedingToken(r.pos,t))}function u(r){return _(e.findNextToken(r,r.parent,t))}function _(r){if(r){var n=r.parent;switch(r.kind){case 235:return x(r.declarationList.declarations[0]);case 252:case 165:case 164:return x(r);case 162:return function t(r){if(e.isBindingPattern(r.name))return T(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):_(n.body)}(r);case 254:case 167:case 166:case 170:case 171:case 169:case 211:case 212:return function(e){if(e.body)return D(e)?o(e):_(e.body)}(r);case 233:if(e.isFunctionBlock(r))return h=(y=r).statements.length?y.statements[0]:y.getLastToken(),D(y.parent)?c(y.parent,h):_(h);case 260:return S(r);case 290:return S(r.block);case 236:return o(r.expression);case 245:return o(r.getChildAt(0),r.expression);case 239:return s(r,r.expression);case 238:return _(r.statement);case 251:return o(r.getChildAt(0));case 237:return s(r,r.expression);case 248:return _(r.statement);case 244:case 243:return o(r.getChildAt(0),r.label);case 240:return(m=r).initializer?E(m):m.condition?o(m.condition):m.incrementor?o(m.incrementor):void 0;case 241:return s(r,r.expression);case 242:return E(r);case 247:return s(r,r.expression);case 287:case 288:return _(r.statements[0]);case 250:return S(r.tryBlock);case 249:case 269:return o(r,r.expression);case 263:return o(r,r.moduleReference);case 264:case 270:return o(r,r.moduleSpecifier);case 259:if(1!==e.getModuleInstanceState(r))return;case 255:case 258:case 294:case 201:return o(r);case 246:return _(r.statement);case 163:return v=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,v.pos),v.end);case 199:case 200:return T(r);case 256:case 257:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return l(r);case 18:return function(r){switch(r.parent.kind){case 258:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 255:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 261:return c(r.parent.parent,r.parent.clauses[0])}return _(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 260:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 258:case 255:return o(t);case 233:if(e.isFunctionBlock(t.parent))return o(t);case 290:return _(e.lastOrUndefined(t.parent.statements));case 261:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?_(e.lastOrUndefined(n.statements)):void 0;case 199:var i=t.parent;return _(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return _(t.parent)}}(r);case 23:return function(t){if(200===t.parent.kind){var r=t.parent;return o(e.lastOrUndefined(r.elements)||r)}if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return _(t.parent)}(r);case 20:return function(e){return 238===e.parent.kind||206===e.parent.kind||207===e.parent.kind?l(e):210===e.parent.kind?u(e):_(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 211:case 254:case 212:case 167:case 166:case 170:case 171:case 169:case 239:case 238:case 240:case 242:case 206:case 207:case 210:return l(e);default:return _(e.parent)}}(r);case 58:return function(t){return e.isFunctionLike(t.parent)||291===t.parent.kind||162===t.parent.kind?l(t):_(t.parent)}(r);case 31:case 29:return function(e){return 209===e.parent.kind?u(e):_(e.parent)}(r);case 115:return function(e){return 238===e.parent.kind?s(e,e.parent.expression):_(e.parent)}(r);case 91:case 83:case 96:return u(r);case 158:return function(e){return 242===e.parent.kind?u(e):_(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return C(r);if((79===r.kind||223===r.kind||291===r.kind||292===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(219===r.kind){var i=r,a=i.left,d=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return C(a);if(63===d.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===d.kind)return _(a)}if(e.isExpressionNode(r))switch(n.kind){case 238:return l(r);case 163:return _(r.parent);case 240:case 242:return o(r);case 219:if(27===r.parent.operatorToken.kind)return o(r);break;case 212:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 291:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return _(r.parent.initializer);break;case 209:if(r.parent.type===r)return u(r.parent.type);break;case 252:case 162:var p=r.parent,f=p.initializer,g=p.type;if(f===r||g===r||e.isAssignmentOperator(r.kind))return l(r);break;case 219:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return l(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return l(r)}return _(r.parent)}}var m,y,h,v;function b(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function x(r){if(241===r.parent.parent.kind)return _(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?T(r.name):r.initializer||e.hasSyntacticModifier(r,1)||242===n.parent.kind?b(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?_(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function D(t){return e.hasSyntacticModifier(t,1)||255===t.parent.kind&&169!==t.kind}function S(r){switch(r.parent.kind){case 259:if(1!==e.getModuleInstanceState(r.parent))return;case 239:case 237:case 241:return c(r.parent,r.statements[0]);case 240:case 242:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return _(r.statements[0])}function E(e){if(253!==e.initializer.kind)return _(e.initializer);var t=e.initializer;return t.declarations.length>0?_(t.declarations[0]):void 0}function T(t){var r=e.forEach(t.elements,(function(e){return 225!==e.kind?e:void 0}));return r?_(r):201===t.parent.kind?o(t.parent):b(t.parent)}function C(t){e.Debug.assert(200!==t.kind&&199!==t.kind);var r=202===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 225!==e.kind?e:void 0}));return n?_(n):o(219===t.parent.kind?t.parent:t)}}}}(u||(u={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(u||(u={}));var u,_=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),n=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(function(t){return e.getProperty(i,t)}))})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=n;var o=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function s(e,t,r,n){return u(e,t,!0,r,n)}function u(r,n,i,a,o){try{var s=function(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log(r+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log("  result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=o;var d=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function p(t,r){return t.map((function(t){return function(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,r)}))}e.realizeDiagnostics=p;var f=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return l(r,t),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,_&&_.CollectGarbage&&(_.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},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(t){return p(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+r+", "+n+")",(function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+r+", "+n+")",(function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+r+", "+n+")",(function(){return g(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+r+", "+n+")",(function(){return g(i.languageService.getEncodedSemanticClassifications(t,e.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,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},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,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",(function(){return n.languageService.getRenameInfo(e,t,r)}))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",(function(){return r.languageService.getSmartSelectionRange(e,t)}))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+", "+i+")",(function(){return a.languageService.findRenameLocations(e,t,r,n,i)}))},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.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('"+e+")",(function(){return t.languageService.getFileReferences(e)}))},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(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+r+")",(function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o}))}))},r.prototype.getCompletionsAtPosition=function(e,t,r){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,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",(function(){var c=void 0===n?void 0:JSON.parse(n);return s.languageService.getCompletionEntryDetails(e,t,r,c,i,a,o)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+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,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",(function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)}))},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.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+t+")",(function(){return r.languageService.prepareCallHierarchy(e,t)}))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+t+")",(function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)}))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+t+")",(function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)}))},r.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('"+e+"', '"+JSON.stringify(t)+"', "+JSON.stringify(r)+")",(function(){return n.languageService.provideInlayHints(e,t,r)}))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",(function(){var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=c(r,["diagnostics"]);return a(a({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return u(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.toggleLineComment(e,t)}))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.toggleMultilineComment(e,t)}))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.commentSelection(e,t)}))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.uncommentSelection(e,t)}))},r}(d);function g(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return l(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),s(this.logger,"getEncodedLexicalClassifications",(function(){return g(n.classifier.getEncodedLexicalClassifications(e,t,r))}),this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+n.finalLexState},r}(d),y=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.logger=r,i.host=n,i.logPerformance=!1,i}return l(r,t),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.prototype.resolveModuleName=function(t,r,n){var i=this;return this.forwardJSONCall("resolveModuleName('"+t+"')",(function(){var a=JSON.parse(n),o=e.resolveModuleName(r,e.normalizeSlashes(t),a,i.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}}))},r.prototype.resolveTypeReferenceDirective=function(t,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+t+")",(function(){var a=JSON.parse(n),o=e.resolveTypeReferenceDirective(r,e.normalizeSlashes(t),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}}))},r.prototype.getPreProcessedFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+t+"')",(function(){var t=e.preProcessFile(e.getSnapshotText(r),!0,!0);return{referencedFiles:n.convertFileReferences(t.referencedFiles),importedFiles:n.convertFileReferences(t.importedFiles),ambientExternalModules:t.ambientExternalModules,isLibFile:t.isLibFile,typeReferenceDirectives:n.convertFileReferences(t.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(t.libReferenceDirectives)}}))},r.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+t+"')",(function(){var n=JSON.parse(t);return e.getAutomaticTypeDirectiveNames(n,r.host)}))},r.prototype.convertFileReferences=function(t){if(t){for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n];r.push({path:e.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return r}},r.prototype.getTSConfigFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getTSConfigFileInfo('"+t+"')",(function(){var a=e.parseJsonText(t,e.getSnapshotText(r)),o=e.normalizeSlashes(t),s=e.parseJsonSourceFileConfigFileContent(a,n.host,e.getDirectoryPath(o),{},o);return{options:s.options,typeAcquisition:s.typeAcquisition,files:s.fileNames,raw:s.raw,errors:p(i(i([],a.parseDiagnostics,!0),s.errors,!0),"\r\n")}}))},r.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",(function(){return e.getDefaultCompilerOptions()}))},r.prototype.discoverTypings=function(t){var r=this,n=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",(function(){var i=JSON.parse(t);return void 0===r.safeList&&(r.safeList=e.JsTyping.loadSafeList(r.host,e.toPath(i.safeListPath,i.safeListPath,n))),e.JsTyping.discoverTypings(r.host,(function(e){return r.logger.log(e)}),i.fileNames,e.toPath(i.projectRootPath,i.projectRootPath,n),r.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)}))},r}(d),h=function(){function r(){this._shims=[]}return r.prototype.getServicesVersion=function(){return e.servicesVersion},r.prototype.createLanguageServiceShim=function(r){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames(),r.getCurrentDirectory()));var i=new n(r),a=e.createLanguageService(i,this.documentRegistry,!1);return new f(this,r,a)}catch(e){throw t(r,e),e}},r.prototype.createClassifierShim=function(e){try{return new m(this,e)}catch(r){throw t(e,r),r}},r.prototype.createCoreServicesShim=function(e){try{var r=new o(e);return new y(this,e,r)}catch(r){throw t(e,r),r}},r.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},r.prototype.registerShim=function(e){this._shims.push(e)},r.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},r}();e.TypeScriptServicesFactory=h}(u||(u={})),function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,"undefined"==typeof globalThis&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),("undefined"==typeof process||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=u.TypeScriptServicesFactory,globalThis.toolsVersion=u.versionMajorMinor),e.exports&&(e.exports=u),function(e){var t={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,t),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,t),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,t),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,t),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,t),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,t),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,t),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,t),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,t),e.createSuper=e.Debug.deprecate(e.factory.createSuper,t),e.createThis=e.Debug.deprecate(e.factory.createThis,t),e.createNull=e.Debug.deprecate(e.factory.createNull,t),e.createTrue=e.Debug.deprecate(e.factory.createTrue,t),e.createFalse=e.Debug.deprecate(e.factory.createFalse,t),e.createModifier=e.Debug.deprecate(e.factory.createModifier,t),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,t),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,t),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,t),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,t),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,t),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,t),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,t),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,t),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,t),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,t),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,t),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,t),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,t),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,t),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,t),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,t),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,t),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,t),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,t),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,t),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,t),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,t),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,t),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,t),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,t),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,t),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,t),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,t),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,t),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,t),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,t),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,t),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,t),e.createConstructorTypeNode=e.Debug.deprecate((function(t,r,n){return e.factory.createConstructorTypeNode(void 0,t,r,n)}),t),e.updateConstructorTypeNode=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateConstructorTypeNode(t,t.modifiers,r,n,i)}),t),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,t),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,t),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,t),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,t),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,t),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,t),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,t),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,t),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,t),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,t),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,t),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,t),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,t),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,t),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,t),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,t),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,t),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,t),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,t),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,t),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,t),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,t),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,t),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,t),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,t),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,t),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,t),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,t),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,t),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,t),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,t),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,t),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,t),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,t),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,t),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,t),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,t),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,t),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,t),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,t),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,t),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,t),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,t),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,t),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,t),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,t),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,t),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,t),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,t),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,t),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,t),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,t),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,t),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,t),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,t),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,t),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,t),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,t),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,t),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,t),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,t),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,t),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,t),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,t),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,t),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,t),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,t),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,t),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,t),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,t),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,t),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,t),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,t),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,t),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,t),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,t),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,t),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,t),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,t),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,t),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,t),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,t),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,t),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,t),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,t),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,t),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,t),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,t),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,t),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,t),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,t),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,t),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,t),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,t),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,t),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,t),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,t),e.createBlock=e.Debug.deprecate(e.factory.createBlock,t),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,t),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,t),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,t),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,t),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,t),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,t),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,t),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,t),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,t),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,t),e.createFor=e.Debug.deprecate(e.factory.createForStatement,t),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,t),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,t),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,t),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,t),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,t),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,t),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,t),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,t),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,t),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,t),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,t),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,t),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,t),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,t),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,t),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,t),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,t),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,t),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,t),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,t),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,t),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,t),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,t),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,t),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,t),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,t),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,t),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,t),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,t),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,t),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,t),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,t),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,t),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,t),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,t),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,t),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,t),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,t),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,t),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,t),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,t),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,t),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,t),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,t),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,t),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,t),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,t),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,t),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,t),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,t),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,t),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,t),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,t),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,t),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,t),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,t),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,t),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,t),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,t),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,t),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,t),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,t),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,t),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,t),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,t),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,t),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,t),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,t),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,t),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,t),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,t),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,t),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,t),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,t),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,t),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,t),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,t),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,t),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,t),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,t),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,t),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,t),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,t),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,t),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,t),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,t),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,t),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,t),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,t),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,t),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,t),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,t),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,t),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,t),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,t),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,t),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,t),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,t),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,t),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,t),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,t),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,t),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,t),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,t),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,t),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,t),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,t),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,t),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,t),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,t),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,t),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,t),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,t),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,t),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,t),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,t),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,t),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,t),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,t),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,t),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,t),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,t),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,t),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,t),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,t),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,t),e.createBundle=e.Debug.deprecate(e.factory.createBundle,t),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,t),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,t),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,t),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,t),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,t),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,t),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,t),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,t),e.createToken=e.Debug.deprecate((function(t){return e.factory.createToken(t)}),t),e.createIdentifier=e.Debug.deprecate((function(t){return e.factory.createIdentifier(t,void 0,void 0)}),t),e.createTempVariable=e.Debug.deprecate((function(t){return e.factory.createTempVariable(t,void 0)}),t),e.getGeneratedNameForNode=e.Debug.deprecate((function(t){return e.factory.getGeneratedNameForNode(t,void 0)}),t),e.createOptimisticUniqueName=e.Debug.deprecate((function(t){return e.factory.createUniqueName(t,16)}),t),e.createFileLevelUniqueName=e.Debug.deprecate((function(t){return e.factory.createUniqueName(t,48)}),t),e.createIndexSignature=e.Debug.deprecate((function(t,r,n,i){return e.factory.createIndexSignature(t,r,n,i)}),t),e.createTypePredicateNode=e.Debug.deprecate((function(t,r){return e.factory.createTypePredicateNode(void 0,t,r)}),t),e.updateTypePredicateNode=e.Debug.deprecate((function(t,r,n){return e.factory.updateTypePredicateNode(t,void 0,r,n)}),t),e.createLiteral=e.Debug.deprecate((function(t){return"number"==typeof t?e.factory.createNumericLiteral(t):"object"==typeof t&&"base10Value"in t?e.factory.createBigIntLiteral(t):"boolean"==typeof t?t?e.factory.createTrue():e.factory.createFalse():"string"==typeof t?e.factory.createStringLiteral(t,void 0):e.factory.createStringLiteralFromNode(t)}),{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate((function(t,r,n,i,a){return e.factory.createMethodSignature(void 0,i,a,t,r,n)}),t),e.updateMethodSignature=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateMethodSignature(t,t.modifiers,a,o,r,n,i)}),t),e.createTypeOperatorNode=e.Debug.deprecate((function(t,r){var n;return r?n=t:(r=t,n=139),e.factory.createTypeOperatorNode(n,r)}),t),e.createTaggedTemplate=e.Debug.deprecate((function(t,r,n){var i;return n?i=r:n=r,e.factory.createTaggedTemplateExpression(t,i,n)}),t),e.updateTaggedTemplate=e.Debug.deprecate((function(t,r,n,i){var a;return i?a=n:i=n,e.factory.updateTaggedTemplateExpression(t,r,a,i)}),t),e.updateBinary=e.Debug.deprecate((function(t,r,n,i){return void 0===i&&(i=t.operatorToken),"number"==typeof i&&(i=i===t.operatorToken.kind?t.operatorToken:e.factory.createToken(i)),e.factory.updateBinaryExpression(t,r,i,n)}),t),e.createConditional=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.createConditionalExpression(t,r,n,i,a):3===arguments.length?e.factory.createConditionalExpression(t,e.factory.createToken(57),r,e.factory.createToken(58),n):e.Debug.fail("Argument count mismatch")}),t),e.createYield=e.Debug.deprecate((function(t,r){var n;return r?n=t:r=t,e.factory.createYieldExpression(n,r)}),t),e.createClassExpression=e.Debug.deprecate((function(t,r,n,i,a){return e.factory.createClassExpression(void 0,t,r,n,i,a)}),t),e.updateClassExpression=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateClassExpression(t,void 0,r,n,i,a,o)}),t),e.createPropertySignature=e.Debug.deprecate((function(t,r,n,i,a){var o=e.factory.createPropertySignature(t,r,n,i);return o.initializer=a,o}),t),e.updatePropertySignature=e.Debug.deprecate((function(t,r,n,i,a,o){var s=e.factory.updatePropertySignature(t,r,n,i,a);return t.initializer!==o&&(s===t&&(s=e.factory.cloneNode(t)),s.initializer=o),s}),t),e.createExpressionWithTypeArguments=e.Debug.deprecate((function(t,r){return e.factory.createExpressionWithTypeArguments(r,t)}),t),e.updateExpressionWithTypeArguments=e.Debug.deprecate((function(t,r,n){return e.factory.updateExpressionWithTypeArguments(t,n,r)}),t),e.createArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o){return 6===arguments.length?e.factory.createArrowFunction(t,r,n,i,a,o):5===arguments.length?e.factory.createArrowFunction(t,r,n,i,void 0,a):e.Debug.fail("Argument count mismatch")}),t),e.updateArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o,s){return 7===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,o,s):6===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,t.equalsGreaterThanToken,o):e.Debug.fail("Argument count mismatch")}),t),e.createVariableDeclaration=e.Debug.deprecate((function(t,r,n,i){return 4===arguments.length?e.factory.createVariableDeclaration(t,r,n,i):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate((function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)}),t),e.updateImportClause=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)}),t),e.createExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)}),t),e.updateExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a)}),t),e.createJSDocParamTag=e.Debug.deprecate((function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)}),t),e.createComma=e.Debug.deprecate((function(t,r){return e.factory.createComma(t,r)}),t),e.createLessThan=e.Debug.deprecate((function(t,r){return e.factory.createLessThan(t,r)}),t),e.createAssignment=e.Debug.deprecate((function(t,r){return e.factory.createAssignment(t,r)}),t),e.createStrictEquality=e.Debug.deprecate((function(t,r){return e.factory.createStrictEquality(t,r)}),t),e.createStrictInequality=e.Debug.deprecate((function(t,r){return e.factory.createStrictInequality(t,r)}),t),e.createAdd=e.Debug.deprecate((function(t,r){return e.factory.createAdd(t,r)}),t),e.createSubtract=e.Debug.deprecate((function(t,r){return e.factory.createSubtract(t,r)}),t),e.createLogicalAnd=e.Debug.deprecate((function(t,r){return e.factory.createLogicalAnd(t,r)}),t),e.createLogicalOr=e.Debug.deprecate((function(t,r){return e.factory.createLogicalOr(t,r)}),t),e.createPostfixIncrement=e.Debug.deprecate((function(t){return e.factory.createPostfixIncrement(t)}),t),e.createLogicalNot=e.Debug.deprecate((function(t){return e.factory.createLogicalNot(t)}),t),e.createNode=e.Debug.deprecate((function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(300===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(t){var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate((function(e){return 209===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((function(t){return e.isMemberName(t)}),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(u||(u={}))},"./node_modules/typescript/lib sync recursive":e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id="./node_modules/typescript/lib sync recursive",e.exports=t},"./src/jshelpers.js":(e,t,r)=>{const n=r("./node_modules/typescript/lib/typescript.js");function i(e){return n.declarationNameToString(e)}function i(e){return n.declarationNameToString(e)}e.exports={getSymbol:function(e){return e.symbol},tsStringToString:function(e){return""+e},getTextOfIdentifierOrLiteral:function(e){return n.getTextOfIdentifierOrLiteral(e)},isJsFile:function(e){return 0!=(e.scriptKind&n.ScriptKind.JS)},createEmptyNodeArray:function(){return[]},getFlowNode:function(e){return e.flowNode},bindSourceFile:function(e,t){n.bindSourceFile(e,t)},createDiagnosticForNode:function(e,t,...r){return n.createDiagnosticForNode(e,t,...r)},createCompilerDiagnostic:function(e,...t){return n.createCompilerDiagnostic(e,...t)},createFileDiagnostic:function(e,t,r,i,...a){return n.createFileDiagnostic(e,t,r,i,a)},isEffectiveStrictModeSourceFile:function(e,t){return n.isEffectiveStrictModeSourceFile(e,t)},getErrorSpanForNode:function(e,t){return n.getErrorSpanForNode(e,t)},getSpanOfTokenAtPosition:function(e,t){return n.getSpanOfTokenAtPosition(e,t)},getContainingClass:function(e){return n.getContainingClass(e)},declarationNameToString:i,getContainingFunction:function(e){return n.getContainingFunction(e)},isPrologueDirective:function(e){return n.isPrologueDirective(e)},getSourceTextOfNodeFromSourceFile:function(e,t,r){return n.getSourceTextOfNodeFromSourceFile(e,t,r)},isAssignmentTarget:function(e){return n.isAssignmentTarget(e)},getSourceFileOfNode:function(e){return n.getSourceFileOfNode(e)},isIterationStatement:function(e,t){return n.isIterationStatement(e,t)},getTextOfNode:function(e,t){return n.getTextOfNode(e,t)},nodePosToString:function(e){return n.nodePosToString(e)},getContainingFunctionDeclaration:function(e){return n.getContainingFunctionDeclaration(e)},tokenToString:function(e){return n.tokenToString(e)},getNewTargetContainer:function(e){return n.getNewTargetContainer(e)},isLet:function(e){return n.isLet(e)},isVarConst:function(e){return n.isVarConst(e)},nodeCanBeDecorated:function(e){return n.nodeCanBeDecorated(e)},nodeIsPresent:function(e){return n.nodeIsPresent(e)},getAllAccessorDeclarations:function(e,t){return n.getAllAccessorDeclarations(e,t)},modifierToFlag:function(e){return n.modifierToFlag(e)},hasSyntacticModifier:function(e,t){return n.hasSyntacticModifier(e,t)},isAmbientModule:function(e){return n.isAmbientModule(e)},isKeyword:function(e){return n.isKeyword(e)},getThisContainer:function(e){return n.getThisContainer(e)},getEnclosingBlockScopeContainer:function(e){return n.getEnclosingBlockScopeContainer(e)},findAncestor:function(e,t){return n.findAncestor(e,t)},isBlockScope:function(e,t){return n.isBlockScope(e,t)},isIdentifierName:function(e){return n.isIdentifierName(e)},declarationNameToString:i,isInTopLevelContext:function(e){return n.isInTopLevelContext(e)},isExternalOrCommonJsModule:function(e){return n.isExternalOrCommonJsModule(e)},skipParentheses:function(e){return n.skipParentheses(e)},getImmediatelyInvokedFunctionExpression:function(e){return n.getImmediatelyInvokedFunctionExpression(e)},hasQuestionToken:function(e){return n.hasQuestionToken(e)},getPropertyNameForPropertyNameNode:function(e){return n.getPropertyNameForPropertyNameNode(e)},isFunctionBlock:function(e){return n.isFunctionBlock(e)},isFunctionLike:function(e){return n.isFunctionLike(e)},getSuperContainer:function(e,t){return n.getSuperContainer(e,t)},getClassExtendsHeritageElement:function(e){return n.getClassExtendsHeritageElement(e)},hasStaticModifier:function(e){return n.hasStaticModifier(e)},skipOuterExpressions:function(e,t){return n.skipOuterExpressions(e,t)},isSuperCall:function(e){return n.isSuperCall(e)},isThisIdentifier:function(e){return n.isThisIdentifier(e)},isThisProperty:function(e){return n.isThisProperty(e)},isSuperProperty:function(e){return n.isSuperProperty(e)},setParent:function(e,t){return n.setParent(e,t)}}},buffer:e=>{"use strict";e.exports=require("buffer")},child_process:e=>{"use strict";e.exports=require("child_process")},crypto:e=>{"use strict";e.exports=require("crypto")},events:e=>{"use strict";e.exports=require("events")},fs:e=>{"use strict";e.exports=require("fs")},inspector:e=>{"use strict";e.exports=require("inspector")},os:e=>{"use strict";e.exports=require("os")},path:e=>{"use strict";e.exports=require("path")},perf_hooks:e=>{"use strict";e.exports=require("perf_hooks")},process:e=>{"use strict";e.exports=require("process")},"./node_modules/commander/index.js":(e,t,r)=>{const{Argument:n}=r("./node_modules/commander/lib/argument.js"),{Command:i}=r("./node_modules/commander/lib/command.js"),{CommanderError:a,InvalidArgumentError:o}=r("./node_modules/commander/lib/error.js"),{Help:s}=r("./node_modules/commander/lib/help.js"),{Option:c}=r("./node_modules/commander/lib/option.js");(t=e.exports=new i).program=t,t.Argument=n,t.Command=i,t.CommanderError=a,t.Help=s,t.InvalidArgumentError=o,t.InvalidOptionArgumentError=o,t.Option=c},"./node_modules/commander/lib/argument.js":(e,t,r)=>{const{InvalidArgumentError:n}=r("./node_modules/commander/lib/error.js");t.Argument=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.length>3&&"..."===this._name.slice(-3)&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?t.concat(e):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,t):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},t.humanReadableArgName=function(e){const t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}},"./node_modules/commander/lib/command.js":(e,t,r)=>{const n=r("events").EventEmitter,i=r("child_process"),a=r("path"),o=r("fs"),s=r("process"),{Argument:c,humanReadableArgName:l}=r("./node_modules/commander/lib/argument.js"),{CommanderError:u}=r("./node_modules/commander/lib/error.js"),{Help:_}=r("./node_modules/commander/lib/help.js"),{Option:d,splitOptionFlags:p,DualOptions:f}=r("./node_modules/commander/lib/option.js"),{suggestSimilar:g}=r("./node_modules/commander/lib/suggestSimilar.js");class m extends n{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this._args=[],this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:e=>s.stdout.write(e),writeErr:e=>s.stderr.write(e),getOutHelpWidth:()=>s.stdout.isTTY?s.stdout.columns:void 0,getErrHelpWidth:()=>s.stderr.isTTY?s.stderr.columns:void 0,outputError:(e,t)=>t(e)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}command(e,t,r){let n=t,i=r;"object"==typeof n&&null!==n&&(i=n,n=null),i=i||{};const[,a,o]=e.match(/([^ ]+) *(.*)/),s=this.createCommand(a);return n&&(s.description(n),s._executableHandler=!0),i.isDefault&&(this._defaultCommandName=s._name),s._hidden=!(!i.noHelp&&!i.hidden),s._executableFile=i.executableFile||null,o&&s.arguments(o),this.commands.push(s),s.parent=this,s.copyInheritedSettings(this),n?this:s}createCommand(e){return new m(e)}createHelp(){return Object.assign(new _,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()");return(t=t||{}).isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,t){return new c(e,t)}argument(e,t,r,n){const i=this.createArgument(e,t);return"function"==typeof r?i.default(n).argParser(r):i.default(r),this.addArgument(i),this}arguments(e){return e.split(/ +/).forEach((e=>{this.argument(e)})),this}addArgument(e){const t=this._args.slice(-1)[0];if(t&&t.variadic)throw new Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&void 0!==e.defaultValue&&void 0===e.parseArg)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this._args.push(e),this}addHelpCommand(e,t){return!1===e?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,"string"==typeof e&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=t||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return void 0===this._addImplicitHelpCommand?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,t){const r=["preSubcommand","preAction","postAction"];if(!r.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return this._exitCallback=e||(e=>{if("commander.executeSubCommandAsync"!==e.code)throw e}),this}_exit(e,t,r){this._exitCallback&&this._exitCallback(new u(e,t,r)),s.exit(e)}action(e){return this._actionHandler=t=>{const r=this._args.length,n=t.slice(0,r);return this._storeOptionsAsProperties?n[r]=this:n[r]=this.opts(),n.push(this),e.apply(this,n)},this}createOption(e,t){return new d(e,t)}addOption(e){const t=e.name(),r=e.attributeName();if(e.negate){const t=e.long.replace(/^--no-/,"--");this._findOption(t)||this.setOptionValueWithSource(r,void 0===e.defaultValue||e.defaultValue,"default")}else void 0!==e.defaultValue&&this.setOptionValueWithSource(r,e.defaultValue,"default");this.options.push(e);const n=(t,n,i)=>{null==t&&void 0!==e.presetArg&&(t=e.presetArg);const a=this.getOptionValue(r);if(null!==t&&e.parseArg)try{t=e.parseArg(t,a)}catch(e){if("commander.invalidArgument"===e.code){const t=`${n} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}else null!==t&&e.variadic&&(t=e._concatValue(t,a));null==t&&(t=!e.negate&&(!(!e.isBoolean()&&!e.optional)||"")),this.setOptionValueWithSource(r,t,i)};return this.on("option:"+t,(t=>{const r=`error: option '${e.flags}' argument '${t}' is invalid.`;n(t,r,"cli")})),e.envVar&&this.on("optionEnv:"+t,(t=>{const r=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;n(t,r,"env")})),this}_optionEx(e,t,r,n,i){if("object"==typeof t&&t instanceof d)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");const a=this.createOption(t,r);if(a.makeOptionMandatory(!!e.mandatory),"function"==typeof n)a.default(i).argParser(n);else if(n instanceof RegExp){const e=n;n=(t,r)=>{const n=e.exec(t);return n?n[0]:r},a.default(i).argParser(n)}else a.default(n);return this.addOption(a)}option(e,t,r,n){return this._optionEx({},e,t,r,n)}requiredOption(e,t,r,n){return this._optionEx({mandatory:!0},e,t,r,n)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this._storeOptionsAsProperties=!!e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this}setOptionValueWithSource(e,t,r){return this.setOptionValue(e,t),this._optionValueSources[e]=r,this}getOptionValueSource(e){return this._optionValueSources[e]}_prepareUserArgs(e,t){if(void 0!==e&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");let r;switch(t=t||{},void 0===e&&(e=s.argv,s.versions&&s.versions.electron&&(t.from="electron")),this.rawArgs=e.slice(),t.from){case void 0:case"node":this._scriptPath=e[1],r=e.slice(2);break;case"electron":s.defaultApp?(this._scriptPath=e[1],r=e.slice(2)):r=e.slice(1);break;case"user":r=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",r}parse(e,t){const r=this._prepareUserArgs(e,t);return this._parseCommand([],r),this}async parseAsync(e,t){const r=this._prepareUserArgs(e,t);return await this._parseCommand([],r),this}_executeSubCommand(e,t){t=t.slice();let r=!1;const n=[".js",".ts",".tsx",".mjs",".cjs"];function c(e,t){const r=a.resolve(e,t);if(o.existsSync(r))return r;if(n.includes(a.extname(t)))return;const i=n.find((e=>o.existsSync(`${r}${e}`)));return i?`${r}${i}`:void 0}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let l,_=e._executableFile||`${this._name}-${e._name}`,d=this._executableDir||"";if(this._scriptPath){let e;try{e=o.realpathSync(this._scriptPath)}catch(t){e=this._scriptPath}d=a.resolve(a.dirname(e),d)}if(d){let t=c(d,_);if(!t&&!e._executableFile&&this._scriptPath){const r=a.basename(this._scriptPath,a.extname(this._scriptPath));r!==this._name&&(t=c(d,`${r}-${e._name}`))}_=t||_}r=n.includes(a.extname(_)),"win32"!==s.platform?r?(t.unshift(_),t=h(s.execArgv).concat(t),l=i.spawn(s.argv[0],t,{stdio:"inherit"})):l=i.spawn(_,t,{stdio:"inherit"}):(t.unshift(_),t=h(s.execArgv).concat(t),l=i.spawn(s.execPath,t,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((e=>{s.on(e,(()=>{!1===l.killed&&null===l.exitCode&&l.kill(e)}))}));const p=this._exitCallback;p?l.on("close",(()=>{p(new u(s.exitCode||0,"commander.executeSubCommandAsync","(close)"))})):l.on("close",s.exit.bind(s)),l.on("error",(t=>{if("ENOENT"===t.code){const t=d?`searched for local subcommand relative to directory '${d}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",r=`'${_}' does not exist\n - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${t}`;throw new Error(r)}if("EACCES"===t.code)throw new Error(`'${_}' not executable`);if(p){const e=new u(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t,p(e)}else s.exit(1)})),this.runningCommand=l}_dispatchSubcommand(e,t,r){const n=this._findCommand(e);let i;return n||this.help({error:!0}),i=this._chainOrCallSubCommandHook(i,n,"preSubcommand"),i=this._chainOrCall(i,(()=>{if(!n._executableHandler)return n._parseCommand(t,r);this._executeSubCommand(n,t.concat(r))})),i}_checkNumberOfArguments(){this._args.forEach(((e,t)=>{e.required&&null==this.args[t]&&this.missingArgument(e.name())})),this._args.length>0&&this._args[this._args.length-1].variadic||this.args.length>this._args.length&&this._excessArguments(this.args)}_processArguments(){const e=(e,t,r)=>{let n=t;if(null!==t&&e.parseArg)try{n=e.parseArg(t,r)}catch(r){if("commander.invalidArgument"===r.code){const n=`error: command-argument value '${t}' is invalid for argument '${e.name()}'. ${r.message}`;this.error(n,{exitCode:r.exitCode,code:r.code})}throw r}return n};this._checkNumberOfArguments();const t=[];this._args.forEach(((r,n)=>{let i=r.defaultValue;r.variadic?n<this.args.length?(i=this.args.slice(n),r.parseArg&&(i=i.reduce(((t,n)=>e(r,n,t)),r.defaultValue))):void 0===i&&(i=[]):n<this.args.length&&(i=this.args[n],r.parseArg&&(i=e(r,i,r.defaultValue))),t[n]=i})),this.processedArgs=t}_chainOrCall(e,t){return e&&e.then&&"function"==typeof e.then?e.then((()=>t())):t()}_chainOrCallHooks(e,t){let r=e;const n=[];return v(this).reverse().filter((e=>void 0!==e._lifeCycleHooks[t])).forEach((e=>{e._lifeCycleHooks[t].forEach((t=>{n.push({hookedCommand:e,callback:t})}))})),"postAction"===t&&n.reverse(),n.forEach((e=>{r=this._chainOrCall(r,(()=>e.callback(e.hookedCommand,this)))})),r}_chainOrCallSubCommandHook(e,t,r){let n=e;return void 0!==this._lifeCycleHooks[r]&&this._lifeCycleHooks[r].forEach((e=>{n=this._chainOrCall(n,(()=>e(this,t)))})),n}_parseCommand(e,t){const r=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(r.operands),t=r.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return 1===e.length&&this.help(),this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);if(this._defaultCommandName)return y(this,t),this._dispatchSubcommand(this._defaultCommandName,e,t);!this.commands.length||0!==this.args.length||this._actionHandler||this._defaultCommandName||this.help({error:!0}),y(this,r.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();const n=()=>{r.unknown.length>0&&this.unknownOption(r.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){let r;return n(),this._processArguments(),r=this._chainOrCallHooks(r,"preAction"),r=this._chainOrCall(r,(()=>this._actionHandler(this.processedArgs))),this.parent&&(r=this._chainOrCall(r,(()=>{this.parent.emit(i,e,t)}))),r=this._chainOrCallHooks(r,"postAction"),r}if(this.parent&&this.parent.listenerCount(i))n(),this._processArguments(),this.parent.emit(i,e,t);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,t);this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(e){if(e)return this.commands.find((t=>t._name===e||t._aliases.includes(e)))}_findOption(e){return this.options.find((t=>t.is(e)))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach((t=>{t.mandatory&&void 0===e.getOptionValue(t.attributeName())&&e.missingMandatoryOptionValue(t)}))}_checkForConflictingLocalOptions(){const e=this.options.filter((e=>{const t=e.attributeName();return void 0!==this.getOptionValue(t)&&"default"!==this.getOptionValueSource(t)}));e.filter((e=>e.conflictsWith.length>0)).forEach((t=>{const r=e.find((e=>t.conflictsWith.includes(e.attributeName())));r&&this._conflictingOption(t,r)}))}_checkForConflictingOptions(){for(let e=this;e;e=e.parent)e._checkForConflictingLocalOptions()}parseOptions(e){const t=[],r=[];let n=t;const i=e.slice();function a(e){return e.length>1&&"-"===e[0]}let o=null;for(;i.length;){const e=i.shift();if("--"===e){n===r&&n.push(e),n.push(...i);break}if(!o||a(e)){if(o=null,a(e)){const t=this._findOption(e);if(t){if(t.required){const e=i.shift();void 0===e&&this.optionMissingArgument(t),this.emit(`option:${t.name()}`,e)}else if(t.optional){let e=null;i.length>0&&!a(i[0])&&(e=i.shift()),this.emit(`option:${t.name()}`,e)}else this.emit(`option:${t.name()}`);o=t.variadic?t:null;continue}}if(e.length>2&&"-"===e[0]&&"-"!==e[1]){const t=this._findOption(`-${e[1]}`);if(t){t.required||t.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${t.name()}`,e.slice(2)):(this.emit(`option:${t.name()}`),i.unshift(`-${e.slice(2)}`));continue}}if(/^--[^=]+=/.test(e)){const t=e.indexOf("="),r=this._findOption(e.slice(0,t));if(r&&(r.required||r.optional)){this.emit(`option:${r.name()}`,e.slice(t+1));continue}}if(a(e)&&(n=r),(this._enablePositionalOptions||this._passThroughOptions)&&0===t.length&&0===r.length){if(this._findCommand(e)){t.push(e),i.length>0&&r.push(...i);break}if(e===this._helpCommandName&&this._hasImplicitHelpCommand()){t.push(e),i.length>0&&t.push(...i);break}if(this._defaultCommandName){r.push(e),i.length>0&&r.push(...i);break}}if(this._passThroughOptions){n.push(e),i.length>0&&n.push(...i);break}n.push(e)}else this.emit(`option:${o.name()}`,e)}return{operands:t,unknown:r}}opts(){if(this._storeOptionsAsProperties){const e={},t=this.options.length;for(let r=0;r<t;r++){const t=this.options[r].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return v(this).reduce(((e,t)=>Object.assign(e,t.opts())),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr),"string"==typeof this._showHelpAfterError?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr("\n"),this.outputHelp({error:!0}));const r=t||{},n=r.exitCode||1,i=r.code||"commander.error";this._exit(n,i,e)}_parseOptionsEnv(){this.options.forEach((e=>{if(e.envVar&&e.envVar in s.env){const t=e.attributeName();(void 0===this.getOptionValue(t)||["default","config","env"].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,s.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}}))}_parseOptionsImplied(){const e=new f(this.options),t=e=>void 0!==this.getOptionValue(e)&&!["default","implied"].includes(this.getOptionValueSource(e));this.options.filter((r=>void 0!==r.implied&&t(r.attributeName())&&e.valueFromOption(this.getOptionValue(r.attributeName()),r))).forEach((e=>{Object.keys(e.implied).filter((e=>!t(e))).forEach((t=>{this.setOptionValueWithSource(t,e.implied[t],"implied")}))}))}missingArgument(e){const t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){const r=e=>{const t=e.attributeName(),r=this.getOptionValue(t),n=this.options.find((e=>e.negate&&t===e.attributeName())),i=this.options.find((e=>!e.negate&&t===e.attributeName()));return n&&(void 0===n.presetArg&&!1===r||void 0!==n.presetArg&&r===n.presetArg)?n:i||e},n=e=>{const t=r(e),n=t.attributeName();return"env"===this.getOptionValueSource(n)?`environment variable '${t.envVar}'`:`option '${t.flags}'`},i=`error: ${n(e)} cannot be used with ${n(t)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let r=[],n=this;do{const e=n.createHelp().visibleOptions(n).filter((e=>e.long)).map((e=>e.long));r=r.concat(e),n=n.parent}while(n&&!n._enablePositionalOptions);t=g(e,r)}const r=`error: unknown option '${e}'${t}`;this.error(r,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;const t=this._args.length,r=1===t?"":"s",n=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${t} argument${r} but got ${e.length}.`;this.error(n,{code:"commander.excessArguments"})}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const r=[];this.createHelp().visibleCommands(this).forEach((e=>{r.push(e.name()),e.alias()&&r.push(e.alias())})),t=g(e,r)}const r=`error: unknown command '${e}'${t}`;this.error(r,{code:"commander.unknownCommand"})}version(e,t,r){if(void 0===e)return this._version;this._version=e,t=t||"-V, --version",r=r||"output the version number";const n=this.createOption(t,r);return this._versionOptionName=n.attributeName(),this.options.push(n),this.on("option:"+n.name(),(()=>{this._outputConfiguration.writeOut(`${e}\n`),this._exit(0,"commander.version",e)})),this}description(e,t){return void 0===e&&void 0===t?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return void 0===e?this._summary:(this._summary=e,this)}alias(e){if(void 0===e)return this._aliases[0];let t=this;if(0!==this.commands.length&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");return t._aliases.push(e),this}aliases(e){return void 0===e?this._aliases:(e.forEach((e=>this.alias(e))),this)}usage(e){if(void 0===e){if(this._usage)return this._usage;const e=this._args.map((e=>l(e)));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?e:[]).join(" ")}return this._usage=e,this}name(e){return void 0===e?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=a.basename(e,a.extname(e)),this}executableDir(e){return void 0===e?this._executableDir:(this._executableDir=e,this)}helpInformation(e){const t=this.createHelp();return void 0===t.helpWidth&&(t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),t.formatHelp(this,t)}_getHelpContext(e){const t={error:!!(e=e||{}).error};let r;return r=t.error?e=>this._outputConfiguration.writeErr(e):e=>this._outputConfiguration.writeOut(e),t.write=e.write||r,t.command=this,t}outputHelp(e){let t;"function"==typeof e&&(t=e,e=void 0);const r=this._getHelpContext(e);v(this).reverse().forEach((e=>e.emit("beforeAllHelp",r))),this.emit("beforeHelp",r);let n=this.helpInformation(r);if(t&&(n=t(n),"string"!=typeof n&&!Buffer.isBuffer(n)))throw new Error("outputHelp callback must return a string or a Buffer");r.write(n),this.emit(this._helpLongFlag),this.emit("afterHelp",r),v(this).forEach((e=>e.emit("afterAllHelp",r)))}helpOption(e,t){if("boolean"==typeof e)return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription;const r=p(this._helpFlags);return this._helpShortFlag=r.shortFlag,this._helpLongFlag=r.longFlag,this}help(e){this.outputHelp(e);let t=s.exitCode||0;0===t&&e&&"function"!=typeof e&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const r=["beforeAll","before","after","afterAll"];if(!r.includes(e))throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${r.join("', '")}'`);const n=`${e}Help`;return this.on(n,(e=>{let r;r="function"==typeof t?t({error:e.error,command:e.command}):t,r&&e.write(`${r}\n`)})),this}}function y(e,t){e._hasHelpOption&&t.find((t=>t===e._helpLongFlag||t===e._helpShortFlag))&&(e.outputHelp(),e._exit(0,"commander.helpDisplayed","(outputHelp)"))}function h(e){return e.map((e=>{if(!e.startsWith("--inspect"))return e;let t,r,n="127.0.0.1",i="9229";return null!==(r=e.match(/^(--inspect(-brk)?)$/))?t=r[1]:null!==(r=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))?(t=r[1],/^\d+$/.test(r[3])?i=r[3]:n=r[3]):null!==(r=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(t=r[1],n=r[3],i=r[4]),t&&"0"!==i?`${t}=${n}:${parseInt(i)+1}`:e}))}function v(e){const t=[];for(let r=e;r;r=r.parent)t.push(r);return t}t.Command=m},"./node_modules/commander/lib/error.js":(e,t)=>{class r extends Error{constructor(e,t,r){super(r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}}t.CommanderError=r,t.InvalidArgumentError=class extends r{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}},"./node_modules/commander/lib/help.js":(e,t,r)=>{const{humanReadableArgName:n}=r("./node_modules/commander/lib/argument.js");t.Help=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1}visibleCommands(e){const t=e.commands.filter((e=>!e._hidden));if(e._hasImplicitHelpCommand()){const[,r,n]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),i=e.createCommand(r).helpOption(!1);i.description(e._helpCommandDescription),n&&i.arguments(n),t.push(i)}return this.sortSubcommands&&t.sort(((e,t)=>e.name().localeCompare(t.name()))),t}visibleOptions(e){const t=e.options.filter((e=>!e.hidden)),r=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),n=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(r||n){let i;i=r?n?e.createOption(e._helpFlags,e._helpDescription):e.createOption(e._helpShortFlag,e._helpDescription):e.createOption(e._helpLongFlag,e._helpDescription),t.push(i)}if(this.sortOptions){const e=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");t.sort(((t,r)=>e(t).localeCompare(e(r))))}return t}visibleArguments(e){return e._argsDescription&&e._args.forEach((t=>{t.description=t.description||e._argsDescription[t.name()]||""})),e._args.find((e=>e.description))?e._args:[]}subcommandTerm(e){const t=e._args.map((e=>n(e))).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce(((e,r)=>Math.max(e,t.subcommandTerm(r).length)),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce(((e,r)=>Math.max(e,t.optionTerm(r).length)),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce(((e,r)=>Math.max(e,t.argumentTerm(r).length)),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let r="";for(let t=e.parent;t;t=t.parent)r=t.name()+" "+r;return r+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){const t=[];return e.argChoices&&t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`),void 0!==e.defaultValue&&(e.required||e.optional||e.isBoolean()&&"boolean"==typeof e.defaultValue)&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),void 0!==e.presetArg&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),void 0!==e.envVar&&t.push(`env: ${e.envVar}`),t.length>0?`${e.description} (${t.join(", ")})`:e.description}argumentDescription(e){const t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map((e=>JSON.stringify(e))).join(", ")}`),void 0!==e.defaultValue&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){const r=`(${t.join(", ")})`;return e.description?`${e.description} ${r}`:r}return e.description}formatHelp(e,t){const r=t.padWidth(e,t),n=t.helpWidth||80;function i(e,i){if(i){const a=`${e.padEnd(r+2)}${i}`;return t.wrap(a,n-2,r+2)}return e}function a(e){return e.join("\n").replace(/^/gm," ".repeat(2))}let o=[`Usage: ${t.commandUsage(e)}`,""];const s=t.commandDescription(e);s.length>0&&(o=o.concat([s,""]));const c=t.visibleArguments(e).map((e=>i(t.argumentTerm(e),t.argumentDescription(e))));c.length>0&&(o=o.concat(["Arguments:",a(c),""]));const l=t.visibleOptions(e).map((e=>i(t.optionTerm(e),t.optionDescription(e))));l.length>0&&(o=o.concat(["Options:",a(l),""]));const u=t.visibleCommands(e).map((e=>i(t.subcommandTerm(e),t.subcommandDescription(e))));return u.length>0&&(o=o.concat(["Commands:",a(u),""])),o.join("\n")}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,r,n=40){if(e.match(/[\n]\s+/))return e;const i=t-r;if(i<n)return e;const a=e.slice(0,r),o=e.slice(r),s=" ".repeat(r),c=new RegExp(".{1,"+(i-1)+"}([\\s​]|$)|[^\\s​]+?([\\s​]|$)","g");return a+(o.match(c)||[]).map(((e,t)=>("\n"===e.slice(-1)&&(e=e.slice(0,e.length-1)),(t>0?s:"")+e.trimRight()))).join("\n")}}},"./node_modules/commander/lib/option.js":(e,t,r)=>{const{InvalidArgumentError:n}=r("./node_modules/commander/lib/error.js");function i(e){let t,r;const n=e.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(t=n.shift()),r=n.shift(),!t&&/^-[^-]$/.test(r)&&(t=r,r=void 0),{shortFlag:t,longFlag:r}}t.Option=class{constructor(e,t){this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;const r=i(e);this.short=r.shortFlag,this.long=r.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){return this.implied=Object.assign(this.implied||{},e),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?t.concat(e):[e]}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,t):e},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.name().replace(/^no-/,"").split("-").reduce(((e,t)=>e+t[0].toUpperCase()+t.slice(1)))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},t.splitOptionFlags=i,t.DualOptions=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach((e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)})),this.negativeOptions.forEach(((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)}))}valueFromOption(e,t){const r=t.attributeName();if(!this.dualOptions.has(r))return!0;const n=this.negativeOptions.get(r).presetArg,i=void 0!==n&&n;return t.negate===(i===e)}}},"./node_modules/commander/lib/suggestSimilar.js":(e,t)=>{t.suggestSimilar=function(e,t){if(!t||0===t.length)return"";t=Array.from(new Set(t));const r=e.startsWith("--");r&&(e=e.slice(2),t=t.map((e=>e.slice(2))));let n=[],i=3;return t.forEach((t=>{if(t.length<=1)return;const r=function(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);const r=[];for(let t=0;t<=e.length;t++)r[t]=[t];for(let e=0;e<=t.length;e++)r[0][e]=e;for(let n=1;n<=t.length;n++)for(let i=1;i<=e.length;i++){let a=1;a=e[i-1]===t[n-1]?0:1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+a),i>1&&n>1&&e[i-1]===t[n-2]&&e[i-2]===t[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[e.length][t.length]}(e,t),a=Math.max(e.length,t.length);(a-r)/a>.4&&(r<i?(i=r,n=[t]):r===i&&n.push(t))})),n.sort(((e,t)=>e.localeCompare(t))),r&&(n=n.map((e=>`--${e}`))),n.length>1?`\n(Did you mean one of ${n.join(", ")}?)`:1===n.length?`\n(Did you mean ${n[0]}?)`:""}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__("./src/index.ts"),__webpack_export_target__=exports;for(var i in __webpack_exports__)__webpack_export_target__[i]=__webpack_exports__[i];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0})})();