All Downloads are FREE. Search and download functionalities are using the official Maven repository.

obigen.tsplugin.2.0.0.source-code.ts-merger.js Maven / Gradle / Ivy

There is a newer version: 2021.12.006
Show newest version
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=89)}([function(e,t,r){"use strict";(function(e){function n(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function g(e){return+e!=e&&(e=0),a.alloc(+e)}function m(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(n)return U(e).length;t=(""+t).toLowerCase(),n=!0}}function h(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return w(this,t,r);case"ascii":return N(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){function a(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}var u;if(i){var l=-1;for(u=r;us&&(r=s-c),u=r;u>=0;u--){for(var d=!0,f=0;fi&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o239?4:a>223?3:a>191?2:1;if(i+s<=r){var c,u,l,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],128==(192&c)&&(d=(31&a)<<6|63&c)>127&&(o=d);break;case 3:c=e[i+1],u=e[i+2],128==(192&c)&&128==(192&u)&&(d=(15&a)<<12|(63&c)<<6|63&u)>2047&&(d<55296||d>57343)&&(o=d);break;case 4:c=e[i+1],u=e[i+2],l=e[i+3],128==(192&c)&&128==(192&u)&&128==(192&l)&&(d=(15&a)<<18|(63&c)<<12|(63&u)<<6|63&l)>65535&&d<1114112&&(o=d)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return A(n)}function A(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,r,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function L(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function B(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,i){return i||B(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,i){return i||B(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,r,n,52,8),r+8}function K(e){if(e=J(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function J(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function q(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function V(e){for(var t=[],r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function W(e){return Y.toByteArray(K(e))}function G(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function X(e){return e!==e}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh  
 * @license  MIT
 */
var Y=r(94),Q=r(95),Z=r(46);t.Buffer=a,t.SlowBuffer=g,t.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,r){return o(null,e,t,r)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,r){return c(null,e,t,r)},a.allocUnsafe=function(e){return u(null,e)},a.allocUnsafeSlow=function(e){return u(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},a.prototype.compare=function(e,t,r,n,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,c=Math.min(o,s),u=this.slice(n,i),l=e.slice(t,r),d=0;di)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return k(this,e,t,r);case"utf8":case"utf-8":return x(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e],i=1,a=0;++a=i&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},a.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),Q.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),Q.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),Q.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),Q.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){F(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function s(e,t,r,n){for(var i=0,a=Math.min(e.length,r),o=t;o=49?s-49+10:s>=17?s-17+10:s}return i}function c(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}function u(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;r.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),_=Math.max(0,u-e.length+1);_<=f;_++){var p=u-_|0;i=0|e.words[p],a=0|t.words[_],o=i*a+d,l+=o/67108864|0,d=67108863&o}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}function l(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a>>26)|0,i+=o>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}function d(e,t,r){return(new f).mulp(e,t,r)}function f(e,t){this.x=e,this.y=t}function _(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function m(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function h(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function v(e){y.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;var b;try{b=r(0).Buffer}catch(e){}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var i=0;"-"===e[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=o(e,r,r+6),this.words[n]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,n++);r+6!==t&&(i=o(e,t,r+6),this.words[n]|=i<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,o=a%n,c=Math.min(a,a-o)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var k=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){e=e||10,t=0|t||1;var r;if(16===e||"hex"===e){r="";for(var i=0,a=0,o=0;o>>24-i&16777215,r=0!==a||o!==this.length-1?k[6-c.length]+c+r:c+r,i+=2,i>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=x[e],l=S[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var f=d.modn(l).toString(e);d=d.idivn(l),r=d.isZero()?f+r:k[u-f.length]+f+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==b),this.toArrayLike(b,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(a),l=this.clone();if(c){for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[s]=o;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;var n,i;r>0?(n=this,i=e):(n=e,i=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,_=0|o[1],p=8191&_,g=_>>>13,m=0|o[2],h=8191&m,y=m>>>13,v=0|o[3],b=8191&v,k=v>>>13,x=0|o[4],S=8191&x,C=x>>>13,E=0|o[5],D=8191&E,T=E>>>13,w=0|o[6],A=8191&w,N=w>>>13,P=0|o[7],M=8191&P,O=P>>>13,I=0|o[8],F=8191&I,R=I>>>13,L=0|o[9],B=8191&L,j=L>>>13,z=0|s[0],K=8191&z,J=z>>>13,q=0|s[1],U=8191&q,V=q>>>13,H=0|s[2],W=8191&H,G=H>>>13,X=0|s[3],Y=8191&X,Q=X>>>13,Z=0|s[4],$=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,_e=0|s[9],pe=8191&_e,ge=_e>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(d,K),i=Math.imul(d,J),i=i+Math.imul(f,K)|0,a=Math.imul(f,J);var me=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,K),i=Math.imul(p,J),i=i+Math.imul(g,K)|0,a=Math.imul(g,J),n=n+Math.imul(d,U)|0,i=i+Math.imul(d,V)|0,i=i+Math.imul(f,U)|0,a=a+Math.imul(f,V)|0;var he=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(he>>>26)|0,he&=67108863,n=Math.imul(h,K),i=Math.imul(h,J),i=i+Math.imul(y,K)|0,a=Math.imul(y,J),n=n+Math.imul(p,U)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(g,U)|0,a=a+Math.imul(g,V)|0,n=n+Math.imul(d,W)|0,i=i+Math.imul(d,G)|0,i=i+Math.imul(f,W)|0,a=a+Math.imul(f,G)|0;var ye=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(b,K),i=Math.imul(b,J),i=i+Math.imul(k,K)|0,a=Math.imul(k,J),n=n+Math.imul(h,U)|0,i=i+Math.imul(h,V)|0,i=i+Math.imul(y,U)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,W)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(g,W)|0,a=a+Math.imul(g,G)|0,n=n+Math.imul(d,Y)|0,i=i+Math.imul(d,Q)|0,i=i+Math.imul(f,Y)|0,a=a+Math.imul(f,Q)|0;var ve=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,K),i=Math.imul(S,J),i=i+Math.imul(C,K)|0,a=Math.imul(C,J),n=n+Math.imul(b,U)|0,i=i+Math.imul(b,V)|0,i=i+Math.imul(k,U)|0,a=a+Math.imul(k,V)|0,n=n+Math.imul(h,W)|0,i=i+Math.imul(h,G)|0,i=i+Math.imul(y,W)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(p,Y)|0,i=i+Math.imul(p,Q)|0,i=i+Math.imul(g,Y)|0,a=a+Math.imul(g,Q)|0,n=n+Math.imul(d,$)|0,i=i+Math.imul(d,ee)|0,i=i+Math.imul(f,$)|0,a=a+Math.imul(f,ee)|0;var be=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(D,K),i=Math.imul(D,J),i=i+Math.imul(T,K)|0,a=Math.imul(T,J),n=n+Math.imul(S,U)|0,i=i+Math.imul(S,V)|0,i=i+Math.imul(C,U)|0,a=a+Math.imul(C,V)|0,n=n+Math.imul(b,W)|0,i=i+Math.imul(b,G)|0,i=i+Math.imul(k,W)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(h,Y)|0,i=i+Math.imul(h,Q)|0,i=i+Math.imul(y,Y)|0,a=a+Math.imul(y,Q)|0,n=n+Math.imul(p,$)|0,i=i+Math.imul(p,ee)|0,i=i+Math.imul(g,$)|0,a=a+Math.imul(g,ee)|0,n=n+Math.imul(d,re)|0,i=i+Math.imul(d,ne)|0,i=i+Math.imul(f,re)|0,a=a+Math.imul(f,ne)|0;var ke=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(A,K),i=Math.imul(A,J),i=i+Math.imul(N,K)|0,a=Math.imul(N,J),n=n+Math.imul(D,U)|0,i=i+Math.imul(D,V)|0,i=i+Math.imul(T,U)|0,a=a+Math.imul(T,V)|0,n=n+Math.imul(S,W)|0,i=i+Math.imul(S,G)|0,i=i+Math.imul(C,W)|0,a=a+Math.imul(C,G)|0,n=n+Math.imul(b,Y)|0,i=i+Math.imul(b,Q)|0,i=i+Math.imul(k,Y)|0,a=a+Math.imul(k,Q)|0,n=n+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0,i=i+Math.imul(y,$)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0,i=i+Math.imul(g,re)|0,a=a+Math.imul(g,ne)|0,n=n+Math.imul(d,ae)|0,i=i+Math.imul(d,oe)|0,i=i+Math.imul(f,ae)|0,a=a+Math.imul(f,oe)|0;var xe=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(M,K),i=Math.imul(M,J),i=i+Math.imul(O,K)|0,a=Math.imul(O,J),n=n+Math.imul(A,U)|0,i=i+Math.imul(A,V)|0,i=i+Math.imul(N,U)|0,a=a+Math.imul(N,V)|0,n=n+Math.imul(D,W)|0,i=i+Math.imul(D,G)|0,i=i+Math.imul(T,W)|0,a=a+Math.imul(T,G)|0,n=n+Math.imul(S,Y)|0,i=i+Math.imul(S,Q)|0,i=i+Math.imul(C,Y)|0,a=a+Math.imul(C,Q)|0,n=n+Math.imul(b,$)|0,i=i+Math.imul(b,ee)|0,i=i+Math.imul(k,$)|0,a=a+Math.imul(k,ee)|0,n=n+Math.imul(h,re)|0,i=i+Math.imul(h,ne)|0,i=i+Math.imul(y,re)|0,a=a+Math.imul(y,ne)|0,n=n+Math.imul(p,ae)|0,i=i+Math.imul(p,oe)|0,i=i+Math.imul(g,ae)|0,a=a+Math.imul(g,oe)|0,n=n+Math.imul(d,ce)|0,i=i+Math.imul(d,ue)|0,i=i+Math.imul(f,ce)|0,a=a+Math.imul(f,ue)|0;var Se=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(F,K),i=Math.imul(F,J),i=i+Math.imul(R,K)|0,a=Math.imul(R,J),n=n+Math.imul(M,U)|0,i=i+Math.imul(M,V)|0,i=i+Math.imul(O,U)|0,a=a+Math.imul(O,V)|0,n=n+Math.imul(A,W)|0,i=i+Math.imul(A,G)|0,i=i+Math.imul(N,W)|0,a=a+Math.imul(N,G)|0,n=n+Math.imul(D,Y)|0,i=i+Math.imul(D,Q)|0,i=i+Math.imul(T,Y)|0,a=a+Math.imul(T,Q)|0,n=n+Math.imul(S,$)|0,i=i+Math.imul(S,ee)|0,i=i+Math.imul(C,$)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(b,re)|0,i=i+Math.imul(b,ne)|0,i=i+Math.imul(k,re)|0,a=a+Math.imul(k,ne)|0,n=n+Math.imul(h,ae)|0,i=i+Math.imul(h,oe)|0,i=i+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,n=n+Math.imul(p,ce)|0,i=i+Math.imul(p,ue)|0,i=i+Math.imul(g,ce)|0,a=a+Math.imul(g,ue)|0,n=n+Math.imul(d,de)|0,i=i+Math.imul(d,fe)|0,i=i+Math.imul(f,de)|0,a=a+Math.imul(f,fe)|0;var Ce=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(B,K),i=Math.imul(B,J),i=i+Math.imul(j,K)|0,a=Math.imul(j,J),n=n+Math.imul(F,U)|0,i=i+Math.imul(F,V)|0,i=i+Math.imul(R,U)|0,a=a+Math.imul(R,V)|0,n=n+Math.imul(M,W)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(O,W)|0,a=a+Math.imul(O,G)|0,n=n+Math.imul(A,Y)|0,i=i+Math.imul(A,Q)|0,i=i+Math.imul(N,Y)|0,a=a+Math.imul(N,Q)|0,n=n+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,i=i+Math.imul(T,$)|0,a=a+Math.imul(T,ee)|0,n=n+Math.imul(S,re)|0,i=i+Math.imul(S,ne)|0,i=i+Math.imul(C,re)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(b,ae)|0,i=i+Math.imul(b,oe)|0,i=i+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,n=n+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0,i=i+Math.imul(y,ce)|0,a=a+Math.imul(y,ue)|0,n=n+Math.imul(p,de)|0,i=i+Math.imul(p,fe)|0,i=i+Math.imul(g,de)|0,a=a+Math.imul(g,fe)|0,n=n+Math.imul(d,pe)|0,i=i+Math.imul(d,ge)|0,i=i+Math.imul(f,pe)|0,a=a+Math.imul(f,ge)|0;var Ee=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,U),i=Math.imul(B,V),i=i+Math.imul(j,U)|0,a=Math.imul(j,V),n=n+Math.imul(F,W)|0,i=i+Math.imul(F,G)|0,i=i+Math.imul(R,W)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(M,Y)|0,i=i+Math.imul(M,Q)|0,i=i+Math.imul(O,Y)|0,a=a+Math.imul(O,Q)|0,n=n+Math.imul(A,$)|0,i=i+Math.imul(A,ee)|0,i=i+Math.imul(N,$)|0,a=a+Math.imul(N,ee)|0,n=n+Math.imul(D,re)|0,i=i+Math.imul(D,ne)|0,i=i+Math.imul(T,re)|0,a=a+Math.imul(T,ne)|0,n=n+Math.imul(S,ae)|0,i=i+Math.imul(S,oe)|0,i=i+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0,i=i+Math.imul(k,ce)|0,a=a+Math.imul(k,ue)|0,n=n+Math.imul(h,de)|0,i=i+Math.imul(h,fe)|0,i=i+Math.imul(y,de)|0,a=a+Math.imul(y,fe)|0,n=n+Math.imul(p,pe)|0,i=i+Math.imul(p,ge)|0,i=i+Math.imul(g,pe)|0,a=a+Math.imul(g,ge)|0;var De=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(B,W),i=Math.imul(B,G),i=i+Math.imul(j,W)|0,a=Math.imul(j,G),n=n+Math.imul(F,Y)|0,i=i+Math.imul(F,Q)|0,i=i+Math.imul(R,Y)|0,a=a+Math.imul(R,Q)|0,n=n+Math.imul(M,$)|0,i=i+Math.imul(M,ee)|0,i=i+Math.imul(O,$)|0,a=a+Math.imul(O,ee)|0,n=n+Math.imul(A,re)|0,i=i+Math.imul(A,ne)|0,i=i+Math.imul(N,re)|0,a=a+Math.imul(N,ne)|0,n=n+Math.imul(D,ae)|0,i=i+Math.imul(D,oe)|0,i=i+Math.imul(T,ae)|0,a=a+Math.imul(T,oe)|0,n=n+Math.imul(S,ce)|0,i=i+Math.imul(S,ue)|0,i=i+Math.imul(C,ce)|0,a=a+Math.imul(C,ue)|0,n=n+Math.imul(b,de)|0,i=i+Math.imul(b,fe)|0,i=i+Math.imul(k,de)|0,a=a+Math.imul(k,fe)|0,n=n+Math.imul(h,pe)|0,i=i+Math.imul(h,ge)|0,i=i+Math.imul(y,pe)|0,a=a+Math.imul(y,ge)|0;var Te=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,Y),i=Math.imul(B,Q),i=i+Math.imul(j,Y)|0,a=Math.imul(j,Q),n=n+Math.imul(F,$)|0,i=i+Math.imul(F,ee)|0,i=i+Math.imul(R,$)|0,a=a+Math.imul(R,ee)|0,n=n+Math.imul(M,re)|0,i=i+Math.imul(M,ne)|0,i=i+Math.imul(O,re)|0,a=a+Math.imul(O,ne)|0,n=n+Math.imul(A,ae)|0,i=i+Math.imul(A,oe)|0,i=i+Math.imul(N,ae)|0,a=a+Math.imul(N,oe)|0,n=n+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,i=i+Math.imul(T,ce)|0,a=a+Math.imul(T,ue)|0,n=n+Math.imul(S,de)|0,i=i+Math.imul(S,fe)|0,i=i+Math.imul(C,de)|0,a=a+Math.imul(C,fe)|0,n=n+Math.imul(b,pe)|0,i=i+Math.imul(b,ge)|0,i=i+Math.imul(k,pe)|0,a=a+Math.imul(k,ge)|0;var we=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(B,$),i=Math.imul(B,ee),i=i+Math.imul(j,$)|0,a=Math.imul(j,ee),n=n+Math.imul(F,re)|0,i=i+Math.imul(F,ne)|0,i=i+Math.imul(R,re)|0,a=a+Math.imul(R,ne)|0,n=n+Math.imul(M,ae)|0,i=i+Math.imul(M,oe)|0,i=i+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,n=n+Math.imul(A,ce)|0,i=i+Math.imul(A,ue)|0,i=i+Math.imul(N,ce)|0,a=a+Math.imul(N,ue)|0,n=n+Math.imul(D,de)|0,i=i+Math.imul(D,fe)|0,i=i+Math.imul(T,de)|0,a=a+Math.imul(T,fe)|0,n=n+Math.imul(S,pe)|0,i=i+Math.imul(S,ge)|0,i=i+Math.imul(C,pe)|0,a=a+Math.imul(C,ge)|0;var Ae=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(B,re),i=Math.imul(B,ne),i=i+Math.imul(j,re)|0,a=Math.imul(j,ne),n=n+Math.imul(F,ae)|0,i=i+Math.imul(F,oe)|0,i=i+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,n=n+Math.imul(M,ce)|0,i=i+Math.imul(M,ue)|0,i=i+Math.imul(O,ce)|0,a=a+Math.imul(O,ue)|0,n=n+Math.imul(A,de)|0,i=i+Math.imul(A,fe)|0,i=i+Math.imul(N,de)|0,a=a+Math.imul(N,fe)|0,n=n+Math.imul(D,pe)|0,i=i+Math.imul(D,ge)|0,i=i+Math.imul(T,pe)|0,a=a+Math.imul(T,ge)|0;var Ne=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(B,ae),i=Math.imul(B,oe),i=i+Math.imul(j,ae)|0,a=Math.imul(j,oe),n=n+Math.imul(F,ce)|0,i=i+Math.imul(F,ue)|0,i=i+Math.imul(R,ce)|0,a=a+Math.imul(R,ue)|0,n=n+Math.imul(M,de)|0,i=i+Math.imul(M,fe)|0,i=i+Math.imul(O,de)|0,a=a+Math.imul(O,fe)|0,n=n+Math.imul(A,pe)|0,i=i+Math.imul(A,ge)|0,i=i+Math.imul(N,pe)|0,a=a+Math.imul(N,ge)|0;var Pe=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(B,ce),i=Math.imul(B,ue),i=i+Math.imul(j,ce)|0,a=Math.imul(j,ue),n=n+Math.imul(F,de)|0,i=i+Math.imul(F,fe)|0,i=i+Math.imul(R,de)|0,a=a+Math.imul(R,fe)|0,n=n+Math.imul(M,pe)|0,i=i+Math.imul(M,ge)|0,i=i+Math.imul(O,pe)|0,a=a+Math.imul(O,ge)|0;var Me=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,de),i=Math.imul(B,fe),i=i+Math.imul(j,de)|0,a=Math.imul(j,fe),n=n+Math.imul(F,pe)|0,i=i+Math.imul(F,ge)|0,i=i+Math.imul(R,pe)|0,a=a+Math.imul(R,ge)|0;var Oe=(u+n|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,pe),i=Math.imul(B,ge),i=i+Math.imul(j,pe)|0,a=Math.imul(j,ge);var Ie=(u+n|0)+((8191&i)<<13)|0;return u=(a+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,c[0]=me,c[1]=he,c[2]=ye,c[3]=ve,c[4]=be,c[5]=ke,c[6]=xe,c[7]=Se,c[8]=Ce,c[9]=Ee,c[10]=De,c[11]=Te,c[12]=we,c[13]=Ae,c[14]=Ne,c[15]=Pe,c[16]=Me,c[17]=Oe,c[18]=Ie,0!==u&&(c[19]=u,r.length++),r};Math.imul||(C=u),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?C(this,e,t):r<63?u(this,e,t):r<1024?l(this,e,t):d(this,e,t)},f.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},f.prototype.permute=function(e,t,r,n,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=c(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0);var i;i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-a|d>>>a,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=this.length-e.length,n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){s=new a(null),s.length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(i,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){if(n(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var i,o,s;return 0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var f=0,_=1;0==(t.words[0]&_)&&f<26;++f,_<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,g=1;0==(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),o.isub(c)):(r.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:r.iushln(u)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o)):(r.isub(t),o.isub(i))}var f;return f=0===t.cmpn(1)?i:o,f.cmpn(0)<0&&f.iadd(e),f},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var r;if(this.length>1)r=1;else{t&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];r=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new y(e)},a.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var E={k256:null,p224:null,p192:null,p25519:null};_.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),t=r.bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(p,_),p.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},p.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(E[e])return E[e];var t;if("k256"===e)t=new p;else if("p224"===e)t=new g;else if("p192"===e)t=new m;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new h}return E[e]=t,t},y.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},y.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},y.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},y.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},y.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},y.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},y.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},y.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},y.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},y.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},y.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},y.prototype.isqr=function(e){return this.imul(e,e.clone())},y.prototype.sqr=function(e){return this.mul(e,e)},y.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new a(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),_=this.pow(e,i),p=o;0!==_.cmp(s);){for(var g=_,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}c=26}return i},y.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},y.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new v(e)},i(v,y),v.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},v.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},v.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},v.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},v.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(t,r(128)(e))},function(e,t,r){"use strict";var n=t;n.version=r(134).version,n.utils=r(135),n.rand=r(69),n.curve=r(29),n.curves=r(140),n.ec=r(148),n.eddsa=r(152)},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(d===clearTimeout)return clearTimeout(e);if((d===n||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){g&&_&&(g=!1,_.length?p=_.concat(p):m=-1,p.length&&s())}function s(){if(!g){var e=i(o);g=!0;for(var t=p.length;t;){for(_=p,p=[];++m1)for(var r=1;r>8,o=255&i;a?r.push(a,o):r.push(o)}else for(n=0;n>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e,t){for(var r="",n=0;n>>0}return a}function l(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r}function d(e,t){return e>>>t|e<<32-t}function f(e,t){return e<>>32-t}function _(e,t){return e+t>>>0}function p(e,t,r){return e+t+r>>>0}function g(e,t,r,n){return e+t+r+n>>>0}function m(e,t,r,n,i){return e+t+r+n+i>>>0}function h(e,t,r,n){var i=e[t],a=e[t+1],o=n+a>>>0,s=(o>>0,e[t+1]=o}function y(e,t,r,n){return(t+n>>>0>>0}function v(e,t,r,n){return t+n>>>0}function b(e,t,r,n,i,a,o,s){var c=0,u=t;return u=u+n>>>0,c+=u>>0,c+=u>>0,c+=u>>0}function k(e,t,r,n,i,a,o,s){return t+n+a+s>>>0}function x(e,t,r,n,i,a,o,s,c,u){var l=0,d=t;return d=d+n>>>0,l+=d>>0,l+=d>>0,l+=d>>0,l+=d>>0}function S(e,t,r,n,i,a,o,s,c,u){return t+n+a+s+u>>>0}function C(e,t,r){return(t<<32-r|e>>>r)>>>0}function E(e,t,r){return(e<<32-r|t>>>r)>>>0}function D(e,t,r){return e>>>r}function T(e,t,r){return(e<<32-r|t>>>r)>>>0}var w=r(4),A=r(1);t.inherits=A,t.toArray=n,t.toHex=i,t.htonl=a,t.toHex32=o,t.zero2=s,t.zero8=c,t.join32=u,t.split32=l,t.rotr32=d,t.rotl32=f,t.sum32=_,t.sum32_3=p,t.sum32_4=g,t.sum32_5=m,t.sum64=h,t.sum64_hi=y,t.sum64_lo=v,t.sum64_4_hi=b,t.sum64_4_lo=k,t.sum64_5_hi=x,t.sum64_5_lo=S,t.rotr64_hi=C,t.rotr64_lo=E,t.shr64_hi=D,t.shr64_lo=T},function(e,t,r){function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return o(e,t,r)}var a=r(0),o=a.Buffer;o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=a:(n(a,t),t.Buffer=i),n(o,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a.SlowBuffer(e)}},function(e,t,r){function n(e){a.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}var i=r(7).Buffer,a=r(33).Transform,o=r(37).StringDecoder;r(1)(n,a),n.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},n.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},n.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},n.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=n},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);u.call(this,e),l.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||o(a,this)}function a(e){e.end()}var o=r(24),s=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=n;var c=r(16);c.inherits=r(1);var u=r(47),l=r(36);c.inherits(n,u);for(var d=s(l.prototype),f=0;f=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(t,this._blockSize-4);var r=this._update(this._block)||this._hash();return e?r.toString(e):r},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=r}).call(t,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.properties=[]}return e.prototype.setProperties=function(e){this.properties=e},e.prototype.getProperties=function(){return this.properties},e.prototype.addProperty=function(e){this.properties.push(e)},e.prototype.merge=function(e,t){var r,n=this;e.getProperties().forEach(function(e){r=!1,n.getProperties().forEach(function(n){n.getIdentifier()===e.getIdentifier()&&(n.merge(e,t),r=!0)}),r||n.addProperty(e)})},e.prototype.toString=function(){var e=this,t=[];return this.getProperties().forEach(function(r){t.push(r.toString()),e.getProperties().indexOf(r)65536)throw new Error("requested too many random bytes");var i=new t.Uint8Array(e);e>0&&s.getRandomValues(i);var a=o.from(i.buffer);return"function"==typeof r?n.nextTick(function(){r(null,a)}):a}var o=r(7).Buffer,s=t.crypto||t.msCrypto;s&&s.getRandomValues?e.exports=a:e.exports=i}).call(t,r(9),r(5))},function(e,t,r){"use strict";(function(t){function n(e){u.call(this,"digest"),this._hash=e,this.buffers=[]}function i(e){u.call(this,"digest"),this._hash=e}var a=r(1),o=r(23),s=r(32),c=r(38),u=r(8);a(n,u),n.prototype._update=function(e){this.buffers.push(e)},n.prototype._final=function(){var e=t.concat(this.buffers),r=this._hash(e);return this.buffers=null,r},a(i,u),i.prototype._update=function(e){this._hash.update(e)},i.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return e=e.toLowerCase(),"md5"===e?new n(o):new i("rmd160"===e||"ripemd160"===e?new s:c(e))}}).call(t,r(0).Buffer)},function(e,t,r){(function(e){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===m(e)}function n(e){return"boolean"==typeof e}function i(e){return null===e}function a(e){return null==e}function o(e){return"number"==typeof e}function s(e){return"string"==typeof e}function c(e){return"symbol"==typeof e}function u(e){return void 0===e}function l(e){return"[object RegExp]"===m(e)}function d(e){return"object"==typeof e&&null!==e}function f(e){return"[object Date]"===m(e)}function _(e){return"[object Error]"===m(e)||e instanceof Error}function p(e){return"function"==typeof e}function g(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function m(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=n,t.isNull=i,t.isNullOrUndefined=a,t.isNumber=o,t.isString=s,t.isSymbol=c,t.isUndefined=u,t.isRegExp=l,t.isObject=d,t.isDate=f,t.isError=_,t.isFunction=p,t.isPrimitive=g,t.isBuffer=e.isBuffer}).call(t,r(0).Buffer)},function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),a=0;a=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,a=8;a=0;l--)o=c[l],"."===o?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return r=c.join("/"),""===r&&(r=s?"/":"."),a?(a.path=r,i(a)):r}function o(e,t){""===e&&(e="."),""===t&&(t=".");var r=n(t),o=n(e);if(o&&(e=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),i(r);if(r||t.match(h))return t;if(o&&!o.host&&!o.path)return o.host=t,i(o);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=s,i(o)):s}function s(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),e.match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}function c(e){return e}function u(e){return d(e)?"$"+e:e}function l(e){return d(e)?e.slice(1):e}function d(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 f(e,t,r){var n=e.source-t.source;return 0!==n?n:0!==(n=e.originalLine-t.originalLine)?n:0!==(n=e.originalColumn-t.originalColumn)||r?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:(n=e.generatedLine-t.generatedLine,0!==n?n:e.name-t.name)}function _(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)||r?n:0!==(n=e.source-t.source)?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:e.name-t.name)}function p(e,t){return e===t?0:e>t?1:-1}function g(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=p(e.source,t.source))?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:p(e.name,t.name))}t.getArg=r;var m=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,h=/^data:.+\,.+$/;t.urlParse=n,t.urlGenerate=i,t.normalize=a,t.join=o,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(m)},t.relative=s;var y=function(){return!("__proto__"in Object.create(null))}();t.toSetString=y?c:u,t.fromSetString=y?c:l,t.compareByOriginalPositions=f,t.compareByGeneratedPositionsDeflated=_,t.compareByGeneratedPositionsInflated=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.elements=[]}return e.prototype.addElement=function(e){this.elements.push(e)},e.prototype.getElements=function(){return this.elements},e.prototype.setElements=function(e){this.elements=e},e.prototype.merge=function(e,t){var r,n=this;e.getElements().forEach(function(e){r=!1,n.getElements().forEach(function(t){e.toString()===t.toString()&&(r=!0)}),r||n.addElement(e)})},e.prototype.toString=function(){var e=this,t=[];return t.push("[\n"),this.getElements().forEach(function(r){e.elements.indexOf(r)>5]|=128<>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,l=271733878,d=0;d>16)+(t>>16)+(r>>16)<<16|65535&r}function l(e,t){return e<>>32-t}var d=r(96);e.exports=function(e){return d(e,n)}},function(e,t,r){"use strict";(function(t){function r(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(a=new Array(s-1),o=0;o0&&_.push(o),_.push(e),r&&_.push(r),o=i(t.concat(_)),_=[],s=0,n>0)for(;;){if(0===n)break;if(s===o.length)break;l[c++]=o[s],n--,s++}if(a>0&&s!==o.length)for(;;){if(0===a)break;if(s===o.length)break;d[u++]=o[s],a--,s++}if(0===n&&0===a)break}for(s=0;ss||e<0?(t=Math.abs(e)%s,e<0?s-t:t):e}function n(e){for(;0>>8^255&r^99,this.SBOX[i]=r,this.INV_SBOX[r]=i,a=e[i],o=e[a],s=e[o],n=257*e[r]^16843008*r,this.SUB_MIX[0][i]=n<<24|n>>>8,this.SUB_MIX[1][i]=n<<16|n>>>16,this.SUB_MIX[2][i]=n<<8|n>>>24,this.SUB_MIX[3][i]=n,n=16843009*s^65537*o^257*a^16843008*i,this.INV_SUB_MIX[0][r]=n<<24|n>>>8,this.INV_SUB_MIX[1][r]=n<<16|n>>>16,this.INV_SUB_MIX[2][r]=n<<8|n>>>24,this.INV_SUB_MIX[3][r]=n,0===i?i=c=1:(i=a^e[e[e[s^a]]],c^=e[e[c]]);return!0};var c=new i;o.blockSize=16,o.prototype.blockSize=o.blockSize,o.keySize=32,o.prototype.keySize=o.keySize,o.prototype._doReset=function(){var e,t,r,n,i,a;for(r=this._key,t=r.length,this._nRounds=t+6,i=4*(this._nRounds+1),this._keySchedule=[],n=0;n>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=c.RCON[n/t|0]<<24):t>6&&n%t==4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),this._keySchedule[n-t]^a);for(this._invKeySchedule=[],e=0;e>>24]]^c.INV_SUB_MIX[1][c.SBOX[a>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[a>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&a]];return!0},o.prototype.encryptBlock=function(t){t=a(new e(t));var r=this._doCryptBlock(t,this._keySchedule,c.SUB_MIX,c.SBOX),n=new e(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[1],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[3],12),n},o.prototype.decryptBlock=function(t){t=a(new e(t));var r=[t[3],t[1]];t[1]=r[0],t[3]=r[1];var n=this._doCryptBlock(t,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX),i=new e(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},o.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},o.prototype._doCryptBlock=function(e,t,n,i){var a,o,s,c,u,l,d,f,_;o=e[0]^t[0],s=e[1]^t[1],c=e[2]^t[2],u=e[3]^t[3],a=4;for(var p=1;p>>24]^n[1][s>>>16&255]^n[2][c>>>8&255]^n[3][255&u]^t[a++],d=n[0][s>>>24]^n[1][c>>>16&255]^n[2][u>>>8&255]^n[3][255&o]^t[a++],f=n[0][c>>>24]^n[1][u>>>16&255]^n[2][o>>>8&255]^n[3][255&s]^t[a++],_=n[0][u>>>24]^n[1][o>>>16&255]^n[2][s>>>8&255]^n[3][255&c]^t[a++],o=l,s=d,c=f,u=_;return l=(i[o>>>24]<<24|i[s>>>16&255]<<16|i[c>>>8&255]<<8|i[255&u])^t[a++],d=(i[s>>>24]<<24|i[c>>>16&255]<<16|i[u>>>8&255]<<8|i[255&o])^t[a++],f=(i[c>>>24]<<24|i[u>>>16&255]<<16|i[o>>>8&255]<<8|i[255&s])^t[a++],_=(i[u>>>24]<<24|i[o>>>16&255]<<16|i[s>>>8&255]<<8|i[255&c])^t[a++],[r(l),r(d),r(f),r(_)]},t.AES=o}).call(t,r(0).Buffer)},function(e,t){t["aes-128-ecb"]={cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},t["aes-192-ecb"]={cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},t["aes-256-ecb"]={cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},t["aes-128-cbc"]={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},t["aes-192-cbc"]={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},t["aes-256-cbc"]={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},t.aes128=t["aes-128-cbc"],t.aes192=t["aes-192-cbc"],t.aes256=t["aes-256-cbc"],t["aes-128-cfb"]={cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},t["aes-192-cfb"]={cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},t["aes-256-cfb"]={cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},t["aes-128-cfb8"]={cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},t["aes-192-cfb8"]={cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},t["aes-256-cfb8"]={cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},t["aes-128-cfb1"]={cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},t["aes-192-cfb1"]={cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},t["aes-256-cfb1"]={cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},t["aes-128-ofb"]={cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},t["aes-192-ofb"]={cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},t["aes-256-ofb"]={cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},t["aes-128-ctr"]={cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},t["aes-192-ctr"]={cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},t["aes-256-ctr"]={cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},t["aes-128-gcm"]={cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},t["aes-192-gcm"]={cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},t["aes-256-gcm"]={cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},function(e,t,r){(function(e){function n(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}function i(e){var t=e._cipher.encryptBlock(e._prev);return n(e._prev),t}var a=r(17);t.encrypt=function(t,r){for(;t._cache.length>>32-t}function a(e,t,r,n,a,o,s,c){return i(e+(t^r^n)+o+s|0,c)+a|0}function o(e,t,r,n,a,o,s,c){return i(e+(t&r|~t&n)+o+s|0,c)+a|0}function s(e,t,r,n,a,o,s,c){return i(e+((t|~r)^n)+o+s|0,c)+a|0}function c(e,t,r,n,a,o,s,c){return i(e+(t&n|r&~n)+o+s|0,c)+a|0}function u(e,t,r,n,a,o,s,c){return i(e+(t^(r|~n))+o+s|0,c)+a|0}var l=r(1),d=r(97);l(n,d),n.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,l=this._c,d=this._d,f=this._e;r=a(r,n,l,d,f,e[0],0,11),l=i(l,10),f=a(f,r,n,l,d,e[1],0,14),n=i(n,10),d=a(d,f,r,n,l,e[2],0,15),r=i(r,10),l=a(l,d,f,r,n,e[3],0,12),f=i(f,10),n=a(n,l,d,f,r,e[4],0,5),d=i(d,10),r=a(r,n,l,d,f,e[5],0,8),l=i(l,10),f=a(f,r,n,l,d,e[6],0,7),n=i(n,10),d=a(d,f,r,n,l,e[7],0,9),r=i(r,10),l=a(l,d,f,r,n,e[8],0,11),f=i(f,10),n=a(n,l,d,f,r,e[9],0,13),d=i(d,10),r=a(r,n,l,d,f,e[10],0,14),l=i(l,10),f=a(f,r,n,l,d,e[11],0,15),n=i(n,10),d=a(d,f,r,n,l,e[12],0,6),r=i(r,10),l=a(l,d,f,r,n,e[13],0,7),f=i(f,10),n=a(n,l,d,f,r,e[14],0,9),d=i(d,10),r=a(r,n,l,d,f,e[15],0,8),l=i(l,10),f=o(f,r,n,l,d,e[7],1518500249,7),n=i(n,10),d=o(d,f,r,n,l,e[4],1518500249,6),r=i(r,10),l=o(l,d,f,r,n,e[13],1518500249,8),f=i(f,10),n=o(n,l,d,f,r,e[1],1518500249,13),d=i(d,10),r=o(r,n,l,d,f,e[10],1518500249,11),l=i(l,10),f=o(f,r,n,l,d,e[6],1518500249,9),n=i(n,10),d=o(d,f,r,n,l,e[15],1518500249,7),r=i(r,10),l=o(l,d,f,r,n,e[3],1518500249,15),f=i(f,10),n=o(n,l,d,f,r,e[12],1518500249,7),d=i(d,10),r=o(r,n,l,d,f,e[0],1518500249,12),l=i(l,10),f=o(f,r,n,l,d,e[9],1518500249,15),n=i(n,10),d=o(d,f,r,n,l,e[5],1518500249,9),r=i(r,10),l=o(l,d,f,r,n,e[2],1518500249,11),f=i(f,10),n=o(n,l,d,f,r,e[14],1518500249,7),d=i(d,10),r=o(r,n,l,d,f,e[11],1518500249,13),l=i(l,10),f=o(f,r,n,l,d,e[8],1518500249,12),n=i(n,10),d=s(d,f,r,n,l,e[3],1859775393,11),r=i(r,10),l=s(l,d,f,r,n,e[10],1859775393,13),f=i(f,10),n=s(n,l,d,f,r,e[14],1859775393,6),d=i(d,10),r=s(r,n,l,d,f,e[4],1859775393,7),l=i(l,10),f=s(f,r,n,l,d,e[9],1859775393,14),n=i(n,10),d=s(d,f,r,n,l,e[15],1859775393,9),r=i(r,10),l=s(l,d,f,r,n,e[8],1859775393,13),f=i(f,10),n=s(n,l,d,f,r,e[1],1859775393,15),d=i(d,10),r=s(r,n,l,d,f,e[2],1859775393,14),l=i(l,10),f=s(f,r,n,l,d,e[7],1859775393,8),n=i(n,10),d=s(d,f,r,n,l,e[0],1859775393,13),r=i(r,10),l=s(l,d,f,r,n,e[6],1859775393,6),f=i(f,10),n=s(n,l,d,f,r,e[13],1859775393,5),d=i(d,10),r=s(r,n,l,d,f,e[11],1859775393,12),l=i(l,10),f=s(f,r,n,l,d,e[5],1859775393,7),n=i(n,10),d=s(d,f,r,n,l,e[12],1859775393,5),r=i(r,10),l=c(l,d,f,r,n,e[1],2400959708,11),f=i(f,10),n=c(n,l,d,f,r,e[9],2400959708,12),d=i(d,10),r=c(r,n,l,d,f,e[11],2400959708,14),l=i(l,10),f=c(f,r,n,l,d,e[10],2400959708,15),n=i(n,10),d=c(d,f,r,n,l,e[0],2400959708,14),r=i(r,10),l=c(l,d,f,r,n,e[8],2400959708,15),f=i(f,10),n=c(n,l,d,f,r,e[12],2400959708,9),d=i(d,10),r=c(r,n,l,d,f,e[4],2400959708,8),l=i(l,10),f=c(f,r,n,l,d,e[13],2400959708,9),n=i(n,10),d=c(d,f,r,n,l,e[3],2400959708,14),r=i(r,10),l=c(l,d,f,r,n,e[7],2400959708,5),f=i(f,10),n=c(n,l,d,f,r,e[15],2400959708,6),d=i(d,10),r=c(r,n,l,d,f,e[14],2400959708,8),l=i(l,10),f=c(f,r,n,l,d,e[5],2400959708,6),n=i(n,10),d=c(d,f,r,n,l,e[6],2400959708,5),r=i(r,10),l=c(l,d,f,r,n,e[2],2400959708,12),f=i(f,10),n=u(n,l,d,f,r,e[4],2840853838,9),d=i(d,10),r=u(r,n,l,d,f,e[0],2840853838,15),l=i(l,10),f=u(f,r,n,l,d,e[5],2840853838,5),n=i(n,10),d=u(d,f,r,n,l,e[9],2840853838,11),r=i(r,10),l=u(l,d,f,r,n,e[7],2840853838,6),f=i(f,10),n=u(n,l,d,f,r,e[12],2840853838,8),d=i(d,10),r=u(r,n,l,d,f,e[2],2840853838,13),l=i(l,10),f=u(f,r,n,l,d,e[10],2840853838,12),n=i(n,10),d=u(d,f,r,n,l,e[14],2840853838,5),r=i(r,10),l=u(l,d,f,r,n,e[1],2840853838,12),f=i(f,10),n=u(n,l,d,f,r,e[3],2840853838,13),d=i(d,10),r=u(r,n,l,d,f,e[8],2840853838,14),l=i(l,10),f=u(f,r,n,l,d,e[11],2840853838,11),n=i(n,10),d=u(d,f,r,n,l,e[6],2840853838,8),r=i(r,10),l=u(l,d,f,r,n,e[15],2840853838,5),f=i(f,10),n=u(n,l,d,f,r,e[13],2840853838,6),d=i(d,10);var _=this._a,p=this._b,g=this._c,m=this._d,h=this._e;_=u(_,p,g,m,h,e[5],1352829926,8),g=i(g,10),h=u(h,_,p,g,m,e[14],1352829926,9),p=i(p,10),m=u(m,h,_,p,g,e[7],1352829926,9),_=i(_,10),g=u(g,m,h,_,p,e[0],1352829926,11),h=i(h,10),p=u(p,g,m,h,_,e[9],1352829926,13),m=i(m,10),_=u(_,p,g,m,h,e[2],1352829926,15),g=i(g,10),h=u(h,_,p,g,m,e[11],1352829926,15),p=i(p,10),m=u(m,h,_,p,g,e[4],1352829926,5),_=i(_,10),g=u(g,m,h,_,p,e[13],1352829926,7),h=i(h,10),p=u(p,g,m,h,_,e[6],1352829926,7),m=i(m,10),_=u(_,p,g,m,h,e[15],1352829926,8),g=i(g,10),h=u(h,_,p,g,m,e[8],1352829926,11),p=i(p,10),m=u(m,h,_,p,g,e[1],1352829926,14),_=i(_,10),g=u(g,m,h,_,p,e[10],1352829926,14),h=i(h,10),p=u(p,g,m,h,_,e[3],1352829926,12),m=i(m,10),_=u(_,p,g,m,h,e[12],1352829926,6),g=i(g,10),h=c(h,_,p,g,m,e[6],1548603684,9),p=i(p,10),m=c(m,h,_,p,g,e[11],1548603684,13),_=i(_,10),g=c(g,m,h,_,p,e[3],1548603684,15),h=i(h,10),p=c(p,g,m,h,_,e[7],1548603684,7),m=i(m,10),_=c(_,p,g,m,h,e[0],1548603684,12),g=i(g,10),h=c(h,_,p,g,m,e[13],1548603684,8),p=i(p,10),m=c(m,h,_,p,g,e[5],1548603684,9),_=i(_,10),g=c(g,m,h,_,p,e[10],1548603684,11),h=i(h,10),p=c(p,g,m,h,_,e[14],1548603684,7),m=i(m,10),_=c(_,p,g,m,h,e[15],1548603684,7),g=i(g,10),h=c(h,_,p,g,m,e[8],1548603684,12),p=i(p,10),m=c(m,h,_,p,g,e[12],1548603684,7),_=i(_,10),g=c(g,m,h,_,p,e[4],1548603684,6),h=i(h,10),p=c(p,g,m,h,_,e[9],1548603684,15),m=i(m,10),_=c(_,p,g,m,h,e[1],1548603684,13),g=i(g,10),h=c(h,_,p,g,m,e[2],1548603684,11),p=i(p,10),m=s(m,h,_,p,g,e[15],1836072691,9),_=i(_,10),g=s(g,m,h,_,p,e[5],1836072691,7),h=i(h,10),p=s(p,g,m,h,_,e[1],1836072691,15),m=i(m,10),_=s(_,p,g,m,h,e[3],1836072691,11),g=i(g,10),h=s(h,_,p,g,m,e[7],1836072691,8),p=i(p,10),m=s(m,h,_,p,g,e[14],1836072691,6),_=i(_,10),g=s(g,m,h,_,p,e[6],1836072691,6),h=i(h,10),p=s(p,g,m,h,_,e[9],1836072691,14),m=i(m,10),_=s(_,p,g,m,h,e[11],1836072691,12),g=i(g,10),h=s(h,_,p,g,m,e[8],1836072691,13),p=i(p,10),m=s(m,h,_,p,g,e[12],1836072691,5),_=i(_,10),g=s(g,m,h,_,p,e[2],1836072691,14),h=i(h,10),p=s(p,g,m,h,_,e[10],1836072691,13),m=i(m,10),_=s(_,p,g,m,h,e[0],1836072691,13),g=i(g,10),h=s(h,_,p,g,m,e[4],1836072691,7),p=i(p,10),m=s(m,h,_,p,g,e[13],1836072691,5),_=i(_,10),g=o(g,m,h,_,p,e[8],2053994217,15),h=i(h,10),p=o(p,g,m,h,_,e[6],2053994217,5),m=i(m,10),_=o(_,p,g,m,h,e[4],2053994217,8),g=i(g,10),h=o(h,_,p,g,m,e[1],2053994217,11),p=i(p,10),m=o(m,h,_,p,g,e[3],2053994217,14),_=i(_,10),g=o(g,m,h,_,p,e[11],2053994217,14),h=i(h,10),p=o(p,g,m,h,_,e[15],2053994217,6),m=i(m,10),_=o(_,p,g,m,h,e[0],2053994217,14),g=i(g,10),h=o(h,_,p,g,m,e[5],2053994217,6),p=i(p,10),m=o(m,h,_,p,g,e[12],2053994217,9),_=i(_,10),g=o(g,m,h,_,p,e[2],2053994217,12),h=i(h,10),p=o(p,g,m,h,_,e[13],2053994217,9),m=i(m,10),_=o(_,p,g,m,h,e[9],2053994217,12),g=i(g,10),h=o(h,_,p,g,m,e[7],2053994217,5),p=i(p,10),m=o(m,h,_,p,g,e[10],2053994217,15),_=i(_,10),g=o(g,m,h,_,p,e[14],2053994217,8),h=i(h,10),p=a(p,g,m,h,_,e[12],0,8),m=i(m,10),_=a(_,p,g,m,h,e[15],0,5),g=i(g,10),h=a(h,_,p,g,m,e[10],0,12),p=i(p,10),m=a(m,h,_,p,g,e[4],0,9),_=i(_,10),g=a(g,m,h,_,p,e[1],0,12),h=i(h,10),p=a(p,g,m,h,_,e[5],0,5),m=i(m,10),_=a(_,p,g,m,h,e[8],0,14),g=i(g,10),h=a(h,_,p,g,m,e[7],0,6),p=i(p,10),m=a(m,h,_,p,g,e[6],0,8),_=i(_,10),g=a(g,m,h,_,p,e[2],0,13),h=i(h,10),p=a(p,g,m,h,_,e[13],0,6),m=i(m,10),_=a(_,p,g,m,h,e[14],0,5),g=i(g,10),h=a(h,_,p,g,m,e[0],0,15),p=i(p,10),m=a(m,h,_,p,g,e[3],0,13),_=i(_,10),g=a(g,m,h,_,p,e[9],0,11),h=i(h,10),p=a(p,g,m,h,_,e[11],0,11),m=i(m,10);var y=this._b+l+m|0;this._b=this._c+d+h|0,this._c=this._d+f+_|0,this._d=this._e+r+p|0,this._e=this._a+n+g|0,this._a=y},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=n}).call(t,r(0).Buffer)},function(e,t,r){function n(){i.call(this)}e.exports=n;var i=r(34).EventEmitter;r(1)(n,i),n.Readable=r(35),n.Writable=r(105),n.Duplex=r(106),n.Transform=r(107),n.PassThrough=r(108),n.Stream=n,n.prototype.pipe=function(e,t){function r(t){e.writable&&!1===e.write(t)&&u.pause&&u.pause()}function n(){u.readable&&u.resume&&u.resume()}function a(){l||(l=!0,e.end())}function o(){l||(l=!0,"function"==typeof e.destroy&&e.destroy())}function s(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){u.removeListener("data",r),e.removeListener("drain",n),u.removeListener("end",a),u.removeListener("close",o),u.removeListener("error",s),e.removeListener("error",s),u.removeListener("end",c),u.removeListener("close",c),e.removeListener("close",c)}var u=this;u.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(u.on("end",a),u.on("close",o));var l=!1;return u.on("error",s),e.on("error",s),u.on("end",c),u.on("close",c),e.on("close",c),e.emit("pipe",u),e}},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,i,s,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(r=this._events[e],o(r))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(a(r))for(s=Array.prototype.slice.call(arguments,1),u=r.slice(),i=u.length,c=0;c0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,i,o,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],o=r.length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(r)){for(s=o;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){t=e.exports=r(47),t.Stream=t,t.Readable=t,t.Writable=r(36),t.Duplex=r(10),t.Transform=r(50),t.PassThrough=r(104)},function(e,t,r){"use strict";(function(t,n){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){T(t,e)}}function a(e){return I.from(e)}function o(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)||I.isBuffer(e)}function s(){}function c(e,t){A=A||r(10),e=e||{},this.objectMode=!!e.objectMode,t instanceof A&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){y(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function u(e){if(A=A||r(10),!(R.call(u,this)||this instanceof A))return new u(e);this._writableState=new c(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),O.call(this)}function l(e,t){var r=new Error("write after end");e.emit("error",r),w(t,r)}function d(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),w(n,a),i=!1),i}function f(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=I.from(t,r)),t}function _(e,t,r,n,i,a){if(!r){var o=f(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1?n:w;u.WritableState=c;var P=r(16);P.inherits=r(1);var M={deprecate:r(103)},O=r(48),I=r(7).Buffer,F=r(49);P.inherits(u,O),c.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(c.prototype,"buffer",{get:M.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var R;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(R=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(e){return!!R.call(this,e)||e&&e._writableState instanceof c}})):R=function(e){return e instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(e,t,r){var n=this._writableState,i=!1,c=o(e)&&!n.objectMode;return c&&!I.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(r=t,t=null),c?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=s),n.ended?l(this,r):(c||d(this,n,e,r))&&(n.pendingcb++,i=_(this,n,c,e,t,r)),i},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||k(this,e))},u.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},u.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||D(this,n,r)},Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),u.prototype.destroy=F.destroy,u.prototype._undestroy=F.undestroy,u.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r(5),r(100).setImmediate)},function(e,t,r){function n(e){if(e&&!c(e))throw new Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function a(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function o(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var s=r(0).Buffer,c=s.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},u=t.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),n(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=a;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=o;break;default:return void(this.write=i)}this.charBuffer=new s(6),this.charReceived=0,this.charLength=0};u.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,n=t.charCodeAt(i);if(n>=55296&&n<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,i)}return t},u.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},u.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},function(e,t,r){var t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r};t.sha=r(109),t.sha1=r(110),t.sha224=r(111),t.sha256=r(51),t.sha384=r(112),t.sha512=r(52)},function(e,t,r){function n(){return Object.keys(o)}var i=r(117);t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv;var a=r(119);t.createDecipher=t.Decipher=a.createDecipher,t.createDecipheriv=t.Decipheriv=a.createDecipheriv;var o=r(27);t.listCiphers=t.getCiphers=n},function(e,t,r){"use strict";t.utils=r(121),t.Cipher=r(122),t.DES=r(123),t.CBC=r(124),t.EDE=r(125)},function(e,t,r){(function(t){function n(e){var t=a(e);return{blinder:t.toRed(o.mont(e.modulus)).redPow(new o(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function i(e,r){var i=n(r),a=r.modulus.byteLength(),s=(o.mont(r.modulus),new o(e).mul(i.blinder).umod(r.modulus)),c=s.toRed(o.mont(r.prime1)),u=s.toRed(o.mont(r.prime2)),l=r.coefficient,d=r.prime1,f=r.prime2,_=c.redPow(r.exponent1),p=u.redPow(r.exponent2);_=_.fromRed(),p=p.fromRed();var g=_.isub(p).imul(l).umod(d);return g.imul(f),p.iadd(g),new t(p.imul(i.unblinder).umod(r.modulus).toArray(!1,a))}function a(e){for(var t=e.modulus.byteLength(),r=new o(s(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new o(s(t));return r}var o=r(2),s=r(14);e.exports=i,i.getr=a}).call(t,r(0).Buffer)},function(e,t,r){var n=t;n.utils=r(6),n.common=r(18),n.sha=r(141),n.ripemd=r(145),n.hmac=r(146),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=r(11),a=r(31),o=r(85),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.parameters=[],t.modifiers=[],t.decorators=[],t.body=new o.BodyMethod,t}return n(t,e),t.prototype.getParameters=function(){return this.parameters},t.prototype.getModifiers=function(){return this.modifiers},t.prototype.setModifiers=function(e){this.modifiers=e},t.prototype.getDecorators=function(){return this.decorators},t.prototype.setDecorators=function(e){this.decorators=e},t.prototype.addParameter=function(e){this.parameters.push(e)},t.prototype.addParameters=function(e){var t=this;e.forEach(function(e){t.parameters.push(e)})},t.prototype.addModifier=function(e){this.modifiers.push(e)},t.prototype.addModifiers=function(e){var t=this;e.forEach(function(e){t.modifiers.push(e)})},t.prototype.addDecorator=function(e){this.decorators.push(e)},t.prototype.addDecorators=function(e){var t=this;e.forEach(function(e){t.decorators.push(e)})},t.prototype.getBody=function(){return this.body},t.prototype.setBody=function(e){this.body=e},t.prototype.merge=function(e,t){var r,n=this;a.mergeDecorators(this.getDecorators(),e.getDecorators(),t),t?(this.setModifiers(e.getModifiers()),this.setBody(e.getBody())):this.getBody().merge(e.getBody(),t),e.getParameters().forEach(function(e){r=!1,n.getParameters().forEach(function(n){e.getIdentifier()===n.getIdentifier()&&(r=!0,n.merge(e,t))}),r||n.addParameter(e)})},t.prototype.toString=function(){var e=this,t=[];return this.decorators.forEach(function(e){t.push(e.toString(),"\n")}),this.modifiers.forEach(function(e){t.push(e," ")}),t.push(this.getIdentifier(),"("),this.parameters.forEach(function(r){t.push(r.toString()),e.parameters.indexOf(r)0;for(var r=0,n=e;r0?e[0]:void 0}function K(e){return e&&e.length>0?e[e.length-1]:void 0}function J(e){return e&&1===e.length?e[0]:void 0}function q(e){return e&&1===e.length?e[0]:e}function U(e,t,r){var n=e.slice(0);return n[t]=r,n}function V(e,t,r,n){if(!e||0===e.length)return-1;var i=n||0,a=e.length-1;for(r=void 0!==r?r:function(e,t){return et?1:0};i<=a;){var o=i+(a-i>>1),s=e[o];if(0===r(s,t))return o;r(s,t)>0?a=o-1:i=o+1}return~i}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}function W(e,t,r,n,i){if(e){var a=e.length;if(a>0){var o=void 0===n||n>a-1?a-1:n,s=void 0===i||o-i<0?0: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}function G(e,t){return nr.call(e,t)}function X(e,t){return nr.call(e,t)?e[t]:void 0}function Y(e){var t=[];for(var r in e)nr.call(e,r)&&t.push(r);return t}function Q(e,t){for(var r=[],n=e.next(),i=n.value,a=n.done;!a;o=e.next(),i=o.value,a=o.done,o)r.push(t?t(i):i);return r;var o}function Z(e,t){for(var r=[],n=e.next(),i=n.value,a=n.done;!a;o=e.next(),i=o.value,a=o.done,o)r.push(t(i));return r;var o}function $(e,t){for(var r=e.entries(),n=r.next(),i=n.value,a=n.done;!a;u=r.next(),i=u.value,a=u.done,u){var o=i[0],s=i[1],c=t(s,o);if(c)return c}return;var u}function ee(e,t){for(var r=e.keys(),n=r.next(),i=n.value,a=n.done;!a;s=r.next(),i=s.value,a=s.done,s){var o=t(i);if(o)return o}return;var s}function te(e,t){e.forEach(function(e,r){t.set(r,e)})}function re(e){for(var t=[],r=1;r=0,"start must be non-negative, is "+t),dr.assert(r>=0,"length must be non-negative, is "+r),e&&(dr.assert(t<=e.text.length,"start must be within the bounds of the file. "+t+" > "+e.text.length),dr.assert(i<=e.text.length,"end must be the bounds of the file. "+i+" > "+e.text.length));var a=ye(n);return arguments.length>4&&(a=he(a,arguments,4)),{file:e,start:t,length:r,messageText:a,category:n.category,code:n.code}}function be(e,t){var r=ye(t);return arguments.length>2&&(r=he(r,arguments,2)),r}function ke(e){var t=ye(e);return arguments.length>1&&(t=he(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function xe(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function Se(e,t){var r=ye(t);return arguments.length>2&&(r=he(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}}function Ce(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e}function Ee(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e0?1:0}if(t=t.toUpperCase(),r=r.toUpperCase(),t===r)return 0}return t0&&".."!==K(i)?i.pop():s&&i.push(s))}return i}function Re(t){t=Oe(t);var r=Ie(t),n=t.substr(0,r),i=Fe(t,r);if(i.length){var a=n+i.join(e.directorySeparator);return Le(t)?a+e.directorySeparator:a}return n}function Le(e){return e.charCodeAt(e.length-1)===ir}function Be(t){return t.substr(0,Math.max(Ie(t),t.lastIndexOf(e.directorySeparator)))}function je(e){return e&&!Ve(e)&&-1!==e.indexOf("://")}function ze(e){return/^\.\.?($|[\\/])/.test(e)}function Ke(e){return e.target||0}function Je(t){return"number"==typeof t.module?t.module:Ke(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function qe(t){var r=t.moduleResolution;return void 0===r&&(r=Je(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r}function Ue(e){for(var t=!1,r=0;r1&&""===K(s)&&s.length--;var c;for(c=0;c=0&&e.indexOf(t,r)===r}function ct(e){return et(e).indexOf(".")>=0}function ut(e,t){return e.length>t.length&&st(e,t)}function lt(e,t){for(var r=0,n=t;r0;)s+=")?",f--;return s}}function gt(e){return ht(e,sr)}function mt(e){return ht(e,cr)}function ht(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function yt(e,t,r,n,i){e=Re(e),i=Re(i);var a=tt(i,e);return{includeFilePatterns:k(ft(r,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:dt(r,a,"files"),includeDirectoryPattern:dt(r,a,"directories"),excludePattern:dt(t,a,"exclude"),basePaths:bt(e,r,n)}}function vt(e,t,r,n,i,a,o){function s(e,r){var n=o(e),i=n.files,a=n.directories;i=i.slice().sort(g),a=a.slice().sort(g);for(var c=0,u=i;c=0;r--)if(ut(e,t[r]))return At(r,t);return 0}function At(e,t){return e<2?0:ei&&(i=c.prefix.length,n=s)}return n}function Xt(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&ot(t,r)&&st(t,n)}function Yt(e){dr.assert(Ue(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function Qt(e){return!(e>=0)}function Zt(t){return t<=e.Extension.LastTypeScriptExtension}function $t(e){var t=er(e);if(void 0!==t)return t;dr.fail("File "+e+" has unknown extension.")}function er(t){return ut(t,".d.ts")?e.Extension.Dts:ut(t,".ts")?e.Extension.Ts:ut(t,".tsx")?e.Extension.Tsx:ut(t,".js")?e.Extension.Js:ut(t,".jsx")?e.Extension.Jsx:void 0}function tr(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}!function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator(void 0,{usage:"sort",sensitivity:"accent"}):void 0,e.localeCompareIsCorrect=e.collator&&e.collator.compare("a","B")<0,e.createMap=r,e.createMapFromTemplate=n;var rr="undefined"!=typeof Map&&"entries"in Map.prototype?Map:function(){var e=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e)}return e.prototype.next=function(){var e=this.index;return e=t}function r(e,t,r){if(!e){var n="";throw r&&(n="\r\nVerbose Debug Information: "+r()),new Error("Debug Failure. False expression: "+(t||"")+n)}}function n(t){e.assert(!1,t)}e.currentAssertionLevel=0,e.shouldAssert=t,e.assert=r,e.fail=n}(dr=e.Debug||(e.Debug={})),e.orderedRemoveItem=jt,e.orderedRemoveItemAt=zt,e.unorderedRemoveItemAt=Kt,e.unorderedRemoveItem=Jt,e.createGetCanonicalFileName=Ut,e.matchPatternOrExact=Vt,e.patternText=Ht,e.matchedText=Wt,e.findBestPatternMatch=Gt,e.tryParsePattern=Yt,e.positionIsSynthesized=Qt,e.extensionIsTypeScript=Zt,e.extensionFromPath=$t,e.tryGetExtensionFromPath=er,e.isCheckJsEnabledForFile=tr}(o||(o={}));var o;!function(e){function a(){if(void 0!==t){var e=t.version;if(e){var r=e.indexOf(".");if(-1!==r)return parseInt(e.substring(1,r))}}}e.getNodeMajorVersion=a,e.sys=function(){function o(t,r){var n=e.getDirectoryPath(t),i=t!==n&&!r.directoryExists(n);i&&o(n,r),!i&&r.directoryExists(t)||r.createDirectory(t)}var s;if("undefined"!=typeof ChakraHost?s=function(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,r){r&&(t="\ufeff"+t),ChakraHost.writeFile(e,t)},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,r,n,i){var a=e.getFileMatcherPatterns(t,n,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,r,a.basePaths,a.excludePattern,a.includeFilePattern,a.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}():void 0!==t&&t.nextTick&&!t.browser&&(s=function(){function o(e,t){if(d(e)){var r=g.readFileSync(e),n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i=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")}}function s(e,t,r){r&&(t="\ufeff"+t);var n;try{n=g.openSync(e,"w"),g.writeSync(n,t,void 0,"utf8")}finally{void 0!==n&&g.closeSync(n)}}function c(t){try{for(var r=g.readdirSync(t||".").sort(),n=[],i=[],a=0,o=r;a=4,S=h.platform(),C=function(){return"win32"!==S&&"win64"!==S&&(!d(n.toUpperCase())||!d(n.toLowerCase()))}();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(p||(p={}));var E={close:e.noop},D={args:t.argv.slice(2),newLine:h.EOL,useCaseSensitiveFileNames:C,write:function(e){t.stdout.write(e)},readFile:o,writeFile:s,watchFile:function(e,t,r){function n(r,n){+r.mtime<=+n.mtime||t(e)}if(v){var i=b.addFile(e,t);return{close:function(){return b.removeFile(i)}}}return g.watchFile(e,{persistent:!0,interval:r||250},n),{close:function(){return g.unwatchFile(e,n)}}},watchDirectory:function(r,n,i){var a;return f(r)?(a=!x||"win32"!==t.platform&&"darwin"!==t.platform?{persistent:!0}:{persistent:!0,recursive:!!i},g.watch(r,a,function(t,i){"rename"===t&&n(i?e.normalizePath(e.combinePaths(r,i)):i)})):E},resolvePath:function(e){return m.resolve(e)},fileExists:d,directoryExists:f,createDirectory:function(e){D.directoryExists(e)||g.mkdirSync(e)},getExecutingFilePath:function(){return n},getCurrentDirectory:function(){return t.cwd()},getDirectories:_,getEnvironmentVariable:function(e){return t.env[e]||""},readDirectory:u,getModifiedTime:function(e){try{return g.statSync(e).mtime}catch(e){return}},createHash:function(e){var t=y.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){return i.gc&&i.gc(),t.memoryUsage().heapUsed},getFileSize:function(e){try{var t=g.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){t.exit(e)},realpath:function(e){return g.realpathSync(e)},tryEnableSourceMapsForHost:function(){try{r(174).install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return D}()),s){var c=s.writeFile;s.writeFile=function(t,r,n){var i=e.getDirectoryPath(e.normalizeSlashes(t));i&&!s.directoryExists(i)&&o(i,s),c.call(s,t,r,n)}}return s}(),e.sys&&e.sys.getEnvironmentVariable&&(e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)}(o||(o={}));var o;!function(e){e.Diagnostics={Unterminated_string_literal:{code:1002,category:e.DiagnosticCategory.Error,key:"Unterminated_string_literal_1002",message:"Unterminated string literal."},Identifier_expected:{code:1003,category:e.DiagnosticCategory.Error,key:"Identifier_expected_1003",message:"Identifier expected."},_0_expected:{code:1005,category:e.DiagnosticCategory.Error,key:"_0_expected_1005",message:"'{0}' expected."},A_file_cannot_have_a_reference_to_itself:{code:1006,category:e.DiagnosticCategory.Error,key:"A_file_cannot_have_a_reference_to_itself_1006",message:"A file cannot have a reference to itself."},Trailing_comma_not_allowed:{code:1009,category:e.DiagnosticCategory.Error,key:"Trailing_comma_not_allowed_1009",message:"Trailing comma not allowed."},Asterisk_Slash_expected:{code:1010,category:e.DiagnosticCategory.Error,key:"Asterisk_Slash_expected_1010",message:"'*/' expected."},Unexpected_token:{code:1012,category:e.DiagnosticCategory.Error,key:"Unexpected_token_1012",message:"Unexpected token."},A_rest_parameter_must_be_last_in_a_parameter_list:{code:1014,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_must_be_last_in_a_parameter_list_1014",message:"A rest parameter must be last in a parameter list."},Parameter_cannot_have_question_mark_and_initializer:{code:1015,category:e.DiagnosticCategory.Error,key:"Parameter_cannot_have_question_mark_and_initializer_1015",message:"Parameter cannot have question mark and initializer."},A_required_parameter_cannot_follow_an_optional_parameter:{code:1016,category:e.DiagnosticCategory.Error,key:"A_required_parameter_cannot_follow_an_optional_parameter_1016",message:"A required parameter cannot follow an optional parameter."},An_index_signature_cannot_have_a_rest_parameter:{code:1017,category:e.DiagnosticCategory.Error,key:"An_index_signature_cannot_have_a_rest_parameter_1017",message:"An index signature cannot have a rest parameter."},An_index_signature_parameter_cannot_have_an_accessibility_modifier:{code:1018,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018",message:"An index signature parameter cannot have an accessibility modifier."},An_index_signature_parameter_cannot_have_a_question_mark:{code:1019,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_a_question_mark_1019",message:"An index signature parameter cannot have a question mark."},An_index_signature_parameter_cannot_have_an_initializer:{code:1020,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_an_initializer_1020",message:"An index signature parameter cannot have an initializer."},An_index_signature_must_have_a_type_annotation:{code:1021,category:e.DiagnosticCategory.Error,key:"An_index_signature_must_have_a_type_annotation_1021",message:"An index signature must have a type annotation."},An_index_signature_parameter_must_have_a_type_annotation:{code:1022,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_must_have_a_type_annotation_1022",message:"An index signature parameter must have a type annotation."},An_index_signature_parameter_type_must_be_string_or_number:{code:1023,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_type_must_be_string_or_number_1023",message:"An index signature parameter type must be 'string' or 'number'."},readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:{code:1024,category:e.DiagnosticCategory.Error,key:"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024",message:"'readonly' modifier can only appear on a property declaration or index signature."},Accessibility_modifier_already_seen:{code:1028,category:e.DiagnosticCategory.Error,key:"Accessibility_modifier_already_seen_1028",message:"Accessibility modifier already seen."},_0_modifier_must_precede_1_modifier:{code:1029,category:e.DiagnosticCategory.Error,key:"_0_modifier_must_precede_1_modifier_1029",message:"'{0}' modifier must precede '{1}' modifier."},_0_modifier_already_seen:{code:1030,category:e.DiagnosticCategory.Error,key:"_0_modifier_already_seen_1030",message:"'{0}' modifier already seen."},_0_modifier_cannot_appear_on_a_class_element:{code:1031,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_class_element_1031",message:"'{0}' modifier cannot appear on a class element."},super_must_be_followed_by_an_argument_list_or_member_access:{code:1034,category:e.DiagnosticCategory.Error,key:"super_must_be_followed_by_an_argument_list_or_member_access_1034",message:"'super' must be followed by an argument list or member access."},Only_ambient_modules_can_use_quoted_names:{code:1035,category:e.DiagnosticCategory.Error,key:"Only_ambient_modules_can_use_quoted_names_1035",message:"Only ambient modules can use quoted names."},Statements_are_not_allowed_in_ambient_contexts:{code:1036,category:e.DiagnosticCategory.Error,key:"Statements_are_not_allowed_in_ambient_contexts_1036",message:"Statements are not allowed in ambient contexts."},A_declare_modifier_cannot_be_used_in_an_already_ambient_context:{code:1038,category:e.DiagnosticCategory.Error,key:"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038",message:"A 'declare' modifier cannot be used in an already ambient context."},Initializers_are_not_allowed_in_ambient_contexts:{code:1039,category:e.DiagnosticCategory.Error,key:"Initializers_are_not_allowed_in_ambient_contexts_1039",message:"Initializers are not allowed in ambient contexts."},_0_modifier_cannot_be_used_in_an_ambient_context:{code:1040,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_in_an_ambient_context_1040",message:"'{0}' modifier cannot be used in an ambient context."},_0_modifier_cannot_be_used_with_a_class_declaration:{code:1041,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_with_a_class_declaration_1041",message:"'{0}' modifier cannot be used with a class declaration."},_0_modifier_cannot_be_used_here:{code:1042,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_here_1042",message:"'{0}' modifier cannot be used here."},_0_modifier_cannot_appear_on_a_data_property:{code:1043,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_data_property_1043",message:"'{0}' modifier cannot appear on a data property."},_0_modifier_cannot_appear_on_a_module_or_namespace_element:{code:1044,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044",message:"'{0}' modifier cannot appear on a module or namespace element."},A_0_modifier_cannot_be_used_with_an_interface_declaration:{code:1045,category:e.DiagnosticCategory.Error,key:"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045",message:"A '{0}' modifier cannot be used with an interface declaration."},A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:{code:1046,category:e.DiagnosticCategory.Error,key:"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046",message:"A 'declare' modifier is required for a top level declaration in a .d.ts file."},A_rest_parameter_cannot_be_optional:{code:1047,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_cannot_be_optional_1047",message:"A rest parameter cannot be optional."},A_rest_parameter_cannot_have_an_initializer:{code:1048,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_cannot_have_an_initializer_1048",message:"A rest parameter cannot have an initializer."},A_set_accessor_must_have_exactly_one_parameter:{code:1049,category:e.DiagnosticCategory.Error,key:"A_set_accessor_must_have_exactly_one_parameter_1049",message:"A 'set' accessor must have exactly one parameter."},A_set_accessor_cannot_have_an_optional_parameter:{code:1051,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_an_optional_parameter_1051",message:"A 'set' accessor cannot have an optional parameter."},A_set_accessor_parameter_cannot_have_an_initializer:{code:1052,category:e.DiagnosticCategory.Error,key:"A_set_accessor_parameter_cannot_have_an_initializer_1052",message:"A 'set' accessor parameter cannot have an initializer."},A_set_accessor_cannot_have_rest_parameter:{code:1053,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_rest_parameter_1053",message:"A 'set' accessor cannot have rest parameter."},A_get_accessor_cannot_have_parameters:{code:1054,category:e.DiagnosticCategory.Error,key:"A_get_accessor_cannot_have_parameters_1054",message:"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:{code:1055,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055",message:"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:{code:1056,category:e.DiagnosticCategory.Error,key:"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056",message:"Accessors are only available when targeting ECMAScript 5 and higher."},An_async_function_or_method_must_have_a_valid_awaitable_return_type:{code:1057,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057",message:"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:{code:1058,category:e.DiagnosticCategory.Error,key:"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058",message:"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:{code:1059,category:e.DiagnosticCategory.Error,key:"A_promise_must_have_a_then_method_1059",message:"A promise must have a 'then' method."},The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:{code:1060,category:e.DiagnosticCategory.Error,key:"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060",message:"The first parameter of the 'then' method of a promise must be a callback."},Enum_member_must_have_initializer:{code:1061,category:e.DiagnosticCategory.Error,key:"Enum_member_must_have_initializer_1061",message:"Enum member must have initializer."},Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:{code:1062,category:e.DiagnosticCategory.Error,key:"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062",message:"Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."},An_export_assignment_cannot_be_used_in_a_namespace:{code:1063,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_be_used_in_a_namespace_1063",message:"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:{code:1064,category:e.DiagnosticCategory.Error,key:"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064",message:"The return type of an async function or method must be the global Promise type."},In_ambient_enum_declarations_member_initializer_must_be_constant_expression:{code:1066,category:e.DiagnosticCategory.Error,key:"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066",message:"In ambient enum declarations member initializer must be constant expression."},Unexpected_token_A_constructor_method_accessor_or_property_was_expected:{code:1068,category:e.DiagnosticCategory.Error,key:"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068",message:"Unexpected token. A constructor, method, accessor, or property was expected."},_0_modifier_cannot_appear_on_a_type_member:{code:1070,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_type_member_1070",message:"'{0}' modifier cannot appear on a type member."},_0_modifier_cannot_appear_on_an_index_signature:{code:1071,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_an_index_signature_1071",message:"'{0}' modifier cannot appear on an index signature."},A_0_modifier_cannot_be_used_with_an_import_declaration:{code:1079,category:e.DiagnosticCategory.Error,key:"A_0_modifier_cannot_be_used_with_an_import_declaration_1079",message:"A '{0}' modifier cannot be used with an import declaration."},Invalid_reference_directive_syntax:{code:1084,category:e.DiagnosticCategory.Error,key:"Invalid_reference_directive_syntax_1084",message:"Invalid 'reference' directive syntax."},Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:{code:1085,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",message:"Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."},An_accessor_cannot_be_declared_in_an_ambient_context:{code:1086,category:e.DiagnosticCategory.Error,key:"An_accessor_cannot_be_declared_in_an_ambient_context_1086",message:"An accessor cannot be declared in an ambient context."},_0_modifier_cannot_appear_on_a_constructor_declaration:{code:1089,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_constructor_declaration_1089",message:"'{0}' modifier cannot appear on a constructor declaration."},_0_modifier_cannot_appear_on_a_parameter:{code:1090,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_parameter_1090",message:"'{0}' modifier cannot appear on a parameter."},Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:{code:1091,category:e.DiagnosticCategory.Error,key:"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091",message:"Only a single variable declaration is allowed in a 'for...in' statement."},Type_parameters_cannot_appear_on_a_constructor_declaration:{code:1092,category:e.DiagnosticCategory.Error,key:"Type_parameters_cannot_appear_on_a_constructor_declaration_1092",message:"Type parameters cannot appear on a constructor declaration."},Type_annotation_cannot_appear_on_a_constructor_declaration:{code:1093,category:e.DiagnosticCategory.Error,key:"Type_annotation_cannot_appear_on_a_constructor_declaration_1093",message:"Type annotation cannot appear on a constructor declaration."},An_accessor_cannot_have_type_parameters:{code:1094,category:e.DiagnosticCategory.Error,key:"An_accessor_cannot_have_type_parameters_1094",message:"An accessor cannot have type parameters."},A_set_accessor_cannot_have_a_return_type_annotation:{code:1095,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_a_return_type_annotation_1095",message:"A 'set' accessor cannot have a return type annotation."},An_index_signature_must_have_exactly_one_parameter:{code:1096,category:e.DiagnosticCategory.Error,key:"An_index_signature_must_have_exactly_one_parameter_1096",message:"An index signature must have exactly one parameter."},_0_list_cannot_be_empty:{code:1097,category:e.DiagnosticCategory.Error,key:"_0_list_cannot_be_empty_1097",message:"'{0}' list cannot be empty."},Type_parameter_list_cannot_be_empty:{code:1098,category:e.DiagnosticCategory.Error,key:"Type_parameter_list_cannot_be_empty_1098",message:"Type parameter list cannot be empty."},Type_argument_list_cannot_be_empty:{code:1099,category:e.DiagnosticCategory.Error,key:"Type_argument_list_cannot_be_empty_1099",message:"Type argument list cannot be empty."},Invalid_use_of_0_in_strict_mode:{code:1100,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_in_strict_mode_1100",message:"Invalid use of '{0}' in strict mode."},with_statements_are_not_allowed_in_strict_mode:{code:1101,category:e.DiagnosticCategory.Error,key:"with_statements_are_not_allowed_in_strict_mode_1101",message:"'with' statements are not allowed in strict mode."},delete_cannot_be_called_on_an_identifier_in_strict_mode:{code:1102,category:e.DiagnosticCategory.Error,key:"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102",message:"'delete' cannot be called on an identifier in strict mode."},A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:{code:1103,category:e.DiagnosticCategory.Error,key:"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103",message:"A 'for-await-of' statement is only allowed within an async function or async generator."},A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:{code:1104,category:e.DiagnosticCategory.Error,key:"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104",message:"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:{code:1105,category:e.DiagnosticCategory.Error,key:"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105",message:"A 'break' statement can only be used within an enclosing iteration or switch statement."},Jump_target_cannot_cross_function_boundary:{code:1107,category:e.DiagnosticCategory.Error,key:"Jump_target_cannot_cross_function_boundary_1107",message:"Jump target cannot cross function boundary."},A_return_statement_can_only_be_used_within_a_function_body:{code:1108,category:e.DiagnosticCategory.Error,key:"A_return_statement_can_only_be_used_within_a_function_body_1108",message:"A 'return' statement can only be used within a function body."},Expression_expected:{code:1109,category:e.DiagnosticCategory.Error,key:"Expression_expected_1109",message:"Expression expected."},Type_expected:{code:1110,category:e.DiagnosticCategory.Error,key:"Type_expected_1110",message:"Type expected."},A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:{code:1113,category:e.DiagnosticCategory.Error,key:"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113",message:"A 'default' clause cannot appear more than once in a 'switch' statement."},Duplicate_label_0:{code:1114,category:e.DiagnosticCategory.Error,key:"Duplicate_label_0_1114",message:"Duplicate label '{0}'."},A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:{code:1115,category:e.DiagnosticCategory.Error,key:"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115",message:"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:{code:1116,category:e.DiagnosticCategory.Error,key:"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116",message:"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:{code:1117,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117",message:"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:{code:1118,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118",message:"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:{code:1119,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119",message:"An object literal cannot have property and accessor with the same name."},An_export_assignment_cannot_have_modifiers:{code:1120,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_have_modifiers_1120",message:"An export assignment cannot have modifiers."},Octal_literals_are_not_allowed_in_strict_mode:{code:1121,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_allowed_in_strict_mode_1121",message:"Octal literals are not allowed in strict mode."},A_tuple_type_element_list_cannot_be_empty:{code:1122,category:e.DiagnosticCategory.Error,key:"A_tuple_type_element_list_cannot_be_empty_1122",message:"A tuple type element list cannot be empty."},Variable_declaration_list_cannot_be_empty:{code:1123,category:e.DiagnosticCategory.Error,key:"Variable_declaration_list_cannot_be_empty_1123",message:"Variable declaration list cannot be empty."},Digit_expected:{code:1124,category:e.DiagnosticCategory.Error,key:"Digit_expected_1124",message:"Digit expected."},Hexadecimal_digit_expected:{code:1125,category:e.DiagnosticCategory.Error,key:"Hexadecimal_digit_expected_1125",message:"Hexadecimal digit expected."},Unexpected_end_of_text:{code:1126,category:e.DiagnosticCategory.Error,key:"Unexpected_end_of_text_1126",message:"Unexpected end of text."},Invalid_character:{code:1127,category:e.DiagnosticCategory.Error,key:"Invalid_character_1127",message:"Invalid character."},Declaration_or_statement_expected:{code:1128,category:e.DiagnosticCategory.Error,key:"Declaration_or_statement_expected_1128",message:"Declaration or statement expected."},Statement_expected:{code:1129,category:e.DiagnosticCategory.Error,key:"Statement_expected_1129",message:"Statement expected."},case_or_default_expected:{code:1130,category:e.DiagnosticCategory.Error,key:"case_or_default_expected_1130",message:"'case' or 'default' expected."},Property_or_signature_expected:{code:1131,category:e.DiagnosticCategory.Error,key:"Property_or_signature_expected_1131",message:"Property or signature expected."},Enum_member_expected:{code:1132,category:e.DiagnosticCategory.Error,key:"Enum_member_expected_1132",message:"Enum member expected."},Variable_declaration_expected:{code:1134,category:e.DiagnosticCategory.Error,key:"Variable_declaration_expected_1134",message:"Variable declaration expected."},Argument_expression_expected:{code:1135,category:e.DiagnosticCategory.Error,key:"Argument_expression_expected_1135",message:"Argument expression expected."},Property_assignment_expected:{code:1136,category:e.DiagnosticCategory.Error,key:"Property_assignment_expected_1136",message:"Property assignment expected."},Expression_or_comma_expected:{code:1137,category:e.DiagnosticCategory.Error,key:"Expression_or_comma_expected_1137",message:"Expression or comma expected."},Parameter_declaration_expected:{code:1138,category:e.DiagnosticCategory.Error,key:"Parameter_declaration_expected_1138",message:"Parameter declaration expected."},Type_parameter_declaration_expected:{code:1139,category:e.DiagnosticCategory.Error,key:"Type_parameter_declaration_expected_1139",message:"Type parameter declaration expected."},Type_argument_expected:{code:1140,category:e.DiagnosticCategory.Error,key:"Type_argument_expected_1140",message:"Type argument expected."},String_literal_expected:{code:1141,category:e.DiagnosticCategory.Error,key:"String_literal_expected_1141",message:"String literal expected."},Line_break_not_permitted_here:{code:1142,category:e.DiagnosticCategory.Error,key:"Line_break_not_permitted_here_1142",message:"Line break not permitted here."},or_expected:{code:1144,category:e.DiagnosticCategory.Error,key:"or_expected_1144",message:"'{' or ';' expected."},Declaration_expected:{code:1146,category:e.DiagnosticCategory.Error,key:"Declaration_expected_1146",message:"Declaration expected."},Import_declarations_in_a_namespace_cannot_reference_a_module:{code:1147,category:e.DiagnosticCategory.Error,key:"Import_declarations_in_a_namespace_cannot_reference_a_module_1147",message:"Import declarations in a namespace cannot reference a module."},Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:{code:1148,category:e.DiagnosticCategory.Error,key:"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148",message:"Cannot use imports, exports, or module augmentations when '--module' is 'none'."},File_name_0_differs_from_already_included_file_name_1_only_in_casing:{code:1149,category:e.DiagnosticCategory.Error,key:"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149",message:"File name '{0}' differs from already included file name '{1}' only in casing."},new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:{code:1150,category:e.DiagnosticCategory.Error,key:"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150",message:"'new T[]' cannot be used to create an array. Use 'new Array()' instead."},const_declarations_must_be_initialized:{code:1155,category:e.DiagnosticCategory.Error,key:"const_declarations_must_be_initialized_1155",message:"'const' declarations must be initialized."},const_declarations_can_only_be_declared_inside_a_block:{code:1156,category:e.DiagnosticCategory.Error,key:"const_declarations_can_only_be_declared_inside_a_block_1156",message:"'const' declarations can only be declared inside a block."},let_declarations_can_only_be_declared_inside_a_block:{code:1157,category:e.DiagnosticCategory.Error,key:"let_declarations_can_only_be_declared_inside_a_block_1157",message:"'let' declarations can only be declared inside a block."},Unterminated_template_literal:{code:1160,category:e.DiagnosticCategory.Error,key:"Unterminated_template_literal_1160",message:"Unterminated template literal."},Unterminated_regular_expression_literal:{code:1161,category:e.DiagnosticCategory.Error,key:"Unterminated_regular_expression_literal_1161",message:"Unterminated regular expression literal."},An_object_member_cannot_be_declared_optional:{code:1162,category:e.DiagnosticCategory.Error,key:"An_object_member_cannot_be_declared_optional_1162",message:"An object member cannot be declared optional."},A_yield_expression_is_only_allowed_in_a_generator_body:{code:1163,category:e.DiagnosticCategory.Error,key:"A_yield_expression_is_only_allowed_in_a_generator_body_1163",message:"A 'yield' expression is only allowed in a generator body."},Computed_property_names_are_not_allowed_in_enums:{code:1164,category:e.DiagnosticCategory.Error,key:"Computed_property_names_are_not_allowed_in_enums_1164",message:"Computed property names are not allowed in enums."},A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol:{code:1165,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165",message:"A computed property name in an ambient context must directly refer to a built-in symbol."},A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol:{code:1166,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166",message:"A computed property name in a class property declaration must directly refer to a built-in symbol."},A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol:{code:1168,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168",message:"A computed property name in a method overload must directly refer to a built-in symbol."},A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol:{code:1169,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169",message:"A computed property name in an interface must directly refer to a built-in symbol."},A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol:{code:1170,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170",message:"A computed property name in a type literal must directly refer to a built-in symbol."},A_comma_expression_is_not_allowed_in_a_computed_property_name:{code:1171,category:e.DiagnosticCategory.Error,key:"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171",message:"A comma expression is not allowed in a computed property name."},extends_clause_already_seen:{code:1172,category:e.DiagnosticCategory.Error,key:"extends_clause_already_seen_1172",message:"'extends' clause already seen."},extends_clause_must_precede_implements_clause:{code:1173,category:e.DiagnosticCategory.Error,key:"extends_clause_must_precede_implements_clause_1173",message:"'extends' clause must precede 'implements' clause."},Classes_can_only_extend_a_single_class:{code:1174,category:e.DiagnosticCategory.Error,key:"Classes_can_only_extend_a_single_class_1174",message:"Classes can only extend a single class."},implements_clause_already_seen:{code:1175,category:e.DiagnosticCategory.Error,key:"implements_clause_already_seen_1175",message:"'implements' clause already seen."},Interface_declaration_cannot_have_implements_clause:{code:1176,category:e.DiagnosticCategory.Error,key:"Interface_declaration_cannot_have_implements_clause_1176",message:"Interface declaration cannot have 'implements' clause."},Binary_digit_expected:{code:1177,category:e.DiagnosticCategory.Error,key:"Binary_digit_expected_1177",message:"Binary digit expected."},Octal_digit_expected:{code:1178,category:e.DiagnosticCategory.Error,key:"Octal_digit_expected_1178",message:"Octal digit expected."},Unexpected_token_expected:{code:1179,category:e.DiagnosticCategory.Error,key:"Unexpected_token_expected_1179",message:"Unexpected token. '{' expected."},Property_destructuring_pattern_expected:{code:1180,category:e.DiagnosticCategory.Error,key:"Property_destructuring_pattern_expected_1180",message:"Property destructuring pattern expected."},Array_element_destructuring_pattern_expected:{code:1181,category:e.DiagnosticCategory.Error,key:"Array_element_destructuring_pattern_expected_1181",message:"Array element destructuring pattern expected."},A_destructuring_declaration_must_have_an_initializer:{code:1182,category:e.DiagnosticCategory.Error,key:"A_destructuring_declaration_must_have_an_initializer_1182",message:"A destructuring declaration must have an initializer."},An_implementation_cannot_be_declared_in_ambient_contexts:{code:1183,category:e.DiagnosticCategory.Error,key:"An_implementation_cannot_be_declared_in_ambient_contexts_1183",message:"An implementation cannot be declared in ambient contexts."},Modifiers_cannot_appear_here:{code:1184,category:e.DiagnosticCategory.Error,key:"Modifiers_cannot_appear_here_1184",message:"Modifiers cannot appear here."},Merge_conflict_marker_encountered:{code:1185,category:e.DiagnosticCategory.Error,key:"Merge_conflict_marker_encountered_1185",message:"Merge conflict marker encountered."},A_rest_element_cannot_have_an_initializer:{code:1186,category:e.DiagnosticCategory.Error,key:"A_rest_element_cannot_have_an_initializer_1186",message:"A rest element cannot have an initializer."},A_parameter_property_may_not_be_declared_using_a_binding_pattern:{code:1187,category:e.DiagnosticCategory.Error,key:"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187",message:"A parameter property may not be declared using a binding pattern."},Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:{code:1188,category:e.DiagnosticCategory.Error,key:"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188",message:"Only a single variable declaration is allowed in a 'for...of' statement."},The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:{code:1189,category:e.DiagnosticCategory.Error,key:"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189",message:"The variable declaration of a 'for...in' statement cannot have an initializer."},The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:{code:1190,category:e.DiagnosticCategory.Error,key:"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190",message:"The variable declaration of a 'for...of' statement cannot have an initializer."},An_import_declaration_cannot_have_modifiers:{code:1191,category:e.DiagnosticCategory.Error,key:"An_import_declaration_cannot_have_modifiers_1191",message:"An import declaration cannot have modifiers."},Module_0_has_no_default_export:{code:1192,category:e.DiagnosticCategory.Error,key:"Module_0_has_no_default_export_1192",message:"Module '{0}' has no default export."},An_export_declaration_cannot_have_modifiers:{code:1193,category:e.DiagnosticCategory.Error,key:"An_export_declaration_cannot_have_modifiers_1193",message:"An export declaration cannot have modifiers."},Export_declarations_are_not_permitted_in_a_namespace:{code:1194,category:e.DiagnosticCategory.Error,key:"Export_declarations_are_not_permitted_in_a_namespace_1194",message:"Export declarations are not permitted in a namespace."},Catch_clause_variable_cannot_have_a_type_annotation:{code:1196,category:e.DiagnosticCategory.Error,key:"Catch_clause_variable_cannot_have_a_type_annotation_1196",message:"Catch clause variable cannot have a type annotation."},Catch_clause_variable_cannot_have_an_initializer:{code:1197,category:e.DiagnosticCategory.Error,key:"Catch_clause_variable_cannot_have_an_initializer_1197",message:"Catch clause variable cannot have an initializer."},An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:{code:1198,category:e.DiagnosticCategory.Error,key:"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198",message:"An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."},Unterminated_Unicode_escape_sequence:{code:1199,category:e.DiagnosticCategory.Error,key:"Unterminated_Unicode_escape_sequence_1199",message:"Unterminated Unicode escape sequence."},Line_terminator_not_permitted_before_arrow:{code:1200,category:e.DiagnosticCategory.Error,key:"Line_terminator_not_permitted_before_arrow_1200",message:"Line terminator not permitted before arrow."},Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:{code:1202,category:e.DiagnosticCategory.Error,key:"Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asteri_1202",message:"Import assignment cannot be used when targeting ECMAScript 2015 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_2015_modules_Consider_using_export_default_or_another_module_format_instead:{code:1203,category:e.DiagnosticCategory.Error,key:"Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_defaul_1203",message:"Export assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'export default' or another module format instead."},Decorators_are_not_valid_here:{code:1206,category:e.DiagnosticCategory.Error,key:"Decorators_are_not_valid_here_1206",message:"Decorators are not valid here."},Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:{code:1207,category:e.DiagnosticCategory.Error,key:"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207",message:"Decorators cannot be applied to multiple get/set accessors of the same name."},Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:{code:1208,category:e.DiagnosticCategory.Error,key:"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208",message:"Cannot compile namespaces when the '--isolatedModules' flag is provided."},Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:{code:1209,category:e.DiagnosticCategory.Error,key:"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209",message:"Ambient const enums are not allowed when the '--isolatedModules' flag is provided."},Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:{code:1210,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210",message:"Invalid use of '{0}'. Class definitions are automatically in strict mode."},A_class_declaration_without_the_default_modifier_must_have_a_name:{code:1211,category:e.DiagnosticCategory.Error,key:"A_class_declaration_without_the_default_modifier_must_have_a_name_1211",message:"A class declaration without the 'default' modifier must have a name."},Identifier_expected_0_is_a_reserved_word_in_strict_mode:{code:1212,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212",message:"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:{code:1213,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213",message:"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:{code:1214,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214",message:"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:{code:1215,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215",message:"Invalid use of '{0}'. Modules are automatically in strict mode."},Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:{code:1216,category:e.DiagnosticCategory.Error,key:"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216",message:"Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."},Export_assignment_is_not_supported_when_module_flag_is_system:{code:1218,category:e.DiagnosticCategory.Error,key:"Export_assignment_is_not_supported_when_module_flag_is_system_1218",message:"Export assignment is not supported when '--module' flag is 'system'."},Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:{code:1219,category:e.DiagnosticCategory.Error,key:"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219",message:"Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."},Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:{code:1220,category:e.DiagnosticCategory.Error,key:"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220",message:"Generators are only available when targeting ECMAScript 2015 or higher."},Generators_are_not_allowed_in_an_ambient_context:{code:1221,category:e.DiagnosticCategory.Error,key:"Generators_are_not_allowed_in_an_ambient_context_1221",message:"Generators are not allowed in an ambient context."},An_overload_signature_cannot_be_declared_as_a_generator:{code:1222,category:e.DiagnosticCategory.Error,key:"An_overload_signature_cannot_be_declared_as_a_generator_1222",message:"An overload signature cannot be declared as a generator."},_0_tag_already_specified:{code:1223,category:e.DiagnosticCategory.Error,key:"_0_tag_already_specified_1223",message:"'{0}' tag already specified."},Signature_0_must_have_a_type_predicate:{code:1224,category:e.DiagnosticCategory.Error,key:"Signature_0_must_have_a_type_predicate_1224",message:"Signature '{0}' must have a type predicate."},Cannot_find_parameter_0:{code:1225,category:e.DiagnosticCategory.Error,key:"Cannot_find_parameter_0_1225",message:"Cannot find parameter '{0}'."},Type_predicate_0_is_not_assignable_to_1:{code:1226,category:e.DiagnosticCategory.Error,key:"Type_predicate_0_is_not_assignable_to_1_1226",message:"Type predicate '{0}' is not assignable to '{1}'."},Parameter_0_is_not_in_the_same_position_as_parameter_1:{code:1227,category:e.DiagnosticCategory.Error,key:"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227",message:"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:{code:1228,category:e.DiagnosticCategory.Error,key:"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228",message:"A type predicate is only allowed in return type position for functions and methods."},A_type_predicate_cannot_reference_a_rest_parameter:{code:1229,category:e.DiagnosticCategory.Error,key:"A_type_predicate_cannot_reference_a_rest_parameter_1229",message:"A type predicate cannot reference a rest parameter."},A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:{code:1230,category:e.DiagnosticCategory.Error,key:"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230",message:"A type predicate cannot reference element '{0}' in a binding pattern."},An_export_assignment_can_only_be_used_in_a_module:{code:1231,category:e.DiagnosticCategory.Error,key:"An_export_assignment_can_only_be_used_in_a_module_1231",message:"An export assignment can only be used in a module."},An_import_declaration_can_only_be_used_in_a_namespace_or_module:{code:1232,category:e.DiagnosticCategory.Error,key:"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232",message:"An import declaration can only be used in a namespace or module."},An_export_declaration_can_only_be_used_in_a_module:{code:1233,category:e.DiagnosticCategory.Error,key:"An_export_declaration_can_only_be_used_in_a_module_1233",message:"An export declaration can only be used in a module."},An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:{code:1234,category:e.DiagnosticCategory.Error,key:"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234",message:"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:{code:1235,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235",message:"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:{code:1236,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236",message:"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:{code:1237,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237",message:"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:{code:1238,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238",message:"Unable to resolve signature of class decorator when called as an expression."},Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:{code:1239,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239",message:"Unable to resolve signature of parameter decorator when called as an expression."},Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:{code:1240,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240",message:"Unable to resolve signature of property decorator when called as an expression."},Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:{code:1241,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241",message:"Unable to resolve signature of method decorator when called as an expression."},abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:{code:1242,category:e.DiagnosticCategory.Error,key:"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242",message:"'abstract' modifier can only appear on a class, method, or property declaration."},_0_modifier_cannot_be_used_with_1_modifier:{code:1243,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_with_1_modifier_1243",message:"'{0}' modifier cannot be used with '{1}' modifier."},Abstract_methods_can_only_appear_within_an_abstract_class:{code:1244,category:e.DiagnosticCategory.Error,key:"Abstract_methods_can_only_appear_within_an_abstract_class_1244",message:"Abstract methods can only appear within an abstract class."},Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:{code:1245,category:e.DiagnosticCategory.Error,key:"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245",message:"Method '{0}' cannot have an implementation because it is marked abstract."},An_interface_property_cannot_have_an_initializer:{code:1246,category:e.DiagnosticCategory.Error,key:"An_interface_property_cannot_have_an_initializer_1246",message:"An interface property cannot have an initializer."},A_type_literal_property_cannot_have_an_initializer:{code:1247,category:e.DiagnosticCategory.Error,key:"A_type_literal_property_cannot_have_an_initializer_1247",message:"A type literal property cannot have an initializer."},A_class_member_cannot_have_the_0_keyword:{code:1248,category:e.DiagnosticCategory.Error,key:"A_class_member_cannot_have_the_0_keyword_1248",message:"A class member cannot have the '{0}' keyword."},A_decorator_can_only_decorate_a_method_implementation_not_an_overload:{code:1249,category:e.DiagnosticCategory.Error,key:"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249",message:"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:{code:1250,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250",message:"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:{code:1251,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251",message:"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:{code:1252,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252",message:"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:{code:1253,category:e.DiagnosticCategory.Error,key:"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253",message:"'{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:{code:1254,category:e.DiagnosticCategory.Error,key:"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254",message:"A 'const' initializer in an ambient context must be a string or numeric literal."},with_statements_are_not_allowed_in_an_async_function_block:{code:1300,category:e.DiagnosticCategory.Error,key:"with_statements_are_not_allowed_in_an_async_function_block_1300",message:"'with' statements are not allowed in an async function block."},await_expression_is_only_allowed_within_an_async_function:{code:1308,category:e.DiagnosticCategory.Error,key:"await_expression_is_only_allowed_within_an_async_function_1308",message:"'await' expression is only allowed within an async function."},can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:{code:1312,category:e.DiagnosticCategory.Error,key:"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312",message:"'=' can only be used in an object literal property inside a destructuring assignment."},The_body_of_an_if_statement_cannot_be_the_empty_statement:{code:1313,category:e.DiagnosticCategory.Error,key:"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313",message:"The body of an 'if' statement cannot be the empty statement."},Global_module_exports_may_only_appear_in_module_files:{code:1314,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_in_module_files_1314",message:"Global module exports may only appear in module files."},Global_module_exports_may_only_appear_in_declaration_files:{code:1315,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_in_declaration_files_1315",message:"Global module exports may only appear in declaration files."},Global_module_exports_may_only_appear_at_top_level:{code:1316,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_at_top_level_1316",message:"Global module exports may only appear at top level."},A_parameter_property_cannot_be_declared_using_a_rest_parameter:{code:1317,category:e.DiagnosticCategory.Error,key:"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317",message:"A parameter property cannot be declared using a rest parameter."},An_abstract_accessor_cannot_have_an_implementation:{code:1318,category:e.DiagnosticCategory.Error,key:"An_abstract_accessor_cannot_have_an_implementation_1318",message:"An abstract accessor cannot have an implementation."},A_default_export_can_only_be_used_in_an_ECMAScript_style_module:{code:1319,category:e.DiagnosticCategory.Error,key:"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319",message:"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:{code:1320,category:e.DiagnosticCategory.Error,key:"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320",message:"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:{code:1321,category:e.DiagnosticCategory.Error,key:"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321",message:"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:{code:1322,category:e.DiagnosticCategory.Error,key:"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322",message:"Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."},Duplicate_identifier_0:{code:2300,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_2300",message:"Duplicate identifier '{0}'."},Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:{code:2301,category:e.DiagnosticCategory.Error,key:"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",message:"Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."},Static_members_cannot_reference_class_type_parameters:{code:2302,category:e.DiagnosticCategory.Error,key:"Static_members_cannot_reference_class_type_parameters_2302",message:"Static members cannot reference class type parameters."},Circular_definition_of_import_alias_0:{code:2303,category:e.DiagnosticCategory.Error,key:"Circular_definition_of_import_alias_0_2303",message:"Circular definition of import alias '{0}'."},Cannot_find_name_0:{code:2304,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_2304",message:"Cannot find name '{0}'."},Module_0_has_no_exported_member_1:{code:2305,category:e.DiagnosticCategory.Error,key:"Module_0_has_no_exported_member_1_2305",message:"Module '{0}' has no exported member '{1}'."},File_0_is_not_a_module:{code:2306,category:e.DiagnosticCategory.Error,key:"File_0_is_not_a_module_2306",message:"File '{0}' is not a module."},Cannot_find_module_0:{code:2307,category:e.DiagnosticCategory.Error,key:"Cannot_find_module_0_2307",message:"Cannot find module '{0}'."},Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:{code:2308,category:e.DiagnosticCategory.Error,key:"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308",message:"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:{code:2309,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309",message:"An export assignment cannot be used in a module with other exported elements."},Type_0_recursively_references_itself_as_a_base_type:{code:2310,category:e.DiagnosticCategory.Error,key:"Type_0_recursively_references_itself_as_a_base_type_2310",message:"Type '{0}' recursively references itself as a base type."},A_class_may_only_extend_another_class:{code:2311,category:e.DiagnosticCategory.Error,key:"A_class_may_only_extend_another_class_2311",message:"A class may only extend another class."},An_interface_may_only_extend_a_class_or_another_interface:{code:2312,category:e.DiagnosticCategory.Error,key:"An_interface_may_only_extend_a_class_or_another_interface_2312",message:"An interface may only extend a class or another interface."},Type_parameter_0_has_a_circular_constraint:{code:2313,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_has_a_circular_constraint_2313",message:"Type parameter '{0}' has a circular constraint."},Generic_type_0_requires_1_type_argument_s:{code:2314,category:e.DiagnosticCategory.Error,key:"Generic_type_0_requires_1_type_argument_s_2314",message:"Generic type '{0}' requires {1} type argument(s)."},Type_0_is_not_generic:{code:2315,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_generic_2315",message:"Type '{0}' is not generic."},Global_type_0_must_be_a_class_or_interface_type:{code:2316,category:e.DiagnosticCategory.Error,key:"Global_type_0_must_be_a_class_or_interface_type_2316",message:"Global type '{0}' must be a class or interface type."},Global_type_0_must_have_1_type_parameter_s:{code:2317,category:e.DiagnosticCategory.Error,key:"Global_type_0_must_have_1_type_parameter_s_2317",message:"Global type '{0}' must have {1} type parameter(s)."},Cannot_find_global_type_0:{code:2318,category:e.DiagnosticCategory.Error,key:"Cannot_find_global_type_0_2318",message:"Cannot find global type '{0}'."},Named_property_0_of_types_1_and_2_are_not_identical:{code:2319,category:e.DiagnosticCategory.Error,key:"Named_property_0_of_types_1_and_2_are_not_identical_2319",message:"Named property '{0}' of types '{1}' and '{2}' are not identical."},Interface_0_cannot_simultaneously_extend_types_1_and_2:{code:2320,category:e.DiagnosticCategory.Error,key:"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320",message:"Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."},Excessive_stack_depth_comparing_types_0_and_1:{code:2321,category:e.DiagnosticCategory.Error,key:"Excessive_stack_depth_comparing_types_0_and_1_2321",message:"Excessive stack depth comparing types '{0}' and '{1}'."},Type_0_is_not_assignable_to_type_1:{code:2322,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_assignable_to_type_1_2322",message:"Type '{0}' is not assignable to type '{1}'."},Cannot_redeclare_exported_variable_0:{code:2323,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_exported_variable_0_2323",message:"Cannot redeclare exported variable '{0}'."},Property_0_is_missing_in_type_1:{code:2324,category:e.DiagnosticCategory.Error,key:"Property_0_is_missing_in_type_1_2324",message:"Property '{0}' is missing in type '{1}'."},Property_0_is_private_in_type_1_but_not_in_type_2:{code:2325,category:e.DiagnosticCategory.Error,key:"Property_0_is_private_in_type_1_but_not_in_type_2_2325",message:"Property '{0}' is private in type '{1}' but not in type '{2}'."},Types_of_property_0_are_incompatible:{code:2326,category:e.DiagnosticCategory.Error,key:"Types_of_property_0_are_incompatible_2326",message:"Types of property '{0}' are incompatible."},Property_0_is_optional_in_type_1_but_required_in_type_2:{code:2327,category:e.DiagnosticCategory.Error,key:"Property_0_is_optional_in_type_1_but_required_in_type_2_2327",message:"Property '{0}' is optional in type '{1}' but required in type '{2}'."},Types_of_parameters_0_and_1_are_incompatible:{code:2328,category:e.DiagnosticCategory.Error,key:"Types_of_parameters_0_and_1_are_incompatible_2328",message:"Types of parameters '{0}' and '{1}' are incompatible."},Index_signature_is_missing_in_type_0:{code:2329,category:e.DiagnosticCategory.Error,key:"Index_signature_is_missing_in_type_0_2329",message:"Index signature is missing in type '{0}'."},Index_signatures_are_incompatible:{code:2330,category:e.DiagnosticCategory.Error,key:"Index_signatures_are_incompatible_2330",message:"Index signatures are incompatible."},this_cannot_be_referenced_in_a_module_or_namespace_body:{code:2331,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_module_or_namespace_body_2331",message:"'this' cannot be referenced in a module or namespace body."},this_cannot_be_referenced_in_current_location:{code:2332,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_current_location_2332",message:"'this' cannot be referenced in current location."},this_cannot_be_referenced_in_constructor_arguments:{code:2333,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_constructor_arguments_2333",message:"'this' cannot be referenced in constructor arguments."},this_cannot_be_referenced_in_a_static_property_initializer:{code:2334,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_static_property_initializer_2334",message:"'this' cannot be referenced in a static property initializer."},super_can_only_be_referenced_in_a_derived_class:{code:2335,category:e.DiagnosticCategory.Error,key:"super_can_only_be_referenced_in_a_derived_class_2335",message:"'super' can only be referenced in a derived class."},super_cannot_be_referenced_in_constructor_arguments:{code:2336,category:e.DiagnosticCategory.Error,key:"super_cannot_be_referenced_in_constructor_arguments_2336",message:"'super' cannot be referenced in constructor arguments."},Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:{code:2337,category:e.DiagnosticCategory.Error,key:"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337",message:"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:{code:2338,category:e.DiagnosticCategory.Error,key:"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338",message:"'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:{code:2339,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_type_1_2339",message:"Property '{0}' does not exist on type '{1}'."},Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:{code:2340,category:e.DiagnosticCategory.Error,key:"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",message:"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:{code:2341,category:e.DiagnosticCategory.Error,key:"Property_0_is_private_and_only_accessible_within_class_1_2341",message:"Property '{0}' is private and only accessible within class '{1}'."},An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:{code:2342,category:e.DiagnosticCategory.Error,key:"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",message:"An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."},This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:{code:2343,category:e.DiagnosticCategory.Error,key:"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",message:"This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."},Type_0_does_not_satisfy_the_constraint_1:{code:2344,category:e.DiagnosticCategory.Error,key:"Type_0_does_not_satisfy_the_constraint_1_2344",message:"Type '{0}' does not satisfy the constraint '{1}'."},Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:{code:2345,category:e.DiagnosticCategory.Error,key:"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345",message:"Argument of type '{0}' is not assignable to parameter of type '{1}'."},Supplied_parameters_do_not_match_any_signature_of_call_target:{code:2346,category:e.DiagnosticCategory.Error,key:"Supplied_parameters_do_not_match_any_signature_of_call_target_2346",message:"Supplied parameters do not match any signature of call target."},Untyped_function_calls_may_not_accept_type_arguments:{code:2347,category:e.DiagnosticCategory.Error,key:"Untyped_function_calls_may_not_accept_type_arguments_2347",message:"Untyped function calls may not accept type arguments."},Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:{code:2348,category:e.DiagnosticCategory.Error,key:"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348",message:"Value of type '{0}' is not callable. Did you mean to include 'new'?"},Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:{code:2349,category:e.DiagnosticCategory.Error,key:"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349",message:"Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."},Only_a_void_function_can_be_called_with_the_new_keyword:{code:2350,category:e.DiagnosticCategory.Error,key:"Only_a_void_function_can_be_called_with_the_new_keyword_2350",message:"Only a void function can be called with the 'new' keyword."},Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:{code:2351,category:e.DiagnosticCategory.Error,key:"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",message:"Cannot use 'new' with an expression whose type lacks a call or construct signature."},Type_0_cannot_be_converted_to_type_1:{code:2352,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_converted_to_type_1_2352",message:"Type '{0}' cannot be converted to type '{1}'."},Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:{code:2353,category:e.DiagnosticCategory.Error,key:"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",message:"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:{code:2354,category:e.DiagnosticCategory.Error,key:"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354",message:"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:{code:2355,category:e.DiagnosticCategory.Error,key:"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",message:"A function whose declared type is neither 'void' nor 'any' must return a value."},An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:{code:2356,category:e.DiagnosticCategory.Error,key:"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356",message:"An arithmetic operand must be of type 'any', 'number' or an enum type."},The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:{code:2357,category:e.DiagnosticCategory.Error,key:"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",message:"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:{code:2358,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358",message:"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:{code:2359,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359",message:"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:{code:2360,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360",message:"The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."},The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:{code:2361,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361",message:"The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."},The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:{code:2362,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362",message:"The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."},The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:{code:2363,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363",message:"The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."},The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:{code:2364,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364",message:"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:{code:2365,category:e.DiagnosticCategory.Error,key:"Operator_0_cannot_be_applied_to_types_1_and_2_2365",message:"Operator '{0}' cannot be applied to types '{1}' and '{2}'."},Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:{code:2366,category:e.DiagnosticCategory.Error,key:"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366",message:"Function lacks ending return statement and return type does not include 'undefined'."},Type_parameter_name_cannot_be_0:{code:2368,category:e.DiagnosticCategory.Error,key:"Type_parameter_name_cannot_be_0_2368",message:"Type parameter name cannot be '{0}'."},A_parameter_property_is_only_allowed_in_a_constructor_implementation:{code:2369,category:e.DiagnosticCategory.Error,key:"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369",message:"A parameter property is only allowed in a constructor implementation."},A_rest_parameter_must_be_of_an_array_type:{code:2370,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_must_be_of_an_array_type_2370",message:"A rest parameter must be of an array type."},A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:{code:2371,category:e.DiagnosticCategory.Error,key:"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371",message:"A parameter initializer is only allowed in a function or constructor implementation."},Parameter_0_cannot_be_referenced_in_its_initializer:{code:2372,category:e.DiagnosticCategory.Error,key:"Parameter_0_cannot_be_referenced_in_its_initializer_2372",message:"Parameter '{0}' cannot be referenced in its initializer."},Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:{code:2373,category:e.DiagnosticCategory.Error,key:"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373",message:"Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."},Duplicate_string_index_signature:{code:2374,category:e.DiagnosticCategory.Error,key:"Duplicate_string_index_signature_2374",message:"Duplicate string index signature."},Duplicate_number_index_signature:{code:2375,category:e.DiagnosticCategory.Error,key:"Duplicate_number_index_signature_2375",message:"Duplicate number index signature."},A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:{code:2376,category:e.DiagnosticCategory.Error,key:"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376",message:"A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."},Constructors_for_derived_classes_must_contain_a_super_call:{code:2377,category:e.DiagnosticCategory.Error,key:"Constructors_for_derived_classes_must_contain_a_super_call_2377",message:"Constructors for derived classes must contain a 'super' call."},A_get_accessor_must_return_a_value:{code:2378,category:e.DiagnosticCategory.Error,key:"A_get_accessor_must_return_a_value_2378",message:"A 'get' accessor must return a value."},Getter_and_setter_accessors_do_not_agree_in_visibility:{code:2379,category:e.DiagnosticCategory.Error,key:"Getter_and_setter_accessors_do_not_agree_in_visibility_2379",message:"Getter and setter accessors do not agree in visibility."},get_and_set_accessor_must_have_the_same_type:{code:2380,category:e.DiagnosticCategory.Error,key:"get_and_set_accessor_must_have_the_same_type_2380",message:"'get' and 'set' accessor must have the same type."},A_signature_with_an_implementation_cannot_use_a_string_literal_type:{code:2381,category:e.DiagnosticCategory.Error,key:"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381",message:"A signature with an implementation cannot use a string literal type."},Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:{code:2382,category:e.DiagnosticCategory.Error,key:"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382",message:"Specialized overload signature is not assignable to any non-specialized signature."},Overload_signatures_must_all_be_exported_or_non_exported:{code:2383,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_exported_or_non_exported_2383",message:"Overload signatures must all be exported or non-exported."},Overload_signatures_must_all_be_ambient_or_non_ambient:{code:2384,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_ambient_or_non_ambient_2384",message:"Overload signatures must all be ambient or non-ambient."},Overload_signatures_must_all_be_public_private_or_protected:{code:2385,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_public_private_or_protected_2385",message:"Overload signatures must all be public, private or protected."},Overload_signatures_must_all_be_optional_or_required:{code:2386,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_optional_or_required_2386",message:"Overload signatures must all be optional or required."},Function_overload_must_be_static:{code:2387,category:e.DiagnosticCategory.Error,key:"Function_overload_must_be_static_2387",message:"Function overload must be static."},Function_overload_must_not_be_static:{code:2388,category:e.DiagnosticCategory.Error,key:"Function_overload_must_not_be_static_2388",message:"Function overload must not be static."},Function_implementation_name_must_be_0:{code:2389,category:e.DiagnosticCategory.Error,key:"Function_implementation_name_must_be_0_2389",message:"Function implementation name must be '{0}'."},Constructor_implementation_is_missing:{code:2390,category:e.DiagnosticCategory.Error,key:"Constructor_implementation_is_missing_2390",message:"Constructor implementation is missing."},Function_implementation_is_missing_or_not_immediately_following_the_declaration:{code:2391,category:e.DiagnosticCategory.Error,key:"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391",message:"Function implementation is missing or not immediately following the declaration."},Multiple_constructor_implementations_are_not_allowed:{code:2392,category:e.DiagnosticCategory.Error,key:"Multiple_constructor_implementations_are_not_allowed_2392",message:"Multiple constructor implementations are not allowed."},Duplicate_function_implementation:{code:2393,category:e.DiagnosticCategory.Error,key:"Duplicate_function_implementation_2393",message:"Duplicate function implementation."},Overload_signature_is_not_compatible_with_function_implementation:{code:2394,category:e.DiagnosticCategory.Error,key:"Overload_signature_is_not_compatible_with_function_implementation_2394",message:"Overload signature is not compatible with function implementation."},Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:{code:2395,category:e.DiagnosticCategory.Error,key:"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395",message:"Individual declarations in merged declaration '{0}' must be all exported or all local."},Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:{code:2396,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396",message:"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."},Declaration_name_conflicts_with_built_in_global_identifier_0:{code:2397,category:e.DiagnosticCategory.Error,key:"Declaration_name_conflicts_with_built_in_global_identifier_0_2397",message:"Declaration name conflicts with built-in global identifier '{0}'."},Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:{code:2399,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399",message:"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:{code:2400,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400",message:"Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."},Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:{code:2401,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401",message:"Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."},Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:{code:2402,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402",message:"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:{code:2403,category:e.DiagnosticCategory.Error,key:"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403",message:"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:{code:2404,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404",message:"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:{code:2405,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405",message:"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:{code:2406,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406",message:"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:{code:2407,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407",message:"The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."},Setters_cannot_return_a_value:{code:2408,category:e.DiagnosticCategory.Error,key:"Setters_cannot_return_a_value_2408",message:"Setters cannot return a value."},Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:{code:2409,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409",message:"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:{code:2410,category:e.DiagnosticCategory.Error,key:"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410",message:"The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."},Property_0_of_type_1_is_not_assignable_to_string_index_type_2:{code:2411,category:e.DiagnosticCategory.Error,key:"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411",message:"Property '{0}' of type '{1}' is not assignable to string index type '{2}'."},Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:{code:2412,category:e.DiagnosticCategory.Error,key:"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412",message:"Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."},Numeric_index_type_0_is_not_assignable_to_string_index_type_1:{code:2413,category:e.DiagnosticCategory.Error,key:"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413",message:"Numeric index type '{0}' is not assignable to string index type '{1}'."},Class_name_cannot_be_0:{code:2414,category:e.DiagnosticCategory.Error,key:"Class_name_cannot_be_0_2414",message:"Class name cannot be '{0}'."},Class_0_incorrectly_extends_base_class_1:{code:2415,category:e.DiagnosticCategory.Error,key:"Class_0_incorrectly_extends_base_class_1_2415",message:"Class '{0}' incorrectly extends base class '{1}'."},Class_static_side_0_incorrectly_extends_base_class_static_side_1:{code:2417,category:e.DiagnosticCategory.Error,key:"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417",message:"Class static side '{0}' incorrectly extends base class static side '{1}'."},Class_0_incorrectly_implements_interface_1:{code:2420,category:e.DiagnosticCategory.Error,key:"Class_0_incorrectly_implements_interface_1_2420",message:"Class '{0}' incorrectly implements interface '{1}'."},A_class_may_only_implement_another_class_or_interface:{code:2422,category:e.DiagnosticCategory.Error,key:"A_class_may_only_implement_another_class_or_interface_2422",message:"A class may only implement another class or interface."},Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:{code:2423,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423",message:"Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."},Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:{code:2424,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424",message:"Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."},Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:{code:2425,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425",message:"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:{code:2426,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426",message:"Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."},Interface_name_cannot_be_0:{code:2427,category:e.DiagnosticCategory.Error,key:"Interface_name_cannot_be_0_2427",message:"Interface name cannot be '{0}'."},All_declarations_of_0_must_have_identical_type_parameters:{code:2428,category:e.DiagnosticCategory.Error,key:"All_declarations_of_0_must_have_identical_type_parameters_2428",message:"All declarations of '{0}' must have identical type parameters."},Interface_0_incorrectly_extends_interface_1:{code:2430,category:e.DiagnosticCategory.Error,key:"Interface_0_incorrectly_extends_interface_1_2430",message:"Interface '{0}' incorrectly extends interface '{1}'."},Enum_name_cannot_be_0:{code:2431,category:e.DiagnosticCategory.Error,key:"Enum_name_cannot_be_0_2431",message:"Enum name cannot be '{0}'."},In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:{code:2432,category:e.DiagnosticCategory.Error,key:"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432",message:"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:{code:2433,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433",message:"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:{code:2434,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434",message:"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:{code:2435,category:e.DiagnosticCategory.Error,key:"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435",message:"Ambient modules cannot be nested in other modules or namespaces."},Ambient_module_declaration_cannot_specify_relative_module_name:{code:2436,category:e.DiagnosticCategory.Error,key:"Ambient_module_declaration_cannot_specify_relative_module_name_2436",message:"Ambient module declaration cannot specify relative module name."},Module_0_is_hidden_by_a_local_declaration_with_the_same_name:{code:2437,category:e.DiagnosticCategory.Error,key:"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437",message:"Module '{0}' is hidden by a local declaration with the same name."},Import_name_cannot_be_0:{code:2438,category:e.DiagnosticCategory.Error,key:"Import_name_cannot_be_0_2438",message:"Import name cannot be '{0}'."},Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:{code:2439,category:e.DiagnosticCategory.Error,key:"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439",message:"Import or export declaration in an ambient module declaration cannot reference module through relative module name."},Import_declaration_conflicts_with_local_declaration_of_0:{code:2440,category:e.DiagnosticCategory.Error,key:"Import_declaration_conflicts_with_local_declaration_of_0_2440",message:"Import declaration conflicts with local declaration of '{0}'."},Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:{code:2441,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441",message:"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."},Types_have_separate_declarations_of_a_private_property_0:{code:2442,category:e.DiagnosticCategory.Error,key:"Types_have_separate_declarations_of_a_private_property_0_2442",message:"Types have separate declarations of a private property '{0}'."},Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:{code:2443,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443",message:"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:{code:2444,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_in_type_1_but_public_in_type_2_2444",message:"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:{code:2445,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445",message:"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:{code:2446,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446",message:"Property '{0}' is protected and only accessible through an instance of class '{1}'."},The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:{code:2447,category:e.DiagnosticCategory.Error,key:"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447",message:"The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."},Block_scoped_variable_0_used_before_its_declaration:{code:2448,category:e.DiagnosticCategory.Error,key:"Block_scoped_variable_0_used_before_its_declaration_2448",message:"Block-scoped variable '{0}' used before its declaration."},Class_0_used_before_its_declaration:{code:2449,category:e.DiagnosticCategory.Error,key:"Class_0_used_before_its_declaration_2449",message:"Class '{0}' used before its declaration."},Enum_0_used_before_its_declaration:{code:2450,category:e.DiagnosticCategory.Error,key:"Enum_0_used_before_its_declaration_2450",message:"Enum '{0}' used before its declaration."},Cannot_redeclare_block_scoped_variable_0:{code:2451,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_block_scoped_variable_0_2451",message:"Cannot redeclare block-scoped variable '{0}'."},An_enum_member_cannot_have_a_numeric_name:{code:2452,category:e.DiagnosticCategory.Error,key:"An_enum_member_cannot_have_a_numeric_name_2452",message:"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:{code:2453,category:e.DiagnosticCategory.Error,key:"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453",message:"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:{code:2454,category:e.DiagnosticCategory.Error,key:"Variable_0_is_used_before_being_assigned_2454",message:"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:{code:2455,category:e.DiagnosticCategory.Error,key:"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455",message:"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:{code:2456,category:e.DiagnosticCategory.Error,key:"Type_alias_0_circularly_references_itself_2456",message:"Type alias '{0}' circularly references itself."},Type_alias_name_cannot_be_0:{code:2457,category:e.DiagnosticCategory.Error,key:"Type_alias_name_cannot_be_0_2457",message:"Type alias name cannot be '{0}'."},An_AMD_module_cannot_have_multiple_name_assignments:{code:2458,category:e.DiagnosticCategory.Error,key:"An_AMD_module_cannot_have_multiple_name_assignments_2458",message:"An AMD module cannot have multiple name assignments."},Type_0_has_no_property_1_and_no_string_index_signature:{code:2459,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_property_1_and_no_string_index_signature_2459",message:"Type '{0}' has no property '{1}' and no string index signature."},Type_0_has_no_property_1:{code:2460,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_property_1_2460",message:"Type '{0}' has no property '{1}'."},Type_0_is_not_an_array_type:{code:2461,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_2461",message:"Type '{0}' is not an array type."},A_rest_element_must_be_last_in_a_destructuring_pattern:{code:2462,category:e.DiagnosticCategory.Error,key:"A_rest_element_must_be_last_in_a_destructuring_pattern_2462",message:"A rest element must be last in a destructuring pattern."},A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:{code:2463,category:e.DiagnosticCategory.Error,key:"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463",message:"A binding pattern parameter cannot be optional in an implementation signature."},A_computed_property_name_must_be_of_type_string_number_symbol_or_any:{code:2464,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464",message:"A computed property name must be of type 'string', 'number', 'symbol', or 'any'."},this_cannot_be_referenced_in_a_computed_property_name:{code:2465,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_computed_property_name_2465",message:"'this' cannot be referenced in a computed property name."},super_cannot_be_referenced_in_a_computed_property_name:{code:2466,category:e.DiagnosticCategory.Error,key:"super_cannot_be_referenced_in_a_computed_property_name_2466",message:"'super' cannot be referenced in a computed property name."},A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:{code:2467,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467",message:"A computed property name cannot reference a type parameter from its containing type."},Cannot_find_global_value_0:{code:2468,category:e.DiagnosticCategory.Error,key:"Cannot_find_global_value_0_2468",message:"Cannot find global value '{0}'."},The_0_operator_cannot_be_applied_to_type_symbol:{code:2469,category:e.DiagnosticCategory.Error,key:"The_0_operator_cannot_be_applied_to_type_symbol_2469",message:"The '{0}' operator cannot be applied to type 'symbol'."},Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:{code:2470,category:e.DiagnosticCategory.Error,key:"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470",message:"'Symbol' reference does not refer to the global Symbol constructor object."},A_computed_property_name_of_the_form_0_must_be_of_type_symbol:{code:2471,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471",message:"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:{code:2472,category:e.DiagnosticCategory.Error,key:"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472",message:"Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."},Enum_declarations_must_all_be_const_or_non_const:{code:2473,category:e.DiagnosticCategory.Error,key:"Enum_declarations_must_all_be_const_or_non_const_2473",message:"Enum declarations must all be const or non-const."},In_const_enum_declarations_member_initializer_must_be_constant_expression:{code:2474,category:e.DiagnosticCategory.Error,key:"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474",message:"In 'const' enum declarations member initializer must be constant expression."},const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment:{code:2475,category:e.DiagnosticCategory.Error,key:"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475",message:"'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment."},A_const_enum_member_can_only_be_accessed_using_a_string_literal:{code:2476,category:e.DiagnosticCategory.Error,key:"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476",message:"A const enum member can only be accessed using a string literal."},const_enum_member_initializer_was_evaluated_to_a_non_finite_value:{code:2477,category:e.DiagnosticCategory.Error,key:"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477",message:"'const' enum member initializer was evaluated to a non-finite value."},const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:{code:2478,category:e.DiagnosticCategory.Error,key:"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478",message:"'const' enum member initializer was evaluated to disallowed value 'NaN'."},Property_0_does_not_exist_on_const_enum_1:{code:2479,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_const_enum_1_2479",message:"Property '{0}' does not exist on 'const' enum '{1}'."},let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:{code:2480,category:e.DiagnosticCategory.Error,key:"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480",message:"'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:{code:2481,category:e.DiagnosticCategory.Error,key:"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481",message:"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:{code:2483,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483",message:"The left-hand side of a 'for...of' statement cannot use a type annotation."},Export_declaration_conflicts_with_exported_declaration_of_0:{code:2484,category:e.DiagnosticCategory.Error,key:"Export_declaration_conflicts_with_exported_declaration_of_0_2484",message:"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:{code:2487,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487",message:"The left-hand side of a 'for...of' statement must be a variable or a property access."},Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2488,category:e.DiagnosticCategory.Error,key:"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488",message:"Type must have a '[Symbol.iterator]()' method that returns an iterator."},An_iterator_must_have_a_next_method:{code:2489,category:e.DiagnosticCategory.Error,key:"An_iterator_must_have_a_next_method_2489",message:"An iterator must have a 'next()' method."},The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:{code:2490,category:e.DiagnosticCategory.Error,key:"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490",message:"The type returned by the 'next()' method of an iterator must have a 'value' property."},The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:{code:2491,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491",message:"The left-hand side of a 'for...in' statement cannot be a destructuring pattern."},Cannot_redeclare_identifier_0_in_catch_clause:{code:2492,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_identifier_0_in_catch_clause_2492",message:"Cannot redeclare identifier '{0}' in catch clause."},Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:{code:2493,category:e.DiagnosticCategory.Error,key:"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493",message:"Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."},Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:{code:2494,category:e.DiagnosticCategory.Error,key:"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494",message:"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:{code:2495,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_a_string_type_2495",message:"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:{code:2496,category:e.DiagnosticCategory.Error,key:"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496",message:"The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."},Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:{code:2497,category:e.DiagnosticCategory.Error,key:"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497",message:"Module '{0}' resolves to a non-module entity and cannot be imported using this construct."},Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:{code:2498,category:e.DiagnosticCategory.Error,key:"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498",message:"Module '{0}' uses 'export =' and cannot be used with 'export *'."},An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:{code:2499,category:e.DiagnosticCategory.Error,key:"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499",message:"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:{code:2500,category:e.DiagnosticCategory.Error,key:"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500",message:"A class can only implement an identifier/qualified-name with optional type arguments."},A_rest_element_cannot_contain_a_binding_pattern:{code:2501,category:e.DiagnosticCategory.Error,key:"A_rest_element_cannot_contain_a_binding_pattern_2501",message:"A rest element cannot contain a binding pattern."},_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:{code:2502,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502",message:"'{0}' is referenced directly or indirectly in its own type annotation."},Cannot_find_namespace_0:{code:2503,category:e.DiagnosticCategory.Error,key:"Cannot_find_namespace_0_2503",message:"Cannot find namespace '{0}'."},Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:{code:2504,category:e.DiagnosticCategory.Error,key:"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504",message:"Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."},A_generator_cannot_have_a_void_type_annotation:{code:2505,category:e.DiagnosticCategory.Error,key:"A_generator_cannot_have_a_void_type_annotation_2505",message:"A generator cannot have a 'void' type annotation."},_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:{code:2506,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506",message:"'{0}' is referenced directly or indirectly in its own base expression."},Type_0_is_not_a_constructor_function_type:{code:2507,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_a_constructor_function_type_2507",message:"Type '{0}' is not a constructor function type."},No_base_constructor_has_the_specified_number_of_type_arguments:{code:2508,category:e.DiagnosticCategory.Error,key:"No_base_constructor_has_the_specified_number_of_type_arguments_2508",message:"No base constructor has the specified number of type arguments."},Base_constructor_return_type_0_is_not_a_class_or_interface_type:{code:2509,category:e.DiagnosticCategory.Error,key:"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509",message:"Base constructor return type '{0}' is not a class or interface type."},Base_constructors_must_all_have_the_same_return_type:{code:2510,category:e.DiagnosticCategory.Error,key:"Base_constructors_must_all_have_the_same_return_type_2510",message:"Base constructors must all have the same return type."},Cannot_create_an_instance_of_the_abstract_class_0:{code:2511,category:e.DiagnosticCategory.Error,key:"Cannot_create_an_instance_of_the_abstract_class_0_2511",message:"Cannot create an instance of the abstract class '{0}'."},Overload_signatures_must_all_be_abstract_or_non_abstract:{code:2512,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_abstract_or_non_abstract_2512",message:"Overload signatures must all be abstract or non-abstract."},Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:{code:2513,category:e.DiagnosticCategory.Error,key:"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513",message:"Abstract method '{0}' in class '{1}' cannot be accessed via super expression."},Classes_containing_abstract_methods_must_be_marked_abstract:{code:2514,category:e.DiagnosticCategory.Error,key:"Classes_containing_abstract_methods_must_be_marked_abstract_2514",message:"Classes containing abstract methods must be marked abstract."},Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:{code:2515,category:e.DiagnosticCategory.Error,key:"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515",message:"Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."},All_declarations_of_an_abstract_method_must_be_consecutive:{code:2516,category:e.DiagnosticCategory.Error,key:"All_declarations_of_an_abstract_method_must_be_consecutive_2516",message:"All declarations of an abstract method must be consecutive."},Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:{code:2517,category:e.DiagnosticCategory.Error,key:"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517",message:"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:{code:2518,category:e.DiagnosticCategory.Error,key:"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518",message:"A 'this'-based type guard is not compatible with a parameter-based type guard."},An_async_iterator_must_have_a_next_method:{code:2519,category:e.DiagnosticCategory.Error,key:"An_async_iterator_must_have_a_next_method_2519",message:"An async iterator must have a 'next()' method."},Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:{code:2520,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520",message:"Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."},Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:{code:2521,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521",message:"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:{code:2522,category:e.DiagnosticCategory.Error,key:"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522",message:"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:{code:2523,category:e.DiagnosticCategory.Error,key:"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523",message:"'yield' expressions cannot be used in a parameter initializer."},await_expressions_cannot_be_used_in_a_parameter_initializer:{code:2524,category:e.DiagnosticCategory.Error,key:"await_expressions_cannot_be_used_in_a_parameter_initializer_2524",message:"'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:{code:2525,category:e.DiagnosticCategory.Error,key:"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525",message:"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:{code:2526,category:e.DiagnosticCategory.Error,key:"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526",message:"A 'this' type is available only in a non-static member of a class or interface."},The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary:{code:2527,category:e.DiagnosticCategory.Error,key:"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527",message:"The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary."},A_module_cannot_have_multiple_default_exports:{code:2528,category:e.DiagnosticCategory.Error,key:"A_module_cannot_have_multiple_default_exports_2528",message:"A module cannot have multiple default exports."},Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:{code:2529,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529",message:"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."},Property_0_is_incompatible_with_index_signature:{code:2530,category:e.DiagnosticCategory.Error,key:"Property_0_is_incompatible_with_index_signature_2530",message:"Property '{0}' is incompatible with index signature."},Object_is_possibly_null:{code:2531,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_null_2531",message:"Object is possibly 'null'."},Object_is_possibly_undefined:{code:2532,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_undefined_2532",message:"Object is possibly 'undefined'."},Object_is_possibly_null_or_undefined:{code:2533,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_null_or_undefined_2533",message:"Object is possibly 'null' or 'undefined'."},A_function_returning_never_cannot_have_a_reachable_end_point:{code:2534,category:e.DiagnosticCategory.Error,key:"A_function_returning_never_cannot_have_a_reachable_end_point_2534",message:"A function returning 'never' cannot have a reachable end point."},Enum_type_0_has_members_with_initializers_that_are_not_literals:{code:2535,category:e.DiagnosticCategory.Error,key:"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535",message:"Enum type '{0}' has members with initializers that are not literals."},Type_0_cannot_be_used_to_index_type_1:{code:2536,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_used_to_index_type_1_2536",message:"Type '{0}' cannot be used to index type '{1}'."},Type_0_has_no_matching_index_signature_for_type_1:{code:2537,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_matching_index_signature_for_type_1_2537",message:"Type '{0}' has no matching index signature for type '{1}'."},Type_0_cannot_be_used_as_an_index_type:{code:2538,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_used_as_an_index_type_2538",message:"Type '{0}' cannot be used as an index type."},Cannot_assign_to_0_because_it_is_not_a_variable:{code:2539,category:e.DiagnosticCategory.Error,key:"Cannot_assign_to_0_because_it_is_not_a_variable_2539",message:"Cannot assign to '{0}' because it is not a variable."},Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:{code:2540,category:e.DiagnosticCategory.Error,key:"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540",message:"Cannot assign to '{0}' because it is a constant or a read-only property."},The_target_of_an_assignment_must_be_a_variable_or_a_property_access:{code:2541,category:e.DiagnosticCategory.Error,key:"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541",message:"The target of an assignment must be a variable or a property access."},Index_signature_in_type_0_only_permits_reading:{code:2542,category:e.DiagnosticCategory.Error,key:"Index_signature_in_type_0_only_permits_reading_2542",message:"Index signature in type '{0}' only permits reading."},Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:{code:2543,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543",message:"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:{code:2544,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544",message:"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:{code:2545,category:e.DiagnosticCategory.Error,key:"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545",message:"A mixin class must have a constructor with a single rest parameter of type 'any[]'."},Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:{code:2546,category:e.DiagnosticCategory.Error,key:"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546",message:"Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."},The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:{code:2547,category:e.DiagnosticCategory.Error,key:"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547",message:"The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."},Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:{code:2548,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548",message:"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:{code:2549,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549",message:"Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."},Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:{code:2550,category:e.DiagnosticCategory.Error,key:"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550",message:"Generic type instantiation is excessively deep and possibly infinite."},JSX_element_attributes_type_0_may_not_be_a_union_type:{code:2600,category:e.DiagnosticCategory.Error,key:"JSX_element_attributes_type_0_may_not_be_a_union_type_2600",message:"JSX element attributes type '{0}' may not be a union type."},The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:{code:2601,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601",message:"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:{code:2602,category:e.DiagnosticCategory.Error,key:"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602",message:"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:{code:2603,category:e.DiagnosticCategory.Error,key:"Property_0_in_type_1_is_not_assignable_to_type_2_2603",message:"Property '{0}' in type '{1}' is not assignable to type '{2}'."},JSX_element_type_0_does_not_have_any_construct_or_call_signatures:{code:2604,category:e.DiagnosticCategory.Error,key:"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604",message:"JSX element type '{0}' does not have any construct or call signatures."},JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:{code:2605,category:e.DiagnosticCategory.Error,key:"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605",message:"JSX element type '{0}' is not a constructor function for JSX elements."},Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:{code:2606,category:e.DiagnosticCategory.Error,key:"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606",message:"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:{code:2607,category:e.DiagnosticCategory.Error,key:"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607",message:"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:{code:2608,category:e.DiagnosticCategory.Error,key:"The_global_type_JSX_0_may_not_have_more_than_one_property_2608",message:"The global type 'JSX.{0}' may not have more than one property."},JSX_spread_child_must_be_an_array_type:{code:2609,category:e.DiagnosticCategory.Error,key:"JSX_spread_child_must_be_an_array_type_2609",message:"JSX spread child must be an array type."},Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:{code:2649,category:e.DiagnosticCategory.Error,key:"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649",message:"Cannot augment module '{0}' with value exports because it resolves to a non-module entity."},Cannot_emit_namespaced_JSX_elements_in_React:{code:2650,category:e.DiagnosticCategory.Error,key:"Cannot_emit_namespaced_JSX_elements_in_React_2650",message:"Cannot emit namespaced JSX elements in React."},A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:{code:2651,category:e.DiagnosticCategory.Error,key:"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651",message:"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:{code:2652,category:e.DiagnosticCategory.Error,key:"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652",message:"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:{code:2653,category:e.DiagnosticCategory.Error,key:"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653",message:"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:{code:2654,category:e.DiagnosticCategory.Error,key:"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654",message:"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:{code:2656,category:e.DiagnosticCategory.Error,key:"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656",message:"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:{code:2657,category:e.DiagnosticCategory.Error,key:"JSX_expressions_must_have_one_parent_element_2657",message:"JSX expressions must have one parent element."},Type_0_provides_no_match_for_the_signature_1:{code:2658,category:e.DiagnosticCategory.Error,key:"Type_0_provides_no_match_for_the_signature_1_2658",message:"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:{code:2659,category:e.DiagnosticCategory.Error,key:"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659",message:"'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:{code:2660,category:e.DiagnosticCategory.Error,key:"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660",message:"'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:{code:2661,category:e.DiagnosticCategory.Error,key:"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661",message:"Cannot export '{0}'. Only local declarations can be exported from a module."},Cannot_find_name_0_Did_you_mean_the_static_member_1_0:{code:2662,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662",message:"Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"},Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:{code:2663,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663",message:"Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"},Invalid_module_name_in_augmentation_module_0_cannot_be_found:{code:2664,category:e.DiagnosticCategory.Error,key:"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664",message:"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:{code:2665,category:e.DiagnosticCategory.Error,key:"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665",message:"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:{code:2666,category:e.DiagnosticCategory.Error,key:"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666",message:"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:{code:2667,category:e.DiagnosticCategory.Error,key:"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667",message:"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:{code:2668,category:e.DiagnosticCategory.Error,key:"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668",message:"'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:{code:2669,category:e.DiagnosticCategory.Error,key:"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669",message:"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:{code:2670,category:e.DiagnosticCategory.Error,key:"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670",message:"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:{code:2671,category:e.DiagnosticCategory.Error,key:"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671",message:"Cannot augment module '{0}' because it resolves to a non-module entity."},Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:{code:2672,category:e.DiagnosticCategory.Error,key:"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672",message:"Cannot assign a '{0}' constructor type to a '{1}' constructor type."},Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:{code:2673,category:e.DiagnosticCategory.Error,key:"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673",message:"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:{code:2674,category:e.DiagnosticCategory.Error,key:"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674",message:"Constructor of class '{0}' is protected and only accessible within the class declaration."},Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:{code:2675,category:e.DiagnosticCategory.Error,key:"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675",message:"Cannot extend a class '{0}'. Class constructor is marked as private."},Accessors_must_both_be_abstract_or_non_abstract:{code:2676,category:e.DiagnosticCategory.Error,key:"Accessors_must_both_be_abstract_or_non_abstract_2676",message:"Accessors must both be abstract or non-abstract."},A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:{code:2677,category:e.DiagnosticCategory.Error,key:"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677",message:"A type predicate's type must be assignable to its parameter's type."},Type_0_is_not_comparable_to_type_1:{code:2678,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_comparable_to_type_1_2678",message:"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:{code:2679,category:e.DiagnosticCategory.Error,key:"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679",message:"A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."},A_this_parameter_must_be_the_first_parameter:{code:2680,category:e.DiagnosticCategory.Error,key:"A_this_parameter_must_be_the_first_parameter_2680",message:"A 'this' parameter must be the first parameter."},A_constructor_cannot_have_a_this_parameter:{code:2681,category:e.DiagnosticCategory.Error,key:"A_constructor_cannot_have_a_this_parameter_2681",message:"A constructor cannot have a 'this' parameter."},get_and_set_accessor_must_have_the_same_this_type:{code:2682,category:e.DiagnosticCategory.Error,key:"get_and_set_accessor_must_have_the_same_this_type_2682",message:"'get' and 'set' accessor must have the same 'this' type."},this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:{code:2683,category:e.DiagnosticCategory.Error,key:"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683",message:"'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:{code:2684,category:e.DiagnosticCategory.Error,key:"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684",message:"The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."},The_this_types_of_each_signature_are_incompatible:{code:2685,category:e.DiagnosticCategory.Error,key:"The_this_types_of_each_signature_are_incompatible_2685",message:"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:{code:2686,category:e.DiagnosticCategory.Error,key:"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686",message:"'{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:{code:2687,category:e.DiagnosticCategory.Error,key:"All_declarations_of_0_must_have_identical_modifiers_2687",message:"All declarations of '{0}' must have identical modifiers."},Cannot_find_type_definition_file_for_0:{code:2688,category:e.DiagnosticCategory.Error,key:"Cannot_find_type_definition_file_for_0_2688",message:"Cannot find type definition file for '{0}'."},Cannot_extend_an_interface_0_Did_you_mean_implements:{code:2689,category:e.DiagnosticCategory.Error,key:"Cannot_extend_an_interface_0_Did_you_mean_implements_2689",message:"Cannot extend an interface '{0}'. Did you mean 'implements'?"},An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:{code:2691,category:e.DiagnosticCategory.Error,key:"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691",message:"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:{code:2692,category:e.DiagnosticCategory.Error,key:"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692",message:"'{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:{code:2693,category:e.DiagnosticCategory.Error,key:"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693",message:"'{0}' only refers to a type, but is being used as a value here."},Namespace_0_has_no_exported_member_1:{code:2694,category:e.DiagnosticCategory.Error,key:"Namespace_0_has_no_exported_member_1_2694",message:"Namespace '{0}' has no exported member '{1}'."},Left_side_of_comma_operator_is_unused_and_has_no_side_effects:{code:2695,category:e.DiagnosticCategory.Error,key:"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695",message:"Left side of comma operator is unused and has no side effects."},The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:{code:2696,category:e.DiagnosticCategory.Error,key:"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696",message:"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:{code:2697,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697",message:"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:{code:2698,category:e.DiagnosticCategory.Error,key:"Spread_types_may_only_be_created_from_object_types_2698",message:"Spread types may only be created from object types."},Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:{code:2699,category:e.DiagnosticCategory.Error,key:"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699",message:"Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."},Rest_types_may_only_be_created_from_object_types:{code:2700,category:e.DiagnosticCategory.Error,key:"Rest_types_may_only_be_created_from_object_types_2700",message:"Rest types may only be created from object types."},The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:{code:2701,category:e.DiagnosticCategory.Error,key:"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701",message:"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:{code:2702,category:e.DiagnosticCategory.Error,key:"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702",message:"'{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:{code:2703,category:e.DiagnosticCategory.Error,key:"The_operand_of_a_delete_operator_must_be_a_property_reference_2703",message:"The operand of a delete operator must be a property reference."},The_operand_of_a_delete_operator_cannot_be_a_read_only_property:{code:2704,category:e.DiagnosticCategory.Error,key:"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704",message:"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:{code:2705,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705",message:"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:{code:2706,category:e.DiagnosticCategory.Error,key:"Required_type_parameters_may_not_follow_optional_type_parameters_2706",message:"Required type parameters may not follow optional type parameters."},Generic_type_0_requires_between_1_and_2_type_arguments:{code:2707,category:e.DiagnosticCategory.Error,key:"Generic_type_0_requires_between_1_and_2_type_arguments_2707",message:"Generic type '{0}' requires between {1} and {2} type arguments."},Cannot_use_namespace_0_as_a_value:{code:2708,category:e.DiagnosticCategory.Error,key:"Cannot_use_namespace_0_as_a_value_2708",message:"Cannot use namespace '{0}' as a value."},Cannot_use_namespace_0_as_a_type:{code:2709,category:e.DiagnosticCategory.Error,key:"Cannot_use_namespace_0_as_a_type_2709",message:"Cannot use namespace '{0}' as a type."},_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:{code:2710,category:e.DiagnosticCategory.Error,key:"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710",message:"'{0}' are specified twice. The attribute named '{0}' will be overwritten."},Import_declaration_0_is_using_private_name_1:{code:4e3,category:e.DiagnosticCategory.Error,key:"Import_declaration_0_is_using_private_name_1_4000",message:"Import declaration '{0}' is using private name '{1}'."},Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:{code:4002,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002",message:"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:{code:4004,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004",message:"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:{code:4006,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006",message:"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:{code:4008,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008",message:"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:{code:4010,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010",message:"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:{code:4012,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012",message:"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:{code:4014,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014",message:"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:{code:4016,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016",message:"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:{code:4019,category:e.DiagnosticCategory.Error,key:"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019",message:"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:{code:4020,category:e.DiagnosticCategory.Error,key:"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020",message:"'extends' clause of exported class '{0}' has or is using private name '{1}'."},extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:{code:4022,category:e.DiagnosticCategory.Error,key:"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022",message:"'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:{code:4023,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023",message:"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:{code:4024,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024",message:"Exported variable '{0}' has or is using name '{1}' from private module '{2}'."},Exported_variable_0_has_or_is_using_private_name_1:{code:4025,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_private_name_1_4025",message:"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:{code:4026,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026",message:"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:{code:4027,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027",message:"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:{code:4028,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028",message:"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:{code:4029,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029",message:"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:{code:4030,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030",message:"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:{code:4031,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031",message:"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:{code:4032,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032",message:"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:{code:4033,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033",message:"Property '{0}' of exported interface has or is using private name '{1}'."},Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4034,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034",message:"Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:{code:4035,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035",message:"Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'."},Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:{code:4036,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036",message:"Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'."},Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1:{code:4037,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037",message:"Parameter '{0}' of public property setter from exported class has or is using private name '{1}'."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4038,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038",message:"Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4039,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039",message:"Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:{code:4040,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040",message:"Return type of public static property getter from exported class has or is using private name '{0}'."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:{code:4041,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041",message:"Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:{code:4042,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042",message:"Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'."},Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0:{code:4043,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043",message:"Return type of public property getter from exported class has or is using private name '{0}'."},Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:{code:4044,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044",message:"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:{code:4045,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045",message:"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:{code:4046,category:e.DiagnosticCategory.Error,key:"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046",message:"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:{code:4047,category:e.DiagnosticCategory.Error,key:"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047",message:"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:{code:4048,category:e.DiagnosticCategory.Error,key:"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048",message:"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:{code:4049,category:e.DiagnosticCategory.Error,key:"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049",message:"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:{code:4050,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050",message:"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:{code:4051,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051",message:"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:{code:4052,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052",message:"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:{code:4053,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053",message:"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:{code:4054,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054",message:"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:{code:4055,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055",message:"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:{code:4056,category:e.DiagnosticCategory.Error,key:"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056",message:"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:{code:4057,category:e.DiagnosticCategory.Error,key:"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057",message:"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:{code:4058,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058",message:"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:{code:4059,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059",message:"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:{code:4060,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_private_name_0_4060",message:"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:{code:4061,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061",message:"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:{code:4062,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062",message:"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:{code:4063,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063",message:"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:{code:4064,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064",message:"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:{code:4065,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065",message:"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:{code:4066,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066",message:"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:{code:4067,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067",message:"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:{code:4068,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068",message:"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:{code:4069,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069",message:"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:{code:4070,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070",message:"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:{code:4071,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071",message:"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:{code:4072,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072",message:"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:{code:4073,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073",message:"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:{code:4074,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074",message:"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:{code:4075,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075",message:"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:{code:4076,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076",message:"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:{code:4077,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077",message:"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:{code:4078,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078",message:"Parameter '{0}' of exported function has or is using private name '{1}'."},Exported_type_alias_0_has_or_is_using_private_name_1:{code:4081,category:e.DiagnosticCategory.Error,key:"Exported_type_alias_0_has_or_is_using_private_name_1_4081",message:"Exported type alias '{0}' has or is using private name '{1}'."},Default_export_of_the_module_has_or_is_using_private_name_0:{code:4082,category:e.DiagnosticCategory.Error,key:"Default_export_of_the_module_has_or_is_using_private_name_0_4082",message:"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:{code:4083,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083",message:"Type parameter '{0}' of exported type alias has or is using private name '{1}'."},Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:{code:4090,category:e.DiagnosticCategory.Message,key:"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",message:"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:{code:4091,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",message:"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:{code:4092,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",message:"Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."},extends_clause_of_exported_class_0_refers_to_a_type_whose_name_cannot_be_referenced:{code:4093,category:e.DiagnosticCategory.Error,key:"extends_clause_of_exported_class_0_refers_to_a_type_whose_name_cannot_be_referenced_4093",message:"'extends' clause of exported class '{0}' refers to a type whose name cannot be referenced."},The_current_host_does_not_support_the_0_option:{code:5001,category:e.DiagnosticCategory.Error,key:"The_current_host_does_not_support_the_0_option_5001",message:"The current host does not support the '{0}' option."},Cannot_find_the_common_subdirectory_path_for_the_input_files:{code:5009,category:e.DiagnosticCategory.Error,key:"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009",message:"Cannot find the common subdirectory path for the input files."},File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:{code:5010,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",message:"File specification cannot end in a recursive directory wildcard ('**'): '{0}'."},File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:{code:5011,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011",message:"File specification cannot contain multiple recursive directory wildcards ('**'): '{0}'."},Cannot_read_file_0_Colon_1:{code:5012,category:e.DiagnosticCategory.Error,key:"Cannot_read_file_0_Colon_1_5012",message:"Cannot read file '{0}': {1}."},Failed_to_parse_file_0_Colon_1:{code:5014,category:e.DiagnosticCategory.Error,key:"Failed_to_parse_file_0_Colon_1_5014",message:"Failed to parse file '{0}': {1}."},Unknown_compiler_option_0:{code:5023,category:e.DiagnosticCategory.Error,key:"Unknown_compiler_option_0_5023",message:"Unknown compiler option '{0}'."},Compiler_option_0_requires_a_value_of_type_1:{code:5024,category:e.DiagnosticCategory.Error,key:"Compiler_option_0_requires_a_value_of_type_1_5024",message:"Compiler option '{0}' requires a value of type {1}."},Could_not_write_file_0_Colon_1:{code:5033,category:e.DiagnosticCategory.Error,key:"Could_not_write_file_0_Colon_1_5033",message:"Could not write file '{0}': {1}."},Option_project_cannot_be_mixed_with_source_files_on_a_command_line:{code:5042,category:e.DiagnosticCategory.Error,key:"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042",message:"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:{code:5047,category:e.DiagnosticCategory.Error,key:"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047",message:"Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."},Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:{code:5051,category:e.DiagnosticCategory.Error,key:"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051",message:"Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."},Option_0_cannot_be_specified_without_specifying_option_1:{code:5052,category:e.DiagnosticCategory.Error,key:"Option_0_cannot_be_specified_without_specifying_option_1_5052",message:"Option '{0}' cannot be specified without specifying option '{1}'."},Option_0_cannot_be_specified_with_option_1:{code:5053,category:e.DiagnosticCategory.Error,key:"Option_0_cannot_be_specified_with_option_1_5053",message:"Option '{0}' cannot be specified with option '{1}'."},A_tsconfig_json_file_is_already_defined_at_Colon_0:{code:5054,category:e.DiagnosticCategory.Error,key:"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054",message:"A 'tsconfig.json' file is already defined at: '{0}'."},Cannot_write_file_0_because_it_would_overwrite_input_file:{code:5055,category:e.DiagnosticCategory.Error,key:"Cannot_write_file_0_because_it_would_overwrite_input_file_5055",message:"Cannot write file '{0}' because it would overwrite input file."},Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:{code:5056,category:e.DiagnosticCategory.Error,key:"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056",message:"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:{code:5057,category:e.DiagnosticCategory.Error,key:"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057",message:"Cannot find a tsconfig.json file at the specified directory: '{0}'."},The_specified_path_does_not_exist_Colon_0:{code:5058,category:e.DiagnosticCategory.Error,key:"The_specified_path_does_not_exist_Colon_0_5058",message:"The specified path does not exist: '{0}'."},Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:{code:5059,category:e.DiagnosticCategory.Error,key:"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059",message:"Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."},Option_paths_cannot_be_used_without_specifying_baseUrl_option:{code:5060,category:e.DiagnosticCategory.Error,key:"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060",message:"Option 'paths' cannot be used without specifying '--baseUrl' option."},Pattern_0_can_have_at_most_one_Asterisk_character:{code:5061,category:e.DiagnosticCategory.Error,key:"Pattern_0_can_have_at_most_one_Asterisk_character_5061",message:"Pattern '{0}' can have at most one '*' character."},Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:{code:5062,category:e.DiagnosticCategory.Error,key:"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062",message:"Substitution '{0}' in pattern '{1}' in can have at most one '*' character."},Substitutions_for_pattern_0_should_be_an_array:{code:5063,category:e.DiagnosticCategory.Error,key:"Substitutions_for_pattern_0_should_be_an_array_5063",message:"Substitutions for pattern '{0}' should be an array."},Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:{code:5064,category:e.DiagnosticCategory.Error,key:"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064",message:"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:{code:5065,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065",message:"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:{code:5066,category:e.DiagnosticCategory.Error,key:"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066",message:"Substitutions for pattern '{0}' shouldn't be an empty array."},Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:{code:5067,category:e.DiagnosticCategory.Error,key:"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067",message:"Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."},Concatenate_and_emit_output_to_single_file:{code:6001,category:e.DiagnosticCategory.Message,key:"Concatenate_and_emit_output_to_single_file_6001",message:"Concatenate and emit output to single file."},Generates_corresponding_d_ts_file:{code:6002,category:e.DiagnosticCategory.Message,key:"Generates_corresponding_d_ts_file_6002",message:"Generates corresponding '.d.ts' file."},Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:{code:6003,category:e.DiagnosticCategory.Message,key:"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003",message:"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:{code:6004,category:e.DiagnosticCategory.Message,key:"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004",message:"Specify the location where debugger should locate TypeScript files instead of source locations."},Watch_input_files:{code:6005,category:e.DiagnosticCategory.Message,key:"Watch_input_files_6005",message:"Watch input files."},Redirect_output_structure_to_the_directory:{code:6006,category:e.DiagnosticCategory.Message,key:"Redirect_output_structure_to_the_directory_6006",message:"Redirect output structure to the directory."},Do_not_erase_const_enum_declarations_in_generated_code:{code:6007,category:e.DiagnosticCategory.Message,key:"Do_not_erase_const_enum_declarations_in_generated_code_6007",message:"Do not erase const enum declarations in generated code."},Do_not_emit_outputs_if_any_errors_were_reported:{code:6008,category:e.DiagnosticCategory.Message,key:"Do_not_emit_outputs_if_any_errors_were_reported_6008",message:"Do not emit outputs if any errors were reported."},Do_not_emit_comments_to_output:{code:6009,category:e.DiagnosticCategory.Message,key:"Do_not_emit_comments_to_output_6009",message:"Do not emit comments to output."},Do_not_emit_outputs:{code:6010,category:e.DiagnosticCategory.Message,key:"Do_not_emit_outputs_6010",message:"Do not emit outputs."},Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:{code:6011,category:e.DiagnosticCategory.Message,key:"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",message:"Allow default imports from modules with no default export. This does not affect code emit, just typechecking."},Skip_type_checking_of_declaration_files:{code:6012,category:e.DiagnosticCategory.Message,key:"Skip_type_checking_of_declaration_files_6012",message:"Skip type checking of declaration files."},Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:{code:6015,category:e.DiagnosticCategory.Message,key:"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",message:"Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'."},Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015:{code:6016,category:e.DiagnosticCategory.Message,key:"Specify_module_code_generation_Colon_commonjs_amd_system_umd_or_es2015_6016",message:"Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'."},Print_this_message:{code:6017,category:e.DiagnosticCategory.Message,key:"Print_this_message_6017",message:"Print this message."},Print_the_compiler_s_version:{code:6019,category:e.DiagnosticCategory.Message,key:"Print_the_compiler_s_version_6019",message:"Print the compiler's version."},Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:{code:6020,category:e.DiagnosticCategory.Message,key:"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020",message:"Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."},Syntax_Colon_0:{code:6023,category:e.DiagnosticCategory.Message,key:"Syntax_Colon_0_6023",message:"Syntax: {0}"},options:{code:6024,category:e.DiagnosticCategory.Message,key:"options_6024",message:"options"},file:{code:6025,category:e.DiagnosticCategory.Message,key:"file_6025",message:"file"},Examples_Colon_0:{code:6026,category:e.DiagnosticCategory.Message,key:"Examples_Colon_0_6026",message:"Examples: {0}"},Options_Colon:{code:6027,category:e.DiagnosticCategory.Message,key:"Options_Colon_6027",message:"Options:"},Version_0:{code:6029,category:e.DiagnosticCategory.Message,key:"Version_0_6029",message:"Version {0}"},Insert_command_line_options_and_files_from_a_file:{code:6030,category:e.DiagnosticCategory.Message,key:"Insert_command_line_options_and_files_from_a_file_6030",message:"Insert command line options and files from a file."},File_change_detected_Starting_incremental_compilation:{code:6032,category:e.DiagnosticCategory.Message,key:"File_change_detected_Starting_incremental_compilation_6032",message:"File change detected. Starting incremental compilation..."},KIND:{code:6034,category:e.DiagnosticCategory.Message,key:"KIND_6034",message:"KIND"},FILE:{code:6035,category:e.DiagnosticCategory.Message,key:"FILE_6035",message:"FILE"},VERSION:{code:6036,category:e.DiagnosticCategory.Message,key:"VERSION_6036",message:"VERSION"},LOCATION:{code:6037,category:e.DiagnosticCategory.Message,key:"LOCATION_6037",message:"LOCATION"},DIRECTORY:{code:6038,category:e.DiagnosticCategory.Message,key:"DIRECTORY_6038",message:"DIRECTORY"},STRATEGY:{code:6039,category:e.DiagnosticCategory.Message,key:"STRATEGY_6039",message:"STRATEGY"},FILE_OR_DIRECTORY:{code:6040,category:e.DiagnosticCategory.Message,key:"FILE_OR_DIRECTORY_6040",message:"FILE OR DIRECTORY"},Compilation_complete_Watching_for_file_changes:{code:6042,category:e.DiagnosticCategory.Message,key:"Compilation_complete_Watching_for_file_changes_6042",message:"Compilation complete. Watching for file changes."},Generates_corresponding_map_file:{code:6043,category:e.DiagnosticCategory.Message,key:"Generates_corresponding_map_file_6043",message:"Generates corresponding '.map' file."},Compiler_option_0_expects_an_argument:{code:6044,category:e.DiagnosticCategory.Error,key:"Compiler_option_0_expects_an_argument_6044",message:"Compiler option '{0}' expects an argument."},Unterminated_quoted_string_in_response_file_0:{code:6045,category:e.DiagnosticCategory.Error,key:"Unterminated_quoted_string_in_response_file_0_6045",message:"Unterminated quoted string in response file '{0}'."},Argument_for_0_option_must_be_Colon_1:{code:6046,category:e.DiagnosticCategory.Error,key:"Argument_for_0_option_must_be_Colon_1_6046",message:"Argument for '{0}' option must be: {1}."},Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:{code:6048,category:e.DiagnosticCategory.Error,key:"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048",message:"Locale must be of the form  or -. For example '{0}' or '{1}'."},Unsupported_locale_0:{code:6049,category:e.DiagnosticCategory.Error,key:"Unsupported_locale_0_6049",message:"Unsupported locale '{0}'."},Unable_to_open_file_0:{code:6050,category:e.DiagnosticCategory.Error,key:"Unable_to_open_file_0_6050",message:"Unable to open file '{0}'."},Corrupted_locale_file_0:{code:6051,category:e.DiagnosticCategory.Error,key:"Corrupted_locale_file_0_6051",message:"Corrupted locale file {0}."},Raise_error_on_expressions_and_declarations_with_an_implied_any_type:{code:6052,category:e.DiagnosticCategory.Message,key:"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052",message:"Raise error on expressions and declarations with an implied 'any' type."},File_0_not_found:{code:6053,category:e.DiagnosticCategory.Error,key:"File_0_not_found_6053",message:"File '{0}' not found."},File_0_has_unsupported_extension_The_only_supported_extensions_are_1:{code:6054,category:e.DiagnosticCategory.Error,key:"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054",message:"File '{0}' has unsupported extension. The only supported extensions are {1}."},Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:{code:6055,category:e.DiagnosticCategory.Message,key:"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055",message:"Suppress noImplicitAny errors for indexing objects lacking index signatures."},Do_not_emit_declarations_for_code_that_has_an_internal_annotation:{code:6056,category:e.DiagnosticCategory.Message,key:"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056",message:"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:{code:6058,category:e.DiagnosticCategory.Message,key:"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058",message:"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:{code:6059,category:e.DiagnosticCategory.Error,key:"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059",message:"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:{code:6060,category:e.DiagnosticCategory.Message,key:"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060",message:"Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."},NEWLINE:{code:6061,category:e.DiagnosticCategory.Message,key:"NEWLINE_6061",message:"NEWLINE"},Option_0_can_only_be_specified_in_tsconfig_json_file:{code:6064,category:e.DiagnosticCategory.Error,key:"Option_0_can_only_be_specified_in_tsconfig_json_file_6064",message:"Option '{0}' can only be specified in 'tsconfig.json' file."},Enables_experimental_support_for_ES7_decorators:{code:6065,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_ES7_decorators_6065",message:"Enables experimental support for ES7 decorators."},Enables_experimental_support_for_emitting_type_metadata_for_decorators:{code:6066,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066",message:"Enables experimental support for emitting type metadata for decorators."},Enables_experimental_support_for_ES7_async_functions:{code:6068,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_ES7_async_functions_6068",message:"Enables experimental support for ES7 async functions."},Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:{code:6069,category:e.DiagnosticCategory.Message,key:"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069",message:"Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."},Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:{code:6070,category:e.DiagnosticCategory.Message,key:"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070",message:"Initializes a TypeScript project and creates a tsconfig.json file."},Successfully_created_a_tsconfig_json_file:{code:6071,category:e.DiagnosticCategory.Message,key:"Successfully_created_a_tsconfig_json_file_6071",message:"Successfully created a tsconfig.json file."},Suppress_excess_property_checks_for_object_literals:{code:6072,category:e.DiagnosticCategory.Message,key:"Suppress_excess_property_checks_for_object_literals_6072",message:"Suppress excess property checks for object literals."},Stylize_errors_and_messages_using_color_and_context_experimental:{code:6073,category:e.DiagnosticCategory.Message,key:"Stylize_errors_and_messages_using_color_and_context_experimental_6073",message:"Stylize errors and messages using color and context (experimental)."},Do_not_report_errors_on_unused_labels:{code:6074,category:e.DiagnosticCategory.Message,key:"Do_not_report_errors_on_unused_labels_6074",message:"Do not report errors on unused labels."},Report_error_when_not_all_code_paths_in_function_return_a_value:{code:6075,category:e.DiagnosticCategory.Message,key:"Report_error_when_not_all_code_paths_in_function_return_a_value_6075",message:"Report error when not all code paths in function return a value."},Report_errors_for_fallthrough_cases_in_switch_statement:{code:6076,category:e.DiagnosticCategory.Message,key:"Report_errors_for_fallthrough_cases_in_switch_statement_6076",message:"Report errors for fallthrough cases in switch statement."},Do_not_report_errors_on_unreachable_code:{code:6077,category:e.DiagnosticCategory.Message,key:"Do_not_report_errors_on_unreachable_code_6077",message:"Do not report errors on unreachable code."},Disallow_inconsistently_cased_references_to_the_same_file:{code:6078,category:e.DiagnosticCategory.Message,key:"Disallow_inconsistently_cased_references_to_the_same_file_6078",message:"Disallow inconsistently-cased references to the same file."},Specify_library_files_to_be_included_in_the_compilation_Colon:{code:6079,category:e.DiagnosticCategory.Message,key:"Specify_library_files_to_be_included_in_the_compilation_Colon_6079",message:"Specify library files to be included in the compilation: "},Specify_JSX_code_generation_Colon_preserve_react_native_or_react:{code:6080,category:e.DiagnosticCategory.Message,key:"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080",message:"Specify JSX code generation: 'preserve', 'react-native', or 'react'."},File_0_has_an_unsupported_extension_so_skipping_it:{code:6081,category:e.DiagnosticCategory.Message,key:"File_0_has_an_unsupported_extension_so_skipping_it_6081",message:"File '{0}' has an unsupported extension, so skipping it."},Only_amd_and_system_modules_are_supported_alongside_0:{code:6082,category:e.DiagnosticCategory.Error,key:"Only_amd_and_system_modules_are_supported_alongside_0_6082",message:"Only 'amd' and 'system' modules are supported alongside --{0}."},Base_directory_to_resolve_non_absolute_module_names:{code:6083,category:e.DiagnosticCategory.Message,key:"Base_directory_to_resolve_non_absolute_module_names_6083",message:"Base directory to resolve non-absolute module names."},Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:{code:6084,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084",message:"[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"},Enable_tracing_of_the_name_resolution_process:{code:6085,category:e.DiagnosticCategory.Message,key:"Enable_tracing_of_the_name_resolution_process_6085",message:"Enable tracing of the name resolution process."},Resolving_module_0_from_1:{code:6086,category:e.DiagnosticCategory.Message,key:"Resolving_module_0_from_1_6086",message:"======== Resolving module '{0}' from '{1}'. ========"},Explicitly_specified_module_resolution_kind_Colon_0:{code:6087,category:e.DiagnosticCategory.Message,key:"Explicitly_specified_module_resolution_kind_Colon_0_6087",message:"Explicitly specified module resolution kind: '{0}'."},Module_resolution_kind_is_not_specified_using_0:{code:6088,category:e.DiagnosticCategory.Message,key:"Module_resolution_kind_is_not_specified_using_0_6088",message:"Module resolution kind is not specified, using '{0}'."},Module_name_0_was_successfully_resolved_to_1:{code:6089,category:e.DiagnosticCategory.Message,key:"Module_name_0_was_successfully_resolved_to_1_6089",message:"======== Module name '{0}' was successfully resolved to '{1}'. ========"},Module_name_0_was_not_resolved:{code:6090,category:e.DiagnosticCategory.Message,key:"Module_name_0_was_not_resolved_6090",message:"======== Module name '{0}' was not resolved. ========"},paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:{code:6091,category:e.DiagnosticCategory.Message,key:"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091",message:"'paths' option is specified, looking for a pattern to match module name '{0}'."},Module_name_0_matched_pattern_1:{code:6092,category:e.DiagnosticCategory.Message,key:"Module_name_0_matched_pattern_1_6092",message:"Module name '{0}', matched pattern '{1}'."},Trying_substitution_0_candidate_module_location_Colon_1:{code:6093,category:e.DiagnosticCategory.Message,key:"Trying_substitution_0_candidate_module_location_Colon_1_6093",message:"Trying substitution '{0}', candidate module location: '{1}'."},Resolving_module_name_0_relative_to_base_url_1_2:{code:6094,category:e.DiagnosticCategory.Message,key:"Resolving_module_name_0_relative_to_base_url_1_2_6094",message:"Resolving module name '{0}' relative to base url '{1}' - '{2}'."},Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:{code:6095,category:e.DiagnosticCategory.Message,key:"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095",message:"Loading module as file / folder, candidate module location '{0}', target file type '{1}'."},File_0_does_not_exist:{code:6096,category:e.DiagnosticCategory.Message,key:"File_0_does_not_exist_6096",message:"File '{0}' does not exist."},File_0_exist_use_it_as_a_name_resolution_result:{code:6097,category:e.DiagnosticCategory.Message,key:"File_0_exist_use_it_as_a_name_resolution_result_6097",message:"File '{0}' exist - use it as a name resolution result."},Loading_module_0_from_node_modules_folder_target_file_type_1:{code:6098,category:e.DiagnosticCategory.Message,key:"Loading_module_0_from_node_modules_folder_target_file_type_1_6098",message:"Loading module '{0}' from 'node_modules' folder, target file type '{1}'."},Found_package_json_at_0:{code:6099,category:e.DiagnosticCategory.Message,key:"Found_package_json_at_0_6099",message:"Found 'package.json' at '{0}'."},package_json_does_not_have_a_0_field:{code:6100,category:e.DiagnosticCategory.Message,key:"package_json_does_not_have_a_0_field_6100",message:"'package.json' does not have a '{0}' field."},package_json_has_0_field_1_that_references_2:{code:6101,category:e.DiagnosticCategory.Message,key:"package_json_has_0_field_1_that_references_2_6101",message:"'package.json' has '{0}' field '{1}' that references '{2}'."},Allow_javascript_files_to_be_compiled:{code:6102,category:e.DiagnosticCategory.Message,key:"Allow_javascript_files_to_be_compiled_6102",message:"Allow javascript files to be compiled."},Option_0_should_have_array_of_strings_as_a_value:{code:6103,category:e.DiagnosticCategory.Error,key:"Option_0_should_have_array_of_strings_as_a_value_6103",message:"Option '{0}' should have array of strings as a value."},Checking_if_0_is_the_longest_matching_prefix_for_1_2:{code:6104,category:e.DiagnosticCategory.Message,key:"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104",message:"Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."},Expected_type_of_0_field_in_package_json_to_be_string_got_1:{code:6105,category:e.DiagnosticCategory.Message,key:"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105",message:"Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."},baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:{code:6106,category:e.DiagnosticCategory.Message,key:"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106",message:"'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:{code:6107,category:e.DiagnosticCategory.Message,key:"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107",message:"'rootDirs' option is set, using it to resolve relative module name '{0}'."},Longest_matching_prefix_for_0_is_1:{code:6108,category:e.DiagnosticCategory.Message,key:"Longest_matching_prefix_for_0_is_1_6108",message:"Longest matching prefix for '{0}' is '{1}'."},Loading_0_from_the_root_dir_1_candidate_location_2:{code:6109,category:e.DiagnosticCategory.Message,key:"Loading_0_from_the_root_dir_1_candidate_location_2_6109",message:"Loading '{0}' from the root dir '{1}', candidate location '{2}'."},Trying_other_entries_in_rootDirs:{code:6110,category:e.DiagnosticCategory.Message,key:"Trying_other_entries_in_rootDirs_6110",message:"Trying other entries in 'rootDirs'."},Module_resolution_using_rootDirs_has_failed:{code:6111,category:e.DiagnosticCategory.Message,key:"Module_resolution_using_rootDirs_has_failed_6111",message:"Module resolution using 'rootDirs' has failed."},Do_not_emit_use_strict_directives_in_module_output:{code:6112,category:e.DiagnosticCategory.Message,key:"Do_not_emit_use_strict_directives_in_module_output_6112",message:"Do not emit 'use strict' directives in module output."},Enable_strict_null_checks:{code:6113,category:e.DiagnosticCategory.Message,key:"Enable_strict_null_checks_6113",message:"Enable strict null checks."},Unknown_option_excludes_Did_you_mean_exclude:{code:6114,category:e.DiagnosticCategory.Error,key:"Unknown_option_excludes_Did_you_mean_exclude_6114",message:"Unknown option 'excludes'. Did you mean 'exclude'?"},Raise_error_on_this_expressions_with_an_implied_any_type:{code:6115,category:e.DiagnosticCategory.Message,key:"Raise_error_on_this_expressions_with_an_implied_any_type_6115",message:"Raise error on 'this' expressions with an implied 'any' type."},Resolving_type_reference_directive_0_containing_file_1_root_directory_2:{code:6116,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116",message:"======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"},Resolving_using_primary_search_paths:{code:6117,category:e.DiagnosticCategory.Message,key:"Resolving_using_primary_search_paths_6117",message:"Resolving using primary search paths..."},Resolving_from_node_modules_folder:{code:6118,category:e.DiagnosticCategory.Message,key:"Resolving_from_node_modules_folder_6118",message:"Resolving from node_modules folder..."},Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:{code:6119,category:e.DiagnosticCategory.Message,key:"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119",message:"======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"},Type_reference_directive_0_was_not_resolved:{code:6120,category:e.DiagnosticCategory.Message,key:"Type_reference_directive_0_was_not_resolved_6120",message:"======== Type reference directive '{0}' was not resolved. ========"},Resolving_with_primary_search_path_0:{code:6121,category:e.DiagnosticCategory.Message,key:"Resolving_with_primary_search_path_0_6121",message:"Resolving with primary search path '{0}'."},Root_directory_cannot_be_determined_skipping_primary_search_paths:{code:6122,category:e.DiagnosticCategory.Message,key:"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122",message:"Root directory cannot be determined, skipping primary search paths."},Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:{code:6123,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123",message:"======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"},Type_declaration_files_to_be_included_in_compilation:{code:6124,category:e.DiagnosticCategory.Message,key:"Type_declaration_files_to_be_included_in_compilation_6124",message:"Type declaration files to be included in compilation."},Looking_up_in_node_modules_folder_initial_location_0:{code:6125,category:e.DiagnosticCategory.Message,key:"Looking_up_in_node_modules_folder_initial_location_0_6125",message:"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:{code:6126,category:e.DiagnosticCategory.Message,key:"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126",message:"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:{code:6127,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127",message:"======== 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:{code:6128,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128",message:"======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"},The_config_file_0_found_doesn_t_contain_any_source_files:{code:6129,category:e.DiagnosticCategory.Error,key:"The_config_file_0_found_doesn_t_contain_any_source_files_6129",message:"The config file '{0}' found doesn't contain any source files."},Resolving_real_path_for_0_result_1:{code:6130,category:e.DiagnosticCategory.Message,key:"Resolving_real_path_for_0_result_1_6130",message:"Resolving real path for '{0}', result '{1}'."},Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:{code:6131,category:e.DiagnosticCategory.Error,key:"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131",message:"Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."},File_name_0_has_a_1_extension_stripping_it:{code:6132,category:e.DiagnosticCategory.Message,key:"File_name_0_has_a_1_extension_stripping_it_6132",message:"File name '{0}' has a '{1}' extension - stripping it."},_0_is_declared_but_never_used:{code:6133,category:e.DiagnosticCategory.Error,key:"_0_is_declared_but_never_used_6133",message:"'{0}' is declared but never used."},Report_errors_on_unused_locals:{code:6134,category:e.DiagnosticCategory.Message,key:"Report_errors_on_unused_locals_6134",message:"Report errors on unused locals."},Report_errors_on_unused_parameters:{code:6135,category:e.DiagnosticCategory.Message,key:"Report_errors_on_unused_parameters_6135",message:"Report errors on unused parameters."},The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:{code:6136,category:e.DiagnosticCategory.Message,key:"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136",message:"The maximum dependency depth to search under node_modules and load JavaScript files."},Property_0_is_declared_but_never_used:{code:6138,category:e.DiagnosticCategory.Error,key:"Property_0_is_declared_but_never_used_6138",message:"Property '{0}' is declared but never used."},Import_emit_helpers_from_tslib:{code:6139,category:e.DiagnosticCategory.Message,key:"Import_emit_helpers_from_tslib_6139",message:"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:{code:6140,category:e.DiagnosticCategory.Error,key:"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140",message:"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:{code:6141,category:e.DiagnosticCategory.Message,key:"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",message:'Parse in strict mode and emit "use strict" for each source file.'},Module_0_was_resolved_to_1_but_jsx_is_not_set:{code:6142,category:e.DiagnosticCategory.Error,key:"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142",message:"Module '{0}' was resolved to '{1}', but '--jsx' is not set."},Module_0_was_resolved_to_1_but_allowJs_is_not_set:{code:6143,category:e.DiagnosticCategory.Error,key:"Module_0_was_resolved_to_1_but_allowJs_is_not_set_6143",message:"Module '{0}' was resolved to '{1}', but '--allowJs' is not set."},Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:{code:6144,category:e.DiagnosticCategory.Message,key:"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144",message:"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:{code:6145,category:e.DiagnosticCategory.Message,key:"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",message:"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:{code:6146,category:e.DiagnosticCategory.Message,key:"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",message:"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:{code:6147,category:e.DiagnosticCategory.Message,key:"Resolution_for_module_0_was_found_in_cache_6147",message:"Resolution for module '{0}' was found in cache."},Directory_0_does_not_exist_skipping_all_lookups_in_it:{code:6148,category:e.DiagnosticCategory.Message,key:"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148",message:"Directory '{0}' does not exist, skipping all lookups in it."},Show_diagnostic_information:{code:6149,category:e.DiagnosticCategory.Message,key:"Show_diagnostic_information_6149",message:"Show diagnostic information."},Show_verbose_diagnostic_information:{code:6150,category:e.DiagnosticCategory.Message,key:"Show_verbose_diagnostic_information_6150",message:"Show verbose diagnostic information."},Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:{code:6151,category:e.DiagnosticCategory.Message,key:"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151",message:"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:{code:6152,category:e.DiagnosticCategory.Message,key:"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152",message:"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:{code:6153,category:e.DiagnosticCategory.Message,key:"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153",message:"Transpile each file as a separate module (similar to 'ts.transpileModule')."},Print_names_of_generated_files_part_of_the_compilation:{code:6154,category:e.DiagnosticCategory.Message,key:"Print_names_of_generated_files_part_of_the_compilation_6154",message:"Print names of generated files part of the compilation."},Print_names_of_files_part_of_the_compilation:{code:6155,category:e.DiagnosticCategory.Message,key:"Print_names_of_files_part_of_the_compilation_6155",message:"Print names of files part of the compilation."},The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:{code:6156,category:e.DiagnosticCategory.Message,key:"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156",message:"The locale used when displaying messages to the user (e.g. 'en-us')"},Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:{code:6157,category:e.DiagnosticCategory.Message,key:"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157",message:"Do not generate custom helper functions like '__extends' in compiled output."},Do_not_include_the_default_library_file_lib_d_ts:{code:6158,category:e.DiagnosticCategory.Message,key:"Do_not_include_the_default_library_file_lib_d_ts_6158",message:"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:{code:6159,category:e.DiagnosticCategory.Message,key:"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159",message:"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:{code:6160,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160",message:"[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."},List_of_folders_to_include_type_definitions_from:{code:6161,category:e.DiagnosticCategory.Message,key:"List_of_folders_to_include_type_definitions_from_6161",message:"List of folders to include type definitions from."},Disable_size_limitations_on_JavaScript_projects:{code:6162,category:e.DiagnosticCategory.Message,key:"Disable_size_limitations_on_JavaScript_projects_6162",message:"Disable size limitations on JavaScript projects."},The_character_set_of_the_input_files:{code:6163,category:e.DiagnosticCategory.Message,key:"The_character_set_of_the_input_files_6163",message:"The character set of the input files."},Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:{code:6164,category:e.DiagnosticCategory.Message,key:"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164",message:"Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."},Do_not_truncate_error_messages:{code:6165,category:e.DiagnosticCategory.Message,key:"Do_not_truncate_error_messages_6165",message:"Do not truncate error messages."},Output_directory_for_generated_declaration_files:{code:6166,category:e.DiagnosticCategory.Message,key:"Output_directory_for_generated_declaration_files_6166",message:"Output directory for generated declaration files."},A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:{code:6167,category:e.DiagnosticCategory.Message,key:"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167",message:"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:{code:6168,category:e.DiagnosticCategory.Message,key:"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168",message:"List of root folders whose combined content represents the structure of the project at runtime."},Show_all_compiler_options:{code:6169,category:e.DiagnosticCategory.Message,key:"Show_all_compiler_options_6169",message:"Show all compiler options."},Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:{code:6170,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170",message:"[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"},Command_line_Options:{code:6171,category:e.DiagnosticCategory.Message,key:"Command_line_Options_6171",message:"Command-line Options"},Basic_Options:{code:6172,category:e.DiagnosticCategory.Message,key:"Basic_Options_6172",message:"Basic Options"},Strict_Type_Checking_Options:{code:6173,category:e.DiagnosticCategory.Message,key:"Strict_Type_Checking_Options_6173",message:"Strict Type-Checking Options"},Module_Resolution_Options:{code:6174,category:e.DiagnosticCategory.Message,key:"Module_Resolution_Options_6174",message:"Module Resolution Options"},Source_Map_Options:{code:6175,category:e.DiagnosticCategory.Message,key:"Source_Map_Options_6175",message:"Source Map Options"},Additional_Checks:{code:6176,category:e.DiagnosticCategory.Message,key:"Additional_Checks_6176",message:"Additional Checks"},Experimental_Options:{code:6177,category:e.DiagnosticCategory.Message,key:"Experimental_Options_6177",message:"Experimental Options"},Advanced_Options:{code:6178,category:e.DiagnosticCategory.Message,key:"Advanced_Options_6178",message:"Advanced Options"},Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:{code:6179,category:e.DiagnosticCategory.Message,key:"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179",message:"Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."},Enable_all_strict_type_checking_options:{code:6180,category:e.DiagnosticCategory.Message,key:"Enable_all_strict_type_checking_options_6180",message:"Enable all strict type-checking options."},List_of_language_service_plugins:{code:6181,category:e.DiagnosticCategory.Message,key:"List_of_language_service_plugins_6181",message:"List of language service plugins."},Scoped_package_detected_looking_in_0:{code:6182,category:e.DiagnosticCategory.Message,key:"Scoped_package_detected_looking_in_0_6182",message:"Scoped package detected, looking in '{0}'"},Variable_0_implicitly_has_an_1_type:{code:7005,category:e.DiagnosticCategory.Error,key:"Variable_0_implicitly_has_an_1_type_7005",message:"Variable '{0}' implicitly has an '{1}' type."},Parameter_0_implicitly_has_an_1_type:{code:7006,category:e.DiagnosticCategory.Error,key:"Parameter_0_implicitly_has_an_1_type_7006",message:"Parameter '{0}' implicitly has an '{1}' type."},Member_0_implicitly_has_an_1_type:{code:7008,category:e.DiagnosticCategory.Error,key:"Member_0_implicitly_has_an_1_type_7008",message:"Member '{0}' implicitly has an '{1}' type."},new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:{code:7009,category:e.DiagnosticCategory.Error,key:"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009",message:"'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:{code:7010,category:e.DiagnosticCategory.Error,key:"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010",message:"'{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:{code:7011,category:e.DiagnosticCategory.Error,key:"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011",message:"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:{code:7013,category:e.DiagnosticCategory.Error,key:"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013",message:"Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."},Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:{code:7015,category:e.DiagnosticCategory.Error,key:"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015",message:"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:{code:7016,category:e.DiagnosticCategory.Error,key:"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016",message:"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:{code:7017,category:e.DiagnosticCategory.Error,key:"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017",message:"Element implicitly has an 'any' type because type '{0}' has no index signature."},Object_literal_s_property_0_implicitly_has_an_1_type:{code:7018,category:e.DiagnosticCategory.Error,key:"Object_literal_s_property_0_implicitly_has_an_1_type_7018",message:"Object literal's property '{0}' implicitly has an '{1}' type."},Rest_parameter_0_implicitly_has_an_any_type:{code:7019,category:e.DiagnosticCategory.Error,key:"Rest_parameter_0_implicitly_has_an_any_type_7019",message:"Rest parameter '{0}' implicitly has an 'any[]' type."},Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:{code:7020,category:e.DiagnosticCategory.Error,key:"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020",message:"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:{code:7022,category:e.DiagnosticCategory.Error,key:"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022",message:"'{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:{code:7023,category:e.DiagnosticCategory.Error,key:"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023",message:"'{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:{code:7024,category:e.DiagnosticCategory.Error,key:"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024",message:"Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."},Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:{code:7025,category:e.DiagnosticCategory.Error,key:"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025",message:"Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."},JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:{code:7026,category:e.DiagnosticCategory.Error,key:"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026",message:"JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."},Unreachable_code_detected:{code:7027,category:e.DiagnosticCategory.Error,key:"Unreachable_code_detected_7027",message:"Unreachable code detected."},Unused_label:{code:7028,category:e.DiagnosticCategory.Error,key:"Unused_label_7028",message:"Unused label."},Fallthrough_case_in_switch:{code:7029,category:e.DiagnosticCategory.Error,key:"Fallthrough_case_in_switch_7029",message:"Fallthrough case in switch."},Not_all_code_paths_return_a_value:{code:7030,category:e.DiagnosticCategory.Error,key:"Not_all_code_paths_return_a_value_7030",message:"Not all code paths return a value."},Binding_element_0_implicitly_has_an_1_type:{code:7031,category:e.DiagnosticCategory.Error,key:"Binding_element_0_implicitly_has_an_1_type_7031",message:"Binding element '{0}' implicitly has an '{1}' type."},Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:{code:7032,category:e.DiagnosticCategory.Error,key:"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032",message:"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:{code:7033,category:e.DiagnosticCategory.Error,key:"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033",message:"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:{code:7034,category:e.DiagnosticCategory.Error,key:"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034",message:"Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."},You_cannot_rename_this_element:{code:8e3,category:e.DiagnosticCategory.Error,key:"You_cannot_rename_this_element_8000",message:"You cannot rename this element."},You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:{code:8001,category:e.DiagnosticCategory.Error,key:"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001",message:"You cannot rename elements that are defined in the standard TypeScript library."},import_can_only_be_used_in_a_ts_file:{code:8002,category:e.DiagnosticCategory.Error,key:"import_can_only_be_used_in_a_ts_file_8002",message:"'import ... =' can only be used in a .ts file."},export_can_only_be_used_in_a_ts_file:{code:8003,category:e.DiagnosticCategory.Error,key:"export_can_only_be_used_in_a_ts_file_8003",message:"'export=' can only be used in a .ts file."},type_parameter_declarations_can_only_be_used_in_a_ts_file:{code:8004,category:e.DiagnosticCategory.Error,key:"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004",message:"'type parameter declarations' can only be used in a .ts file."},implements_clauses_can_only_be_used_in_a_ts_file:{code:8005,category:e.DiagnosticCategory.Error,key:"implements_clauses_can_only_be_used_in_a_ts_file_8005",message:"'implements clauses' can only be used in a .ts file."},interface_declarations_can_only_be_used_in_a_ts_file:{code:8006,category:e.DiagnosticCategory.Error,key:"interface_declarations_can_only_be_used_in_a_ts_file_8006",message:"'interface declarations' can only be used in a .ts file."},module_declarations_can_only_be_used_in_a_ts_file:{code:8007,category:e.DiagnosticCategory.Error,key:"module_declarations_can_only_be_used_in_a_ts_file_8007",message:"'module declarations' can only be used in a .ts file."},type_aliases_can_only_be_used_in_a_ts_file:{code:8008,category:e.DiagnosticCategory.Error,key:"type_aliases_can_only_be_used_in_a_ts_file_8008",message:"'type aliases' can only be used in a .ts file."},_0_can_only_be_used_in_a_ts_file:{code:8009,category:e.DiagnosticCategory.Error,key:"_0_can_only_be_used_in_a_ts_file_8009",message:"'{0}' can only be used in a .ts file."},types_can_only_be_used_in_a_ts_file:{code:8010,category:e.DiagnosticCategory.Error,key:"types_can_only_be_used_in_a_ts_file_8010",message:"'types' can only be used in a .ts file."},type_arguments_can_only_be_used_in_a_ts_file:{code:8011,category:e.DiagnosticCategory.Error,key:"type_arguments_can_only_be_used_in_a_ts_file_8011",message:"'type arguments' can only be used in a .ts file."},parameter_modifiers_can_only_be_used_in_a_ts_file:{code:8012,category:e.DiagnosticCategory.Error,key:"parameter_modifiers_can_only_be_used_in_a_ts_file_8012",message:"'parameter modifiers' can only be used in a .ts file."},enum_declarations_can_only_be_used_in_a_ts_file:{code:8015,category:e.DiagnosticCategory.Error,key:"enum_declarations_can_only_be_used_in_a_ts_file_8015",message:"'enum declarations' can only be used in a .ts file."},type_assertion_expressions_can_only_be_used_in_a_ts_file:{code:8016,category:e.DiagnosticCategory.Error,key:"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016",message:"'type assertion expressions' can only be used in a .ts file."},Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:{code:9002,category:e.DiagnosticCategory.Error,key:"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002",message:"Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."},class_expressions_are_not_currently_supported:{code:9003,category:e.DiagnosticCategory.Error,key:"class_expressions_are_not_currently_supported_9003",message:"'class' expressions are not currently supported."},Language_service_is_disabled:{code:9004,category:e.DiagnosticCategory.Error,key:"Language_service_is_disabled_9004",message:"Language service is disabled."},JSX_attributes_must_only_be_assigned_a_non_empty_expression:{code:17e3,category:e.DiagnosticCategory.Error,key:"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000",message:"JSX attributes must only be assigned a non-empty 'expression'."},JSX_elements_cannot_have_multiple_attributes_with_the_same_name:{code:17001,category:e.DiagnosticCategory.Error,key:"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001",message:"JSX elements cannot have multiple attributes with the same name."},Expected_corresponding_JSX_closing_tag_for_0:{code:17002,category:e.DiagnosticCategory.Error,key:"Expected_corresponding_JSX_closing_tag_for_0_17002",message:"Expected corresponding JSX closing tag for '{0}'."},JSX_attribute_expected:{code:17003,category:e.DiagnosticCategory.Error,key:"JSX_attribute_expected_17003",message:"JSX attribute expected."},Cannot_use_JSX_unless_the_jsx_flag_is_provided:{code:17004,category:e.DiagnosticCategory.Error,key:"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004",message:"Cannot use JSX unless the '--jsx' flag is provided."},A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:{code:17005,category:e.DiagnosticCategory.Error,key:"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005",message:"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:{code:17006,category:e.DiagnosticCategory.Error,key:"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006",message:"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:{code:17007,category:e.DiagnosticCategory.Error,key:"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007",message:"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:{code:17008,category:e.DiagnosticCategory.Error,key:"JSX_element_0_has_no_corresponding_closing_tag_17008",message:"JSX element '{0}' has no corresponding closing tag."},super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:{code:17009,category:e.DiagnosticCategory.Error,key:"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",message:"'super' must be called before accessing 'this' in the constructor of a derived class."},Unknown_type_acquisition_option_0:{code:17010,category:e.DiagnosticCategory.Error,key:"Unknown_type_acquisition_option_0_17010",message:"Unknown type acquisition option '{0}'."},super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:{code:17011,category:e.DiagnosticCategory.Error,key:"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",message:"'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:{code:17012,category:e.DiagnosticCategory.Error,key:"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012",message:"'{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:{code:17013,category:e.DiagnosticCategory.Error,key:"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013",message:"Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."},Circularity_detected_while_resolving_configuration_Colon_0:{code:18e3,category:e.DiagnosticCategory.Error,key:"Circularity_detected_while_resolving_configuration_Colon_0_18000",message:"Circularity detected while resolving configuration: {0}"},A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:{code:18001,category:e.DiagnosticCategory.Error,key:"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001",message:"A path in an 'extends' option must be relative or rooted, but '{0}' is not."},The_files_list_in_config_file_0_is_empty:{code:18002,category:e.DiagnosticCategory.Error,key:"The_files_list_in_config_file_0_is_empty_18002",message:"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:{code:18003,category:e.DiagnosticCategory.Error,key:"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003",message:"No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."},Add_missing_super_call:{code:90001,category:e.DiagnosticCategory.Message,key:"Add_missing_super_call_90001",message:"Add missing 'super()' call."},Make_super_call_the_first_statement_in_the_constructor:{code:90002,category:e.DiagnosticCategory.Message,key:"Make_super_call_the_first_statement_in_the_constructor_90002",message:"Make 'super()' call the first statement in the constructor."},Change_extends_to_implements:{code:90003,category:e.DiagnosticCategory.Message,key:"Change_extends_to_implements_90003",message:"Change 'extends' to 'implements'."},Remove_declaration_for_Colon_0:{code:90004,category:e.DiagnosticCategory.Message,key:"Remove_declaration_for_Colon_0_90004",message:"Remove declaration for: '{0}'."},Implement_interface_0:{code:90006,category:e.DiagnosticCategory.Message,key:"Implement_interface_0_90006",message:"Implement interface '{0}'."},Implement_inherited_abstract_class:{code:90007,category:e.DiagnosticCategory.Message,key:"Implement_inherited_abstract_class_90007",message:"Implement inherited abstract class."},Add_this_to_unresolved_variable:{code:90008,category:e.DiagnosticCategory.Message,key:"Add_this_to_unresolved_variable_90008",message:"Add 'this.' to unresolved variable."},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:{code:90009,category:e.DiagnosticCategory.Error,key:"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009",message:"Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."},Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:{code:90010,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010",message:"Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."},Import_0_from_1:{code:90013,category:e.DiagnosticCategory.Message,key:"Import_0_from_1_90013",message:"Import {0} from {1}."},Change_0_to_1:{code:90014,category:e.DiagnosticCategory.Message,key:"Change_0_to_1_90014",message:"Change {0} to {1}."},Add_0_to_existing_import_declaration_from_1:{code:90015,category:e.DiagnosticCategory.Message,key:"Add_0_to_existing_import_declaration_from_1_90015",message:"Add {0} to existing import declaration from {1}."},Add_declaration_for_missing_property_0:{code:90016,category:e.DiagnosticCategory.Message,key:"Add_declaration_for_missing_property_0_90016",message:"Add declaration for missing property '{0}'."},Add_index_signature_for_missing_property_0:{code:90017,category:e.DiagnosticCategory.Message,key:"Add_index_signature_for_missing_property_0_90017",message:"Add index signature for missing property '{0}'."},Disable_checking_for_this_file:{code:90018,category:e.DiagnosticCategory.Message,key:"Disable_checking_for_this_file_90018",message:"Disable checking for this file."},Ignore_this_error_message:{code:90019,category:e.DiagnosticCategory.Message,key:"Ignore_this_error_message_90019",message:"Ignore this error message."},Initialize_property_0_in_the_constructor:{code:90020,category:e.DiagnosticCategory.Message,key:"Initialize_property_0_in_the_constructor_90020",message:"Initialize property '{0}' in the constructor."},Initialize_static_property_0:{code:90021,category:e.DiagnosticCategory.Message,key:"Initialize_static_property_0_90021",message:"Initialize static property '{0}'."},Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:{code:8017,category:e.DiagnosticCategory.Error,key:"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017",message:"Octal literal types must use ES2015 syntax. Use the syntax '{0}'."},Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:{code:8018,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018",message:"Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."},Report_errors_in_js_files:{code:8019,category:e.DiagnosticCategory.Message,key:"Report_errors_in_js_files_8019",message:"Report errors in .js files."}}}(o||(o={}));var o;!function(e){function t(e){return e>=71}function r(e,t){if(e=1?r(e,z):r(e,B)}function i(e,t){return t>=1?r(e,K):r(e,j)}function a(e){return J[e]}function o(e){return L.get(e)}function s(e){for(var t=new Array,r=0,n=0;r127&&g(i)&&(t.push(n),n=r)}}return t.push(n),t}function c(e,t,r){return u(l(e),t,r)}function u(t,r,n){return e.Debug.assert(r>=0&&r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function g(e){return 10===e||13===e||8232===e||8233===e}function m(e){return e>=48&&e<=57}function h(e){return e>=48&&e<=55}function y(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 61:case 62:return!0;case 35:return 0===t;default:return r>127}}function v(t,r,n,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(r))return r;for(;;){var a=t.charCodeAt(r);switch(a){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r127&&_(a)){r++;continue}}return r}}function b(t,r){if(e.Debug.assert(r>=0),0===r||g(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+q=0&&r127&&_(m)){d&&g(m)&&(l=!0),r++;continue}break e}}return d&&(p=i(s,c,u,l,a,p)),p}function E(e,t,r,n){return C(!1,e,t,!1,r,n)}function D(e,t,r,n){return C(!1,e,t,!0,r,n)}function T(e,t,r,n,i){return C(!0,e,t,!1,r,n,i)}function w(e,t,r,n,i){return C(!0,e,t,!0,r,n,i)}function A(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function N(e,t){return T(e,t,A,void 0,void 0)}function P(e,t){return w(e,t,A,void 0,void 0)}function M(e){return U.test(e)?U.exec(e)[0]:void 0}function O(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&n(e,t)}function I(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&i(e,t)}function F(e,t){if(!O(e.charCodeAt(0),t))return!1;for(var r=1;r=48&&i<=57)n=16*n+i-48;else if(i>=65&&i<=70)n=16*n+i-65+10;else{if(!(i>=97&&i<=102))break;n=16*n+i-97+10}re++,r++}return r=ne){n+=a.substring(i,re),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}var o=a.charCodeAt(re);if(o===r){n+=a.substring(i,re),re++;break}if(92===o&&t)n+=a.substring(i,re),n+=D(),i=re;else{if(g(o)){n+=a.substring(i,re),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}re++}}return n}function E(){var t=96===a.charCodeAt(re);re++;for(var r,n=re,i="";;){if(re>=ne){i+=a.substring(n,re),le=!0,u(e.Diagnostics.Unterminated_template_literal),r=t?13:16;break}var o=a.charCodeAt(re);if(96===o){i+=a.substring(n,re),re++,r=t?13:16;break}if(36===o&&re+1=ne)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=a.charCodeAt(re);switch(re++,t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return re=0?String.fromCharCode(r):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function w(){var t=y(1),r=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),re>=ne?(u(e.Diagnostics.Unexpected_end_of_text),r=!0):125===a.charCodeAt(re)?re++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":A(t)}function A(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 N(){if(re+5=0&&I(n,r)))break;e+=a.substring(t,re),e+=String.fromCharCode(n),re+=6,t=re}}return e+=a.substring(t,re)}function M(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(oe=L.get(se)))return oe}return oe=71}function F(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var r=0,n=0;;){var i=a.charCodeAt(re),o=i-48;if(!m(i)||o>=t)break;r=r*t+o,re++,n++}return 0===n?-1:r}function R(){for(ie=re,ue=!1,ce=!1,le=!1,de=0;;){if(ae=re,re>=ne)return oe=1;var t=a.charCodeAt(re);if(35===t&&0===re&&x(a,re)){if(re=S(a,re),n)continue;return oe=6}switch(t){case 10:case 13:if(ce=!0,n){re++;continue}return 13===t&&re+1=0&&O(f,r)?(re+=6,se=String.fromCharCode(f)+P(),oe=M()):(u(e.Diagnostics.Invalid_character),re++,oe=0);default:if(O(t,r)){for(re++;re=ne){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=a.charCodeAt(t);if(g(o)){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===o&&!i){t++;break}91===o?i=!0:92===o?n=!0:93===o&&(i=!1)}t++}for(;t=ne)return oe=1;var e=a.charCodeAt(re);if(60===e)return 47===a.charCodeAt(re+1)?(re+=2,oe=28):(re++,oe=27);if(123===e)return re++,oe=17;for(var t=0;re=ne)return oe=1;ie=re,ae=re;var e=a.charCodeAt(re);switch(e){case 9:case 11:case 12:case 32:for(;re=0),re=t,ie=t,ae=t,oe=0,ce=!1,se=void 0,ue=!1,le=!1}void 0===i&&(i=0);var re,ne,ie,ae,oe,se,ce,ue,le,de;return Q(a,s,c),{getStartPos:function(){return ie},getTextPos:function(){return re},getToken:function(){return oe},getTokenPos:function(){return ae},getTokenText:function(){return a.substring(ae,re)},getTokenValue:function(){return se},hasExtendedUnicodeEscape:function(){return ue},hasPrecedingLineBreak:function(){return ce},isIdentifier:function(){return 71===oe||oe>107},isReservedWord:function(){return oe>=72&&oe<=107},isUnterminated:function(){return le},getNumericLiteralFlags:function(){return de},reScanGreaterToken:B,reScanSlashToken:j,reScanTemplateToken:z,scanJsxIdentifier:q,scanJsxAttributeValue:U,reScanJsxToken:K,scanJsxToken:J,scanJSDocToken:V,scan:R,getText:Y,setText:Q,setScriptTarget:$,setLanguageVariant:ee,setOnError:Z,setTextPos:te,tryScan:X,lookAhead:G,scanRange:W}}e.tokenIsIdentifierOrKeyword=t;var L=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:140,function:89,get:125,if:90,implements:108,import:91,in:92,instanceof:93,interface:109,is:126,keyof:127,let:110,module:128,namespace:129,never:130,new:94,null:95,number:133,object:134,package:111,private:112,protected:113,public:114,readonly:131,require:132,global:141,return:96,set:135,static:115,string:136,super:97,switch:98,symbol:137,this:99,throw:100,true:101,try:102,type:138,typeof:103,undefined:139,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:142,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,">":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),B=[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],j=[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],z=[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],K=[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];e.isUnicodeIdentifierStart=n;var J=function(e){var t=[];return e.forEach(function(e,r){t[e]=r}),t}(L);e.tokenToString=a,e.stringToToken=o,e.computeLineStarts=s,e.getPositionOfLineAndCharacter=c,e.computePositionOfLineAndCharacter=u,e.getLineStarts=l,e.computeLineAndCharacterOfPosition=d,e.getLineAndCharacterOfPosition=f,e.isWhiteSpaceLike=_,e.isWhiteSpaceSingleLine=p,e.isLineBreak=g,e.isOctalDigit=h,e.couldStartTrivia=y,e.skipTrivia=v;var q="<<<<<<<".length,U=/^#!.*/;e.forEachLeadingCommentRange=E,e.forEachTrailingCommentRange=D,e.reduceEachLeadingCommentRange=T,e.reduceEachTrailingCommentRange=w,e.getLeadingCommentRanges=N,e.getTrailingCommentRanges=P,e.getShebang=M,e.isIdentifierStart=O,e.isIdentifierPart=I,e.isIdentifierText=F,e.createScanner=R}(o||(o={}));var o;!function(e){function t(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n=0),e.getLineStarts(r)[t]}function y(t){var r=g(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"}function v(e){return e.pos}function b(e){return void 0!==e}function k(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 x(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function S(e){return!x(e)}function C(e){return e.kind>=0&&e.kind<=142}function E(t,r,n){return x(t)?t.pos:D(t)?e.skipTrivia((r||g(t)).text,t.pos,!1,!0):n&&t.jsDoc&&t.jsDoc.length>0?E(t.jsDoc[0]):294===t.kind&&t._children.length>0?E(t._children[0],r,n):e.skipTrivia((r||g(t)).text,t.pos)}function D(e){return e.kind>=267&&e.kind<=293}function T(e){return e.kind>=283&&e.kind<=293}function w(t,r){return x(t)||!t.decorators?E(t,r):e.skipTrivia((r||g(t)).text,t.decorators.end)}function A(t,r,n){if(void 0===n&&(n=!1),x(r))return"";var i=t.text;return i.substring(n?r.pos:e.skipTrivia(i,r.pos),r.end)}function N(t,r){return x(r)?"":t.substring(e.skipTrivia(t,r.pos),r.end)}function P(e,t){return void 0===t&&(t=!1),A(g(e),e,t)}function M(t,r){if(!or(t)&&t.parent)return A(r,t);switch(t.kind){case 9:return O('"',t.text,'"');case 13:return O("`",t.text,"`");case 14:return O("`",t.text,"${");case 15:return O("}",t.text,"${");case 16:return O("}",t.text,"`");case 8:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")}function O(e,t,r){return e+kr(hr(t))+r}function I(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function F(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function R(t){return 0!=(3&e.getCombinedNodeFlags(t))||L(t)}function L(e){var t=ir(e);return 226===t.kind&&260===t.parent.kind}function B(e){return e&&233===e.kind&&(9===e.name.kind||J(e))}function j(e){return z(e.valueDeclaration)}function z(e){return e&&233===e.kind&&!e.body}function K(e){return 265===e.kind||233===e.kind||xe(e)}function J(e){return!!(512&e.flags)}function q(t){if(!t||!B(t))return!1;switch(t.parent.kind){case 265:return e.isExternalModule(t.parent);case 234:return B(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function U(t,r){return e.isExternalModule(t)||r.isolatedModules}function V(e,t){switch(e.kind){case 265:case 235:case 260:case 233:case 214:case 215:case 216:case 152:case 151:case 153:case 154:case 228:case 186:case 187:return!0;case 207:return t&&!xe(t)}return!1}function H(e){for(var t=e.parent;t;){if(V(t,t.parent))return t;t=t.parent}}function W(e){return 0===a(e)?"(Missing)":P(e)}function G(e){return e.declaration?W(e.declaration.parameters[0].name):void 0}function X(e){switch(e.kind){case 71:return e.text;case 9:case 8:return e.text;case 144:if(Gt(e.expression))return e.expression.text}}function Y(t){switch(t.kind){case 71:return 0===a(t)?e.unescapeIdentifier(t.text):P(t);case 143:return Y(t.left)+"."+Y(t.right);case 179:return Y(t.expression)+"."+Y(t.name)}}function Q(e,t,r,n,i){return Z(g(e),e,t,r,n,i)}function Z(t,r,n,i,a,o){var s=re(t,r);return e.createFileDiagnostic(t,s.start,s.length,n,i,a,o)}function $(e,t){var r=g(e),n=re(r,e);return{file:r,start:n.start,length:n.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function ee(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 te(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&207===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i=0;case 183:return!1}}return!1}function pe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function ge(e){return 192===e.kind}function me(t,r){function n(t){switch(t.kind){case 219:return r(t);case 235:case 207:case 211:case 212:case 213:case 214:case 215:case 216:case 220:case 221:case 257:case 258:case 222:case 224:case 260:return e.forEachChild(t,n)}}return n(t)}function he(t,r){function n(t){switch(t.kind){case 197:r(t);var i=t.expression;return void(i&&n(i));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(xe(t)){var a=t.name;if(a&&144===a.kind)return void n(a.expression)}else _e(t)||e.forEachChild(t,n)}}return n(t)}function ye(t){return t&&164===t.kind?t.elementType:t&&159===t.kind?e.singleOrUndefined(t.typeArguments):void 0}function ve(e){if(e)switch(e.kind){case 176:case 264:case 146:case 261:case 149:case 148:case 262:case 226:return!0}return!1}function be(e){return e&&(153===e.kind||154===e.kind)}function ke(e){return e&&(229===e.kind||199===e.kind)}function xe(e){return e&&Se(e.kind)}function Se(e){switch(e){case 152:case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 155:case 156:case 157:case 160:case 161:return!0}return!1}function Ce(e){switch(e.kind){case 151:case 150:case 152:case 153:case 154:case 228:case 186:return!0}return!1}function Ee(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&Ee(e.statement,t)}return!1}function De(e,t){for(;;){if(t&&t(e),222!==e.statement.kind)return e.statement;e=e.statement}}function Te(e){return e&&207===e.kind&&xe(e.parent)}function we(e){return e&&151===e.kind&&178===e.parent.kind}function Ae(e){return 151===e.kind&&(178===e.parent.kind||199===e.parent.kind)}function Ne(e){return e&&1===e.kind}function Pe(e){return e&&0===e.kind}function Me(e){for(;;)if(!(e=e.parent)||xe(e))return e}function Oe(e){for(;;)if(!(e=e.parent)||ke(e))return e}function Ie(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 144:if(ke(e.parent.parent))return e;e=e.parent;break;case 147:146===e.parent.kind&&vi(e.parent.parent)?e=e.parent.parent:vi(e.parent)&&(e=e.parent);break;case 187:if(!t)continue;case 228:case 186:case 233:case 149:case 148:case 151:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 232:case 265:return e}}}function Fe(e){var t=Ie(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}}function Re(e,t){for(;;){if(!(e=e.parent))return e;switch(e.kind){case 144:e=e.parent;break;case 228:case 186:case 187:if(!t)continue;case 149:case 148:case 151:case 150:case 152:case 153:case 154:return e;case 147:146===e.parent.kind&&vi(e.parent.parent)?e=e.parent.parent:vi(e.parent)&&(e=e.parent)}}}function Le(e){if(186===e.kind||187===e.kind){for(var t=e,r=e.parent;185===r.kind;)t=r,r=r.parent;if(181===r.kind&&r.expression===t)return r}}function Be(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind}function je(e){switch(e.kind){case 159:case 277:return e.typeName;case 201:return pn(e.expression)?e.expression:void 0;case 71:case 143:return e}}function ze(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}}function Ke(e){return 183===e.kind?e.tag:Ra(e)?e.tagName:e.expression}function Je(e){switch(e.kind){case 229:return!0;case 149:return 229===e.parent.kind;case 153:case 154:case 151:return void 0!==e.body&&229===e.parent.kind;case 146:return void 0!==e.parent.body&&(152===e.parent.kind||151===e.parent.kind||154===e.parent.kind)&&229===e.parent.parent.kind}return!1}function qe(e){return void 0!==e.decorators&&Je(e)}function Ue(e){return qe(e)||Ve(e)}function Ve(t){switch(t.kind){case 229:return e.forEach(t.members,Ue);case 151:case 154:return e.forEach(t.parameters,qe)}}function He(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function We(e){switch(e.kind){case 99:case 97:case 95:case 101:case 86:case 12:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 202:case 184:case 203:case 185:case 186:case 199:case 187:case 190:case 188:case 189:case 192:case 193:case 194:case 195:case 198:case 196:case 13:case 200:case 249:case 250:case 197:case 191:case 204:return!0;case 143:for(;143===e.parent.kind;)e=e.parent;return 162===e.parent.kind||He(e);case 71:if(162===e.parent.kind||He(e))return!0;case 8:case 9:case 99:var t=e.parent;switch(t.kind){case 226:case 146:case 149:case 148:case 264:case 261:case 176:return t.initializer===e;case 210:case 211:case 212:case 213:case 219:case 220:case 221:case 257:case 223:case 221:return t.expression===e;case 214:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.condition===e||r.incrementor===e;case 215:case 216:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.expression===e;case 184:case 202:case 205:case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&fn(t);default:if(We(t))return!0}}return!1}function Ge(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function Xe(e){return 237===e.kind&&248===e.moduleReference.kind}function Ye(t){return e.Debug.assert(Xe(t)),t.moduleReference.expression}function Qe(e){return 237===e.kind&&248!==e.moduleReference.kind}function Ze(e){return $e(e)}function $e(e){return e&&!!(65536&e.flags)}function et(e,t){if(181!==e.kind)return!1;var r=e,n=r.expression,i=r.arguments;if(71!==n.kind||"require"!==n.text)return!1;if(1!==i.length)return!1;var a=i[0];return!t||9===a.kind||13===a.kind}function tt(e){return 39===e||34===e}function rt(e){if(e.valueDeclaration&&226===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(186===t.initializer.kind||199===t.initializer.kind)}return!1}function nt(e){for(;cn(e,!0);)e=e.right;return e}function it(e){return ai(e)&&"exports"===e.text}function at(e){return Fi(e)&&ai(e.expression)&&"module"===e.expression.text&&"exports"===e.name.text}function ot(e){if(!$e(e))return 0;var t=e;if(58!==t.operatorToken.kind||179!==t.left.kind)return 0;var r=t.left;if(71===r.expression.kind){var n=r.expression;return"exports"===n.text?1:"module"===n.text&&"exports"===r.name.text?2:5}if(99===r.expression.kind)return 4;if(179===r.expression.kind){var i=r.expression;if(71===i.expression.kind){if("module"===i.expression.text&&"exports"===i.name.text)return 1;if("prototype"===i.name.text)return 3}}return 0}function st(e){if(238===e.kind)return e.moduleSpecifier;if(237===e.kind){var t=e.moduleReference;if(248===t.kind)return t.expression}return 244===e.kind?e.moduleSpecifier:233===e.kind&&9===e.name.kind?e.name:void 0}function ct(e){if(237===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&240===t.namedBindings.kind?t.namedBindings:void 0}function ut(e){return 238===e.kind&&e.importClause&&!!e.importClause.name}function lt(e){if(e)switch(e.kind){case 146:case 151:case 150:case 262:case 261:case 149:case 148:return void 0!==e.questionToken}return!1}function dt(e){return 279===e.kind&&e.parameters.length>0&&281===e.parameters[0].type.kind}function ft(t){return e.map(mt(t),function(e){return e.comment})}function _t(e){var t=pt(e,286);return t&&t.length>0}function pt(t,r){var n=mt(t);if(n){for(var i=[],a=0,o=n;a0?t.types[0]:void 0}function Lt(e){var t=jt(e.heritageClauses,108);return t?t.types:void 0}function Bt(e){var t=jt(e.heritageClauses,85);return t?t.types:void 0}function jt(e,t){if(e)for(var r=0,n=e;r/gim;if(n.test(t)){if(i.test(t))return{isNoDefaultLib:!0};var a=e.fullTripleSlashReferencePathRegEx.exec(t),o=!a&&e.fullTripleSlashReferenceTypeReferenceDirectiveRegEx.exec(t);if(a||o){return{fileReference:{pos:r.pos,end:r.end,fileName:(a||o)[3]},isNoDefaultLib:!1,isTypeReferenceDirective:!!o}}return{diagnosticMessage:e.Diagnostics.Invalid_reference_directive_syntax,isNoDefaultLib:!1}}}function qt(e){return 72<=e&&e<=142}function Ut(e){return 2<=e&&e<=7}function Vt(e){var t=0;switch(e.kind){case 228:case 186:case 151:e.asteriskToken&&(t|=1);case 187:tn(e,256)&&(t|=2)}return e.body||(t|=4),t}function Ht(e){switch(e.kind){case 228:case 186:case 187:case 151:return void 0!==e.body&&void 0===e.asteriskToken&&tn(e,256)}return!1}function Wt(e){return 8===e.kind}function Gt(e){var t=e.kind;return 9===t||8===t}function Xt(e){return e.name&&Yt(e.name)}function Yt(e){return 144===e.kind&&!Gt(e.expression)&&!Qt(e.expression)}function Qt(e){return Fi(e)&&er(e.expression)}function Zt(e){if(71===e.kind||9===e.kind||8===e.kind||146===e.kind)return e.text;if(144===e.kind){var t=e.expression;if(Qt(t)){return $t(t.name.text)}if(9===t.kind||8===t.kind)return t.text}}function $t(e){return"__@"+e}function er(e){return 71===e.kind&&"Symbol"===e.text}function tr(e){return"push"===e.text||"unshift"===e.text}function rr(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 131:case 115:return!0}return!1}function nr(e){return 146===ir(e).kind}function ir(e){for(;176===e.kind;)e=e.parent.parent;return e}function ar(e){var t=e.kind;return 152===t||186===t||228===t||187===t||151===t||153===t||154===t||233===t||265===t}function or(t){return e.positionIsSynthesized(t.pos)||e.positionIsSynthesized(t.end)}function sr(t){return 266===t.kind?e.updateBundle(t,e.sameMap(t.sourceFiles,cr)):cr(t)}function cr(t){return e.getParseTreeNode(t,qa)||t}function ur(t){return e.sameMap(t,cr)}function lr(t){return t=e.getOriginalNode(t),t?e.getNodeId(t):0}function dr(e){var t=pr(e),r=182===e.kind&&void 0!==e.arguments;return fr(e.kind,t,r)}function fr(e,t,r){switch(e){case 182:return r?0:1;case 192:case 189:case 190:case 188:case 191:case 195:case 197:return 1;case 194:switch(t){case 40:case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 1}}return 0}function _r(e){var t=pr(e),r=182===e.kind&&void 0!==e.arguments;return gr(e.kind,t,r)}function pr(e){return 194===e.kind?e.operatorToken.kind:192===e.kind||193===e.kind?e.operator:e.kind}function gr(e,t,r){switch(e){case 99:case 97:case 71:case 95:case 101:case 86:case 8:case 9:case 177:case 178:case 186:case 187:case 199:case 249:case 250:case 12:case 13:case 196:case 185:case 200:return 19;case 183:case 179:case 180:return 18;case 182:return r?18:17;case 181:return 17;case 193:return 16;case 192:case 189:case 190:case 188:case 191:return 15;case 194:switch(t){case 51:case 52:return 15;case 40:case 39:case 41:case 42:return 14;case 37:case 38:return 13;case 45:case 46:case 47:return 12;case 27:case 30:case 29:case 31:case 92:case 93:return 11;case 32:case 34:case 33:case 35:return 10;case 48:return 9;case 50:return 8;case 49:return 7;case 53:return 6;case 54:return 5;case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 3;case 26:return 0;default:return-1}case 195:return 4;case 197:return 2;case 198:return 1;default:return-1}}function mr(){function t(){return l}function r(t){e.forEach(c.get(t.fileName),function(e){return e.file=t})}function n(e){var t;e.file?(t=c.get(e.file.fileName))||(t=[],c.set(e.file.fileName,t)):t=s,t.push(e),u=!0,l++}function i(){return o(),s}function a(t){function r(e){n.push(e)}if(o(),t)return c.get(t)||[];var n=[];return e.forEach(s,r),c.forEach(function(t){e.forEach(t,r)}),e.sortAndDeduplicateDiagnostics(n)}function o(){u&&(u=!1,s=e.sortAndDeduplicateDiagnostics(s),c.forEach(function(t,r){c.set(r,e.sortAndDeduplicateDiagnostics(t))}))}var s=[],c=e.createMap(),u=!1,l=0;return{add:n,getGlobalDiagnostics:i,getDiagnostics:a,getModificationCount:t,reattachFileDiagnostics:r}}function hr(e){return e.replace(Ha,yr)}function yr(e){return Wa.get(e)||br(e.charCodeAt(0))}function vr(e){var t=e.substr(0,1);return t.toLowerCase()===t}function br(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function kr(e){return Ga.test(e)?e.replace(Ga,function(e){return br(e.charCodeAt(0))}):e}function xr(e){return void 0===Xa[e]&&(Xa[e]=xr(e-1)+Xa[1]),Xa[e]}function Sr(){return Xa[1].length}function Cr(t){function r(e){e&&e.length&&(l&&(c+=xr(u),l=!1),c+=e)}function n(){c="",u=0,l=!0,d=0,f=0}function i(e){void 0!==e&&(l&&(l=!1),c+=e)}function a(t){if(t&&t.length){r(t);var n=e.computeLineStarts(t);n.length>1&&(d=d+n.length-1,f=c.length-t.length+e.lastOrUndefined(n))}}function o(){l||(c+=t,d++,f=c.length,l=!0)}function s(e,t){r(N(e,t))}var c,u,l,d,f;return n(),{write:r,rawWrite:i,writeTextOfNode:s,writeLiteral:a,writeLine:o,increaseIndent:function(){u++},decreaseIndent:function(){u--},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return d+1},getColumn:function(){return l?u*Sr()+1:c.length-f+1},getText:function(){return c},isAtStartOfLine:function(){return l},reset:n}}function Er(e,t){return t.moduleName||Tr(e,t.fileName)}function Dr(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!ie(n))return Er(e,n)}function Tr(t,r){var n=function(e){return t.getCanonicalFileName(e)},i=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),n),a=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(i,a,i,n,!1);return e.removeFileExtension(o)}function wr(t,r,n){var i=r.getCompilerOptions();return(i.outDir?e.removeFileExtension(Fr(t,r,i.outDir)):e.removeFileExtension(t.fileName))+n}function Ar(t,r){var n=r.getCompilerOptions(),i=n.declarationDir||n.outDir,a=i?Fr(t,r,i):t.fileName;return e.removeFileExtension(a)+".d.ts"}function Nr(t,r){var n=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(n.outFile||n.out){var a=e.getEmitModuleKind(n),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&Pr(t,n,i)})}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,function(e){return Pr(e,n,i)})}function Pr(e,t,r){return!(t.noEmitForJsFiles&&Ze(e)||ie(e)||r(e))}function Mr(t,r,n,i){var a=e.isArray(n)?n:Nr(t,n),o=t.getCompilerOptions();if(o.outFile||o.out){if(a.length){var s=o.outFile||o.out,c=Or(s,o),u=o.declaration?e.removeFileExtension(s)+".d.ts":"";r({jsFilePath:s,sourceMapFilePath:c,declarationFilePath:u},e.createBundle(a),i)}}else for(var l=0,d=a;l0){var t=2===e.parameters.length&&Jr(e.parameters[0]);return e.parameters[t?1:0].type}}function Kr(e){if(e.parameters.length){var t=e.parameters[0];if(Jr(t))return t}}function Jr(e){return qr(e.name)}function qr(e){return e&&71===e.kind&&Ur(e)}function Ur(e){return 99===e.originalKeywordKind}function Vr(t,r){var n,i,a,o;return Xt(r)?(n=r,153===r.kind?a=r:154===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){if((153===e.kind||154===e.kind)&&tn(e,32)===tn(r,32)){Zt(e.name)===Zt(r.name)&&(n?i||(i=e):n=e,153!==e.kind||a||(a=e),154!==e.kind||o||(o=e))}}),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}}function Hr(e,t,r,n){Wr(e,t,r.pos,n)}function Wr(e,t,r,n){n&&n.length&&r!==n[0].pos&&Br(e,r)!==Br(e,n[0].pos)&&t.writeLine()}function Gr(e,t,r,n){r!==n&&Br(e,r)!==Br(e,n)&&t.writeLine()}function Xr(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.write(" ");for(var c=!1,u=0,l=n;u=m+2)break}d.push(g),f=g}if(d.length){var m=Br(r,e.lastOrUndefined(d).end);Br(r,e.skipTrivia(t,a.pos))>=m+2&&(Hr(r,n,a,u),Xr(t,r,n,d,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(d).end})}}return l}function Qr(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,u=void 0,l=i,d=s.line;l0){var g=p%Sr(),m=xr((p-g)/Sr());for(n.rawWrite(m);g;)n.rawWrite(" "),g--}else n.rawWrite("")}Zr(t,a,n,o,l,f),l=f}else n.write(t.substring(i,a))}function Zr(e,t,r,n,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(r.write(s),o!==t&&r.writeLine()):r.writeLiteral(n)}function $r(t,r,n){for(var i=0;r=58&&e<=70}function sn(e){if(201===e.kind&&85===e.parent.token&&ke(e.parent.parent))return e.parent.parent}function cn(e,t){return Bi(e)&&(t?58===e.operatorToken.kind:on(e.operatorToken.kind))&&Vi(e.left)}function un(e){if(cn(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1}function ln(e){return dn(e.expression)}function dn(e){return 71===e.kind||!!Fi(e)&&dn(e.expression)}function fn(e){return void 0!==sn(e)}function _n(e){return 201===e.kind&&pn(e.expression)&&e.parent&&108===e.parent.token&&e.parent.parent&&ke(e.parent.parent)}function pn(e){return 71===e.kind||179===e.kind&&pn(e.expression)}function gn(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e}function mn(e){return 178===e.kind&&0===e.properties.length}function hn(e){return 177===e.kind&&0===e.elements.length}function yn(e){return vn(e)?e.valueDeclaration.localSymbol:void 0}function vn(e){return e&&e.valueDeclaration&&tn(e.valueDeclaration,512)}function bn(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})}function kn(t){for(var r=[],n=t.length,i=0;i>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}function xn(e){for(var t,r,n,i,a="",o=kn(e),s=0,c=o.length;s>2,r=(3&o[s])<<4|o[s+1]>>4,n=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?n=i=64:s+2>=c&&(i=64),a+=Ya.charAt(t)+Ya.charAt(r)+Ya.charAt(n)+Ya.charAt(i),s+=3;return a}function Sn(t){return 0===t.newLine?Qa:1===t.newLine?Za:e.sys?e.sys.newLine:Qa}function Cn(e){return En(e,0)}function En(e,t){if(t<=5){var r=e.kind;if(9===r||8===r||12===r||13===r||71===r||99===r||97===r||101===r||86===r||95===r)return!0;if(179===r)return En(e.expression,t+1);if(180===r)return En(e.expression,t+1)&&En(e.argumentExpression,t+1);if(192===r||193===r)return En(e.operand,t+1);if(194===r)return 40!==e.operatorToken.kind&&En(e.left,t+1)&&En(e.right,t+1);if(195===r)return En(e.condition,t+1)&&En(e.whenTrue,t+1)&&En(e.whenFalse,t+1);if(190===r||189===r||188===r)return En(e.expression,t+1);if(177===r)return 0===e.elements.length;if(178===r)return 0===e.properties.length;if(181===r){if(!En(e.expression,t+1))return!1;for(var n=0,i=e.arguments;n0?Mn(e,e.decorators.end):e}function In(e){return e.modifiers&&e.modifiers.length>0?Mn(e,e.modifiers.end):On(e)}function Fn(e){return e.pos===e.end}function Rn(e){return Fn(e)?e:Pn(e,e.pos)}function Ln(e){return Fn(e)?e:Mn(e,e.end)}function Bn(t,r){return Nn(t,t+e.tokenToString(r).length)}function jn(e,t){return Jn(e,e,t)}function zn(e,t,r){return Un(Vn(e,r),Vn(t,r),r)}function Kn(e,t,r){return Un(e.end,t.end,r)}function Jn(e,t,r){return Un(Vn(e,r),t.end,r)}function qn(e,t,r){return Un(e.end,Vn(t,r),r)}function Un(e,t,r){return e===t||Lr(r,e)===Lr(r,t)}function Vn(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function Hn(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 232:case 233:return r===r.parent.name}return!1}function Wn(t){return e.filter(t.declarations,Gn)}function Gn(e){return void 0!==e.initializer}function Xn(e){if(e.symbol)for(var t=0,r=e.symbol.declarations;t0}function ci(e){return rr(e.kind)}function ui(e){return 143===e.kind}function li(e){return 144===e.kind}function di(e){var t=e.kind;return 143===t||71===t}function fi(e){var t=e.kind;return 71===t||9===t||8===t||144===t}function _i(e){var t=e.kind;return 71===t||9===t}function pi(e){var t=e.kind;return 71===t||174===t||175===t}function gi(e){return 145===e.kind}function mi(e){return 146===e.kind}function hi(e){return 147===e.kind}function yi(e){return 151===e.kind}function vi(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t}function bi(e){var t=e.kind;return 261===t||262===t||263===t||151===t||153===t||154===t||247===t}function ki(e){return e>=158&&e<=173||119===e||133===e||134===e||122===e||136===e||137===e||99===e||105===e||139===e||95===e||130===e||201===e}function xi(e){return ki(e.kind)}function Si(e){return 175===e.kind}function Ci(e){return 174===e.kind}function Ei(e){if(e){var t=e.kind;return 175===t||174===t}return!1}function Di(e){var t=e.kind;return 177===t||178===t}function Ti(e){return 176===e.kind}function wi(e){var t=e.kind;return 176===t||200===t}function Ai(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1}function Ni(e){return Pi(e)||Mi(e)}function Pi(e){switch(e.kind){case 174:case 178:return!0}return!1}function Mi(e){switch(e.kind){case 175:case 177:return!0}return!1}function Oi(e){return 177===e.kind}function Ii(e){return 178===e.kind}function Fi(e){return 179===e.kind}function Ri(e){var t=e.kind;return 179===t||143===t}function Li(e){return 180===e.kind}function Bi(e){return 194===e.kind}function ji(e){return 195===e.kind}function zi(e){return 181===e.kind}function Ki(e){var t=e.kind;return 196===t||13===t}function Ji(e){return 198===e.kind}function qi(e){return 201===e.kind}function Ui(e){return 179===e||180===e||182===e||181===e||249===e||250===e||183===e||177===e||185===e||178===e||199===e||186===e||71===e||12===e||8===e||9===e||13===e||196===e||86===e||95===e||99===e||101===e||97===e||203===e||204===e}function Vi(t){return Ui(e.skipPartiallyEmittedExpressions(t).kind)}function Hi(e){return 192===e||193===e||188===e||189===e||190===e||191===e||184===e||Ui(e)}function Wi(t){return Hi(e.skipPartiallyEmittedExpressions(t).kind)}function Gi(e){return 195===e||197===e||187===e||194===e||198===e||202===e||200===e||Hi(e)}function Xi(t){return Gi(e.skipPartiallyEmittedExpressions(t).kind)}function Yi(e){var t=e.kind;return 184===t||202===t}function Qi(e){return 296===e.kind}function Zi(e){return 295===e.kind}function $i(e){return Zi(e)||Qi(e)}function ea(e){return 200===e.kind}function ta(e){return 205===e.kind}function ra(e){return 207===e.kind}function na(e){return ra(e)||Xi(e)}function ia(e){return ra(e)}function aa(e){return sa(e)||Xi(e)}function oa(e){return 226===e.kind}function sa(e){return 227===e.kind}function ca(e){return 235===e.kind}function ua(e){var t=e.kind;return 234===t||233===t||71===t}function la(e){var t=e.kind;return 234===t||233===t}function da(e){var t=e.kind;return 71===t||233===t}function fa(e){return 237===e.kind}function _a(e){return 239===e.kind}function pa(e){var t=e.kind;return 241===t||240===t}function ga(e){return 242===e.kind}function ma(e){return 245===e.kind}function ha(e){return 246===e.kind}function ya(e){return 233===e.kind||232===e.kind}function va(e){return 187===e||176===e||229===e||199===e||152===e||232===e||264===e||246===e||228===e||186===e||153===e||239===e||237===e||242===e||230===e||253===e||151===e||150===e||233===e||236===e||240===e||146===e||261===e||149===e||148===e||154===e||262===e||231===e||145===e||226===e||290===e}function ba(e){return 228===e||247===e||229===e||230===e||231===e||232===e||233===e||238===e||237===e||244===e||243===e||236===e}function ka(e){return 218===e||217===e||225===e||212===e||210===e||209===e||215===e||216===e||214===e||211===e||222===e||219===e||221===e||223===e||224===e||208===e||213===e||220===e||295===e||298===e||297===e}function xa(e){return va(e.kind)}function Sa(e){return ba(e.kind)}function Ca(e){return ka(e.kind)}function Ea(e){var t=e.kind;return ka(t)||ba(t)||207===t}function Da(e){var t=e.kind;return 248===t||143===t||71===t}function Ta(e){return 251===e.kind}function wa(e){return 252===e.kind}function Aa(e){var t=e.kind;return 99===t||71===t||179===t}function Na(e){var t=e.kind;return 249===t||256===t||250===t||10===t}function Pa(e){return 254===e.kind}function Ma(e){var t=e.kind;return 253===t||255===t}function Oa(e){return 255===e.kind}function Ia(e){return 253===e.kind}function Fa(e){var t=e.kind;return 9===t||256===t}function Ra(e){var t=e.kind;return 251===t||250===t}function La(e){var t=e.kind;return 257===t||258===t}function Ba(e){return 259===e.kind}function ja(e){return 260===e.kind}function za(e){return 261===e.kind}function Ka(e){return 262===e.kind}function Ja(e){return 264===e.kind}function qa(e){return 265===e.kind}function Ua(e){return e.watch&&e.hasOwnProperty("watch")}e.externalHelpersModuleNameText="tslib",e.getDeclarationOfKind=t,e.findDeclaration=r;var Va=[];e.getSingleLineStringWriter=n,e.releaseStringWriter=i,e.getFullWidth=a,e.hasResolvedModule=o,e.getResolvedModule=s,e.setResolvedModule=c,e.setResolvedTypeReferenceDirective=u,e.moduleResolutionIsEqualTo=l,e.typeDirectiveIsEqualTo=d,e.hasChangesInResolutions=f,e.containsParseError=_,e.getSourceFileOfNode=g,e.isStatementWithLocals=m,e.getStartPositionOfLine=h,e.nodePosToString=y,e.getStartPosOfNode=v,e.isDefined=b,e.getEndLinePosition=k,e.nodeIsMissing=x,e.nodeIsPresent=S,e.isToken=C,e.getTokenPosOfNode=E,e.isJSDocNode=D,e.isJSDocTag=T,e.getNonDecoratorTokenPosOfNode=w,e.getSourceTextOfNodeFromSourceFile=A,e.getTextOfNodeFromSourceText=N,e.getTextOfNode=P,e.getLiteralText=M,e.escapeIdentifier=I,e.makeIdentifierFromModuleName=F,e.isBlockOrCatchScoped=R,e.isCatchClauseVariableDeclarationOrBindingElement=L,e.isAmbientModule=B,e.isShorthandAmbientModuleSymbol=j,e.isBlockScopedContainerTopLevel=K,e.isGlobalScopeAugmentation=J,e.isExternalModuleAugmentation=q,e.isEffectiveExternalModule=U,e.isBlockScope=V,e.getEnclosingBlockScopeContainer=H,e.declarationNameToString=W,e.getNameFromIndexInfo=G,e.getTextOfPropertyName=X,e.entityNameToString=Y,e.createDiagnosticForNode=Q,e.createDiagnosticForNodeInSourceFile=Z,e.createDiagnosticForNodeFromMessageChain=$,e.getSpanOfTokenAtPosition=ee,e.getErrorSpanForNode=re,e.isExternalOrCommonJsModule=ne,e.isDeclarationFile=ie,e.isConstEnumDeclaration=ae,e.isConst=oe,e.isLet=se,e.isSuperCall=ce,e.isPrologueDirective=ue,e.getLeadingCommentRangesOfNode=le,e.getLeadingCommentRangesOfNodeFromText=de,e.getJSDocCommentRanges=fe,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/,e.fullTripleSlashReferenceTypeReferenceDirectiveRegEx=/^(\/\/\/\s*/,e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/,e.isPartOfTypeNode=_e,e.isChildOfNodeWithKind=pe,e.isPrefixUnaryExpression=ge,e.forEachReturnStatement=me,e.forEachYieldExpression=he,e.getRestParameterElementType=ye,e.isVariableLike=ve,e.isAccessor=be,e.isClassLike=ke,e.isFunctionLike=xe,e.isFunctionLikeKind=Se,e.introducesArgumentsExoticObject=Ce,e.isIterationStatement=Ee,e.unwrapInnermostStatementOfLabel=De,e.isFunctionBlock=Te,e.isObjectLiteralMethod=we,e.isObjectLiteralOrClassExpressionMethod=Ae,e.isIdentifierTypePredicate=Ne,e.isThisTypePredicate=Pe,e.getContainingFunction=Me,e.getContainingClass=Oe,e.getThisContainer=Ie,e.getNewTargetContainer=Fe,e.getSuperContainer=Re,e.getImmediatelyInvokedFunctionExpression=Le,e.isSuperProperty=Be,e.getEntityNameFromTypeNode=je,e.isCallLikeExpression=ze,e.getInvokedExpression=Ke,e.nodeCanBeDecorated=Je,e.nodeIsDecorated=qe,e.nodeOrChildIsDecorated=Ue,e.childIsDecorated=Ve,e.isJSXTagName=He,e.isPartOfExpression=We,e.isInstantiatedModule=Ge,e.isExternalModuleImportEqualsDeclaration=Xe,e.getExternalModuleImportEqualsDeclarationExpression=Ye,e.isInternalModuleImportEqualsDeclaration=Qe,e.isSourceFileJavaScript=Ze,e.isInJavaScriptFile=$e,e.isRequireCall=et,e.isSingleOrDoubleQuote=tt,e.isDeclarationOfFunctionOrClassExpression=rt,e.getRightMostAssignedExpression=nt,e.isExportsIdentifier=it,e.isModuleExportsPropertyAccessExpression=at,e.getSpecialPropertyAssignmentKind=ot,e.getExternalModuleName=st,e.getNamespaceDeclarationNode=ct,e.isDefaultImport=ut,e.hasQuestionToken=lt,e.isJSDocConstructSignature=dt,e.getCommentsFromJSDoc=ft,e.hasJSDocParameterTags=_t,e.getJSDocs=mt,e.getJSDocParameterTags=ht,e.getJSDocType=yt,e.getJSDocAugmentsTag=vt,e.getJSDocReturnTag=bt,e.getJSDocTemplateTag=kt,e.hasRestParameter=xt,e.hasDeclaredRestParameter=St,e.isRestParameter=Ct,e.isDeclaredRestParam=Et;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=Dt,e.isAssignmentTarget=Tt,e.isDeleteTarget=wt,e.isNodeDescendantOf=At,e.isInAmbientContext=Nt,e.isDeclarationName=Pt,e.isLiteralComputedPropertyDeclarationName=Mt,e.isIdentifierName=Ot,e.isAliasSymbolDeclaration=It,e.exportAssignmentIsAlias=Ft,e.getClassExtendsHeritageClauseElement=Rt,e.getClassImplementsHeritageClauseElements=Lt,e.getInterfaceBaseTypeNodes=Bt,e.getHeritageClause=jt,e.tryResolveScriptReference=zt,e.getAncestor=Kt,e.getFileReferenceFromReferencePath=Jt,e.isKeyword=qt,e.isTrivia=Ut;!function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.AsyncOrAsyncGenerator=3]="AsyncOrAsyncGenerator",e[e.Invalid=4]="Invalid",e[e.InvalidAsyncOrAsyncGenerator=7]="InvalidAsyncOrAsyncGenerator",e[e.InvalidGenerator=5]="InvalidGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=Vt,e.isAsyncFunction=Ht,e.isNumericLiteral=Wt,e.isStringOrNumericLiteral=Gt,e.hasDynamicName=Xt,e.isDynamicName=Yt,e.isWellKnownSymbolSyntactically=Qt,e.getPropertyNameForPropertyNameNode=Zt,e.getPropertyNameForKnownSymbolName=$t,e.isESSymbolIdentifier=er,e.isPushOrUnshiftIdentifier=tr,e.isModifierKind=rr,e.isParameterDeclaration=nr,e.getRootDeclaration=ir,e.nodeStartsNewLexicalEnvironment=ar,e.nodeIsSynthesized=or,e.getOriginalSourceFileOrBundle=sr,e.getOriginalSourceFiles=ur,e.getOriginalNodeId=lr;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=dr,e.getOperatorAssociativity=fr,e.getExpressionPrecedence=_r,e.getOperator=pr,e.getOperatorPrecedence=gr,e.createDiagnosticCollection=mr;var Ha=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Wa=e.createMapFromTemplate({"\0":"\\0","\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});e.escapeString=hr,e.isIntrinsicJsxName=vr;var Ga=/[^\u0000-\u007F]/g;e.escapeNonAsciiCharacters=kr;var Xa=["","    "];e.getIndentString=xr,e.getIndentSize=Sr,e.createTextWriter=Cr,e.getResolvedExternalModuleName=Er,e.getExternalModuleNameFromDeclaration=Dr,e.getExternalModuleNameFromPath=Tr,e.getOwnEmitOutputFilePath=wr,e.getDeclarationEmitOutputFilePath=Ar,e.getSourceFilesToEmit=Nr,e.sourceFileMayBeEmitted=Pr,e.forEachEmittedFile=Mr,e.getSourceFilePathInNewDir=Fr,e.writeFile=Rr,e.getLineOfLocalPosition=Lr,e.getLineOfLocalPositionFromLineMap=Br,e.getFirstConstructorWithBody=jr,e.getSetAccessorTypeAnnotationNode=zr,e.getThisParameter=Kr,e.parameterIsThisKeyword=Jr,e.isThisIdentifier=qr,e.identifierIsThisKeyword=Ur,e.getAllAccessorDeclarations=Vr,e.emitNewLineBeforeLeadingComments=Hr,e.emitNewLineBeforeLeadingCommentsOfPosition=Wr,e.emitNewLineBeforeLeadingCommentOfPosition=Gr,e.emitComments=Xr,e.emitDetachedComments=Yr,e.writeCommentRange=Qr,e.hasModifiers=en,e.hasModifier=tn,e.getModifierFlags=rn,e.modifierToFlag=nn,e.isLogicalOperator=an,e.isAssignmentOperator=on,e.tryGetClassExtendingExpressionWithTypeArguments=sn,e.isAssignmentExpression=cn,e.isDestructuringAssignment=un,e.isSupportedExpressionWithTypeArguments=ln,e.isExpressionWithTypeArgumentsInClassExtendsClause=fn,e.isExpressionWithTypeArgumentsInClassImplementsClause=_n,e.isEntityNameExpression=pn,e.isRightSideOfQualifiedNameOrPropertyAccess=gn,e.isEmptyObjectLiteral=mn,e.isEmptyArrayLiteral=hn,e.getLocalSymbolForExportDefault=yn,e.tryExtractTypeScriptExtension=bn;var Ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=xn;var Qa="\r\n",Za="\n";e.getNewLineCharacter=Sn,e.isSimpleExpression=Cn;var $a=[];e.formatSyntaxKind=Dn,e.getRangePos=Tn,e.getRangeEnd=wn,e.movePos=An,e.createRange=Nn,e.moveRangeEnd=Pn,e.moveRangePos=Mn,e.moveRangePastDecorators=On,e.moveRangePastModifiers=In,e.isCollapsedRange=Fn,e.collapseRangeToStart=Rn,e.collapseRangeToEnd=Ln,e.createTokenRange=Bn,e.rangeIsOnSingleLine=jn,e.rangeStartPositionsAreOnSameLine=zn,e.rangeEndPositionsAreOnSameLine=Kn,e.rangeStartIsOnSameLineAsRangeEnd=Jn,e.rangeEndIsOnSameLineAsRangeStart=qn,e.positionsAreOnSameLine=Un,e.getStartPositionOfRange=Vn,e.isDeclarationNameOfEnumOrNamespace=Hn,e.getInitializedVariables=Wn,e.isMergedWithClass=Xn,e.isFirstDeclarationOfKind=Yn,e.isNodeArray=Qn,e.isNoSubstitutionTemplateLiteral=Zn,e.isLiteralKind=$n,e.isTextualLiteralKind=ei,e.isLiteralExpression=ti,e.isTemplateLiteralKind=ri,e.isTemplateHead=ni,e.isTemplateMiddleOrTemplateTail=ii,e.isIdentifier=ai,e.isVoidExpression=oi,e.isGeneratedIdentifier=si,e.isModifier=ci,e.isQualifiedName=ui,e.isComputedPropertyName=li,e.isEntityName=di,e.isPropertyName=fi,e.isModuleName=_i,e.isBindingName=pi,e.isTypeParameter=gi,e.isParameter=mi,e.isDecorator=hi,e.isMethodDeclaration=yi,e.isClassElement=vi,e.isObjectLiteralElementLike=bi,e.isTypeNode=xi,e.isArrayBindingPattern=Si,e.isObjectBindingPattern=Ci,e.isBindingPattern=Ei,e.isAssignmentPattern=Di,e.isBindingElement=Ti,e.isArrayBindingElement=wi,e.isDeclarationBindingElement=Ai,e.isBindingOrAssignmentPattern=Ni,e.isObjectBindingOrAssignmentPattern=Pi,e.isArrayBindingOrAssignmentPattern=Mi,e.isArrayLiteralExpression=Oi,e.isObjectLiteralExpression=Ii,e.isPropertyAccessExpression=Fi,e.isPropertyAccessOrQualifiedName=Ri,e.isElementAccessExpression=Li,e.isBinaryExpression=Bi,e.isConditionalExpression=ji,e.isCallExpression=zi,e.isTemplateLiteral=Ki,e.isSpreadExpression=Ji,e.isExpressionWithTypeArguments=qi,e.isLeftHandSideExpression=Vi,e.isUnaryExpression=Wi,e.isExpression=Xi,e.isAssertionExpression=Yi,e.isPartiallyEmittedExpression=Qi,e.isNotEmittedStatement=Zi,e.isNotEmittedOrPartiallyEmittedNode=$i,e.isOmittedExpression=ea,e.isTemplateSpan=ta,e.isBlock=ra,e.isConciseBody=na,e.isFunctionBody=ia,e.isForInitializer=aa,e.isVariableDeclaration=oa,e.isVariableDeclarationList=sa,e.isCaseBlock=ca,e.isModuleBody=ua,e.isNamespaceBody=la,e.isJSDocNamespaceBody=da,e.isImportEqualsDeclaration=fa,e.isImportClause=_a,e.isNamedImportBindings=pa,e.isImportSpecifier=ga,e.isNamedExports=ma,e.isExportSpecifier=ha,e.isModuleOrEnumDeclaration=ya,e.isDeclaration=xa,e.isDeclarationStatement=Sa,e.isStatementButNotDeclaration=Ca,e.isStatement=Ea,e.isModuleReference=Da,e.isJsxOpeningElement=Ta,e.isJsxClosingElement=wa,e.isJsxTagNameExpression=Aa,e.isJsxChild=Na,e.isJsxAttributes=Pa,e.isJsxAttributeLike=Ma,e.isJsxSpreadAttribute=Oa,e.isJsxAttribute=Ia,e.isStringLiteralOrJsxExpression=Fa,e.isJsxOpeningLikeElement=Ra,e.isCaseOrDefaultClause=La,e.isHeritageClause=Ba,e.isCatchClause=ja,e.isPropertyAssignment=za,e.isShorthandPropertyAssignment=Ka,e.isEnumMember=Ja,e.isSourceFile=qa,e.isWatchSet=Ua}(o||(o={})),function(e){function t(e){switch(e.target){case 5:return"lib.esnext.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function r(e){return e.start+e.length}function n(e){return 0===e.length}function i(e,t){return t>=e.start&&t=e.start&&r(t)<=r(e)}function o(e,t){return Math.max(e.start,t.start)=e.start}function u(e,t,n){var i=t+n;return t<=r(e)&&i>=e.start}function l(e,t,r,n){var i=e+t,a=r+n;return r<=i&&a>=e}function d(e,t){return t<=r(e)&&t>=e.start}function f(e,t){var n=Math.max(e.start,t.start),i=Math.min(r(e),r(t));if(n<=i)return p(n,i)}function _(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function p(e,t){return _(e,t-e)}function g(e){return _(e.span.start,e.newLength)}function m(e){return n(e.span)&&0===e.newLength}function h(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function y(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var n=t[0],i=n.span.start,a=r(n.span),o=i+n.newLength,s=1;s=3&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95===e.charCodeAt(2)?e.substr(1):e}e.getDefaultLibFileName=t,e.textSpanEnd=r,e.textSpanIsEmpty=n,e.textSpanContainsPosition=i,e.textSpanContainsTextSpan=a,e.textSpanOverlapsWith=o,e.textSpanOverlap=s,e.textSpanIntersectsWithTextSpan=c,e.textSpanIntersectsWith=u,e.decodedTextSpanIntersectsWith=l,e.textSpanIntersectsWithPosition=d,e.textSpanIntersection=f,e.createTextSpan=_,e.createTextSpanFromBounds=p,e.textChangeRangeNewSpan=g,e.textChangeRangeIsUnchanged=m,e.createTextChangeRange=h,e.unchangedTextChangeRange=h(_(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=y,e.getTypeParameterOwner=v,e.isParameterPropertyDeclaration=b,e.getCombinedModifierFlags=x,e.getCombinedNodeFlags=S,e.validateLocaleAndSetLanguage=C,e.getOriginalNode=E,e.isParseTreeNode=D,e.getParseTreeNode=T,e.unescapeIdentifier=w}(o||(o={}));var o;!function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(Ai(t,r),oi(t,r),r.startsOnNewLine&&(t.startsOnNewLine=!0),e.aggregateTransformFlags(t)),t}function n(t,r){if(t){if(e.isNodeArray(t))return t}else t=[];var n=t;return n.pos=-1,n.end=-1,n.hasTrailingComma=r,n}function i(e){var r=t(e.kind);r.flags|=e.flags,Ai(r,e);for(var n in e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function a(e){return"number"==typeof e?o(e+""):"boolean"==typeof e?e?y():v():"string"==typeof e?s(e):c(e)}function o(e){var r=t(8);return r.text=e,r.numericLiteralFlags=0,r}function s(e){var r=t(9);return r.text=e,r}function c(e){var t=s(e.text);return t.textSourceNode=e,t}function u(r){var n=t(71);return n.text=e.escapeIdentifier(r),n.originalKeywordKind=r?e.stringToToken(r):0,n.autoGenerateKind=0,n.autoGenerateId=0,n}function l(e){var t=u("");return t.autoGenerateKind=1,t.autoGenerateId=Mi,Mi++,e&&e(t),t}function d(){var e=u("");return e.autoGenerateKind=2,e.autoGenerateId=Mi,Mi++,e}function f(e){var t=u(e);return t.autoGenerateKind=3,t.autoGenerateId=Mi,Mi++,t}function _(e){var t=u("");return t.autoGenerateKind=4,t.autoGenerateId=Mi,t.original=e,Mi++,t}function p(e){return t(e)}function g(){return t(97)}function m(){return t(99)}function h(){return t(95)}function y(){return t(101)}function v(){return t(86)}function b(e,r){var n=t(143);return n.left=e,n.right=ei(r),n}function k(e,t,n){return e.left!==t||e.right!==n?r(b(t,n),e):e}function x(e){var r=t(144);return r.expression=e,r}function S(e,t){return e.expression!==t?r(x(t),e):e}function C(e,r,n,i){var a=t(e);return a.typeParameters=ri(r),a.parameters=ri(n),a.type=i,a}function E(e,t,n,i){return e.typeParameters!==t||e.parameters!==n||e.type!==i?r(C(e.kind,t,n,i),e):e}function D(e,t,r){return C(160,e,t,r)}function T(e,t,r,n){return E(e,t,r,n)}function w(e,t,r){return C(161,e,t,r)}function A(e,t,r,n){return E(e,t,r,n)}function N(e,t,r){return C(155,e,t,r)}function P(e,t,r,n){return E(e,t,r,n)}function M(e,t,r){return C(156,e,t,r)}function O(e,t,r,n){return E(e,t,r,n)}function I(e,t,r,n,i){var a=C(150,e,t,r);return a.name=ei(n),a.questionToken=i,a}function F(e,t,n,i,a,o){return e.typeParameters!==t||e.parameters!==n||e.type!==i||e.name!==a||e.questionToken!==o?r(I(t,n,i,a,o),e):e}function R(e){return t(e)}function L(){return t(169)}function B(e){var r=t(173);return r.literal=e,r}function j(e,t){return e.literal!==t?r(B(t),e):e}function z(e,r){var n=t(159);return n.typeName=ei(e),n.typeArguments=ri(r),n}function K(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(z(t,n),e):e}function J(e,r){var n=t(158);return n.parameterName=ei(e),n.type=r,n}function q(e,t,n){return e.parameterName!==t||e.type!==n?r(J(t,n),e):e}function U(e){var r=t(162);return r.exprName=e,r}function V(e,t){return e.exprName!==t?r(U(t),e):e}function H(e){var r=t(164);return r.elementType=e,r}function W(e,t){return e.elementType!==t?r(H(t),e):e}function G(e,r){var i=t(e);return i.types=n(r),i}function X(e,t){return e.types!==t?r(G(e.kind,t),e):e}function Y(e){var r=t(163);return r.members=n(e),r}function Q(e,t){return e.members!==t?r(Y(t),e):e}function Z(e){var r=t(165);return r.elementTypes=n(e),r}function $(e,t){return e.elementTypes!==t?r(Z(t),e):e}function ee(e,r,n,i){var a=t(172);return a.readonlyToken=e,a.typeParameter=r,a.questionToken=n,a.type=i,a}function te(e,t,n,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==i||e.type!==a?r(ee(t,n,i,a),e):e}function re(e){var r=t(170);return r.operator=127,r.type=e,r}function ne(e,t){return e.type!==t?r(re(t),e):e}function ie(e,r){var n=t(171);return n.objectType=e,n.indexType=r,n}function ae(e,t,n){return e.objectType!==t||e.indexType!==n?r(ie(t,n),e):e}function oe(e,r,n){var i=t(145);return i.name=ei(e),i.constraint=r,i.default=n,i}function se(e,t,n,i){return e.name!==t||e.constraint!==n||e.default!==i?r(oe(t,n,i),e):e}function ce(e,r,n,i){var a=t(148);return a.name=ei(e),a.questionToken=r,a.type=n,a.initializer=i,a}function ue(e,t,n,i,a){return e.name!==t||e.questionToken!==n||e.type!==i||e.initializer!==a?r(ce(t,n,i,a),e):e}function le(e,r,i,a){var o=t(157);return o.decorators=ri(e),o.modifiers=ri(r),o.parameters=n(i),o.type=a,o}function de(e,t,n,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==n?r(le(t,n,i,a),e):e}function fe(r,n,i,a,o,s,c){var u=t(146);return u.decorators=ri(r),u.modifiers=ri(n),u.dotDotDotToken=i,u.name=ei(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function _e(e,t,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==i||e.name!==a||e.questionToken!==o||e.type!==s||e.initializer!==c?r(fe(t,n,i,a,e.questionToken,s,c),e):e}function pe(r){var n=t(147);return n.expression=e.parenthesizeForAccess(r),n}function ge(e,t){return e.expression!==t?r(pe(t),e):e}function me(e,r,n,i,a,o){var s=t(149);return s.decorators=ri(e),s.modifiers=ri(r),s.name=ei(n),s.questionToken=i,s.type=a,s.initializer=o,s}function he(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.type!==a||e.initializer!==o?r(me(t,n,i,e.questionToken,a,o),e):e}function ye(e,r,i,a,o,s,c,u,l){var d=t(151);return d.decorators=ri(e),d.modifiers=ri(r),d.asteriskToken=i,d.name=ei(a),d.questionToken=o,d.typeParameters=ri(s),d.parameters=n(c),d.type=u,d.body=l,d}function ve(e,t,n,i,a,o,s,c,u,l){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?r(ye(t,n,i,a,o,s,c,u,l),e):e}function be(e,r,i,a){var o=t(152);return o.decorators=ri(e),o.modifiers=ri(r),o.typeParameters=void 0,o.parameters=n(i),o.type=void 0,o.body=a,o}function ke(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.parameters!==i||e.body!==a?r(be(t,n,i,a),e):e}function xe(e,r,i,a,o,s){var c=t(153);return c.decorators=ri(e),c.modifiers=ri(r),c.name=ei(i),c.typeParameters=void 0,c.parameters=n(a),c.type=o,c.body=s,c}function Se(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.type!==o||e.body!==s?r(xe(t,n,i,a,o,s),e):e}function Ce(e,r,i,a,o){var s=t(154);return s.decorators=ri(e),s.modifiers=ri(r),s.name=ei(i),s.typeParameters=void 0,s.parameters=n(a),s.body=o,s}function Ee(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.body!==o?r(Ce(t,n,i,a,o),e):e}function De(e){var r=t(174);return r.elements=n(e),r}function Te(e,t){return e.elements!==t?r(De(t),e):e}function we(e){var r=t(175);return r.elements=n(e),r}function Ae(e,t){return e.elements!==t?r(we(t),e):e}function Ne(e,r,n,i){var a=t(176);return a.dotDotDotToken=e,a.propertyName=ei(r),a.name=ei(n),a.initializer=i,a}function Pe(e,t,n,i,a){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?r(Ne(t,n,i,a),e):e}function Me(r,i){var a=t(177);return a.elements=e.parenthesizeListElements(n(r)),i&&(a.multiLine=!0),a}function Oe(e,t){return e.elements!==t?r(Me(t,e.multiLine),e):e}function Ie(e,r){var i=t(178);return i.properties=n(e),r&&(i.multiLine=!0),i}function Fe(e,t){return e.properties!==t?r(Ie(t,e.multiLine),e):e}function Re(r,n){var i=t(179);return i.expression=e.parenthesizeForAccess(r),i.name=ei(n),ci(i,65536),i}function Le(e,t,n){return e.expression!==t||e.name!==n?r(ci(Re(t,n),si(e)),e):e}function Be(r,n){var i=t(180);return i.expression=e.parenthesizeForAccess(r),i.argumentExpression=ti(n),i}function je(e,t,n){return e.expression!==t||e.argumentExpression!==n?r(Be(t,n),e):e}function ze(r,i,a){var o=t(181);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=ri(i),o.arguments=e.parenthesizeListElements(n(a)),o}function Ke(e,t,n,i){return t!==e.expression||n!==e.typeArguments||i!==e.arguments?r(ze(t,n,i),e):e}function Je(r,i,a){var o=t(182);return o.expression=e.parenthesizeForNew(r),o.typeArguments=ri(i),o.arguments=a?e.parenthesizeListElements(n(a)):void 0,o}function qe(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(Je(t,n,i),e):e}function Ue(r,n){var i=t(183);return i.tag=e.parenthesizeForAccess(r),i.template=n,i}function Ve(e,t,n){return e.tag!==t||e.template!==n?r(Ue(t,n),e):e}function He(r,n){var i=t(184);return i.type=r,i.expression=e.parenthesizePrefixOperand(n),i}function We(e,t,n){return e.type!==t||e.expression!==n?r(He(t,n),e):e}function Ge(e){var r=t(185);return r.expression=e,r}function Xe(e,t){return e.expression!==t?r(Ge(t),e):e}function Ye(e,r,i,a,o,s,c){var u=t(186);return u.modifiers=ri(e),u.asteriskToken=r,u.name=ei(i),u.typeParameters=ri(a),u.parameters=n(o),u.type=s,u.body=c,u}function Qe(e,t,n,i,a,o,s,c){return e.name!==i||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?r(Ye(t,n,i,a,o,s,c),e):e}function Ze(r,i,a,o,s,c){var u=t(187);return u.modifiers=ri(r),u.typeParameters=ri(i),u.parameters=n(a),u.type=o,u.equalsGreaterThanToken=s||p(36),u.body=e.parenthesizeConciseBody(c),u}function $e(e,t,n,i,a,o){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==i||e.type!==a||e.body!==o?r(Ze(t,n,i,a,e.equalsGreaterThanToken,o),e):e}function et(r){var n=t(188);return n.expression=e.parenthesizePrefixOperand(r),n}function tt(e,t){return e.expression!==t?r(et(t),e):e}function rt(r){var n=t(189);return n.expression=e.parenthesizePrefixOperand(r),n}function nt(e,t){return e.expression!==t?r(rt(t),e):e}function it(r){var n=t(190);return n.expression=e.parenthesizePrefixOperand(r),n}function at(e,t){return e.expression!==t?r(it(t),e):e}function ot(r){var n=t(191);return n.expression=e.parenthesizePrefixOperand(r),n}function st(e,t){return e.expression!==t?r(ot(t),e):e}function ct(r,n){var i=t(192);return i.operator=r,i.operand=e.parenthesizePrefixOperand(n),i}function ut(e,t){return e.operand!==t?r(ct(e.operator,t),e):e}function lt(r,n){var i=t(193);return i.operand=e.parenthesizePostfixOperand(r),i.operator=n,i}function dt(e,t){return e.operand!==t?r(lt(t,e.operator),e):e}function ft(r,n,i){var a=t(194),o=ni(n),s=o.kind;return a.left=e.parenthesizeBinaryOperand(s,r,!0,void 0),a.operatorToken=o,a.right=e.parenthesizeBinaryOperand(s,i,!1,a.left),a}function _t(e,t,n){return e.left!==t||e.right!==n?r(ft(t,e.operatorToken,n),e):e}function pt(r,n,i,a,o){var s=t(195);return s.condition=e.parenthesizeForConditionalHead(r),s.questionToken=o?n:p(55),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?i:n),s.colonToken=o?a:p(56),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||i),s}function gt(e,t,n,i){return e.condition!==t||e.whenTrue!==n||e.whenFalse!==i?r(pt(t,e.questionToken,n,e.colonToken,i),e):e}function mt(e,r){var i=t(196);return i.head=e,i.templateSpans=n(r),i}function ht(e,t,n){return e.head!==t||e.templateSpans!==n?r(mt(t,n),e):e}function yt(e,r){var n=t(197);return n.asteriskToken=e&&39===e.kind?e:void 0,n.expression=e&&39!==e.kind?e:r,n}function vt(e,t,n){return e.expression!==n||e.asteriskToken!==t?r(yt(t,n),e):e}function bt(r){var n=t(198);return n.expression=e.parenthesizeExpressionForList(r),n}function kt(e,t){return e.expression!==t?r(bt(t),e):e}function xt(e,r,i,a,o){var s=t(199);return s.decorators=void 0,s.modifiers=ri(e),s.name=ei(r),s.typeParameters=ri(i),s.heritageClauses=ri(a),s.members=n(o),s}function St(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?r(xt(t,n,i,a,o),e):e}function Ct(){return t(200)}function Et(r,n){var i=t(201);return i.expression=e.parenthesizeForAccess(n),i.typeArguments=ri(r),i}function Dt(e,t,n){return e.typeArguments!==t||e.expression!==n?r(Et(t,n),e):e}function Tt(e,r){var n=t(202);return n.expression=e,n.type=r,n}function wt(e,t,n){return e.expression!==t||e.type!==n?r(Tt(t,n),e):e}function At(r){var n=t(203);return n.expression=e.parenthesizeForAccess(r),n}function Nt(e,t){return e.expression!==t?r(At(t),e):e}function Pt(e,r){var n=t(205);return n.expression=e,n.literal=r,n}function Mt(e,t,n){return e.expression!==t||e.literal!==n?r(Pt(t,n),e):e}function Ot(e,r){var i=t(207);return i.statements=n(e),r&&(i.multiLine=r),i}function It(e,t){return t!==e.statements?r(Ot(t,e.multiLine),e):e}function Ft(r,n){var i=t(208);return i.decorators=void 0,i.modifiers=ri(r),i.declarationList=e.isArray(n)?Lt(n):n,i}function Rt(e,t,n){return e.modifiers!==t||e.declarationList!==n?r(Ft(t,n),e):e}function Lt(e,r){var i=t(227);return i.flags|=r,i.declarations=n(e),i}function Bt(e,t){return e.declarations!==t?r(Lt(t,e.flags),e):e}function jt(r,n,i){var a=t(226);return a.name=ei(r),a.type=n,a.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,a}function zt(e,t,n,i){return e.name!==t||e.type!==n||e.initializer!==i?r(jt(t,n,i),e):e}function Kt(){return t(209)}function Jt(r){var n=t(210);return n.expression=e.parenthesizeExpressionForExpressionStatement(r),n}function qt(e,t){return e.expression!==t?r(Jt(t),e):e}function Ut(e,r,n){var i=t(211);return i.expression=e,i.thenStatement=r,i.elseStatement=n,i}function Vt(e,t,n,i){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==i?r(Ut(t,n,i),e):e}function Ht(e,r){var n=t(212);return n.statement=e,n.expression=r,n}function Wt(e,t,n){return e.statement!==t||e.expression!==n?r(Ht(t,n),e):e}function Gt(e,r){var n=t(213);return n.expression=e,n.statement=r,n}function Xt(e,t,n){return e.expression!==t||e.statement!==n?r(Gt(t,n),e):e}function Yt(e,r,n,i){var a=t(214);return a.initializer=e,a.condition=r,a.incrementor=n,a.statement=i,a}function Qt(e,t,n,i,a){return e.initializer!==t||e.condition!==n||e.incrementor!==i||e.statement!==a?r(Yt(t,n,i,a),e):e}function Zt(e,r,n){var i=t(215);return i.initializer=e,i.expression=r,i.statement=n,i}function $t(e,t,n,i){return e.initializer!==t||e.expression!==n||e.statement!==i?r(Zt(t,n,i),e):e}function er(e,r,n,i){var a=t(216);return a.awaitModifier=e,a.initializer=r,a.expression=n,a.statement=i,a}function tr(e,t,n,i,a){return e.awaitModifier!==t||e.initializer!==n||e.expression!==i||e.statement!==a?r(er(t,n,i,a),e):e}function rr(e){var r=t(217);return r.label=ei(e),r}function nr(e,t){return e.label!==t?r(rr(t),e):e}function ir(e){var r=t(218);return r.label=ei(e),r}function ar(e,t){return e.label!==t?r(ir(t),e):e}function or(e){var r=t(219);return r.expression=e,r}function sr(e,t){return e.expression!==t?r(or(t),e):e}function cr(e,r){var n=t(220);return n.expression=e,n.statement=r,n}function ur(e,t,n){return e.expression!==t||e.statement!==n?r(cr(t,n),e):e}function lr(r,n){var i=t(221);return i.expression=e.parenthesizeExpressionForList(r),i.caseBlock=n,i}function dr(e,t,n){return e.expression!==t||e.caseBlock!==n?r(lr(t,n),e):e}function fr(e,r){var n=t(222);return n.label=ei(e),n.statement=r,n}function _r(e,t,n){return e.label!==t||e.statement!==n?r(fr(t,n),e):e}function pr(e){var r=t(223);return r.expression=e,r}function gr(e,t){return e.expression!==t?r(pr(t),e):e}function mr(e,r,n){var i=t(224);return i.tryBlock=e,i.catchClause=r,i.finallyBlock=n,i}function hr(e,t,n,i){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==i?r(mr(t,n,i),e):e}function yr(e,r,i,a,o,s,c,u){var l=t(228);return l.decorators=ri(e),l.modifiers=ri(r),l.asteriskToken=i,l.name=ei(a),l.typeParameters=ri(o),l.parameters=n(s),l.type=c,l.body=u,l}function vr(e,t,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?r(yr(t,n,i,a,o,s,c,u),e):e}function br(e,r,i,a,o,s){var c=t(229);return c.decorators=ri(e),c.modifiers=ri(r),c.name=ei(i),c.typeParameters=ri(a),c.heritageClauses=ri(o),c.members=n(s),c}function kr(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(br(t,n,i,a,o,s),e):e}function xr(e,r,i,a){var o=t(232);return o.decorators=ri(e),o.modifiers=ri(r),o.name=ei(i),o.members=n(a),o}function Sr(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.members!==a?r(xr(t,n,i,a),e):e}function Cr(e,r,n,i,a){var o=t(233);return o.flags|=a,o.decorators=ri(e),o.modifiers=ri(r),o.name=n,o.body=i,o}function Er(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.body!==a?r(Cr(t,n,i,a,e.flags),e):e}function Dr(e){var r=t(234);return r.statements=n(e),r}function Tr(e,t){return e.statements!==t?r(Dr(t),e):e}function wr(e){var r=t(235);return r.clauses=n(e),r}function Ar(e,t){return e.clauses!==t?r(wr(t),e):e}function Nr(e,r,n,i){var a=t(237);return a.decorators=ri(e),a.modifiers=ri(r),a.name=ei(n),a.moduleReference=i,a}function Pr(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.moduleReference!==a?r(Nr(t,n,i,a),e):e}function Mr(e,r,n,i){var a=t(238);return a.decorators=ri(e),a.modifiers=ri(r),a.importClause=n,a.moduleSpecifier=i,a}function Or(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.importClause!==i||e.moduleSpecifier!==a?r(Mr(t,n,i,a),e):e}function Ir(e,r){var n=t(239);return n.name=e,n.namedBindings=r,n}function Fr(e,t,n){return e.name!==t||e.namedBindings!==n?r(Ir(t,n),e):e}function Rr(e){var r=t(240);return r.name=e,r}function Lr(e,t){return e.name!==t?r(Rr(t),e):e}function Br(e){var r=t(241);return r.elements=n(e),r}function jr(e,t){return e.elements!==t?r(Br(t),e):e}function zr(e,r){var n=t(242);return n.propertyName=e,n.name=r,n}function Kr(e,t,n){return e.propertyName!==t||e.name!==n?r(zr(t,n),e):e}function Jr(e,r,n,i){var a=t(243);return a.decorators=ri(e),a.modifiers=ri(r),a.isExportEquals=n,a.expression=i,a}function qr(e,t,n,i){return e.decorators!==t||e.modifiers!==n||e.expression!==i?r(Jr(t,n,e.isExportEquals,i),e):e}function Ur(e,r,n,i){var a=t(244);return a.decorators=ri(e),a.modifiers=ri(r),a.exportClause=n,a.moduleSpecifier=i,a}function Vr(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.exportClause!==i||e.moduleSpecifier!==a?r(Ur(t,n,i,a),e):e}function Hr(e){var r=t(245);return r.elements=n(e),r}function Wr(e,t){return e.elements!==t?r(Hr(t),e):e}function Gr(e,r){var n=t(246);return n.propertyName=ei(e),n.name=ei(r),n}function Xr(e,t,n){return e.propertyName!==t||e.name!==n?r(Gr(t,n),e):e}function Yr(e){var r=t(248);return r.expression=e,r}function Qr(e,t){return e.expression!==t?r(Yr(t),e):e}function Zr(e,r,i){var a=t(249);return a.openingElement=e,a.children=n(r),a.closingElement=i,a}function $r(e,t,n,i){return e.openingElement!==t||e.children!==n||e.closingElement!==i?r(Zr(t,n,i),e):e}function en(e,r){var n=t(250);return n.tagName=e,n.attributes=r,n}function tn(e,t,n){return e.tagName!==t||e.attributes!==n?r(en(t,n),e):e}function rn(e,r){var n=t(251);return n.tagName=e,n.attributes=r,n}function nn(e,t,n){return e.tagName!==t||e.attributes!==n?r(rn(t,n),e):e}function an(e){var r=t(252);return r.tagName=e,r}function on(e,t){return e.tagName!==t?r(an(t),e):e}function sn(e){var r=t(254);return r.properties=n(e),r}function cn(e,t){return e.properties!==t?r(sn(t),e):e}function un(e,r){var n=t(253);return n.name=e,n.initializer=r,n}function ln(e,t,n){return e.name!==t||e.initializer!==n?r(un(t,n),e):e}function dn(e){var r=t(255);return r.expression=e,r}function fn(e,t){return e.expression!==t?r(dn(t),e):e}function _n(e,r){var n=t(256);return n.dotDotDotToken=e,n.expression=r,n}function pn(e,t){return e.expression!==t?r(_n(e.dotDotDotToken,t),e):e}function gn(e,r){var i=t(259);return i.token=e,i.types=n(r),i}function mn(e,t){return e.types!==t?r(gn(e.token,t),e):e}function hn(r,i){var a=t(257);return a.expression=e.parenthesizeExpressionForList(r),a.statements=n(i),a}function yn(e,t,n){return e.expression!==t||e.statements!==n?r(hn(t,n),e):e}function vn(e){var r=t(258);return r.statements=n(e),r}function bn(e,t){return e.statements!==t?r(vn(t),e):e}function kn(e,r){var n=t(260);return n.variableDeclaration="string"==typeof e?jt(e):e,n.block=r,n}function xn(e,t,n){return e.variableDeclaration!==t||e.block!==n?r(kn(t,n),e):e}function Sn(r,n){var i=t(261);return i.name=ei(r),i.questionToken=void 0,i.initializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,i}function Cn(e,t,n){return e.name!==t||e.initializer!==n?r(Sn(t,n),e):e}function En(r,n){var i=t(262);return i.name=ei(r),i.objectAssignmentInitializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,i}function Dn(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?r(En(t,n),e):e}function Tn(r){var n=t(263);return n.expression=void 0!==r?e.parenthesizeExpressionForList(r):void 0,n}function wn(e,t){return e.expression!==t?r(Tn(t),e):e}function An(r,n){var i=t(264);return i.name=ei(r),i.initializer=n&&e.parenthesizeExpressionForList(n),i}function Nn(e,t,n){return e.name!==t||e.initializer!==n?r(An(t,n),e):e}function Pn(e,i){if(e.statements!==i){var a=t(265);return a.flags|=e.flags,a.statements=n(i),a.endOfFileToken=e.endOfFileToken,a.fileName=e.fileName,a.path=e.path,a.text=e.text,void 0!==e.amdDependencies&&(a.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(a.moduleName=e.moduleName),void 0!==e.referencedFiles&&(a.referencedFiles=e.referencedFiles),void 0!==e.typeReferenceDirectives&&(a.typeReferenceDirectives=e.typeReferenceDirectives),void 0!==e.languageVariant&&(a.languageVariant=e.languageVariant),void 0!==e.isDeclarationFile&&(a.isDeclarationFile=e.isDeclarationFile),void 0!==e.renamedDependencies&&(a.renamedDependencies=e.renamedDependencies),void 0!==e.hasNoDefaultLib&&(a.hasNoDefaultLib=e.hasNoDefaultLib),void 0!==e.languageVersion&&(a.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(a.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(a.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(a.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(a.identifiers=e.identifiers),void 0!==e.nodeCount&&(a.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(a.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(a.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(a.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(a.bindDiagnostics=e.bindDiagnostics),void 0!==e.lineMap&&(a.lineMap=e.lineMap),void 0!==e.classifiableNames&&(a.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(a.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(a.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(a.imports=e.imports),void 0!==e.moduleAugmentations&&(a.moduleAugmentations=e.moduleAugmentations),r(a,e)}return e}function Mn(e){var t=i(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t}function On(e){var r=t(295);return r.original=e,oi(r,e),r}function In(e){var r=t(298);return r.emitNode={},r.original=e,r}function Fn(e){var r=t(297);return r.emitNode={},r.original=e,r}function Rn(e,r){var n=t(296);return n.expression=e,n.original=r,oi(n,r),n}function Ln(e,t){return e.expression!==t?r(Rn(t,e.original),e):e}function Bn(t){var r=e.createNode(266);return r.sourceFiles=t,r}function jn(e,t){return e.sourceFiles!==t?Bn(t):e}function zn(e,t){return ft(e,26,t)}function Kn(e,t){return ft(e,27,t)}function Jn(e,t){return ft(e,58,t)}function qn(e,t){return ft(e,34,t)}function Un(e,t){return ft(e,35,t)}function Vn(e,t){return ft(e,37,t)}function Hn(e,t){return ft(e,38,t)}function Wn(e){return lt(e,43)}function Gn(e,t){return ft(e,53,t)}function Xn(e,t){return ft(e,54,t)}function Yn(e){return ct(51,e)}function Qn(){return it(a(0))}function Zn(e){return Jr(void 0,void 0,!1,e)}function $n(e){return Ur(void 0,void 0,Hr([Gr(void 0,e)]))}function ei(e){return"string"==typeof e?u(e):e}function ti(e){return"string"==typeof e||"number"==typeof e?a(e):e}function ri(e){return e?n(e):void 0}function ni(e){return"number"==typeof e?p(e):e}function ii(t){t=e.getSourceFileOfNode(e.getParseTreeNode(t));var r=t&&t.emitNode,n=r&&r.annotatedNodes;if(n)for(var i=0,a=n;i0&&(a[c-s]=u)}s>0&&(a.length-=s)}}function wi(t,r){return t===r?0:t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)}function Ai(e,t){if(e.original=t,t){var r=t.emitNode;r&&(e.emitNode=Ni(r,e.emitNode))}return e}function Ni(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers;return r||(r={}),i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments)),a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments)),n&&(r.flags=n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=Pi(c,r.tokenSourceMapRanges)),void 0!==u&&(r.constantValue=u),l&&(r.helpers=e.addRange(r.helpers,l)),r}function Pi(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}e.updateNode=r,e.createNodeArray=n,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createIdentifier=u;var Mi=0;e.createTempVariable=l,e.createLoopVariable=d,e.createUniqueName=f,e.getGeneratedNameForNode=_,e.createToken=p,e.createSuper=g,e.createThis=m,e.createNull=h,e.createTrue=y,e.createFalse=v,e.createQualifiedName=b,e.updateQualifiedName=k,e.createComputedPropertyName=x,e.updateComputedPropertyName=S,e.createSignatureDeclaration=C,e.createFunctionTypeNode=D,e.updateFunctionTypeNode=T,e.createConstructorTypeNode=w,e.updateConstructorTypeNode=A,e.createCallSignatureDeclaration=N,e.updateCallSignatureDeclaration=P,e.createConstructSignatureDeclaration=M,e.updateConstructSignatureDeclaration=O,e.createMethodSignature=I,e.updateMethodSignature=F,e.createKeywordTypeNode=R,e.createThisTypeNode=L,e.createLiteralTypeNode=B,e.updateLiteralTypeNode=j,e.createTypeReferenceNode=z,e.updateTypeReferenceNode=K,e.createTypePredicateNode=J,e.updateTypePredicateNode=q,e.createTypeQueryNode=U,e.updateTypeQueryNode=V,e.createArrayTypeNode=H,e.updateArrayTypeNode=W,e.createUnionOrIntersectionTypeNode=G,e.updateUnionOrIntersectionTypeNode=X,e.createTypeLiteralNode=Y,e.updateTypeLiteralNode=Q,e.createTupleTypeNode=Z,e.updateTypleTypeNode=$,e.createMappedTypeNode=ee,e.updateMappedTypeNode=te,e.createTypeOperatorNode=re,e.updateTypeOperatorNode=ne,e.createIndexedAccessTypeNode=ie,e.updateIndexedAccessTypeNode=ae,e.createTypeParameterDeclaration=oe,e.updateTypeParameterDeclaration=se,e.createPropertySignature=ce,e.updatePropertySignature=ue,e.createIndexSignatureDeclaration=le,e.updateIndexSignatureDeclaration=de,e.createParameter=fe,e.updateParameter=_e,e.createDecorator=pe,e.updateDecorator=ge,e.createProperty=me,e.updateProperty=he,e.createMethodDeclaration=ye,e.updateMethod=ve,e.createConstructor=be,e.updateConstructor=ke,e.createGetAccessor=xe,e.updateGetAccessor=Se,e.createSetAccessor=Ce,e.updateSetAccessor=Ee,e.createObjectBindingPattern=De,e.updateObjectBindingPattern=Te,e.createArrayBindingPattern=we,e.updateArrayBindingPattern=Ae,e.createBindingElement=Ne,e.updateBindingElement=Pe,e.createArrayLiteral=Me,e.updateArrayLiteral=Oe,e.createObjectLiteral=Ie,e.updateObjectLiteral=Fe,e.createPropertyAccess=Re,e.updatePropertyAccess=Le,e.createElementAccess=Be,e.updateElementAccess=je,e.createCall=ze,e.updateCall=Ke,e.createNew=Je,e.updateNew=qe,e.createTaggedTemplate=Ue,e.updateTaggedTemplate=Ve,e.createTypeAssertion=He,e.updateTypeAssertion=We,e.createParen=Ge,e.updateParen=Xe,e.createFunctionExpression=Ye,e.updateFunctionExpression=Qe,e.createArrowFunction=Ze,e.updateArrowFunction=$e,e.createDelete=et,e.updateDelete=tt,e.createTypeOf=rt,e.updateTypeOf=nt,e.createVoid=it,e.updateVoid=at,e.createAwait=ot,e.updateAwait=st,e.createPrefix=ct,e.updatePrefix=ut,e.createPostfix=lt,e.updatePostfix=dt,e.createBinary=ft,e.updateBinary=_t,e.createConditional=pt,e.updateConditional=gt,e.createTemplateExpression=mt,e.updateTemplateExpression=ht,e.createYield=yt,e.updateYield=vt,e.createSpread=bt,e.updateSpread=kt,e.createClassExpression=xt,e.updateClassExpression=St,e.createOmittedExpression=Ct,e.createExpressionWithTypeArguments=Et,e.updateExpressionWithTypeArguments=Dt,e.createAsExpression=Tt,e.updateAsExpression=wt,e.createNonNullExpression=At,e.updateNonNullExpression=Nt,e.createTemplateSpan=Pt,e.updateTemplateSpan=Mt,e.createBlock=Ot,e.updateBlock=It,e.createVariableStatement=Ft,e.updateVariableStatement=Rt,e.createVariableDeclarationList=Lt,e.updateVariableDeclarationList=Bt,e.createVariableDeclaration=jt,e.updateVariableDeclaration=zt,e.createEmptyStatement=Kt,e.createStatement=Jt,e.updateStatement=qt,e.createIf=Ut,e.updateIf=Vt,e.createDo=Ht,e.updateDo=Wt,e.createWhile=Gt,e.updateWhile=Xt,e.createFor=Yt,e.updateFor=Qt,e.createForIn=Zt,e.updateForIn=$t,e.createForOf=er,e.updateForOf=tr,e.createContinue=rr,e.updateContinue=nr,e.createBreak=ir,e.updateBreak=ar,e.createReturn=or,e.updateReturn=sr,e.createWith=cr,e.updateWith=ur,e.createSwitch=lr,e.updateSwitch=dr,e.createLabel=fr,e.updateLabel=_r,e.createThrow=pr,e.updateThrow=gr,e.createTry=mr,e.updateTry=hr,e.createFunctionDeclaration=yr,e.updateFunctionDeclaration=vr,e.createClassDeclaration=br,e.updateClassDeclaration=kr,e.createEnumDeclaration=xr,e.updateEnumDeclaration=Sr,e.createModuleDeclaration=Cr,e.updateModuleDeclaration=Er,e.createModuleBlock=Dr,e.updateModuleBlock=Tr,e.createCaseBlock=wr,e.updateCaseBlock=Ar,e.createImportEqualsDeclaration=Nr,e.updateImportEqualsDeclaration=Pr,e.createImportDeclaration=Mr,e.updateImportDeclaration=Or,e.createImportClause=Ir,e.updateImportClause=Fr,e.createNamespaceImport=Rr,e.updateNamespaceImport=Lr,e.createNamedImports=Br,e.updateNamedImports=jr,e.createImportSpecifier=zr,e.updateImportSpecifier=Kr,e.createExportAssignment=Jr,e.updateExportAssignment=qr,e.createExportDeclaration=Ur,e.updateExportDeclaration=Vr,e.createNamedExports=Hr,e.updateNamedExports=Wr,e.createExportSpecifier=Gr;e.updateExportSpecifier=Xr,e.createExternalModuleReference=Yr,e.updateExternalModuleReference=Qr,e.createJsxElement=Zr,e.updateJsxElement=$r,e.createJsxSelfClosingElement=en,e.updateJsxSelfClosingElement=tn,e.createJsxOpeningElement=rn,e.updateJsxOpeningElement=nn,e.createJsxClosingElement=an,e.updateJsxClosingElement=on,e.createJsxAttributes=sn,e.updateJsxAttributes=cn,e.createJsxAttribute=un,e.updateJsxAttribute=ln,e.createJsxSpreadAttribute=dn,e.updateJsxSpreadAttribute=fn,e.createJsxExpression=_n,e.updateJsxExpression=pn,e.createHeritageClause=gn,e.updateHeritageClause=mn,e.createCaseClause=hn,e.updateCaseClause=yn,e.createDefaultClause=vn,e.updateDefaultClause=bn,e.createCatchClause=kn,e.updateCatchClause=xn,e.createPropertyAssignment=Sn,e.updatePropertyAssignment=Cn,e.createShorthandPropertyAssignment=En,e.updateShorthandPropertyAssignment=Dn,e.createSpreadAssignment=Tn,e.updateSpreadAssignment=wn,e.createEnumMember=An,e.updateEnumMember=Nn,e.updateSourceFileNode=Pn,e.getMutableClone=Mn,e.createNotEmittedStatement=On,e.createEndOfDeclarationMarker=In,e.createMergeDeclarationMarker=Fn,e.createPartiallyEmittedExpression=Rn,e.updatePartiallyEmittedExpression=Ln,e.createBundle=Bn,e.updateBundle=jn,e.createComma=zn,e.createLessThan=Kn,e.createAssignment=Jn,e.createStrictEquality=qn,e.createStrictInequality=Un,e.createAdd=Vn,e.createSubtract=Hn,e.createPostfixIncrement=Wn,e.createLogicalAnd=Gn,e.createLogicalOr=Xn,e.createLogicalNot=Yn,e.createVoidZero=Qn,e.createExportDefault=Zn,e.createExternalModuleExport=$n,e.disposeEmitNodes=ii,e.getOrCreateEmitNode=ai,e.setTextRange=oi,e.getEmitFlags=si,e.setEmitFlags=ci,e.getSourceMapRange=ui,e.setSourceMapRange=li,e.getTokenSourceMapRange=di,e.setTokenSourceMapRange=fi,e.getCommentRange=_i,e.setCommentRange=pi,e.getSyntheticLeadingComments=gi,e.setSyntheticLeadingComments=mi,e.addSyntheticLeadingComment=hi,e.getSyntheticTrailingComments=yi,e.setSyntheticTrailingComments=vi,e.addSyntheticTrailingComment=bi,e.getConstantValue=ki,e.setConstantValue=xi,e.addEmitHelper=Si,e.addEmitHelpers=Ci,e.removeEmitHelper=Ei,e.getEmitHelpers=Di,e.moveEmitHelpers=Ti,e.compareEmitHelpers=wi,e.setOriginalNode=Ai}(o||(o={})),function(e){function t(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))}function r(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var i=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function n(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[r].concat(n)),i)}function i(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[r,n]),i)}function a(t,r){var n=[];return void 0!==r&&n.push("number"==typeof r?e.createLiteral(r):r),e.createCall(e.createPropertyAccess(t,"slice"),void 0,n)}function o(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,r)}function s(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,r]),n)}function c(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function u(t,r){if(e.isQualifiedName(t)){var n=u(t.left,r),i=e.createIdentifier(t.right.text);return i.text=t.right.text,e.createPropertyAccess(n,i)}return c(t.text,r)}function l(t,r,n){return t?u(t,n):e.createPropertyAccess(c(r,n),"createElement")}function d(t,r,n,i,a,o,s){var c=[n];if(i&&c.push(i),a&&a.length>0)if(i||c.push(e.createNull()),a.length>1)for(var u=0,d=a;u0;default:return!0}}function b(t,r,n,i){var a,o,s=se(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=n<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=Z(s);else switch(s.kind){case 179:v(s.expression,i)?(a=e.createTempVariable(r),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 180:v(s.expression,i)?(a=e.createTempVariable(r),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=Z(t)}return{target:o,thisArg:a}}function k(t){return e.reduceLeft(t,e.createComma)}function x(t){if(e.isQualifiedName(t)){var r=x(t.left),n=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(r,n),t)}return e.getMutableClone(t)}function S(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function C(e,t,r){switch(t.kind){case 153:case 154:return E(e.properties,t,r,e.multiLine);case 261:return D(t,r);case 262:return T(t,r);case 151:return w(t,r)}}function E(t,r,n,i){var a=e.getAllAccessorDeclarations(t,r),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(r===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(l,s),e.setOriginalNode(l,s);var d=e.createPropertyAssignment("get",l);u.push(d)}if(c){var f=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(f,c),e.setOriginalNode(f,c);var _=e.createPropertyAssignment("set",f);u.push(_)}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var p=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[n,S(r.name),e.createObjectLiteral(u,i)]),o);return e.aggregateTransformFlags(p)}}function D(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),t.initializer),t),t))}function T(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function w(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function A(e,t,r){return I(e,t,r,16384)}function N(t){return 0!=(16384&e.getEmitFlags(t))}function P(e,t,r){return I(e,t,r,8192)}function M(t){return 0!=(8192&e.getEmitFlags(t))}function O(e,t,r){return I(e,t,r)}function I(t,r,n,i){if(t.name&&e.isIdentifier(t.name)&&!e.isGeneratedIdentifier(t.name)){var a=e.getMutableClone(t.name);return i|=e.getEmitFlags(t.name),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(a,i),a}return e.getGeneratedNameForNode(t)}function F(t,r,n,i){return t&&e.hasModifier(r,1)?R(t,I(r),n,i):P(r,n,i)}function R(t,r,n,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));e.setTextRange(a,r);var o;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function L(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)}function B(e){return"use strict"===e.expression.text}function j(e,t,r,n){return K(e,t,z(e,t,r),n)}function z(t,r,n){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=r.length;ae.getOperatorPrecedence(194,26)?t:e.setTextRange(e.createParen(t),t)}function ne(t){var r=le(t);if(e.isCallExpression(r)){var n=r.expression,i=le(n).kind;if(186===i||187===i){var a=e.getMutableClone(r);return a.expression=e.setTextRange(e.createParen(n),n),ie(t,a)}}else{var o=ae(r).kind;if(178===o||186===o)return e.setTextRange(e.createParen(t),t)}return t}function ie(t,r){if(e.isPartiallyEmittedExpression(t)){var n=e.getMutableClone(t);return n.expression=ie(n.expression,r),n}return r}function ae(e){for(;;){switch(e.kind){case 193:e=e.operand;continue;case 194:e=e.left;continue;case 195:e=e.condition;continue;case 181:case 180:case 179:case 296:e=e.expression;continue}return e}}function oe(t){return e.isBlock(t)||178!==ae(t).kind?t:e.setTextRange(e.createParen(t),t)}function se(e,t){void 0===t&&(t=7);var r;do{r=e,1&t&&(e=ce(e)),2&t&&(e=ue(e)),4&t&&(e=le(e))}while(r!==e);return e}function ce(e){for(;185===e.kind;)e=e.expression;return e}function ue(t){for(;e.isAssertionExpression(t);)t=t.expression;return t}function le(e){for(;296===e.kind;)e=e.expression;return e}function de(e){return e.startsOnNewLine=!0,e}function fe(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function _e(t,r){if(r.importHelpers&&(e.isExternalModule(t)||r.isolatedModules)){var n=fe(t);if(n)return n;var i=e.getEmitHelpers(t);if(i)for(var a=0,o=i;a= o.length) o = void 0;\n                        return { value: o && o[i++], done: !o };\n                    }\n                };\n            };\n        '};e.createValuesHelper=_;var Ie={name:"typescript:read",scoped:!1,text:'\n            var __read = (this && this.__read) || function (o, n) {\n                var m = typeof Symbol === "function" && o[Symbol.iterator];\n                if (!m) return o;\n                var i = m.call(o), r, ar = [], e;\n                try {\n                    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n                }\n                catch (error) { e = { error: error }; }\n                finally {\n                    try {\n                        if (r && !r.done && (m = i["return"])) m.call(i);\n                    }\n                    finally { if (e) throw e.error; }\n                }\n                return ar;\n            };\n        '};e.createReadHelper=p;var Fe={name:"typescript:spread",scoped:!1,text:"\n            var __spread = (this && this.__spread) || function () {\n                for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n                return ar;\n            };"};e.createSpreadHelper=g,e.createForOfBindingStatement=m,e.insertLeadingStatement=h,e.restoreEnclosingLabel=y,e.createCallBinding=b,e.inlineExpressions=k,e.createExpressionFromEntityName=x,e.createExpressionForPropertyName=S,e.createExpressionForObjectLiteralElementLike=C,e.getLocalName=A,e.isLocalName=N,e.getExportName=P,e.isExportName=M,e.getDeclarationName=O,e.getExternalModuleOrNamespaceExportName=F,e.getNamespaceMemberName=R,e.convertToFunctionBody=L,e.addPrologue=j,e.addStandardPrologue=z,e.addCustomPrologue=K,e.startsWithUseStrict=J,e.ensureUseStrict=q,e.parenthesizeConditionalHead=U,e.parenthesizeBinaryOperand=V,e.parenthesizeForConditionalHead=X,e.parenthesizeSubexpressionOfConditionalExpression=Y,e.parenthesizeForNew=Q,e.parenthesizeForAccess=Z,e.parenthesizePostfixOperand=$,e.parenthesizePrefixOperand=ee,e.parenthesizeListElements=te,e.parenthesizeExpressionForList=re,e.parenthesizeExpressionForExpressionStatement=ne,e.parenthesizeConciseBody=oe;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.skipOuterExpressions=se,e.skipParentheses=ce,e.skipAssertions=ue,e.skipPartiallyEmittedExpressions=le,e.startOnNewLine=de,e.getExternalHelpersModuleName=fe,e.getOrCreateExternalHelpersModuleNameIfNeeded=_e,e.getLocalNameForExternalImport=pe,e.getExternalModuleNameLiteral=ge,e.tryGetModuleNameFromFile=he,e.getInitializerOfBindingOrAssignmentElement=ve,e.getTargetOfBindingOrAssignmentElement=be,e.getRestIndicatorOfBindingOrAssignmentElement=ke,e.getPropertyNameOfBindingOrAssignmentElement=xe,e.getElementsOfBindingOrAssignmentPattern=Se,e.convertToArrayAssignmentElement=Ce,e.convertToObjectAssignmentElement=Ee,e.convertToAssignmentPattern=De,e.convertToObjectAssignmentPattern=Te,e.convertToArrayAssignmentPattern=we,e.convertToAssignmentElementTarget=Ae,e.collectExternalModuleInfo=Ne}(o||(o={}));var o;!function(e){function t(t,r,n){return 265===t?new(g||(g=e.objectAllocator.getSourceFileConstructor()))(t,r,n):71===t?new(p||(p=e.objectAllocator.getIdentifierConstructor()))(t,r,n):t<143?new(_||(_=e.objectAllocator.getTokenConstructor()))(t,r,n):new(f||(f=e.objectAllocator.getNodeConstructor()))(t,r,n)}function r(e,t){if(t)return e(t)}function n(e,t){if(t)return e(t)}function i(e,t){if(t)for(var r=0,n=t;r107)}function G(t,r,n){return void 0===n&&(n=!0),R()===t?(n&&L(),!0):(r?P(r):P(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function X(e){return R()===e&&(L(),!0)}function Y(e){if(R()===e)return Z()}function Q(e,t,r,n){return Y(e)||ie(e,t,r,n)}function Z(){var e=te(R());return L(),ne(e)}function $(){return 25===R()||(18===R()||1===R()||da.hasPrecedingLineBreak())}function ee(){return $()?(25===R()&&L(),!0):G(25)}function te(e,t){return oa++,t>=0||(t=da.getStartPos()),e>=143?new Qi(e,t,t):71===e?new $i(e,t,t):new Zi(e,t,t)}function re(e,t){var r=e||[];return t>=0||(t=I()),r.pos=t,r.end=t,r}function ne(e,t){return e.end=void 0===t?da.getStartPos():t,la&&(e.flags|=la),_a&&(_a=!1,e.flags|=32768),e}function ie(e,t,r,n){t?M(da.getStartPos(),0,r,n):P(r,n);var i=te(e,da.getStartPos());return i.text="",ne(i)}function ae(t){t=e.escapeIdentifier(t);var r=sa.get(t);return void 0===r&&sa.set(t,r=t),r}function oe(t,r){if(ca++,t){var n=te(71);return 71!==R()&&(n.originalKeywordKind=R()),n.text=ae(da.getTokenValue()),L(),ne(n)}return ie(71,!1,r||e.Diagnostics.Identifier_expected)}function se(e){return oe(W(),e)}function ce(){return oe(e.tokenIsIdentifierOrKeyword(R()))}function ue(){return e.tokenIsIdentifierOrKeyword(R())||9===R()||8===R()}function le(e){return 9===R()||8===R()?Qe(!0):e&&21===R()?pe():ce()}function de(){return le(!0)}function fe(){return le(!1)}function _e(){return 9===R()||8===R()||e.tokenIsIdentifierOrKeyword(R())}function pe(){var e=te(144);return G(21),e.expression=v(er),G(22),ne(e)}function ge(e){return R()===e&&H(he)}function me(){return L(),!da.hasPrecedingLineBreak()&&ve()}function he(){return 76===R()?83===L():84===R()?(L(),79===R()?V(be):39!==R()&&118!==R()&&17!==R()&&ve()):79===R()?be():115===R()?(L(),ve()):me()}function ye(){return e.isModifierKind(R())&&H(he)}function ve(){return 21===R()||17===R()||39===R()||24===R()||ue()}function be(){return L(),75===R()||89===R()||117===R()&&V(On)||120===R()&&V(In)}function ke(t,r){if(Me(t))return!0;switch(t){case 0:case 1:case 3:return!(25===R()&&r)&&Bn();case 2:return 73===R()||79===R();case 4:return V(bt);case 5:return V(ui)||25===R()&&!r;case 6:return 21===R()||ue();case 12:return 21===R()||39===R()||24===R()||ue();case 17:return ue();case 9:return 21===R()||24===R()||ue();case 7:return 17===R()?V(xe):r?W()&&!Ee():Qt()&&!Ee();case 8:return Xn();case 10:return 26===R()||24===R()||Xn();case 18:return W();case 11:case 15:return 26===R()||24===R()||Zt();case 16:return ct();case 19:case 20:return 26===R()||Ft();case 21:return xi();case 22:return e.tokenIsIdentifierOrKeyword(R());case 13:return e.tokenIsIdentifierOrKeyword(R())||17===R();case 14:return!0;case 23:case 24:case 26:return ma.isJSDocType();case 25:return _e()}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function xe(){if(e.Debug.assert(17===R()),18===L()){var t=L();return 26===t||17===t||85===t||108===t}return!0}function Se(){return L(),W()}function Ce(){return L(),e.tokenIsIdentifierOrKeyword(R())}function Ee(){return(108===R()||85===R())&&V(De)}function De(){return L(),Zt()}function Te(e){if(1===R())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===R();case 3:return 18===R()||73===R()||79===R();case 7:return 17===R()||85===R()||108===R();case 8:return we();case 18:return 29===R()||19===R()||17===R()||85===R()||108===R();case 11:return 20===R()||25===R();case 15:case 20:case 10:return 22===R();case 16:case 17:return 20===R()||22===R();case 19:return 26!==R();case 21:return 17===R()||18===R();case 13:return 29===R()||41===R();case 14:return 27===R()&&V(Ii);case 23:return 20===R()||56===R()||18===R();case 24:return 29===R()||18===R();case 26:return 22===R()||18===R();case 25:return 18===R()}}function we(){return!!$()||(!!hr(R())||36===R())}function Ae(){for(var e=0;e<27;e++)if(ua&1<=0&&(i.hasTrailingComma=!0),i.end=F(),ua=n,i}function Ve(){return re()}function He(e,t,r,n){if(G(r)){var i=Ue(e,t);return G(n),i}return Ve()}function We(e,t){for(var r=se(t);X(23);){var n=te(143,r.pos);n.left=r,n.right=Ge(e),r=ne(n)}return r}function Ge(t){if(da.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(R())){if(V(Mn))return ie(71,!0,e.Diagnostics.Identifier_expected)}return t?ce():se()}function Xe(){var t=te(196);t.head=Ze(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var r=re();do{r.push(Ye())}while(15===e.lastOrUndefined(r).literal.kind);return r.end=F(),t.templateSpans=r,ne(t)}function Ye(){var t=te(205);t.expression=v(er);var r;return 18===R()?(z(),r=$e()):r=Q(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=r,ne(t)}function Qe(e){return et(R(),e)}function Ze(){var t=et(R(),!1);return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function $e(){var t=et(R(),!1);return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function et(e,t){var r=te(e),n=da.getTokenValue();return r.text=t?ae(n):n,da.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),da.isUnterminated()&&(r.isUnterminated=!0),8===r.kind&&(r.numericLiteralFlags=da.getNumericLiteralFlags()),L(),ne(r),r}function tt(){var t=te(159);return t.typeName=We(!1,e.Diagnostics.Type_expected),da.hasPrecedingLineBreak()||27!==R()||(t.typeArguments=He(19,Gt,27,29)),ne(t)}function rt(e){L();var t=te(158,e.pos);return t.parameterName=e,t.type=Gt(),ne(t)}function nt(){var e=te(169);return L(),ne(e)}function it(){var e=te(162);return G(103),e.exprName=We(!0),ne(e)}function at(){var e=te(145);return e.name=se(),X(85)&&(Ft()||!Zt()?e.constraint=Gt():e.expression=Ar()),X(58)&&(e.default=Gt()),ne(e)}function ot(){if(27===R())return He(18,at,27,29)}function st(){if(X(56))return Gt()}function ct(){return 24===R()||Xn()||e.isModifierKind(R())||57===R()||99===R()}function ut(){var t=te(146);return 99===R()?(t.name=oe(!0),t.type=st(),ne(t)):(t.decorators=li(),t.modifiers=di(),t.dotDotDotToken=Y(24),t.name=Yn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(R())&&L(),t.questionToken=Y(55),t.type=st(),t.initializer=lt(!0),u(ne(t)))}function lt(e){return e?dt():oi()}function dt(){return tr(!0)}function ft(e,t,r,n,i){var a=36===e;i.typeParameters=ot(),i.parameters=_t(t,r,n),a?(G(e),i.type=Ht()):X(e)&&(i.type=Ht())}function _t(e,t,r){if(G(19)){var n=T(),i=N();p(e),m(t);var a=Ue(16,ut);if(p(n),m(i),!G(20)&&r)return;return a}return r?void 0:Ve()}function pt(){X(26)||ee()}function gt(e){var t=te(e);return 156===e&&G(94),ft(56,!1,!1,!1,t),pt(),u(ne(t))}function mt(){return 21===R()&&V(ht)}function ht(){if(L(),24===R()||22===R())return!0;if(e.isModifierKind(R())){if(L(),W())return!0}else{if(!W())return!1;L()}return 56===R()||26===R()||55===R()&&(L(),56===R()||26===R()||22===R())}function yt(e,t,r){var n=te(157,e);return n.decorators=t,n.modifiers=r,n.parameters=He(16,ut,21,22),n.type=Yt(),pt(),ne(n)}function vt(e,t){var r=de(),n=Y(55);if(19===R()||27===R()){var i=te(150,e);return i.modifiers=t,i.name=r,i.questionToken=n,ft(56,!1,!1,!1,i),pt(),u(ne(i))}var a=te(148,e);return a.modifiers=t,a.name=r,a.questionToken=n,a.type=Yt(),58===R()&&(a.initializer=oi()),pt(),u(ne(a))}function bt(){if(19===R()||27===R())return!0;for(var t;e.isModifierKind(R());)t=!0,L();return 21===R()||(ue()&&(t=!0,L()),!!t&&(19===R()||27===R()||55===R()||56===R()||26===R()||$()))}function kt(){if(19===R()||27===R())return gt(155);if(94===R()&&V(xt))return gt(156);var e=I(),t=di();return mt()?yt(e,void 0,t):vt(e,t)}function xt(){return L(),19===R()||27===R()}function St(){var e=te(163);return e.members=Ct(),ne(e)}function Ct(){var e;return G(17)?(e=Ne(4,kt),G(18)):e=Ve(),e}function Et(){return L(),131===R()&&L(),21===R()&&Se()&&92===L()}function Dt(){var e=te(145);return e.name=se(),G(92),e.constraint=Gt(),ne(e)}function Tt(){var e=te(172);return G(17),e.readonlyToken=Y(131),G(21),e.typeParameter=Dt(),G(22),e.questionToken=Y(55),e.type=Yt(),ee(),G(18),ne(e)}function wt(){var e=te(165);return e.elementTypes=He(20,Gt,21,22),ne(e)}function At(){var e=te(168);return G(19),e.type=Gt(),G(20),ne(e)}function Nt(e){var t=te(e);return 161===e&&G(94),ft(36,!1,!1,!1,t),ne(t)}function Pt(){var e=Z();return 23===R()?void 0:e}function Mt(){var e=te(173);return e.literal=Nr(),ne(e),e}function Ot(){return 8===L()}function It(){switch(R()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:return H(Pt)||tt();case 9:case 8:case 101:case 86:return Mt();case 38:return V(Ot)?Mt():tt();case 105:case 95:return Z();case 99:var e=nt();return 126!==R()||da.hasPrecedingLineBreak()?e:rt(e);case 103:return it();case 17:return V(Et)?Tt():St();case 21:return wt();case 19:return At();default:return tt()}}function Ft(){switch(R()){case 119:case 136:case 133:case 122:case 137:case 105:case 139:case 95:case 99:case 103:case 130:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 134:return!0;case 38:return V(Ot);case 19:return V(Rt);default:return W()}}function Rt(){return L(),20===R()||ct()||Ft()}function Lt(){for(var e=It();!da.hasPrecedingLineBreak()&&X(21);)if(Ft()){var t=te(171,e.pos);t.objectType=e,t.indexType=Gt(),G(22),e=ne(t)}else{var t=te(164,e.pos);t.elementType=e,G(22),e=ne(t)}return e}function Bt(e){var t=te(170);return G(e),t.operator=e,t.type=jt(),ne(t)}function jt(){switch(R()){case 127:return Bt(127)}return Lt()}function zt(e,t,r){X(r);var n=t();if(R()===r){for(var i=re([n],n.pos);X(r);)i.push(t());i.end=F();var a=te(e,n.pos);a.types=i,n=ne(a)}return n}function Kt(){return zt(167,jt,48)}function Jt(){return zt(166,Kt,49)}function qt(){return 27===R()||19===R()&&V(Vt)}function Ut(){if(e.isModifierKind(R())&&di(),W()||99===R())return L(),!0;if(21===R()||17===R()){var t=ra.length;return Yn(),t===ra.length}return!1}function Vt(){if(L(),20===R()||24===R())return!0;if(Ut()){if(56===R()||26===R()||55===R()||58===R())return!0;if(20===R()&&(L(),36===R()))return!0}return!1}function Ht(){var e=W()&&H(Wt),t=Gt();if(e){var r=te(158,e.pos);return r.parameterName=e,r.type=t,ne(r)}return t}function Wt(){var e=se();if(126===R()&&!da.hasPrecedingLineBreak())return L(),e}function Gt(){return h(20480,Xt)}function Xt(){return qt()?Nt(160):94===R()?Nt(161):Jt()}function Yt(){return X(56)?Gt():void 0}function Qt(){switch(R()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;default:return W()}}function Zt(){if(Qt())return!0;switch(R()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!vr()||W()}}function $t(){return 17!==R()&&89!==R()&&75!==R()&&57!==R()&&Zt()}function er(){var e=A();e&&g(!1);for(var t,r=rr();t=Y(26);)r=kr(r,t,rr());return e&&g(!0),r}function tr(e){if(58===R()||!(da.hasPrecedingLineBreak()||e&&17===R())&&Zt())return G(58),rr()}function rr(){if(nr())return ar();var t=sr()||dr();if(t)return t;var r=mr(0);return 71===r.kind&&36===R()?or(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(B())?kr(r,Z(),rr()):gr(r)}function nr(){return 116===R()&&(!!T()||V(Fn))}function ir(){return L(),!da.hasPrecedingLineBreak()&&W()}function ar(){var e=te(197);return L(),da.hasPrecedingLineBreak()||39!==R()&&!Zt()?ne(e):(e.asteriskToken=Y(39),e.expression=rr(),ne(e))}function or(t,r){e.Debug.assert(36===R(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var n;r?(n=te(187,r.pos),n.modifiers=r):n=te(187,t.pos);var i=te(146,t.pos);return i.name=t,ne(i),n.parameters=re([i],i.pos),n.parameters.end=i.end,n.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),n.body=pr(!!r),u(ne(n))}function sr(){var t=cr();if(0!==t){var r=1===t?_r(!0):H(lr);if(r){var n=!!(256&e.getModifierFlags(r)),i=R();return r.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),r.body=36===i||17===i?pr(n):se(),u(ne(r))}}}function cr(){return 19===R()||27===R()||120===R()?V(ur):36===R()?1:0}function ur(){if(120===R()){if(L(),da.hasPrecedingLineBreak())return 0;if(19!==R()&&27!==R())return 0}var t=R(),r=L();if(19===t){if(20===r){switch(L()){case 36:case 56:case 17:return 1;default:return 0}}return 21===r||17===r?2:24===r?1:W()?56===L()?1:2:0}if(e.Debug.assert(27===t),!W())return 0;if(1===ta.languageVariant){return V(function(){var e=L();if(85===e){switch(L()){case 58:case 29:return!1;default:return!0}}else if(26===e)return!0;return!1})?1:0}return 2}function lr(){return _r(!1)}function dr(){if(120===R()){if(1===V(fr)){var e=fi();return or(mr(0),e)}}}function fr(){if(120===R()){if(L(),da.hasPrecedingLineBreak()||36===R())return 0;var e=mr(0);if(!da.hasPrecedingLineBreak()&&71===e.kind&&36===R())return 1}return 0}function _r(t){var r=te(187);if(r.modifiers=fi(),ft(56,!1,!!(256&e.getModifierFlags(r)),!t,r),r.parameters&&(t||36===R()||17===R()))return r}function pr(e){return 17===R()?pn(!1,e,!1):25!==R()&&89!==R()&&75!==R()&&Bn()&&!$t()?pn(!1,e,!0):e?S(rr):C(rr)}function gr(t){var r=Y(55);if(!r)return t;var n=te(195,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=h(fa,rr),n.colonToken=Q(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),n.whenFalse=rr(),ne(n)}function mr(e){return yr(e,Ar())}function hr(e){return 92===e||142===e}function yr(e,t){for(;;){B();var r=br();if(!(40===R()?r>=e:r>e))break;if(92===R()&&w())break;if(118===R()){if(da.hasPrecedingLineBreak())break;L(),t=xr(t,Gt())}else t=kr(t,Z(),mr(r))}return t}function vr(){return(!w()||92!==R())&&br()>0}function br(){switch(R()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function kr(e,t,r){var n=te(194,e.pos);return n.left=e,n.operatorToken=t,n.right=r,ne(n)}function xr(e,t){var r=te(202,e.pos);return r.expression=e,r.type=t,ne(r)}function Sr(){var e=te(192);return e.operator=R(),L(),e.operand=Nr(),ne(e)}function Cr(){var e=te(188);return L(),e.expression=Nr(),ne(e)}function Er(){var e=te(189);return L(),e.expression=Nr(),ne(e)}function Dr(){var e=te(190);return L(),e.expression=Nr(),ne(e)}function Tr(){return 121===R()&&(!!N()||V(ir))}function wr(){var e=te(191);return L(),e.expression=Nr(),ne(e)}function Ar(){if(Pr()){var t=Mr();return 40===R()?yr(br(),t):t}var r=R(),n=Nr();if(40===R()){var i=e.skipTrivia(aa,n.pos);184===n.kind?M(i,n.end-i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):M(i,n.end-i,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return n}function Nr(){switch(R()){case 37:case 38:case 52:case 51:return Sr();case 80:return Cr();case 103:return Er();case 105:return Dr();case 27:return Gr();case 121:if(Tr())return wr();default:return Mr()}}function Pr(){switch(R()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==ta.languageVariant)return!1;default:return!0}}function Mr(){if(43===R()||44===R()){var t=te(192);return t.operator=R(),L(),t.operand=Or(),ne(t)}if(1===ta.languageVariant&&27===R()&&V(Ce))return Lr(!0);var r=Or();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(43===R()||44===R())&&!da.hasPrecedingLineBreak()){var t=te(193,r.pos);return t.operand=r,t.operator=R(),L(),ne(t)}return r}function Or(){return Yr(97===R()?Fr():Ir())}function Ir(){return Xr(en())}function Fr(){var t=Z();if(19===R()||23===R()||21===R())return t;var r=te(179,t.pos);return r.expression=t,Q(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=Ge(!0),ne(r)}function Rr(e,t){return e.kind===t.kind&&(71===e.kind?e.text===t.text:99===e.kind||e.name.text===t.name.text&&Rr(e.expression,t.expression))}function Lr(t){var r,n=Jr(t);if(251===n.kind){var i=te(249,n.pos);i.openingElement=n,i.children=zr(i.openingElement.tagName),i.closingElement=Wr(t),Rr(i.openingElement.tagName,i.closingElement.tagName)||M(i.closingElement.pos,i.closingElement.end-i.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(aa,i.openingElement.tagName)),r=ne(i)}else e.Debug.assert(250===n.kind),r=n;if(t&&27===R()){var a=H(function(){return Lr(!0)});if(a){P(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=te(194,r.pos);return o.end=a.end,o.left=r,o.right=a,o.operatorToken=ie(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function Br(){var e=te(10,da.getStartPos());return e.containsOnlyWhiteSpaces=11===ia,ia=da.scanJsxToken(),ne(e)}function jr(){switch(R()){case 10:case 11:return Br();case 17:return Ur(!1);case 27:return Lr(!1)}e.Debug.fail("Unknown JSX child kind "+R())}function zr(t){var r=re(),n=ua;for(ua|=16384;;){if(ia=da.reScanJsxToken(),28===R())break;if(1===R()){M(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(aa,t));break}if(7===R())break;var i=jr();i&&r.push(i)}return r.end=da.getTokenPos(),ua=n,r}function Kr(){var e=te(254);return e.properties=Ne(13,Vr),ne(e)}function Jr(e){var t=da.getStartPos();G(27);var r,n=qr(),i=Kr();return 29===R()?(r=te(251,t),J()):(G(41),e?G(29):(G(29,void 0,!1),J()),r=te(250,t)),r.tagName=n,r.attributes=i,ne(r)}function qr(){K();for(var e=99===R()?Z():ce();X(23);){var t=te(179,e.pos);t.expression=e,t.name=Ge(!0),e=ne(t)}return e}function Ur(e){var t=te(256);return G(17),18!==R()&&(t.dotDotDotToken=Y(24),t.expression=rr()),e?G(18):(G(18,void 0,!1),J()),ne(t)}function Vr(){if(17===R())return Hr();K();var e=te(253);if(e.name=ce(),58===R())switch(q()){case 9:e.initializer=Qe();break;default:e.initializer=Ur(!0)}return ne(e)}function Hr(){var e=te(255);return G(17),G(24),e.expression=er(),G(18),ne(e)}function Wr(e){var t=te(252);return G(28),t.tagName=qr(),e?G(29):(G(29,void 0,!1),J()),ne(t)}function Gr(){var e=te(184);return G(27),e.type=Gt(),G(29),e.expression=Nr(),ne(e)}function Xr(e){for(;;){if(Y(23)){var t=te(179,e.pos);t.expression=e,t.name=Ge(!0),e=ne(t)}else if(51!==R()||da.hasPrecedingLineBreak())if(A()||!X(21)){if(13!==R()&&14!==R())return e;var r=te(183,e.pos);r.tag=e,r.template=13===R()?Qe():Xe(),e=ne(r)}else{var n=te(180,e.pos);if(n.expression=e,22!==R()&&(n.argumentExpression=v(er),9===n.argumentExpression.kind||8===n.argumentExpression.kind)){var i=n.argumentExpression;i.text=ae(i.text)}G(22),e=ne(n)}else{L();var a=te(203,e.pos);a.expression=e,e=ne(a)}}}function Yr(e){for(;;)if(e=Xr(e),27!==R()){if(19!==R())return e;var t=te(181,e.pos);t.expression=e,t.arguments=Qr(),e=ne(t)}else{var r=H(Zr);if(!r)return e;var t=te(181,e.pos);t.expression=e,t.typeArguments=r,t.arguments=Qr(),e=ne(t)}}function Qr(){G(19);var e=Ue(11,an);return G(20),e}function Zr(){if(X(27)){var e=Ue(19,Gt);if(G(29))return e&&$r()?e:void 0}}function $r(){switch(R()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}function en(){switch(R()){case 8:case 9:case 13:return Qe();case 99:case 97:case 95:case 101:case 86:return Z();case 19:return tn();case 21:return on();case 17:return un();case 120:if(!V(In))break;return ln();case 75:return pi();case 89:return ln();case 94:return fn();case 41:case 63:if(12===j())return Qe();break;case 14:return Xe()}return se(e.Diagnostics.Expression_expected)}function tn(){var e=te(185);return G(19),e.expression=v(er),G(20),ne(e)}function rn(){var e=te(198);return G(24),e.expression=rr(),ne(e)}function nn(){return 24===R()?rn():26===R()?te(200):rr()}function an(){return h(fa,nn)}function on(){var e=te(177);return G(21),da.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ue(15,nn),G(22),ne(e)}function sn(e,t,r){return ge(125)?si(153,e,t,r):ge(135)?si(154,e,t,r):void 0}function cn(){var e=da.getStartPos();if(Y(24)){var t=te(263,e);return t.expression=rr(),u(ne(t))}var r=li(),n=di(),i=sn(e,r,n);if(i)return i;var a=Y(39),o=W(),s=de(),c=Y(55);if(a||19===R()||27===R())return ni(e,r,n,a,s,c);if(o&&(26===R()||18===R()||58===R())){var l=te(262,e);l.name=s,l.questionToken=c;var d=Y(58);return d&&(l.equalsToken=d,l.objectAssignmentInitializer=v(rr)),u(ne(l))}var f=te(261,e);return f.modifiers=n,f.name=s,f.questionToken=c,G(56),f.initializer=v(rr),u(ne(f))}function un(){var e=te(178);return G(17),da.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ue(12,cn,!0),G(18),ne(e)}function ln(){var t=A();t&&g(!1);var r=te(186);r.modifiers=di(),G(89),r.asteriskToken=Y(39);var n=!!r.asteriskToken,i=!!(256&e.getModifierFlags(r));return r.name=n&&i?E(dn):n?k(dn):i?S(dn):dn(),ft(56,n,i,!1,r),r.body=pn(n,i,!1),t&&g(!0),u(ne(r))}function dn(){return W()?se():void 0}function fn(){var e=da.getStartPos();if(G(94),X(23)){var t=te(204,e);return t.keywordToken=94,t.name=ce(),ne(t)}var r=te(182,e);return r.expression=Ir(),r.typeArguments=H(Zr),(r.typeArguments||19===R())&&(r.arguments=Qr()),ne(r)}function _n(e,t){var r=te(207);return G(17,t)||e?(da.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=Ne(1,Kn),G(18)):r.statements=Ve(),ne(r)}function pn(e,t,r,n){var i=T();p(e);var a=N();m(t);var o=A();o&&g(!1);var s=_n(r,n);return o&&g(!0),p(i),m(a),s}function gn(){var e=te(209);return G(25),ne(e)}function mn(){var e=te(211);return G(90),G(19),e.expression=v(er),G(20),e.thenStatement=Kn(),e.elseStatement=X(82)?Kn():void 0,ne(e)}function hn(){var e=te(212);return G(81),e.statement=Kn(),G(106),G(19),e.expression=v(er),G(20),X(25),ne(e)}function yn(){var e=te(213);return G(106),G(19),e.expression=v(er),G(20),e.statement=Kn(),ne(e)}function vn(){var e=I();G(88);var t=Y(121);G(19);var r=void 0;25!==R()&&(r=104===R()||110===R()||76===R()?Zn(!0):b(er));var n;if(t?G(142):X(142)){var i=te(216,e);i.awaitModifier=t,i.initializer=r,i.expression=v(rr),G(20),n=i}else if(X(92)){var a=te(215,e);a.initializer=r,a.expression=v(er),G(20),n=a}else{var o=te(214,e);o.initializer=r,G(25),25!==R()&&20!==R()&&(o.condition=v(er)),G(25),20!==R()&&(o.incrementor=v(er)),G(20),n=o}return n.statement=Kn(),ne(n)}function bn(e){var t=te(e);return G(218===e?72:77),$()||(t.label=se()),ee(),ne(t)}function kn(){var e=te(219);return G(96),$()||(e.expression=v(er)),ee(),ne(e)}function xn(){var e=te(220);return G(107),G(19),e.expression=v(er),G(20),e.statement=Kn(),ne(e)}function Sn(){var e=te(257);return G(73),e.expression=v(er),G(56),e.statements=Ne(3,Kn),ne(e)}function Cn(){var e=te(258);return G(79),G(56),e.statements=Ne(3,Kn),ne(e)}function En(){return 73===R()?Sn():Cn()}function Dn(){var e=te(221);G(98),G(19),e.expression=v(er),G(20);var t=te(235,da.getStartPos());return G(17),t.clauses=Ne(2,En),G(18),e.caseBlock=ne(t),ne(e)}function Tn(){var e=te(223);return G(100),e.expression=da.hasPrecedingLineBreak()?void 0:v(er),ee(),ne(e)}function wn(){var e=te(224);return G(102),e.tryBlock=_n(!1),e.catchClause=74===R()?An():void 0,e.catchClause&&87!==R()||(G(87),e.finallyBlock=_n(!1)),ne(e)}function An(){var e=te(260);return G(74),G(19)&&(e.variableDeclaration=Qn()),G(20),e.block=_n(!1),ne(e)}function Nn(){var e=te(225);return G(78),ee(),ne(e)}function Pn(){var e=da.getStartPos(),t=v(er);if(71===t.kind&&X(56)){var r=te(222,e);return r.label=t,r.statement=Kn(),u(ne(r))}var n=te(210,e);return n.expression=t,ee(),u(ne(n))}function Mn(){return L(),e.tokenIsIdentifierOrKeyword(R())&&!da.hasPrecedingLineBreak()}function On(){return L(),75===R()&&!da.hasPrecedingLineBreak()}function In(){return L(),89===R()&&!da.hasPrecedingLineBreak()}function Fn(){return L(),(e.tokenIsIdentifierOrKeyword(R())||8===R())&&!da.hasPrecedingLineBreak()}function Rn(){for(;;)switch(R()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return ir();case 128:case 129:return qn();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(L(),da.hasPrecedingLineBreak())return!1;continue;case 141:return L(),17===R()||71===R()||84===R();case 91:return L(),9===R()||39===R()||17===R()||e.tokenIsIdentifierOrKeyword(R());case 84:if(L(),58===R()||39===R()||17===R()||79===R()||118===R())return!0;continue;case 115:L();continue;default:return!1}}function Ln(){return V(Rn)}function Bn(){switch(R()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 76:case 84:case 91:return Ln();case 120:case 124:case 109:case 128:case 129:case 138:case 141:return!0;case 114:case 112:case 113:case 115:case 131:return Ln()||!V(Mn);default:return Zt()}}function jn(){return L(),W()||17===R()||21===R()}function zn(){return V(jn)}function Kn(){switch(R()){case 25:return gn();case 17:return _n(!1);case 104:return ei(da.getStartPos(),void 0,void 0);case 110:if(zn())return ei(da.getStartPos(),void 0,void 0);break;case 89:return ti(da.getStartPos(),void 0,void 0);case 75:return gi(da.getStartPos(),void 0,void 0);case 90:return mn();case 81:return hn();case 106:return yn();case 88:return vn();case 77:return bn(217);case 72:return bn(218);case 96:return kn();case 107:return xn();case 98:return Dn();case 100:return Tn();case 102:case 74:case 87:return wn();case 78:return Nn();case 57:return Jn();case 120:case 109:case 138:case 128:case 129:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 131:case 141:if(Ln())return Jn()}return Pn()}function Jn(){var t=I(),r=li(),n=di();switch(R()){case 104:case 110:case 76:return ei(t,r,n);case 89:return ti(t,r,n);case 75:return gi(t,r,n);case 109:return Ci(t,r,n);case 138:return Ei(t,r,n);case 83:return Ti(t,r,n);case 141:case 128:case 129:return Pi(t,r,n);case 91:return Ri(t,r,n);case 84:switch(L(),R()){case 79:case 58:return Gi(t,r,n);case 118:return Fi(t,r,n);default:return Wi(t,r,n)}default:if(r||n){var i=ie(247,!0,e.Diagnostics.Declaration_expected);return i.pos=t,i.decorators=r,i.modifiers=n,ne(i)}}}function qn(){return L(),!da.hasPrecedingLineBreak()&&(W()||9===R())}function Un(e,t,r){return 17!==R()&&$()?void ee():pn(e,t,!1,r)}function Vn(){if(26===R())return te(200);var e=te(176);return e.dotDotDotToken=Y(24),e.name=Yn(),e.initializer=lt(!1),ne(e)}function Hn(){var e=te(176);e.dotDotDotToken=Y(24);var t=W(),r=de();return t&&56!==R()?e.name=r:(G(56),e.propertyName=r,e.name=Yn()),e.initializer=lt(!1),ne(e)}function Wn(){var e=te(174);return G(17),e.elements=Ue(9,Hn),G(18),ne(e)}function Gn(){var e=te(175);return G(21),e.elements=Ue(10,Vn),G(22),ne(e)}function Xn(){return 17===R()||21===R()||W()}function Yn(){return 21===R()?Gn():17===R()?Wn():se()}function Qn(){var e=te(226);return e.name=Yn(),e.type=Yt(),hr(R())||(e.initializer=tr(!1)),ne(e)}function Zn(t){var r=te(227);switch(R()){case 104:break;case 110:r.flags|=1;break;case 76:r.flags|=2;break;default:e.Debug.fail()}if(L(),142===R()&&V($n))r.declarations=Ve();else{var n=w();_(t),r.declarations=Ue(8,Qn),_(n)}return ne(r)}function $n(){return Se()&&20===L()}function ei(e,t,r){var n=te(208,e);return n.decorators=t,n.modifiers=r,n.declarationList=Zn(!1),ee(),u(ne(n))}function ti(t,r,n){var i=te(228,t);i.decorators=r,i.modifiers=n,G(89),i.asteriskToken=Y(39),i.name=e.hasModifier(i,512)?dn():se();var a=!!i.asteriskToken,o=e.hasModifier(i,256);return ft(56,a,o,!1,i),i.body=Un(a,o,e.Diagnostics.or_expected),u(ne(i))}function ri(t,r,n){var i=te(152,t);return i.decorators=r,i.modifiers=n,G(123),ft(56,!1,!1,!1,i),i.body=Un(!1,!1,e.Diagnostics.or_expected),u(ne(i))}function ni(t,r,n,i,a,o,s){var c=te(151,t);c.decorators=r,c.modifiers=n,c.asteriskToken=i,c.name=a,c.questionToken=o;var l=!!i,d=e.hasModifier(c,256);return ft(56,l,d,!1,c),c.body=Un(l,d,s),u(ne(c))}function ii(t,r,n,i,a){var o=te(149,t);return o.decorators=r,o.modifiers=n,o.name=i,o.questionToken=a,o.type=Yt(),o.initializer=e.hasModifier(o,32)?v(oi):h(6144,oi),ee(),u(ne(o))}function ai(t,r,n){var i=Y(39),a=de(),o=Y(55);return i||19===R()||27===R()?ni(t,r,n,i,a,o,e.Diagnostics.or_expected):ii(t,r,n,a,o)}function oi(){return tr(!1)}function si(e,t,r,n){var i=te(e,t);return i.decorators=r,i.modifiers=n,i.name=de(),ft(56,!1,!1,!1,i),i.body=Un(!1,!1),u(ne(i))}function ci(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function ui(){var t;if(57===R())return!0;for(;e.isModifierKind(R());){if(t=R(),ci(t))return!0;L()}if(39===R())return!0;if(ue()&&(t=R(),L()),21===R())return!0;if(void 0!==t){if(!e.isKeyword(t)||135===t||125===t)return!0;switch(R()){case 19:case 27:case 56:case 58:case 55:return!0;default:return $()}}return!1}function li(){for(var e;;){var t=I();if(!X(57))break;var r=te(147,t);r.expression=x(Or),ne(r),e?e.push(r):e=re([r],t)}return e&&(e.end=F()),e}function di(e){for(var t;;){var r=da.getStartPos(),n=R();if(76===R()&&e){if(!H(me))break}else if(!ye())break;var i=ne(te(n,r));t?t.push(i):t=re([i],r)}return t&&(t.end=da.getStartPos()),t}function fi(){var e;if(120===R()){var t=da.getStartPos(),r=R();L();e=re([ne(te(r,t))],t),e.end=da.getStartPos()}return e}function _i(){if(25===R()){var t=te(206);return L(),ne(t)}var r=I(),n=li(),i=di(!0),a=sn(r,n,i);if(a)return a;if(123===R())return ri(r,n,i);if(mt())return yt(r,n,i);if(e.tokenIsIdentifierOrKeyword(R())||9===R()||8===R()||39===R()||21===R())return ai(r,n,i);if(n||i){return ii(r,n,i,ie(71,!0,e.Diagnostics.Declaration_expected),void 0)}e.Debug.fail("Should not have attempted to parse class member declaration.")}function pi(){return mi(da.getStartPos(),void 0,void 0,199)}function gi(e,t,r){return mi(e,t,r,229)}function mi(e,t,r,n){var i=te(n,e);return i.decorators=t,i.modifiers=r,G(75),i.name=hi(),i.typeParameters=ot(),i.heritageClauses=vi(),G(17)?(i.members=Si(),G(18)):i.members=Ve(),u(ne(i))}function hi(){return W()&&!yi()?se():void 0}function yi(){return 108===R()&&V(Ce)}function vi(){if(xi())return Ne(21,bi)}function bi(){var e=R();if(85===e||108===e){var t=te(259);return t.token=e,L(),t.types=Ue(7,ki),ne(t)}}function ki(){var e=te(201);return e.expression=Or(),27===R()&&(e.typeArguments=He(19,Gt,27,29)),ne(e)}function xi(){return 85===R()||108===R()}function Si(){return Ne(5,_i)}function Ci(e,t,r){var n=te(230,e);return n.decorators=t,n.modifiers=r,G(109),n.name=se(),n.typeParameters=ot(),n.heritageClauses=vi(),n.members=Ct(),u(ne(n))}function Ei(e,t,r){var n=te(231,e);return n.decorators=t,n.modifiers=r,G(138),n.name=se(),n.typeParameters=ot(),G(58),n.type=Gt(),ee(),u(ne(n))}function Di(){var e=te(264,da.getStartPos());return e.name=de(),e.initializer=v(oi),u(ne(e))}function Ti(e,t,r){var n=te(232,e);return n.decorators=t,n.modifiers=r,G(83),n.name=se(),G(17)?(n.members=Ue(6,Di),G(18)):n.members=Ve(),u(ne(n))}function wi(){var e=te(234,da.getStartPos());return G(17)?(e.statements=Ne(1,Kn),G(18)):e.statements=Ve(),ne(e)}function Ai(e,t,r,n){var i=te(233,e),a=16&n;return i.decorators=t,i.modifiers=r,i.flags|=n,i.name=se(),i.body=X(23)?Ai(I(),void 0,void 0,4|a):wi(),u(ne(i))}function Ni(e,t,r){var n=te(233,e);return n.decorators=t,n.modifiers=r,141===R()?(n.name=se(),n.flags|=512):n.name=Qe(!0),17===R()?n.body=wi():ee(),ne(n)}function Pi(e,t,r){var n=0;if(141===R())return Ni(e,t,r);if(X(129))n|=16;else if(G(128),9===R())return Ni(e,t,r);return Ai(e,t,r,n)}function Mi(){return 132===R()&&V(Oi)}function Oi(){return 19===L()}function Ii(){return 41===L()}function Fi(e,t,r){var n=te(236,e);return n.decorators=t,n.modifiers=r,G(118),G(129),n.name=se(),ee(),ne(n)}function Ri(e,t,r){G(91);var n,i=da.getStartPos();if(W()&&(n=se(),26!==R()&&140!==R()))return Li(e,t,r,n);var a=te(238,e);return a.decorators=t,a.modifiers=r,(n||39===R()||17===R())&&(a.importClause=Bi(n,i),G(140)),a.moduleSpecifier=Ki(),ee(),ne(a)}function Li(e,t,r,n){var i=te(237,e);return i.decorators=t,i.modifiers=r,i.name=n,G(58),i.moduleReference=ji(),ee(),u(ne(i))}function Bi(e,t){var r=te(239,t);return e&&(r.name=e),r.name&&!X(26)||(r.namedBindings=39===R()?Ji():qi(241)),ne(r)}function ji(){return Mi()?zi():We(!1)}function zi(){var e=te(248);return G(132),G(19),e.expression=Ki(),G(20),ne(e)}function Ki(){if(9===R()){var e=Qe();return ae(e.text),e}return er()}function Ji(){var e=te(240);return G(39),G(118),e.name=se(),ne(e)}function qi(e){var t=te(e);return t.elements=He(22,241===e?Vi:Ui,17,18),ne(t)}function Ui(){return Hi(246)}function Vi(){return Hi(242)}function Hi(t){var r=te(t),n=e.isKeyword(R())&&!W(),i=da.getTokenPos(),a=da.getTextPos(),o=ce();return 118===R()?(r.propertyName=o,G(118),n=e.isKeyword(R())&&!W(),i=da.getTokenPos(),a=da.getTextPos(),r.name=ce()):r.name=o,242===t&&n&&M(i,a-i,e.Diagnostics.Identifier_expected),ne(r)}function Wi(e,t,r){var n=te(244,e);return n.decorators=t,n.modifiers=r,X(39)?(G(140),n.moduleSpecifier=Ki()):(n.exportClause=qi(245),(140===R()||9===R()&&!da.hasPrecedingLineBreak())&&(G(140),n.moduleSpecifier=Ki())),ee(),ne(n)}function Gi(e,t,r){var n=te(243,e);return n.decorators=t,n.modifiers=r,X(58)?n.isExportEquals=!0:G(79),n.expression=rr(),ee(),ne(n)}function Xi(t){for(var r,n=e.createScanner(t.languageVersion,!1,0,aa),i=[],a=[],o=[],s=void 0;;){var c=n.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:n.getToken(),pos:n.getTokenPos(),end:n.getTextPos()},l=aa.substring(u.pos,u.end),d=e.getFileReferenceFromReferencePath(l,u);if(d){var f=d.fileReference;t.hasNoDefaultLib=d.isNoDefaultLib;var _=d.diagnosticMessage;f&&(d.isTypeReferenceDirective?a.push(f):i.push(f)),_&&ra.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,_))}else{var p=/^\/\/\/\s*".length-r,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function b(e){var t=te(143,e.pos);return t.left=e,t.right=ce(),ne(t)}function k(){var e=te(275);return e.literal=St(),ne(e)}function x(){var e=te(274);return L(),e.type=c(),ne(e)}function S(){var e=te(272);return L(),e.types=Ue(26,c),C(e.types),G(22),ne(e)}function C(t){if(0===ra.length&&t.hasTrailingComma){M(t.end-",".length,",".length,e.Diagnostics.Trailing_comma_not_allowed)}}function E(){var e=te(271);return L(),e.types=D(c()),G(20),ne(e)}function D(t){e.Debug.assert(!!t);for(var r=re([t],t.pos);X(49);)r.push(c());return r.end=da.getStartPos(),r}function T(){var e=te(268);return L(),ne(e)}function w(){var e=te(293);return e.literal=Mt(),ne(e)}function A(){var e=da.getStartPos();if(L(),26===R()||18===R()||20===R()||29===R()||58===R()||49===R()){var t=te(269,e);return ne(t)}var t=te(273,e);return t.type=c(),ne(t)}function N(e,t,r){o(e,5,void 0,1),ta={languageVariant:0,text:e};var n=I(t,r),i=ra;return s(),n?{jsDoc:n,diagnostics:i}:void 0}function O(e,t,r){var n=ia,i=ra.length,a=_a,o=I(t,r);return o&&(o.parent=e),ia=n,ra.length=i,_a=a,o}function I(t,r){function n(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function a(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop()}function o(){var e=te(283,t);return e.tags=D,e.comment=w.length?w.join(""):void 0,ne(e,E)}function s(){for(;5===R()||4===R();)k()}function c(t){e.Debug.assert(57===R());var r=te(57,da.getTokenPos());r.end=da.getTextPos(),k();var n=x();if(s(),n){var i;if(n)switch(n.text){case"augments":i=h(r,n);break;case"param":i=_(r,n);break;case"return":case"returns":i=p(r,n);break;case"template":i=b(r,n);break;case"type":i=g(r,n);break;case"typedef":i=y(r,n);break;default:i=l(r,n)}else i=l(r,n);i&&d(i,u(t+i.end-i.pos))}}function u(e){function t(t){r||(r=e),i.push(t),e+=t.length}for(var r,i=[],o=0;57!==R()&&1!==R();){switch(R()){case 4:o>=1&&(o=0,i.push(da.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(da.getTokenText());else{var s=da.getTokenText();void 0!==r&&e+s.length>r&&i.push(s.slice(r-e-1)),e+=s.length}break;case 39:if(0===o){o=1,e+=da.getTokenText().length;break}default:o=2,t(da.getTokenText())}if(57===R())break;k()}return n(i),a(i),i}function l(e,t){var r=te(284,e.pos);return r.atToken=e,r.tagName=t,ne(r)}function d(e,t){e.comment=t.join(""),D?D.push(e):D=re([e],e.pos),D.end=e.end}function f(){return H(function(){if(s(),17===R())return i()})}function _(t,r){var n=f();s();var i,a;if(Y(21)?(i=x(),s(),a=!0,Y(58)&&er(),G(22)):e.tokenIsIdentifierOrKeyword(R())&&(i=x()),!i)return void M(da.getStartPos(),0,e.Diagnostics.Identifier_expected);var o,c;n?c=i:o=i,n||(n=f());var u=te(286,t.pos);return u.atToken=t,u.tagName=r,u.preParameterName=o,u.typeExpression=n,u.postParameterName=c,u.parameterName=c||o,u.isBracketed=a,ne(u)}function p(t,r){e.forEach(D,function(e){return 287===e.kind})&&M(r.pos,da.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);var n=te(287,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=f(),ne(n)}function g(t,r){e.forEach(D,function(e){return 288===e.kind})&&M(r.pos,da.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);var n=te(288,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=f(),ne(n)}function m(t,r){var n=f();s();var i=x();if(s(),!i)return void M(da.getStartPos(),0,e.Diagnostics.Identifier_expected);var a=te(291,t.pos);return a.atToken=t,a.tagName=r,a.name=i,a.typeExpression=n,ne(a)}function h(e,t){var r=f(),n=te(285,e.pos);return n.atToken=e,n.tagName=t,n.typeExpression=r,ne(n)}function y(e,t){function r(){for(var e=te(292,da.getStartPos()),t=da.getStartPos(),r=!0,n=!1,i=!1;1!==R()&&!i;)switch(k(),R()){case 57:r&&((i=!v(e))||(t=da.getStartPos())),n=!1;break;case 4:t=da.getStartPos()-1,r=!0,n=!1;break;case 39:n&&(r=!1),n=!0;break;case 71:r=!1}return da.setTextPos(t),ne(e)}function n(e){var t=da.getTokenPos(),r=x();if(r&&X(23)){var i=te(233,t);return i.flags|=e,i.name=r,i.body=n(4),i}return r&&4&e&&(r.isInJSDocNamespace=!0),r}var i=f();s();var a=te(290,e.pos);if(a.atToken=e,a.tagName=t,a.fullName=n(0),a.fullName)for(var o=a.fullName;;){if(71===o.kind||!o.body){a.name=71===o.kind?o:o.name;break}o=o.body}if(a.typeExpression=i,s(),i){if(277===i.type.kind){var c=i.type;if(71===c.name.kind){"Object"===c.name.text&&(a.jsDocTypeLiteral=r())}}a.jsDocTypeLiteral||(a.jsDocTypeLiteral=i.type)}else a.jsDocTypeLiteral=r();return ne(a)}function v(t){e.Debug.assert(57===R());var r=te(57,da.getStartPos());r.end=da.getTextPos(),k();var n=x();if(s(),!n)return!1;switch(n.text){case"type":return!t.jsDocTypeTag&&(t.jsDocTypeTag=g(r,n),!0);case"prop":case"property":var i=m(r,n);return!!i&&(t.jsDocPropertyTags||(t.jsDocPropertyTags=[]),t.jsDocPropertyTags.push(i),!0)}return!1}function b(t,r){e.forEach(D,function(e){return 289===e.kind})&&M(r.pos,da.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);for(var n=re();;){var i=x();if(s(),!i)return void M(da.getStartPos(),0,e.Diagnostics.Identifier_expected);var a=te(145,i.pos);if(a.name=i,ne(a),n.push(a),26!==R())break;k(),s()}var o=te(289,t.pos);return o.atToken=t,o.tagName=r,o.typeParameters=n,ne(o),n.end=o.end,o}function k(){return ia=da.scanJSDocToken()}function x(){return S(e.tokenIsIdentifierOrKeyword(R()))}function S(t){if(!t)return void P(e.Diagnostics.Identifier_expected);var r=da.getTokenPos(),n=da.getTextPos(),i=te(71,r);return i.text=C.substring(r,n),ne(i,n),k(),i}var C=aa;t=t||0;var E=void 0===r?C.length:t+r;r=E-t,e.Debug.assert(t>=0),e.Debug.assert(t<=E),e.Debug.assert(E<=C.length);var D,T,w=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(C,t)?(da.scanRange(t+3,r-5,function(){function e(e){s||(s=u),w.push(e),u+=e.length}var r=!0,i=1,s=void 0,u=t-Math.max(C.lastIndexOf("\n",t),0)+4;for(k();5===R();)k();for(4===R()&&(i=0,u=0,k());1!==R();){switch(R()){case 57:0===i||1===i?(a(w),c(u),i=0,r=!1,s=void 0,u++):e(da.getTokenText());break;case 4:w.push(da.getTokenText()),i=0,u=0;break;case 39:var l=da.getTokenText();1===i||2===i?(i=2,e(l)):(i=1,u+=l.length);break;case 71:e(da.getTokenText()),i=2;break;case 5:var d=da.getTokenText();2===i?w.push(d):void 0!==s&&u+d.length>s&&w.push(d.slice(s-u-1)),u+=d.length;break;case 1:break;default:i=2,e(da.getTokenText())}r?k():r=!0}n(w),a(w),T=o()}),T):T}t.isJSDocType=r,t.parseJSDocTypeExpressionForTests=n,t.parseJSDocTypeExpression=i,t.parseIsolatedJSDocComment=N,t.parseJSDocComment=O;var F;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(F||(F={})),t.parseJSDocCommentWorker=I}(ma=t.JSDocParser||(t.JSDocParser={}))}(m||(m={}));var h;!function(t){function r(t,r,n,i){if(i=i||e.Debug.shouldAssert(2),d(t,r,n,i),e.textChangeRangeIsUnchanged(n))return t;if(0===t.statements.length)return m.parseSourceFile(t.fileName,r,t.languageVersion,void 0,!0,t.scriptKind);var a=t;e.Debug.assert(!a.hasBeenIncrementallyParsed),a.hasBeenIncrementallyParsed=!0;var o=t.text,s=f(t),l=u(t,n);d(t,r,l,i),e.Debug.assert(l.span.start<=n.span.start),e.Debug.assert(e.textSpanEnd(l.span)===e.textSpanEnd(n.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(l))===e.textSpanEnd(e.textChangeRangeNewSpan(n)));var _=e.textChangeRangeNewSpan(l).length-l.span.length;return c(a,l.span.start,e.textSpanEnd(l.span),e.textSpanEnd(e.textChangeRangeNewSpan(l)),_,o,r,i),m.parseSourceFile(t.fileName,r,t.languageVersion,s,!0,t.scriptKind)}function n(t,r,n,o,c,u){function l(t){var r="";if(u&&i(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=n,t.end+=n,u&&i(t)&&e.Debug.assert(r===c.substring(t.pos,t.end)),a(t,l,d),t.jsDoc)for(var f=0,_=t.jsDoc;f<_.length;f++){var p=_[f];a(p,l,d)}s(t,u)}function d(e){e._children=void 0,e.pos+=n,e.end+=n;for(var t=0,r=e;t=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=n?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end))}function s(t,r){if(r){var n=t.pos;a(t,function(t){e.Debug.assert(t.pos>=n),n=t.end}),e.Debug.assert(n<=t.end)}}function c(t,r,i,c,u,l,d,f){function _(t){if(e.Debug.assert(t.pos<=t.end),t.pos>i)return void n(t,!1,u,l,d,f);var g=t.end;if(g>=r)return t.intersectsChange=!0,t._children=void 0,o(t,r,i,c,u),a(t,_,p),void s(t,f);e.Debug.assert(gi)return void n(t,!0,u,l,d,f);var a=t.end;if(a>=r){t.intersectsChange=!0,t._children=void 0,o(t,r,i,c,u);for(var s=0,p=t;s0&&i<=1;i++){var a=l(t,n);e.Debug.assert(a.pos<=n);var o=a.pos;n=Math.max(0,o-1)}var s=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),c=r.newLength+(r.span.start-n);return e.createTextChangeRange(s,c)}function l(t,r){function n(t){var r=void 0;return a(t,function(t){e.nodeIsPresent(t)&&(r=t)}),r}function i(t){if(!e.nodeIsMissing(t))return t.pos<=r?(t.pos>=s.pos&&(s=t),rr),!0)}var o,s=t;if(a(t,i),o){var c=function(e){for(;;){var t=n(e);if(!t)return e;e=t}}(o);c.pos>s.pos&&(s=c)}return s}function d(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}function f(t){function r(e){function r(t){return e>=t.pos&&e=t.pos&&e=158&&e<=173)return-3;switch(e){case 181:case 182:case 177:return 537396545;case 233:return 574674241;case 146:return 536872257;case 187:return 601249089;case 186:case 228:return 601281857;case 227:return 546309441;case 229:case 199:return 539358529;case 152:return 601015617;case 151:case 153:case 154:return 601015617;case 119:case 133:case 130:case 136:case 134:case 122:case 137:case 105:case 145:case 148:case 150:case 155:case 156:case 157:case 230:case 231:return-3;case 178:return 540087617;case 260:return 537920833;case 174:case 175:return 537396545;default:return 536872257}}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var M;!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"}(M||(M={}));var O=function(){function r(t,r){Dt=t,Tt=r,wt=e.getEmitScriptTarget(Tt),Ut=i(Dt,r),Ht=e.createMap(),Gt=0,Wt=e.isDeclarationFile(Dt),Vt=e.objectAllocator.getSymbolConstructor(),Dt.locals||(He(Dt),Dt.symbolCount=Gt,Dt.classifiableNames=Ht),Dt=void 0,Tt=void 0,wt=void 0,At=void 0,Nt=void 0,Pt=void 0,Mt=void 0,Ot=!1,It=void 0,Ft=void 0,Rt=void 0,Lt=void 0,Bt=void 0,jt=void 0,Kt=void 0,Jt=!1,qt=0,Qt=0}function i(t,r){return!((void 0===r.alwaysStrict?!r.strict:!r.alwaysStrict)||e.isDeclarationFile(t))||!!t.externalModuleIndicator}function a(e,t){return Gt++,new Vt(e,t)}function o(t,r,n){if(t.flags|=n,r.symbol=t,t.declarations||(t.declarations=[]),t.declarations.push(r),1952&n&&!t.exports&&(t.exports=e.createMap()),6240&n&&!t.members&&(t.members=e.createMap()),107455&n){var i=t.valueDeclaration;(!i||i.kind!==r.kind&&233===i.kind)&&(t.valueDeclaration=r)}}function s(t){if(t.name){if(e.isAmbientModule(t))return e.isGlobalScopeAugmentation(t)?"__global":'"'+t.name.text+'"';if(144===t.name.kind){var r=t.name.expression;return e.isStringOrNumericLiteral(r)?r.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(r)),e.getPropertyNameForKnownSymbolName(r.name.text))}return t.name.text}switch(t.kind){case 152:return"__constructor";case 160:case 155:return"__call";case 161:case 156:return"__new";case 157:return"__index";case 244:return"__export";case 243:return t.isExportEquals?"export=":"default";case 194:switch(e.getSpecialPropertyAssignmentKind(t)){case 2:return"export=";case 1:case 4:case 5:return t.left.name.text;case 3:return t.left.expression.name.text}e.Debug.fail("Unknown binary declaration kind");break;case 228:case 229:return e.hasModifier(t,512)?"default":void 0;case 279:return e.isJSDocConstructSignature(t)?"__new":"__call";case 146:e.Debug.assert(279===t.parent.kind);var n=t.parent;return"arg"+e.indexOf(n.parameters,t);case 290:var i=t.parent&&t.parent.parent,a=void 0;if(i&&208===i.kind&&i.declarationList.declarations.length>0){var o=i.declarationList.declarations[0].name;71===o.kind&&(a=o.text)}return a}}function c(t){return t.name?e.declarationNameToString(t.name):s(t)}function u(t,r,n,i,u){e.Debug.assert(!e.hasDynamicName(n));var l,d=e.hasModifier(n,512),f=d&&r?"default":s(n);if(void 0===f)l=a(0,"__missing");else if(l=t.get(f),l||t.set(f,l=a(0,f)),f&&788448&i&&Ht.set(f,f),l.flags&u)if(l.isReplaceableByMethod)t.set(f,l=a(0,f));else{n.name&&(n.name.parent=n);var _=2&l.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;l.declarations&&l.declarations.length&&(d?_=e.Diagnostics.A_module_cannot_have_multiple_default_exports:l.declarations&&l.declarations.length&&(d||243===n.kind&&!n.isExportEquals)&&(_=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(l.declarations,function(t){Dt.bindDiagnostics.push(e.createDiagnosticForNode(t.name||t,_,c(t)))}),Dt.bindDiagnostics.push(e.createDiagnosticForNode(n.name||n,_,c(n))),l=a(0,f)}return o(l,n,i),l.parent=r,l}function l(t,r,n){var i=1&e.getCombinedModifierFlags(t);if(8388608&r)return 246===t.kind||237===t.kind&&i?u(Nt.symbol.exports,Nt.symbol,t,r,n):u(Nt.locals,void 0,t,r,n);var a=290===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(i||32&Nt.flags)||a){var o=(107455&r?1048576:0)|(793064&r?2097152:0)|(1920&r?4194304:0),s=u(Nt.locals,void 0,t,o,n);return s.exportSymbol=u(Nt.symbol.exports,Nt.symbol,t,r,n),t.localSymbol=s,s}return u(Nt.locals,void 0,t,r,n)}function d(t,r){var n=Nt,i=Pt;if(1&r?(Nt=Pt=t,32&r&&(Nt.locals=e.createMap()),_e(Nt)):2&r&&(Pt=t,Pt.locals=void 0),4&r){var a=It,o=Ft,s=Rt,c=Lt,u=Kt,l=Jt,d=16&r&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);d?Lt=x():(It={flags:2},144&r&&(It.container=t),Lt=void 0),Ft=void 0,Rt=void 0,Kt=void 0,Jt=!1,f(t),t.flags&=-1409,!(1&It.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=128,Jt&&(t.flags|=256)),265===t.kind&&(t.flags|=qt),d?(E(Lt,It),It=N(Lt)):It=a,Ft=o,Rt=s,Lt=c,Kt=u,Jt=l}else 64&r?(Ot=!1,f(t),t.flags=Ot?64|t.flags:-65&t.flags):f(t);Nt=n,Pt=i}function f(e){if(Wt)g(e);else if(536870912&e.transformFlags)Wt=!0,g(e),Wt=!1,Qt|=e.transformFlags&~P(e.kind);else{var t=Qt;Qt=0,g(e),Qt=t|n(e,Qt)}}function _(t){if(void 0!==t)if(Wt)e.forEach(t,He);else{var r=Qt;Qt=0;for(var n=0,i=0,a=t;i=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Dt.parseDiagnostics.length||Dt.bindDiagnostics.push(e.createDiagnosticForNode(t,Ne(t),e.declarationNameToString(t))))}function Ne(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Dt.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Pe(t){Ut&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Fe(t,t.left)}function Me(e){Ut&&e.variableDeclaration&&Fe(e,e.variableDeclaration.name)}function Oe(t){if(Ut&&71===t.expression.kind){var r=e.getErrorSpanForNode(Dt,t.expression);Dt.bindDiagnostics.push(e.createFileDiagnostic(Dt,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Ie(e){return 71===e.kind&&("eval"===e.text||"arguments"===e.text)}function Fe(t,r){if(r&&71===r.kind){var n=r;if(Ie(n)){var i=e.getErrorSpanForNode(Dt,r);Dt.bindDiagnostics.push(e.createFileDiagnostic(Dt,i.start,i.length,Re(t),n.text))}}}function Re(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Dt.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Le(e){Ut&&Fe(e,e.name)}function Be(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Dt.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function je(t){if(wt<2&&265!==Pt.kind&&233!==Pt.kind&&!e.isFunctionLike(Pt)){var r=e.getErrorSpanForNode(Dt,t);Dt.bindDiagnostics.push(e.createFileDiagnostic(Dt,r.start,r.length,Be(t)))}}function ze(t){Ut&&4&t.numericLiteralFlags&&Dt.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Ke(e){Ut&&Fe(e,e.operand)}function Je(e){Ut&&(43!==e.operator&&44!==e.operator||Fe(e,e.operand))}function qe(t){Ut&&Ue(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Ue(t,r,n,i,a){var o=e.getSpanOfTokenAtPosition(Dt,t.pos);Dt.bindDiagnostics.push(e.createFileDiagnostic(Dt,o.start,o.length,r,n,i,a))}function Ve(t){return"__"+e.indexOf(t.parent.parameters,t)}function He(t){if(t){t.parent=At;var r=Ut;if(e.isInJavaScriptFile(t)&&We(t),Ye(t),t.kind>142){var i=At;At=t;var a=fe(t);0===a?f(t):d(t,a),At=i}else Wt||0!=(536870912&t.transformFlags)||(Qt|=n(t,0));Ut=r}}function We(e){if(e.jsDoc)for(var t=0,r=e.jsDoc;t1);if(e.isGlobalScopeAugmentation(r))h(uv,r.symbol.exports);else{var n=e.isInAmbientContext(t.parent.parent)?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,i=oe(t,t,n,!0);if(!i)return;i=ce(i),1920&i.flags?(i=134217728&i.flags?i:g(i),m(i,r.symbol)):l(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}}function v(t,r,n){function i(t,r){return function(n){return Nv.add(e.createDiagnosticForNode(n,r,t))}}r.forEach(function(r,a){var o=t.get(a);o?e.forEach(o.declarations,i(a,n)):t.set(a,r)})}function b(e){if(134217728&e.flags)return e;var t=r(e);return vv[t]||(vv[t]={})}function k(e){var r=t(e);return bv[r]||(bv[r]={flags:0})}function x(e){return 32768&e.flags?e.objectFlags:0}function S(e){return 134217728&e.flags?e.checkFlags:0}function C(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function E(t,r,n){if(n){var i=t.get(r);if(i){if(e.Debug.assert(0==(1&S(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(8388608&i.flags){var a=$(i);if(a===$h||a.flags&n)return i}}}}function D(t,r){var n=t.parent,i=t.parent.parent,a=E(n.locals,r,107455),o=E(i.symbol.members,r,107455);if(a&&o)return[a,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function T(t,r){function i(t,r,n){return!!e.findAncestor(t,function(i){if(i===n)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&149===i.parent.kind&&i.parent.initializer===i)if(32&e.getModifierFlags(i.parent)){if(151===r.kind)return!0}else{var a=149===r.kind&&!(32&e.getModifierFlags(r));if(!a||e.getContainingClass(t)!==e.getContainingClass(r))return!0}})}var a=e.getSourceFileOfNode(t),o=e.getSourceFileOfNode(r);if(a!==o){if(Fh&&(a.externalModuleIndicator||o.externalModuleIndicator)||!Oh.outFile&&!Oh.out)return!0;if(i(r,t))return!0;var s=n.getSourceFiles();return e.indexOf(s,a)<=e.indexOf(s,o)}if(t.pos<=r.pos){if(176===t.kind){var c=e.getAncestor(r,176);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=o&&(a=a.substr(0,o-"...".length)+"..."),a}function He(t,r,n){var i=e.getSingleLineStringWriter();$e().buildTypePredicateDisplay(t,i,r,n);var a=i.string();return e.releaseStringWriter(i),a}function We(e){for(var t=[],r=0,n=0;n0&&(26!==t&&Je(i),Ke(i,t),Je(i)),c(e[r],26===t?0:64)}function l(e,t,r,o,s){if((32&e.flags||!Te(e.name))&&n(e,i,a,793064,0,s),r0&&(Ke(t,26),Je(t)),r(e[n])}function _(e,t,r,n){if(e&&e.length){Ke(r,27);for(var a=256,o=0;o0&&(Ke(r,26),Je(r),a=0),i(t(e[o]),r,n,a);Ke(r,29)}}function p(e,t,r,n,i,a){Ke(r,19),e&&s(e,r,n,i,a);for(var o=0;o0||e)&&(Ke(r,26),Je(r)),s(t[o],r,n,i,a);Ke(r,20)}function g(t,r,n,a,o){e.isIdentifierTypePredicate(t)?r.writeParameter(t.parameterName):ze(r,99),Je(r),ze(r,126),Je(r),i(t.type,r,n,a,o)}function m(e,t,r,n,a){var o=In(e);2048&n&&ut(o)||(8&n?(Je(t),Ke(t,36)):Ke(t,56),Je(t),e.typePredicate?g(e.typePredicate,t,r,n,a):i(o,t,r,n,a))}function h(e,t,r,n,i,a){1===i&&(ze(t,94),Je(t)),e.target&&32&n?_(e.target.typeParameters,e.mapper,t,r):l(e.typeParameters,t,r,n,a),p(e.thisParameter,e.parameters,t,r,n,a),m(e,t,r,n,a)}function y(t,r,n,a,o,s){if(t){switch(t.isReadonly&&(ze(r,131),Je(r)),Ke(r,21),r.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),Ke(r,56),Je(r),n){case 1:ze(r,133);break;case 0:ze(r,136)}Ke(r,22),Ke(r,56),Je(r),i(t.type,r,a,o,s),Ke(r,25),r.writeLine()}}return Fv||(Fv={buildSymbolDisplay:n,buildTypeDisplay:i,buildTypeParameterDisplay:o,buildTypePredicateDisplay:g,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:p,buildDisplayForTypeParametersAndDelimiters:l,buildTypeParameterDisplayFromSymbol:a,buildSignatureDisplay:h,buildIndexSignatureDisplay:y,buildReturnTypeDisplay:m})}function et(t){if(t){var r=k(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 176:return et(t.parent.parent);case 226:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 233:case 229:case 230:case 231:case 228:case 232:case 237:if(e.isExternalModuleAugmentation(t))return!0;var r=ot(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==r.kind&&e.isInAmbientContext(r)?et(r):C(r);case 149:case 148:case 153:case 154:case 151:case 150:if(24&e.getModifierFlags(t))return!1;case 152:case 156:case 155:case 157:case 146:case 234:case 160:case 161:case 163:case 159:case 164:case 165:case 166:case 167:case 168:return et(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:default:return!1}}()),r.isVisible}return!1}function tt(t){function r(t){e.forEach(t,function(t){k(t).isVisible=!0;var n=B(t)||t;if(e.contains(a,n)||a.push(n),e.isInternalModuleImportEqualsDeclaration(t)){var i=t.moduleReference,o=Qp(i),s=w(t,o.text,901119,void 0,void 0);s&&r(s.declarations)}})}var n;if(t.parent&&243===t.parent.kind)n=w(t.parent,t.text,9289727,e.Diagnostics.Cannot_find_name_0,t);else if(246===t.parent.kind){var i=t.parent;n=i.parent.parent.moduleSpecifier?H(i.parent.parent,i):ie(i.propertyName||i.name,9289727)}var a=[];return n&&r(n.declarations),a}function rt(e,t){var r=nt(e,t);if(r>=0){for(var n=gv.length,i=r;i=0;r--){if(it(gv[r],hv[r]))return-1;if(gv[r]===e&&hv[r]===t)return r}return-1}function it(t,r){return 0===r?b(t).type:2===r?b(t).declaredType:1===r?t.resolvedBaseConstructorType:3===r?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+r)}function at(){return gv.pop(),hv.pop(),mv.pop()}function ot(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 226:case 227:case 242:case 241:case 240:case 239:return!1;default:return!0}}))&&t.parent}function st(t){var r=_r(be(t));return r.typeParameters?Xn(r,e.map(r.typeParameters,function(e){return ty})):r}function ct(e,t){var r=dn(e,t);return r?Lt(r):void 0}function ut(e){return e&&0!=(1&e.flags)}function lt(e){var t=ve(e);return t&&b(t).type||yt(e,!1)}function dt(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function ft(t,r,n){if(t=xc(t,function(e){return!(6144&e.flags)}),8192&t.flags)return yy;if(65536&t.flags)return Sc(t,function(e){return ft(e,r,n)});for(var i=e.createMap(),a=e.createMap(),o=0,s=r;o=2?Oi(ty):Oy;var o=e.map(i,function(t){return e.isOmittedExpression(t)?ty:bt(t,r,n)}),s=ji(o);return r&&(s=Yn(s),s.pattern=t),s}function St(e,t,r){return 174===e.kind?kt(e,t,r):xt(e,t,r)}function Ct(e,t){var r=yt(e,!0);return r?(t&&ys(e,r),261===e.kind?r:gs(r)):(r=e.dotDotDotToken?Oy:ty,t&&jh&&(Et(e)||hs(e,r)),r)}function Et(t){var r=e.getRootDeclaration(t);return p_(146===r.kind?r.parent:r)}function Dt(t){var r=b(t);if(!r.type){if(16777216&t.flags)return r.type=st(t);var n=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(n))return r.type=ty;if(243===n.kind)return r.type=jf(n.expression);if(65536&n.flags&&291===n.kind&&n.typeExpression)return r.type=Na(n.typeExpression.type);if(!rt(t,0))return ny;var i=void 0;i=194===n.kind||179===n.kind&&194===n.parent.kind?vt(t):Ct(n,!0),at()||(i=Rt(t)),r.type=i}return r.type}function Tt(t){if(t){if(153===t.kind)return t.type&&Na(t.type);var r=e.getSetAccessorTypeAnnotationNode(t);return r&&Na(r)}}function wt(e){var t=Xm(e);return t&&t.symbol}function At(e){return On(wn(e))}function Nt(t){var r=b(t);if(!r.type){var n=e.getDeclarationOfKind(t,153),i=e.getDeclarationOfKind(t,154);if(n&&65536&n.flags){var a=pt(n);if(a)return r.type=a}if(!rt(t,0))return ny;var o=void 0,s=Tt(n);if(s)o=s;else{var c=Tt(i);c?o=c:n&&n.body?o=zd(n):(jh&&(i?l(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,qe(t)):(e.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),l(n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,qe(t)))),o=ty)}if(!at()&&(o=ty,jh)){l(e.getDeclarationOfKind(t,153),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,qe(t))}r.type=o}return r.type}function Pt(e){var t=Qt(ir(e));return 540672&t.flags?t:void 0}function Mt(t){var r=b(t);if(!r.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))r.type=ty;else{var n=De(16,t);if(32&t.flags){var i=Pt(t);r.type=i?ta([n,i]):n}else r.type=Bh&&67108864&t.flags?as(n,2048):n}return r.type}function Ot(e){var t=b(e);return t.type||(t.type=lr(e)),t.type}function It(e){var t=b(e);if(!t.type){var r=$(e);t.type=107455&r.flags?Lt(r):ny}return t.type}function Ft(t){var r=b(t);if(!r.type)if(100===Nh)l(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),r.type=ny;else{if(!rt(t,0))return ny;Nh++;var n=to(Lt(r.target),r.mapper);Nh--,at()||(n=Rt(t)),r.type=n}return r.type}function Rt(t){return t.valueDeclaration.type?(l(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,qe(t)),ny):(jh&&l(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,qe(t)),ty)}function Lt(e){return 1&S(e)?Ft(e):7&e.flags?Dt(e):9136&e.flags?Mt(e):8&e.flags?Ot(e):98304&e.flags?Nt(e):8388608&e.flags?It(e):ny}function Bt(e,t){return void 0!==e&&void 0!==t&&0!=(4&x(e))&&e.target===t}function jt(e){return 4&x(e)?e.target:e}function zt(t,r){function n(t){if(7&x(t)){var i=jt(t);return i===r||e.forEach(Zt(i),n)}if(131072&t.flags)return e.forEach(t.types,n)}return n(t)}function Kt(t,r){for(var n=0,i=r;n0)return!0;if(540672&e.flags){var t=tn(e);return t&&tr(t)&&Ht(t)}return!1}function Gt(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function Xt(t,r,n){var i=e.length(r),a=e.isInJavaScriptFile(n);return e.filter(_n(t,1),function(t){return(a||i>=Dn(t.typeParameters))&&i<=e.length(t.typeParameters)})}function Yt(t,r,n){var i=Xt(t,r,n);if(r){var a=e.map(r,Na);i=e.map(i,function(e){return Rn(e,a)})}return i}function Qt(t){if(!t.resolvedBaseConstructorType){var r=Gt(t);if(!r)return t.resolvedBaseConstructorType=iy;if(!rt(t,1))return ny;var n=jf(r.expression);if(163840&n.flags&&Wr(n),!at())return l(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,qe(t.symbol)),t.resolvedBaseConstructorType=ny;if(!(1&n.flags||n===sy||Wt(n)))return l(r.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Ve(n)),t.resolvedBaseConstructorType=ny;t.resolvedBaseConstructorType=n}return t.resolvedBaseConstructorType}function Zt(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Fi(Yi(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&$t(t),64&t.symbol.flags&&rr(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function $t(t){t.resolvedBaseTypes=t.resolvedBaseTypes||Ph;var r=sn(Qt(t));if(163841&r.flags){var n,i=Gt(t),a=r&&r.symbol?_r(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&er(a))n=Zn(i,r.symbol);else if(1&r.flags)n=r;else{var o=Yt(r,i.typeArguments,i);if(!o.length)return void l(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);n=In(o[0])}var s=t.symbol.valueDeclaration;if(s&&e.isInJavaScriptFile(s)){var c=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);c&&(n=Na(c.typeExpression.type))}if(n!==ny)return tr(n)?t===n||zt(n,t)?void l(s,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Ve(t,void 0,1)):void(t.resolvedBaseTypes===Ph?t.resolvedBaseTypes=[n]:t.resolvedBaseTypes.push(n)):void l(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Ve(n))}}function er(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=e.typeArguments;return t[r].symbol!==n[r].symbol}return!0}function tr(t){return 16809985&t.flags&&!Hr(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!tr(e)})}function rr(t){t.resolvedBaseTypes=t.resolvedBaseTypes||Ph;for(var r=0,n=t.symbol.declarations;r1&&(r.flags|=65536,r.types=n,Wh.set(Wn(n),r))}}return t.declaredType}function lr(e){var t=b(e);if(!t.declaredType){var r=ur(be(e));t.declaredType=65536&r.flags?r.memberTypes[rm(e.valueDeclaration)]:r}return t.declaredType}function dr(e){var t=b(e);if(!t.declaredType){var r=Ce(16384);r.symbol=e,t.declaredType=r}return t.declaredType}function fr(e){var t=b(e);return t.declaredType||(t.declaredType=_r($(e))),t.declaredType}function _r(e){return 96&e.flags?ir(e):524288&e.flags?ar(e):262144&e.flags?dr(e):384&e.flags?ur(e):8&e.flags?lr(e):8388608&e.flags?fr(e):ny}function pr(e){if(e.typeArguments)for(var t=0,r=e.typeArguments;t=f)&&s<=_){var p=_?Ln(d,Tn(o,d.typeParameters,f,i)):wr(d);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,c.push(p)}}return c}function Nr(e,t,r,n,i){for(var a=0,o=e;a0)return;for(var i=1;i1){if(l=wr(c),e.forEach(u,function(e){return e.thisParameter})){var d=Yi(e.map(u,function(e){return Lt(e.thisParameter)||ty}),!0);l.thisParameter=us(c.thisParameter,d)}l.resolvedReturnType=void 0,l.unionSignatures=u}(i||(i=[])).push(l)}}}return i||Ph}function Or(e,t){for(var r=[],n=!1,i=0,a=e;i0&&(l=e.map(l,function(e){var t=wr(e);return t.resolvedReturnType=Br(In(e),o,c),t})),a=e.concatenate(a,l)}i=e.concatenate(i,_n(u,0)),r=Rr(r,mn(u,0)),n=Rr(n,mn(u,1))}(c);Ae(t,Mh,i,a,r,n)}function zr(e){var t=e.symbol;if(e.target){var r=br(Gr(e.target),e.mapper,!1),n=Oa(_n(e.target,0),e.mapper),i=Oa(_n(e.target,1),e.mapper),a=no(mn(e.target,0),e.mapper),o=no(mn(e.target,1),e.mapper);Ae(e,r,n,i,a,o)}else if(2048&t.flags){var r=t.members,n=Pn(r.get("__call")),i=Pn(r.get("__new")),a=qn(t,0),o=qn(t,1);Ae(e,r,n,i,a,o)}else{var r=Mh,i=Ph,a=void 0;if(t.exports&&(r=pe(t)),32&t.flags){var s=ir(t);i=Pn(t.members.get("__constructor")),i.length||(i=Ar(s));var c=Qt(s);704512&c.flags?(r=vr(we(r)),kr(r,Qr(c))):c===ty&&(a=Jn(ty,!1))}var o=384&t.flags?sv:void 0;Ae(e,r,Ph,i,a,o),8208&t.flags&&(e.callSignatures=Pn(t))}}function Kr(t){function r(e,r){var o=Ba([a],[e]),f=t.mapper?qa(t.mapper,o):o,_=to(s,f);if(32&e.flags){var p=e.text,g=dn(c,p),m=l||!!(g&&67108864&g.flags),h=d(4|(m?67108864:0),p);h.checkFlags=u||g&&Xd(g)?8:0,h.type=_,r&&(h.syntheticOrigin=r),i.set(p,h)}else 2&e.flags&&(n=Jn(_,u))}var n,i=e.createMap();Ae(t,Mh,Ph,Ph,void 0,void 0);var a=Jr(t),o=qr(t),s=Ur(t),c=sn(Vr(t)),u=!!t.declaration.readonlyToken,l=!!t.declaration.questionToken;if(170===t.declaration.typeParameter.constraint.kind){for(var f=0,_=Qr(c);f<_.length;f++){var p=_[f];r(ia(p),p)}mn(c,0)&&r(cy)}else{var g=540672&o.flags?sn(o):o;kc(262144&g.flags?oa(sn(g.type)):g,r)}Ae(t,i,Ph,Ph,n,void 0)}function Jr(e){return e.typeParameter||(e.typeParameter=dr(ve(e.declaration.typeParameter)))}function qr(e){return e.constraintType||(e.constraintType=to($r(Jr(e)),e.mapper||Ja)||ny)}function Ur(e){return e.templateType||(e.templateType=e.declaration.type?to(ht(Na(e.declaration.type),!!e.declaration.questionToken),e.mapper||Ja):ny)}function Vr(e){if(!e.modifiersType){var t=e.declaration.typeParameter.constraint;if(170===t.kind)e.modifiersType=to(Na(t.type),e.mapper||Ja);else{var r=pa(e.declaration),n=qr(r),i=n&&16384&n.flags?$r(n):n;e.modifiersType=i&&262144&i.flags?to(i.type,e.mapper||Ja):yy}}return e.modifiersType}function Hr(e){if(32&x(e)){return of(qr(e),802816)}return!1}function Wr(e){return e.members||(32768&e.flags?4&e.objectFlags?Dr(e):3&e.objectFlags?Er(e):16&e.objectFlags?zr(e):32&e.objectFlags&&Kr(e):65536&e.flags?Ir(e):131072&e.flags&&jr(e)),e}function Gr(e){return 32768&e.flags?Wr(e).properties:Ph}function Xr(e,t){if(32768&e.flags){var r=Wr(e),n=r.members.get(t);if(n&&xe(n))return n}}function Yr(t){if(!t.resolvedProperties){for(var r=e.createMap(),n=0,i=t.types;n=2):16777216&t.flags?yy:t}function cn(t,r){for(var n,i=t.types,a=65536&t.flags,o=a?24:0,s=a?0:67108864,c=4,u=0,l=0,f=i;l=0),i>=n.minArgumentCount}var a=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!a&&(!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=a.arguments.length)}function En(e){if(71===e.parameterName.kind){var t=e.parameterName;return{kind:1,parameterName:t?t.text:void 0,parameterIndex:t?qf(e.parent.parameters,t):void 0,type:Na(e.type)}}return{kind:0,type:Na(e.type)}}function Dn(e){var t=0;if(e)for(var r=0;r=n)&&o<=a){t||(t=[]);for(var c=o;cc.arguments.length&&!f.type||xn(f)||l||(a=n.length)}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var p=153===t.kind?154:153,g=e.getDeclarationOfKind(t.symbol,p);g&&(o=wt(g))}var m=152===t.kind?ir(ye(t.parent.symbol)):void 0,h=m?m.localTypeParameters:t.typeParameters?bn(t.typeParameters):vn(t),y=An(t,u,m),v=t.type&&158===t.type.kind?En(t.type):void 0;r.resolvedSignature=Tr(t,h,o,n,y,v,a,e.hasRestParameter(t),i)}return r.resolvedSignature}function An(t,r,n){if(r)return Na(t.parameters[0].type);if(n)return n;if(t.type)return Na(t.type);if(65536&t.flags){var i=Ld(t);if(i&&i!==ny)return i}if(153===t.kind&&!e.hasDynamicName(t)){return Tt(e.getDeclarationOfKind(t.symbol,154))}return e.nodeIsMissing(t.body)?ty:void 0}function Nn(t){function r(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.text&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&r(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,r)}}var n=k(t);return void 0===n.containsArgumentsReference&&(8192&n.flags?n.containsArgumentsReference=!0:n.containsArgumentsReference=r(t.body)),n.containsArgumentsReference}function Pn(e){if(!e)return Ph;for(var t=[],r=0;r0&&n.body){var i=e.declarations[r-1];if(n.parent===i.parent&&n.kind===i.kind&&n.pos===i.end)break}t.push(wn(n))}}return t}function Mn(e){var t=ae(e,e);if(t){var r=ce(t);if(r)return Lt(r)}return ty}function On(e){if(e.thisParameter)return Lt(e.thisParameter)}function In(t){if(!t.resolvedReturnType){if(!rt(t,3))return ny;var r=void 0;if(r=t.target?to(In(t.target),t.mapper):t.unionSignatures?Yi(e.map(t.unionSignatures,In),!0):zd(t.declaration),!at()&&(r=ty,jh)){var n=t.declaration;n.name?l(n.name,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(n.name)):l(n,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}t.resolvedReturnType=r}return t.resolvedReturnType}function Fn(t){if(t.hasRestParameter){var r=Lt(e.lastOrUndefined(t.parameters));if(4&x(r)&&r.target===Dy)return r.typeArguments[0]}return ty}function Rn(t,r){r=Tn(r,t.typeParameters,Dn(t.typeParameters));var n=t.instantiations||(t.instantiations=e.createMap()),i=Wn(r),a=n.get(i);return a||n.set(i,a=Ln(t,r)),a}function Ln(e,t){return Wa(e,Ba(e.typeParameters,t),!0)}function Bn(e){return e.typeParameters?(e.erasedSignatureCache||(e.erasedSignatureCache=Wa(e,ja(e.typeParameters),!0)),e.erasedSignatureCache):e}function jn(e){if(!e.isolatedSignatureType){var t=152===e.declaration.kind||156===e.declaration.kind,r=De(16);r.members=Mh,r.properties=Ph,r.callSignatures=t?Ph:[e],r.constructSignatures=t?[e]:Ph,e.isolatedSignatureType=r}return e.isolatedSignatureType}function zn(e){return e.members.get("__index")}function Kn(e,t){var r=1===t?133:136,n=zn(e);if(n)for(var i=0,a=n.declarations;i1&&(t+=":"+a),n+=a}return t}function Gn(e,t){for(var r=0,n=0,i=e;ni.length))return l(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,Ve(n,void 0,1),o,i.length),ny;return Xn(n,e.concatenate(n.outerTypeParameters,Tn(e.map(t.typeArguments,Na),i,o,t)))}return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,Ve(n)),ny):n}function $n(e,t){var r=_r(e),n=b(e),i=n.typeParameters,a=Wn(t),o=n.instantiations.get(a);return o||n.instantiations.set(a,o=ro(r,Ba(i,Tn(t,i,Dn(i))))),o}function ei(t,r){var n=_r(r),i=b(r).typeParameters;if(i){var a=e.length(t.typeArguments),o=Dn(i);if(ai.length)return l(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,qe(r),o,i.length),ny;return $n(r,e.map(t.typeArguments,Na))}return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,qe(r)),ny):n}function ti(t,r){return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,qe(r)),ny):_r(r)}function ri(t){switch(t.kind){case 159:return t.typeName;case 277:return t.name;case 201:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function ni(e){return e?ie(e,793064)||$h:$h}function ii(e,t){return t===$h?ny:96&t.flags?Zn(e,t):524288&t.flags?ei(e,t):107455&t.flags&&277===e.kind?Lt(t):ti(e,t)}function ai(t){if(e.isIdentifier(t.name))switch(t.name.text){case"String":return cy;case"Number":return uy;case"Boolean":return fy;case"Void":return py;case"Undefined":return iy;case"Null":return oy;case"Object":return ty;case"Function":return xy;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:Fi(ty);case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:Bd(ty)}}function oi(e){var t=Na(e.type);return Bh?Yi([t,oy]):t}function si(t){var r=k(t);if(!r.resolvedType){var n=void 0,i=void 0;if(277===t.kind){if(!(i=ai(t))){var a=ri(t);n=ni(a),i=ii(t,n)}}else{var o=159===t.kind?t.typeName:e.isEntityNameExpression(t.expression)?t.expression:void 0;n=o&&ie(o,793064)||$h,i=n===$h?ny:96&n.flags?Zn(t,n):524288&n.flags?ei(t,n):ti(t,n)}r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function ci(e){var t=k(e);return t.resolvedType||(t.resolvedType=gs(jf(e.exprName))),t.resolvedType}function ui(t,r){function n(e){for(var t=e.declarations,r=0,n=t;r>1),o=e[a].id;if(o===i)return a;o>i?n=a-1:r=a+1}return~r}function Ji(e,t){return Ki(e,t)>=0}function qi(e,t){var r=t.flags;if(65536&r)Ui(e,t.types);else if(1&r)e.containsAny=!0;else if(!Bh&&6144&r)2048&r&&(e.containsUndefined=!0),4096&r&&(e.containsNull=!0),2097152&r||(e.containsNonWideningType=!0);else if(!(8192&r)){2&r&&(e.containsString=!0),4&r&&(e.containsNumber=!0),96&r&&(e.containsStringOrNumberLiteral=!0);var n=e.length,i=n&&t.id>e[n-1].id?~n:Ki(e,t);i<0&&(32768&r&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&Vi(e,t)||e.splice(~i,0,t))}}function Ui(e,t){for(var r=0,n=t;r0;)r--,Hi(t[r],t)&&e.orderedRemoveItemAt(t,r)}function Xi(t){for(var r=t.length;r>0;){r--;var n=t[r];(32&n.flags&&t.containsString||64&n.flags&&t.containsNumber||96&n.flags&&1048576&n.flags&&Ji(t,n.regularType))&&e.orderedRemoveItemAt(t,r)}}function Yi(e,t,r,n){if(0===e.length)return gy;if(1===e.length)return e[0];var i=[];return Ui(i,e),i.containsAny?ty:(t?Gi(i):i.containsStringOrNumberLiteral&&Xi(i),0===i.length?i.containsNull?i.containsNonWideningType?oy:sy:i.containsUndefined?i.containsNonWideningType?iy:ay:gy:Qi(i,r,n))}function Qi(e,t,r){if(0===e.length)return gy;if(1===e.length)return e[0];var n=Wn(e),i=Wh.get(n);if(!i){i=Ce(65536|Gn(e,6144)),Wh.set(n,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=r}return i}function Zi(t){var r=k(t);return r.resolvedType||(r.resolvedType=Yi(e.map(t.types,Na),!1,ma(t),ha(t))),r.resolvedType}function $i(t,r){131072&r.flags?ea(t,r.types):1&r.flags?t.containsAny=!0:16&x(r)&&To(r)?t.containsEmptyObject=!0:8192&r.flags||!Bh&&6144&r.flags||e.contains(t,r)||(32768&r.flags&&(t.containsObjectType=!0),65536&r.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&r.flags&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&Vi(t,r)||t.push(r))}function ea(e,t){for(var r=0,n=t;r=r?yy:n};return n.mappedTypes=t,n}function Ka(e){if(!e.mapper){var t=function(t){for(var r=e.signature.typeParameters,n=0;nr.parameters.length)return 0;t=Bn(t),r=Bn(r);var s=-1,c=On(t);if(c&&c!==py){var u=On(r);if(u){var l=o(c,u,!1)||o(u,c,i);if(!l)return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;s&=l}}for(var d=Co(t),f=Co(r),_=Eo(t,d,r,f),p=t.parameters,g=r.parameters,m=0;m<_;m++){var h=m0){for(var s=0;s=5&&32768&e.flags){var n=e.symbol;if(n)for(var i=0,a=0;a=5)return!0}}return!1}function jo(e,t){return 0!==zo(e,t,uo)}function zo(e,t,r){if(e===t)return-1;var n=24&Dl(e);if(n!==(24&Dl(t)))return 0;if(n){if(Lp(e)!==Lp(t))return 0}else if((67108864&e.flags)!=(67108864&t.flags))return 0;return Xd(e)!==Xd(t)?0:r(Lt(e),Lt(t))}function Ko(e,t,r){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var n=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(r&&e.minArgumentCount<=t.minArgumentCount&&(n>i||n===i&&e.parameters.length>=t.parameters.length))}function Jo(t,r,n,i,a,o){if(t===r)return-1;if(!Ko(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;t=Bn(t),r=Bn(r);var s=-1;if(!i){var c=On(t);if(c){var u=On(r);if(u){var l=o(c,u);if(!l)return 0;s&=l}}}for(var d=r.parameters.length,f=0;f=e.parameters.length-1}function Uo(e,t){for(var r=0,n=t;ro&&(i=t[s],a=u,o=c),o===t.length-1)break}ho(a,i,r,e.Diagnostics.Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0,n)}function Xo(e){return 4&x(e)&&e.target===Dy}function Yo(e){return 4&x(e)&&(e.target===Dy||e.target===Ty)||!(6144&e.flags)&&_o(e,Fy)}function Qo(e){return!!dn(e,"0")}function Zo(e){return 0!=(6624&e.flags)}function $o(t){return!!(8&t.flags)||(65536&t.flags?!!(16&t.flags)||!e.forEach(t.types,function(e){return!Zo(e)}):Zo(t))}function es(t){return 32&t.flags?cy:64&t.flags?uy:128&t.flags?fy:256&t.flags?t.baseType:65536&t.flags&&!(16&t.flags)?Yi(e.sameMap(t.types,es)):t}function ts(t){return 32&t.flags&&1048576&t.flags?cy:64&t.flags&&1048576&t.flags?uy:128&t.flags?fy:256&t.flags?t.baseType:65536&t.flags&&!(16&t.flags)?Yi(e.sameMap(t.types,ts)):t}function rs(e){return!!(4&x(e)&&8&e.target.objectFlags)}function ns(e){for(var t=0,r=0,n=e;r=0&&!r[s].isFixed){var l=Es(n,i);l&&(m++,o(l,t[s]),m--)}return}if(16384&a.flags)return o(oa(n),a),void o(Yi(e.map(Qr(n),Lt)),Ur(i))}c(n,i),u(n,i,0),u(n,i,1),f(n,i)}function c(e,t){for(var r=Gr(t),n=0,i=r;nr)&&(t.failedTypeParameterIndex=r)}return i}function Os(e){for(var t=0;t=2||0==(34&r.flags)||260===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=Yc(t.parent,n),a=n,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}o&&(i&&(k(a).flags|=65536),214===n.kind&&e.getAncestor(r.valueDeclaration,227).parent===n&&Zc(t,n)&&(k(r.valueDeclaration).flags|=2097152),k(r.valueDeclaration).flags|=262144),i&&(k(r.valueDeclaration).flags|=131072)}}function Zc(t,r){for(var n=t;185===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(192===n.parent.kind||193===n.parent.kind){var a=n.parent;i=43===a.operator||44===a.operator}return!!i&&!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}function $c(e,t){if(k(e).flags|=2,149===t.kind||152===t.kind){k(t.parent).flags|=4}else k(t).flags|=4}function eu(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,eu)}function tu(e){var t=k(e);return void 0===t.hasSuperCall&&(t.superCall=eu(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function ru(e){return Qt(_r(ve(e)))===sy}function nu(t,r,n){var i=r.parent;if(e.getClassExtendsHeritageClauseElement(i)&&!ru(i)){var a=tu(r);(!a||a.end>t.pos)&&l(t,n)}}function iu(t){var r=e.getThisContainer(t,!0),n=!1;switch(152===r.kind&&nu(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===r.kind&&(r=e.getThisContainer(r,!1),n=Ih<2),r.kind){case 233:l(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:l(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:ou(t,r)&&l(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:32&e.getModifierFlags(r)&&l(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:l(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}if(n&&$c(t,r),e.isFunctionLike(r)&&(!mu(t)||e.getThisParameter(r))){if(186===r.kind&&194===r.parent.kind&&3===e.getSpecialPropertyAssignmentKind(r.parent)){var i=r.parent.left.expression.expression,a=jf(i).symbol;if(a&&a.members&&16&a.flags)return Cd(a)}var o=At(r)||du(r);if(o)return o}if(e.isClassLike(r.parent)){var s=ve(r.parent),c=e.hasModifier(r,32)?Lt(s):_r(s).thisType;return Kc(t,c)}if(e.isInJavaScriptFile(t)){var c=au(r);if(c&&c!==ny)return c}return zh&&l(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),ty}function au(t){var r=e.getJSDocType(t);if(r&&279===r.kind){var n=r;if(n.parameters.length>0&&282===n.parameters[0].type.kind)return Na(n.parameters[0].type)}}function ou(t,r){return!!e.findAncestor(t,function(e){return e===r?"quit":146===e.kind})}function su(t){var r=181===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=!1;if(!r)for(;n&&187===n.kind;)n=e.getSuperContainer(n,!0),i=Ih<2;var a=function(t){return!!t&&(r?152===t.kind:!(!e.isClassLike(t.parent)&&178!==t.parent.kind)&&(32&e.getModifierFlags(t)?151===t.kind||150===t.kind||153===t.kind||154===t.kind:151===t.kind||150===t.kind||153===t.kind||154===t.kind||149===t.kind||148===t.kind||152===t.kind))}(n),o=0;if(!a){var s=e.findAncestor(t,function(e){return e===n?"quit":144===e.kind});return s&&144===s.kind?l(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?l(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(e.isClassLike(n.parent)||178===n.parent.kind)?l(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):l(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),ny}if(r||152!==n.kind||nu(t,n,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),o=32&e.getModifierFlags(n)||r?512:256,k(t).flags|=o,151===n.kind&&256&e.getModifierFlags(n)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?k(n).flags|=4096:k(n).flags|=2048),i&&$c(t.parent,n),178===n.parent.kind)return Ih<2?(l(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ny):ty;var c=n.parent,u=_r(ve(c)),d=u&&Zt(u)[0];return d?152===n.kind&&ou(t,n)?(l(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ny):512===o?Qt(u):Sr(d,u.thisType):(e.getClassExtendsHeritageClauseElement(c)||l(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ny)}function cu(e){return 151!==e.kind&&153!==e.kind&&154!==e.kind||178!==e.parent.kind?186===e.kind&&261===e.parent.kind?e.parent.parent:void 0:e.parent}function uu(e){return 4&x(e)&&e.target===My?e.typeArguments[0]:void 0}function lu(t){return Sc(t,function(t){return 131072&t.flags?e.forEach(t.types,uu):uu(t)})}function du(e){if(187!==e.kind){if(oo(e)){var t=Bu(e);if(t){var r=t.thisParameter;if(r)return Lt(r)}}if(zh){var n=cu(e);if(n){for(var i=Nu(n),a=n,o=i;o;){var s=lu(o);if(s)return to(s,Mu(n));if(261!==a.parent.kind)break;a=a.parent.parent,o=Nu(a)}return i?ss(i):Af(n)}if(194===e.parent.kind&&58===e.parent.operatorToken.kind){var c=e.parent.left;if(179===c.kind||180===c.kind)return Af(c.expression)}}}}function fu(t){var r=t.parent;if(oo(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=e.indexOf(r.parameters,t);if(t.dotDotDotToken){for(var a=[],o=i;o=0){return Md(Sd(t),i)}}function vu(e,t){if(183===e.parent.kind)return yu(e.parent,t)}function bu(t){var r=t.parent,n=r.operatorToken.kind;if(n>=58&&n<=70){if(0!==e.getSpecialPropertyAssignmentKind(r))return;if(t===r.right)return Lf(r.left)}else{if(54===n){var i=Pu(r);return i||t!==r.right||(i=Lf(r.left)),i}if((53===n||26===n)&&t===r.right)return Pu(r)}}function ku(e,t){return Sc(e,function(e){var r=229376&e.flags?dn(e,t):void 0;return r?Lt(r):void 0})}function xu(e,t){return Sc(e,function(e){return gn(e,t)})}function Su(t){return!!(65536&t.flags?e.forEach(t.types,Qo):Qo(t))}function Cu(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!yg(t))return Eu(t)}function Eu(t){var r=t.parent,n=Nu(r);if(n){if(!e.hasDynamicName(t)){var i=ve(t).name,a=ku(n,i);if(a)return a}return Ju(t.name)&&xu(n,1)||xu(n,0)}}function Du(t){var r=t.parent,n=Nu(r);if(n){return ku(n,""+e.indexOf(r.elements,t))||xu(n,1)||pp(n,void 0,!1,!1,!1)}}function Tu(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Pu(t):void 0}function wu(t){var r=e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes,n=Pu(r);if(n&&!ut(n)){if(e.isJsxAttribute(t.parent))return ct(n,t.parent.name.text);if(249===t.parent.kind){var i=cl();return i&&""!==i?ct(n,i):ty}return n}}function Au(t){var r=Pu(t.parent);if(e.isJsxAttribute(t)){if(!r||ut(r))return;return ct(r,t.name.text)}return r}function Nu(e){var t=Pu(e);return t&&sn(t)}function Pu(t){if(!yg(t)){if(t.contextualType)return t.contextualType;var r=t.parent;switch(r.kind){case 226:case 146:case 149:case 148:case 176:return _u(t);case 187:case 219:return pu(t);case 197:return gu(r);case 181:case 182:return yu(r,t);case 184:case 202:return Na(r.type);case 194:return bu(t);case 261:case 262:return Eu(r);case 177:return Du(t);case 195:return Tu(t);case 205:return e.Debug.assert(196===r.parent.kind),vu(r.parent,t);case 185:return Pu(r);case 256:return wu(r);case 253:case 255:return Au(r);case 251:case 250:return gl(r)}}}function Mu(t){return t=e.findAncestor(t,function(e){return!!e.contextualMapper}),t?t.contextualMapper:Ja}function Ou(e,t){var r=fn(e,0);if(1===r.length){var n=r[0];if(!n.typeParameters&&!Iu(n,t))return n}}function Iu(t,r){for(var n=0;n0&&(s=ya(s,n()),o=[],a=e.createMap(),m=!1,h=!1,p=0);var S=jf(b.expression);if(!Yu(S))return l(b,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ny;s=ya(s,S),y=v+1;continue}e.Debug.assert(153===b.kind||154===b.kind),lg(b)}e.hasDynamicName(b)?Ju(b.name)?h=!0:m=!0:a.set(k.name,k),o.push(k)}if(f)for(var D=0,T=Qr(u);D0&&(s=ya(s,n())),32768&s.flags&&(s.flags|=c,s.symbol=t.symbol),s):n()}function Yu(t){return!!(16783361&t.flags||32768&t.flags&&!Hr(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!Yu(e)}))}function Qu(e){return xl(e),yl()||ty}function Zu(e){return xl(e.openingElement),el(e.closingElement.tagName)?il(e.closingElement):jf(e.closingElement.tagName),yl()||ty}function $u(e){return e.indexOf("-")<0}function el(t){return 179!==t.kind&&99!==t.kind&&e.isIntrinsicJsxName(t.text)}function tl(t,r,n){function i(e,t){var r=Ne(e,t,Ph,Ph,void 0,void 0),n=Oh.suppressExcessPropertyErrors?0:1048576;return r.flags|=37748736|n,r.objectFlags|=128,r}for(var a=t.attributes,o=e.createMap(),s=yy,c=[],u=0,f=a.properties;u0&&(s=ya(s,i(a.symbol,o)),c=[],o=e.createMap());var g=jf(_.expression);if(!Yu(g))return l(_,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ty;if(ut(g))return ty;s=ya(s,g)}}s!==yy&&(c.length>0&&(s=ya(s,i(a.symbol,o)),c=[],o=e.createMap()),c=Qr(s)),o=e.createMap(),c&&e.forEach(c,function(e){r&&!r(e)||o.set(e.name,e)});var h=249===t.parent.kind?t.parent:void 0;if(h&&h.openingElement===t&&h.children.length>0){for(var y=[],v=0,b=h.children;v1&&l(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,t)}}function sl(){return Kv||(Kv=!0,Ov=ol(Uv.ElementAttributesPropertyNameContainer)),Ov}function cl(){return Jv||(Jv=!0,Iv=ol(Uv.ElementChildrenAttributeNameContainer)),Iv}function ul(t,r,n,i){if(e.Debug.assert(!(65536&r.flags)),!i||!_o(n,i)){var a=vl();if(a){var o=vd(t,r,void 0);if(o!==iv){var s=o&&In(o),c=s&&(0===o.parameters.length?yy:Lt(o.parameters[0]));if(s&&_o(s,a)){var u=nl(Uv.IntrinsicAttributes);return u!==ny&&(c=Fr(u,c)),c}}}}}function ll(t,r,n,i){if(e.Debug.assert(!(65536&r.flags)),!i||!_o(n,i)){var a=vl();if(a){var o=[];vd(t,r,o);for(var s=void 0,c=void 0,u=0,l=o;u0)?l(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,sl()):yo(n,r,t.attributes.properties.length>0?t.attributes:t)}function Cl(t,r){if(t.expression){var n=jf(t.expression,r);return t.dotDotDotToken&&n!==ty&&!Xo(n)&&l(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type,t.toString(),Ve(n)),n}return ny}function El(e){return e.valueDeclaration?e.valueDeclaration.kind:149}function Dl(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?r:-29&r}if(6&S(t)){var n=t.checkFlags;return(256&n?8:64&n?4:16)|(512&n?32:0)}return 16777216&t.flags?36:0}function Tl(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function wl(e){return!!(8192&e.flags||4&S(e))}function Al(t,r,n,i){var a=Dl(i),o=179===t.kind||226===t.kind?t.name:t.right;if(256&S(i))return l(o,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,qe(i),Ve(n)),!1;if(97===r.kind){if(Ih<2){if(Mo(i,function(e){var t=El(e);return 151!==t&&150!==t}))return l(o,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1}if(128&a)return l(o,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,qe(i),Ve(Oo(i))),!1}if(!(24&a))return!0;if(8&a){return!!Eg(t,Bp(be(i)))||(l(o,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,qe(i),Ve(Oo(i))),!1)}if(97===r.kind)return!0;var s=Cg(t,function(e){var t=_r(ve(e));return Ro(t,i)?t:void 0});return s?!!(32&a)||(16384&n.flags&&n.isThisType&&(n=$r(n)),!!(3&x(jt(n))&&zt(n,s))||(l(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,qe(i),Ve(s)),!1)):(l(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,qe(i),Ve(Oo(i)||n)),!1)}function Nl(e){return Pl(jf(e),e)}function Pl(t,r){var n=6144&(Bh?is(t):t.flags);if(n){l(r,2048&n?4096&n?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null);var i=ss(t);return 14336&i.flags?ny:i}return t}function Ml(e){return Ll(e,e.expression,e.name)}function Ol(e){return Ll(e,e.left,e.right)}function Il(t,r){var n;if(65536&r.flags&&!(8190&r.flags))for(var i=0,a=r.types;i=g&&o.length<=p))return!1;if(c>=0)return qo(n,c);if(!n.hasRestParameter&&a>n.parameters.length)return!1;var m=a>=n.minArgumentCount;return s||m}function Xl(e){if(32768&e.flags){var t=Wr(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function Yl(e,t,r){var n=bs(e,!0,!1);return vs(t,e,function(e,t){Ds(n,to(e,r),t)}),Rn(e,Os(n))}function Ql(e,t,r,n,i){for(var a=t.typeParameters,o=Ka(i),s=0;s0?[t.attributes]:Ph:t.arguments||Ph}return r}function nd(e,t,r){if(147!==e.kind)return t.length;switch(e.parent.kind){case 229:case 199:return 1;case 149:return 2;case 151:case 153:case 154:return 0===Ih?2:r.parameters.length>=3?3:2;case 146:return 3}}function id(t){if(229===t.kind){var r=ve(t);return Lt(r)}if(146===t.kind&&(t=t.parent,152===t.kind)){var r=ve(t);return Lt(r)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?Lg(t):(e.Debug.fail("Unsupported decorator target."),ny)}function ad(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),ny;if(146===t.kind&&(t=t.parent,152===t.kind))return ty;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var r=t;switch(r.name.kind){case 71:case 8:case 9:return Ca(32,r.name.text);case 144:var n=Wu(r.name);return sf(n,512)?n:cy;default:return e.Debug.fail("Unsupported property name."),ny}}return e.Debug.fail("Unsupported decorator target."),ny}function od(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a third synthetic argument."),ny;if(146===t.kind)return uy;if(149===t.kind)return e.Debug.fail("Property decorators should not have a third synthetic argument."),ny;if(151===t.kind||153===t.kind||154===t.kind){return Ni(Og(t))}return e.Debug.fail("Unsupported decorator target."),ny}function sd(t,r){return 0===r?id(t.parent):1===r?ad(t.parent):2===r?od(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),ny)}function cd(e,t){return 147===e.kind?sd(e,t):0===t&&183===e.kind?gi():void 0}function ud(e,t,r){if(147!==e.kind&&(0!==r||183!==e.kind))return t[r]}function ld(e,t,r){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:r}function dd(t,r,n,i){function o(r,n,a,o){var s;s=e.chainDiagnosticMessages(s,r,n,a,o),i&&(s=e.chainDiagnosticMessages(s,i)),Nv.add(e.createDiagnosticForNodeFromMessageChain(t,s))}function s(r,n,i){void 0===i&&(i=!1);for(var a=0,o=r;a1&&(S=s(m,Vv,C)),S||(b=void 0,k=void 0,x=void 0,S=s(m,Hv,C)),S)return S;if(b){if(f)return b;ed(t,y,b,Hv,void 0,!0)}else if(k)if(u||l||!c){e.Debug.assert(x.failedTypeParameterIndex>=0);var E=k.typeParameters[x.failedTypeParameterIndex],D=Ns(x,x.failedTypeParameterIndex),T=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly,Ve(E));i&&(T=e.chainDiagnosticMessages(T,i)),Go(D,t.tagName||t.expression||t.tag,T)}else{var w=t.typeArguments;Zl(k,w,e.map(w,Na),!0,i)}else o(e.Diagnostics.Supplied_parameters_do_not_match_any_signature_of_call_target);if(!a)for(var A=0,N=m;A=0&&l(t.arguments[n],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=Nl(t.expression);if(i===my)return ov;if((i=sn(i))===ny)return Vl(t);var a=i.symbol&&Bp(i.symbol);if(a&&128&e.getModifierFlags(a))return l(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(a.name)),Vl(t);if(ut(i))return t.typeArguments&&l(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ul(t);var o=_n(i,1);if(o.length)return gd(t,o[0])?dd(t,o,r):Vl(t);var s=_n(i,0);if(s.length){var c=dd(t,s,r);return In(c)!==py&&l(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),On(c)===py&&l(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return l(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),Vl(t)}function gd(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getModifierFlags(n);if(!(24&i))return!0;var a=Bp(n.parent.symbol),o=_r(n.parent.symbol);if(!Eg(t,a)){var s=e.getContainingClass(t);if(s)for(var c=Og(s),u=Zt(c);u.length;){var d=u[0];if(16&i&&d.symbol===n.parent.symbol)return!0;u=Zt(d)}return 8&i&&l(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ve(o)),16&i&&l(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ve(o)),!1}return!0}function md(t,r){var n=jf(t.tag),i=sn(n);if(i===ny)return Vl(t);var a=_n(i,0),o=_n(i,1);return _d(n,i,a.length,o.length)?Ul(t):a.length?dd(t,a,r):(l(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Ve(i)),Vl(t))}function hd(t){switch(t.parent.kind){case 229:case 199:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 146:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 149:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 151:case 153:case 154:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function yd(t,r){var n=jf(t.expression),i=sn(n);if(i===ny)return Vl(t);var a=_n(i,0),o=_n(i,1);if(_d(n,i,a.length,o.length))return Ul(t);var s=hd(t);if(!a.length){var c=void 0;return c=e.chainDiagnosticMessages(c,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Ve(i)),c=e.chainDiagnosticMessages(c,s),Nv.add(e.createDiagnosticForNodeFromMessageChain(t,c)),Vl(t)}return dd(t,a,r,s)}function vd(t,r,n){return e.Debug.assert(!(65536&r.flags)),bd(t,r,n)}function bd(e,t,r){if(65536&t.flags){for(var n=t.types,i=void 0,a=0,o=n;a0){return dd(e,c,r)}}function kd(t,r){switch(t.kind){case 181:return fd(t,r);case 182:return pd(t,r);case 183:return md(t,r);case 147:return yd(t,r);case 251:case 250:return bd(t,jf(t.tagName),r)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.")}function xd(e,t){var r=k(e),n=r.resolvedSignature;if(n&&n!==av&&!t)return n;r.resolvedSignature=av;var i=kd(e,t);return r.resolvedSignature=lv===dv?i:n,i}function Sd(e){return k(e).resolvedSignature===av?av:xd(e)}function Cd(e){var t=b(e);return t.inferredClassType||(t.inferredClassType=Ne(e,e.members,Ph,Ph,void 0,void 0)),t.inferredClassType}function Ed(t){Fm(t,t.typeArguments)||Lm(t,t.arguments);var r=xd(t);if(97===t.expression.kind)return py;if(182===t.kind){var n=r.declaration;if(n&&152!==n.kind&&156!==n.kind&&161!==n.kind&&!e.isJSDocConstructSignature(n)){var i=71===t.expression.kind?Is(t.expression):jf(t.expression).symbol;return i&&e.isDeclarationOfFunctionOrClassExpression(i)&&(i=ve(i.valueDeclaration.initializer)),i&&i.members&&16&i.flags?Cd(i):(jh&&l(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),ty)}}return e.isInJavaScriptFile(t)&&Dd(t)?Mn(t.arguments[0]):In(r)}function Dd(t){if(!e.isRequireCall(t,!0))return!1;var r=w(t.expression,t.expression.text,107455,void 0,void 0);if(!r)return!0;if(8388608&r.flags)return!1;var n=16&r.flags?228:3&r.flags?226:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return e.isInAmbientContext(i)}return!1}function Td(e){return In(xd(e))}function wd(t){var r=ds(es(jf(t.expression)));ug(t.type);var n=Na(t.type);if(a&&n!==ny){go(n,gs(r))||vo(r,n,t,e.Diagnostics.Type_0_cannot_be_converted_to_type_1)}return n}function Ad(e){return ss(jf(e.expression))}function Nd(t){sh(t);var r=e.getNewTargetContainer(t);if(r){if(152===r.kind){var n=ve(r.parent);return Lt(n)}var n=ve(r);return Lt(n)}return l(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ny}function Pd(e){var t=Lt(e);if(Bh){var r=e.valueDeclaration;if(r&&r.initializer)return as(t,2048)}return t}function Md(e,t){return e.hasRestParameter?t0?Md(e,0):gy}function Id(t,r,n,i){var a=t.parameters.length-(t.hasRestParameter?1:0);if(2===i)for(var o=0;o=58&&d<=70&&Zd(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)&&yo(r,f,t,void 0)}function u(){l(o||r,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),Ve(f),Ve(_))}var d=r.kind;if(58===d&&(178===t.kind||177===t.kind))return mf(t,jf(n,i),i);var f=jf(t,i),_=jf(n,i);switch(d){case 39:case 40:case 61:case 62:case 41:case 63:case 42:case 64:case 38:case 60:case 45:case 65:case 46:case 66:case 47:case 67:case 49:case 69:case 50:case 70:case 48:case 68:if(f===my||_===my)return my;f=Pl(f,t),_=Pl(_,n);var p=void 0;if(136&f.flags&&136&_.flags&&void 0!==(p=function(e){switch(e){case 49:case 69:return 54;case 50:case 70:return 35;case 48:case 68:return 53;default:return}}(r.kind)))l(o||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(p));else{var g=Gd(t,f,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type),m=Gd(n,_,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type);g&&m&&c(uy)}return uy;case 37:case 59:if(f===my||_===my)return my;sf(f,262179)||sf(_,262179)||(f=Pl(f,t),_=Pl(_,n));var h=void 0;if(sf(f,340)&&sf(_,340))h=uy;else if(sf(f,262178)||sf(_,262178)?h=cy:(ut(f)||ut(_))&&(h=f===ny||_===ny?ny:ty),h&&!s(d))return h;return h?(59===d&&c(h),h):(u(),ty);case 27:case 29:case 30:case 31:return s(d)&&(f=es(Pl(f,t)),_=es(Pl(_,n)),go(f,_)||go(_,f)||u()),fy;case 32:case 33:case 34:case 35:var y=$o(f),v=$o(_);return y&&v||(f=y?es(f):f,_=v?es(_):_),vf(f,_)||vf(_,f)||u(),fy;case 93:return lf(t,n,f,_);case 92:return df(t,n,f,_);case 53:return 1048576&Xs(f)?as(_,is(Bh?f:es(_))):f;case 54:return 2097152&Xs(f)?bf(os(f),_):f;case 58:return c(_),ds(_);case 26:return Oh.allowUnreachableCode||!yf(t)||function(e){return 71===e.kind&&"eval"===e.text}(n)||l(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),_}}function Sf(t){for(var r=t,n=t.parent;n;){if(e.isFunctionLike(n)&&r===n.body)return!1;if(e.isClassLike(r))return!0;r=n,n=n.parent}return!1}function Cf(t){if(a&&(4096&t.flags&&!Sf(t)||uh(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),mu(t)&&l(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)),t.expression){var r=e.getContainingFunction(t),n=r&&e.getFunctionFlags(r);if(t.asteriskToken&&(2&n?Ih<4&&hm(t,4096):Ih<2&&Oh.downlevelIteration&&hm(t,256)),1&n){var i=Af(t.expression,void 0),o=void 0,s=!!t.asteriskToken;if(s&&(o=_p(i,t.expression,!1,0!=(2&n))),r.type){var c=hp(Na(r.type),0!=(2&n))||ty;s?yo(2&n?k_(o,t.expression,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):o,c,t.expression,void 0):yo(2&n?k_(i,t.expression,e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,c,t.expression,void 0)}}}return ty}function Ef(e,t){return jf(e.condition),bf(jf(e.whenTrue,t),jf(e.whenFalse,t))}function Df(e){switch(8===e.kind&&vh(e),e.kind){case 9:return xa(Ca(32,e.text));case 8:return xa(Ca(64,e.text));case 101:return ly;case 86:return dy}}function Tf(t){return e.forEach(t.templateSpans,function(e){jf(e.expression)}),cy}function wf(e,t,r){var n=e.contextualType,i=e.contextualMapper;e.contextualType=t,e.contextualMapper=r;var a=r===Ja?1:r?2:0,o=jf(e,a);return e.contextualType=n,e.contextualMapper=i,o}function Af(e,t){var r=k(e);if(!r.resolvedType){var n=lv;lv=dv,r.resolvedType=jf(e,t),lv=n}return r.resolvedType}function Nf(t){return t=e.skipParentheses(t),184===t.kind||202===t.kind}function Pf(t){var r=Lf(t.initializer,!0);return 2&e.getCombinedNodeFlags(t)||64&e.getCombinedModifierFlags(t)&&!e.isParameterPropertyDeclaration(t)||Nf(t.initializer)?r:ts(r)}function Mf(e){if(e){if(540672&e.flags){var t=tn(e)||yy;if(30&t.flags)return!0;e=t}return of(e,262624)}return!1}function Of(e,t){var r=jf(e,t);return Nf(e)||Mf(Pu(e))?r:ts(r)}function If(e,t){return 144===e.name.kind&&Wu(e.name),Of(e.initializer,t)}function Ff(e,t){return Qm(e),144===e.name.kind&&Wu(e.name),Rf(e,Hd(e,t),t)}function Rf(e,t,r){if(2===r){var n=Xl(t);if(n&&n.typeParameters){var i=Nu(e);if(i){var a=Xl(i);if(a&&!a.typeParameters)return jn(Yl(n,a,Mu(e)))}}}return t}function Lf(t,r){if(181===t.kind&&97!==t.expression.kind&&!e.isRequireCall(t,!0)){var n=Nl(t.expression),i=Xl(n);if(i&&!i.typeParameters)return In(i)}return r?Af(t):jf(t)}function Bf(e){var t=e.contextualType;e.contextualType=ty;var r=Lf(e);return e.contextualType=t,r}function jf(t,r){var n;if(143===t.kind)n=Ol(t);else{n=Rf(t,zf(t,r),r)}if(cf(n)){179===t.parent.kind&&t.parent.expression===t||180===t.parent.kind&&t.parent.expression===t||(71===t.kind||143===t.kind)&&Tg(t)||l(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)}return n}function zf(t,r){switch(t.kind){case 71:return Xc(t);case 99:return iu(t);case 97:return su(t);case 95:return sy;case 9:case 8:case 101:case 86:return Df(t);case 196:return Tf(t);case 13:return cy;case 12:return Py;case 177:return Ku(t,r);case 178:return Xu(t,r);case 179:return Ml(t);case 180:return Jl(t);case 181:case 182:return Ed(t);case 183:return Td(t);case 185:return jf(t.expression,r);case 199:return Mp(t);case 186:case 187:return Hd(t,r);case 189:return ef(t);case 184:case 202:return wd(t);case 203:return Ad(t);case 204:return Nd(t);case 188:return $d(t);case 190:return tf(t);case 191:return rf(t);case 192:return nf(t);case 193:return af(t);case 194:return kf(t,r);case 195:return Ef(t,r);case 198:return ju(t,r);case 200:return ay;case 197:return Cf(t);case 256:return Cl(t,r);case 249:return Zu(t);case 250:return Qu(t);case 254:return rl(t,r);case 251:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return ny}function Kf(t){t.expression&&uh(t.expression,e.Diagnostics.Type_expected),ug(t.constraint),ug(t.default);var r=dr(ve(t));rn(r)||l(t.constraint,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Ve(r));var n=$r(r),i=on(r);n&&i&&yo(i,Sr(n,i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),a&&wp(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Jf(t){bm(t)||km(t),Z_(t);var r=e.getContainingFunction(t);92&e.getModifierFlags(t)&&(r=e.getContainingFunction(t),152===r.kind&&e.nodeIsPresent(r.body)||l(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&l(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),"this"===t.name.text&&(0!==e.indexOf(r.parameters,t)&&l(t,e.Diagnostics.A_this_parameter_must_be_the_first_parameter),152!==r.kind&&156!==r.kind&&161!==r.kind||l(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter)),!t.dotDotDotToken||e.isBindingPattern(t.name)||Xo(Lt(t.symbol))||l(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function qf(e,t){if(e)for(var r=0;r=0)if(r.parameters[n.parameterIndex].dotDotDotToken)l(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var a=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);yo(n.type,Og(r.parameters[n.parameterIndex]),t.type,void 0,a)}else if(i){for(var o=!1,s=0,c=r.parameters;s0&&r.declarations[0]!==t)return}var n=zn(ve(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o=0)return void(r&&l(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Av.push(t.id);var d=k_(u,r,n);if(Av.pop(),!d)return;return i.awaitedTypeOfType=d}var f=ct(t,"then");return f&&_n(f,0).length>0?void(r&&(e.Debug.assert(!!n),l(r,n))):i.awaitedTypeOfType=t}function x_(t){var r=Na(t.type);if(Ih>=2){if(r===ny)return ny;var n=yi(!0);if(n!==ky&&!Bt(r,n))return l(t.type,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),ny}else{if(C_(t.type),r===ny)return ny;var i=e.getEntityNameFromTypeNode(t.type);if(void 0===i)return l(t.type,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,Ve(r)),ny;var a=ie(i,107455,!0),o=a?Lt(a):ny;if(o===ny)return 71===i.kind&&"Promise"===i.text&&jt(r)===yi(!1)?l(t.type,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):l(t.type,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(i)),ny;var s=bi(!0);if(s===yy)return l(t.type,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(i)),ny;if(!yo(o,s,t.type,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 ny;var c=i&&Qp(i),u=E(t.locals,c.text,107455);if(u)return l(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,c.text,e.entityNameToString(i)),ny}return b_(r,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function S_(t){var r=xd(t),n=In(r);if(!(1&n.flags)){var i,a,o=hd(t);switch(t.parent.kind){case 229:i=Yi([Lt(ve(t.parent)),py]);break;case 146:i=py,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:i=py,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 151:case 153:case 154:i=Yi([Ni(Og(t.parent)),py])}yo(n,i,t,o,a)}}function C_(t){var r=t&&e.getEntityNameFromTypeNode(t),n=r&&Qp(r),i=n&&w(n,n.text,8388608|(71===r.kind?793064:1920),void 0,void 0);i&&8388608&i.flags&&xe(i)&&!Qg($(i))&&te(i)}function E_(t){return t.dotDotDotToken?e.getRestParameterElementType(t.type):t.type}function D_(t){if(t.decorators&&e.nodeCanBeDecorated(t)){Oh.experimentalDecorators||l(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);var r=t.decorators[0];if(hm(r,8),146===t.kind&&hm(r,32),Oh.emitDecoratorMetadata)switch(hm(r,16),t.kind){case 229:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i=e.ModuleKind.ES2015)&&(K_(t,r,"require")||K_(t,r,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var n=ot(t);265===n.kind&&e.isExternalOrCommonJsModule(n)&&l(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function G_(t,r){if(!(Ih>=4)&&K_(t,r,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var n=ot(t);265===n.kind&&e.isExternalOrCommonJsModule(n)&&1024&n.flags&&l(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function X_(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var r=ve(t);if(1&r.flags){var n=w(t,t.name.text,3,void 0,void 0);if(n&&n!==r&&2&n.flags&&3&Tl(n)){var i=e.getAncestor(n.valueDeclaration,227),a=208===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!(a&&(207===a.kind&&e.isFunctionLike(a.parent)||234===a.kind||233===a.kind||265===a.kind))){var o=qe(n);l(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}function Y_(t){function r(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(179===i.kind)return r(i.expression);if(71!==i.kind)return e.forEachChild(i,r);var a=w(i,i.text,8496063,void 0,void 0);if(a&&a!==$h&&a.valueDeclaration){if(a.valueDeclaration===t)return void l(i,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(t.name));if(e.getEnclosingBlockScopeContainer(a.valueDeclaration)===n){if(146===a.valueDeclaration.kind||176===a.valueDeclaration.kind){if(a.valueDeclaration.pos1)return uh(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function ip(e){yh(e),jf(e.expression)}function ap(t){yh(t),jf(t.expression),ug(t.thenStatement),209===t.thenStatement.kind&&l(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),ug(t.elseStatement)}function op(e){yh(e),ug(e.statement),jf(e.expression)}function sp(e){yh(e),jf(e.expression),ug(e.statement)}function cp(t){yh(t)||t.initializer&&227===t.initializer.kind&&ih(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,ep):jf(t.initializer)),t.condition&&jf(t.condition),t.incrementor&&jf(t.incrementor),ug(t.statement),t.locals&&A_(t)}function up(t){if(Hm(t),216===t.kind&&(t.awaitModifier?Ih<4&&hm(t,8192):Ih<2&&Oh.downlevelIteration&&hm(t,256)),227===t.initializer.kind)dp(t);else{var r=t.initializer,n=fp(t.expression,t.awaitModifier);if(177===r.kind||178===r.kind)mf(r,n||ny);else{var i=jf(r);Zd(r,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),n&&yo(n,i,r,void 0)}}ug(t.statement),t.locals&&A_(t)}function lp(t){Hm(t);var r=Nl(t.expression);if(227===t.initializer.kind){var n=t.initializer.declarations[0];n&&e.isBindingPattern(n.name)&&l(n.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),dp(t)}else{var i=t.initializer,a=jf(i);177===i.kind||178===i.kind?l(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):_o(sa(r),a)?Zd(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):l(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}Uu(r,17350656)||l(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),ug(t.statement),t.locals&&A_(t)}function dp(e){var t=e.initializer;if(t.declarations.length>=1){ep(t.declarations[0])}}function fp(e,t){return _p(Nl(e),e,!0,void 0!==t)}function _p(e,t,r,n){return ut(e)?e:pp(e,t,r,n,!0)||ty}function pp(t,r,n,i,a){var o=Ih>=2,s=!o&&Oh.downlevelIteration;if(o||s||i){var c=gp(t,o?r:void 0,i,i,a);if(c||o)return c}var u=t,d=!1,f=!1;if(n){if(65536&u.flags){var _=t.types,p=e.filter(_,function(e){return!(262178&e.flags)});p!==_&&(u=Yi(p,!0))}else 262178&u.flags&&(u=gy);if((f=u!==t)&&(Ih<1&&r&&(l(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),d=!0),8192&u.flags))return cy}if(!Yo(u)){if(r&&!d){l(r,!n||f?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Ve(u))}return f?cy:void 0}var g=hn(u,1);return f&&g?262178&g.flags?cy:Yi([g,cy],!0):g}function gp(t,r,n,i,a){if(!ut(t)){var o=t;if(n?o.iteratedTypeOfAsyncIterable:o.iteratedTypeOfIterable)return n?o.iteratedTypeOfAsyncIterable:o.iteratedTypeOfIterable;if(n&&(Bt(t,ki(!1))||Bt(t,Si(!1))))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0];if((!n||i)&&(Bt(t,Ci(!1))||Bt(t,Di(!1))))return n?o.iteratedTypeOfAsyncIterable=t.typeArguments[0]:o.iteratedTypeOfIterable=t.typeArguments[0];var s,c=!1;if(n){var u=ct(t,e.getPropertyNameForKnownSymbolName("asyncIterator"));if(ut(u))return;s=u&&_n(u,0)}if(!n||i&&!e.some(s)){var u=ct(t,e.getPropertyNameForKnownSymbolName("iterator"));if(ut(u))return;s=u&&_n(u,0),c=!0}if(e.some(s)){var d=Yi(e.map(s,In),!0),f=mp(d,r,!c);return a&&r&&f&&yo(t,c?Oi(f):Pi(f),r),n?o.iteratedTypeOfAsyncIterable=f:o.iteratedTypeOfIterable=f}r&&l(r,n?e.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator)}}function mp(t,r,n){if(!ut(t)){var i=t;if(n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(Bt(t,(n?xi:Ei)(!1)))return n?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=ct(t,"next");if(!ut(a)){var o=a?_n(a,0):Ph;if(0===o.length)return void(r&&l(r,n?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method));var s=Yi(e.map(o,In),!0);if(!(ut(s)||n&&(s=y_(s,r,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property),ut(s)))){var c=s&&ct(s,"value");return c?n?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c:void(r&&l(r,n?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property))}}}}function hp(e,t){if(!ut(e))return gp(e,void 0,t,!1,!1)||mp(e,void 0,t)}function yp(e){yh(e)||Zm(e)}function vp(t){return!(153!==t.kind||!e.getSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154)))}function bp(t,r){var n=2==(3&e.getFunctionFlags(t))?v_(r):r;return n&&of(n,1025)}function kp(t){if(!yh(t)){e.getContainingFunction(t)||uh(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}var r=e.getContainingFunction(t);if(r){var n=wn(r),i=In(n);if(Bh||t.expression||8192&i.flags){var a=t.expression?Af(t.expression):iy,o=e.getFunctionFlags(r);if(1&o)return;if(154===r.kind)t.expression&&l(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===r.kind)t.expression&&!yo(a,i,t)&&l(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(r.type||vp(r))if(2&o){var s=v_(i),c=b_(a,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);s&&yo(c,s,t)}else yo(a,i,t)}else 152!==r.kind&&Oh.noImplicitReturns&&!bp(r,i)&&l(t,e.Diagnostics.Not_all_code_paths_return_a_value)}}function xp(t){yh(t)||16384&t.flags&&uh(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),jf(t.expression);var r=e.getSourceFileOfNode(t);if(!ch(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;lh(r,n,t.statement.pos-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Sp(t){yh(t);var r,n=!1,i=jf(t.expression),o=$o(i);e.forEach(t.caseBlock.clauses,function(s){if(258===s.kind&&!n)if(void 0===r)r=s;else{var c=e.getSourceFileOfNode(t),u=e.skipTrivia(c.text,s.pos),l=s.statements.length>0?s.statements[0].pos:s.end;lh(c,u,l-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0}if(a&&257===s.kind){var d=s,f=jf(d.expression),_=$o(f),p=i;_&&o||(f=_?es(f):f,p=es(i)),vf(p,f)||vo(f,p,d.expression,void 0)}e.forEach(s.statements,ug)}),t.caseBlock.locals&&A_(t.caseBlock)}function Cp(t){yh(t)||e.findAncestor(t.parent,function(r){if(e.isFunctionLike(r))return"quit";if(222===r.kind&&r.label.text===t.label.text){var n=e.getSourceFileOfNode(t);return dh(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(n.text,t.label)),!0}}),ug(t.statement)}function Ep(t){yh(t)||void 0===t.expression&&bh(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&jf(t.expression)}function Dp(t){yh(t),j_(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)uh(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)uh(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,function(t){var r=n.get(t);r&&0!=(2&r.flags)&&dh(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}j_(r.block)}t.finallyBlock&&j_(t.finallyBlock)}function Tp(t){function r(t,r,n,i,a,o){if(a){var s=t.valueDeclaration;if(1!==o||(s?Ju(s.name):Hu(t.name))){var c;if(!s||144!==s.name.kind&&t.parent!==n.symbol){if(i)c=i;else if(2&x(n)){var u=e.forEach(Zt(n),function(e){return Xr(e,t.name)&&hn(e,o)});c=u?void 0:n.symbol.declarations[0]}}else c=s;if(c&&!_o(r,a)){l(c,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,qe(t),Ve(r),Ve(a))}}}}var n=Kn(t.symbol,1),i=Kn(t.symbol,0),a=hn(t,0),o=hn(t,1);if((a||o)&&(e.forEach(Gr(t),function(e){var s=Lt(e);r(e,s,t,i,a,0),r(e,s,t,n,o,1)}),1&x(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=t.symbol.valueDeclaration,c=0,u=s.members;cn)return!1;for(var u=0;u>s;case 47:return i>>>s;case 45:return i<1&&e.forEach(n.declarations,function(t){e.isConstEnumDeclaration(t)!==r&&l(t.name,e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var i=!1;e.forEach(n.declarations,function(t){if(232!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?l(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)})}}}function Wp(t){for(var r=t.declarations,n=0,i=r;n1&&!n&&e.isInstantiatedModule(t,Oh.preserveConstEnums||Oh.isolatedModules)){var s=Wp(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?l(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos1)for(var s=0,c=i;s0?e.concatenate(o,a):a}return e.forEach(n.getSourceFiles(),fg),Nv.getDiagnostics()}function mg(){return hg(),Nv.getGlobalDiagnostics()}function hg(){if(!a)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function yg(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent}return!1}function vg(t,r){function n(e,t){if(e.flags&t){var r=e.name;a.has(r)||a.set(r,e)}}function i(e,t){t&&e.forEach(function(e){n(e,t)})}if(yg(t))return[];var a=e.createMap(),o=0;return function(){for(;t;){switch(t.locals&&!C(t)&&i(t.locals,r),t.kind){case 265:if(!e.isExternalOrCommonJsModule(t))break;case 233:i(ve(t).exports,8914931&r);break;case 232:i(ve(t).exports,8&r);break;case 199:t.name&&n(t.symbol,r);case 229:case 230:32&o||i(ve(t).members,793064&r);break;case 186:t.name&&n(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&n(Uh,r),o=e.getModifierFlags(t),t=t.parent}i(uv,r)}(),kn(a)}function bg(e){return 71===e.kind&&kg(e.parent)&&e.parent.name===e}function kg(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function xg(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&(159===t.parent.kind||277===t.parent.kind)}function Sg(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function Cg(t,r){for(var n;;){if(!(t=e.getContainingClass(t)))break;if(n=r(t))break}return n}function Eg(e,t){return!!Cg(e,function(e){return e===t})}function Dg(e){for(;143===e.parent.kind;)e=e.parent;return 237===e.parent.kind?e.parent.moduleReference===e&&e.parent:243===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function Tg(e){return void 0!==Dg(e)}function wg(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return ve(t.parent);case 4:case 2:case 5:return ve(t.parent.parent)}}function Ag(t){if(e.isDeclarationName(t))return ve(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var r=wg(t);if(r)return r}if(243===t.parent.kind&&e.isEntityNameExpression(t))return ie(t,9289727);if(179!==t.kind&&Tg(t)){var n=e.getAncestor(t,237);return e.Debug.assert(void 0!==n),re(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Sg(t)){var i=0;201===t.parent.kind?(i=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(i|=107455)):i=1920,i|=8388608;var a=ie(t,i);if(a)return a}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&el(t)?il(t.parent):ie(t,107455,!1,!0);if(179===t.kind){var o=k(t).resolvedSymbol;return o||Ml(t),k(t).resolvedSymbol}if(143===t.kind){var o=k(t).resolvedSymbol;return o||Ol(t),k(t).resolvedSymbol}}else{if(xg(t)){var i=159===t.parent.kind||277===t.parent.kind?793064:1920;return ie(t,i,!1,!0)}if(253===t.parent.kind)return ml(t.parent)}return 158===t.parent.kind?ie(t,1):void 0}function Ng(t){if(265===t.kind)return e.isExternalModule(t)?ye(t.symbol):void 0;if(!yg(t)){if(e.isDeclarationName(t))return ve(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return ve(t.parent.parent);if(71===t.kind){if(Tg(t))return Ag(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var r=Og(t.parent.parent),n=r&&dn(r,t.text);if(n)return n}}switch(t.kind){case 71:case 179:case 143:return Ag(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var a=wn(i);if(a.thisParameter)return a.thisParameter}case 97:return(e.isPartOfExpression(t)?Lf(t):Na(t)).symbol;case 169:return Na(t).symbol;case 123:var o=t.parent;if(o&&152===o.kind)return o.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(238===t.parent.kind||244===t.parent.kind)&&t.parent.moduleSpecifier===t)return ae(t,t);if(e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1))return ae(t,t);case 8:if(180===t.parent.kind&&t.parent.argumentExpression===t){var s=Lf(t.parent.expression);if(s===ny)return;var c=sn(s);if(c===ny)return;return dn(c,t.text)}}}}function Pg(e){if(e&&262===e.kind)return ie(e.name,8496063)}function Mg(e){return e.parent.parent.moduleSpecifier?H(e.parent.parent,e):ie(e.propertyName||e.name,9289727)}function Og(t){if(yg(t))return ny;if(e.isPartOfTypeNode(t)){var r=Na(t);if(r&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)){var n=e.getContainingClass(t),i=Og(n);r=Sr(r,i.thisType)}return r}if(e.isPartOfExpression(t))return Rg(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var a=e.getContainingClass(t),i=_r(ve(a)),o=Zt(i)[0];return o&&Sr(o,i.thisType)}if(kg(t)){var s=ve(t);return _r(s)}if(bg(t)){var s=Ng(t);return s&&_r(s)}if(e.isDeclaration(t)){var s=ve(t);return Lt(s)}if(e.isDeclarationName(t)){var s=Ng(t);return s&&Lt(s)}if(e.isBindingPattern(t))return yt(t.parent,!0);if(Tg(t)){var s=Ng(t),c=s&&_r(s);return c!==ny?c:Lt(s)}return ny}function Ig(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind){var r=fp(t.parent.expression,t.parent.awaitModifier);return mf(t,r||ny)}if(194===t.parent.kind){var r=Lf(t.parent.right);return mf(t,r||ny)}if(261===t.parent.kind){return _f(Ig(t.parent.parent)||ny,t.parent)}e.Debug.assert(177===t.parent.kind);var n=Ig(t.parent),i=_p(n||ny,t.parent,!1,!1)||ny;return gf(t.parent,n,e.indexOf(t.parent.elements,t),i||ny)}function Fg(e){var t=Ig(e.parent.parent);return t&&dn(t,e.text)}function Rg(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Sa(Lf(t))}function Lg(t){var r=ve(t.parent);return 32&e.getModifierFlags(t)?Lt(r):_r(r)}function Bg(t){t=sn(t);var r=vr(Qr(t));return(_n(t,0).length||_n(t,1).length)&&e.forEach(Qr(Ey),function(e){r.has(e.name)||r.set(e.name,e)}),we(r)}function jg(t){if(6&S(t)){var r=[],n=t.name;return e.forEach(b(t).containingType.types,function(e){var t=dn(e,n);t&&r.push(t)}),r}if(134217728&t.flags){if(t.leftSpread){var i=t;return jg(i.leftSpread).concat(jg(i.rightSpread))}if(t.syntheticOrigin)return jg(t.syntheticOrigin);for(var a=void 0,o=t;o=b(o).target;)a=o;if(a)return[a]}return[t]}function zg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){return!(179===t.parent.kind&&t.parent.name===t)&&fm(t)===Uh}return!1}function Kg(t){function r(e){return(e=Z(e))&&!!(107455&e.flags)}var n=ae(t.parent,t);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var i=le(n);n=ce(n);var a=b(n);return void 0===a.exportsSomeValue&&(a.exportsSomeValue=i?!!(107455&n.flags):e.forEachEntry(ge(n),r)),a.exportsSomeValue}function Jg(t){var r=t.parent;return r&&e.isModuleOrEnumDeclaration(r)&&t===r.name}function qg(t,r){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=fm(t,Jg(t));if(n){if(1048576&n.flags){var i=ye(n.exportSymbol);if(!r&&944&i.flags)return;n=i}var a=be(n);if(a){if(512&a.flags&&265===a.valueDeclaration.kind){var o=a.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&ve(t)===a})}}}}function Ug(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=fm(t);if(r&&8388608&r.flags)return j(r)}}function Vg(t){if(418&t.flags){var r=b(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var i=k(t.valueDeclaration);if(w(n.parent,t.name,107455,void 0,void 0))r.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(n,!1),s=207===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 Hg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=fm(t);if(r&&Vg(r))return r.valueDeclaration}}function Wg(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var r=ve(t);if(r)return Vg(r)}return!1}function Gg(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return Yg(ve(t)||$h);case 244:var r=t.exportClause;return r&&e.forEach(r.elements,Gg);case 243:return!t.expression||71!==t.expression.kind||Yg(ve(t)||$h)}return!1}function Xg(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(Yg(ve(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function Yg(e){var t=$(e);return t===$h||107455&t.flags&&(Oh.preserveConstEnums||!Qg(t))}function Qg(e){return uf(e)||e.constEnumOnlyModule}function Zg(t,r){if(e.isAliasSymbolDeclaration(t)){var n=ve(t);if(n&&b(n).referenced)return!0}return!!r&&e.forEachChild(t,function(e){return Zg(e,r)})}function $g(t){if(e.nodeIsPresent(t.body)){var r=ve(t),n=Pn(r);return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function em(t){return Bh&&!Cn(t)&&t.initializer&&!(92&e.getModifierFlags(t))}function tm(e){return k(e).flags}function rm(e){return Vp(e.parent),k(e).enumMemberValue}function nm(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function im(t){if(264===t.kind)return rm(t);var r=k(t).resolvedSymbol;return r&&8&r.flags&&e.isConstEnumDeclaration(r.valueDeclaration.parent)?rm(r.valueDeclaration):void 0}function am(e){return 32768&e.flags&&_n(e,0).length>0}function om(t,r){var n=ie(t,107455,!0,!1,r),i=ie(t,793064,!0,!1,r);if(n&&n===i){var a=vi(!1);if(a&&n===a)return e.TypeReferenceSerializationKind.Promise;var o=Lt(n);if(o&&Wt(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=_r(i);return s===ny?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:sf(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:sf(s,136)?e.TypeReferenceSerializationKind.BooleanType:sf(s,340)?e.TypeReferenceSerializationKind.NumberLikeType:sf(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:rs(s)?e.TypeReferenceSerializationKind.ArrayLikeType:sf(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:am(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Xo(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function sm(e,t,r,n){var i=ve(e),a=!i||133120&i.flags?ny:ts(Lt(i));4096&r&&(a=as(a,2048)),$e().buildTypeDisplay(a,n,t,r)}function cm(e,t,r,n){var i=wn(e);$e().buildTypeDisplay(In(i),n,t,r)}function um(e,t,r,n){var i=gs(Rg(e));$e().buildTypeDisplay(i,n,t,r)}function lm(e,t,r,n){var i=_r(ve(e));$t(i);var a=i.resolvedBaseTypes.length?i.resolvedBaseTypes[0]:ny;a.symbol||n.reportIllegalExtends(),$e().buildTypeDisplay(a,n,t,r)}function dm(e){return uv.has(e)}function fm(t,r){var n=k(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=ot(a))}return w(i,t.text,9544639,void 0,void 0)}function _m(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=fm(t);if(r)return ke(r).valueDeclaration}}function pm(t){if(e.isConst(t)){var r=Lt(ve(t));return!!(96&r.flags&&1048576&r.flags)}return!1}function gm(e,t){var r=Lt(ve(e));t.writeStringLiteral(Qe(r))}function mm(t){var r=e.getExternalModuleName(t),n=oe(r,r,void 0);if(n)return e.getDeclarationOfKind(n,265)}function hm(t,r){if((Sh&r)!==r&&Oh.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,Oh)&&!e.isInAmbientContext(t)){var i=vm(n,t);if(i!==$h)for(var a=r&~Sh,o=1;o<=8192;o<<=1)if(a&o){var s=ym(o),c=E(i.exports,e.escapeIdentifier(s),107455);c||l(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}Sh|=r}}}function ym(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__asyncGenerator";case 4096:return"__asyncDelegator";case 8192:return"__asyncValues";default:e.Debug.fail("Unrecognized helper.")}}function vm(t,r){return Ch||(Ch=se(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||$h),Ch}function bm(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 151!==t.kind||e.nodeIsPresent(t.body)?uh(t,e.Diagnostics.Decorators_are_not_valid_here):uh(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(153===t.kind||154===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return uh(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function km(t){var r=xm(t);if(void 0!==r)return r;for(var n,i,a,o,s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function Em(t,r){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return dh(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Dm(t){if(t&&t.hasTrailingComma){var r=t.end-",".length,n=t.end;return lh(e.getSourceFileOfNode(t[0]),r,n-r,e.Diagnostics.Trailing_comma_not_allowed)}}function Tm(t,r){if(Dm(t))return!0;if(t&&0===t.length){var n=t.pos-"<".length;return lh(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function wm(t){for(var r=!1,n=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function Fm(e,t){return Dm(t)||Im(e,t)}function Rm(t,r){if(r)for(var n=e.getSourceFileOfNode(t),i=0,a=r;i1)return uh(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(108===o.token),n)return uh(o,e.Diagnostics.implements_clause_already_seen);n=!0}Bm(o)}}function zm(t){var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n1){var i=215===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return uh(r.declarations[1],i)}var a=n[0];if(a.initializer){var i=215===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 dh(a.name,i)}if(a.type){var i=215===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 dh(a,i)}}}return!1}function Wm(t){var r=t.kind;if(Ih<1)return dh(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return dh(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(!(void 0!==t.body||128&e.getModifierFlags(t)))return lh(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&128&e.getModifierFlags(t))return dh(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return dh(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!Gm(t))return dh(t.name,153===r?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===r){if(t.type)return dh(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var n=t.parameters[0];if(n.dotDotDotToken)return dh(n.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return dh(n.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return dh(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function Gm(e){return Xm(e)||e.parameters.length===(153===e.kind?0:1)}function Xm(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function Ym(t,r){if(e.isDynamicName(t))return dh(t,r)}function Qm(t){if(np(t)||Am(t)||Jm(t))return!0;if(178===t.parent.kind){if(qm(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return lh(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return Ym(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return Ym(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(230===t.parent.kind)return Ym(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(163===t.parent.kind)return Ym(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function Zm(t){for(var r=t;r;){if(e.isFunctionLike(r))return dh(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 222:if(t.label&&r.label.text===t.label.text){return!!(217===t.kind&&!e.isIterationStatement(r.statement,!0))&&dh(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 221:if(218===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}if(t.label){var n=218===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return dh(t,n)}var n=218===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;return dh(t,n)}function $m(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.lastOrUndefined(r))return dh(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return dh(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return lh(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function eh(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function th(t){if(215!==t.parent.parent.kind&&216!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type){var r="=".length;return lh(e.getSourceFileOfNode(t),t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!eh(t.initializer))return dh(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!eh(t.initializer))){var r="=".length;return lh(e.getSourceFileOfNode(t),t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return dh(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return dh(t,e.Diagnostics.const_declarations_must_be_initialized)}return Oh.module===e.ModuleKind.ES2015||Oh.module===e.ModuleKind.System||Oh.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||rh(t.name),(e.isLet(t)||e.isConst(t))&&nh(t.name)}function rh(t){if(71===t.kind){if("__esModule"===e.unescapeIdentifier(t.text))return dh(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=t.elements,n=0,i=r;n0}function uh(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!ch(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Nv.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}}function lh(t,r,n,i,a,o,s){if(!ch(t))return Nv.add(e.createFileDiagnostic(t,r,n,i,a,o,s)),!0}function dh(t,r,n,i,a){if(!ch(e.getSourceFileOfNode(t)))return Nv.add(e.createDiagnosticForNode(t,r,n,i,a)),!0}function fh(t){if(t.typeParameters)return lh(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function _h(t){if(t.type)return dh(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function ph(t){if(e.isClassLike(t.parent)){if(Ym(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol))return!0}else if(230===t.parent.kind){if(Ym(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return dh(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(Ym(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return dh(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return uh(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function gh(t){return!(230===t.kind||231===t.kind||238===t.kind||237===t.kind||244===t.kind||243===t.kind||236===t.kind||515&e.getModifierFlags(t))&&uh(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function mh(t){for(var r=0,n=t.statements;r=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return dh(n?t.parent:t,r,i)}}}function bh(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!ch(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Nv.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a)),!0}}function kh(){var e=[];return uv.forEach(function(t,r){i.test(r)&&e.push(t)}),e}var xh,Sh,Ch,Eh=e.objectAllocator.getSymbolConstructor(),Dh=e.objectAllocator.getTypeConstructor(),Th=e.objectAllocator.getSignatureConstructor(),wh=0,Ah=0,Nh=0,Ph=[],Mh=e.createMap(),Oh=n.getCompilerOptions(),Ih=e.getEmitScriptTarget(Oh),Fh=e.getEmitModuleKind(Oh),Rh=!!Oh.noUnusedLocals||!!Oh.noUnusedParameters,Lh=void 0!==Oh.allowSyntheticDefaultImports?Oh.allowSyntheticDefaultImports:Fh===e.ModuleKind.System,Bh=void 0===Oh.strictNullChecks?Oh.strict:Oh.strictNullChecks,jh=void 0===Oh.noImplicitAny?Oh.strict:Oh.noImplicitAny,zh=void 0===Oh.noImplicitThis?Oh.strict:Oh.noImplicitThis,Kh=function(){function t(e){if(a){var t=179===e.kind||71===e.kind&&Fs(e)?1156031:794600,n=ie(e,t,!0);return n&&n!==$h?r(n,t):void 0}}function r(t,r){if(a&&i(t)){for(var n,o=0,s=t.declarations;o0){var a=o(n.slice(0,Qn(t)));if(a&&a.length>0)return e.createTupleTypeNode(a)}return void(c.encounteredError||c.flags&e.NodeBuilderFlags.allowEmptyTuple||(c.encounteredError=!0))}var u=t.target.outerTypeParameters,l=0,d=void 0;if(u)for(var f=u.length;l0?e.createUnionOrIntersectionTypeNode(166,h):void(c.encounteredError||c.flags&e.NodeBuilderFlags.allowEmptyUnionOrIntersection||(c.encounteredError=!0))}if(131072&t.flags)return e.createUnionOrIntersectionTypeNode(167,o(t.types));if(48&p)return e.Debug.assert(!!(32768&t.flags)),function(t){var r=t.symbol;if(r){if(32&r.flags&&!Pt(r)||896&r.flags||function(){var t=!!(8192&r.flags&&e.forEach(r.declarations,function(t){return 32&e.getModifierFlags(t)})),n=!!(16&r.flags)&&(r.parent||e.forEach(r.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||n)return e.contains(c.symbolStack,r)}())return d(r);if(e.contains(c.symbolStack,r)){var n=Xe(t);if(n){var i=s(n,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}c.symbolStack||(c.symbolStack=[]),c.symbolStack.push(r);var a=l(t);return c.symbolStack.pop(),a}return l(t)}(t);if(262144&t.flags){var y=t.type,v=r(y);return e.createTypeOperatorNode(v)}if(524288&t.flags){var b=r(t.objectType),v=r(t.indexType);return e.createIndexedAccessTypeNode(b,v)}e.Debug.fail("Should be unreachable.")}function n(t,n){var i=e.createKeywordTypeNode(0===n?136:133),a=e.getNameFromIndexInfo(t),o=e.createParameter(void 0,void 0,void 0,a,void 0,i,void 0),s=r(t.type);return e.createIndexSignatureDeclaration(void 0,t.isReadonly?[e.createToken(131)]:void 0,[o],s)}function i(t,n){var i,s=t.typeParameters&&t.typeParameters.map(function(e){return a(e)}),c=t.parameters.map(function(e){return o(e)});if(t.typePredicate){var u=t.typePredicate,l=1===u.kind?e.createIdentifier(u.parameterName):e.createThisTypeNode(),d=r(u.type);i=e.createTypePredicateNode(l,d)}else{var f=In(t);i=f&&r(f)}var _=i&&119!==i.kind?i:void 0;return e.createSignatureDeclaration(n,s,c,_)}function a(t){var n=Vn(t),i=n&&r(n),a=on(t),o=a&&r(a),c=s(t.symbol,!0);return e.createTypeParameterDeclaration(c,i,o)}function o(t){var n=e.getDeclarationOfKind(t,146),i=Lt(t),a=r(i);return e.createParameter(n.decorators,n.modifiers,n.dotDotDotToken&&e.createToken(24),e.getSynthesizedClone(n.name),n.questionToken&&e.createToken(55),a,n.initializer)}function s(t,r){function n(t,r){e.Debug.assert(t&&0<=r&&r0){var s=t[r-1],u=void 0;if(1&S(i))u=Vt(s);else{524384&Lp(s).flags&&(u=Ut(i))}if(u&&u.length>0){c.encounteredError||c.flags&e.NodeBuilderFlags.allowTypeParameterInQualifiedName||(c.encounteredError=!0);var l=e.getSingleLineStringWriter();$e().buildDisplayForTypeParametersAndDelimiters(u,l,c.enclosingDeclaration,0),o=l.string(),e.releaseStringWriter(l)}}var d=a(i),f=o.length>0?d+"<"+o+">":d,_=e.createIdentifier(f);return r>0?e.createQualifiedName(n(t,r-1),_):_}function i(t,r,n){var a,o=Oe(t,c.enclosingDeclaration,r,!1);if(!o||Ie(o[0],c.enclosingDeclaration,1===o.length?r:Me(r))){var s=be(o?o[0]:t);if(s){var u=i(s,Me(r),!1);u&&(a=s,o=u.concat(o||[t]))}}return o||(!n&&(!a&&e.forEach(t.declarations,Le)||6144&t.flags)?void 0:[t])}function a(t){var r=e.firstOrUndefined(t.declarations);if(r){if(r.name)return e.declarationNameToString(r.name);if(r.parent&&226===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(c.encounteredError||c.flags&e.NodeBuilderFlags.allowAnonymousIdentifier||(c.encounteredError=!0),r.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return t.name}var o;return 262144&t.flags||!c.enclosingDeclaration?o=[t]:(o=i(t,0,!0),e.Debug.assert(o&&o.length>0)),!r||1===o.length||c.encounteredError||c.flags&e.NodeBuilderFlags.allowQualifedNameInPlaceOfIdentifier||(c.encounteredError=!0),n(o,o.length-1)}var c;return{typeToTypeNode:function(e,n,i){c=t(n,i);var a=r(e);return c.encounteredError?void 0:a},indexInfoToIndexSignatureDeclaration:function(e,r,i,a){c=t(i,a);var o=n(e,r);return c.encounteredError?void 0:o},signatureToSignatureDeclaration:function(e,r,n,a){c=t(n,a);var o=i(e,r);return c.encounteredError?void 0:o}}}(),qh=d(4,"undefined");qh.declarations=[];var Uh=d(4,"arguments"),Vh={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+Ah},getTypeCount:function(){return wh},isUndefinedSymbol:function(e){return e===qh},isArgumentsSymbol:function(e){return e===Uh},isUnknownSymbol:function(e){return e===$h},getMergedSymbol:ye,getDiagnostics:pg,getGlobalDiagnostics:mg,getTypeOfSymbolAtLocation:function(t,r){return r=e.getParseTreeNode(r),r?Jc(t,r):ny},getSymbolsOfParameterPropertyDeclaration:function(t,r){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),D(t,r)},getDeclaredTypeOfSymbol:_r,getPropertiesOfType:Qr,getPropertyOfType:dn,getIndexInfoOfType:mn,getSignaturesOfType:_n,getIndexTypeOfType:hn,getBaseTypes:Zt,getBaseTypeOfLiteralType:es,getWidenedType:gs,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Na(t):ny},getParameterType:Md,getReturnTypeOfSignature:In,getNonNullableType:ss,typeToTypeNode:Jh.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Jh.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Jh.signatureToSignatureDeclaration,getSymbolsInScope:function(t,r){return t=e.getParseTreeNode(t),t?vg(t,r):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?Ng(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?Pg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?Mg(t):void 0},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?Og(t):ny},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?Fg(t):void 0},signatureToString:function(t,r,n,i){return Ue(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return Ve(t,e.getParseTreeNode(r),n)},getSymbolDisplayBuilder:$e,symbolToString:function(t,r,n){return qe(t,e.getParseTreeNode(r),n)},getAugmentedPropertiesOfType:Bg,getRootSymbols:jg,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?Pu(t):void 0},getFullyQualifiedName:ne,getResolvedSignature:function(t,r){return t=e.getParseTreeNode(t,e.isCallLikeExpression),t?xd(t,r):void 0},getConstantValue:function(t){return t=e.getParseTreeNode(t,nm),t?im(t):void 0},isValidPropertyAccess:function(t,r){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&Bl(t,r)},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?wn(t):void 0},isImplementationOfOverload:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?$g(t):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(8388608&t.flags),"Should only get Alias here.");var r=b(t);if(!r.immediateTarget){var n=j(t);e.Debug.assert(!!n),r.immediateTarget=Q(n,!0)}return r.immediateTarget},getAliasedSymbol:$,getEmitResolver:u,getExportsOfModule:de,getExportsAndPropertiesOfModule:fe,getAmbientModules:kh,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?pl(t):void 0},getJsxIntrinsicTagNames:bl,isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&Cn(t)},tryGetMemberInModuleExports:_e,tryFindAmbientModuleWithoutAugmentations:function(e){return Sn(e,!1)},getApparentType:sn},Hh=[],Wh=e.createMap(),Gh=e.createMap(),Xh=e.createMap(),Yh=e.createMap(),Qh=e.createMap(),Zh=[],$h=d(4,"unknown"),ey=d(0,"__resolving__"),ty=Ee(1,"any"),ry=Ee(1,"any"),ny=Ee(1,"unknown"),iy=Ee(2048,"undefined"),ay=Bh?iy:Ee(2099200,"undefined"),oy=Ee(4096,"null"),sy=Bh?oy:Ee(2101248,"null"),cy=Ee(2,"string"),uy=Ee(4,"number"),ly=Ee(128,"true"),dy=Ee(128,"false"),fy=function(e){var t=Yi(e);return t.flags|=8,t.intrinsicName="boolean",t}([ly,dy]),_y=Ee(512,"symbol"),py=Ee(1024,"void"),gy=Ee(8192,"never"),my=Ee(8192,"never"),hy=Ee(16777216,"object"),yy=Ne(void 0,Mh,Ph,Ph,void 0,void 0),vy=d(2048,"__type");vy.members=e.createMap();var by=Ne(vy,Mh,Ph,Ph,void 0,void 0),ky=Ne(void 0,Mh,Ph,Ph,void 0,void 0);ky.instantiations=e.createMap();var xy=Ne(void 0,Mh,Ph,Ph,void 0,void 0);xy.flags|=8388608;var Sy,Cy,Ey,Dy,Ty,wy,Ay,Ny,Py,My,Oy,Iy,Fy,Ry,Ly,By,jy,zy,Ky,Jy,qy,Uy,Vy,Hy,Wy,Gy,Xy,Yy,Qy,Zy,$y,ev,tv=Ne(void 0,Mh,Ph,Ph,void 0,void 0),rv=Ne(void 0,Mh,Ph,Ph,void 0,void 0),nv=Tr(void 0,void 0,void 0,Ph,ty,void 0,0,!1,!1),iv=Tr(void 0,void 0,void 0,Ph,ny,void 0,0,!1,!1),av=Tr(void 0,void 0,void 0,Ph,ty,void 0,0,!1,!1),ov=Tr(void 0,void 0,void 0,Ph,my,void 0,0,!1,!1),sv=Jn(cy,!0),cv=Jn(ty,!1),uv=e.createMap(),lv=0,dv=0,fv=0,_v=Ca(32,""),pv=Ca(64,"0"),gv=[],mv=[],hv=[],yv=[],vv=[],bv=[],kv=[],xv=[],Sv=[],Cv=[],Ev=[],Dv=[],Tv=[],wv=[],Av=[],Nv=e.createDiagnosticCollection();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.Discriminatable=4194304]="Discriminatable",e[e.All=8388607]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=6166480]="ObjectStrictFacts",e[e.ObjectFacts=8378320]="ObjectFacts",e[e.FunctionStrictFacts=6164448]="FunctionStrictFacts",e[e.FunctionFacts=8376288]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts"}(ev||(ev={}));var Pv,Mv,Ov,Iv,Fv,Rv,Lv=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Bv=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),jv=e.createMapFromTemplate({string:cy,number:uy,boolean:fy,symbol:_y,undefined:iy}),zv=function(){return Yi(e.convertToArray(Lv.keys(),function(e){return Ca(32,e)}))}(),Kv=!1,Jv=!1,qv=e.createMap(),Uv={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},Vv=e.createMap(),Hv=e.createMap(),Wv=e.createMap(),Gv=e.createMap(),Xv=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType"}(Rv||(Rv={}));var Yv;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential"}(Yv||(Yv={}));var Qv=e.createMap();return Qv.set(qh.name,qh),function(){for(var t=0,r=n.getSourceFiles();ts-i)&&(a=s-i),(i>0||a0&&d<=142||169===d)return o;switch(o.kind){case 206:case 209:case 200:case 225:case 298:case 247:return o;case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameter),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameter),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode));case 155:return e.updateCallSignatureDeclaration(o,u(o.typeParameters,s,e.isTypeParameter),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignatureDeclaration(o,u(o.typeParameters,s,e.isTypeParameter),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameter),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken));case 157:return e.updateIndexSignatureDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,l,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:case 167:return e.updateUnionOrIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:throw e.Debug.fail("not implemented.");case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,l,e.isToken),t(o.typeParameter,s,e.isTypeParameter),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o.default,s,e.isTypeNode));case 148:return e.updatePropertySignature(o,t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),u(o.typeParameters,s,e.isTypeParameter),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),i(o.parameters,s,c,u),a(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),a(o.body,s,c));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,l,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameter),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameter),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.whenTrue,s,e.isExpression),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,l,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameter),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameter),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameter),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,n(o.statements,s,c));case 296:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));default:return o}}}function s(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=a,e.visitEachChild=o}(o||(o={})),function(e){function t(e,t,r){return e?t(r,e):r}function r(e,t,r){return e?t(r,e):r}function n(n,i,a,o){if(void 0===n)return i;var s=o?r:e.reduceLeft,c=o||a,u=n.kind;if(u>0&&u<=142)return i;if(u>=158&&u<=173)return i;var l=i;switch(n.kind){case 206:case 209:case 200:case 225:case 295:break;case 143:l=t(n.left,a,l),l=t(n.right,a,l);break;case 144:l=t(n.expression,a,l);break;case 146:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 147:l=t(n.expression,a,l);break;case 149:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 151:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 152:l=s(n.modifiers,c,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 153:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 154:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 174:case 175:l=s(n.elements,c,l);break;case 176:l=t(n.propertyName,a,l),l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 177:l=s(n.elements,c,l);break;case 178:l=s(n.properties,c,l);break;case 179:l=t(n.expression,a,l),l=t(n.name,a,l);break;case 180:l=t(n.expression,a,l),l=t(n.argumentExpression,a,l);break;case 181:case 182:l=t(n.expression,a,l),l=s(n.typeArguments,c,l),l=s(n.arguments,c,l);break;case 183:l=t(n.tag,a,l),l=t(n.template,a,l);break;case 184:l=t(n.type,a,l),l=t(n.expression,a,l);break;case 186:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 187:l=s(n.modifiers,c,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:l=t(n.expression,a,l);break;case 192:case 193:l=t(n.operand,a,l);break;case 194:l=t(n.left,a,l),l=t(n.right,a,l);break;case 195:l=t(n.condition,a,l),l=t(n.whenTrue,a,l),l=t(n.whenFalse,a,l);break;case 196:l=t(n.head,a,l),l=s(n.templateSpans,c,l);break;case 199:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 201:l=t(n.expression,a,l),l=s(n.typeArguments,c,l);break;case 202:l=t(n.expression,a,l),l=t(n.type,a,l);break;case 203:l=t(n.expression,a,l);break;case 205:l=t(n.expression,a,l),l=t(n.literal,a,l);break;case 207:l=s(n.statements,c,l);break;case 208:l=s(n.modifiers,c,l),l=t(n.declarationList,a,l);break;case 210:l=t(n.expression,a,l);break;case 211:l=t(n.expression,a,l),l=t(n.thenStatement,a,l),l=t(n.elseStatement,a,l);break;case 212:l=t(n.statement,a,l),l=t(n.expression,a,l);break;case 213:case 220:l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 214:l=t(n.initializer,a,l),l=t(n.condition,a,l),l=t(n.incrementor,a,l),l=t(n.statement,a,l);break;case 215:case 216:l=t(n.initializer,a,l),l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 219:case 223:l=t(n.expression,a,l);break;case 221:l=t(n.expression,a,l),l=t(n.caseBlock,a,l);break;case 222:l=t(n.label,a,l),l=t(n.statement,a,l);break;case 224:l=t(n.tryBlock,a,l),l=t(n.catchClause,a,l),l=t(n.finallyBlock,a,l);break;case 226:l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 227:l=s(n.declarations,c,l);break;case 228:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 229:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 232:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.members,c,l);break;case 233:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.body,a,l);break;case 234:l=s(n.statements,c,l);break;case 235:l=s(n.clauses,c,l);break;case 237:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.moduleReference,a,l);break;case 238:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.importClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 239:l=t(n.name,a,l),l=t(n.namedBindings,a,l);break;case 240:l=t(n.name,a,l);break;case 241:case 245:l=s(n.elements,c,l);break;case 242:case 246:l=t(n.propertyName,a,l),l=t(n.name,a,l);break;case 243:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.expression,a,l);break;case 244:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.exportClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 248:l=t(n.expression,a,l);break;case 249:l=t(n.openingElement,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingElement,a,l);break;case 250:case 251:l=t(n.tagName,a,l),l=t(n.attributes,a,l);break;case 254:l=s(n.properties,c,l);break;case 252:l=t(n.tagName,a,l);break;case 253:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 255:case 256:l=t(n.expression,a,l);break;case 257:l=t(n.expression,a,l);case 258:l=s(n.statements,c,l);break;case 259:l=s(n.types,c,l);break;case 260:l=t(n.variableDeclaration,a,l),l=t(n.block,a,l);break;case 261:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 262:l=t(n.name,a,l),l=t(n.objectAssignmentInitializer,a,l);break;case 263:l=t(n.expression,a,l);break;case 264:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 265:l=s(n.statements,c,l);break;case 296:l=t(n.expression,a,l)}return l}function i(t,r){return e.some(r)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,r)),t):e.addRange(t,r):t}function a(t){return f.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var r=u(t);return e.computeTransformFlagsForNode(t,r)}function c(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,i=e;n=1)||1572864&p.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(p).transformFlags||e.isComputedPropertyName(h)){d&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),a,o,i),d=void 0);var m=s(t,a,h);e.isComputedPropertyName(h)&&(f=e.append(f,m.argumentExpression)),n(t,p,m,p)}else d=e.append(d,p)}}d&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),a,o,i)}function a(t,r,i,a,o){var s=e.getElementsOfBindingOrAssignmentPattern(i),u=s.length;if(t.level<1&&t.downlevelIteration)a=c(t,e.createReadHelper(t.context,a,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o);else if(1!==u&&(t.level<1||0===u)){var l=!e.isDeclarationBindingElement(r)||0!==u;a=c(t,a,l,o)}for(var d,f,_=0;_=1)if(1048576&p.transformFlags){var g=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(g),f=e.append(f,[g,p]),d=e.append(d,t.createArrayBindingOrAssignmentElement(g))}else d=e.append(d,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(_===u-1){var m=e.createArraySlice(a,_);n(t,p,m,p)}}else{var m=e.createElementAccess(a,_);n(t,p,m,p)}}}if(d&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(d),a,o,i),f)for(var h=0,y=f;h0)return!0;var r=e.getFirstConstructorWithBody(t);return!!r&&e.forEach(r.parameters,k)}function k(e){return void 0!==e.decorators&&e.decorators.length>0}function x(t){var r=I(t,!0),n=void 0!==e.getClassExtendsHeritageClauseElement(t),i=b(t),a=t.name;!a&&(r.length>0||e.childIsDecorated(t))&&(a=e.getGeneratedNameForNode(t));var o=i?C(t,a,n):S(t,a,n,r.length>0),s=[o];return r.length&&B(s,r,e.getLocalName(t)),Z(s,t,!1),Z(s,t,!0),te(s,t),ft(t)?ht(s,t):i&&(gt(t)?s.push(e.createExportDefault(e.getLocalName(t,!1,!0))):pt(t)&&s.push(e.createExternalModuleExport(e.getLocalName(t,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(o,2097152|e.getEmitFlags(o))),e.singleOrMany(s)}function S(t,r,n,i){var a=e.createClassDeclaration(void 0,e.visitNodes(t.modifiers,h,e.isModifier),r,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),D(t,n)),o=e.getEmitFlags(t);return i&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}function C(t,r,n){var i=e.moveRangePastDecorators(t),a=St(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=D(t,n),l=e.createClassExpression(void 0,r,void 0,s,c);e.setOriginalNode(l,t),e.setTextRange(l,i);var d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,l):l)],1));return e.setOriginalNode(d,t),e.setTextRange(d,i),e.setCommentRange(d,t),d}function E(t){var r=I(t,!0),n=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),i=D(t,e.some(n,function(e){return 85===e.token})),a=e.createClassExpression(void 0,t.name,void 0,n,i);if(e.setOriginalNode(a,t),e.setTextRange(a,t),r.length>0){var o=[],s=e.createTempVariable(Vt);return 8388608&Ht.getNodeCheckFlags(t)&&(Tt(),ir[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(a,32768|e.getEmitFlags(a)),o.push(e.startOnNewLine(e.createAssignment(s,a))),e.addRange(o,j(r,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return a}function D(t,r){var n=[],i=T(t,r);return i&&n.push(i),e.addRange(n,e.visitNodes(t.members,g,e.isClassElement)),e.setTextRange(e.createNodeArray(n),t.members)}function T(r,n){var i=e.forEach(r.members,R),a=262144&r.transformFlags,o=e.getFirstConstructorWithBody(r);if(!i&&!a)return e.visitEachChild(o,u,t);var s=w(o),c=A(r,o,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||r),o))}function w(r){return e.visitParameterList(r&&r.parameters,u,t)||[]}function A(t,r,n){var i=[],a=0;if(qt(),r){a=N(r,i);var o=P(r);e.addRange(i,e.map(o,O))}else n&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return B(i,I(t,!1),e.createThis()),r&&e.addRange(i,e.visitNodes(r.body.statements,u,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,Ut()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),r?r.body.statements:t.members),!0),r?r.body:void 0)}function N(t,r){if(t.body){var n=t.body.statements,i=e.addPrologue(r,n,!1,u);if(i===n.length)return i;var a=n[i];return 210===a.kind&&e.isSuperCall(a.expression)?(r.push(e.visitNode(a,u,e.isStatement)),i+1):i}return 0}function P(t){return e.filter(t.parameters,M)}function M(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function O(t){e.Debug.assert(e.isIdentifier(t.name));var r=t.name,n=e.getMutableClone(r);e.setEmitFlags(n,1584);var i=e.getMutableClone(r);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),i)),e.moveRangePos(t,-1)))}function I(t,r){return e.filter(t.members,r?F:R)}function F(e){return L(e,!0)}function R(e){return L(e,!1)}function L(t,r){return 149===t.kind&&r===e.hasModifier(t,32)&&void 0!==t.initializer}function B(t,r,n){for(var i=0,a=r;i0?149===i.kind?e.createVoidZero():e.createNull():void 0,l=r(t,o,s,c,u,e.moveRangePastDecorators(i));return e.setEmitFlags(l,1536),l}}function te(t,r){var n=re(r);n&&t.push(e.setOriginalNode(e.createStatement(n),r))}function re(n){var i=H(n),a=Q(n,n,i);if(a){var o=ir&&ir[e.getOriginalNodeId(n)],s=e.getLocalName(n,!1,!0),c=r(t,a,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(n)),u}}function ne(t){return e.visitNode(t.expression,u,e.isExpression)}function ie(r,n){var a;if(r){a=[];for(var o=0,s=r;o= 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            };'},c={name:"typescript:metadata",scoped:!1,priority:3,text:'\n            var __metadata = (this && this.__metadata) || function (k, v) {\n                if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n            };'},u={name:"typescript:param",scoped:!1,priority:4,text:"\n            var __param = (this && this.__param) || function (paramIndex, decorator) {\n                return function (target, key) { decorator(target, key, paramIndex); }\n            };"}}(o||(o={}));var o;!function(e){function t(t){function n(r){if(e.isDeclarationFile(r))return r;x=r;var n=e.visitEachChild(r,i,t);return e.addEmitHelpers(n,t.readEmitHelpers()),x=void 0,n}function i(r){if(0==(16&r.transformFlags))return r;switch(r.kind){case 120:return;case 191:return a(r);case 151:return o(r);case 228:return s(r);case 186:return c(r);case 187:return u(r);default:return e.visitEachChild(r,i,t)}}function a(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,i,e.isExpression)),t),t)}function o(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,i,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,i,t),void 0,2&e.getFunctionFlags(r)?l(r):e.visitFunctionBody(r.body,i,t))}function s(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,i,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,i,t),void 0,2&e.getFunctionFlags(r)?l(r):e.visitFunctionBody(r.body,i,t))}function c(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,i,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,i,t),void 0,2&e.getFunctionFlags(r)?l(r):e.visitFunctionBody(r.body,i,t))}function u(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,i,e.isModifier),void 0,e.visitParameterList(r.parameters,i,t),void 0,2&e.getFunctionFlags(r)?l(r):e.visitFunctionBody(r.body,i,t))}function l(n){E();var a=e.getOriginalNode(n,e.isFunctionLike),o=a.type,s=A<2?f(o):void 0,c=187===n.kind,u=0!=(8192&T.getNodeCheckFlags(n));if(c){var l=r(t,u,s,d(n.body)),p=D();if(e.some(p)){var g=e.convertToFunctionBody(l);return e.updateBlock(g,e.setTextRange(e.createNodeArray(e.concatenate(g.statements,p)),g.statements))}return l}var m=[],h=e.addPrologue(m,n.body.statements,!1,i);m.push(e.createReturn(r(t,u,s,d(n.body,h)))),e.addRange(m,D());var g=e.createBlock(m,!0);return e.setTextRange(g,n.body),A>=2&&(4096&T.getNodeCheckFlags(n)?(_(),e.addEmitHelper(g,e.advancedAsyncSuperHelper)):2048&T.getNodeCheckFlags(n)&&(_(),e.addEmitHelper(g,e.asyncSuperHelper))),g}function d(r,n){if(e.isBlock(r))return e.updateBlock(r,e.visitLexicalEnvironment(r.statements,i,t,n));C();var a=e.convertToFunctionBody(e.visitNode(r,i,e.isConciseBody)),o=D();return e.updateBlock(a,e.setTextRange(e.createNodeArray(e.concatenate(a.statements,o)),a.statements))}function f(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=T.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}}function _(){0==(1&S)&&(S|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152))}function p(e,t,r){if(1&S&&b(t)){var n=6144&T.getNodeCheckFlags(t);if(n!==N){var i=N;return N=n,P(e,t,r),void(N=i)}}P(e,t,r)}function g(e,t){return t=M(e,t),1===e&&N?m(t):t}function m(e){switch(e.kind){case 179:return h(e);case 180:return y(e);case 181:return v(e)}return e}function h(t){return 97===t.expression.kind?k(e.createLiteral(t.name.text),t):t}function y(e){return 97===e.expression.kind?k(e.argumentExpression,e):e}function v(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?h(r):y(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function b(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function k(t,r){return 4096&N?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),r)}var x,S,C=t.startLexicalEnvironment,E=t.resumeLexicalEnvironment,D=t.endLexicalEnvironment,T=t.getEmitResolver(),w=t.getCompilerOptions(),A=e.getEmitScriptTarget(w),N=0,P=t.onEmitNode,M=t.onSubstituteNode;return t.onEmitNode=p,t.onSubstituteNode=g,n}function r(t,r,n,a){t.requestEmitHelper(i);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=131072,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),r?e.createIdentifier("arguments"):e.createVoidZero(),n?e.createExpressionFromEntityName(n):e.createVoidZero(),o])}var n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),e.transformES2017=t;var i={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n                return new (P || (P = Promise))(function (resolve, reject) {\n                    function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n                    function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n                    function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n                    step((generator = generator.apply(thisArg, _arguments || [])).next());\n                });\n            };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n            const _super = name => super[name];\n        "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n            const _super = (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        "}}(o||(o={}));var o;!function(e){function t(t){function o(r){if(e.isDeclarationFile(r))return r;var n=e.visitEachChild(r,s,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}function s(e){return l(e,!1)}function c(e){return l(e,!0)}function u(e){if(120!==e.kind)return e}function l(r,n){if(0==(8&r.transformFlags))return r;switch(r.kind){case 191:return d(r);case 197:return f(r);case 222:return _(r);case 178:return g(r);case 194:return y(r,n);case 226:return v(r);case 216:return x(r,void 0);case 214:return b(r);case 190:return k(r);case 152:return T(r);case 151:return N(r);case 153:return w(r);case 154:return A(r);case 228:return P(r);case 186:return O(r);case 187:return M(r);case 146:return D(r);case 210:return m(r);case 185:return h(r,n);default:return e.visitEachChild(r,s,t)}}function d(r){if(2&te&&1&te){var n=e.visitNode(r.expression,s,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.createArrayLiteral([e.createLiteral("await"),n])),r),r)}return e.visitEachChild(r,s,t)}function f(r){if(2&te&&1&te){var n=e.visitNode(r.expression,s,e.isExpression);return e.updateYield(r,r.asteriskToken,r.asteriskToken?i(t,n,n):e.createArrayLiteral(n?[e.createLiteral("yield"),n]:[e.createLiteral("yield")]))}return e.visitEachChild(r,s,t)}function _(r){if(2&te&&1&te){var n=e.unwrapInnermostStatementOfLabel(r);return 216===n.kind&&n.awaitModifier?x(n,r):e.restoreEnclosingLabel(e.visitEachChild(r,s,t),r)}return e.visitEachChild(r,s,t)}function p(t){for(var r,n=[],i=0,a=t;i=2&&(4096&X.getNodeCheckFlags(r)?(L(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&X.getNodeCheckFlags(r)&&(L(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function F(t){H();var r=0,n=[],i=e.visitNode(t.body,s,e.isConciseBody);e.isBlock(i)&&(r=e.addPrologue(n,i.statements,!1,s)),e.addRange(n,R(void 0,t));var a=W();if(r>0||e.some(n)||e.some(a)){var o=e.convertToFunctionBody(i,!0);return e.addRange(n,o.statements.slice(r)),e.addRange(n,a),e.updateBlock(o,e.setTextRange(e.createNodeArray(n),o.statements))}return i}function R(r,n){for(var i=0,a=n.parameters;i=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,r):(t.requestEmitHelper(s),e.createCall(e.getHelperName("__assign"),void 0,r))}function n(t,r){return t.requestEmitHelper(c),(r.emitNode||(r.emitNode={})).flags|=131072,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),r])}function i(t,r,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[r]),n)}function a(t,r,n){return t.requestEmitHelper(l),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[r]),n)}var o;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(o||(o={})),e.transformESNext=t;var s={name:"typescript:assign",scoped:!1,priority:1,text:"\n            var __assign = (this && this.__assign) || Object.assign || function(t) {\n                for (var s, i = 1, n = arguments.length; i < n; i++) {\n                    s = arguments[i];\n                    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                        t[p] = s[p];\n                }\n                return t;\n            };"};e.createAssignHelper=r;var c={name:"typescript:asyncGenerator",scoped:!1,text:'\n            var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var g = generator.apply(thisArg, _arguments || []), q = [], c, i;\n                return i = { next: verb("next"), "throw": verb("throw"), "return": verb("return") }, i[Symbol.asyncIterator] = function () { return this; }, i;\n                function verb(n) { return function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]), next(); }); }; }\n                function next() { if (!c && q.length) resume((c = q.shift())[0], c[1]); }\n                function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(c[3], e); } }\n                function step(r) { r.done ? settle(c[2], r) : Promise.resolve(r.value[1]).then(r.value[0] === "yield" ? send : fulfill, reject); }\n                function send(value) { settle(c[2], { value: value, done: false }); }\n                function fulfill(value) { resume("next", value); }\n                function reject(value) { resume("throw", value); }\n                function settle(f, v) { c = void 0, f(v), next(); }\n            };\n        '},u={name:"typescript:asyncDelegator",scoped:!1,text:'\n            var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n                var i = { next: verb("next"), "throw": verb("throw", function (e) { throw e; }), "return": verb("return", function (v) { return { value: v, done: true }; }) }, p;\n                return o = __asyncValues(o), i[Symbol.iterator] = function () { return this; }, i;\n                function verb(n, f) { return function (v) { return v = p && n === "throw" ? f(v) : p && v.done ? v : { value: p ? ["yield", v.value] : ["await", (o[n] || f).call(o, v)], done: false }, p = !p, v; }; }\n            };\n        '},l={name:"typescript:asyncValues",scoped:!1,text:'\n            var __asyncValues = (this && this.__asyncIterator) || function (o) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var m = o[Symbol.asyncIterator];\n                return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n            };\n        '}}(o||(o={}));var o;!function(e){function t(t){function n(r){if(e.isDeclarationFile(r))return r;var n=e.visitEachChild(r,i,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}function i(e){return 4&e.transformFlags?a(e):e}function a(r){switch(r.kind){case 249:return s(r,!1);case 250:return c(r,!1);case 256:return b(r);default:return e.visitEachChild(r,i,t)}}function o(t){switch(t.kind){case 10:return _(t);case 256:return b(t);case 249:return s(t,!0);case 250:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return u(e.openingElement,e.children,t,e)}function c(e,t){return u(e,void 0,t,e)}function u(r,n,i,a){var s,c=y(r),u=r.attributes.properties;if(0===u.length)s=e.createNull();else{var f=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,r){return r?e.map(t,l):e.createObjectLiteral(e.map(t,d))}));e.isJsxSpreadAttribute(u[0])&&f.unshift(e.createObjectLiteral()),s=e.singleOrUndefined(f),s||(s=e.createAssignHelper(t,f))}var _=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),k.reactNamespace,c,s,e.filter(e.map(n,o),e.isDefined),r,a);return i&&e.startOnNewLine(_),_}function l(t){return e.visitNode(t.expression,i,e.isExpression)}function d(t){var r=v(t),n=f(t.initializer);return e.createPropertyAssignment(r,n)}function f(t){if(void 0===t)return e.createTrue();if(9===t.kind){var r=h(t.text);return r?e.setTextRange(e.createLiteral(r),t):t}if(256===t.kind)return void 0===t.expression?e.createTrue():b(t);e.Debug.failBadSyntaxKind(t)}function _(t){var r=p(e.getTextOfNode(t,!0));return void 0===r?void 0:e.createLiteral(r)}function p(t){for(var r,n=0,i=-1,a=0;a=0,"statementOffset not initialized correctly!"));var s=n&&95!==e.skipOuterExpressions(n.expression).kind,u=A(a,t,s,i,o);1!==u&&2!==u||o++,t&&(1===u&&(Nt|=4096),e.addRange(a,e.visitNodes(t.body.statements,c,e.isStatement,o))),!s||2===u||t&&w(t.body)||a.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(a,xt()),t&&K(a,t,!1);var l=e.createBlock(e.setTextRange(e.createNodeArray(a),t?t.body.statements:r.members),!0);return e.setTextRange(l,t?t.body:r),t||e.setEmitFlags(l,1536),l}function w(t){if(219===t.kind)return!0;if(211===t.kind){var r=t;if(r.elseStatement)return w(r.thenStatement)&&w(r.elseStatement)}else if(207===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&w(n))return!0}return!1}function A(t,r,n,i,a){if(!n)return r&&j(t,r),0;if(!r)return t.push(e.createReturn(P())),2;if(i)return z(t,r,P()),dt(),1;var o,s,c=r.body.statements;if(a0?r.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,c,t,0,o))),524288)):a&&r.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,c,e.isExpression))),524288))}function R(t,r,n,i){i=e.visitNode(i,c,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(i,48|e.getEmitFlags(i))),r))]),r),417));a.startsOnNewLine=!0,e.setTextRange(a,r),e.setEmitFlags(a,524704),t.push(a)}function L(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function B(t,r,n){var i=e.lastOrUndefined(r.parameters);if(L(i,n)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=r.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),524288));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,524288),e.startOnNewLine(u),t.push(u)}}function j(t,r){32768&r.transformFlags&&187!==r.kind&&z(t,r,e.createThis())}function z(t,r,n,i){dt();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,n)]));e.setEmitFlags(a,525824),e.setTextRange(a,i),e.setSourceMapRange(a,r),t.push(a)}function K(t,r,n){if(16384&Nt){var i=void 0;switch(r.kind){case 187:return t;case 151:case 153:case 154:i=e.createVoidZero();break;case 152:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(r)}var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,i)]));if(n)return[a].concat(t);t.unshift(a)}return t}function J(t,r){for(var n=0,i=r.members;n0&&(o=!0),e.isBlock(l))a=e.addCustomPrologue(u,l.statements,a,c),n=l.statements,e.addRange(u,e.visitNodes(l.statements,c,e.isStatement,a)),!o&&l.multiLine&&(o=!0);else{e.Debug.assert(187===r.kind),n=e.moveRangeEnd(l,-1);var d=r.equalsGreaterThanToken;e.nodeIsSynthesized(d)||e.nodeIsSynthesized(l)||(e.rangeEndIsOnSameLineAsRangeStart(d,l,wt)?s=!0:o=!0);var f=e.visitNode(l,c,e.isExpression),_=e.createReturn(f);e.setTextRange(_,l),e.setEmitFlags(_,1440),u.push(_),i=l}var p=t.endLexicalEnvironment();e.addRange(u,p),K(u,r,!1),!o&&p&&p.length&&(o=!0);var g=e.createBlock(e.setTextRange(e.createNodeArray(u),n),o);return e.setTextRange(g,r.body),!o&&s&&e.setEmitFlags(g,1),i&&e.setTokenSourceMapRange(g,18,i),e.setOriginalNode(g,r.body),g}function Z(r){var n=e.visitFunctionBody(r.body,u,t);return e.updateBlock(n,e.setTextRange(e.createNodeArray(K(n.statements,r,!0)),n.statements))}function $(r,n){if(n)return e.visitEachChild(r,c,t);var o=256&Nt?i(4032,512):i(3904,128),s=e.visitEachChild(r,c,t);return a(o,0,0),s}function ee(r){switch(r.expression.kind){case 185:return e.updateStatement(r,te(r.expression,!1));case 194:return e.updateStatement(r,re(r.expression,!1))}return e.visitEachChild(r,c,t)}function te(r,n){if(!n)switch(r.expression.kind){case 185:return e.updateParen(r,te(r.expression,!1));case 194:return e.updateParen(r,re(r.expression,!1))}return e.visitEachChild(r,c,t)}function re(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,c,t,0,n):e.visitEachChild(r,c,t)}function ne(r){var n,o=i(0,e.hasModifier(r,1)?32:0);if(Pt&&0==(3&r.declarationList.flags)){for(var s=void 0,u=0,l=r.declarationList.declarations;u=72&&r<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,l=t.getCompilerOptions();1!==l.jsx&&3!==l.jsx||(c=t.onEmitNode,t.onEmitNode=n,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var d=t.onSubstituteNode;return t.onSubstituteNode=i,t.enableSubstitution(179),t.enableSubstitution(261),r}e.transformES5=t}(o||(o={}));var o;!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function r(r){function i(t){if(e.isDeclarationFile(t)||0==(512&t.transformFlags))return t;Ot=t;var n=e.visitEachChild(t,a,r);return e.addEmitHelpers(n,r.readEmitHelpers()),Ot=void 0,n}function a(t){var n=t.transformFlags;return Lt?o(t):Rt?s(t):256&n?u(t):512&n?e.visitEachChild(t,a,r):t}function o(e){switch(e.kind){case 212:return z(e);case 213:return J(e);case 221:return te(e);case 222:return ne(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return l(t);case 186:return d(t);case 153:case 154:return f(t);case 208:return p(t);case 214:return U(t);case 215:return H(t);case 218:return Y(t);case 217:return G(t);case 219:return Z(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,a,r):t}}function c(t){switch(t.kind){case 194:return g(t);case 195:return x(t);case 197:return S(t);case 177:return C(t);case 178:return D(t);case 180:return T(t);case 181:return w(t);case 182:return A(t);default:return e.visitEachChild(t,a,r)}}function u(t){switch(t.kind){case 228:return l(t);case 186:return d(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,a,r)}}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,r),void 0,_(t.body)),t),t);else{var n=Rt,i=Lt;Rt=!1,Lt=!1,t=e.visitEachChild(t,a,r),Rt=n,Lt=i}return Rt?void Tt(t):t}function d(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,r),void 0,_(t.body)),t),t);else{var n=Rt,i=Lt;Rt=!1,Lt=!1,t=e.visitEachChild(t,a,r),Rt=n,Lt=i}return t}function f(t){var n=Rt,i=Lt;return Rt=!1,Lt=!1,t=e.visitEachChild(t,a,r),Rt=n,Lt=i,t}function _(t){var r=[],n=Rt,i=Lt,o=Bt,s=jt,c=zt,u=Kt,l=Jt,d=qt,f=rr,_=Ut,p=Vt,g=Ht,m=Wt;Rt=!0,Lt=!1,Bt=void 0,jt=void 0,zt=void 0,Kt=void 0,Jt=void 0,qt=void 0,rr=1,Ut=void 0,Vt=void 0,Ht=void 0,Wt=e.createTempVariable(void 0),Et();var h=e.addPrologue(r,t.statements,!1,a);N(t.statements,h);var y=at();return e.addRange(r,Dt()),r.push(e.createReturn(y)),Rt=n,Lt=i,Bt=o,jt=s,zt=c,Kt=u,Jt=l,qt=d,rr=f,Ut=_,Vt=p,Ht=g,Wt=m,e.setTextRange(e.createBlock(r,t.multiLine),t)}function p(t){if(16777216&t.transformFlags)return void R(t.declarationList);if(524288&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r=59&&e<=70}function h(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function y(t){var n=t.left,i=t.right;if(oe(i)){var o=void 0;switch(n.kind){case 179:o=e.updatePropertyAccess(n,de(e.visitNode(n.expression,a,e.isLeftHandSideExpression)),n.name);break;case 180:o=e.updateElementAccess(n,de(e.visitNode(n.expression,a,e.isLeftHandSideExpression)),de(e.visitNode(n.argumentExpression,a,e.isExpression)));break;default:o=e.visitNode(n,a,e.isExpression)}var s=t.operatorToken.kind;return m(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(de(o),h(s),e.visitNode(i,a,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(i,a,e.isExpression))}return e.visitEachChild(t,a,r)}function v(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return k(t);var n=e.getMutableClone(t);return n.left=de(e.visitNode(t.left,a,e.isExpression)),n.right=e.visitNode(t.right,a,e.isExpression),n}return e.visitEachChild(t,a,r)}function b(t){var r=_e(),n=fe();return Xe(n,e.visitNode(t.left,a,e.isExpression),t.left),53===t.operatorToken.kind?Ze(r,n,t.left):Qe(r,n,t.left),Xe(n,e.visitNode(t.right,a,e.isExpression),t.right),pe(r),n}function k(t){function r(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(r(t.left),r(t.right)):(oe(t)&&n.length>0&&(it(1,[e.createStatement(e.inlineExpressions(n))]),n=[]),n.push(e.visitNode(t,a,e.isExpression)))}var n=[];return r(t.left),r(t.right),e.inlineExpressions(n)}function x(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var n=_e(),i=_e(),o=fe();return Ze(n,e.visitNode(t.condition,a,e.isExpression),t.condition),Xe(o,e.visitNode(t.whenTrue,a,e.isExpression),t.whenTrue),Ye(i),pe(n),Xe(o,e.visitNode(t.whenFalse,a,e.isExpression),t.whenFalse),pe(i),o}return e.visitEachChild(t,a,r)}function S(t){var n=_e(),i=e.visitNode(t.expression,a,e.isExpression);if(t.asteriskToken){$e(0==(4194304&e.getEmitFlags(t.expression))?e.createValuesHelper(r,i,t):i,t)}else et(i,t);return pe(n),He(t)}function C(e){return E(e.elements,void 0,void 0,e.multiLine)}function E(t,r,n,i){function o(t,n){if(oe(n)&&t.length>0){var o=void 0!==s;s||(s=fe()),Xe(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(r?[r].concat(t):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,a,e.isExpression)),t}var s,c=se(t);if(c>0){s=fe();var u=e.visitNodes(t,a,e.isExpression,0,c);Xe(s,e.createArrayLiteral(r?[r].concat(u):u)),r=void 0}var l=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(l,i)]):e.setTextRange(e.createArrayLiteral(r?[r].concat(l):l,i),n)}function D(t){function r(r,n){oe(n)&&r.length>0&&(Ge(e.createStatement(e.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(t,n,s),c=e.visitNode(o,a,e.isExpression);return c&&(i&&(c.startsOnNewLine=!0),r.push(c)),r}var n=t.properties,i=t.multiLine,o=se(n),s=fe();Xe(s,e.createObjectLiteral(e.visitNodes(n,a,e.isObjectLiteralElementLike,0,o),i));var c=e.reduceLeft(n,r,[],o);return c.push(i?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function T(t){if(oe(t.argumentExpression)){var n=e.getMutableClone(t);return n.expression=de(e.visitNode(t.expression,a,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(t.argumentExpression,a,e.isExpression),n}return e.visitEachChild(t,a,r)}function w(t){if(e.forEach(t.arguments,oe)){var n=e.createCallBinding(t.expression,wt,Nt,!0),i=n.target,o=n.thisArg;return e.setOriginalNode(e.createFunctionApply(de(e.visitNode(i,a,e.isLeftHandSideExpression)),o,E(t.arguments),t),t)}return e.visitEachChild(t,a,r)}function A(t){if(e.forEach(t.arguments,oe)){var n=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),wt),i=n.target,o=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(de(e.visitNode(i,a,e.isExpression)),o,E(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,a,r)}function N(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0)break;u.push(L(i))}u.length&&(Ge(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function L(t){return e.createAssignment(e.getSynthesizedClone(t.name),e.visitNode(t.initializer,a,e.isExpression))}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var r=_e(),n=t.elseStatement?_e():void 0;Ze(t.elseStatement?n:r,e.visitNode(t.expression,a,e.isExpression),t.expression),P(t.thenStatement),t.elseStatement&&(Ye(r),pe(n),P(t.elseStatement)),pe(r)}else Ge(e.visitNode(t,a,e.isStatement));else Ge(e.visitNode(t,a,e.isStatement))}function j(t){if(oe(t)){var r=_e(),n=_e();we(r),pe(n),P(t.statement),pe(r),Qe(n,e.visitNode(t.expression,a,e.isExpression)),Ae()}else Ge(e.visitNode(t,a,e.isStatement))}function z(t){return Lt?(Te(),t=e.visitEachChild(t,a,r),Ae(),t):e.visitEachChild(t,a,r)}function K(t){if(oe(t)){var r=_e(),n=we(r);pe(r),Ze(n,e.visitNode(t.expression,a,e.isExpression)),P(t.statement),Ye(r),Ae()}else Ge(e.visitNode(t,a,e.isStatement))}function J(t){return Lt?(Te(),t=e.visitEachChild(t,a,r),Ae(),t):e.visitEachChild(t,a,r)}function q(t){if(oe(t)){var r=_e(),n=_e(),i=we(n);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?R(o):Ge(e.setTextRange(e.createStatement(e.visitNode(o,a,e.isExpression)),o))}pe(r),t.condition&&Ze(i,e.visitNode(t.condition,a,e.isExpression)),P(t.statement),pe(n),t.incrementor&&Ge(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,a,e.isExpression)),t.incrementor)),Ye(r),Ae()}else Ge(e.visitNode(t,a,e.isStatement))}function U(t){Lt&&Te();var n=t.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i0?e.inlineExpressions(e.map(c,L)):void 0,e.visitNode(t.condition,a,e.isExpression),e.visitNode(t.incrementor,a,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,a,r);return Lt&&Ae(),t}function V(t){if(oe(t)){var r=fe(),n=fe(),i=e.createLoopVariable(),o=t.initializer;wt(i),Xe(r,e.createArrayLiteral()),Ge(e.createForIn(n,e.visitNode(t.expression,a,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(r,"push"),void 0,[n])))),Xe(i,e.createLiteral(0));var s=_e(),c=_e(),u=we(c);pe(s),Ze(u,e.createLessThan(i,e.createPropertyAccess(r,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var d=0,f=o.declarations;d0,"Expected continue statment to point to a valid Label."),Ye(r,t)}function G(t){if(Lt){var n=Ke(t.label&&t.label.text);if(n>0)return Ue(n,t)}return e.visitEachChild(t,a,r)}function X(t){var r=ze(t.label?t.label.text:void 0);e.Debug.assert(r>0,"Expected break statment to point to a valid Label."),Ye(r,t)}function Y(t){if(Lt){var n=ze(t.label&&t.label.text);if(n>0)return Ue(n,t)}return e.visitEachChild(t,a,r)}function Q(t){tt(e.visitNode(t.expression,a,e.isExpression),t)}function Z(t){return Ve(e.visitNode(t.expression,a,e.isExpression),t)}function $(t){oe(t)?(ve(de(e.visitNode(t.expression,a,e.isExpression))),P(t.statement),be()):Ge(e.visitNode(t,a,e.isStatement))}function ee(t){if(oe(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=Pe(),o=de(e.visitNode(t.expression,a,e.isExpression)),s=[],c=-1,u=0;u0)break;f.push(e.createCaseClause(e.visitNode(p.expression,a,e.isExpression),[Ue(s[u],p.expression)]))}else _++}f.length&&(Ge(e.createSwitch(o,e.createCaseBlock(f))),d+=f.length,f=[]),_>0&&(d+=_,_=0)}Ye(c>=0?s[c]:i);for(var u=0;u=0;r--){var n=Kt[r];if(!Le(n))break;if(n.labelText===e)return!0}return!1}function ze(t){if(e.Debug.assert(void 0!==Bt),t)for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Le(n)&&n.labelText===t)return n.breakLabel;if(Re(n)&&je(t,r-1))return n.breakLabel}else for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Re(n))return n.breakLabel}return 0}function Ke(t){if(e.Debug.assert(void 0!==Bt),t)for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Be(n)&&je(t,r-1))return n.continueLabel}else for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Be(n))return n.continueLabel}return 0}function Je(t){if(t>0){void 0===qt&&(qt=[]);var r=e.createLiteral(-1);return void 0===qt[t]?qt[t]=[r]:qt[t].push(r),r}return e.createOmittedExpression()}function qe(r){var n=e.createLiteral(r);return e.addSyntheticTrailingComment(n,3,t(r)),n}function Ue(t,r){return e.Debug.assert(t>0,"Invalid label: "+t),e.setTextRange(e.createReturn(e.createArrayLiteral([qe(3),Je(t)])),r)}function Ve(t,r){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[qe(2),t]:[qe(2)])),r)}function He(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Wt,"sent"),void 0,[]),t)}function We(){it(0)}function Ge(e){e?it(1,[e]):We()}function Xe(e,t,r){it(2,[e,t],r)}function Ye(e,t){it(3,[e],t)}function Qe(e,t,r){it(4,[e,t],r)}function Ze(e,t,r){it(5,[e,t],r)}function $e(e,t){it(7,[e],t)}function et(e,t){it(6,[e],t)}function tt(e,t){it(8,[e],t)}function rt(e,t){it(9,[e],t)}function nt(){it(10)}function it(e,t,r){void 0===Ut&&(Ut=[],Vt=[],Ht=[]),void 0===Jt&&pe(_e());var n=Ut.length;Ut[n]=e,Vt[n]=t,Ht[n]=r}function at(){nr=0,ir=0,Gt=void 0,Xt=!1,Yt=!1,Qt=void 0,Zt=void 0,$t=void 0,er=void 0,tr=void 0;var t=ot();return n(r,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Wt)],void 0,e.createBlock(t,t.length>0)),262144))}function ot(){if(Ut){for(var t=0;t=0;r--){var n=tr[r];Zt=[e.createWith(n.expression,e.createBlock(Zt))]}if(er){var i=er.startLabel,a=er.catchLabel,o=er.finallyLabel,s=er.endLabel;Zt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Wt,"trys"),"push"),void 0,[e.createArrayLiteral([Je(i),Je(a),Je(o),Je(s)])]))),er=void 0}t&&Zt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Wt,"label"),e.createLiteral(ir+1))))}Qt.push(e.createCaseClause(e.createLiteral(ir),Zt||[])),Zt=void 0}function dt(e){if(Jt)for(var t=0;t 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                                if (t[2]) _.ops.pop();\n                                _.trys.pop(); continue;\n                        }\n                        op = body.call(thisArg, _);\n                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n                }\n            };'}}(o||(o={}));var o;!function(e){function t(t){function n(t){switch(t){case e.ModuleKind.AMD:return s;case e.ModuleKind.UMD:return c;default:return o}}function i(t){if(e.isDeclarationFile(t)||!e.isExternalModule(t)&&!H.isolatedModules)return t;$=t,ee=e.collectExternalModuleInfo(t,W,H),re[e.getOriginalNodeId(t)]=ee;var r=n(Y),i=r(t);return $=void 0,ee=void 0,e.aggregateTransformFlags(i)}function a(){return!(ee.exportEquals||!e.isExternalModule($))}function o(t){U();var n=[],i=H.alwaysStrict||!H.noImplicitUseStrict&&e.isExternalModule($),o=e.addPrologue(n,t.statements,i,f);a()&&e.append(n,M()),e.append(n,e.visitNode(ee.externalHelpersImportDeclaration,f,e.isStatement)),e.addRange(n,e.visitNodes(t.statements,f,e.isStatement,o)),d(n,!1),e.addRange(n,V());var s=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(n),t.statements));return ee.hasExportStarsToExportValues&&e.addEmitHelper(s,r),s}function s(t){var r=e.createIdentifier("define"),n=e.tryGetModuleNameFromFile(t,G,H),i=u(t,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames;return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(r,void 0,(n?[n]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(a,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,l(t))])))]),t.statements))}function c(t){var r=u(t,!1),n=r.aliasedModuleNames,i=r.unaliasedModuleNames,a=r.importAliasNames,o=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,[e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(n,i)),e.createIdentifier("factory")]))])))],!0),void 0));return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(o,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(a),void 0,l(t))]))]),t.statements))}function u(t,r){for(var n=[],i=[],a=[],o=0,s=t.amdDependencies;o=2?2:0)),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)),t)],X>=2?2:0))));if(S(t)){var a=e.getOriginalNodeId(t);ne[a]=E(ne[a],t)}else r=E(r,t);return e.singleOrMany(r)}function p(t){var r=e.getExternalModuleNameLiteral(t,$,G,W,H),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function g(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var r;if(Y!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setTextRange(e.createStatement(I(t.name,p(t))),t)):e.append(r,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,p(t))],X>=2?2:0)),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setTextRange(e.createStatement(I(e.getExportName(t),e.getLocalName(t))),t))),S(t)){var n=e.getOriginalNodeId(t);ne[n]=D(ne[n],t)}else r=D(r,t);return e.singleOrMany(r)}function m(t){if(t.moduleSpecifier){var r=e.getGeneratedNameForNode(t);if(t.exportClause){var n=[];Y!==e.ModuleKind.AMD&&n.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,p(t))])),t));for(var i=0,a=t.exportClause.elements;i0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.createVariableDeclaration(t);S?S.push(r):S=[r]}function g(t){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),C?C.push(t):C=[t]}function m(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!N,"Lexical environment is suspended."),T[A]=S,w[A]=C,A++,S=void 0,C=void 0}function h(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!N,"Lexical environment is already suspended."),N=!0}function y(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(N,"Lexical environment is not suspended."),N=!1}function v(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!N,"Lexical environment is suspended.");var t;if((S||C)&&(C&&(t=C.slice()),S)){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(S));t?t.push(r):t=[r]}return A--,S=T[A],C=w[A],0===A&&(T=[],w=[]),t}function b(t){e.Debug.assert(O>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(O<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),E=e.append(E,t)}function k(){e.Debug.assert(O>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(O<2,"Cannot modify the transformation context after transformation has completed.");var t=E;return E=void 0,t}function x(){if(O<3){for(var t=0,r=i;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),k.sourceMapMappings+=n(y.nameIndex-b),b=y.nameIndex),v=y,k.sourceMapDecodedMappings.push(v)}}function c(t){if(!C&&!e.positionIsSynthesized(t)){S&&e.performance.mark("beforeSourcemap");var n=e.getLineAndCharacterOfPosition(p,t);n.line++,n.character++;var i=r.getLine(),a=r.getColumn();!y||y.emittedLine!==i||y.emittedColumn!==a||y.sourceIndex===h&&(y.sourceLine>n.line||y.sourceLine===n.line&&y.sourceColumn>n.character)?(s(),y={emittedLine:i,emittedColumn:a,sourceLine:n.line,sourceColumn:n.character,sourceIndex:h}):(y.sourceLine=n.line,y.sourceColumn=n.character,y.sourceIndex=h),S&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function u(t,r,n){if(C)return n(t,r);if(r){var i=r.emitNode,a=i&&i.flags,o=i&&i.sourceMapRange||r,s=o.pos,u=o.end;295!==r.kind&&0==(16&a)&&s>=0&&c(e.skipTrivia(g,s)),64&a?(C=!0,n(t,r),C=!1):n(t,r),295!==r.kind&&0==(32&a)&&u>=0&&c(u)}}function l(t,r,n,i){if(C)return i(r,n);var a=t&&t.emitNode,o=a&&a.flags,s=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[r];return n=e.skipTrivia(g,s?s.pos:n),0==(128&o)&&n>=0&&c(n),n=i(r,n),s&&(n=s.end),0==(256&o)&&n>=0&&c(n),n}function d(r){if(!C){p=r,g=p.text;var n=x.sourceRoot?t.getCommonSourceDirectory():m,i=e.getRelativePathToDirectoryOrUrl(n,p.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);h=e.indexOf(k.sourceMapSources,i),-1===h&&(h=k.sourceMapSources.length,k.sourceMapSources.push(i),k.inputSourceFileNames.push(p.fileName),x.inlineSources&&k.sourceMapSourcesContent.push(p.text))}}function f(){if(!C)return s(),JSON.stringify({version:3,file:k.sourceMapFile,sourceRoot:k.sourceMapSourceRoot,sources:k.sourceMapSources,names:k.sourceMapNames,mappings:k.sourceMapMappings,sourcesContent:k.sourceMapSourcesContent})}function _(){if(!C){if(x.inlineSourceMap){var t=e.convertToBase64(f());return k.jsSourceMappingURL="data:application/json;base64,"+t}return k.jsSourceMappingURL}}var p,g,m,h,y,v,b,k,x=t.getCompilerOptions(),S=x.extendedDiagnostics,C=!(x.sourceMap||x.inlineSourceMap);return{initialize:a,reset:o,getSourceMapData:function(){return k},setSourceFile:d,emitPos:c,emitNodeWithSourceMap:u,emitTokenWithSourceMap:l,getText:f,getSourceMappingURL:_}}function r(e){if(e<64)return a.charAt(e);throw TypeError(e+": not a 64 based value")}function n(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var n=31&e;e>>=5,e>0&&(n|=32),t+=r(n)}while(e>0);return t}var i={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"}(o||(o={}));var o;!function(e){function t(t,r){function n(t,r,n){if(z)return void n(t,r);if(r){j=!1;var a=r.emitNode,o=a&&a.flags,s=a&&a.commentRange||r,c=s.pos,u=s.end;if(c<0&&u<0||c===u)i(t,r,a,o,n);else{I&&e.performance.mark("preEmitNodeWithComment");var l=295!==r.kind,f=c<0||0!=(512&o),_=u<0||0!=(1024&o);f||d(c,l);var p=R,m=L,h=B;f||(R=c),_||(L=u,227===r.kind&&(B=u)),I&&e.performance.measure("commentTime","preEmitNodeWithComment"),i(t,r,a,o,n),I&&e.performance.mark("postEmitNodeWithComment"),R=p,L=m,B=h,!_&&l&&g(u),I&&e.performance.measure("commentTime","postEmitNodeWithComment")}}}function i(t,r,n,i,s){var c=n&&n.leadingComments;e.some(c)&&(I&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,a),I&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,r,i,s);var l=n&&n.trailingComments;e.some(l)&&(I&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,o),I&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function a(e){2===e.kind&&A.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?A.writeLine():A.write(" ")}function o(e){A.isAtStartOfLine()||A.write(" "),s(e),e.hasTrailingNewLine&&A.writeLine()}function s(t){var r=c(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,A,0,r.length,F)}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,r,n){2048&r?(z=!0,n(e,t),z=!1):n(e,t)}function l(t,r,n){I&&e.performance.mark("preEmitBodyWithDetachedComments");var i=r.pos,a=r.end,o=e.getEmitFlags(t),s=i<0||0!=(512&o),c=z||a<0||0!=(1024&o);s||D(r),I&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!z?(z=!0,n(t),z=!1):n(t),I&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(d(r.end,!0),j&&!A.isAtStartOfLine()&&A.writeLine()),I&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")}function d(e,t){j=!1,t?v(e,_):0===e&&v(e,f)}function f(e,t,r,n,i){w(e,t)&&_(e,t,r,n,i)}function _(t,n,i,a,o){j||(e.emitNewLineBeforeLeadingCommentOfPosition(M,A,o,t),j=!0),r&&r(t),e.writeCommentRange(P,M,A,t,n,F),r&&r(n),a?A.writeLine():A.write(" ")}function p(e){z||-1===e||d(e,!0)}function g(e){b(e,m)}function m(t,n,i,a){A.isAtStartOfLine()||A.write(" "),r&&r(t),e.writeCommentRange(P,M,A,t,n,F),r&&r(n),a&&A.writeLine()}function h(t){z||(I&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,y),I&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))}function y(t,n,i,a){r&&r(t),e.writeCommentRange(P,M,A,t,n,F),r&&r(n),a?A.writeLine():A.write(" ")}function v(t,r){-1!==R&&t===R||(C(t)?E(r):e.forEachLeadingCommentRange(P,t,r,t))}function b(t,r){(-1===L||t!==L&&t!==B)&&e.forEachTrailingCommentRange(P,t,r)}function k(){N=void 0,P=void 0,M=void 0,O=void 0}function x(e){A=e}function S(t){N=t,P=N.text,M=e.getLineStarts(N),O=void 0}function C(t){return void 0!==O&&e.lastOrUndefined(O).nodePos===t}function E(t){var r=e.lastOrUndefined(O).detachedCommentEndPos;O.length-1?O.pop():O=void 0,e.forEachLeadingCommentRange(P,r,t,r)}function D(t){var r=e.emitDetachedComments(P,M,A,T,t,F,z);r&&(O?O.push(r):O=[r])}function T(t,n,i,a,o,s){r&&r(a),e.writeCommentRange(t,n,i,a,o,s),r&&r(o)}function w(t,r){if(47===P.charCodeAt(t+1)&&t+2=0}function c(t){if(t){var r=e.getLeadingCommentRanges(ve,t.pos);if(e.forEach(r,s))return;ae(t)}}function u(){var t=e.createTextWriter(ge);t.trackSymbol=p,t.reportInaccessibleThisError=m,t.reportIllegalExtends=g,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,l(t)}function l(e){fe=e,se=e.write,de=e.writeTextOfNode,ce=e.writeLine,ue=e.increaseIndent,le=e.decreaseIndent}function d(t){var r=fe;e.forEach(t,function(t){var r;226===t.kind?r=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):r=t;var n=e.forEach(Ne,function(e){return e.node===r?e:void 0});if(!n&&Ee&&(n=e.forEach(Ee,function(e){return e.node===r?e:void 0})),n)if(238===n.node.kind)n.isVisible=!0;else{u();for(var i=n.indent;i;i--)ue();233===r.kind&&(e.Debug.assert(void 0===Ee),Ee=[]),N(r),233===r.kind&&(n.subModuleElementDeclarationEmitInfo=Ee,Ee=void 0),n.asynchronousOutput=fe.getText()}}),l(r)}function f(t){if(t){De||(De=e.createMap());for(var r=0,n=t;r")))}(t);case 159:return function(e){i(e.typeName),e.typeArguments&&(se("<"),k(e.typeArguments,C),se(">"))}(t);case 162:return function(e){se("typeof "),i(e.exprName)}(t);case 164:return function(e){C(e.elementType),se("[]")}(t);case 165:return function(e){se("["),k(e.elementTypes,C),se("]")}(t);case 166:return function(e){b(e.types," | ",C)}(t);case 167:return function(e){b(e.types," & ",C)}(t);case 168:return function(e){se("("),C(e.type),se(")")}(t);case 170:return function(t){se(e.tokenToString(t.operator)),se(" "),C(t.type)}(t);case 171:return function(e){C(e.objectType),se("["),C(e.indexType),se("]")}(t);case 172:return function(e){var t=he;he=e,se("{"),ce(),ue(),e.readonlyToken&&se("readonly "),se("["),n(e.typeParameter.name),se(" in "),C(e.typeParameter.constraint),se("]"),e.questionToken&&se("?"),se(": "),C(e.type),se(";"),ce(),le(),se("}"),he=t}(t);case 160:case 161:return re(t);case 163:return function(e){se("{"),e.members.length&&(ce(),ue(),v(e.members),le()),se("}")}(t);case 71:case 143:return i(t);case 158:return function(e){de(ve,e.parameterName),se(" is "),C(e.type)}(t)}}function E(t){ve=t.text,be=e.getLineStarts(t),ke=t.identifiers,xe=e.isExternalModule(t),he=t,e.emitDetachedComments(ve,be,fe,e.writeCommentRange,t,ge,!0),v(t.statements)}function D(){if(!ke.has("_default"))return"_default";for(var e=0;;){e++;var t="_default_"+e;if(!ke.has(t))return t}}function T(t){function n(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}}if(71===t.expression.kind)se(t.isExportEquals?"export = ":"export default "),de(ve,t.expression);else{var i=D();Ce||se("declare "),se("var "),se(i),se(": "),fe.getSymbolAccessibilityDiagnostic=n,r.writeTypeOfExpression(t.expression,he,1026,fe),se(";"),ce(),se(t.isExportEquals?"export = ":"export default "),se(i)}if(se(";"),ce(),71===t.expression.kind){d(r.collectLinkedAliases(t.expression))}}function w(e){return r.isDeclarationVisible(e)}function A(e,t){if(t)N(e);else if(237===e.kind||265===e.parent.kind&&xe){var n=void 0;if(Ee&&265!==e.parent.kind)Ee.push({node:e,outputPos:fe.getTextPos(),indent:fe.getIndent(),isVisible:n});else{if(238===e.kind){var i=e;i.importClause&&(n=i.importClause.name&&r.isDeclarationVisible(i.importClause)||I(i.importClause.namedBindings))}Ne.push({node:e,outputPos:fe.getTextPos(),indent:fe.getIndent(),isVisible:n})}}}function N(t){switch(t.kind){case 228:return te(t);case 208:return $(t);case 230:return G(t);case 229:return W(t);case 231:return K(t);case 232:return J(t);case 233:return z(t);case 237:return O(t);case 238:return F(t);default:e.Debug.fail("Unknown symbol kind")}}function P(t){if(265===t.parent.kind){var r=e.getModifierFlags(t);1&r&&se("export "),512&r?se("default "):230===t.kind||Ce||se("declare ")}}function M(e){8&e?se("private "):16&e&&se("protected "),32&e&&se("static "),64&e&&se("readonly "),128&e&&se("abstract ")}function O(t){function r(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}we(t),e.hasModifier(t,1)&&se("export "),se("import "),de(ve,t.name),se(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(S(t.moduleReference,r),se(";")):(se("require("),R(t),se(");")),fe.writeLine()}function I(t){if(t)return 240===t.kind?r.isDeclarationVisible(t):e.forEach(t.elements,function(e){return r.isDeclarationVisible(e)})}function F(t){if(we(t),e.hasModifier(t,1)&&se("export "),se("import "),t.importClause){var n=fe.getTextPos();t.importClause.name&&r.isDeclarationVisible(t.importClause)&&de(ve,t.importClause.name),t.importClause.namedBindings&&I(t.importClause.namedBindings)&&(n!==fe.getTextPos()&&se(", "),240===t.importClause.namedBindings.kind?(se("* as "),de(ve,t.importClause.namedBindings.name)):(se("{ "),k(t.importClause.namedBindings.elements,L,r.isDeclarationVisible),se(" }"))),se(" from ")}R(t),se(";"),fe.writeLine()}function R(n){ye=ye||233!==n.kind;var i;if(237===n.kind){var a=n;i=e.getExternalModuleImportEqualsDeclarationExpression(a)}else if(233===n.kind)i=n.name;else{var a=n;i=a.moduleSpecifier}if(9===i.kind&&pe&&(me.out||me.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,r,n);if(o)return se('"'),se(o),void se('"')}de(ve,i)}function L(e){e.propertyName&&(de(ve,e.propertyName),se(" as ")),de(ve,e.name)}function B(e){L(e),d(r.collectLinkedAliases(e.propertyName||e.name))}function j(e){we(e),se("export "),e.exportClause?(se("{ "),k(e.exportClause.elements,B),se(" }")):se("*"),e.moduleSpecifier&&(se(" from "),R(e)),se(";"),fe.writeLine()}function z(t){for(we(t),P(t),e.isGlobalScopeAugmentation(t)?se("global "):(se(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?R(t):de(ve,t.name));t.body&&234!==t.body.kind;)t=t.body,se("."),de(ve,t.name);var r=he;t.body?(he=t,se(" {"),ce(),ue(),v(t.body.statements),le(),se("}"),ce(),he=r):se(";")}function K(t){function r(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var n=he;he=t,we(t),P(t),se("type "),de(ve,t.name),V(t.typeParameters),se(" = "),S(t.type,r),se(";"),ce(),he=n}function J(t){we(t),P(t),e.isConst(t)&&se("const "),se("enum "),de(ve,t.name),se(" {"),ce(),ue(),v(t.members),le(),se("}"),ce()}function q(e){we(e),de(ve,e.name);var t=r.getConstantValue(e);void 0!==t&&(se(" = "),se(t.toString())),se(","),ce()}function U(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function V(t){function r(t){function r(){var r;switch(t.parent.kind){case 229:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150:r=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===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 228:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}ue(),we(t),le(),de(ve,t.name),t.constraint&&!U(t)&&(se(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),C(t.constraint)):S(t.constraint,r)),t.default&&!U(t)&&(se(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),C(t.default)):S(t.default,r))}t&&(se("<"),k(t,r),se(">"))}function H(t,n,i){function a(n){function a(){var t;return t=229===n.parent.parent.kind?i?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:t,errorNode:n,typeName:n.parent.parent.name}}e.isEntityNameExpression(n.expression)?S(n,a):i||95!==n.expression.kind?(fe.getSymbolAccessibilityDiagnostic=a,Se=t,r.writeBaseConstructorTypeOfClass(he,he,1026,fe),Se=void 0):se("null")}n&&(se(i?" implements ":" extends "),k(n,a))}function W(t){we(t),P(t),e.hasModifier(t,128)&&se("abstract "),se("class "),de(ve,t.name);var r=he;he=t,V(t.typeParameters);var n=e.getClassExtendsHeritageClauseElement(t);n&&(t.name,H(t.name,[n],!1)),H(t.name,e.getClassImplementsHeritageClauseElements(t),!0),se(" {"),ce(),ue(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&X(t)})}(e.getFirstConstructorWithBody(t)),v(t.members),le(),se("}"),ce(),he=r}function G(t){we(t),P(t),se("interface "),de(ve,t.name);var r=he;he=t,V(t.typeParameters);var n=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});n&&n.length&&H(t.name,n,!1),se(" {"),ce(),ue(),v(t.members),le(),se("}"),ce(),he=r}function X(t){e.hasDynamicName(t)||(we(t),M(e.getModifierFlags(t)),Y(t),se(";"),ce())}function Y(t){function n(r){return 226===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:149===t.kind||148===t.kind?e.hasModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:229===t.parent.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}function i(e){var r=n(e);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}function a(e){for(var t=[],r=0,n=e.elements;r0?e.parameters[0].type:void 0}function n(t){var r;return 154===i.kind?(r=e.hasModifier(i.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:i.parameters[0],typeName:i.name}):(r=e.hasModifier(i,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:r,errorNode:i.name,typeName:void 0})}if(!e.hasDynamicName(t)){var i,a=e.getAllAccessorDeclarations(t.parent.members,t);if(t===a.firstAccessor){if(we(a.getAccessor),we(a.setAccessor),M(e.getModifierFlags(t)|(a.setAccessor?0:64)),de(ve,t.name),!e.hasModifier(t,8)){i=t;var o=r(t);if(!o){var s=153===t.kind?a.setAccessor:a.getAccessor;o=r(s),o&&(i=s)}h(t,o,n)}se(";"),ce()}}}function te(t){e.hasDynamicName(t)||r.isImplementationOfOverload(t)||(we(t),228===t.kind?P(t):151!==t.kind&&152!==t.kind||M(e.getModifierFlags(t)),228===t.kind?(se("function "),de(ve,t.name)):152===t.kind?se("constructor"):(de(ve,t.name),e.hasQuestionToken(t)&&se("?")),ne(t))}function re(e){we(e),ne(e)}function ne(t){function r(r){var n;switch(t.kind){case 156: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 155: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 157: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 151:case 150:n=e.hasModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:229===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 228:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}var n=he;he=t;var i=!1;if(157===t.kind)M(e.getModifierFlags(t)),se("[");else{if(156===t.kind||161===t.kind)se("new ");else if(160===t.kind){var a=fe.getText();t.typeParameters&&"<"===a.charAt(a.length-1)&&(i=!0,se("("))}V(t.typeParameters),se("(")}k(t.parameters,ie),se(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(se(o?" => ":": "),C(t.type)):152===t.kind||e.hasModifier(t,8)||y(t,r),he=n,o?i&&se(")"):(se(";"),ce())}function ie(t){function n(e){var r=i(e);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}function i(r){switch(t.parent.kind){case 152: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 156: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 155: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 157: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 151:case 150:return e.hasModifier(t.parent,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===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 228:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:e.Debug.fail("This is unknown parent for parameter: "+t.parent.kind)}}function a(e){if(174===e.kind)se("{"),k(e.elements,o),se("}");else if(175===e.kind){se("[");var t=e.elements;k(t,o),t&&t.hasTrailingComma&&se(", "),se("]")}}function o(t){200===t.kind?se(" "):176===t.kind&&(t.propertyName&&(de(ve,t.propertyName),se(": ")),t.name&&(e.isBindingPattern(t.name)?a(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&se("..."),de(ve,t.name))))}ue(),we(t),t.dotDotDotToken&&se("..."),e.isBindingPattern(t.name)?a(t.name):de(ve,t.name),r.isOptionalParameter(t)&&se("?"),le(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Q(t):e.hasModifier(t.parent,8)||h(t,t.type,n)}function ae(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return A(e,w(e));case 208:return A(e,Z(e));case 238:return A(e,!e.importClause);case 244:return j(e);case 152:case 151:case 150:return te(e);case 156:case 155:case 157:return re(e);case 153:case 154:return ee(e);case 149:case 148:return X(e);case 264:return q(e);case 243:return T(e);case 265:return E(e)}}function oe(r,n,a){function o(t,i){var a=266===i.kind;a&&!n||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(r),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=a)}var s,c=!1;return e.isDeclarationFile(r)?s=r.fileName:e.forEachEmittedFile(t,o,r,a),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Pe+='/// '+ge),c}var se,ce,ue,le,de,fe,_e=266===a.kind?a.sourceFiles:[a],pe=266===a.kind,ge=t.getNewLine(),me=t.getCompilerOptions();u();var he,ye,ve,be,ke,xe,Se,Ce,Ee,De,Te=!1,we=me.removeComments?e.noop:x,Ae=me.stripInternal?c:ae,Ne=[],Pe="",Me=[],Oe=!1,Ie=[];return e.forEach(_e,function(r){if(!e.isSourceFileJavaScript(r)){if(me.noResolve||e.forEach(r.referencedFiles,function(n){var i=e.tryResolveScriptReference(t,r,n);i&&!e.contains(Me,i)&&(oe(i,!pe&&!Oe,o)&&(Oe=!0),Me.push(i))}),ye=!1,pe&&e.isExternalModule(r)?e.isExternalModule(r)&&(Ce=!0,se('declare module "'+e.getResolvedExternalModuleName(t,r)+'" {'),ce(),ue(),E(r),le(),se("}"),ce()):(Ce=!1,E(r)),Ne.length){var n=fe;e.forEach(Ne,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),u(),e.Debug.assert(0===t.indent||1===t.indent&&pe);for(var r=0;r'+ge}),{reportedDeclarationError:Te,moduleElementDeclarationEmitInfo:Ie,synchronousDeclarationOutput:fe.getText(),referencesOutput:Pe}}function n(t,n,i,a,o,s){function c(t,r){var n=0,i="";return e.forEach(r,function(e){e.asynchronousOutput&&(i+=t.substring(n,e.outputPos),i+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),n=e.outputPos)}),i+=t.substring(n)}var u=r(i,a,o,t,n,s),l=u.reportedDeclarationError||i.isEmitBlocked(t)||i.getCompilerOptions().noEmit;if(!l){var d=266===n.kind?n.sourceFiles:[n],f=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(i,o,t,f,i.getCompilerOptions().emitBOM,d)}return l}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=n}(o||(o={}));var o;!function(e){function t(t,n,i,a,o){function s(r,i){var o=r.jsFilePath,s=r.sourceMapFilePath,u=r.declarationFilePath;n.isEmitBlocked(o)||p.noEmit?x=!0:a||c(o,s,i),u&&(x=e.writeDeclarationFile(u,e.getOriginalSourceFileOrBundle(i),n,t,y,a)||x),!x&&h&&(a||h.push(o),s&&h.push(s),u&&h.push(u))}function c(t,r,i){var a=266===i.kind?i:void 0,o=265===i.kind?i:void 0,s=a?a.sourceFiles:[o];k.initialize(t,r,i),a?(f=e.createMap(),_=!1,E.writeBundle(a,b)):(_=!0,E.writeFile(o,b)),b.writeLine();var c=k.getSourceMappingURL();c&&b.write("//# sourceMappingURL="+c),p.sourceMap&&!p.inlineSourceMap&&e.writeFile(n,y,r,k.getText(),!1,s),m&&m.push(k.getSourceMapData()),e.writeFile(n,y,t,b.getText(),p.emitBOM,s),k.reset(),b.reset(),d=void 0,f=void 0,_=!1}function u(e){d=e,k.setSourceFile(e)}function l(t,r){var n=!1,i=266===t.kind?t:void 0;if(!i||g!==e.ModuleKind.None){for(var a=i?i.sourceFiles.length:1,o=0;o "),y(e.type)}function $(e){Mr("new "),Er(e,e.typeParameters),Tr(e,e.parameters),Mr(" => "),y(e.type)}function ee(e){Mr("typeof "),y(e.exprName)}function te(e){Mr("{"),Ar(e,e.members,65),Mr("}")}function re(e){y(e.elementType),Mr("[]")}function ne(e){Mr("["),Ar(e,e.elementTypes,336),Mr("]")}function ie(e){Ar(e,e.types,260)}function ae(e){Ar(e,e.types,264)}function oe(e){Mr("("),y(e.type),Mr(")")}function se(){Mr("this")}function ce(e){jr(e.operator),Mr(" "),y(e.type)}function ue(e){y(e.objectType),Mr("["),y(e.indexType),Mr("]")}function le(e){Mr("{"),Or(),Ir(),Lr(e.readonlyToken,"readonly "),Mr("["),y(e.typeParameter.name),Mr(" in "),y(e.typeParameter.constraint),Mr("]"),Lr(e.questionToken,"?"),Mr(": "),y(e.type),Mr(";"),Or(),Fr(),Mr("}")}function de(e){b(e.literal)}function fe(e){var t=e.elements;0===t.length?Mr("{}"):(Mr("{"),Ar(e,t,432),Mr("}"))}function _e(e){0===e.elements.length?Mr("[]"):(Mr("["),Ar(e,e.elements,304),Mr("]"))}function pe(e){kr(e.propertyName,": "),Lr(e.dotDotDotToken,"..."),y(e.name),vr(" = ",e.initializer)}function ge(e){var t=e.elements;if(0===t.length)Mr("[]");else{Nr(e,t,4466|(e.multiLine?32768:0))}}function me(t){var r=t.properties;if(0===r.length)Mr("{}");else{var n=32768&e.getEmitFlags(t);n&&Ir();var i=t.multiLine?32768:0;Ar(t,r,978|(yn.languageVersion>=1?32:0)|i),n&&Fr()}}function he(t){var r=!1,n=!1;if(!(65536&e.getEmitFlags(t))){var i=t.expression.end,a=e.skipTrivia(yn.text,t.expression.end)+1,o={kind:23,pos:i,end:a};r=Xr(t,t.expression,o),n=Xr(t,o,t.name)}b(t.expression),qr(r),Mr(!r&&ye(t.expression)?"..":"."),qr(n),y(t.name),Ur(r,n)}function ye(r){if(r=e.skipPartiallyEmittedExpressions(r),e.isNumericLiteral(r)){var n=en(r);return!r.numericLiteralFlags&&n.indexOf(e.tokenToString(23))<0}if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)){var i=e.getConstantValue(r);return isFinite(i)&&Math.floor(i)===i&&t.removeComments}}function ve(e){b(e.expression),Mr("["),b(e.argumentExpression),Mr("]")}function be(e){b(e.expression),Cr(e,e.typeArguments),Nr(e,e.arguments,1296)}function ke(e){Mr("new "),b(e.expression),Cr(e,e.typeArguments),Nr(e,e.arguments,9488)}function xe(e){b(e.tag),Mr(" "),b(e.template)}function Se(e){Mr("<"),y(e.type),Mr(">"),b(e.expression)}function Ce(e){Mr("("),b(e.expression),Mr(")")}function Ee(e){mt(e)}function De(e){Sr(e,e.decorators),hr(e,e.modifiers),yt(e,Te)}function Te(e){Er(e,e.typeParameters),Tr(e,e.parameters),yr(": ",e.type),Mr(" =>")}function we(e){Mr("delete "),b(e.expression)}function Ae(e){Mr("typeof "),b(e.expression)}function Ne(e){Mr("void "),b(e.expression)}function Pe(e){Mr("await "),b(e.expression)}function Me(e){jr(e.operator),Oe(e)&&Mr(" "),b(e.operand)}function Oe(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Ie(e){b(e.operand),jr(e.operator)}function Fe(e){var t=26!==e.operatorToken.kind,r=Xr(e,e.left,e.operatorToken),n=Xr(e,e.operatorToken,e.right);b(e.left),qr(r,t?" ":void 0),jr(e.operatorToken.kind),qr(n," "),b(e.right),Ur(r,n)}function Re(e){var t=Xr(e,e.condition,e.questionToken),r=Xr(e,e.questionToken,e.whenTrue),n=Xr(e,e.whenTrue,e.colonToken),i=Xr(e,e.colonToken,e.whenFalse);b(e.condition),qr(t," "),Mr("?"),qr(r," "),b(e.whenTrue),Ur(t,r),qr(n," "),Mr(":"),qr(i," "),b(e.whenFalse),Ur(n,i)}function Le(e){y(e.head),Ar(e,e.templateSpans,131072)}function Be(e){Mr(e.asteriskToken?"yield*":"yield"),vr(" ",e.expression)}function je(e){Mr("..."),b(e.expression)}function ze(e){Et(e)}function Ke(e){b(e.expression),Cr(e,e.typeArguments)}function Je(e){b(e.expression),e.type&&(Mr(" as "),y(e.type))}function qe(e){b(e.expression),Mr("!")}function Ue(e){Br(e.keywordToken,e.pos),Mr("."),y(e.name)}function Ve(e){b(e.expression),y(e.literal)}function He(e){Yr(e)?(Br(17,e.pos,e),Mr(" "),Br(18,e.statements.end,e)):(Br(17,e.pos,e),We(e),Ir(),Kn(e.statements.end),Fr(),Br(18,e.statements.end,e))}function We(t){1&e.getEmitFlags(t)?Ar(t,t.statements,384):Ar(t,t.statements,65)}function Ge(e){hr(e,e.modifiers),y(e.declarationList),Mr(";")}function Xe(){Mr(";")}function Ye(e){b(e.expression),Mr(";")}function Qe(e){var t=Br(90,e.pos,e);Mr(" "),Br(19,t,e),b(e.expression),Br(20,e.expression.end,e),xr(e,e.thenStatement),e.elseStatement&&(zr(e),Br(82,e.thenStatement.end,e),211===e.elseStatement.kind?(Mr(" "),y(e.elseStatement)):xr(e,e.elseStatement))}function Ze(t){Mr("do"),xr(t,t.statement),e.isBlock(t.statement)?Mr(" "):zr(t),Mr("while ("),b(t.expression),Mr(");")}function $e(e){Mr("while ("),b(e.expression),Mr(")"),xr(e,e.statement)}function et(e){var t=Br(88,e.pos);Mr(" "),Br(19,t,e),nt(e.initializer),Mr(";"),vr(" ",e.condition),Mr(";"),vr(" ",e.incrementor),Mr(")"),xr(e,e.statement)}function tt(e){var t=Br(88,e.pos);Mr(" "),Br(19,t),nt(e.initializer),Mr(" in "),b(e.expression),Br(20,e.expression.end),xr(e,e.statement)}function rt(e){var t=Br(88,e.pos);Mr(" "),kr(e.awaitModifier," "),Br(19,t),nt(e.initializer),Mr(" of "),b(e.expression),Br(20,e.expression.end),xr(e,e.statement)}function nt(e){void 0!==e&&(227===e.kind?y(e):b(e))}function it(e){Br(77,e.pos),yr(" ",e.label),Mr(";")}function at(e){Br(72,e.pos),yr(" ",e.label),Mr(";")}function ot(e){Br(96,e.pos,e),vr(" ",e.expression),Mr(";")}function st(e){Mr("with ("),b(e.expression),Mr(")"),xr(e,e.statement)}function ct(e){var t=Br(98,e.pos);Mr(" "),Br(19,t),b(e.expression),Br(20,e.expression.end),Mr(" "),y(e.caseBlock)}function ut(e){y(e.label),Mr(": "),y(e.statement)}function lt(e){Mr("throw"),vr(" ",e.expression),Mr(";")}function dt(e){Mr("try "),y(e.tryBlock),e.catchClause&&(zr(e),y(e.catchClause)),e.finallyBlock&&(zr(e),Mr("finally "),y(e.finallyBlock))}function ft(e){Br(78,e.pos),Mr(";")}function _t(e){y(e.name),yr(": ",e.type),vr(" = ",e.initializer)}function pt(t){Mr(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),Ar(t,t.declarations,272)}function gt(e){mt(e)}function mt(e){Sr(e,e.decorators),hr(e,e.modifiers),Mr(e.asteriskToken?"function* ":"function "),v(e.name),yt(e,vt)}function ht(e,t){kt(t)}function yt(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=32768&e.getEmitFlags(t);i&&Ir(),262144&e.getEmitFlags(t)?(r(t),Nn?Nn(3,n,ht):kt(n)):(tn(),r(t),Nn?Nn(3,n,ht):kt(n),rn()),i&&Fr()}else r(t),Mr(" "),b(n);else r(t),Mr(";")}function vt(e){Er(e,e.typeParameters),Dr(e,e.parameters),yr(": ",e.type)}function bt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,yn))return!1;if(Vr(t,t.statements,2)||Wr(t,t.statements,2))return!1;for(var r,n=0,i=t.statements;n0&&y(e.attributes),Mr("/>")}function Gt(e){Mr("<"),tr(e.tagName),Rr(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&y(e.attributes),Mr(">")}function Xt(e){Cn.writeLiteral($r(e,!0))}function Yt(e){Mr("")}function Qt(e){Ar(e,e.properties,131328)}function Zt(e){y(e.name),yr("=",e.initializer)}function $t(e){Mr("{..."),b(e.expression),Mr("}")}function er(e){e.expression&&(Mr("{"),e.dotDotDotToken&&Mr("..."),b(e.expression),Mr("}"))}function tr(e){71===e.kind?b(e):y(e)}function rr(e){Mr("case "),b(e.expression),Mr(":"),ir(e,e.statements)}function nr(e){Mr("default:"),ir(e,e.statements)}function ir(t,r){1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],yn))?(Mr(" "),y(r[0])):Ar(t,r,81985)}function ar(e){Mr(" "),jr(e.token),Mr(" "),Ar(e,e.types,272)}function or(e){var t=Br(74,e.pos);Mr(" "),Br(19,t),y(e.variableDeclaration),Br(20,e.variableDeclaration?e.variableDeclaration.end:t),Mr(" "),y(e.block)}function sr(t){y(t.name),Mr(": ");var r=t.initializer;if(zn&&0==(512&e.getEmitFlags(r))){var n=e.getCommentRange(r);zn(n.pos)}b(r)}function cr(e){y(e.name),e.objectAssignmentInitializer&&(Mr(" = "),b(e.objectAssignmentInitializer))}function ur(e){e.expression&&(Mr("..."),b(e.expression))}function lr(e){y(e.name),vr(" = ",e.initializer)}function dr(t){Or();var r=t.statements;if(jn){if(0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]))return void jn(t,r,fr)}fr(t)}function fr(t){var r=t.statements;tn(),N(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});Ar(t,r,1,-1===n?r.length:n),rn()}function _r(e){b(e.expression)}function pr(t,r,n){for(var i=0;i0)&&Or(),y(a),n&&n.set(a.expression.text,a.expression.text))}return t.length}function gr(t){if(e.isSourceFile(t))g(t),pr(t.statements);else for(var r=e.createMap(),n=0,i=t.sourceFiles;n=o.length||0===u;if(!(d&&16384&s)){if(7680&s&&Mr(i(s)),In&&In(o),d)1&s?Or():128&s&&Mr(" ");else{var f=0==(131072&s),_=f;Vr(r,o,s)?(Or(),_=!1):128&s&&Mr(" "),64&s&&Ir();for(var p=void 0,g=void 0,m=n(s),h=0;h"],e[4096]=["[","]"],e}();e.emitFiles=t,e.createPrinter=r;var c;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(c||(c={}));var u;!function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.Modifiers=256]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.TypeLiteralMembers=65]="TypeLiteralMembers",e[e.TupleTypeElements=336]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=432]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=304]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=978]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=256]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",e[e.JsxElementChildren=131072]="JsxElementChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26960]="TypeArguments",e[e.TypeParameters=26960]="TypeParameters",e[e.Parameters=1360]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters"}(u||(u={}))}(o||(o={}));var o;!function(e){function t(t,r,n){for(void 0===n&&(n="tsconfig.json");;){var i=e.combinePaths(t,n);if(r(i))return i;var a=e.getDirectoryPath(t);if(a===t)break;t=a}}function r(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function n(t,r,n){var i;return e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,r);if(a.pop(),!i)return void(i=a);for(var o=Math.min(i.length,a.length),s=0;se.getRootLength(t)&&!a(t)){o(e.getDirectoryPath(t)),e.sys.createDirectory(t)}}function s(t,r,n){l||(l=e.createMap());var i=e.sys.createHash(r),a=e.sys.getModifiedTime(t);if(a){var o=l.get(t);if(o&&o.byteOrderMark===n&&o.hash===i&&o.mtime.getTime()===a.getTime())return}e.sys.writeFile(t,r,n);var s=e.sys.getModifiedTime(t);l.set(t,{hash:i,byteOrderMark:n,mtime:s})}function c(r,n,i,a){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(r))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(r,n,i):e.sys.writeFile(r,n,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}function u(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var l,d=e.createMap(),f=e.getNewLineCharacter(t),_=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:i,getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},writeFile:c,getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:n,getNewLine:function(){return f},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+f)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:_}}function a(t,r,n){var i=t.getOptionsDiagnostics(n).concat(t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));return t.getCompilerOptions().declaration&&(i=i.concat(t.getDeclarationDiagnostics(r,n))),e.sortAndDeduplicateDiagnostics(i)}function o(t,r){for(var n="",i=0,a=t;i0||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var l=h().getEmitResolver(a.outFile||a.out?void 0:r);e.performance.mark("beforeEmit");var d=o?[]:e.getTransformers(a,s),f=e.emitFiles(l,g(n),r,o,d);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),f}function S(t){return C(e.toPath(t,xe,$))}function C(e){return we.get(e)}function E(t,r,n){if(t)return r(t,n);var i=[];return e.forEach(ie.getSourceFiles(),function(t){n&&n.throwIfCancellationRequested(),e.addRange(i,r(t,n))}),e.sortAndDeduplicateDiagnostics(i)}function D(e,t){return E(e,A,t)}function T(e,t){return E(e,P,t)}function w(e,t){var r=ie.getCompilerOptions();return!e||r.out||r.outFile?F(e,t):E(e,B,t)}function A(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=I(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function N(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(se=void 0,oe=void 0),t}}function P(e,t){return L(e,t,le,M)}function M(t,r){return N(function(){if(a.skipLibCheck&&t.isDeclarationFile||a.skipDefaultLibCheck&&t.hasNoDefaultLib)return d;var n=h();e.Debug.assert(!!t.bindDiagnostics);var i=t.bindDiagnostics,o=!e.isSourceFileJavaScript(t)||e.isCheckJsEnabledForFile(t,a),s=o?n.getDiagnostics(t,r):[],c=_e.getDiagnostics(t.fileName),u=ke.getDiagnostics(t.fileName),l=i.concat(s,c,u);return e.isSourceFileJavaScript(t)?e.filter(l,O):l})}function O(t){var r=t.file,n=t.start;if(r)for(var i=e.getLineStarts(r),a=e.computeLineAndCharacterOfPosition(i,n).line;a>0;){var o=r.text.slice(i[a-1],i[a]),s=f.exec(o);if(!s)return!0;if(s[3])return!1;a--}return!0}function I(t){return N(function(){function r(t){switch(u.kind){case 146:case 149:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 228:case 226:if(u.type===t)return void c.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 237:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 243:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 259:if(108===t.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 230:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 233:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 231:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 232:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 184:var i=t;return void c.push(s(i.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file))}var a=u;u=t,e.forEachChild(t,r,n),u=a}function n(t){switch(u.decorators!==t||a.experimentalDecorators||c.push(s(u,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),u.kind){case 229:case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 228:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 208:if(t===u.modifiers)return i(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var n=0,l=t;n0),l.path=r,o.useCaseSensitiveFileNames()){var d=Ae.get(r);d?W(t,d.fileName,i,s,c):Ae.set(r,l)}be=be||l.hasNoDefaultLib,a.noResolve||(X(l,n),Y(l)),ee(l),n?ue.unshift(l):ue.push(l)}return l}function X(t,n){e.forEach(t.referencedFiles,function(e){H(r(e.fileName,t.fileName),n,t,e.pos,e.end)})}function Y(t){for(var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),n=De(r,t.fileName),i=0;ipe,_=d&&!l(a,s)&&!a.noResolve&&o1})&&ke.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files))}if(!a.noEmit&&a.allowJs&&a.declaration&&ke.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration")),a.checkJs&&!a.allowJs&&ke.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),a.emitDecoratorMetadata&&!a.experimentalDecorators&&ke.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators")),a.jsxFactory?(a.reactNamespace&&ke.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory")),e.parseIsolatedEntityName(a.jsxFactory,l)||ke.add(e.createCompilerDiagnostic(e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,a.jsxFactory))):a.reactNamespace&&!e.isIdentifierText(a.reactNamespace,l)&&ke.add(e.createCompilerDiagnostic(e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,a.reactNamespace)),!a.noEmit&&!a.suppressOutputPathCheck){var v=g(),b=e.createFileMap(o.useCaseSensitiveFileNames()?void 0:function(e){return e.toLocaleLowerCase()});e.forEachEmittedFile(v,function(e){t(e.jsFilePath,b),t(e.declarationFilePath,b)})}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),ie}function l(t,r){function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return t.allowJs?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_allowJs_is_not_set}switch(r.extension){case e.Extension.Ts:case e.Extension.Dts:return;case e.Extension.Tsx:return n();case e.Extension.Jsx:return n()||i();case e.Extension.Js:return i()}}var d=[],f=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;e.findConfigFile=t,e.resolveTripleslashReference=r,e.computeCommonSourceDirectoryOfFilenames=n,e.createCompilerHost=i,e.getPreEmitDiagnostics=a,e.formatDiagnostics=o,e.flattenDiagnosticMessageText=s,e.createProgram=u,e.getResolutionDiagnostic=l}(o||(o={}));var o;!function(e){function t(e){if(e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable){return{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}}return e}function r(){if(N)return N;var t=e.createMap(),r=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)}),N={optionNameMap:t,shortOptionNames:r}}function n(t){var r=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return e.createCompilerDiagnostic(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,r)}function i(e,t,r){return v(e,k(t||""),r)}function a(t,r,n){if(void 0===r&&(r=""),r=k(r),!e.startsWith(r,"-")){if(""===r)return[];var a=r.split(",");switch(t.element.type){case"number":return e.map(a,parseInt);case"string":return e.map(a,function(e){return e||""});default:return e.filter(e.map(a,function(e){return i(t.element,e,n)}),function(e){return!!e})}}}function o(t,n){function o(t){for(var r=0;r=r.length)break;var s=a;if(34===r.charCodeAt(s)){for(a++;a32;)a++;i.push(r.substring(s,a))}}o(i)}var c={},u=[],l=[],d=r(),f=d.optionNameMap,_=d.shortOptionNames;return o(t),{options:c,fileNames:u,errors:l}}function s(t,r){var n="";try{n=r(t)}catch(r){return{error:e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}}return c(t,n)}function c(t,r,n){void 0===n&&(n=!0);try{var i=n?l(r):r;return{config:/\S/.test(i)?JSON.parse(i):{}}}catch(r){return{error:e.createCompilerDiagnostic(e.Diagnostics.Failed_to_parse_file_0_Colon_1,t,r.message)}}}function u(t,n,i){function a(e){return"string"===e.type||"number"===e.type||"boolean"===e.type?void 0:"list"===e.type?a(e.element):e.type}function o(t,r){return e.forEachEntry(r,function(e,r){if(e===t)return r})}function s(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":return t.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.arrayFrom(t.type.keys())[0]}}function c(e){return Array(e+1).join(" ")}var u=e.extend(t,e.defaultInitCompilerOptions),l={compilerOptions:function(t){var n={},i=r().optionNameMap;for(var s in t)if(e.hasProperty(t,s)){if(i.has(s)&&i.get(s).category===e.Diagnostics.Command_line_Options)continue;var c=t[s],u=i.get(s.toLowerCase());if(u){var l=a(u);if(l)if("list"===u.type){for(var d=[],f=0,_=c;f<_.length;f++){var p=_[f];d.push(o(p,l))}n[s]=d}else n[s]=o(c,l);else n[s]=c}}return n}(u)};return n&&n.length&&(l.files=n),function(){var t=e.reduceLeft(e.filter(e.optionDeclarations,function(t){return t.category!==e.Diagnostics.Command_line_Options&&t.category!==e.Diagnostics.Advanced_Options}),function(t,r){if(r.category){var n=e.getLocaleSpecificMessage(r.category);(t[n]||(t[n]=[])).push(r)}return t},{}),r=0,n=0,a=[],o=[],u=e.getOwnKeys(l.compilerOptions).length;for(var d in t){0!==a.length&&(a.push(""),o.push("")),a.push("/* "+d+" */"),o.push("");for(var f=0,_=t[d];f<_.length;f++){var p=_[f],g=void 0;g=e.hasProperty(l.compilerOptions,p.name)?'"'+p.name+'": '+JSON.stringify(l.compilerOptions[p.name])+((n+=1)===u?"":","):'// "'+p.name+'": '+JSON.stringify(s(p))+",",a.push(g),o.push("/* "+(p.description&&e.getLocaleSpecificMessage(p.description)||p.name)+" */"),r=Math.max(g.length,r)}}var m=c(2),h=[];h.push("{"),h.push(m+'"compilerOptions": {');for(var y=0;y=0)return{options:{},fileNames:[],typeAcquisition:{},raw:t,errors:[e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([_]).join(" -> "))],wildcardDirectories:{}};var p,h=g(t.compilerOptions,n,u,a),y=t.typeAcquisition||t.typingOptions,v=m(y,n,u,a);if(t.extends){var b=[void 0,void 0,void 0,{}],k=b[0],S=b[1],C=b[2],E=b[3];"string"==typeof t.extends?(N=function(i){if(!(e.isRootedDiskPath(i)||e.startsWith(e.normalizeSlashes(i),"./")||e.startsWith(e.normalizeSlashes(i),"../")))return void u.push(e.createCompilerDiagnostic(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,i));var a=e.toPath(i,n,l);if(!r.fileExists(a)&&!e.endsWith(a,".json")&&(a+=".json",!r.fileExists(a)))return void u.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_does_not_exist,i));var c=s(a,function(e){return r.readFile(e)});if(c.error)return void u.push(c.error);var f=e.getDirectoryPath(a),p=e.convertToRelativePath(f,n,l),g=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(p,t)},m=d(c.config,r,f,void 0,e.getBaseFileName(a),o.concat([_]));u.push.apply(u,m.errors);var h=e.map(["include","exclude","files"],function(r){if(!t[r]&&c.config[r])return e.map(c.config[r],g)});return[h[0],h[1],h[2],m.compileOnSave,m.options]}(t.extends)||[k,S,C,p,E],k=N[0],S=N[1],C=N[2],p=N[3],E=N[4]):u.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")),k&&!t.include&&(t.include=k),S&&!t.exclude&&(t.exclude=S),C&&!t.files&&(t.files=C),h=e.assign({},E,h)}h=e.extend(i,h),h.configFilePath=a;var D=function(i){var s;e.hasProperty(t,"files")&&(e.isArray(t.files)?(s=t.files,0===s.length&&i.push(e.createCompilerDiagnostic(e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json"))):i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array")));var u;e.hasProperty(t,"include")&&(e.isArray(t.include)?u=t.include:i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array")));var l;if(e.hasProperty(t,"exclude"))e.isArray(t.exclude)?l=t.exclude:i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array"));else if(e.hasProperty(t,"excludes"))i.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));else{l=u?[]:["node_modules","bower_components","jspm_packages"];var d=t.compilerOptions&&t.compilerOptions.outDir;d&&l.push(d)}void 0===s&&void 0===u&&(u=["**/*"]);var f=x(s,u,l,n,h,r,i,c);return 0!==f.fileNames.length||e.hasProperty(t,"files")||0!==o.length||i.push(e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,a||"tsconfig.json",JSON.stringify(u||[]),JSON.stringify(l||[]))),f}(u),T=D.fileNames,w=D.wildcardDirectories,A=f(t,n,u);return p&&void 0===t[e.compileOnSaveCommandLineOption.name]&&(A=p),{options:h,fileNames:T,typeAcquisition:v,raw:t,errors:u,wildcardDirectories:w,compileOnSave:A};var N}function f(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=y(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return!("boolean"!=typeof i||!i)&&i}function _(e,t,r){var n=[];return{options:g(e,t,n,r),errors:n}}function p(e,t,r){var n=[];return{options:m(e,t,n,r),errors:n}}function g(t,r,n,i){var a="jsconfig.json"===e.getBaseFileName(i)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{};return h(e.optionDeclarations,t,r,a,e.Diagnostics.Unknown_compiler_option_0,n),a}function m(r,n,i,a){var o={enable:"jsconfig.json"===e.getBaseFileName(a),include:[],exclude:[]},s=t(r);return h(e.typeAcquisitionDeclarations,s,n,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function h(t,r,n,i,a,o){if(r){var s=e.arrayToMap(t,function(e){return e.name});for(var c in r){var u=s.get(c);u?i[u.name]=y(u,r[c],n,o):o.push(e.createCompilerDiagnostic(a,c))}}}function y(t,r,n,i){var a=t.type,o="string"==typeof a?a:"string";return"list"===a&&e.isArray(r)?b(t,r,n,i):typeof r===o?"string"!=typeof a?v(t,r,i):(t.isFilePath&&""===(r=e.normalizePath(e.combinePaths(n,r)))&&(r="."),r):void i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,o))}function v(e,t,r){var i=t.toLowerCase(),a=e.type.get(i);if(void 0!==a)return a;r.push(n(e))}function b(t,r,n,i){return e.filter(e.map(r,function(e){return y(t.element,e,n,i)}),function(e){return!!e})}function k(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function x(t,r,n,i,a,o,s,c){i=e.normalizePath(i);var u=o.useCaseSensitiveFileNames?w:A,l=e.createMap(),d=e.createMap();r&&(r=S(r,s,!1)),n&&(n=S(n,s,!0));var f=C(r,n,i,o.useCaseSensitiveFileNames),_=e.getSupportedExtensions(a,c);if(t)for(var p=0,g=t;p0)for(var y=0,v=o.readDirectory(i,_,n,r);y=r.end}function N(e,t,r){return e.pos<=t&&e.end>=r}function P(e,t,r){return M(e.pos,e.end,t,r)}function M(e,t,r,n){return Math.max(e,r)t||!I(e,r)}function I(t,r){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 229:case 230:case 232:case 178:case 174:case 163:case 207:case 234:case 235:case 241:case 245:return F(t,18,r);case 260:return I(t.block,r);case 182:if(!t.arguments)return!0;case 181:case 185:case 168:return F(t,20,r);case 160:case 161:return I(t.type,r);case 152:case 153:case 154:case 228:case 186:case 151:case 150:case 156:case 155:case 187:return t.body?I(t.body,r):t.type?I(t.type,r):L(t,20,r);case 233:return t.body&&I(t.body,r);case 211:return t.elseStatement?I(t.elseStatement,r):I(t.thenStatement,r);case 210:return I(t.expression,r)||L(t,25);case 177:case 175:case 180:case 144:case 165:return F(t,22,r);case 157:return t.type?I(t.type,r):L(t,22,r);case 257:case 258:return!1;case 214:case 215:case 216:case 213:return I(t.statement,r);case 212:return B(t,106,r)?F(t,20,r):I(t.statement,r);case 162:return I(t.exprName,r);case 189:case 188:case 190:case 197:case 198:return I(t.expression,r);case 183:return I(t.template,r);case 196:return I(e.lastOrUndefined(t.templateSpans),r);case 205:return e.nodeIsPresent(t.literal);case 244:case 238:return e.nodeIsPresent(t.moduleSpecifier);case 192:return I(t.operand,r);case 194:return I(t.right,r);case 195:return I(t.whenFalse,r);default:return!0}}function F(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.lastOrUndefined(i);if(a.kind===r)return!0;if(25===a.kind&&1!==i.length)return i[i.length-2].kind===r}return!1}function R(t){var r=j(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOf(n,t),list:r}}}function L(e,t,r){return!!B(e,t,r)}function B(t,r,n){return e.forEach(t.getChildren(n),function(e){return e.kind===r&&e})}function j(t){var r=e.forEach(t.parent.getChildren(),function(e){if(294===e.kind&&e.pos<=t.pos&&e.end>=t.end)return e});return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function z(e,t,r){return void 0===r&&(r=!1),J(e,t,function(e){return ie(e.kind)},r)}function K(e,t,r){return void 0===r&&(r=!1),J(e,t,function(e){return ae(e.kind)},r)}function J(e,t,r,n){return void 0===n&&(n=!1),U(e,t,!1,r,n)}function q(e,t,r){return void 0===r&&(r=!1),U(e,t,!0,void 0,r)}function U(t,r,n,i,a){void 0===a&&(a=!1);var o=t;e:for(;;){if(e.isToken(o))return o;if(a)for(var s=e.filter(o.getChildren(),e.isJSDocNode),c=0,u=s;cn.getStart(t)&&rt.end||s.pos===t.end)&&te(s))return n(s)}}return n(r)}function W(t,r,n){function i(t){if(e.isToken(t))return t;var r=t.getChildren(),n=o(r,r.length);return n&&i(n)}function a(s){if(e.isToken(s))return s;for(var c=s.getChildren(),u=0;u=t||10===l.kind&&d===l.end){var f=o(c,u);return f&&i(f)}return a(l)}}if(e.Debug.assert(void 0!==n||265===s.kind),c.length){var f=o(c,c.length);return f&&i(f)}}function o(e,t){for(var r=t-1;r>=0;r--)if(te(e[r]))return e[r]}return a(n||r)}function G(e,t){var r=W(t,e);if(r&&9===r.kind){var n=r.getStart(),i=r.getEnd();if(nn.getStart(t)}function Z(t,r,n){var i=q(t,r);if(i&&r<=i.getStart(t)){var a=e.getLeadingCommentRanges(t.text,i.pos);return n?e.forEach(a,function(e){return e.pos=e.pos+3&&"/"===r[e.pos]&&"*"===r[e.pos+1]&&"*"===r[e.pos+2]}var i=q(t,r),a=e.getLeadingCommentRanges(t.text,i.pos);return e.forEach(a,n)}function ee(t,r){var n=e.getTokenAtPosition(t,r);if(e.isToken(n))switch(n.kind){case 104:case 110:case 76:n=void 0===n.parent?void 0:n.parent.parent;break;default:n=n.parent}if(n&&n.jsDoc)for(var i=0,a=n.jsDoc;i0?n.join(","):e.ScriptElementKindModifier.none}function ne(t){return 159===t.kind||181===t.kind?t.typeArguments:e.isFunctionLike(t)||229===t.kind||230===t.kind?t.typeParameters:void 0}function ie(t){return 71===t||e.isKeyword(t)}function ae(e){return 9===e||8===e||ie(e)}function oe(e){return 2===e||3===e}function se(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function ce(e){return 17<=e&&e<=70}function ue(t,r){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&146===e.declarations[0].kind}function r(r,i){return n(r,function(r){var n=r.flags;return 3&n?t(r)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&n?e.SymbolDisplayPartKind.propertyName:32768&n?e.SymbolDisplayPartKind.propertyName:65536&n?e.SymbolDisplayPartKind.propertyName:8&n?e.SymbolDisplayPartKind.enumMemberName:16&n?e.SymbolDisplayPartKind.functionName:32&n?e.SymbolDisplayPartKind.className:64&n?e.SymbolDisplayPartKind.interfaceName:384&n?e.SymbolDisplayPartKind.enumName:1536&n?e.SymbolDisplayPartKind.moduleName:8192&n?e.SymbolDisplayPartKind.methodName:262144&n?e.SymbolDisplayPartKind.typeParameterName:524288&n?e.SymbolDisplayPartKind.aliasName:8388608&n?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(i))}function n(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function i(){return n(" ",e.SymbolDisplayPartKind.space)}function a(t){return n(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return n(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function s(t){return n(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function c(t){var r=e.stringToToken(t);return void 0===r?u(t):a(r)}function u(t){return n(t,e.SymbolDisplayPartKind.text)}function l(e){return e.getNewLine?e.getNewLine():D}function d(){return n("\n",e.SymbolDisplayPartKind.lineBreak)}function f(e){e(E);var t=E.displayParts();return E.clear(),t}function _(e,t,r,n){return f(function(i){e.getSymbolDisplayBuilder().buildTypeDisplay(t,i,r,n)})}function p(e,t,r,n,i){return f(function(a){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,a,r,n,i)})}function g(e,t,r,n){return f(function(i){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,i,r,n)})}function m(t,r,n){if(h(n)||e.isStringOrNumericLiteral(n)&&144===n.parent.kind)return n.text;var i=e.getLocalSymbolForExportDefault(r);return t.symbolToString(i||r)}function h(e){return e.parent&&(242===e.parent.kind||246===e.parent.kind)&&e.parent.propertyName===e}function y(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(34===e.charCodeAt(0)||39===e.charCodeAt(0))?e.substring(1,t-1):e}function v(t,r){for(var n=[],i=2;i=0){var d=c-o;d>0&&i.push({length:d,classification:e.TokenClass.Whitespace})}i.push({length:u,classification:n(l)}),o=c+u}var f=r.length-o;return f>0&&i.push({length:f,classification:e.TokenClass.Whitespace}),{entries:i,finalLexState:t.endOfLineState}}function n(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:default:return e.TokenClass.Identifier}}function i(e,t,n){return r(a(e,t,n),e)}function a(r,n,i){function a(e,t,r){if(8!==r){0===e&&o>0&&(e+=o),e-=o,t-=o;var n=t-e;n>0&&(p.spans.push(e),p.spans.push(n),p.spans.push(r))}}for(var o=0,s=0,_=0;f.length>0;)f.pop();switch(n){case 3:r='"\\\n'+r,o=3;break;case 2:r="'\\\n"+r,o=3;break;case 1:r="/*\n"+r,o=3;break;case 4:r="`\n"+r,o=2;break;case 5:r="}\n"+r,o=2;case 6:f.push(14)}l.setText(r);var p={endOfLineState:0,spans:[]},g=0;do{if(s=l.scan(),!e.isTrivia(s)){if(41!==s&&63!==s||d[_]){if(23===_&&c(s))s=71;else if(c(_)&&c(s)&&!t(_,s))s=71;else if(71===_&&27===s)g++;else if(29===s&&g>0)g--;else if(119===s||136===s||133===s||122===s||137===s)g>0&&!i&&(s=71);else if(14===s)f.push(s);else if(17===s)f.length>0&&f.push(s);else if(18===s&&f.length>0){var m=e.lastOrUndefined(f);14===m?(s=l.reScanTemplateToken(),16===s?f.pop():e.Debug.assert(15===s,"Should have been a template middle. Was "+s)):(e.Debug.assert(17===m,"Should have been an open brace. Was: "+s),f.pop())}}else 12===l.reScanSlashToken()&&(s=12);_=s}!function(){var t=l.getTokenPos(),n=l.getTextPos();if(a(t,n,u(s)),n>=r.length)if(9===s){var i=l.getTokenText();if(l.isUnterminated()){for(var o=i.length-1,c=0;92===i.charCodeAt(o-c);)c++;if(1&c){var d=i.charCodeAt(0);p.endOfLineState=34===d?3:2}}}else 3===s?l.isUnterminated()&&(p.endOfLineState=1):e.isTemplateLiteralKind(s)?l.isUnterminated()&&(16===s?p.endOfLineState=5:13===s?p.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+s)):f.length>0&&14===e.lastOrUndefined(f)&&(p.endOfLineState=6)}()}while(1!==s);return p}function o(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}function s(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function c(e){return e>=72&&e<=142}function u(t){if(c(t))return 3;if(o(t)||s(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}var l=e.createScanner(5,!1),d=[];d[71]=!0,d[9]=!0,d[8]=!0,d[12]=!0,d[99]=!0,d[43]=!0,d[44]=!0,d[20]=!0,d[22]=!0,d[18]=!0,d[101]=!0,d[86]=!0;var f=[];return{getClassificationsForLine:i,getEncodedLexicalClassifications:a}}function r(e,t,r,n,a){return o(i(e,t,r,n,a))}function n(e,t){switch(t){case 233:case 229:case 230:case 228:e.throwIfCancellationRequested()}}function i(t,r,i,a,o){function s(e,t,r){l.push(e),l.push(t),l.push(r)}function c(t,r){var n=t.getFlags();if(0!=(788448&n)){if(32&n)return 11;if(384&n)return 12;if(524288&n)return 16;if(2&r){if(64&n)return 13;if(262144&n)return 15}else if(1536&n&&(4&r||1&r&&function(t){return e.forEach(t.declarations,function(t){return 233===t.kind&&1===e.getModuleInstanceState(t)})}(t)))return 14}}function u(i){if(i&&e.textSpanIntersectsWith(o,i.getFullStart(),i.getFullWidth())){var l=i.kind;if(n(r,l),71===l&&!e.nodeIsMissing(i)){var d=i;if(a.get(d.text)){var f=t.getSymbolAtLocation(i);if(f){var _=c(f,e.getMeaningFromLocation(i));_&&s(i.getStart(),i.getWidth(),_)}}}e.forEachChild(i,u)}}var l=[];return u(i),{spans:l,endOfLineState:0}}function a(t){switch(t){case 1:return e.ClassificationTypeNames.comment;case 2:return e.ClassificationTypeNames.identifier;case 3:return e.ClassificationTypeNames.keyword;case 4:return e.ClassificationTypeNames.numericLiteral;case 5:return e.ClassificationTypeNames.operator;case 6:return e.ClassificationTypeNames.stringLiteral;case 8:return e.ClassificationTypeNames.whiteSpace;case 9:return e.ClassificationTypeNames.text;case 10:return e.ClassificationTypeNames.punctuation;case 11:return e.ClassificationTypeNames.className;case 12:return e.ClassificationTypeNames.enumName;case 13:return e.ClassificationTypeNames.interfaceName;case 14:return e.ClassificationTypeNames.moduleName;case 15:return e.ClassificationTypeNames.typeParameterName;case 16:return e.ClassificationTypeNames.typeAliasName;case 17:return e.ClassificationTypeNames.parameterName;case 18:return e.ClassificationTypeNames.docCommentTagName;case 19:return e.ClassificationTypeNames.jsxOpenTagName;case 20:return e.ClassificationTypeNames.jsxCloseTagName;case 21:return e.ClassificationTypeNames.jsxSelfClosingTagName;case 22:return e.ClassificationTypeNames.jsxAttribute;case 23:return e.ClassificationTypeNames.jsxText;case 24:return e.ClassificationTypeNames.jsxAttributeStringLiteralValue}}function o(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i=0),i>0){var s=r||g(t.kind,t);s&&a(n,i,s)}return!0}function p(e){switch(e.parent&&e.parent.kind){case 251:if(e.parent.tagName===e)return 19;break;case 252:if(e.parent.tagName===e)return 20;break;case 250:if(e.parent.tagName===e)return 21;break;case 253:if(e.parent.name===e)return 22}}function g(t,r){if(e.isKeyword(t))return 3;if((27===t||29===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){if(58===t&&(226===r.parent.kind||149===r.parent.kind||146===r.parent.kind||253===r.parent.kind))return 5;if(194===r.parent.kind||192===r.parent.kind||193===r.parent.kind||195===r.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===r.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(r)switch(r.parent.kind){case 229:if(r.parent.name===r)return 11;return;case 145:if(r.parent.name===r)return 15;return;case 230:if(r.parent.name===r)return 13;return;case 232:if(r.parent.name===r)return 12;return;case 233:if(r.parent.name===r)return 14;return;case 146:if(r.parent.name===r)return e.isThisIdentifier(r)?3:17;return}return 2}}function m(i){if(i&&e.decodedTextSpanIntersectsWith(h,y,i.pos,i.getFullWidth())){n(t,i.kind);for(var a=0,o=i.getChildren(r);a=e.pos&&r<=e.end&&e});if(c){var u={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},d=t.text.substr(c.pos,r-c.pos),f=C.exec(d);if(f){var _=f[1],p=f[2],m=f[3],h=e.getDirectoryPath(t.path);if("path"===p){var y=g(m,c.pos+_.length);u.entries=a(m,h,e.getSupportedExtensions(n),!0,y,i,t.path)}else{var v={start:c.pos+_.length,length:f[0].length-_.length};u.entries=l(i,n,h,v)}}return u}}}}function l(t,r,n,i,a){if(void 0===a&&(a=[]),r.types)for(var o=0,s=r.types;o=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}function h(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function y(e,t){return S(e,e.getDirectories,t)}function v(e,t,r,n,i){return S(e,e.readDirectory,t,r,n,i)}function b(e,t){return S(e,e.readFile,t)}function k(e,t){return S(e,e.fileExists,t)}function x(t,r){try{return e.directoryProbablyExists(r,t)}catch(e){}}function S(e,t){for(var r=[],n=2;n0&&(V=b(s,i)),!0}function f(r){var n=241===r.kind?238:244,i=e.getAncestor(r,n),a=i.moduleSpecifier;if(!a)return!1;K=!0,J=!1;var o=t.getSymbolAtLocation(a);if(!o)return V=e.emptyArray,!0;var s=t.getExportsAndPropertiesOfModule(o);return V=v(s,r.elements),!0}function _(e){if(e)switch(e.kind){case 17:case 26:var t=e.parent;if(t&&(178===t.kind||174===t.kind))return t}}function p(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function g(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 179:case 254:case 253:case 255:if(t&&(250===t.kind||251===t.kind))return t;if(253===t.kind)return t.parent.parent;break;case 9:if(t&&(253===t.kind||255===t.kind))return t.parent.parent;break;case 18:if(t&&256===t.kind&&t.parent&&253===t.parent.kind)return t.parent.parent.parent;if(t&&255===t.kind)return t.parent.parent}}}function m(t){if(!e.isFunctionLikeKind(t))return!1;switch(t){case 152:case 161:case 160:return!1;default:return!0}}function h(e){var t=e.parent.kind;switch(e.kind){case 26:return 226===t||227===t||208===t||232===t||m(t)||229===t||199===t||230===t||175===t||231===t;case 23:return 175===t;case 56:return 176===t;case 21:return 175===t;case 19:return 260===t||m(t);case 17:return 232===t||230===t||163===t;case 25:return 148===t&&e.parent&&e.parent.parent&&(230===e.parent.parent.kind||163===e.parent.parent.kind);case 27:return 229===t||199===t||230===t||231===t||m(t);case 115:return 149===t;case 24:return 146===t||e.parent&&e.parent.parent&&175===e.parent.parent.kind;case 114:case 112:case 113:return 146===t;case 118:return 242===t||246===t||240===t;case 75:case 83:case 109:case 89:case 104:case 125:case 135:case 91:case 110:case 76:case 116:case 138:return!0}switch(e.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return!1}function y(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function v(t,r){for(var n=e.createMap(),a=0,o=r;a=0&&!m(r,n[i],106);i--);var a=f(t.statement);return e.forEach(a,function(e){_(t,e)&&m(r,e.getFirstToken(),72,77)}),r}function b(e){var t=p(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return v(t);case 221:return k(t)}}function k(t){var r=[];return m(r,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(n){m(r,n.getFirstToken(),73,79);var i=f(n);e.forEach(i,function(e){_(t,e)&&m(r,e.getFirstToken(),72)})}),r}function x(t,r){var n=[];if(m(n,t.getFirstToken(),102),t.catchClause&&m(n,t.catchClause.getFirstToken(),74),t.finallyBlock){m(n,e.findChildOfKind(t,87,r),87)}return n}function S(t){var r=d(t);if(r){var n=[];return e.forEach(l(r),function(e){m(n,e.getFirstToken(),100)}),e.isFunctionBlock(r)&&e.forEachReturnStatement(r,function(e){m(n,e.getFirstToken(),96)}),n}}function C(t){var r=e.getContainingFunction(t);if(r&&s(r.body,207)){var n=[];return e.forEachReturnStatement(r.body,function(e){m(n,e.getFirstToken(),96)}),e.forEach(l(r.body),function(e){m(n,e.getFirstToken(),100)}),n}}function E(t,r){for(var i=[];s(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var a=t.getChildren();m(i,a[0],90);for(var o=a.length-1;o>=0&&!m(i,a[o],82);o--);if(!s(t.elseStatement,211))break;t=t.elseStatement}for(var c=[],o=0;o=u.end;f--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(f))){d=!1;break}if(d){c.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:e.HighlightSpanKind.reference}),o++;continue}}c.push(n(i[o],r))}return c}function D(e,t){for(var r=e.parent;222===r.kind;r=r.parent)if(r.label.text===t)return!0;return!1}t.getDocumentHighlights=r}(e.DocumentHighlights||(e.DocumentHighlights={}))}(o||(o={}));var o;!function(e){function t(t,r){function n(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function i(t,r){var n=_.get(t);return!n&&r&&_.set(t,n=e.createFileMap()),n}function a(){var t=e.arrayFrom(_.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=_.get(e),r=[];return t.forEachValue(function(e,t){r.push({name:e,refCount:t.languageServiceRefCount,references:t.owners.slice(0)})}),r.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:r}});return JSON.stringify(t,void 0,2)}function o(t,i,a,o,c){return s(t,e.toPath(t,r,p),i,n(i),a,o,c)}function s(e,t,r,n,i,a,o){return l(e,t,r,n,i,a,!0,o)}function c(t,i,a,o,s){return u(t,e.toPath(t,r,p),i,n(i),a,o,s)}function u(e,t,r,n,i,a,o){return l(e,t,r,n,i,a,!1,o)}function l(t,r,n,a,o,s,c,u){var l=i(a,!0),d=l.get(r);if(d)d.sourceFile.version!==s&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,o,s,o.getChangeRange(d.sourceFile.scriptSnapshot)));else{e.Debug.assert(c,"How could we be trying to update a document that the registry doesn't have?");d={sourceFile:e.createLanguageServiceSourceFile(t,o,n.target,s,!1,u),languageServiceRefCount:0,owners:[]},l.set(r,d)}return c&&d.languageServiceRefCount++,d.sourceFile}function d(t,i){return f(e.toPath(t,r,p),n(i))}function f(t,r){var n=i(r,!1);e.Debug.assert(void 0!==n);var a=n.get(t);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&n.remove(t)}void 0===r&&(r="");var _=e.createMap(),p=e.createGetCanonicalFileName(!!t);return{acquireDocument:o,acquireDocumentWithKey:s,updateDocument:c,updateDocumentWithKey:u,releaseDocument:d,releaseDocumentWithKey:f,reportStats:a,getKeyForCompilationSettings:n}}e.createDocumentRegistry=t}(o||(o={}));var o;!function(e){!function(t){function r(e,t,r){var a=o(e,t,r);return function(o,c,u){var l=n(e,a,c,t,r),d=l.directImports,f=l.indirectUsers;return s({indirectUsers:f},i(d,o,c.exportKind,t,u))}}function n(t,r,n,i,o){function s(t){var r=d(t);if(r)for(var n=0,a=r;n=0&&!(u>i);){var l=u+c;0!==u&&e.isIdentifierPart(o.charCodeAt(u-1),5)||l!==s&&e.isIdentifierPart(o.charCodeAt(l),5)||a.push(u),u=o.indexOf(r,u+c+1)}return a}function h(r,n){for(var i=[],a=r.getSourceFile(),o=n.text,s=m(a,o,r.getStart(),r.getEnd()),c=0,u=s;c0);for(var r=0,n=t;r0);for(var r=e.PatternMatchKind.camelCase,n=0,i=t;n0)return n}switch(t.kind){case 265:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 187:case 228:case 186:case 229:case 199:return 512&e.getModifierFlags(t)?"default":N(t);case 152:return"constructor";case 156:return"new()";case 155:return"()";case 157:return"[]";case 290:return b(t);default:return""}}function b(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&208===t.kind&&t.declarationList.declarations.length>0){var r=t.declarationList.declarations[0].name;if(71===r.kind)return r.text}return""}function k(t){function r(e){if(n(e)&&(i.push(e),e.children))for(var t=0,a=e.children;t0?e.declarationNameToString(t.name):226===t.parent.kind?e.declarationNameToString(t.parent.name):194===t.parent.kind&&58===t.parent.operatorToken.kind?a(t.parent.left).replace(F,""):261===t.parent.kind&&t.parent.name?a(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function P(e){return 186===e.kind||187===e.kind||199===e.kind}var M,O,I,F=/\s+/g,R=[],L=[];t.getNavigationBarItems=r,t.getNavigationTree=n}(e.NavigationBar||(e.NavigationBar={}))}(o||(o={}));var o;!function(e){!function(t){function r(t,r){function n(r,n,i,a){if(r&&n&&i){var o={textSpan:e.createTextSpanFromBounds(n.pos,i.end),hintSpan:e.createTextSpanFromNode(r,t),bannerText:l,autoCollapse:a};u.push(o)}}function i(t,r){if(t){var n={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:l,autoCollapse:r};u.push(n)}}function a(n){var a=e.getLeadingCommentRangesOfNode(n,t);if(a){for(var s=-1,c=-1,u=!0,l=0,d=0,f=a;d1){i({kind:2,pos:t,end:r},!1)}}function s(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function c(i){if(r.throwIfCancellationRequested(),!(d>f)){switch(e.isDeclaration(i)&&a(i),i.kind){case 207:if(!e.isFunctionBlock(i)){var o=i.parent,_=e.findChildOfKind(i,17,t),p=e.findChildOfKind(i,18,t);if(212===o.kind||215===o.kind||216===o.kind||214===o.kind||211===o.kind||213===o.kind||220===o.kind||260===o.kind){n(o,_,p,s(i));break}if(224===o.kind){var g=o;if(g.tryBlock===i){n(o,_,p,s(i));break}if(g.finallyBlock===i){var m=e.findChildOfKind(g,87,t);if(m){n(m,_,p,s(i));break}}}var h=e.createTextSpanFromNode(i);u.push({textSpan:h,hintSpan:h,bannerText:l,autoCollapse:s(i)});break}case 234:var _=e.findChildOfKind(i,17,t),p=e.findChildOfKind(i,18,t);n(i.parent,_,p,s(i));break;case 229:case 230:case 232:case 178:case 235:var _=e.findChildOfKind(i,17,t),p=e.findChildOfKind(i,18,t);n(i,_,p,s(i));break;case 177:n(i,e.findChildOfKind(i,21,t),e.findChildOfKind(i,22,t),s(i))}d++,e.forEachChild(i,c),d--}}var u=[],l="...",d=0,f=20;return c(t),u}t.collectElements=r}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(o||(o={}));var o;!function(e){function t(e,t,r,n){return{kind:e,punctuationStripped:t,isCaseSensitive:r,camelCaseWeight:n}}function r(r){function o(e){return b||!e}function c(t){if(!o(t))return p(t,e.lastOrUndefined(v))}function l(t,r){if(!o(r)){var n=p(r,e.lastOrUndefined(v));if(n&&(t=t||[],!(v.length-1>t.length))){for(var i=n,a=v.length-2,s=t.length-1;a>=0;a-=1,s-=1){var c=v[a],u=t[s],l=p(u,c);if(!l)return;e.addRange(i,l)}return i}}}function d(e){var t=y.get(e);return t||y.set(e,t=g(e)),t}function f(r,n,i){var o=s(r,n.textLowerCase);if(0===o)return n.text.length===r.length?t(k.exact,i,r===n.text):t(k.prefix,i,e.startsWith(r,n.text));var c=n.isLowerCase;if(c){if(o>0)for(var u=d(r),l=0,f=u;l0)return t(k.substring,i,!0);if(!c&&n.characterSpans.length>0){var p=d(r),g=h(r,p,n,!1);if(void 0!==g)return t(k.camelCase,i,!0,g);if(void 0!==(g=h(r,p,n,!0)))return t(k.camelCase,i,!1,g)}return c&&n.text.length0&&a(r.charCodeAt(o))?t(k.substring,i,!1):void 0}function _(e){for(var t=0;tt.length)return!1;if(n)for(var s=0;s1}}function n(e){return{totalTextChunk:_(e),subWordTextChunks:f(e)}}function i(e){return 0===e.subWordTextChunks.length}function a(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function s(e,t){for(var r=e.length-t.length,n=0;n<=r;n++)if(c(e,t,n))return n;return-1}function c(e,t,r){for(var n=0;n=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function l(e){return e>=48&&e<=57}function d(e){return a(e)||o(e)||l(e)||95===e||36===e}function f(e){for(var t=[],r=0,n=0,i=0;i0&&(t.push(_(e.substr(r,n))),n=0)}return n>0&&t.push(_(e.substr(r,n))),t}function _(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:p(e)}}function p(e){return m(e,!1)}function g(e){return m(e,!0)}function m(t,r){for(var n=[],i=0,a=1;a0){if(e.some(c,o))return a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(71===t.kind&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.stripQuotes(e.getDeclaredName(r,s,t)),l=e.SymbolDisplay.getSymbolKind(r,s,t);return l?i(u,r.getFullyQualifiedName(s),l,e.SymbolDisplay.getSymbolModifiers(s),t,n):void 0}}else if(9===t.kind){if(o(t))return a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);var u=e.stripQuotes(t.text);return i(u,u,e.ScriptElementKind.variableElement,e.ScriptElementKindModifier.none,t,n)}}function i(e,t,r,n,i,a){return{canRename:!0,kind:r,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:n,triggerSpan:o(i,a)}}function a(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function o(t,r){var n=t.getStart(r),i=t.getWidth(r);return 9===t.kind&&(n+=1,i-=2),e.createTextSpan(n,i)}function s(t){return 71===t.kind||9===t.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||e.isThis(t)}t.getRenameInfo=r}(e.Rename||(e.Rename={}))}(o||(o={}));var o;!function(e){!function(t){function r(t,r,i,a){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(r,i);if(s){var c=d(s,i,r);if(a.throwIfCancellationRequested(),c){var u=c.invocation,l=[],f=o.getResolvedSignature(u,l);if(a.throwIfCancellationRequested(),l.length)return p(l,f,c,o);if(e.isSourceFileJavaScript(r))return n(c,t)}}}function n(e,t){if(181===e.invocation.kind){var r=e.invocation,n=r.expression,i=71===n.kind?n:179===n.kind?n.name:void 0;if(i&&i.text)for(var a=t.getTypeChecker(),o=0,s=t.getSourceFiles();o0&&26===e.lastOrUndefined(r).kind&&n++,n}function s(t,r,n){return e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(r.kind)?e.isInsideTemplateLiteral(r,n)?0:t+2:t+1}function c(t,r,n){var i=13===t.template.kind?1:t.template.templateSpans.length+1;return e.Debug.assert(0===r||ra.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=i(a,r,n);if(o)return o}}function f(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 _(e,t){for(var r=-1,n=-1,i=0;i=t)return i;a.parameters.length>n&&(n=a.parameters.length,r=i)}return r}function p(t,r,n,i){function a(t){var r=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:r,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function o(t){var r=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:g,displayParts:r,isOptional:!1}}var s=n.argumentsSpan,c=0===n.kind,u=n.invocation,l=e.getInvokedExpression(u),d=i.getSymbolAtLocation(l),f=d&&e.symbolToDisplayParts(i,d,void 0,void 0),p=e.map(t,function(t){var r,n=[],s=[];f&&e.addRange(n,f);var l;if(c){l=!1,n.push(e.punctuationPart(27));var d=t.typeParameters;r=d&&d.length>0?e.map(d,o):g,s.push(e.punctuationPart(29));var _=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,_)}else{l=t.hasRestParameter;var p=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(n,p),n.push(e.punctuationPart(19));var m=t.parameters;r=m.length>0?e.map(m,a):g,s.push(e.punctuationPart(20))}var h=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,h),{isVariadic:l,prefixDisplayParts:n,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:r,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}}),m=n.argumentIndex,h=n.argumentCount,y=t.indexOf(r);return y<0&&(y=_(t,h)),e.Debug.assert(0===m||m0?e.getNodeModifiers(t.declarations[0]):e.ScriptElementKindModifier.none}function a(t,i,a,o,s,c){function u(){b.length&&b.push(e.lineBreakPart())}function l(){b.push(e.spacePart()),b.push(e.keywordPart(92)),b.push(e.spacePart())}function d(r,n){var i=e.symbolToDisplayParts(t,r,n||a,void 0,3);e.addRange(b,i)}function f(t,r){u(),r&&(_(r),b.push(e.spacePart()),d(t))}function _(t){switch(t){case e.ScriptElementKind.variableElement:case e.ScriptElementKind.functionElement:case e.ScriptElementKind.letElement:case e.ScriptElementKind.constElement:case e.ScriptElementKind.constructorImplementationElement:return void b.push(e.textOrKeywordPart(t));default:return b.push(e.punctuationPart(19)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(20))}}function p(r,n,i){e.addRange(b,e.signatureToDisplayParts(t,r,o,32|i)),n.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),b.push(e.displayPart((n.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===n.length?"overload":"overloads")),b.push(e.punctuationPart(20))),m=r.getDocumentationComment(),h=r.getJsDocTags()}function g(r,n){var i=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(r,e,n)});e.addRange(b,i)}void 0===c&&(c=e.getMeaningFromLocation(s));var m,h,y,v,b=[],k=i.flags,x=n(t,i,s),S=99===s.kind&&e.isExpression(s);if(x!==e.ScriptElementKind.unknown||32&k||8388608&k){x!==e.ScriptElementKind.memberGetAccessorElement&&x!==e.ScriptElementKind.memberSetAccessorElement||(x=e.ScriptElementKind.memberVariableElement);var C=void 0;if(v=S?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(i,s)){if(s.parent&&179===s.parent.kind){var E=s.parent.name;(E===s||E&&0===E.getFullWidth())&&(s=s.parent)}var D=void 0;if(181===s.kind||182===s.kind?D=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?D=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(i.valueDeclaration)&&(D=s.parent),D){var T=[];C=t.getResolvedSignature(D,T),!C&&T.length&&(C=T[0]);var w=182===D.kind||e.isCallExpression(D)&&97===D.expression.kind,A=w?v.getConstructSignatures():v.getCallSignatures();if(e.contains(A,C.target)||e.contains(A,C)||(C=A.length?A[0]:void 0),C){switch(w&&32&k?(x=e.ScriptElementKind.constructorImplementationElement,f(v.symbol,x)):8388608&k?(x=e.ScriptElementKind.alias,_(x),b.push(e.spacePart()),w&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),d(i)):f(i,x),x){case e.ScriptElementKind.jsxAttribute:case e.ScriptElementKind.memberVariableElement:case e.ScriptElementKind.variableElement:case e.ScriptElementKind.constElement:case e.ScriptElementKind.letElement:case e.ScriptElementKind.parameterElement:case e.ScriptElementKind.localVariableElement:b.push(e.punctuationPart(56)),b.push(e.spacePart()),w&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),32768&v.flags&&16&v.objectFlags||!v.symbol||e.addRange(b,e.symbolToDisplayParts(t,v.symbol,o,void 0,1)),p(C,A,8);break;default:p(C,A)}y=!0}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&i.flags)||123===s.kind&&152===s.parent.kind){var N=s.parent,A=152===N.kind?v.getNonNullableType().getConstructSignatures():v.getNonNullableType().getCallSignatures();C=t.isImplementationOfOverload(N)?A[0]:t.getSignatureFromDeclaration(N),152===N.kind?(x=e.ScriptElementKind.constructorImplementationElement,f(v.symbol,x)):f(155!==N.kind||2048&v.symbol.flags||4096&v.symbol.flags?i:v.symbol,x),p(C,A),y=!0}}}if(32&k&&!y&&!S&&(e.getDeclarationOfKind(i,199)?_(e.ScriptElementKind.localClassElement):b.push(e.keywordPart(75)),b.push(e.spacePart()),d(i),g(i,a)),64&k&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),d(i),g(i,a)),524288&k&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),d(i),g(i,a),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(i),o,512))),384&k&&(u(),e.forEach(i.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),d(i)),1536&k){u();var P=e.getDeclarationOfKind(i,233),M=P&&P.name&&71===P.name.kind;b.push(e.keywordPart(M?129:128)),b.push(e.spacePart()),d(i)}if(262144&k&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),d(i),i.parent)l(),d(i.parent,o),g(i.parent,o);else{var P=e.getDeclarationOfKind(i,145);if(e.Debug.assert(void 0!==P),P=P.parent)if(e.isFunctionLikeKind(P.kind)){l();var C=t.getSignatureFromDeclaration(P);156===P.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==P.kind&&P.name&&d(P.symbol),e.addRange(b,e.signatureToDisplayParts(t,C,a,32))}else 231===P.kind&&(l(),b.push(e.keywordPart(138)),b.push(e.spacePart()),d(P.symbol),g(P.symbol,a))}if(8&k){x=e.ScriptElementKind.enumMemberElement,f(i,"enum member");var P=i.declarations[0];if(264===P.kind){var O=t.getConstantValue(P);void 0!==O&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(O.toString(),e.SymbolDisplayPartKind.numericLiteral)))}}if(8388608&k&&(u(),236===i.declarations[0].kind?(b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(129))):b.push(e.keywordPart(91)),b.push(e.spacePart()),d(i),e.forEach(i.declarations,function(r){if(237===r.kind){var n=r;if(e.isExternalModuleImportEqualsDeclaration(n))b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.keywordPart(132)),b.push(e.punctuationPart(19)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(n)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var i=t.getSymbolAtLocation(n.moduleReference);i&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),d(i,o))}return!0}})),!y)if(x!==e.ScriptElementKind.unknown){if(v)if(S?(u(),b.push(e.keywordPart(99))):f(i,x),x===e.ScriptElementKind.memberVariableElement||x===e.ScriptElementKind.jsxAttribute||3&k||x===e.ScriptElementKind.localVariableElement||S)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),v.symbol&&262144&v.symbol.flags){var I=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(v,e,o)});e.addRange(b,I)}else e.addRange(b,e.typeToDisplayParts(t,v,o));else if(16&k||8192&k||16384&k||131072&k||98304&k||x===e.ScriptElementKind.memberFunctionElement){var A=v.getNonNullableType().getCallSignatures();p(A[0],A)}}else x=r(t,i,s);if(!m&&(m=i.getDocumentationComment(),h=i.getJsDocTags(),0===m.length&&4&i.flags&&i.parent&&e.forEach(i.parent.declarations,function(e){return 265===e.kind})))for(var F=0,R=i.declarations;F0))break}}return{displayParts:b,documentation:m,symbolKind:x,tags:h}}function o(t){return!t.parent&&e.forEach(t.declarations,function(t){if(186===t.kind)return!0;if(226!==t.kind&&228!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(265===r.kind||234===r.kind)return!1;return!0})}t.getSymbolKind=r,t.getSymbolModifiers=i,t.getSymbolDisplayPartsDocumentationAndSymbolKind=a}(e.SymbolDisplay||(e.SymbolDisplay={}))}(o||(o={}));var o;!function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=r.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);r.moduleName&&(s.moduleName=r.moduleName),r.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(r.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),d={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assert(void 0===u,"Unexpected multiple source map outputs for the file '"+t+"'"),u=r):(e.Debug.assert(void 0===c,"Unexpected multiple outputs for the file: '"+t+"'"),c=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},f=e.createProgram([o],a,d);return r.reportDiagnostics&&(e.addRange(i,f.getSyntacticDiagnostics(s)),e.addRange(i,f.getOptionsDiagnostics())),f.emit(),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}function r(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}function n(t,r){i=i||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.clone(t);for(var n=0,a=i;n>=5,r+=5;return t},t.prototype.IncreaseInsertionIndex=function(t){var r=this.rulesInsertionIndexBitmap>>t&31;r++,e.Debug.assert((31&r)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var n=this.rulesInsertionIndexBitmap&~(31<=0},t}();t.TokenRangeAccess=r;var n=function(){function e(e){this.tokens=e&&e.length?e:[]}return e.prototype.GetTokens=function(){return this.tokens},e.prototype.Contains=function(e){return this.tokens.indexOf(e)>=0},e}();t.TokenValuesAccess=n;var i=function(){function e(e){this.token=e}return e.prototype.GetTokens=function(){return[this.token]},e.prototype.Contains=function(e){return e===this.token},e}();t.TokenSingleValueAccess=i;var a=function(){function e(){}return e.prototype.GetTokens=function(){for(var e=[],t=0;t<=142;t++)e.push(t);return e},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e}();t.TokenAllAccess=a;var o=function(){function e(e){this.tokenAccess=e}return e.FromToken=function(t){return new e(new i(t))},e.FromTokens=function(t){return new e(new n(t))},e.FromRange=function(t,n,i){return void 0===i&&(i=[]),new e(new r(t,n,i))},e.AllTokens=function(){return new e(new a)},e.prototype.GetTokens=function(){return this.tokenAccess.GetTokens()},e.prototype.Contains=function(e){return this.tokenAccess.Contains(e)},e.prototype.toString=function(){return this.tokenAccess.toString()},e}();o.Any=o.AllTokens(),o.AnyIncludingMultilineComments=o.FromTokens(o.Any.GetTokens().concat([3])),o.Keywords=o.FromRange(72,142),o.BinaryOperators=o.FromRange(27,70),o.BinaryKeywordOperators=o.FromTokens([92,93,142,118,126]),o.UnaryPrefixOperators=o.FromTokens([43,44,52,51]),o.UnaryPrefixExpressions=o.FromTokens([8,71,19,21,17,99,94]),o.UnaryPreincrementExpressions=o.FromTokens([71,19,99,94]),o.UnaryPostincrementExpressions=o.FromTokens([71,20,22,94]),o.UnaryPredecrementExpressions=o.FromTokens([71,19,99,94]),o.UnaryPostdecrementExpressions=o.FromTokens([71,20,22,94]),o.Comments=o.FromTokens([2,3]),o.TypeNames=o.FromTokens([71,133,136,122,137,105,119]),t.TokenRange=o}(t.Shared||(t.Shared={}))}(e.formatting||(e.formatting={}))}(o||(o={}));var o;!function(e){!function(t){var r=function(){function r(){this.globalRules=new t.Rules}return r.prototype.getRuleName=function(e){return this.globalRules.getRuleName(e)},r.prototype.getRuleByName=function(e){return this.globalRules[e]},r.prototype.getRulesMap=function(){return this.rulesMap},r.prototype.getFormatOptions=function(){return this.options},r.prototype.ensureUpToDate=function(r){if(!this.options||!e.compareDataObjects(this.options,r)){var n=this.createActiveRules(r),i=t.RulesMap.create(n);this.activeRules=n,this.rulesMap=i,this.options=e.clone(r)}},r.prototype.createActiveRules=function(e){var t=this.globalRules.HighPriorityCommonRules.slice(0);return e.insertSpaceAfterConstructor?t.push(this.globalRules.SpaceAfterConstructor):t.push(this.globalRules.NoSpaceAfterConstructor),e.insertSpaceAfterCommaDelimiter?t.push(this.globalRules.SpaceAfterComma):t.push(this.globalRules.NoSpaceAfterComma),e.insertSpaceAfterFunctionKeywordForAnonymousFunctions?t.push(this.globalRules.SpaceAfterAnonymousFunctionKeyword):t.push(this.globalRules.NoSpaceAfterAnonymousFunctionKeyword),e.insertSpaceAfterKeywordsInControlFlowStatements?t.push(this.globalRules.SpaceAfterKeywordInControl):t.push(this.globalRules.NoSpaceAfterKeywordInControl),e.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?(t.push(this.globalRules.SpaceAfterOpenParen),t.push(this.globalRules.SpaceBeforeCloseParen),t.push(this.globalRules.NoSpaceBetweenParens)):(t.push(this.globalRules.NoSpaceAfterOpenParen),t.push(this.globalRules.NoSpaceBeforeCloseParen),t.push(this.globalRules.NoSpaceBetweenParens)),e.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?(t.push(this.globalRules.SpaceAfterOpenBracket),t.push(this.globalRules.SpaceBeforeCloseBracket),t.push(this.globalRules.NoSpaceBetweenBrackets)):(t.push(this.globalRules.NoSpaceAfterOpenBracket),t.push(this.globalRules.NoSpaceBeforeCloseBracket),t.push(this.globalRules.NoSpaceBetweenBrackets)),!1!==e.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces?(t.push(this.globalRules.SpaceAfterOpenBrace),t.push(this.globalRules.SpaceBeforeCloseBrace),t.push(this.globalRules.NoSpaceBetweenEmptyBraceBrackets)):(t.push(this.globalRules.NoSpaceAfterOpenBrace),t.push(this.globalRules.NoSpaceBeforeCloseBrace),t.push(this.globalRules.NoSpaceBetweenEmptyBraceBrackets)),e.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?(t.push(this.globalRules.SpaceAfterTemplateHeadAndMiddle),t.push(this.globalRules.SpaceBeforeTemplateMiddleAndTail)):(t.push(this.globalRules.NoSpaceAfterTemplateHeadAndMiddle),t.push(this.globalRules.NoSpaceBeforeTemplateMiddleAndTail)),e.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?(t.push(this.globalRules.SpaceAfterOpenBraceInJsxExpression),t.push(this.globalRules.SpaceBeforeCloseBraceInJsxExpression)):(t.push(this.globalRules.NoSpaceAfterOpenBraceInJsxExpression),t.push(this.globalRules.NoSpaceBeforeCloseBraceInJsxExpression)),e.insertSpaceAfterSemicolonInForStatements?t.push(this.globalRules.SpaceAfterSemicolonInFor):t.push(this.globalRules.NoSpaceAfterSemicolonInFor),e.insertSpaceBeforeAndAfterBinaryOperators?(t.push(this.globalRules.SpaceBeforeBinaryOperator),t.push(this.globalRules.SpaceAfterBinaryOperator)):(t.push(this.globalRules.NoSpaceBeforeBinaryOperator),t.push(this.globalRules.NoSpaceAfterBinaryOperator)),e.insertSpaceBeforeFunctionParenthesis?t.push(this.globalRules.SpaceBeforeOpenParenInFuncDecl):t.push(this.globalRules.NoSpaceBeforeOpenParenInFuncDecl),e.placeOpenBraceOnNewLineForControlBlocks&&t.push(this.globalRules.NewLineBeforeOpenBraceInControl),e.placeOpenBraceOnNewLineForFunctions&&(t.push(this.globalRules.NewLineBeforeOpenBraceInFunction),t.push(this.globalRules.NewLineBeforeOpenBraceInTypeScriptDeclWithBlock)),e.insertSpaceAfterTypeAssertion?t.push(this.globalRules.SpaceAfterTypeAssertion):t.push(this.globalRules.NoSpaceAfterTypeAssertion),t=t.concat(this.globalRules.LowPriorityCommonRules)},r}();t.RulesProvider=r}(e.formatting||(e.formatting={}))}(o||(o={}));var o;!function(e){!function(t){function r(t,r,n,i){var a=r.getLineAndCharacterOfPosition(t).line;if(0===a)return[];for(var o=e.getEndLinePosition(a,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(o));)o--;return e.isLineBreak(r.text.charCodeAt(o))&&o--,g({pos:e.getStartPositionOfLine(a-1,r),end:o+1},r,i,n,2)}function n(e,t,r,n){return s(e,25,t,n,r,3)}function i(e,t,r,n){return s(e,18,t,n,r,4)}function a(e,t,r){return g({pos:0,end:e.text.length},e,r,t,0)}function o(t,r,n,i,a){return g({pos:e.getLineStartPositionForPosition(t,n),end:r},n,a,i,1)}function s(t,r,n,i,a,o){var s=c(t,r,n);return s?g({pos:e.getLineStartPositionForPosition(s.getStart(n),n),end:s.end},n,i,a,o):[]}function c(t,r,n){var i=e.findPrecedingToken(t,n);if(i&&i.kind===r&&t===i.getEnd()){for(var a=i;a&&a.parent&&a.parent.end===i.end&&!u(a.parent,a);)a=a.parent;return a}}function u(t,r){switch(t.kind){case 229:case 230:return e.rangeContainsRange(t.members,r);case 233:var n=t.body;return n&&234===n.kind&&e.rangeContainsRange(n.statements,r);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,r);case 260:return e.rangeContainsRange(t.block.statements,r)}return!1}function l(t,r){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}return n(r)}function d(t,r){function n(){return!1}if(!t.length)return n;var i=t.filter(function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!i.length)return n;var a=0;return function(t){for(;;){if(a>=i.length)return!1;var r=i[a];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;a++}}}function f(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}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(e,i))return r.indentSize;a=o,i=e,e=e.parent}return 0}function p(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return m(s,e,i,a,t.getFormattingScanner(r.text,n,s.pos,s.end),o.getFormatOptions(),o,1,function(e){return!1},r)}function g(e,r,n,i,a){var o=l(e,r);return m(e,o,t.SmartIndenter.getIndentationForNode(o,e,r,n),_(o,n,r),t.getFormattingScanner(r.text,r.languageVariant,f(o,e,r),e.end),n,i,a,d(r.parseDiagnostics,e),r)}function m(r,n,i,a,o,s,c,u,l,d){function f(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var c=d.getLineAndCharacterOfPosition(r).line,u=e.getLineStartPositionForPosition(r,d),l=t.SmartIndenter.findFirstNonWhitespaceColumn(u,r,d,s);if(c!==i||r===l){var f=t.SmartIndenter.getBaseIndentation(s);return f>l?f:l}}return-1}function _(e,r,n,i,a,o){var c=n,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===r?(c=r===L?B:a.getIndentation(),u=Math.min(s.indentSize,a.getDelta(e)+u)):-1===c&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,d)?a.getIndentation():a.getIndentation()+a.getDelta(e)),{indentation:c,delta:u}}function p(e){if(e.modifiers&&e.modifiers.length)return e.modifiers[0].kind;switch(e.kind){case 229:return 75;case 230:return 109;case 228:return 89;case 232:return 232;case 153:return 125;case 154:return 135;case 151:if(e.asteriskToken)return 39;case 149:case 146:return e.name.kind}}function g(e,r,n,i){function a(r,n){return t.SmartIndenter.nodeWillIndentChild(e,n,!0)?r:0}return{getIndentationForComment:function(e,t,r){switch(e){case 18:case 22:case 20:return n+a(i,r)}return-1!==t?t:n},getIndentationForToken:function(t,o,s){if(r!==t&&e.decorators&&o===p(e))return n;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return n;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return n;break;case 21:case 22:if(172!==s.kind)return n}return r!==t?n+a(i,s):n},getIndentation:function(){return n},getDelta:function(e){return a(i,e)},recomputeIndentation:function(r){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(r?n+=s.indentSize:n-=s.indentSize,i=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0)}}}function m(t,n,i,a,s,c){function u(n,i,a,s,c,u,l,p){var g=n.getStart(d),h=d.getLineAndCharacterOfPosition(g).line,y=h;n.decorators&&(y=d.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,d)).line);var b=-1;if(l&&-1!==(b=f(g,n.end,c,r,i))&&(i=b),!e.rangeOverlapsWithStartEnd(r,n.pos,n.end))return n.endg)break;v(k,t,s,t)}if(!o.isOnToken())return i;if(e.isToken(n)&&10!==n.kind){var k=o.readTokenInfo(n);return e.Debug.assert(k.token.end===n.end,"Token end is child end"),v(k,t,s,n),i}var x=147===n.kind?h:u,S=_(n,h,b,t,s,x);return m(n,C,h,y,S.indentation,S.delta),C=t,p&&177===a.kind&&-1===i&&(i=S.indentation),i}function p(r,n,i,a){var s=h(n,r),c=y(s),l=a,f=i;if(0!==s)for(;o.isOnToken();){var p=o.readTokenInfo(n);if(p.token.end>r.pos)break;if(p.token.kind===s){f=d.getLineAndCharacterOfPosition(p.token.pos).line;var m=_(p.token,f,-1,n,a,i);l=g(n,i,m.indentation,m.delta),v(p,n,l,n)}else v(p,n,a,n)}for(var b=-1,k=0;kt.end)break;v(E,t,x,t)}}}function b(t,n,i,a){for(var o=0,s=t;o0){var x=v(k,s);P(y,b.character,x)}else N(y,b.character)}}}function T(t,r,n){for(var i=t;io)){var s=w(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(d.text.charCodeAt(s-1))),N(s,o+1-s))}}}function w(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(d.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function A(t,r,n){return{span:e.createTextSpan(t,r),newText:n}}function N(e,t){t&&z.push(A(e,t,""))}function P(e,t,r){(t||r)&&z.push(A(e,t,r))}function M(e,t,r,n,i){switch(e.Operation.Action){case 1:return;case 8:t.end!==n.pos&&N(t.end,n.pos-t.end);break;case 4:if(1!==e.Flag&&r!==i)return;1!==i-r&&P(t.end,n.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&r!==i)return;1===n.pos-t.end&&32===d.text.charCodeAt(t.end)||P(t.end,n.pos-t.end," ")}}var O,I,F,R,L,B,j=new t.FormattingContext(d,u),z=[];if(o.advance(),o.isOnToken()){var K=d.getLineAndCharacterOfPosition(n.getStart(d)).line,J=K;n.decorators&&(J=d.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,d)).line),m(n,n,K,J,i,a)}if(!o.isOnToken()){var q=o.getCurrentLeadingTrivia();q&&(b(q,n,n,void 0),function(){var e=I?I.end:r.pos;T(d.getLineAndCharacterOfPosition(e).line,d.getLineAndCharacterOfPosition(r.end).line+1,I)}())}return o.close(),z}function h(e,t){switch(e.kind){case 152:case 228:case 186:case 151:case 150:case 187:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 181:case 182:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 159:if(e.typeArguments===t)return 27}return 0}function y(e){switch(e){case 19:return 20;case 27:return 29}return 0}function v(e,t){function r(e,t){for(var r="",n=0;nn.text.length)return i(o);if(o.indentStyle===e.IndentStyle.None)return 0;var d=e.findPrecedingToken(r,n);if(!d)return i(o);if(e.isStringOrRegularExpressionOrTemplateLiteral(d.kind)&&d.getStart(n)<=r&&d.end>r)return 0;var f=n.getLineAndCharacterOfPosition(r).line;if(o.indentStyle===e.IndentStyle.Block){for(var _=r;_>0;){var m=n.text.charCodeAt(_);if(!e.isWhiteSpaceLike(m))break;_--}var h=e.getLineStartPositionForPosition(_,n);return t.findFirstNonWhitespaceColumn(h,_,n,o)}if(26===d.kind&&194!==d.parent.kind){var y=s(d,n,o);if(-1!==y)return y}for(var v,b,k,S=d;S;){if(e.positionBelongsToNode(S,r,n)&&x(S,v)){b=l(S,n);var C=u(d,S,f,n);k=0!==C?c&&2===C?o.indentSize:0:f!==b.line?o.indentSize:0;break}var y=p(S,n,o);if(-1!==y)return y;if(-1!==(y=g(S,n,o)))return y+o.indentSize;v=S,S=S.parent}return S?a(S,b,void 0,k,n,o):i(o)}function n(e,t,r,n){return a(e,r.getLineAndCharacterOfPosition(e.getStart(r)),t,0,r,n)}function i(e){return e.baseIndentSize||0}function a(e,t,r,n,a,s){for(var u,l=e.parent;l;){var f=!0;if(r){var _=e.getStart(a);f=_r.end}if(f){var m=p(e,a,s);if(-1!==m)return m+n}u=o(l,e,a);var h=u.line===t.line||d(l,e,t.line,a);if(f){var m=c(e,l,t,h,a,s);if(-1!==m)return m+n;if(-1!==(m=g(e,a,s)))return m+n}x(l,e)&&!h&&(n+=s.indentSize),e=l,t=u,l=e.parent}return n+i(s)}function o(e,t,r){var n=_(t,r);return n?r.getLineAndCharacterOfPosition(n.pos):r.getLineAndCharacterOfPosition(e.getStart(r))}function s(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?m(i.list.getChildren(),i.listItemIndex-1,r,n):-1}function c(t,r,n,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||265!==r.kind&&i?-1:h(n,a,o)}function u(t,r,n,i){var a=e.findNextToken(t,r);if(!a)return 0;if(17===a.kind)return 1;if(18===a.kind){return n===l(a,i).line?2:0}return 0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function d(t,r,n,i){if(211===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,82,i);e.Debug.assert(void 0!==a);return l(a,i).line===n}return!1}function f(t,r,n){return t&&e.rangeContainsStartEnd(t,r,n)?t:void 0}function _(e,t){if(e.parent)switch(e.parent.kind){case 159:return f(e.parent.typeArguments,e.getStart(t),e.getEnd());case 178:return e.parent.properties;case 177:return e.parent.elements;case 228:case 186:case 187:case 151:case 150:case 155:case 152:case 161:case 156:var r=e.getStart(t);return f(e.parent.typeParameters,r,e.getEnd())||f(e.parent.parameters,r,e.getEnd());case 229:return f(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var r=e.getStart(t);return f(e.parent.typeArguments,r,e.getEnd())||f(e.parent.arguments,r,e.getEnd());case 227:return f(e.parent.declarations,e.getStart(t),e.getEnd());case 241:case 245:return f(e.parent.elements,e.getStart(t),e.getEnd())}}function p(t,r,n){var i=_(t,r);return i?function(i){var a=e.indexOf(i,t);return-1!==a?m(i,a,r,n):-1}(i):-1}function g(e,t,r){if(20===e.kind)return-1;if(e.parent&&(181===e.parent.kind||182===e.parent.kind)&&e.parent.expression!==e){var n=e.parent.expression,i=function(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}(n);if(n===i)return-1;var a=t.getLineAndCharacterOfPosition(n.end),o=t.getLineAndCharacterOfPosition(i.end);return a.line===o.line?-1:h(a,t,r)}return-1}function m(t,r,n,i){e.Debug.assert(r>=0&&r=0;s--)if(26!==t[s].kind){var c=n.getLineAndCharacterOfPosition(t[s].end).line;if(c!==o.line)return h(o,n,i);o=l(t[s],n)}return-1}function h(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return v(n,n+e.character,t,r)}function y(t,r,n,i){for(var a=0,o=0,s=t;s=0;n--){var i=r[n];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span))}return t}function m(t){return e.skipTrivia(t,0)===t.length}function h(t){function n(){}var a=e.visitEachChild(t,h,k,y,h),o=e.nodeIsSynthesized(a)?a:(n.prototype=a,new n);return o.pos=r(t),o.end=i(t),o}function y(t,n,a,o,s){var c=e.visitNodes(t,n,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=r(t),u.end=i(t),u}var v;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start"}(v=t.Position||(t.Position={})),t.getSeparatorCharacter=c,t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=l;var b=function(){function t(t,r,n){this.newLine=t,this.rulesProvider=r,this.validator=n,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t})}return t.fromCodeFixContext=function(e){return new t("\n"===e.newLineCharacter?1:0,e.rulesProvider)},t.prototype.deleteNode=function(e,t,r){void 0===r&&(r={});var n=u(e,t,r,v.FullStart),i=l(e,t,r);return this.changes.push({sourceFile:e,options:r,range:{pos:n,end:i}}),this},t.prototype.deleteRange=function(e,t){return this.changes.push({sourceFile:e,range:t}),this},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={});var i=u(e,t,n,v.FullStart),a=l(e,r,n);return this.changes.push({sourceFile:e,options:n,range:{pos:i,end:a}}),this},t.prototype.deleteNodeInList=function(t,r){var n=e.formatting.SmartIndenter.getContainingList(r,t);if(!n)return e.Debug.fail("node is not a list element"),this;var i=n.indexOf(r);if(i<0)return this;if(1===n.length)return this.deleteNode(t,r),this;if(i!==n.length-1){var a=e.getTokenAtPosition(t,r.end);if(a&&d(r,a)){var o=e.skipTrivia(t.text,u(t,r,{},v.FullStart),!1,!0),s=n[i+1],c=e.skipTrivia(t.text,u(t,s,{},v.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:c})}}else{var l=e.getTokenAtPosition(t,n[i-1].end);l&&d(r,l)&&this.deleteNodeRange(t,l,r)}return this},t.prototype.replaceRange=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({sourceFile:e,range:t,options:n,node:r}),this},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n={});var i=u(e,t,n,v.Start),a=l(e,t,n);return this.changes.push({sourceFile:e,options:n,useIndentationFromFile:!0,node:r,range:{pos:i,end:a}}),this},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i={});var a=u(e,t,i,v.Start),o=l(e,r,i);return this.changes.push({sourceFile:e,options:i,useIndentationFromFile:!0,node:n,range:{pos:a,end:o}}),this},t.prototype.insertNodeAt=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({sourceFile:e,options:n,node:r,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,r,n){void 0===n&&(n={});var i=u(e,t,n,v.Start);return this.changes.push({sourceFile:e,options:n,useIndentationFromFile:!0,node:r,range:{pos:i,end:i}}),this},t.prototype.insertNodeAfter=function(t,r,n,i){void 0===i&&(i={}),(e.isStatementButNotDeclaration(r)||149===r.kind||148===r.kind||150===r.kind)&&59!==t.text.charCodeAt(r.end-1)&&this.changes.push({sourceFile:t,options:{},range:{pos:r.end,end:r.end},node:e.createToken(25)});var a=l(t,r,i);return this.changes.push({sourceFile:t,options:i,useIndentationFromFile:!0,node:n,range:{pos:a,end:a}}),this},t.prototype.insertNodeInListAfter=function(t,r,n){var i=e.formatting.SmartIndenter.getContainingList(r,t);if(!i)return e.Debug.fail("node is not a list element"),this;var a=i.indexOf(r);if(a<0)return this;var c=r.getEnd();if(a!==i.length-1){var u=e.getTokenAtPosition(t,r.end);if(u&&d(r,u)){var l=e.getLineAndCharacterOfPosition(t,o(t.text,i[a+1].getFullStart())),_=e.getLineAndCharacterOfPosition(t,u.end),p=void 0,g=void 0;_.line===l.line?(g=u.end,p=f(l.character-_.character)):g=e.getStartPositionOfLine(l.line,t),this.changes.push({sourceFile:t,range:{pos:g,end:i[a+1].getStart(t)},node:n,useIndentationFromFile:!0,options:{prefix:p,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,i[a+1].getStart(t))}})}}else{var m=r.getStart(t),h=e.getLineStartPositionForPosition(m,t),y=void 0,v=!1;if(1===i.length)y=26;else{var b=e.findPrecedingToken(r.pos,t);y=d(r,b)?b.kind:26;v=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==h}if(s(t.text,r.end)&&(v=!0),v){this.changes.push({sourceFile:t,range:{pos:c,end:c},node:e.createToken(y),options:{}});var k=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(h,m,t,this.rulesProvider.getFormatOptions()),x=e.skipTrivia(t.text,c,!0,!1);x!==c&&e.isLineBreak(t.text.charCodeAt(x-1))&&x--,this.changes.push({sourceFile:t,range:{pos:x,end:x},node:n,options:{indentation:k,prefix:this.newLineCharacter}})}else this.changes.push({sourceFile:t,range:{pos:c,end:c},node:n,options:{prefix:e.tokenToString(y)+" "}})}return this},t.prototype.getChanges=function(){for(var r=this,n=e.createFileMap(),i=0,a=this.changes;i0&&(n=n.concat(r))}),n}var a=[];t.registerCodeFix=r,t.getSupportedErrorCodes=n,t.getFixes=i}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){function r(r){function n(e,t,r,n){if(!r){var i=s.getIndexInfoOfType(e,t);if(i){var a=s.indexInfoToIndexSignatureDeclaration(i,t,c);n.push(a)}}}var i=r.sourceFile,a=r.span.start,o=e.getTokenAtPosition(i,a),s=r.program.getTypeChecker(),c=e.getContainingClass(o);if(c){for(var u=e.getOpenBraceOfClassLike(c,i),l=s.getTypeAtLocation(c),d=e.getClassImplementsHeritageClauseElements(c),f=!!s.getIndexTypeOfType(l,1),_=!!s.getIndexTypeOfType(l,0),p=[],g=0,m=d;g0&&function(e,n,i){var a={description:i,changes:t.newNodesToChanges(n,u,r)};e.push(a)}(p,k,x)}return p}}t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:r})}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){function r(t){var r=t.sourceFile,n=t.span.start,i=e.getTokenAtPosition(r,n);if(71===i.kind&&e.isPropertyAccessExpression(i.parent)&&99===i.parent.expression.kind){var a=e.getThisContainer(i,!1);if(e.isClassElement(a)){var o=a.parent;if(o&&e.isClassLike(o)){var s=e.hasModifier(a,32);return e.isInJavaScriptFile(r)?function(){var n=i.getText();if(s){if(199===o.kind)return;var a=o.name.getText();return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[n]),changes:[{fileName:r.fileName,textChanges:[{span:{start:o.getEnd(),length:0},newText:""+t.newLineCharacter+a+"."+n+" = undefined;"+t.newLineCharacter}]}]}]}var c=e.getFirstConstructorWithBody(o);if(c)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[n]),changes:[{fileName:r.fileName,textChanges:[{span:{start:c.body.getEnd()-1,length:0},newText:"this."+n+" = undefined;"+t.newLineCharacter}]}]}]}():function(){var n;if(194===i.parent.parent.kind){var a=i.parent.parent,c=t.program.getTypeChecker(),u=c.getWidenedType(c.getBaseTypeOfLiteralType(c.getTypeAtLocation(a.right)));n=c.typeToTypeNode(u,o)}n=n||e.createKeywordTypeNode(119);var l=e.getOpenBraceOfClassLike(o,r),d=e.createProperty(void 0,s?[e.createToken(115)]:void 0,i.getText(r),void 0,n,void 0),f=e.textChanges.ChangeTracker.fromCodeFixContext(t);f.insertNodeAfter(r,l,d,{suffix:t.newLineCharacter});var _=[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_declaration_for_missing_property_0),[i.getText()]),changes:f.getChanges()}];if(!s){var p=e.createKeywordTypeNode(136),g=e.createParameter(void 0,void 0,void 0,"x",void 0,p,void 0),m=e.createIndexSignatureDeclaration(void 0,void 0,[g],n),h=e.textChanges.ChangeTracker.fromCodeFixContext(t);h.insertNodeAfter(r,l,m,{suffix:t.newLineCharacter}),_.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_missing_property_0),[i.getText()]),changes:h.getChanges()})}return _}()}}}}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1.code],getCodeActions:r})}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){function r(r){var i=r.sourceFile,a=r.span.start,o=e.getTokenAtPosition(i,a),s=r.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),l=s.getTypeAtLocation(u),d=s.getPropertiesOfType(l),f=d.filter(n),_=t.createMissingMemberNodes(c,f,s),p=t.newNodesToChanges(_,e.getOpenBraceOfClassLike(c,i),r);if(p&&p.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:p}]}}function n(t){var r=t.getDeclarations();e.Debug.assert(!!(r&&r.length>0));var n=e.getModifierFlags(r[0]);return!(8&n||!(128&n))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:r}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:r})}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function r(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,r)}var n=t.sourceFile,i=e.getTokenAtPosition(n,t.span.start);if(99===i.kind){var a=e.getContainingFunction(i),o=r(a.body);if(o){if(o.expression&&181===o.expression.kind)for(var s=o.expression.arguments,c=0;c0){var s=o[0].getFirstToken();if(s&&85===s.kind){var c=e.textChanges.ChangeTracker.fromCodeFixContext(t);c.replaceNode(r,s,e.createToken(108));for(var u=1;u=0;m--){var h=l.statements[m];if(237===h.kind||238===h.kind){u=h;break}}var y=e.createGetCanonicalFileName(_),v=e.stripQuotes(r||function(){var r=l.fileName,i=n.valueDeclaration.getSourceFile().fileName,a=e.getDirectoryPath(r),s=t.program.getCompilerOptions();return function(){if(265!==n.valueDeclaration.kind)return n.name}()||function(){var r=e.getEffectiveTypeRoots(s,t.host);if(r)for(var n=e.map(r,function(t){return e.toPath(t,void 0,y)}),a=0,o=n;a=l.length+_.length&&e.startsWith(t,l)&&e.endsWith(t,_)){var p=t.substr(l.length,t.length-_.length);return n.replace("*",p)}}else if(c===t||c===r)return n}return t}}}()||function(){if(s.rootDirs){var t=o(i,s.rootDirs),r=o(a,s.rootDirs);if(void 0!==t){var n=void 0!==r?p(t,r):t;return e.removeFileExtension(n)}}}()||e.removeFileExtension(p(i,a))}()),b=s(),k=i?e.createImportClause(e.createIdentifier(g),void 0):a?e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(g))):e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,e.createIdentifier(g))])),x=e.createImportDeclaration(void 0,void 0,k,e.createLiteral(v));return u?b.insertNodeAfter(l,u,x,{suffix:t.newLineCharacter}):b.insertNodeAt(l,l.getStart(),x,{suffix:""+t.newLineCharacter+t.newLineCharacter}),c(e.Diagnostics.Import_0_from_1,[g,'"'+v+'"'],b.getChanges(),"NewImport",v)}var d=r(n);return d.length>0?function(t){for(var r,n,i,u=[],d=0,f=t;d=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+n}}return{span:{start:r,length:0},newText:(r===o?"":n)+"// @ts-ignore"+n}}function n(t){var n=t.sourceFile,i=t.program,a=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(n)&&e.isCheckJsEnabledForFile(n,i.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:n.fileName,textChanges:[r(n,o.start,a)]}]},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[{fileName:n.fileName,textChanges:[{span:{start:n.checkJsDirective?n.checkJsDirective.pos:0,length:n.checkJsDirective?n.checkJsDirective.end-n.checkJsDirective.pos:0},newText:"// @ts-nocheck"+a}]}]}]}t.registerCodeFix({errorCodes:function(){var t=e.Diagnostics;return Object.keys(t).filter(function(r){return t[r]&&t[r].category===e.DiagnosticCategory.Error}).map(function(e){return t[e].code})}(),getCodeActions:n})}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){function r(t,r,n){for(var i=n.sourceFile,a=e.textChanges.ChangeTracker.fromCodeFixContext(n),o=0,s=t;om.length){var h=n.getSignatureFromDeclaration(o[o.length-1]),b=i(h,r,s());b&&y.push(b)}else{e.Debug.assert(o.length===m.length);var k=a(m,l,p,f);y.push(k)}return y;default:return}}}function a(t,r,n,i){for(var a=t[0],s=t[0].minArgumentCount,c=!1,u=0;u=a.parameters.length&&(!l.hasRestParameter||a.hasRestParameter)&&(a=l)}for(var d=a.parameters.length-(a.hasRestParameter?1:0),f=a.parameters.map(function(e){return e.getName()}),_=[],u=0;u=s?e.createToken(55):void 0,p,void 0);_.push(g)}if(c){var m=e.createArrayTypeNode(e.createKeywordTypeNode(119)),h=e.createParameter(void 0,void 0,e.createToken(24),f[d]||"rest",d>=s?e.createToken(55):void 0,m,void 0);_.push(h)}return o(i,r,n,void 0,_,void 0)}function o(t,r,n,i,a,o){return e.createMethodDeclaration(void 0,t,void 0,r,n?e.createToken(55):void 0,i,a,o,s())}function s(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function c(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=r,t.createMissingMemberNodes=n,t.createStubbedMethod=o}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){function t(e,t,r,n){var i=e>=143?new b(e,t,r):71===e?new C(71,t,r):new S(e,t,r);return i.parent=n,i}function r(t){var r=!0;for(var i in t)if(e.hasProperty(t,i)&&!n(i)){r=!1;break}if(r)return t;var a={};for(var i in t)if(e.hasProperty(t,i)){var o=n(i)?i:i.charAt(0).toLowerCase()+i.substr(1);a[o]=t[i]}return a}function n(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function i(t){return t?e.map(t,function(e){return e.text}).join(""):""}function o(){return{target:1,jsx:1}}function s(){return e.codefix.getSupportedErrorCodes()}function u(e,t,r){e.version=r,e.scriptSnapshot=t}function l(t,r,n,i,a,o){var s=r.getText(0,r.getLength()),c=e.createSourceFile(t,s,n,a,o);return u(c,r,i),c}function d(t,r,n,i,a){if(i&&n!==t.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var d=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+d+c:s?s+d:d+c}var f=e.updateSourceFile(t,o,i,a);return u(f,r,n),f.nameTable=void 0,t!==f&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),f}return l(t.fileName,r,t.languageVersion,n,!0,t.scriptKind)}function f(t,n){function i(e){t.log&&t.log(e)}function a(e){var t=ne.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function o(t){return re||(re=new e.formatting.RulesProvider),re.ensureUpToDate(t),re}function s(){function r(t){return a(t,e.toPath(t,ue,le))}function a(t,r){e.Debug.assert(void 0!==u);var i=u.getOrCreateEntryByPath(t,r);if(i){if(!f){var a=ne&&ne.getSourceFileByPath(r);if(a)return e.Debug.assert(i.scriptKind===a.scriptKind,"Registered script kind ("+a.scriptKind+") should match new script kind ("+i.scriptKind+") for file: "+r),n.updateDocumentWithKey(t,r,d,p,i.scriptSnapshot,i.version,i.scriptKind)}return n.acquireDocumentWithKey(t,r,d,p,i.scriptSnapshot,i.version,i.scriptKind)}}function o(t){if(!t)return!1;var r=t.path||e.toPath(t.fileName,ue,le);return t.version===u.getVersion(r)}if(t.getProjectVersion){var s=t.getProjectVersion();if(s){if(ie===s)return;ie=s}}var c=t.getTypeRootsVersion?t.getTypeRootsVersion():0;oe!==c&&(i("TypeRoots version has changed; provide new program"),ne=void 0,oe=c);var u=new w(t,le);if(!function(){if(!ne)return!1;var t=u.getRootFileNames();if(ne.getSourceFiles().length!==t.length)return!1;for(var r=0,n=t;r0)for(var u=function(){var t=/(?:\/\/+\s*)/.source,i=/(?:\/\*+\s*)/.source,a=/(?:^(?:\s|\*)*)/.source,o="("+a+"|"+t+"|"+i+")",s="(?:"+e.map(r,function(e){return"("+n(e.text)+")"}).join("|")+")",c=/(?:$|\*\/)/.source,u=/(?:.*?)/.source,l="("+s+u+")",d=o+l+c;return new RegExp(d,"gim")}(),l=void 0;l=u.exec(o);){ce.throwIfCancellationRequested();e.Debug.assert(l.length===r.length+3);var d=l[1],f=l.index+d.length,_=e.getTokenAtPosition(i,f);if(e.isInsideComment(i,_,f)){for(var p=void 0,g=0;g=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}(o.charCodeAt(f+p.text.length))){var m=l[2];c.push({descriptor:p,message:m,position:f})}}}return c}function te(r,n){s();var i=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(ne.getTypeChecker(),i,le,a(r),n)}void 0===n&&(n=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var re,ne,ie,ae=new A(t),oe=0,se=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),ce=new N(t.getCancellationToken&&t.getCancellationToken()),ue=t.getCurrentDirectory();!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var le=e.createGetCanonicalFileName(se);return{dispose:l,cleanupSemanticCache:u,getSyntacticDiagnostics:d,getSemanticDiagnostics:f,getCompilerOptionsDiagnostics:_,getSyntacticClassifications:q,getSemanticClassifications:K,getEncodedSyntacticClassifications:U,getEncodedSemanticClassifications:J,getCompletionsAtPosition:p,getCompletionEntryDetails:g,getCompletionEntrySymbol:m,getSignatureHelpItems:O,getQuickInfoAtPosition:h,getDefinitionAtPosition:y,getImplementationAtPosition:b,getTypeDefinitionAtPosition:v,getReferencesAtPosition:E,findReferences:T,getOccurrencesAtPosition:k,getDocumentHighlights:x,getNameOrDottedNameSpan:R,getBreakpointStatementAtPosition:L,getNavigateToItems:P,getRenameInfo:te,findRenameLocations:C,getNavigationBarItems:B,getNavigationTree:j,getOutliningSpans:V,getTodoComments:ee,getBraceMatchingAtPosition:H,getIndentationAtPosition:W,getFormattingEditsForRange:G,getFormattingEditsForDocument:X,getFormattingEditsAfterKeystroke:Y,getDocCommentTemplateAtPosition:Z,isValidBraceCompletionAtPosition:$,getCodeFixesAtPosition:Q,getEmitOutput:M,getNonBoundSourceFile:I,getSourceFile:F,getProgram:c}}function _(e){return e.nameTable||p(e),e.nameTable}function p(t){function r(t){switch(t.kind){case 71:n(t.text,t);break;case 9:case 8:(e.isDeclarationName(t)||248===t.parent.kind||y(t)||e.isLiteralComputedPropertyDeclarationName(t))&&n(t.text,t);break;default:if(e.forEachChild(t,r),t.jsDoc)for(var i=0,a=t.jsDoc;i=143){e.scanner.setText((t||this.getSourceFile()).text),r=[];var i=this.pos,a=this.kind>=283&&this.kind<=293,o=function(t){var o=e.isJSDocTag(t);!o&&i293});return n.kind<143?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<143?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}(),k=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return(e||this.getSourceFile()).text.substring(this.getStart(),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),x=function(){function t(e,t){this.flags=e,this.name=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),S=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return c(t,e),t}(k),C=function(e){function t(t,r,n){return e.call(this,r,n)||this}return c(t,e),t}(k);C.prototype.kind=71;var E=function(){function e(e,t){this.checker=e,this.flags=t}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return 32768&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e}(),D=function(){function t(e){this.checker=e}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=this.declaration?e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]):[]),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),T=function(t){function r(e,r,n){return t.call(this,e,r,n)||this}return c(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r){return e.getPositionOfLineAndCharacter(this,t,r)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){function t(e){var t=n(e);t&&o.add(t,e)}function r(e){var t=o.get(e);return t||o.set(e,t=[]),t}function n(e){if(e.name){var t=i(e.name);if(void 0!==t)return t;if(144===e.name.kind){var r=e.name.expression;return 179===r.kind?r.name.text:i(r)}}}function i(e){if(e&&(71===e.kind||9===e.kind||8===e.kind))return e.text}function a(i){switch(i.kind){case 228:case 186:case 151:case 150:var o=i,s=n(o);if(s){var c=r(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(i,a);break;case 229:case 199:case 230:case 231:case 232:case 233:case 237:case 246:case 242:case 237:case 239:case 240:case 153:case 154:case 163:t(i),e.forEachChild(i,a);break;case 146:if(!e.hasModifier(i,92))break;case 226:case 176:var l=i;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,a);break}l.initializer&&a(l.initializer);case 264:case 149:case 148:t(i);break;case 244:i.exportClause&&e.forEach(i.exportClause.elements,a);break;case 238:var d=i.importClause;d&&(d.name&&t(d),d.namedBindings&&(240===d.namedBindings.kind?t(d.namedBindings):e.forEach(d.namedBindings.elements,a)));break;default:e.forEachChild(i,a)}}var o=e.createMultiMap();return e.forEachChild(this,a),o},r}(b);e.toEditorSettings=r,e.displayPartsToString=i,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var w=function(){function t(t,r){this.host=t,this.getCanonicalFileName=r,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createFileMap();for(var n=t.getScriptFileNames(),i=0,a=n;i=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=P,e.createLanguageService=f,e.getNameTable=_,e.getContainingObjectLiteralElement=m,e.getPropertySymbolsFromContextualType=h,e.getDefaultLibFilePath=v,e.objectAllocator=function(){return{getNodeConstructor:function(){return b},getTokenConstructor:function(){return S},getIdentifierConstructor:function(){return C},getSourceFileConstructor:function(){return T},getSymbolConstructor:function(){return x},getTypeConstructor:function(){return E},getSignatureConstructor:function(){return D}}}()}(o||(o={}));var o;!function(e){!function(t){function r(t,r){function n(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function i(t,r){return n(t,e.findNextToken(r,r.parent))}function a(e,r){return u(e&&d===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:r)}function o(r){return e.createTextSpanFromBounds(e.skipTrivia(t.text,r.pos),r.end)}function s(r){return u(e.findPrecedingToken(r.pos,t))}function c(t){return u(e.findNextToken(t,t.parent))}function u(r){function l(r){return 227===r.parent.kind&&r.parent.declarations[0]===r?n(e.findPrecedingToken(r.pos,t,r.parent),r):n(r)}function d(r){return 215===r.parent.parent.kind?u(r.parent.parent):e.isBindingPattern(r.name)?h(r.name):r.initializer||e.hasModifier(r,1)||216===r.parent.parent.kind?l(r):227===r.parent.kind&&r.parent.declarations[0]!==r?u(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function f(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}function _(t){if(e.isBindingPattern(t.name))return h(t.name);if(f(t))return n(t);var r=t.parent,i=e.indexOf(r.parameters,t);return i?_(r.parameters[i-1]):u(r.body)}function p(t){return e.hasModifier(t,1)||229===t.parent.kind&&152!==t.kind}function g(r){switch(r.parent.kind){case 233:if(1!==e.getModuleInstanceState(r.parent))return;case 213:case 211:case 215:return a(r.parent,r.statements[0]);case 214:case 216:return a(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return u(r.statements[0])}function m(e){if(227!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function h(t){var r=e.forEach(t.elements,function(e){return 200!==e.kind?e:void 0});return r?u(r):176===t.parent.kind?n(t.parent):l(t.parent)}function y(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var r=177===t.kind?t.elements:t.properties,i=e.forEach(r,function(e){return 200!==e.kind?e:void 0});return i?u(i):n(194===t.parent.kind?t.parent:t)}if(r)switch(r.kind){case 208:return d(r.declarationList.declarations[0]);case 226:case 149:case 148:return d(r);case 146:return _(r);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return function(e){if(e.body)return p(e)?n(e):u(e.body)}(r);case 207:if(e.isFunctionBlock(r))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return p(e.parent)?a(e.parent,t):u(t)}(r);case 234:return g(r);case 260:return g(r.block);case 210:return n(r.expression);case 219:return n(r.getChildAt(0),r.expression);case 213:return i(r,r.expression);case 212:return u(r.statement);case 225:return n(r.getChildAt(0));case 211:return i(r,r.expression);case 222:return u(r.statement);case 218:case 217:return n(r.getChildAt(0),r.label);case 214:return function(e){return e.initializer?m(e):e.condition?n(e.condition):e.incrementor?n(e.incrementor):void 0}(r);case 215:return i(r,r.expression);case 216:return m(r);case 221:return i(r,r.expression);case 257:case 258:return u(r.statements[0]);case 224:return g(r.tryBlock);case 223:case 243:return n(r,r.expression);case 237:return n(r,r.moduleReference);case 238:case 244:return n(r,r.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(r))return;case 229:case 232:case 264:case 176:return n(r);case 220:return u(r.statement);case 147:return o(r.parent.decorators);case 174:case 175:return h(r);case 230:case 231:return;case 25:case 1:return a(e.findPrecedingToken(r.pos,t));case 26:return s(r);case 17:return function(r){switch(r.parent.kind){case 232:var n=r.parent;return a(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 229:var i=r.parent;return a(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 235:return a(r.parent.parent,r.parent.clauses[0])}return u(r.parent)}(r);case 18:return function(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return n(t);case 207:if(e.isFunctionBlock(t.parent))return n(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var r=t.parent,i=e.lastOrUndefined(r.clauses);if(i)return u(e.lastOrUndefined(i.statements));return;case 174:var a=t.parent;return u(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return n(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}(r);case 22:return function(t){switch(t.parent.kind){case 175:var r=t.parent;return n(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return n(e.lastOrUndefined(i.elements)||i)}return u(t.parent)}}(r);case 19:return function(e){return 212===e.parent.kind||181===e.parent.kind||182===e.parent.kind?s(e):185===e.parent.kind?c(e):u(e.parent)}(r);case 20:return function(e){switch(e.parent.kind){case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 152:case 213:case 212:case 214:case 216:case 181:case 182:case 185:return s(e);default:return u(e.parent)}}(r);case 56:return function(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}(r);case 29:case 27:return function(e){return 184===e.parent.kind?c(e):u(e.parent)}(r);case 106:return function(e){return 212===e.parent.kind?i(e,e.parent.expression):u(e.parent)}(r);case 82:case 74:case 87:return c(r);case 142:return function(e){return 216===e.parent.kind?c(e):u(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return y(r);if((71===r.kind||198===r.kind||261===r.kind||262===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return n(r);if(194===r.kind){var v=r;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.left))return y(v.left);if(58===v.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent))return n(r);if(26===v.operatorToken.kind)return u(v.left)}if(e.isPartOfExpression(r))switch(r.parent.kind){case 212:return s(r);case 147:return u(r.parent);case 214:case 216:return n(r);case 194:if(26===r.parent.operatorToken.kind)return n(r);break;case 187:if(r.parent.body===r)return n(r)}if(261===r.parent.kind&&r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return u(r.parent.initializer);if(184===r.parent.kind&&r.parent.type===r)return c(r.parent.type);if(e.isFunctionLike(r.parent)&&r.parent.type===r)return s(r);if(226===r.parent.kind||146===r.parent.kind){var b=r.parent;if(b.initializer===r||b.type===r||e.isAssignmentOperator(r.kind))return s(r)}if(194===r.parent.kind){var v=r.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.left)&&(v.right===r||v.operatorToken===r))return s(r)}return u(r.parent)}}if(!t.isDeclarationFile){var l=e.getTokenAtPosition(t,r),d=t.getLineAndCharacterOfPosition(r).line;if((!(t.getLineAndCharacterOfPosition(l.getStart(t)).line>d)||(l=e.findPrecedingToken(l.pos,t))&&t.getLineAndCharacterOfPosition(l.getEnd()).line===d)&&!e.isInAmbientContext(l))return u(l)}}t.spanInSourceFileAtLocation=r}(e.BreakpointResolver||(e.BreakpointResolver={}))}(o||(o={}));var o;!function(e){function t(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}e.transform=t}(o||(o={}));var o,u=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function n(e,r,n,i){var a;i&&(e.log(r),a=t.timestamp());var o=n();if(i){var s=t.timestamp();if(e.log(r+" completed in "+(s-a)+" msec"),"string"==typeof o){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log("  result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}function i(e,t,r,n){return a(e,t,!0,r,n)}function a(e,i,a,o,s){try{var c=n(e,i,o,s);return a?JSON.stringify({result:c}):c}catch(n){return n instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,n),n.description=i,JSON.stringify({error:n}))}}function o(e,t){return e.map(function(e){return s(e,t)})}function s(e,r){return{message:t.flattenDiagnosticMessageText(e.messageText,r),start:e.start,length:e.length,category:t.DiagnosticCategory[e.category].toLowerCase(),code:e.code}}function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var d=function(){function e(e){this.scriptSnapshotShim=e}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var r=e,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e}(),f=function(){function e(e){var r=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return t.map(e,function(e){var r=t.getProperty(i,e);return r?{resolvedFileName:r,extension:t.extensionFromPath(r),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return t.map(e,function(e){return t.getProperty(i,e)})})}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},e.prototype.error=function(e){this.shimHost.error(e)},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new d(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=f;var _=function(){function e(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)})}return e.prototype.readDirectory=function(e,r,n,i,a){try{var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))}catch(i){for(var s=[],c=0,u=r;c0?("string"==typeof t||Object.getPrototypeOf(t)===R.prototype||o.objectMode||(t=n(t)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):u(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?u(e,o,t,!1):h(e,o)):u(e,o,t,!1))):i||(o.reading=!1)}return d(o)}function u(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&g(e)),h(e,t)}function l(e,t){var r;return i(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function d(e){return!e.ended&&(e.needReadable||e.length=U?e=U:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function _(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=f(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function p(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,g(e)}}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(j("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?P(m,e):m(e))}function m(e){j("emit readable"),e.emit("readable"),S(e)}function h(e,t){t.readingMore||(t.readingMore=!0,P(y,e,t))}function y(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=E(e,t.buffer,t.decoder),r}function E(e,t,r){var n;return ea.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++n}return t.length-=n,i}function T(e,t){var r=R.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}function w(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,P(A,t,e))}function A(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return j("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?w(this):g(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&w(this),null;var n=t.needReadable;j("need readable",n),(0===t.length||t.length-e0?C(e,t):null,null===i?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&w(this)),null!==i&&this.emit("data",i),i},s.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(e,r){function n(e,t){j("onunpipe"),e===f&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){j("onend"),e.end()}function o(){j("cleanup"),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("drain",m),e.removeListener("error",c),e.removeListener("unpipe",n),f.removeListener("end",i),f.removeListener("end",d),f.removeListener("data",s),h=!0,!_.awaitDrain||e._writableState&&!e._writableState.needDrain||m()}function s(t){j("ondata"),y=!1,!1!==e.write(t)||y||((1===_.pipesCount&&_.pipes===e||_.pipesCount>1&&-1!==N(_.pipes,e))&&!h&&(j("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,y=!0),f.pause())}function c(t){j("onerror",t),d(),e.removeListener("error",c),0===I(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",l),d()}function l(){j("onfinish"),e.removeListener("close",u),d()}function d(){j("unpipe"),f.unpipe(e)}var f=this,_=this._readableState;switch(_.pipesCount){case 0:_.pipes=e;break;case 1:_.pipes=[_.pipes,e];break;default:_.pipes.push(e)}_.pipesCount+=1,j("pipe count=%d opts=%j",_.pipesCount,r);var p=(!r||!1!==r.end)&&e!==t.stdout&&e!==t.stderr,g=p?i:d;_.endEmitted?P(g):f.once("end",g),e.on("unpipe",n);var m=v(f);e.on("drain",m);var h=!1,y=!1;return f.on("data",s),a(e,"error",c),e.once("close",u),e.once("finish",l),e.emit("pipe",f),_.flowing||(j("pipe resume"),f.resume()),e},s.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function s(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function c(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function u(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}var l=r(1),d=r(12),f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],_=new Array(64);l(n,d),n.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},n.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,l=0|this._c,d=0|this._d,_=0|this._e,p=0|this._f,g=0|this._g,m=0|this._h,h=0;h<16;++h)t[h]=e.readInt32BE(4*h);for(;h<64;++h)t[h]=u(t[h-2])+t[h-7]+c(t[h-15])+t[h-16]|0;for(var y=0;y<64;++y){var v=m+s(_)+i(_,p,g)+f[y]+t[y]|0,b=o(r)+a(r,n,l)|0;m=g,g=p,p=_,_=d+v|0,d=l,l=n,n=r,r=v+b|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=l+this._c|0,this._d=d+this._d|0,this._e=_+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},n.prototype._hash=function(){var e=new t(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=n}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(){this.init(),this._w=m,p.call(this,128,112)}function i(e,t,r){return r^e&(t^r)}function a(e,t,r){return e&t|r&(e|t)}function o(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function s(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function c(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function d(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function f(e,t){return e>>>0>>0?1:0}var _=r(1),p=r(12),g=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],m=new Array(160);_(n,p),n.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},n.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,_=0|this._ch,p=0|this._dh,m=0|this._eh,h=0|this._fh,y=0|this._gh,v=0|this._hh,b=0|this._al,k=0|this._bl,x=0|this._cl,S=0|this._dl,C=0|this._el,E=0|this._fl,D=0|this._gl,T=0|this._hl,w=0;w<32;w+=2)t[w]=e.readInt32BE(4*w),t[w+1]=e.readInt32BE(4*w+4);for(;w<160;w+=2){var A=t[w-30],N=t[w-30+1],P=c(A,N),M=u(N,A);A=t[w-4],N=t[w-4+1];var O=l(A,N),I=d(N,A),F=t[w-14],R=t[w-14+1],L=t[w-32],B=t[w-32+1],j=M+R|0,z=P+F+f(j,M)|0;j=j+I|0,z=z+O+f(j,I)|0,j=j+B|0,z=z+L+f(j,B)|0,t[w]=z,t[w+1]=j}for(var K=0;K<160;K+=2){z=t[K],j=t[K+1];var J=a(r,n,_),q=a(b,k,x),U=o(r,b),V=o(b,r),H=s(m,C),W=s(C,m),G=g[K],X=g[K+1],Y=i(m,h,y),Q=i(C,E,D),Z=T+W|0,$=v+H+f(Z,T)|0;Z=Z+Q|0,$=$+Y+f(Z,Q)|0,Z=Z+X|0,$=$+G+f(Z,X)|0,Z=Z+j|0,$=$+z+f(Z,j)|0;var ee=V+q|0,te=U+J+f(ee,V)|0;v=y,T=D,y=h,D=E,h=m,E=C,C=S+Z|0,m=p+$+f(C,S)|0,p=_,S=x,_=n,x=k,n=r,k=b,b=Z+ee|0,r=$+te+f(b,Z)|0}this._al=this._al+b|0,this._bl=this._bl+k|0,this._cl=this._cl+x|0,this._dl=this._dl+S|0,this._el=this._el+C|0,this._fl=this._fl+E|0,this._gl=this._gl+D|0,this._hl=this._hl+T|0,this._ah=this._ah+r+f(this._al,b)|0,this._bh=this._bh+n+f(this._bl,k)|0,this._ch=this._ch+_+f(this._cl,x)|0,this._dh=this._dh+p+f(this._dl,S)|0,this._eh=this._eh+m+f(this._el,C)|0,this._fh=this._fh+h+f(this._fl,E)|0,this._gh=this._gh+y+f(this._gl,D)|0,this._hh=this._hh+v+f(this._hl,T)|0},n.prototype._hash=function(){function e(e,t,n){r.writeInt32BE(e,n),r.writeInt32BE(t,n+4)}var r=new t(64);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r},e.exports=n}).call(t,r(0).Buffer)},function(e,t,r){"use strict";function n(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;if(this._alg=e,this._key=t,t.length>r){t=("rmd160"===e?new u:l(e)).update(t).digest()}else t.lengthr||t!==t)throw new TypeError("Bad key length")}},function(e,t,r){(function(t){var r;if(t.browser)r="utf-8";else{r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}e.exports=r}).call(t,r(5))},function(e,t,r){function n(e,t,r){var n=i(e),a="sha512"===e||"sha384"===e?128:64;t.length>a?t=n(t):t.length>s%8,e._prev=n(e._prev,r?a:o);return c}function n(t,r){var n=t.length,i=-1,a=new e(t.length);for(t=e.concat([t,new e([r])]);++i>7;return a}t.encrypt=function(t,n,i){for(var a=n.length,o=new e(a),s=-1;++se;)r.ishrn(1);if(r.isEven()&&r.iadd(f),r.testn(1)||r.iadd(_),t.cmp(_)){if(!t.cmp(p))for(;r.mod(g).cmp(m);)r.iadd(y)}else for(;r.mod(u).cmp(h);)r.iadd(y);if(n=r.shrn(1),i(n)&&i(r)&&a(n)&&a(r)&&d.test(n)&&d.test(r))return r}}var s=r(14);e.exports=o,o.simpleSieve=i,o.fermatTest=a;var c=r(2),u=new c(24),l=r(68),d=new l,f=new c(1),_=new c(2),p=new c(5),g=(new c(16),new c(8),new c(10)),m=new c(3),h=(new c(7),new c(11)),y=new c(4),v=(new c(12),null)},function(e,t,r){function n(e){this.rand=e||new a.Rand}var i=r(2),a=r(69);e.exports=n,n.create=function(e){return new n(e)},n.prototype._rand=function(e){var t=e.bitLength(),r=this.rand.generate(Math.ceil(t/8));r[0]|=3;var n=7&t;return 0!==n&&(r[r.length-1]>>=7-n),new i(r)},n.prototype.test=function(e,t,r){var n=e.bitLength(),a=i.mont(e),o=new i(1).toRed(a);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),c=s.subn(1),u=0;!s.testn(u);u++);for(var l=e.shrn(u),d=s.toRed(a);t>0;t--){var f=this._rand(c);r&&r(f);var _=f.toRed(a).redPow(l);if(0!==_.cmp(o)&&0!==_.cmp(d)){for(var p=1;p0;t--){var d=this._rand(s),f=e.gcd(d);if(0!==f.cmpn(1))return f;var _=d.toRed(n).redPow(u);if(0!==_.cmp(a)&&0!==_.cmp(l)){for(var p=1;p>8,o=255&i;a?r.push(a,o):r.push(o)}return r}function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r>>3}function l(e){return f(e,17)^f(e,19)^e>>>10}var d=r(6),f=d.rotr32;t.ft_1=n,t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=s,t.s1_256=c,t.g0_256=u,t.g1_256=l},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;h.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}var i=r(6),a=r(18),o=r(71),s=r(4),c=i.sum32,u=i.sum32_4,l=i.sum32_5,d=o.ch32,f=o.maj32,_=o.s0_256,p=o.s1_256,g=o.g0_256,m=o.g1_256,h=a.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];i.inherits(n,h),e.exports=n,n.blockSize=512,n.outSize=256,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>6],i=0==(32&r);if(31==(31&r)){var a=r;for(r=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:d.tag[r]}}function o(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var a=0;a=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=d.tagClassByName[r||"universal"]<<6)}var s=r(1),c=r(0).Buffer,u=r(19),l=u.base,d=u.constants.der;e.exports=n,n.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},s(i,l.Node),i.prototype._encodeComposite=function(e,t,r,n){var i=o(e,t,r,this.reporter);if(n.length<128){var a=new c(2);return a[0]=i,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,u=n.length;u>=256;u>>=8)s++;var a=new c(2+s);a[0]=i,a[1]=128|s;for(var u=1+s,l=n.length;l>0;u--,l>>=8)a[u]=255&l;return this._createEncoderBuffer([a,n])},i.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new c(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var i=0,n=0;n=128;a>>=7)i++}for(var o=new c(i),s=o.length-1,n=e.length-1;n>=0;n--){var a=e[n];for(o[s--]=127&a;(a>>=7)>0;)o[s--]=128|127&a}return this._createEncoderBuffer(o)},i.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[a(n.getFullYear()),a(n.getUTCMonth()+1),a(n.getUTCDate()),a(n.getUTCHours()),a(n.getUTCMinutes()),a(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[a(n.getFullYear()%100),a(n.getUTCMonth()+1),a(n.getUTCDate()),a(n.getUTCHours()),a(n.getUTCMinutes()),a(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!c.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new c(r)}if(c.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new c(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var i=new Array(n),a=i.length-1;a>=0;a--)i[a]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new c(i))},i.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},i.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},i.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),a.length!==i.defaultBuffer.length)return!1;for(n=0;n0&&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}))},n.prototype._serializeMappings=function(){for(var e,t,r,n,o=0,s=1,c=0,u=0,l=0,d=0,f="",_=this._mappings.toArray(),p=0,g=_.length;p0){if(!a.compareByGeneratedPositionsInflated(t,_[p-1]))continue;e+=","}e+=i.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=i.encode(n-d),d=n,e+=i.encode(t.originalLine-1-u),u=t.originalLine-1,e+=i.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=i.encode(r-l),l=r)),f+=e}return f},n.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=a.relative(t,e));var r=a.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},n.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},n.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=n},function(e,t,r){function n(e){return e<0?1+(-e<<1):0+(e<<1)}function i(e){var t=1==(1&e),r=e>>1;return t?-r:r}var a=r(176);t.encode=function(e){var t,r="",i=n(e);do{t=31&i,i>>>=5,i>0&&(t|=32),r+=a.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var n,o,s=e.length,c=0,u=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=a.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&o),o&=31,c+=o<=0&&e0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return 3*e.length/4-n(e)}function a(e){var t,r,i,a,o,s=e.length;a=n(e),o=new d(3*s/4-a),r=a>0?s-4:s;var c=0;for(t=0;t>16&255,o[c++]=i>>8&255,o[c++]=255&i;return 2===a?(i=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,o[c++]=255&i):1===a&&(i=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,o[c++]=i>>8&255,o[c++]=255&i),o}function o(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function s(e,t,r){for(var n,i=[],a=t;ac?c:o+16383));return 1===n?(t=e[r-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="="),a.push(i),a.join("")}t.byteLength=i,t.toByteArray=a,t.fromByteArray=c;for(var u=[],l=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=0,p=f.length;_>1,l=-7,d=r?i-1:0,f=r?-1:1,_=e[t+d];for(d+=f,a=_&(1<<-l)-1,_>>=-l,l+=s;l>0;a=256*a+e[t+d],d+=f,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+d],d+=f,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(_?-1:1);o+=Math.pow(2,n),a-=u}return(_?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:a-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),t+=o+d>=1?f/c:f*Math.pow(2,1-d),t*c>=2&&(o++,c/=2),o+d>=l?(s=0,o=l):o+d>=1?(s=(t*c-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+_]=255&s,_+=p,s/=256,i-=8);for(o=o<0;e[r+_]=255&o,_+=p,o/=256,u-=8);e[r+_-p]|=128*g}},function(e,t,r){"use strict";(function(t){function r(e){if(e.length%n!=0){var r=e.length+(n-e.length%n);e=t.concat([e,i],r)}for(var a=new Array(e.length>>>2),o=0,s=0;o=this._blockSize;){for(var a=this._blockOffset;a0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},n.prototype._update=function(e){throw new Error("_update is not implemented")},n.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=n}).call(t,r(0).Buffer)},function(e,t){},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){e.copy(t,r)}var a=function(){function e(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)i(r.data,t,n),n+=r.data.length,r=r.next;return t}}]),e}()},function(e,t,r){function n(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new n(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new n(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(101);var a=r(102);t.setImmediate=a.setImmediate,t.clearImmediate=a.clearImmediate},function(e,t,r){(function(e,t){!function(e,r){"use strict";function n(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r>>27}function a(e){return e<<30|e>>>2}function o(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}var s=r(1),c=r(12),u=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);s(n,c),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,s=0|this._c,c=0|this._d,l=0|this._e,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<80;++d)t[d]=t[d-3]^t[d-8]^t[d-14]^t[d-16];for(var f=0;f<80;++f){var _=~~(f/20),p=i(r)+o(_,n,s,c)+l+t[f]+u[_]|0;l=c,c=s,s=a(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=c+this._d|0,this._e=l+this._e|0},n.prototype._hash=function(){var e=new t(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=n}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(){this.init(),this._w=d,u.call(this,64,56)}function i(e){return e<<1|e>>>31}function a(e){return e<<5|e>>>27}function o(e){return e<<30|e>>>2}function s(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}var c=r(1),u=r(12),l=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);c(n,u),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,c=0|this._c,u=0|this._d,d=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=i(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var _=0;_<80;++_){var p=~~(_/20),g=a(r)+s(p,n,c,u)+d+t[_]+l[p]|0;d=u,u=c,c=o(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=c+this._c|0,this._d=u+this._d|0,this._e=d+this._e|0},n.prototype._hash=function(){var e=new t(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=n}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(){this.init(),this._w=s,o.call(this,64,56)}var i=r(1),a=r(51),o=r(12),s=new Array(64);i(n,a),n.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},n.prototype._hash=function(){var e=new t(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=n}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(){this.init(),this._w=s,o.call(this,128,112)}var i=r(1),a=r(52),o=r(12),s=new Array(160);i(n,a),n.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},n.prototype._hash=function(){function e(e,t,n){r.writeInt32BE(e,n),r.writeInt32BE(t,n+4)}var r=new t(48);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r},e.exports=n}).call(t,r(0).Buffer)},function(e,t,r){"use strict";function n(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t)),this._alg=e,this._key=t,t.length>c?t=e(t):t.length15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},i.prototype.flush=function(){for(var t=16-this.cache.length,r=new e(t),n=-1;++nc||e<0?(t=Math.abs(e)%c,e<0?c-t:t):e}function o(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]}var s=new t(16);s.fill(0),e.exports=r,r.prototype.ghash=function(e){for(var t=-1;++t0;e--)a[e]=a[e]>>>1|(1&a[e-1])<<31;a[0]=a[0]>>>1,r&&(a[0]=a[0]^225<<24)}this.state=i(s)},r.prototype.update=function(e){this.cache=t.concat([this.cache,e]);for(var r;this.cache.length>=16;)r=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(r)},r.prototype.final=function(e,r){return this.cache.length&&this.ghash(t.concat([this.cache,s],16)),this.ghash(i([0,e,0,r])),this.state};var c=Math.pow(2,32)}).call(t,r(0).Buffer)},function(e,t,r){(function(e){function n(t,r,a){if(!(this instanceof n))return new n(t,r,a);u.call(this),this._cache=new i,this._last=void 0,this._cipher=new c.AES(r),this._prev=new e(a.length),a.copy(this._prev),this._mode=t,this._autopadding=!0}function i(){if(!(this instanceof i))return new i;this.cache=new e("")}function a(e){for(var t=e[15],r=-1;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},i.prototype.flush=function(){if(this.cache.length)return this.cache};var g={ECB:r(61),CBC:r(62),CFB:r(63),CFB8:r(64),CFB1:r(65),OFB:r(66),CTR:r(28),GCM:r(28)};t.createDecipher=s,t.createDecipheriv=o}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(e){i.call(this);var r,n=e.mode.toLowerCase(),a=s[n];r=e.decrypt?"decrypt":"encrypt";var o=e.key;"des-ede"!==n&&"des-ede-cbc"!==n||(o=t.concat([o,o.slice(0,8)]));var c=e.iv;this._des=a.create({key:o,iv:c,type:r})}var i=r(8),a=r(40),o=r(1),s={"des-ede3-cbc":a.CBC.instantiate(a.EDE),"des-ede3":a.EDE,"des-ede-cbc":a.CBC.instantiate(a.EDE),"des-ede":a.EDE,"des-cbc":a.CBC.instantiate(a.DES),"des-ecb":a.DES};s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=n,o(n,i),n.prototype._update=function(e){return new t(this._des.update(e))},n.prototype._final=function(){return new t(this._des.final())}}).call(t,r(0).Buffer)},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(var o=6;o>=0;o-=2){for(var s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(var s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}r[n+0]=i>>>0,r[n+1]=a>>>0},t.rip=function(e,t,r,n){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(var o=4;o<8;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;r[n+0]=i>>>0,r[n+1]=a>>>0},t.pc1=function(e,t,r,n){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(var o=1;o<=3;o++){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;r[n+0]=i>>>0,r[n+1]=a>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var a=0,o=0,s=n.length>>>1,c=0;c>>n[c]&1;for(var c=s;c>>n[c]&1;r[i+0]=a>>>0,r[i+1]=o>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)n<<=6,n|=e>>>a&63;for(var a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){var a=e>>>18-6*n&63,o=i[64*n+a];r<<=4,r|=o}for(var n=0;n<4;n++){var a=t>>>18-6*n&63,o=i[256+64*n+a];r<<=4,r|=o}return r>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>a[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},n.prototype.final=function(e){var t;e&&(t=this.update(e));var r;return r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=c.r28shl(r,o),n=c.r28shl(n,o),c.pc2(r,n,e.keys,i)}},i.prototype._update=function(e,t,r,n){var i=this._desState,a=c.readUInt32BE(e,t),o=c.readUInt32BE(e,t+4);c.ip(a,o,i.tmp,0),a=i.tmp[0],o=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,o,i.tmp,0):this._decrypt(i,a,o,i.tmp,0),a=i.tmp[0],o=i.tmp[1],c.writeUInt32BE(r,a,n),c.writeUInt32BE(r,o,n+4)},i.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,a=_}c.rip(o,a,n,i)},i.prototype._decrypt=function(e,t,r,n,i){for(var a=r,o=t,s=e.keys.length-2;s>=0;s-=2){var u=e.keys[s],l=e.keys[s+1];c.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=c.substitute(u,l),f=c.permute(d),_=a;a=(o^f)>>>0,o=_}c.rip(a,o,n,i)}},function(e,t,r){"use strict";function n(e){a.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t0&&r.ishrn(n),r}function u(e,r){e=c(e,r),e=e.mod(r);var n=new t(e.toArray());if(n.length",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}}},function(e,t,r){"use strict";function n(e,t){for(var r=[],n=1<=0;){var a;if(i.isOdd()){var o=i.andln(n-1);a=o>(n>>1)-1?(n>>1)-o:o,i.isubn(a)}else a=0;r.push(a);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,c=1;c0||t.cmpn(-i)>0;){var a=e.andln(3)+n&3,o=t.andln(3)+i&3;3===a&&(a=-1),3===o&&(o=-1);var s;if(0==(1&a))s=0;else{var c=e.andln(7)+n&7;s=3!==c&&5!==c||2!==o?a:-a}r[0].push(s);var u;if(0==(1&o))u=0;else{var c=t.andln(7)+i&7;u=3!==c&&5!==c||2!==a?o:-o}r[1].push(u),2*n===s+1&&(n=1-n),2*i===u+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r}function a(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function o(e){return"string"==typeof e?c.toArray(e,"hex"):e}function s(e){return new u(e,"hex","le")}var c=t,u=r(2),l=r(4),d=r(70);c.assert=l,c.toArray=d.toArray,c.zero2=d.zero2,c.toHex=d.toHex,c.encode=d.encode,c.getNAF=n,c.getJSF=i,c.cachedProperty=a,c.parseBytes=o,c.intFromLE=s},function(e,t,r){"use strict";function n(e,t){this.type=e,this.p=new a(t.p,16),this.red=t.prime?a.red(t.prime):a.mont(this.p),this.zero=new a(0).toRed(this.red),this.one=new a(1).toRed(this.red),this.two=new a(2).toRed(this.red),this.n=t.n&&new a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function i(e,t){this.curve=e,this.type=t,this.precomputed=null}var a=r(2),o=r(3),s=o.utils,c=s.getNAF,u=s.getJSF,l=s.assert;e.exports=n,n.prototype.point=function(){throw new Error("Not implemented")},n.prototype.validate=function(){throw new Error("Not implemented")},n.prototype._fixedNafMul=function(e,t){l(e.precomputed);var r=e._getDoubles(),n=c(t,1),i=(1<=o;t--)s=(s<<1)+n[t];a.push(s)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=i;f>0;f--){for(var o=0;o=0;s--){for(var t=0;s>=0&&0===a[s];s--)t++;if(s>=0&&t++,o=o.dblp(t),s<0)break;var u=a[s];l(0!==u),o="affine"===e.type?u>0?o.mixedAdd(i[u-1>>1]):o.mixedAdd(i[-u-1>>1].neg()):u>0?o.add(i[u-1>>1]):o.add(i[-u-1>>1].neg())}return"affine"===e.type?o.toP():o},n.prototype._wnafMulAdd=function(e,t,r,n,i){for(var a=this._wnafT1,o=this._wnafT2,s=this._wnafT3,l=0,d=0;d=1;d-=2){var p=d-1,g=d;if(1===a[p]&&1===a[g]){var m=[t[p],null,null,t[g]];0===t[p].y.cmp(t[g].y)?(m[1]=t[p].add(t[g]),m[2]=t[p].toJ().mixedAdd(t[g].neg())):0===t[p].y.cmp(t[g].y.redNeg())?(m[1]=t[p].toJ().mixedAdd(t[g]),m[2]=t[p].add(t[g].neg())):(m[1]=t[p].toJ().mixedAdd(t[g]),m[2]=t[p].toJ().mixedAdd(t[g].neg()));var h=[-3,-1,-5,-7,0,7,5,1,3],y=u(r[p],r[g]);l=Math.max(y[0].length,l),s[p]=new Array(l),s[g]=new Array(l);for(var v=0;v=0;d--){for(var C=0;d>=0;){for(var E=!0,v=0;v=0&&C++,x=x.dblp(C),d<0)break;for(var v=0;v0?f=o[v][D-1>>1]:D<0&&(f=o[v][-D-1>>1].neg()),x="affine"===f.type?x.mixedAdd(f):x.add(f))}}for(var d=0;d=Math.ceil((e.bitLength()+1)/t.step)},i.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,o=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),o=o.neg()),[{a:n,b:i},{a:a,b:o}]},n.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),s=a.mul(n.a),c=i.mul(r.b),u=a.mul(n.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},n.prototype.pointFromX=function(e,t){e=new c(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},n.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},n.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a":""},i.prototype.isInfinity=function(){return this.inf},i.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},i.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},i.prototype.getX=function(){return this.x.fromRed()},i.prototype.getY=function(){return this.y.fromRed()},i.prototype.mul=function(e){return e=new c(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},i.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},i.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},i.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},i.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},i.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},u(a,l.BasePoint),n.prototype.jpoint=function(e,t,r){return new a(this,e,t,r)},a.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},a.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},a.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=a.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(d).redISub(d),_=c.redMul(d.redISub(f)).redISub(a.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,_,p)},a.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=r.redSub(n),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(d)).redISub(i.redMul(u)),_=this.z.redMul(o);return this.curve.jpoint(d,f,_)},a.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},a.prototype.inspect=function(){return this.isInfinity()?"":""},a.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";function n(e){c.call(this,"mont",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.i4=new o(4).toRed(this.red).redInvm(),this.two=new o(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(e,t,r){c.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new o(t,16),this.z=new o(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var a=r(29),o=r(2),s=r(1),c=a.base,u=r(3),l=u.utils;s(n,c),e.exports=n,n.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},s(i,c.BasePoint),n.prototype.decodePoint=function(e,t){return this.point(l.toArray(e,t),1)},n.prototype.point=function(e,t){return new i(this,e,t)},n.prototype.pointFromJSON=function(e){return i.fromJSON(this,e)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(e,t){return new i(e,t[0],t[1]||e.one)},i.prototype.inspect=function(){return this.isInfinity()?"":""},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},i.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),r=this.x.redSub(this.z),n=r.redSqr(),i=t.redSub(n),a=t.redMul(n),o=i.redMul(n.redAdd(this.curve.a24.redMul(i)));return this.curve.point(a,o)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z),o=a.redMul(r),s=i.redMul(n),c=t.z.redMul(o.redAdd(s).redSqr()),u=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(c,u)},i.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var o=a.length-1;o>=0;o--)0===a[o]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";function n(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,u.call(this,"edwards",e),this.a=new s(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),l(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function i(e,t,r,n,i){u.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new s(t,16),this.y=new s(r,16),this.z=n?new s(n,16):this.curve.one,this.t=i&&new s(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}var a=r(29),o=r(3),s=r(2),c=r(1),u=a.base,l=o.utils.assert;c(n,u),e.exports=n,n.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},n.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},n.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},n.prototype.pointFromX=function(e,t){e=new s(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)},n.prototype.pointFromY=function(e,t){e=new s(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return o.isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},n.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},c(i,u.BasePoint),n.prototype.pointFromJSON=function(e){return i.fromJSON(this,e)},n.prototype.point=function(e,t,r,n){return new i(this,e,t,r,n)},i.fromJSON=function(e,t){return new i(e,t[0],t[1],t[2])},i.prototype.inspect=function(){return this.isInfinity()?"":""},i.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},i.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=n.redAdd(t),o=a.redSub(r),s=n.redSub(t),c=i.redMul(o),u=a.redMul(s),l=i.redMul(s),d=o.redMul(a);return this.curve.point(c,u,d,l)},i.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=this.curve._mulA(i),s=o.redAdd(a);if(this.zOne)e=n.redSub(i).redSub(a).redMul(s.redSub(this.curve.two)),t=s.redMul(o.redSub(a)),r=s.redSqr().redSub(s).redSub(s);else{var c=this.z.redSqr(),u=s.redSub(c).redISub(c);e=n.redSub(i).redISub(a).redMul(u),t=s.redMul(o.redSub(a)),r=s.redMul(u)}}else{var o=i.redAdd(a),c=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=o.redSub(c).redSub(c);e=this.curve._mulC(n.redISub(o)).redMul(u),t=this.curve._mulC(o).redMul(i.redISub(a)),r=o.redMul(u)}return this.curve.point(e,t,r)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},i.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),o=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=a.redMul(o),l=s.redMul(c),d=a.redMul(c),f=o.redMul(s);return this.curve.point(u,l,f,d)},i.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),d=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(o.redSub(this.curve._mulA(a))),r=c.redMul(u)):(t=n.redMul(u).redMul(o.redSub(a)),r=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,r)},i.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},i.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},i.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},i.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},i.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},i.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},i.prototype.getY=function(){return this.normalize(),this.y.fromRed()},i.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},i.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},i.prototype.toP=i.prototype.normalize,i.prototype.mixedAdd=i.prototype.add},function(e,t,r){"use strict";function n(e){"short"===e.type?this.curve=new s.curve.short(e):"edwards"===e.type?this.curve=new s.curve.edwards(e):this.curve=new s.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(e,t){Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:function(){var r=new n(t);return Object.defineProperty(a,e,{configurable:!0,enumerable:!0,value:r}),r}})}var a=t,o=r(42),s=r(3),c=s.utils.assert;a.PresetCurve=n,i("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),i("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),i("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u;try{u=r(147)}catch(e){u=void 0}i("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})},function(e,t,r){"use strict";t.sha1=r(142),t.sha224=r(143),t.sha256=r(72),t.sha384=r(144),t.sha512=r(73)},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var i=r(6),a=r(18),o=r(71),s=i.rotl32,c=i.sum32,u=i.sum32_5,l=o.ft_1,d=a.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];i.inherits(n,d),e.exports=n,n.blockSize=512,n.outSize=160,n.hmacStrength=80,n.padLength=64,n.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},n.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},n.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),c=e.toArray("be",o),u=new a({hash:this.hash,entropy:s,nonce:c,pers:n.pers,persEnc:n.persEnc||"utf8"}),d=this.n.sub(new i(1)),f=0;!0;f++){var _=n.k?n.k(f):new i(u.generate(this.n.byteLength()));if(_=this._truncateToN(_,!0),!(_.cmpn(1)<=0||_.cmp(d)>=0)){var p=this.g.mul(_);if(!p.isInfinity()){var g=p.getX(),m=g.umod(this.n);if(0!==m.cmpn(0)){var h=_.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(h=h.umod(this.n),0!==h.cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==g.cmp(m)?2:0);return n.canonical&&h.cmp(this.nh)>0&&(h=this.n.sub(h),y^=1),new l({r:m,s:h,recoveryParam:y})}}}}}},n.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n),t=new l(t,"hex");var a=t.r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s=o.invm(this.n),c=s.mul(e).umod(this.n),u=s.mul(a).umod(this.n);if(!this.curve._maxwellTrick){var d=this.g.mulAdd(c,r.getPublic(),u);return!d.isInfinity()&&0===d.getX().umod(this.n).cmp(a)}var d=this.g.jmulAdd(c,r.getPublic(),u);return!d.isInfinity()&&d.eqXToP(a)},n.prototype.recoverPubKey=function(e,t,r,n){c((3&r)===r,"The recovery param is more than two bits"),t=new l(t,n);var a=this.n,o=new i(e),s=t.r,u=t.s,d=1&r,f=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var _=t.r.invm(a),p=a.sub(o).mul(_).umod(a),g=u.mul(_).umod(a);return this.g.mulAdd(p,s,g)},n.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new l(t,n),null!==t.recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),r=a.toArray(e.nonce,e.nonceEnc||"hex"),i=a.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}var i=r(42),a=r(70),o=r(4);e.exports=n,n.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},n.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=a.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"}},function(e,t,r){"use strict";function n(e,t){if(e instanceof n)return e;this._importDER(e,t)||(d(e.r&&e.s,"Signature without r or s"),this.r=new c(e.r,16),this.s=new c(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function i(){this.place=0}function a(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,a=0,o=t.place;a>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}var c=r(2),u=r(3),l=u.utils,d=l.assert;e.exports=n,n.prototype._importDER=function(e,t){e=l.toArray(e,t);var r=new i;if(48!==e[r.place++])return!1;if(a(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=a(e,r),o=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var s=a(e,r);if(e.length!==s+r.place)return!1;var u=e.slice(r.place,s+r.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new c(o),this.s=new c(u),this.recoveryParam=null,!0},n.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=o(t),r=o(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];s(n,t.length),n=n.concat(t),n.push(2),s(n,r.length);var i=n.concat(r),a=[48];return s(a,i.length),a=a.concat(i),l.encode(a,e)}},function(e,t,r){"use strict";function n(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof n))return new n(e);var e=a.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=i.sha512}var i=r(42),a=r(3),o=a.utils,s=o.assert,c=o.parseBytes,u=r(153),l=r(154);e.exports=n,n.prototype.sign=function(e,t){e=c(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),a=this.encodePoint(i),o=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),s=n.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:a})},n.prototype.verify=function(e,t,r){e=c(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(a)},n.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=t)throw new Error("invalid sig")}var s=r(2),c=r(3).ec,u=r(30),l=r(78);e.exports=n}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(e){this.curveType=s[e],this.curveType||(this.curveType={name:e}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function i(e,r,n){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(n&&i.lengthn-f-2)throw new Error("message too long");var _=new t(n-i-f-2);_.fill(0);var p=n-o-1,g=s(o),m=l(t.concat([a,_,new t([1]),r],p),u(g,p)),h=l(g,u(m,o));return new d(t.concat([new t([0]),h,m],n))}function i(e,r,n){var i=r.length,o=e.modulus.byteLength();if(i>o-11)throw new Error("message too long");var s;return n?(s=new t(o-i-3),s.fill(255)):s=a(o-i-3),new d(t.concat([new t([0,n?1:2]),s,new t([0]),r],o))}function a(e,r){for(var n,i=new t(e),a=0,o=s(2*e),c=0;a=0)throw new Error("data too long for modulus")}return r?_(s,c):f(s,c)}}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(e,r){var n=(e.modulus,e.modulus.byteLength()),i=(r.length,d("sha1").update(new t("")).digest()),o=i.length;if(0!==r[0])throw new Error("decryption error");var u=r.slice(1,o+1),l=r.slice(o+1),f=c(u,s(l,o)),_=c(l,s(f,n-o-1));if(a(i,_.slice(0,o)))throw new Error("decryption error");for(var p=o;0===_[p];)p++;if(1!==_[p++])throw new Error("decryption error");return _.slice(p)}function i(e,t,r){for(var n=t.slice(0,2),i=2,a=0;0!==t[i++];)if(i>=t.length){a++;break}var o=t.slice(2,i-1);t.slice(i-1,i);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&a++,o.length<8&&a++,a)throw new Error("decryption error");return t.slice(i)}function a(e,r){e=new t(e),r=new t(r);var n=0,i=e.length;e.length!==r.length&&(n++,i=Math.min(e.length,r.length));for(var a=-1;++ad||new u(r).cmp(c.modulus)>=0)throw new Error("decryption error");var _;_=a?f(new u(r),c):l(r,c);var p=new t(d-_.length);if(p.fill(0),_=t.concat([p,_],d),4===s)return n(c,_);if(1===s)return i(c,_,a);if(3===s)return _;throw new Error("unknown padding")}}).call(t,r(0).Buffer)},function(e,t,r){(function(e,n){function i(){return"browser"===C||"node"!==C&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function a(){return"object"==typeof e&&null!==e&&"function"==typeof e.on}function o(e){return function(t){for(var r=0;r";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||""):a?i+=a:(i+=t,o=!1);else{var c=this.getTypeName(),u=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,u&&a.indexOf("."+u)!=a.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"")}return o&&(i+=" ("+t+")"),i}function f(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=d,t}function _(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var r=e.getLineNumber(),n=e.getColumnNumber()-1;1!==r||i()||e.isEval()||(n-=62);var a=u({source:t,line:r,column:n});return e=f(e),e.getFileName=function(){return a.source},e.getLineNumber=function(){return a.line},e.getColumnNumber=function(){return a.column+1},e.getScriptNameOrSourceURL=function(){return a.source},e}var o=e.isEval()&&e.getEvalOrigin();return o?(o=l(o),e=f(e),e.getEvalOrigin=function(){return o},e):e}function p(e,t){return S&&(E={},D={}),e+t.map(function(e){return"\n    at "+_(e)}).join("")}function g(e){var t=/\n    at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],n=+t[2],i=+t[3],a=E[r];if(!a&&b.existsSync(r)&&(a=b.readFileSync(r,"utf8")),a){var o=a.split(/(?:\r\n|\r|\n)/)[n-1];if(o)return r+":"+n+"\n"+o+"\n"+new Array(i).join(" ")+"^"}}return null}function m(t){var r=g(t);r&&(console.error(),console.error(r)),console.error(t.stack),e.exit(1)}function h(){var t=e.emit;e.emit=function(e){if("uncaughtException"===e){var r=arguments[1]&&arguments[1].stack,n=this.listeners(e).length>0;if(r&&!n)return m(arguments[1])}return t.apply(this,arguments)}}var y=r(175).SourceMapConsumer,v=r(182),b=r(183),k=!1,x=!1,S=!1,C="auto",E={},D={},T=/^data:application\/json[^,]+base64,/,w=[],A=[],N=o(w);w.push(function(e){if((e=e.trim())in E)return E[e];try{if(i()){var t=new XMLHttpRequest;t.open("GET",e,!1),t.send(null);var r=null;4===t.readyState&&200===t.status&&(r=t.responseText)}else var r=b.readFileSync(e,"utf8")}catch(e){var r=null}return E[e]=r});var P=o(A);A.push(function(e){var t=c(e);if(!t)return null;var r;if(T.test(t)){var i=t.slice(t.indexOf(",")+1);r=new n(i,"base64").toString(),t=null}else t=s(e,t),r=N(t);return r?{url:t,map:r}:null}),t.wrapCallSite=_,t.getErrorSource=g,t.mapSourcePosition=u,t.retrieveSourceMap=P,t.install=function(e){if(e=e||{},e.environment&&(C=e.environment,-1===["node","browser","auto"].indexOf(C)))throw new Error("environment "+C+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(w.length=0),w.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(A.length=0),A.unshift(e.retrieveSourceMap)),S||(S="emptyCacheBetweenOperations"in e&&e.emptyCacheBetweenOperations),k||(k=!0,Error.prepareStackTrace=p),!x){(!("handleUncaughtExceptions"in e)||e.handleUncaughtExceptions)&&a()&&(x=!0,h())}}}).call(t,r(5),r(0).Buffer)},function(e,t,r){t.SourceMapGenerator=r(82).SourceMapGenerator,t.SourceMapConsumer=r(178).SourceMapConsumer,t.SourceNode=r(181).SourceNode},function(e,t){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&er||n==r&&o>=i||a.compareByGeneratedPositionsInflated(e,t)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var a=r(21);i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(a.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},function(e,t,r){function n(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new o(t):new i(t)}function i(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=s.getArg(t,"version"),n=s.getArg(t,"sources"),i=s.getArg(t,"names",[]),a=s.getArg(t,"sourceRoot",null),o=s.getArg(t,"sourcesContent",null),c=s.getArg(t,"mappings"),l=s.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(s.normalize).map(function(e){return a&&s.isAbsolute(a)&&s.isAbsolute(e)?s.relative(a,e):e}),this._names=u.fromArray(i.map(String),!0),this._sources=u.fromArray(n,!0),this.sourceRoot=a,this.sourcesContent=o,this._mappings=c,this.file=l}function a(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function o(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=s.getArg(t,"version"),i=s.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new u,this._names=new u;var a={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=s.getArg(e,"offset"),r=s.getArg(t,"line"),i=s.getArg(t,"column");if(r=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:s.getArg(a,"generatedLine",null),column:s.getArg(a,"generatedColumn",null),lastColumn:s.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var u=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==u;)n.push({line:s.getArg(a,"generatedLine",null),column:s.getArg(a,"generatedColumn",null),lastColumn:s.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n},t.SourceMapConsumer=n,i.prototype=Object.create(n.prototype),i.prototype.consumer=n,i.fromSourceMap=function(e){var t=Object.create(i.prototype),r=t._names=u.fromArray(e._names.toArray(),!0),n=t._sources=u.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var o=e._mappings.toArray().slice(),c=t.__generatedMappings=[],l=t.__originalMappings=[],f=0,_=o.length;f<_;f++){var p=o[f],g=new a;g.generatedLine=p.generatedLine,g.generatedColumn=p.generatedColumn,p.source&&(g.source=n.indexOf(p.source),g.originalLine=p.originalLine,g.originalColumn=p.originalColumn,p.name&&(g.name=r.indexOf(p.name)),l.push(g)),c.push(g)}return d(t.__originalMappings,s.compareByOriginalPositions),t},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?s.join(this.sourceRoot,e):e},this)}}),i.prototype._parseMappings=function(e,t){for(var r,n,i,o,c,u=1,f=0,_=0,p=0,g=0,m=0,h=e.length,y=0,v={},b={},k=[],x=[];y1&&(r.source=g+i[1],g+=i[1],r.originalLine=_+i[2],_=r.originalLine,r.originalLine+=1,r.originalColumn=p+i[3],p=r.originalColumn,i.length>4&&(r.name=m+i[4],m+=i[4])),x.push(r),"number"==typeof r.originalLine&&k.push(r)}d(x,s.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,d(k,s.compareByOriginalPositions),this.__originalMappings=k},i.prototype._findMapping=function(e,t,r,n,i,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return c.search(e,t,i,a)},i.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var a=s.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),null!=this.sourceRoot&&(a=s.join(this.sourceRoot,a)));var o=s.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:a,line:s.getArg(i,"originalLine",null),column:s.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},i.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=s.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=s.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(e){var t=s.getArg(e,"source");if(null!=this.sourceRoot&&(t=s.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};t=this._sources.indexOf(t);var r={source:t,originalLine:s.getArg(e,"line"),originalColumn:s.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(e,"bias",n.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:s.getArg(a,"generatedLine",null),column:s.getArg(a,"generatedColumn",null),lastColumn:s.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=i,o.prototype=Object.create(n.prototype),o.prototype.constructor=n,o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){for(var e=[],t=0;t0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n1?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}},function(e,t){function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t){return Math.round(e+Math.random()*(t-e))}function i(e,t,a,o){if(a0&&(f&&i(f,u()),s.add(c.join(""))),t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&(null!=r&&(e=a.join(r,e)),s.setSourceContent(e,n))}),s},n.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[s]&&"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},n.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&"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},n.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}return t=r(n(t.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return e=r(n(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),a=n(r.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c")),t.join("");case O.SyntaxKind.TupleType:var r=[];r.push("[");var n=e.elementTypes;return n.forEach(function(e){r.push(l(e)),n.indexOf(e)-1&&r.setIsConst(!0),n.modifiers&&n.modifiers.forEach(function(e){r.addModifier(p(e))}),n.decorators&&n.decorators.forEach(function(e){r.addDecorators(g(e,t))}),r.setIdentifier(n.declarationList.declarations[0].name.text),n.declarationList.declarations[0].type&&r.setType(l(n.declarationList.declarations[0].type)),e.declarationList.declarations[0].initializer)switch(e.declarationList.declarations[0].initializer.kind){case O.SyntaxKind.ObjectLiteralExpression:r.setInitializer(i(n.declarationList.declarations[0].initializer,t));break;case O.SyntaxKind.ArrayLiteralExpression:r.setInitializer(o(n.declarationList.declarations[0].initializer.elements,t));break;case O.SyntaxKind.StringLiteral:r.setInitializer("'"+n.declarationList.declarations[0].initializer.text+"'");break;case O.SyntaxKind.TrueKeyword:r.setInitializer("true");break;case O.SyntaxKind.FalseKeyword:r.setInitializer("false");break;case O.SyntaxKind.Identifier:r.setInitializer(n.declarationList.declarations[0].initializer.text);break;default:r.setInitializer(e.declarationList.declarations[0].initializer.getFullText(t))}return r}function y(e,t){var r=new v.FunctionDeclaration;return r.setIdentifier(e.name.text),e.type&&r.setType(l(e.type)),e.decorators&&e.decorators.forEach(function(e){r.addDecorators(g(e,t))}),e.modifiers&&e.modifiers.forEach(function(e){r.addModifier(p(e))}),e.parameters&&e.parameters.forEach(function(e){r.addParameter(f(e,t))}),e.body&&r.setBody(m(e.body.getFullText(t))),r}Object.defineProperty(t,"__esModule",{value:!0});var v=r(185),b=r(86),k=r(186),x=r(187),S=r(188),C=r(88),E=r(189),D=r(190),T=r(43),w=r(87),A=r(44),N=r(22),P=r(191),M=r(13),O=r(45),I=r(85);t.mapFile=n,t.mapObjectLiteral=i,t.mapCallExpression=a,t.mapArrayLiteral=o,t.mapImport=s,t.mapClass=c,t.mapPropertyDeclaration=u,t.mapTypes=l,t.mapConstructor=d,t.mapParameter=f,t.mapMethod=_,t.mapModifier=p,t.mapDecorator=g,t.mapBodyMethod=m,t.mapVariableStatement=h,t.mapFunction=y},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=r(43),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.toString=function(){var e=this,t=[];return this.getDecorators().forEach(function(e){t.push(e.toString(),"\n")}),this.getModifiers().forEach(function(e){t.push(e," ")}),t.push("function ",this.getIdentifier(),"("),this.getParameters().forEach(function(r){t.push(r.toString()),e.getParameters().indexOf(r)0&&n.mergeVariables(this,e,t),this.functions.length>0&&n.mergeFunctions(this.functions,e.getFunctions(),t)},e.prototype.toString=function(){var e=[];return this.importDeclarations.forEach(function(t){e.push(t.toString())}),e.push("\n"),this.functions.forEach(function(t){e.push(t.toString())}),this.variables.forEach(function(t){e.push(t.toString())}),this.classes.forEach(function(t){e.push(t.toString())}),e.join("")},e}();t.TSFile=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.clause="",this.module="",this.named=[],this.nameSpace="",this.spaceBinding=!0}return e.prototype.addNamed=function(e){this.named.push(e)},e.prototype.setModule=function(e){this.module=e},e.prototype.getClause=function(){return this.clause},e.prototype.setClause=function(e){this.clause=e},e.prototype.setNamespace=function(e){this.nameSpace=e},e.prototype.contains=function(e){return this.named.indexOf(e)>=0},e.prototype.setSpaceBinding=function(e){this.spaceBinding=e},e.prototype.getNameSpace=function(){return this.nameSpace},e.prototype.getNamed=function(){return this.named},e.prototype.getModule=function(){return this.module},e.prototype.merge=function(e){var t=this;this.getModule()===e.getModule()&&(e.getNamed().length>0&&""!=this.getClause()?(this.addNamed(this.getClause()),this.setClause(""),e.getNamed().forEach(function(e){t.contains(e)||t.addNamed(e)})):""!=e.getClause()&&this.getNamed().length>0?this.contains(e.getClause())||this.addNamed(e.getClause()):""!=e.getClause()&&""!=this.getClause()?(this.addNamed(this.getClause()),this.addNamed(e.getClause()),this.setClause("")):e.getNamed().length>0&&this.getNamed().length>0&&e.getNamed().forEach(function(e){t.contains(e)||t.addNamed(e)}))},e.prototype.toString=function(){var e=this,t=[];return this.spaceBinding?(t.push("import "),0!=this.named.length?(t.push("{ "),this.named.forEach(function(r){t.push(r),e.named.indexOf(r)0&&this.methods.forEach(function(t){e.push(t.toString())}),e.push("\n}\n"),e.join("")},t}(a.GeneralInterface);t.ClassDeclaration=o,t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=r(11),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.decorators=[],t.modifiers=[],t}return n(t,e),t.prototype.addModifier=function(e){this.modifiers.push(e)},t.prototype.getModifiers=function(){return this.modifiers},t.prototype.setModifiers=function(e){this.modifiers=e},t.prototype.addDecorator=function(e){this.decorators.push(e)},t.prototype.addDecorators=function(e){var t=this;e.forEach(function(e){t.addDecorator(e)})},t.prototype.getDecorators=function(){return this.decorators},t.prototype.setDecorators=function(e){this.decorators=e},t.prototype.merge=function(e,t){t&&(this.setType(e.getType()),this.setModifiers(e.getModifiers()))},t.prototype.toString=function(){var e=[];return this.decorators.forEach(function(t){e.push(t.toString())}),this.modifiers.forEach(function(t){e.push(t," ")}),""!==this.getType()?e.push(this.getIdentifier()+": "+this.getType()):e.push(this.getIdentifier()),e.join("")},t}(i.GeneralInterface);t.Parameter=a,t.default=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=r(22),a=r(13),o=r(11),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.args=[],t.isCallExpression=!1,t}return n(t,e),t.prototype.addArgument=function(e){this.args.push(e)},t.prototype.getArguments=function(){return this.args},t.prototype.setArguments=function(e){this.args=e},t.prototype.setIsCallExpression=function(e){this.isCallExpression=e},t.prototype.getIsCallExpression=function(){return this.isCallExpression},t.prototype.merge=function(e,t){var r=this;e.getArguments().forEach(function(n){r.getArguments().forEach(function(o){n instanceof a.ObjectLiteralExpression&&o instanceof a.ObjectLiteralExpression?o.merge(n,t):n instanceof i.ArrayLiteralExpression&&o instanceof i.ArrayLiteralExpression?o.merge(n,t):t&&r.setArguments(e.getArguments())})})},t.prototype.toString=function(){var e=this,t=[];return t.push("@",this.getIdentifier()),this.getIsCallExpression()&&(t.push("("),this.args.length>0&&this.args.forEach(function(r){t.push(r.toString()),e.args.indexOf(r)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy